octocode-mcp
Version:
Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.
246 lines • 1.97 MB
JavaScript
#!/usr/bin/env node
import{createRequire as e}from"node:module";import t from"node:process";import n from"util";import r,{Readable as i}from"stream";import*as a from"path";import o,{dirname as s,join as c}from"path";import l from"http";import u from"https";import d from"url";import f,{promises as p,realpathSync as m,statSync as h}from"fs";import g,{createHash as _}from"crypto";import v from"http2";import*as y from"os";import b from"os";import x from"zlib";import{EventEmitter as S}from"events";import{spawn as C}from"child_process";import{existsSync as w,mkdirSync as T,readFileSync as E,renameSync as D,unlinkSync as O,writeFileSync as k}from"node:fs";import{join as A}from"node:path";import{createCipheriv as j,createDecipheriv as ee,createHmac as te,createPrivateKey as ne,randomBytes as re,randomUUID as M,subtle as ie,timingSafeEqual as ae}from"node:crypto";import N from"node:os";import{AsyncEntry as oe}from"@napi-rs/keyring";import{Buffer as se}from"node:buffer";import{readFile as P,stat as ce}from"fs/promises";import{createRequire as le}from"module";var ue=Object.create,de=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,pe=Object.getOwnPropertyNames,me=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ge=(e,t)=>{let n={};for(var r in e)de(n,r,{get:e[r],enumerable:!0});return t&&de(n,Symbol.toStringTag,{value:`Module`}),n},I=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=pe(t),a=0,o=i.length,s;a<o;a++)s=i[a],!he.call(e,s)&&s!==n&&de(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=fe(t,s))||r.enumerable});return e},_e=(e,t,n)=>(n=e==null?{}:ue(me(e)),I(t||!e||!e.__esModule?de(n,`default`,{value:e,enumerable:!0}):n,e)),ve=e(import.meta.url),ye;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(ye||={});var be;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(be||={});const L=ye.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),xe=e=>{switch(typeof e){case`undefined`:return L.undefined;case`string`:return L.string;case`number`:return Number.isNaN(e)?L.nan:L.number;case`boolean`:return L.boolean;case`function`:return L.function;case`bigint`:return L.bigint;case`symbol`:return L.symbol;case`object`:return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?L.promise:typeof Map<`u`&&e instanceof Map?L.map:typeof Set<`u`&&e instanceof Set?L.set:typeof Date<`u`&&e instanceof Date?L.date:L.object;default:return L.unknown}},R=ye.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]);var Se=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ye.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};Se.create=e=>new Se(e);var Ce=(e,t)=>{let n;switch(e.code){case R.invalid_type:n=e.received===L.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ye.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:n=`Unrecognized key(s) in object: ${ye.joinValues(e.keys,`, `)}`;break;case R.invalid_union:n=`Invalid input`;break;case R.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ye.joinValues(e.options)}`;break;case R.invalid_enum_value:n=`Invalid enum value. Expected ${ye.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:n=`Invalid function arguments`;break;case R.invalid_return_type:n=`Invalid function return type`;break;case R.invalid_date:n=`Invalid date`;break;case R.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ye.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case R.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case R.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case R.custom:n=`Invalid input`;break;case R.invalid_intersection_types:n=`Intersection results could not be merged`;break;case R.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,ye.assertNever(e)}return{message:n}};let we=Ce;function Te(){return we}const Ee=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function z(e,t){let n=Te(),r=Ee({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ce?void 0:Ce].filter(e=>!!e)});e.common.issues.push(r)}var De=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return Oe;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return Oe;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}};const Oe=Object.freeze({status:`aborted`}),ke=e=>({status:`dirty`,value:e}),Ae=e=>({status:`valid`,value:e}),je=e=>e.status===`aborted`,Me=e=>e.status===`dirty`,Ne=e=>e.status===`valid`,Pe=e=>typeof Promise<`u`&&e instanceof Promise;var B;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(B||={});var Fe=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const Ie=(e,t)=>{if(Ne(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){return this._error||=new Se(e.common.issues),this._error}}};function Le(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var Re=class{get description(){return this._def.description}_getType(e){return xe(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:xe(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new De,ctx:{common:e.parent.common,data:e.data,parsedType:xe(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(Pe(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xe(e)};return Ie(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xe(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return Ne(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>Ne(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:xe(e)},r=this._parse({data:e,path:n.path,parent:n});return Ie(n,await(Pe(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:R.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new zt({schema:this,typeName:H.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return Bt.create(this,this._def)}nullable(){return Vt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return bt.create(this)}promise(){return Rt.create(this,this._def)}or(e){return Ct.create([this,e],this._def)}and(e){return Dt.create(this,e,this._def)}transform(e){return new zt({...Le(this._def),schema:this,typeName:H.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new Ht({...Le(this._def),innerType:this,defaultValue:t,typeName:H.ZodDefault})}brand(){return new Gt({typeName:H.ZodBranded,type:this,...Le(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new Ut({...Le(this._def),innerType:this,catchValue:t,typeName:H.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Kt.create(this,e)}readonly(){return qt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const ze=/^c[^\s-]{8,}$/i,Be=/^[0-9a-z]+$/,Ve=/^[0-9A-HJKMNP-TV-Z]{26}$/i,He=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,V=/^[a-z0-9_-]{21}$/i,Ue=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,We=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ge=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Ke;const qe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Je=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ye=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Xe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ze=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$e=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,et=RegExp(`^${$e}$`);function tt(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function nt(e){return RegExp(`^${tt(e)}$`)}function rt(e){let t=`${$e}T${tt(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function it(e,t){return!!((t===`v4`||!t)&&qe.test(e)||(t===`v6`||!t)&&Ye.test(e))}function at(e,t){if(!Ue.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function ot(e,t){return!!((t===`v4`||!t)&&Je.test(e)||(t===`v6`||!t)&&Xe.test(e))}var st=class e extends Re{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==L.string){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.string,received:t.parsedType}),Oe}let t=new De,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?z(n,{code:R.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&z(n,{code:R.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)Ge.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`email`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)Ke||=RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`),Ke.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`emoji`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)He.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`uuid`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)V.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`nanoid`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)ze.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`cuid`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)Be.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`cuid2`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)Ve.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`ulid`,code:R.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),z(n,{validation:`url`,code:R.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`regex`,code:R.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?rt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?et.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?nt(r).test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{code:R.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?We.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`duration`,code:R.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?it(e.data,r.version)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`ip`,code:R.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?at(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`jwt`,code:R.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?ot(e.data,r.version)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`cidr`,code:R.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Ze.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`base64`,code:R.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Qe.test(e.data)||(n=this._getOrReturnCtx(e,n),z(n,{validation:`base64url`,code:R.invalid_string,message:r.message}),t.dirty()):ye.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:R.invalid_string,...B.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...B.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...B.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...B.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...B.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...B.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...B.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...B.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...B.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...B.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...B.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...B.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...B.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...B.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...B.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...B.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...B.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...B.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...B.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...B.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...B.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...B.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...B.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...B.errToObj(t)})}nonempty(e){return this.min(1,B.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};st.create=e=>new st({checks:[],typeName:H.ZodString,coerce:e?.coerce??!1,...Le(e)});function ct(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var lt=class e extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==L.number){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.number,received:t.parsedType}),Oe}let t,n=new De;for(let r of this._def.checks)r.kind===`int`?ye.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),z(t,{code:R.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?ct(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_finite,message:r.message}),n.dirty()):ye.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,B.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,B.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,B.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,B.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:B.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:B.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:B.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:B.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:B.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:B.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:B.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&ye.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};lt.create=e=>new lt({checks:[],typeName:H.ZodNumber,coerce:e?.coerce||!1,...Le(e)});var ut=class e extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==L.bigint)return this._getInvalidInput(e);let t,n=new De;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):ye.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.bigint,received:t.parsedType}),Oe}gte(e,t){return this.setLimit(`min`,e,!0,B.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,B.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,B.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,B.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:B.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:B.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:B.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};ut.create=e=>new ut({checks:[],typeName:H.ZodBigInt,coerce:e?.coerce??!1,...Le(e)});var dt=class extends Re{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==L.boolean){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.boolean,received:t.parsedType}),Oe}return Ae(e.data)}};dt.create=e=>new dt({typeName:H.ZodBoolean,coerce:e?.coerce||!1,...Le(e)});var ft=class e extends Re{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==L.date){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.date,received:t.parsedType}),Oe}if(Number.isNaN(e.data.getTime()))return z(this._getOrReturnCtx(e),{code:R.invalid_date}),Oe;let t=new De,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):ye.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:B.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:B.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};ft.create=e=>new ft({checks:[],coerce:e?.coerce||!1,typeName:H.ZodDate,...Le(e)});var pt=class extends Re{_parse(e){if(this._getType(e)!==L.symbol){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.symbol,received:t.parsedType}),Oe}return Ae(e.data)}};pt.create=e=>new pt({typeName:H.ZodSymbol,...Le(e)});var mt=class extends Re{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.undefined,received:t.parsedType}),Oe}return Ae(e.data)}};mt.create=e=>new mt({typeName:H.ZodUndefined,...Le(e)});var ht=class extends Re{_parse(e){if(this._getType(e)!==L.null){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.null,received:t.parsedType}),Oe}return Ae(e.data)}};ht.create=e=>new ht({typeName:H.ZodNull,...Le(e)});var gt=class extends Re{constructor(){super(...arguments),this._any=!0}_parse(e){return Ae(e.data)}};gt.create=e=>new gt({typeName:H.ZodAny,...Le(e)});var _t=class extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Ae(e.data)}};_t.create=e=>new _t({typeName:H.ZodUnknown,...Le(e)});var vt=class extends Re{_parse(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.never,received:t.parsedType}),Oe}};vt.create=e=>new vt({typeName:H.ZodNever,...Le(e)});var yt=class extends Re{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.void,received:t.parsedType}),Oe}return Ae(e.data)}};yt.create=e=>new yt({typeName:H.ZodVoid,...Le(e)});var bt=class e extends Re{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==L.array)return z(t,{code:R.invalid_type,expected:L.array,received:t.parsedType}),Oe;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(z(t,{code:e?R.too_big:R.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(z(t,{code:R.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(z(t,{code:R.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Fe(t,e,t.path,n)))).then(e=>De.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new Fe(t,e,t.path,n)));return De.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:B.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:B.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:B.toString(n)}})}nonempty(e){return this.min(1,e)}};bt.create=(e,t)=>new bt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:H.ZodArray,...Le(t)});function xt(e){if(e instanceof St){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Bt.create(xt(r))}return new St({...e._def,shape:()=>t})}else if(e instanceof bt)return new bt({...e._def,type:xt(e.element)});else if(e instanceof Bt)return Bt.create(xt(e.unwrap()));else if(e instanceof Vt)return Vt.create(xt(e.unwrap()));else if(e instanceof Ot)return Ot.create(e.items.map(e=>xt(e)));else return e}var St=class e extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape();return this._cached={shape:e,keys:ye.objectKeys(e)},this._cached}_parse(e){if(this._getType(e)!==L.object){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.object,received:t.parsedType}),Oe}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof vt&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new Fe(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof vt){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(z(n,{code:R.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new Fe(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>De.mergeObjectSync(t,e)):De.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return B.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:B.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:H.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of ye.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of ye.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return xt(this)}partial(t){let n={};for(let e of ye.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of ye.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Bt;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return Ft(ye.objectKeys(this.shape))}};St.create=(e,t)=>new St({shape:()=>e,unknownKeys:`strip`,catchall:vt.create(),typeName:H.ZodObject,...Le(t)}),St.strictCreate=(e,t)=>new St({shape:()=>e,unknownKeys:`strict`,catchall:vt.create(),typeName:H.ZodObject,...Le(t)}),St.lazycreate=(e,t)=>new St({shape:e,unknownKeys:`strip`,catchall:vt.create(),typeName:H.ZodObject,...Le(t)});var Ct=class extends Re{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Se(e.ctx.common.issues));return z(t,{code:R.invalid_union,unionErrors:n}),Oe}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Se(e));return z(t,{code:R.invalid_union,unionErrors:i}),Oe}}get options(){return this._def.options}};Ct.create=(e,t)=>new Ct({options:e,typeName:H.ZodUnion,...Le(t)});const wt=e=>e instanceof Nt?wt(e.schema):e instanceof zt?wt(e.innerType()):e instanceof Pt?[e.value]:e instanceof It?e.options:e instanceof Lt?ye.objectValues(e.enum):e instanceof Ht?wt(e._def.innerType):e instanceof mt?[void 0]:e instanceof ht?[null]:e instanceof Bt?[void 0,...wt(e.unwrap())]:e instanceof Vt?[null,...wt(e.unwrap())]:e instanceof Gt||e instanceof qt?wt(e.unwrap()):e instanceof Ut?wt(e._def.innerType):[];var Tt=class e extends Re{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.object)return z(t,{code:R.invalid_type,expected:L.object,received:t.parsedType}),Oe;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(z(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=wt(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:H.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Le(r)})}};function Et(e,t){let n=xe(e),r=xe(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){let n=ye.objectKeys(t),r=ye.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Et(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Et(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===L.date&&r===L.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var Dt=class extends Re{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(je(e)||je(r))return Oe;let i=Et(e.value,r.value);return i.valid?((Me(e)||Me(r))&&t.dirty(),{status:t.value,value:i.data}):(z(n,{code:R.invalid_intersection_types}),Oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Dt.create=(e,t,n)=>new Dt({left:e,right:t,typeName:H.ZodIntersection,...Le(n)});var Ot=class e extends Re{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.array)return z(n,{code:R.invalid_type,expected:L.array,received:n.parsedType}),Oe;if(n.data.length<this._def.items.length)return z(n,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),Oe;!this._def.rest&&n.data.length>this._def.items.length&&(z(n,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Fe(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>De.mergeArray(t,e)):De.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ot.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Ot({items:e,typeName:H.ZodTuple,rest:null,...Le(t)})};var kt=class e extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.object)return z(n,{code:R.invalid_type,expected:L.object,received:n.parsedType}),Oe;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new Fe(n,e,n.path,e)),value:a._parse(new Fe(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?De.mergeObjectAsync(t,r):De.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new e({keyType:t,valueType:n,typeName:H.ZodRecord,...Le(r)}):new e({keyType:st.create(),valueType:t,typeName:H.ZodRecord,...Le(n)})}},At=class extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.map)return z(n,{code:R.invalid_type,expected:L.map,received:n.parsedType}),Oe;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new Fe(n,e,n.path,[a,`key`])),value:i._parse(new Fe(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return Oe;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return Oe;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};At.create=(e,t,n)=>new At({valueType:t,keyType:e,typeName:H.ZodMap,...Le(n)});var jt=class e extends Re{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.set)return z(n,{code:R.invalid_type,expected:L.set,received:n.parsedType}),Oe;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(z(n,{code:R.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(z(n,{code:R.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return Oe;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new Fe(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:B.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:B.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};jt.create=(e,t)=>new jt({valueType:e,minSize:null,maxSize:null,typeName:H.ZodSet,...Le(t)});var Mt=class e extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.function)return z(t,{code:R.invalid_type,expected:L.function,received:t.parsedType}),Oe;function n(e,n){return Ee({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Te(),Ce].filter(e=>!!e),issueData:{code:R.invalid_arguments,argumentsError:n}})}function r(e,n){return Ee({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Te(),Ce].filter(e=>!!e),issueData:{code:R.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Rt){let e=this;return Ae(async function(...t){let o=new Se([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return Ae(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new Se([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new Se([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ot.create(t).rest(_t.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Ot.create([]).rest(_t.create()),returns:n||_t.create(),typeName:H.ZodFunction,...Le(r)})}},Nt=class extends Re{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Nt.create=(e,t)=>new Nt({getter:e,typeName:H.ZodLazy,...Le(t)});var Pt=class extends Re{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return z(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),Oe}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Pt.create=(e,t)=>new Pt({value:e,typeName:H.ZodLiteral,...Le(t)});function Ft(e,t){return new It({values:e,typeName:H.ZodEnum,...Le(t)})}var It=class e extends Re{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return z(t,{expected:ye.joinValues(n),received:t.parsedType,code:R.invalid_type}),Oe}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return z(t,{received:t.data,code:R.invalid_enum_value,options:n}),Oe}return Ae(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};It.create=Ft;var Lt=class extends Re{_parse(e){let t=ye.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==L.string&&n.parsedType!==L.number){let e=ye.objectValues(t);return z(n,{expected:ye.joinValues(e),received:n.parsedType,code:R.invalid_type}),Oe}if(this._cache||=new Set(ye.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=ye.objectValues(t);return z(n,{received:n.data,code:R.invalid_enum_value,options:e}),Oe}return Ae(e.data)}get enum(){return this._def.values}};Lt.create=(e,t)=>new Lt({values:e,typeName:H.ZodNativeEnum,...Le(t)});var Rt=class extends Re{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==L.promise&&t.common.async===!1?(z(t,{code:R.invalid_type,expected:L.promise,received:t.parsedType}),Oe):Ae((t.parsedType===L.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Rt.create=(e,t)=>new Rt({type:e,typeName:H.ZodPromise,...Le(t)});var zt=class extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===H.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{z(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return Oe;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?Oe:r.status===`dirty`||t.value===`dirty`?ke(r.value):r});{if(t.value===`aborted`)return Oe;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?Oe:r.status===`dirty`||t.value===`dirty`?ke(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?Oe:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?Oe:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ne(e))return Oe;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>Ne(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):Oe);ye.assertNever(r)}};zt.create=(e,t,n)=>new zt({schema:e,typeName:H.ZodEffects,effect:t,...Le(n)}),zt.createWithPreprocess=(e,t,n)=>new zt({schema:t,effect:{type:`preprocess`,transform:e},typeName:H.ZodEffects,...Le(n)});var Bt=class extends Re{_parse(e){return this._getType(e)===L.undefined?Ae(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Bt.create=(e,t)=>new Bt({innerType:e,typeName:H.ZodOptional,...Le(t)});var Vt=class extends Re{_parse(e){return this._getType(e)===L.null?Ae(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Vt.create=(e,t)=>new Vt({innerType:e,typeName:H.ZodNullable,...Le(t)});var Ht=class extends Re{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===L.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Ht.create=(e,t)=>new Ht({innerType:e,typeName:H.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...Le(t)});var Ut=class extends Re{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Pe(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new Se(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new Se(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Ut.create=(e,t)=>new Ut({innerType:e,typeName:H.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...Le(t)});var Wt=class extends Re{_parse(e){if(this._getType(e)!==L.nan){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.nan,received:t.parsedType}),Oe}return{status:`valid`,value:e.data}}};Wt.create=e=>new Wt({typeName:H.ZodNaN,...Le(e)});var Gt=class extends Re{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Kt=class e extends Re{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?Oe:e.status===`dirty`?(t.dirty(),ke(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?Oe:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:H.ZodPipeline})}},qt=class extends Re{_parse(e){let t=this._def.innerType._parse(e),n=e=>(Ne(e)&&(e.value=Object.freeze(e.value)),e);return Pe(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};qt.create=(e,t)=>new qt({innerType:e,typeName:H.ZodReadonly,...Le(t)}),St.lazycreate;var H;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(H||={});const U=st.create,Jt=lt.create;Wt.create,ut.create;const Yt=dt.create;ft.create,pt.create,mt.create,ht.create,gt.create,_t.create,vt.create,yt.create;const Xt=bt.create,Zt=St.create;St.strictCreate;const Qt=Ct.create,$t=Tt.create;Dt.create,Ot.create;const en=kt.create;At.create,jt.create,Mt.create,Nt.create;const tn=Pt.create,nn=It.create;Lt.create,Rt.create,zt.create,Bt.create,Vt.create,zt.createWithPreprocess,Kt.create,Object.freeze({status:`aborted`});function W(e,t,n){function r(n,r){var i;for(let a in Object.defineProperty(n,`_zod`,{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r),o.prototype)a in n||Object.defineProperty(n,a,{value:o.prototype[a].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var rn=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}};const an={};function on(e){return e&&Object.assign(an,e),an}function sn(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function cn(e,t){return typeof t==`bigint`?t.toString():t}function ln(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function un(e){return e==null}function dn(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function fn(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}function pn(e,t,n){Object.defineProperty(e,t,{get(){{let r=n();return e[t]=r,r}throw Error(`cached value already set`)},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function mn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function hn(e){return JSON.stringify(e)}const gn=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function _n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const vn=ln(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function yn(e){if(_n(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(_n(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}const bn=new Set([`string`,`number`,`symbol`]);function xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Sn(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Cn(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function wn(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const Tn={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function En(e,t){let n={},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return Sn(e,{...e._zod.def,shape:n,checks:[]})}function Dn(e,t){let n={...e._zod.def.shape},r=e._zod.def;for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return Sn(e,{...e._zod.def,shape:n,checks:[]})}function On(e,t){if(!yn(t))throw Error(`Invalid input to extend: expected a plain object`);return Sn(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return mn(this,`shape`,n),n},checks:[]})}function kn(e,t){return Sn(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return mn(this,`shape`,n),n},catchall:t._zod.def.catchall,checks:[]})}function An(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Sn(t,{...t._zod.def,shape:i,checks:[]})}function jn(e,t,n){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Sn(t,{...t._zod.def,shape:i,checks:[]})}function Mn(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Nn(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Pn(e){return typeof e==`string`?e:e?.message}function Fn(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Pn(e.inst?._zod.def?.error?.(e))??Pn(t?.error?.(e))??Pn(n.customError?.(e))??Pn(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function In(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ln(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const Rn=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),Object.defineProperty(e,`message`,{get(){return JSON.stringify(t,cn,2)},enumerable:!0}),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},zn=W(`$ZodError`,Rn),Bn=W(`$ZodError`,Rn,{Parent:Error});function Vn(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Hn(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if(t.code===`invalid_union`&&t.errors.length)t.errors.map(e=>i({issues:e}));else if(t.code===`invalid_key`)i({issues:t.issues});else if(t.code===`invalid_element`)i({issues:t.issues});else if(t.path.length===0)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}const Un=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new rn;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Fn(e,a,on())));throw gn(t,i?.callee),t}return o.value},Wn=Un(Bn),Gn=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Fn(e,a,on())));throw gn(t,i?.callee),t}return o.value},Kn=Gn(Bn),qn=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new rn;return a.issues.length?{success:!1,error:new(e??zn)(a.issues.map(e=>Fn(e,i,on())))}:{success:!0,data:a.value}},Jn=qn(Bn),Yn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Fn(e,i,on())))}:{success:!0,data:a.value}},Xn=Yn(Bn),Zn=/^[cC][^\s-]{8,}$/,Qn=/^[0-9a-z]+$/,$n=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,er=/^[0-9a-vA-V]{20}$/,tr=/^[A-Za-z0-9]{27}$/,nr=/^[a-zA-Z0-9_-]{21}$/,rr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ir=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ar=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,or=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function sr(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const cr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,ur=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pr=/^[A-Za-z0-9_-]*$/,mr=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,hr=/^\+(?:[0-9]){6,14}[0-9]$/,gr=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,_r=RegExp(`^${gr}$`);function vr(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yr(e){return RegExp(`^${vr(e)}$`)}function br(e){let t=vr({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-]\\d{2}:\\d{2})`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${gr}T(?:${r})$`)}const xr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Sr=/^\d+$/,Cr=/^-?\d+(?:\.\d+)?/i,wr=/true|false/i,Tr=/null/i,Er=/^[^A-Z]*$/,Dr=/^[^a-z]*$/,Or=W(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),kr={number:`number`,bigint:`bigint`,object:`date`},Ar=W(`$ZodCheckLessThan`,(e,t)=>{Or.init(e,t);let n=kr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jr=W(`$ZodCheckGreaterThan`,(e,t)=>{Or.init(e,t);let n=kr[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Mr=W(`$ZodCheckMultipleOf`,(e,t)=>{Or.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):fn(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Nr=W(`$ZodCheckNumberFormat`,(e,t)=>{Or.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Tn[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Sr)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inst:e})}}),Pr=W(`$ZodCheckMaxLength`,(e,t)=>{var n;Or.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!un(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=In(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fr=W(`$ZodCheckMinLength`,(e,t)=>{var n;Or.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!un(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=In(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ir=W(`$ZodCheckLengthEquals`,(e,t)=>{var n;Or.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!un(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=In(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Lr=W(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Or.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Rr=W(`$ZodCheckRegex`,(e,t)=>{Lr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zr=W(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Er,Lr.init(e,t)}),Br=W(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Dr,Lr.init(e,t)}),Vr=W(`$ZodCheckIncludes`,(e,t)=>{Or.init(e,t);let n=xn(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Hr=W(`$ZodCheckStartsWith`,(e,t)=>{Or.init(e,t);let n=RegExp(`^${xn(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ur=W(`$ZodCheckEndsWith`,(e,t)=>{Or.init(e,t);let n=RegExp(`.*${xn(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Wr=W(`$ZodCheckOverwrite`,(e,t)=>{Or.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});var Gr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
`))}};const Kr={major:4,minor:0,patch:0},qr=W(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Mn(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new rn;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Mn(e,t))});else{if(e.issues.length===t)continue;r||=Mn(e,t)}}return i?i.then(()=>e):e};e._zod.run=(n,i)=>{let a=e._zod.parse(n,i);if(a instanceof Promise){if(i.async===!1)throw new rn;return a.then(e=>t(e,r,i))}return t(a,r,i)}}e[`~standard`]={validate:t=>{try{let n=Jn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Xn(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Jr=W(`$ZodString`,(e,t)=>{qr.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xr(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Yr=W(`$ZodStringFormat`,(e,t)=>{Lr.init(e,t),Jr.init(e,t)}),Xr=W(`$ZodGUID`,(e,t)=>{t.pattern??=ir,Yr.init(e,t)}),Zr=W(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=ar(e)}else t.pattern??=ar();Yr.init(e,t)}),Qr=W(`$ZodEmail`,(e,t)=>{t.pattern??=or,Yr.init(e,t)}),$r=W(`$ZodURL`,(e,t)=>{Yr.init(e,t),e._zod.check=n=>{try{let r=n.value,i=new URL(r),a=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:mr.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith(`/`)&&a.endsWith(`/`)?n.value=a.slice(0,-1):n.value=a;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ei=W(`$ZodEmoji`,(e,t)=>{t.pattern??=sr(),Yr.init(e,t)}),ti=W(`$ZodNanoID`,(e,t)=>{t.pattern??=nr,Yr.init(e,t)}),ni=W(`$ZodCUID`,(e,t)=>{t.pattern??=Zn,Yr.init(e,t)}),ri=W(`$ZodCUID2`,(e,t)=>{t.pattern??=Qn,Yr.init(e,t)}),ii=W(`$ZodULID`,(e,t)=>{t.pattern??=$n,Yr.init(e,t)}),ai=W(`$ZodXID`,(e,t)=>{t.pattern??=er,Yr.init(e,t)}),oi=W(`$ZodKSUID`,(e,t)=>{t.pattern??=tr,Yr.init(e,t)}),si=W(`$ZodISODateTime`,(e,t)=>{t.pattern??=br(t),Yr.init(e,t)}),ci=W(`$ZodISODate`,(e,t)=>{t.pattern??=_r,Yr.init(e,t)}),li=W(`$ZodISOTime`,(e,t)=>{t.pattern??=yr(t),Yr.init(e,t)}),ui=W(`$ZodISODuration`,(e,t)=>{t.pattern??=rr,Yr.init(e,t)}),di=W(`$ZodIPv4`,(e,t)=>{t.pattern??=cr,Yr.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),fi=W(`$ZodIPv6`,(e,t)=>{t.pattern??=lr,Yr.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),pi=W(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ur,Yr.init(e,t)}),mi=W(`$ZodCIDRv6`,(e,t)=>{t.pattern??=dr,Yr.init(e,t),e._zod.check=n=>{let[r,i]=n.value.split(`/`);try{if(!i)throw Error();let e=Number(i);if(`${e}`!==i||e<0||e>128)throw Error();new URL(`http://[${r}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function hi(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const gi=W(`$ZodBase64`,(e,t)=>{t.pattern??=fr,Yr.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{hi(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function _i(e){if(!pr.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return hi(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const vi=W(`$ZodBase64URL`,(e,t)=>{t.pattern??=pr,Yr.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{_i(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),yi=W(`$ZodE164`,(e,t)=>{t.pattern??=hr,Yr.init(e,t)});function bi(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}const xi=W(`$ZodJWT`,(e,t)=>{Yr.init(e,t),e._zod.check=n=>{bi(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Si=W(`$ZodNumber`,(e,t)=>{qr.init(e,t),e._zod.pattern=e._zod.bag.pattern??Cr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ci=W(`$ZodNumber`,(e,t)=>{Nr.init(e,t),Si.init(e,t)}),wi=W(`$ZodBoolean`,(e,t)=>{qr.init(e,t),e._zod.pattern=wr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Ti=W(`$ZodNull`,(e,t)=>{qr.init(e,t),e._zod.pattern=Tr,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ei=W(`$ZodUnknown`,(e,t)=>{qr.init(e,t),e._zod.parse=e=>e}),Di=W(`$ZodNever`,(e,t)=>{qr.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Oi(e,t,n){e.issues.length&&t.issues.push(...Nn(n,e.issues)),t.value[n]=e.value}const ki=W(`$ZodArray`,(e,t)=>{qr.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Oi(t,n,e))):Oi(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Ai(e,t,n){e.issues.length&&t.issues.push(...Nn(n,e.issues)),t.value[n]=e.value}function ji(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Nn(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const Mi=W(`$ZodObject`,(e,t)=>{qr.init(e,t);let n=ln(()=>{let e=Object.keys(t.shape);for(let n of e)if(!(t.shape[n]instanceof qr))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=wn(t.shape);return{shape:t.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}});pn(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=e=>{let t=new Gr([`shape`,`payload`,`ctx`]),r=n.value,i=e=>{let t=hn(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of r.keys)a[e]=`key_${o++}`;t.write(`const newResult = {}`);for(let e of r.keys)if(r.optionalKeys.has(e)){let n=a[e];t.write(`const ${n} = ${i(e)};`);let r=hn(e);t.write(`
if (${n}.issues.length) {
if (input[${r}] === undefined) {
if (${r} in input) {
newResult[${r}] = undefined;
}
} else {
payload.issues = payload.issues.concat(
${n}.issues.map((iss) => ({
...iss,
path: iss.path ? [${r}, ...iss.path] : [${r}],
}))
);
}
} else if (${n}.value === undefined) {
if (${r} in input) newResult[${r}] = undefined;
} else {
newResult[${r}] = ${n}.value;
}
`)}else{let n=a[e];t.write(`const ${n} = ${i(e)};`),t.write(`
if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
...iss,
path: iss.path ? [${hn(e)}, ...iss.path] : [${hn(e)}]
})));`),t.write(`newResult[${hn(e)}] = ${n}.value`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},i,a=_n,o=!an.jitless,s=o&&vn.value,c=t.catchall,l;e._zod.parse=(u,d)=>{l??=n.value;let f=u.value;if(!a(f))return u.issues.push({expected:`object`,code:`invalid_type`,input:f,inst:e}),u;let p=[];if(o&&s&&d?.async===!1&&d.jitless!==!0)i||=r(t.shape),u=i(u,d);else{u.value={};let e=l.shape;for(let t of l.keys){let n=e[t],r=n._zod.run({value:f[t],issues:[]},d),i=n._zod.optin===`optional`&&n._zod.optout===`optional`;r instanceof Promise?p.push(r.then(e=>i?ji(e,u,t,f):Ai(e,u,t))):i?ji(r,u,t,f):Ai(r,u,t)}}if(!c)return p.length?Promise.all(p).then(()=>u):u;let m=[],h=l.keySet,g=c._zod,_=g.def.type;for(let e of Object.keys(f)){if(h.has(e))continue;if(_===`never`){m.push(e);continue}let t=g.run({value:f[e],issues:[]},d);t instanceof Promise?p.push(t.then(t=>Ai(t,u,e))):Ai(t,u,e)}return m.length&&u.issues.push({code:`unrecognized_keys`,keys:m,input:f,inst:e}),p.length?Promise.all(p).then(()=>u):u}});function Ni(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;return t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Fn(e,r,on())))}),t}const Pi=W(`$ZodUnion`,(e,t)=>{qr.init(e,t),pn(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),pn(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),pn(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),pn(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>dn(e.source)).join(`|`)})$`)}}),e._zod.parse=(n,r)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},r);if(t instanceof Promise)a.push(t),i=!0;else{if(t.issues.length===0)return t;a.push(t)}}return i?Promise.all(a).then(t=>Ni(t,n,e,r)):Ni(a,n,e,r)}}),Fi=W(`$ZodDiscriminatedUnion`,(e,t)=>{Pi.init(e,t);let n=e._zod.parse;pn(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=ln(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!_n(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,input:o,path:[t.discriminator],inst:e}),i)}}),Ii=W(`$ZodIntersection`,(e,t)=>{qr.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ri(e,t,n)):Ri(e,i,a)}});function Li(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yn(e)&&yn(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Li(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Li(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ri(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Mn(e))return e;let r=Li(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const zi=W(`$ZodRecord`,(e,t)=>{qr.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!yn(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[];if(t.keyType._zod.values){let o=t.keyType._zod.values;n.value={};for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...Nn(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...Nn(e,o.issues)),n.value[e]=o.value)}let s;for(let e in i)o.has(e)||(s??=[],s.push(e));s&&s.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:s})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({origin:`record`,code:`invalid_key`,issues:s.issues.map(e=>Fn(e,r,on())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Nn(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Nn(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Bi=W(`$ZodEnum`,(e,t)=>{qr.init(e,t);let n=sn(t.entries);e._zod.values=new Set(n),e._zod.pattern=RegExp(`^(${n.filter(e=>bn.has(typeof e)).map(e=>typeof e==`string`?xn(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,r)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:`invalid_value`,values:n,input:i,inst:e}),t}}),Vi=W(`$ZodLiteral`,(e,t)=>{qr.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?xn(e):e?e.toString():String(e)).join(`|`)})$`),e._zod.parse=(n,r)=>{let i=n.value;return e._zod.values.has(i)||n.issues.push({code:`invalid_value`,values:t.values,input:i,inst:e}),n}}),Hi=W(`$ZodTransform`,(e,t)=>{qr.init(e,t),e._zod.parse=(e,n)=>{let r=t.transform(e.value,e);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(t=>(e.value=t,e));if(r instanceof Promise)throw new rn;return e.value=r,e}}),Ui=W(`$ZodOptional`,(e,t)=>{qr.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,pn(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),pn(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${dn(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>t.innerType._zod.optin===`optional`?t.innerType._zod.run(e,n):e.value===void 0?e:t.innerType._zod.run(e,n)}),Wi=W(`$ZodNullable`,(e,t)=>{qr.init(e,t),pn(e._zod,`optin`,()=>t.innerType._zod.optin),pn(e._zod,`optout`,()=>t.innerType._zod.optout),pn(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${dn(e.source)}|null)$`):void 0}),pn(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Gi=W(`$ZodDefault`,(e,t)=>{qr.init(e,t),e._zod.optin=`optional`,pn(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Ki(e,t)):Ki(r,t)}});function Ki(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const qi=W(`$ZodPrefault`,(e,t)=>{qr.init(e,t),e._zod.optin=`optional`,pn(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Ji=W(`$ZodNonOptional`,(e,t)=>{qr.init(e,t),pn(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Yi(t,e)):Yi(i,e)}});function Yi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const Xi=W(`$ZodCatch`,(e,t)=>{qr.init(e,t),e._zod.optin=`optional`,pn(e._zod,`optout`,()=>t.innerType._zod.optout),pn(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Fn(e,n,on()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Fn(e,n,on()))},input:e.value}),e.issues=[]),e)}}),Zi=W(`$ZodPipe`,(e,t)=>{qr.init(e,t),pn(e._zod,`values`,()=>t.in._zod.values),pn(e._zod,`optin`,()=>t.in._zod.optin),pn(e._zod,`optout`,()=>t.out._zod.optout),e._zod.parse=(e,n)=>{let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Qi(e,t,n)):Qi(r,t,n)}});function Qi(e,t,n){return Mn(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const $i=W(`$ZodReadonly`,(e,t)=>{qr.init(e,t),pn(e._zod,`propValues`,()=>t.innerType._zod.propValues),pn(e._zod,`values`,()=>t.innerType._zod.values),pn(e._zod,`optin`,()=>t.innerType._zod.optin),pn(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ea):ea(r)}});function ea(e){return e.value=Object.freeze(e.value),e}const ta=W(`$ZodCustom`,(e,t)=>{Or.init(e,t),qr.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>na(t,n,r,e));na(i,n,r,e)}});function na(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ln(e))}}var ra=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function ia(){return new ra}const aa=ia();function oa(e,t){return new e({type:`string`,...Cn(t)})}function sa(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Cn(t)})}function ca(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Cn(t)})}function la(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Cn(t)})}function ua(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Cn(t)})}function da(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Cn(t)})}function fa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Cn(t)})}function pa(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Cn(t)})}function ma(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Cn(t)})}function ha(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Cn(t)})}function ga(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Cn(t)})}function _a(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Cn(t)})}function va(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Cn(t)})}function ya(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Cn(t)})}function ba(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Cn(t)})}function xa(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Cn(t)})}function Sa(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Cn(t)})}function Ca(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Cn(t)})}function wa(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Cn(t)})}function Ta(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Cn(t)})}function Ea(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Cn(t)})}function Da(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Cn(t)})}function Oa(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Cn(t)})}function ka(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Cn(t)})}function Aa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Cn(t)})}function ja(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Cn(t)})}function Ma(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Cn(t)})}function Na(e,t){return new e({type:`number`,checks:[],...Cn(t)})}function Pa(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Cn(t)})}function Fa(e,t){return new e({type:`boolean`,...Cn(t)})}function Ia(e,t){return new e({type:`null`,...Cn(t)})}function La(e){return new e({type:`unknown`})}function Ra(e,t){return new e({type:`never`,...Cn(t)})}function za(e,t){return new Ar({check:`less_than`,...Cn(t),value:e,inclusive:!1})}function Ba(e,t){return new Ar({check:`less_than`,...Cn(t),value:e,inclusive:!0})}function Va(e,t){return new jr({check:`greater_than`,...Cn(t),value:e,inclusive:!1})}function Ha(e,t){return new jr({check:`greater_than`,...Cn(t),value:e,inclusive:!0})}function Ua(e,t){return new Mr({check:`multiple_of`,...Cn(t),value:e})}function Wa(e,t){return new Pr({check:`max_length`,...Cn(t),maximum:e})}function Ga(e,t){return new Fr({check:`min_length`,...Cn(t),minimum:e})}function Ka(e,t){return new Ir({check:`length_equals`,...Cn(t),length:e})}function qa(e,t){return new Rr({check:`string_format`,format:`regex`,...Cn(t),pattern:e})}function Ja(e){return new zr({check:`string_format`,format:`lowercase`,...Cn(e)})}function Ya(e){return new Br({check:`string_format`,format:`uppercase`,...Cn(e)})}function Xa(e,t){return new Vr({check:`string_format`,format:`includes`,...Cn(t),includes:e})}function Za(e,t){return new Hr({check:`string_format`,format:`starts_with`,...Cn(t),prefix:e})}function Qa(e,t){return new Ur({check:`string_format`,format:`ends_with`,...Cn(t),suffix:e})}function $a(e){return new Wr({check:`overwrite`,tx:e})}function eo(e){return $a(t=>t.normalize(e))}function to(){return $a(e=>e.trim())}function no(){return $a(e=>e.toLowerCase())}function ro(){return $a(e=>e.toUpperCase())}function io(e,t,n){return new e({type:`array`,element:t,...Cn(n)})}function ao(e,t,n){let r=Cn(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function oo(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Cn(n)})}var so=class{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??aa,this.target=e?.target??`draft-2020-12`,this.unrepresentable=e?.unrepresentable??`throw`,this.override=e?.override??(()=>{}),this.io=e?.io??`output`,this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var n;let r=e._zod.def,i={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},a=this.seen.get(e);if(a)return a.count++,t.schemaPath.includes(e)&&(a.cycle=t.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let n={...t,schemaPath:[...t.schemaPath,e],path:t.path},a=e._zod.parent;if(a)o.ref=a,this.process(a,n),this.seen.get(a).isParent=!0;else{let t=o.schema;switch(r.type){case`string`:{let n=t;n.type=`string`;let{minimum:r,maximum:a,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof r==`number`&&(n.minLength=r),typeof a==`number`&&(n.maxLength=a),s&&(n.format=i[s]??s,n.format===``&&delete n.format),l&&(n.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?n.pattern=e[0].source:e.length>1&&(o.schema.allOf=[...e.map(e=>({...this.target===`draft-7`?{type:`string`}:{},pattern:e.source}))])}break}case`number`:{let n=t,{minimum:r,maximum:i,format:a,multipleOf:o,exclusiveMaximum:s,exclusiveMinimum:c}=e._zod.bag;typeof a==`string`&&a.includes(`int`)?n.type=`integer`:n.type=`number`,typeof c==`number`&&(n.exclusiveMinimum=c),typeof r==`number`&&(n.minimum=r,typeof c==`number`&&(c>=r?delete n.minimum:delete n.exclusiveMinimum)),typeof s==`number`&&(n.exclusiveMaximum=s),typeof i==`number`&&(n.maximum=i,typeof s==`number`&&(s<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof o==`number`&&(n.multipleOf=o);break}case`boolean`:{let e=t;e.type=`boolean`;break}case`bigint`:if(this.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`);break;case`symbol`:if(this.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`);break;case`null`:t.type=`null`;break;case`any`:break;case`unknown`:break;case`undefined`:if(this.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`);break;case`void`:if(this.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`);break;case`never`:t.not={};break;case`date`:if(this.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`);break;case`array`:{let i=t,{minimum:a,maximum:o}=e._zod.bag;typeof a==`number`&&(i.minItems=a),typeof o==`number`&&(i.maxItems=o),i.type=`array`,i.items=this.process(r.element,{...n,path:[...n.path,`items`]});break}case`object`:{let e=t;e.type=`object`,e.properties={};let i=r.shape;for(let t in i)e.properties[t]=this.process(i[t],{...n,path:[...n.path,`properties`,t]});let a=new Set(Object.keys(i)),o=new Set([...a].filter(e=>{let t=r.shape[e]._zod;return this.io===`input`?t.optin===void 0:t.optout===void 0}));o.size>0&&(e.required=Array.from(o)),r.catchall?._zod.def.type===`never`?e.additionalProperties=!1:r.catchall?r.catchall&&(e.additionalProperties=this.process(r.catchall,{...n,path:[...n.path,`additionalProperties`]})):this.io===`output`&&(e.additionalProperties=!1);break}case`union`:{let e=t;e.anyOf=r.options.map((e,t)=>this.process(e,{...n,path:[...n.path,`anyOf`,t]}));break}case`intersection`:{let e=t,i=this.process(r.left,{...n,path:[...n.path,`allOf`,0]}),a=this.process(r.right,{...n,path:[...n.path,`allOf`,1]}),o=e=>`allOf`in e&&Object.keys(e).length===1;e.allOf=[...o(i)?i.allOf:[i],...o(a)?a.allOf:[a]];break}case`tuple`:{let i=t;i.type=`array`;let a=r.items.map((e,t)=>this.process(e,{...n,path:[...n.path,`prefixItems`,t]}));if(this.target===`draft-2020-12`?i.prefixItems=a:i.items=a,r.rest){let e=this.process(r.rest,{...n,path:[...n.path,`items`]});this.target===`draft-2020-12`?i.items=e:i.additionalItems=e}r.rest&&(i.items=this.process(r.rest,{...n,path:[...n.path,`items`]}));let{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s);break}case`record`:{let e=t;e.type=`object`,e.propertyNames=this.process(r.keyType,{...n,path:[...n.path,`propertyNames`]}),e.additionalProperties=this.process(r.valueType,{...n,path:[...n.path,`additionalProperties`]});break}case`map`:if(this.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`);break;case`set`:if(this.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`);break;case`enum`:{let e=t,n=sn(r.entries);n.every(e=>typeof e==`number`)&&(e.type=`number`),n.every(e=>typeof e==`string`)&&(e.type=`string`),e.enum=n;break}case`literal`:{let e=t,n=[];for(let e of r.values)if(e===void 0){if(this.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(this.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);n.push(Number(e))}else n.push(e);if(n.length!==0)if(n.length===1){let t=n[0];e.type=t===null?`null`:typeof t,e.const=t}else n.every(e=>typeof e==`number`)&&(e.type=`number`),n.every(e=>typeof e==`string`)&&(e.type=`string`),n.every(e=>typeof e==`boolean`)&&(e.type=`string`),n.every(e=>e===null)&&(e.type=`null`),e.enum=n;break}case`file`:{let n=t,r={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:i,maximum:a,mime:o}=e._zod.bag;i!==void 0&&(r.minLength=i),a!==void 0&&(r.maxLength=a),o?o.length===1?(r.contentMediaType=o[0],Object.assign(n,r)):n.anyOf=o.map(e=>({...r,contentMediaType:e})):Object.assign(n,r);break}case`transform`:if(this.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`);break;case`nullable`:t.anyOf=[this.process(r.innerType,n),{type:`null`}];break;case`nonoptional`:this.process(r.innerType,n),o.ref=r.innerType;break;case`success`:{let e=t;e.type=`boolean`;break}case`default`:this.process(r.innerType,n),o.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue));break;case`prefault`:this.process(r.innerType,n),o.ref=r.innerType,this.io===`input`&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break;case`catch`:{this.process(r.innerType,n),o.ref=r.innerType;let e;try{e=r.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}t.default=e;break}case`nan`:if(this.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`);break;case`template_literal`:{let n=t,r=e._zod.pattern;if(!r)throw Error(`Pattern not found in template literal`);n.type=`string`,n.pattern=r.source;break}case`pipe`:{let e=this.io===`input`?r.in._zod.def.type===`transform`?r.out:r.in:r.out;this.process(e,n),o.ref=e;break}case`readonly`:this.process(r.innerType,n),o.ref=r.innerType,t.readOnly=!0;break;case`promise`:this.process(r.innerType,n),o.ref=r.innerType;break;case`optional`:this.process(r.innerType,n),o.ref=r.innerType;break;case`lazy`:{let t=e._zod.innerType;this.process(t,n),o.ref=t;break}case`custom`:if(this.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`);break;default:}}}let c=this.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),this.io===`input`&&lo(e)&&(delete o.schema.examples,delete o.schema.default),this.io===`input`&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,this.seen.get(e).schema}emit(e,t){let n={cycles:t?.cycles??`ref`,reused:t?.reused??`inline`,external:t?.external??void 0},r=this.seen.get(e);if(!r)throw Error(`Unprocessed schema. This is a bug in Zod.`);let i=e=>{let t=this.target===`draft-2020-12`?`$defs`:`definitions`;if(n.external){let r=n.external.registry.get(e[0])?.id,i=n.external.uri??(e=>e);if(r)return{ref:i(r)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${t}/${a}`}}if(e[1]===r)return{ref:`#`};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(n.cycles===`throw`)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join(`/`)}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let r=t[1];if(e===t[0]){a(t);continue}if(n.external){let r=n.external.registry.get(t[0])?.id;if(e!==t[0]&&r){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id){a(t);continue}if(r.cycle){a(t);continue}if(r.count>1&&n.reused===`ref`){a(t);continue}}let o=(e,t)=>{let n=this.seen.get(e),r=n.def??n.schema,i={...r};if(n.ref===null)return;let a=n.ref;if(n.ref=null,a){o(a,t);let e=this.seen.get(a).schema;e.$ref&&t.target===`draft-7`?(r.allOf=r.allOf??[],r.allOf.push(e)):(Object.assign(r,e),Object.assign(r,i))}n.isParent||this.override({zodSchema:e,jsonSchema:r,path:n.path??[]})};for(let e of[...this.seen.entries()].reverse())o(e[0],{target:this.target});let s={};if(this.target===`draft-2020-12`?s.$schema=`https://json-schema.org/draft/2020-12/schema`:this.target===`draft-7`?s.$schema=`http://json-schema.org/draft-07/schema#`:console.warn(`Invalid target: ${this.target}`),n.external?.uri){let t=n.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");s.$id=n.external.uri(t)}Object.assign(s,r.def);let c=n.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(c[t.defId]=t.def)}n.external||Object.keys(c).length>0&&(this.target===`draft-2020-12`?s.$defs=c:s.definitions=c);try{return JSON.parse(JSON.stringify(s))}catch{throw Error(`Error converting schema to JSON.`)}}};function co(e,t){if(e instanceof ra){let n=new so(t),r={};for(let t of e._idmap.entries()){let[e,r]=t;n.process(r)}let i={},a={registry:e,uri:t?.uri,defs:r};for(let r of e._idmap.entries()){let[e,o]=r;i[e]=n.emit(o,{...t,external:a})}return Object.keys(r).length>0&&(i.__shared={[n.target===`draft-2020-12`?`$defs`:`definitions`]:r}),{schemas:i}}let n=new so(t);return n.process(e),n.emit(e,t)}function lo(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case`string`:case`number`:case`bigint`:case`boolean`:case`date`:case`symbol`:case`undefined`:case`null`:case`any`:case`unknown`:case`never`:case`void`:case`literal`:case`enum`:case`nan`:case`file`:case`template_literal`:return!1;case`array`:return lo(r.element,n);case`object`:for(let e in r.shape)if(lo(r.shape[e],n))return!0;return!1;case`union`:for(let e of r.options)if(lo(e,n))return!0;return!1;case`intersection`:return lo(r.left,n)||lo(r.right,n);case`tuple`:for(let e of r.items)if(lo(e,n))return!0;return!!(r.rest&&lo(r.rest,n));case`record`:return lo(r.keyType,n)||lo(r.valueType,n);case`map`:return lo(r.keyType,n)||lo(r.valueType,n);case`set`:return lo(r.valueType,n);case`promise`:case`optional`:case`nonoptional`:case`nullable`:case`readonly`:return lo(r.innerType,n);case`lazy`:return lo(r.getter(),n);case`default`:return lo(r.innerType,n);case`prefault`:return lo(r.innerType,n);case`custom`:return!1;case`transform`:return!0;case`pipe`:return lo(r.in,n)||lo(r.out,n);case`success`:return!1;case`catch`:return!1;default:}throw Error(`Unknown schema type: ${r.type}`)}const uo=W(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);qr.init(e,t),e.def=t,e.parse=(t,n)=>Wn(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Jn(e,t,n),e.parseAsync=async(t,n)=>Kn(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Xn(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),e.clone=(t,n)=>Sn(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e))}),fo=W(`ZodMiniObject`,(e,t)=>{Mi.init(e,t),uo.init(e,t),pn(e,`shape`,()=>t.shape)});function po(e,t){return new fo({type:`object`,get shape(){return mn(this,`shape`,{...e}),this.shape},...Cn(t)})}function mo(e){return!!e._zod}function ho(e){let t=Object.values(e);if(t.length===0)return po({});let n=t.every(mo),r=t.every(e=>!mo(e));if(n)return po(e);if(r)return Zt(e);throw Error(`Mixed Zod versions detected in object shape.`)}function go(e,t){return mo(e)?Jn(e,t):e.safeParse(t)}async function _o(e,t){return mo(e)?await Xn(e,t):await e.safeParseAsync(t)}function vo(e){if(!e)return;let t;if(t=mo(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function yo(e){if(e){if(typeof e==`object`){let t=e,n=e;if(!t._def&&!n._zod){let t=Object.values(e);if(t.length>0&&t.every(e=>typeof e==`object`&&!!e&&(e._def!==void 0||e._zod!==void 0||typeof e.parse==`function`)))return ho(e)}}if(mo(e)){let t=e._zod?.def;if(t&&(t.type===`object`||t.shape!==void 0))return e}else if(e.shape!==void 0)return e}}function bo(e){if(e&&typeof e==`object`){if(`message`in e&&typeof e.message==`string`)return e.message;if(`issues`in e&&Array.isArray(e.issues)&&e.issues.length>0){let t=e.issues[0];if(t&&typeof t==`object`&&`message`in t)return String(t.message)}try{return JSON.stringify(e)}catch{return String(e)}}return String(e)}function xo(e){return e.description}function So(e){if(mo(e))return e._zod?.def?.type===`optional`;let t=e;return typeof e.isOptional==`function`?e.isOptional():t._def?.typeName===`ZodOptional`}function Co(e){if(mo(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}const wo=W(`ZodISODateTime`,(e,t)=>{si.init(e,t),Vo.init(e,t)});function To(e){return ka(wo,e)}const Eo=W(`ZodISODate`,(e,t)=>{ci.init(e,t),Vo.init(e,t)});function Do(e){return Aa(Eo,e)}const Oo=W(`ZodISOTime`,(e,t)=>{li.init(e,t),Vo.init(e,t)});function ko(e){return ja(Oo,e)}const Ao=W(`ZodISODuration`,(e,t)=>{ui.init(e,t),Vo.init(e,t)});function jo(e){return Ma(Ao,e)}const Mo=(e,t)=>{zn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Hn(e,t)},flatten:{value:t=>Vn(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get(){return e.issues.length===0}}})};W(`ZodError`,Mo);const No=W(`ZodError`,Mo,{Parent:Error}),Po=Un(No),Fo=Gn(No),Io=qn(No),Lo=Yn(No),Ro=W(`ZodType`,(e,t)=>(qr.init(e,t),e.def=t,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),e.clone=(t,n)=>Sn(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Po(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Io(e,t,n),e.parseAsync=async(t,n)=>Fo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Lo(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(rc(t,n)),e.superRefine=t=>e.check(ic(t)),e.overwrite=t=>e.check($a(t)),e.optional=()=>zs(e),e.nullable=()=>Vs(e),e.nullish=()=>zs(Vs(e)),e.nonoptional=t=>qs(e,t),e.array=()=>bs(e),e.or=t=>Ts([e,t]),e.and=t=>ks(e,t),e.transform=t=>Zs(e,Ls(t)),e.default=t=>Us(e,t),e.prefault=t=>Gs(e,t),e.catch=t=>Ys(e,t),e.pipe=t=>Zs(e,t),e.readonly=()=>$s(e),e.describe=t=>{let n=e.clone();return aa.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return aa.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return aa.get(e);let n=e.clone();return aa.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),zo=W(`_ZodString`,(e,t)=>{Jr.init(e,t),Ro.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(qa(...t)),e.includes=(...t)=>e.check(Xa(...t)),e.startsWith=(...t)=>e.check(Za(...t)),e.endsWith=(...t)=>e.check(Qa(...t)),e.min=(...t)=>e.check(Ga(...t)),e.max=(...t)=>e.check(Wa(...t)),e.length=(...t)=>e.check(Ka(...t)),e.nonempty=(...t)=>e.check(Ga(1,...t)),e.lowercase=t=>e.check(Ja(t)),e.uppercase=t=>e.check(Ya(t)),e.trim=()=>e.check(to()),e.normalize=(...t)=>e.check(eo(...t)),e.toLowerCase=()=>e.check(no()),e.toUpperCase=()=>e.check(ro())}),Bo=W(`ZodString`,(e,t)=>{Jr.init(e,t),zo.init(e,t),e.email=t=>e.check(sa(Ho,t)),e.url=t=>e.check(pa(Go,t)),e.jwt=t=>e.check(Oa(os,t)),e.emoji=t=>e.check(ma(Ko,t)),e.guid=t=>e.check(ca(Uo,t)),e.uuid=t=>e.check(la(Wo,t)),e.uuidv4=t=>e.check(ua(Wo,t)),e.uuidv6=t=>e.check(da(Wo,t)),e.uuidv7=t=>e.check(fa(Wo,t)),e.nanoid=t=>e.check(ha(qo,t)),e.guid=t=>e.check(ca(Uo,t)),e.cuid=t=>e.check(ga(Jo,t)),e.cuid2=t=>e.check(_a(Yo,t)),e.ulid=t=>e.check(va(Xo,t)),e.base64=t=>e.check(Ta(rs,t)),e.base64url=t=>e.check(Ea(is,t)),e.xid=t=>e.check(ya(Zo,t)),e.ksuid=t=>e.check(ba(Qo,t)),e.ipv4=t=>e.check(xa($o,t)),e.ipv6=t=>e.check(Sa(es,t)),e.cidrv4=t=>e.check(Ca(ts,t)),e.cidrv6=t=>e.check(wa(ns,t)),e.e164=t=>e.check(Da(as,t)),e.datetime=t=>e.check(To(t)),e.date=t=>e.check(Do(t)),e.time=t=>e.check(ko(t)),e.duration=t=>e.check(jo(t))});function G(e){return oa(Bo,e)}const Vo=W(`ZodStringFormat`,(e,t)=>{Yr.init(e,t),zo.init(e,t)}),Ho=W(`ZodEmail`,(e,t)=>{Qr.init(e,t),Vo.init(e,t)}),Uo=W(`ZodGUID`,(e,t)=>{Xr.init(e,t),Vo.init(e,t)}),Wo=W(`ZodUUID`,(e,t)=>{Zr.init(e,t),Vo.init(e,t)}),Go=W(`ZodURL`,(e,t)=>{$r.init(e,t),Vo.init(e,t)}),Ko=W(`ZodEmoji`,(e,t)=>{ei.init(e,t),Vo.init(e,t)}),qo=W(`ZodNanoID`,(e,t)=>{ti.init(e,t),Vo.init(e,t)}),Jo=W(`ZodCUID`,(e,t)=>{ni.init(e,t),Vo.init(e,t)}),Yo=W(`ZodCUID2`,(e,t)=>{ri.init(e,t),Vo.init(e,t)}),Xo=W(`ZodULID`,(e,t)=>{ii.init(e,t),Vo.init(e,t)}),Zo=W(`ZodXID`,(e,t)=>{ai.init(e,t),Vo.init(e,t)}),Qo=W(`ZodKSUID`,(e,t)=>{oi.init(e,t),Vo.init(e,t)}),$o=W(`ZodIPv4`,(e,t)=>{di.init(e,t),Vo.init(e,t)}),es=W(`ZodIPv6`,(e,t)=>{fi.init(e,t),Vo.init(e,t)}),ts=W(`ZodCIDRv4`,(e,t)=>{pi.init(e,t),Vo.init(e,t)}),ns=W(`ZodCIDRv6`,(e,t)=>{mi.init(e,t),Vo.init(e,t)}),rs=W(`ZodBase64`,(e,t)=>{gi.init(e,t),Vo.init(e,t)}),is=W(`ZodBase64URL`,(e,t)=>{vi.init(e,t),Vo.init(e,t)}),as=W(`ZodE164`,(e,t)=>{yi.init(e,t),Vo.init(e,t)}),os=W(`ZodJWT`,(e,t)=>{xi.init(e,t),Vo.init(e,t)}),ss=W(`ZodNumber`,(e,t)=>{Si.init(e,t),Ro.init(e,t),e.gt=(t,n)=>e.check(Va(t,n)),e.gte=(t,n)=>e.check(Ha(t,n)),e.min=(t,n)=>e.check(Ha(t,n)),e.lt=(t,n)=>e.check(za(t,n)),e.lte=(t,n)=>e.check(Ba(t,n)),e.max=(t,n)=>e.check(Ba(t,n)),e.int=t=>e.check(us(t)),e.safe=t=>e.check(us(t)),e.positive=t=>e.check(Va(0,t)),e.nonnegative=t=>e.check(Ha(0,t)),e.negative=t=>e.check(za(0,t)),e.nonpositive=t=>e.check(Ba(0,t)),e.multipleOf=(t,n)=>e.check(Ua(t,n)),e.step=(t,n)=>e.check(Ua(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function cs(e){return Na(ss,e)}const ls=W(`ZodNumberFormat`,(e,t)=>{Ci.init(e,t),ss.init(e,t)});function us(e){return Pa(ls,e)}const ds=W(`ZodBoolean`,(e,t)=>{wi.init(e,t),Ro.init(e,t)});function fs(e){return Fa(ds,e)}const ps=W(`ZodNull`,(e,t)=>{Ti.init(e,t),Ro.init(e,t)});function ms(e){return Ia(ps,e)}const hs=W(`ZodUnknown`,(e,t)=>{Ei.init(e,t),Ro.init(e,t)});function gs(){return La(hs)}const _s=W(`ZodNever`,(e,t)=>{Di.init(e,t),Ro.init(e,t)});function vs(e){return Ra(_s,e)}const ys=W(`ZodArray`,(e,t)=>{ki.init(e,t),Ro.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Ga(t,n)),e.nonempty=t=>e.check(Ga(1,t)),e.max=(t,n)=>e.check(Wa(t,n)),e.length=(t,n)=>e.check(Ka(t,n)),e.unwrap=()=>e.element});function bs(e,t){return io(ys,e,t)}const xs=W(`ZodObject`,(e,t)=>{Mi.init(e,t),Ro.init(e,t),pn(e,`shape`,()=>t.shape),e.keyof=()=>Ns(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:gs()}),e.loose=()=>e.clone({...e._zod.def,catchall:gs()}),e.strict=()=>e.clone({...e._zod.def,catchall:vs()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>On(e,t),e.merge=t=>kn(e,t),e.pick=t=>En(e,t),e.omit=t=>Dn(e,t),e.partial=(...t)=>An(Rs,e,t[0]),e.required=(...t)=>jn(Ks,e,t[0])});function Ss(e,t){return new xs({type:`object`,get shape(){return mn(this,`shape`,{...e}),this.shape},...Cn(t)})}function Cs(e,t){return new xs({type:`object`,get shape(){return mn(this,`shape`,{...e}),this.shape},catchall:gs(),...Cn(t)})}const ws=W(`ZodUnion`,(e,t)=>{Pi.init(e,t),Ro.init(e,t),e.options=t.options});function Ts(e,t){return new ws({type:`union`,options:e,...Cn(t)})}const Es=W(`ZodDiscriminatedUnion`,(e,t)=>{ws.init(e,t),Fi.init(e,t)});function Ds(e,t,n){return new Es({type:`union`,options:t,discriminator:e,...Cn(n)})}const Os=W(`ZodIntersection`,(e,t)=>{Ii.init(e,t),Ro.init(e,t)});function ks(e,t){return new Os({type:`intersection`,left:e,right:t})}const As=W(`ZodRecord`,(e,t)=>{zi.init(e,t),Ro.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function js(e,t,n){return new As({type:`record`,keyType:e,valueType:t,...Cn(n)})}const Ms=W(`ZodEnum`,(e,t)=>{Bi.init(e,t),Ro.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ms({...t,checks:[],...Cn(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ms({...t,checks:[],...Cn(r),entries:i})}});function Ns(e,t){return new Ms({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Cn(t)})}const Ps=W(`ZodLiteral`,(e,t)=>{Vi.init(e,t),Ro.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Fs(e,t){return new Ps({type:`literal`,values:Array.isArray(e)?e:[e],...Cn(t)})}const Is=W(`ZodTransform`,(e,t)=>{Hi.init(e,t),Ro.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ln(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,t.continue??=!0,n.issues.push(Ln(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Ls(e){return new Is({type:`transform`,transform:e})}const Rs=W(`ZodOptional`,(e,t)=>{Ui.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zs(e){return new Rs({type:`optional`,innerType:e})}const Bs=W(`ZodNullable`,(e,t)=>{Wi.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Vs(e){return new Bs({type:`nullable`,innerType:e})}const Hs=W(`ZodDefault`,(e,t)=>{Gi.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Us(e,t){return new Hs({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():t}})}const Ws=W(`ZodPrefault`,(e,t)=>{qi.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gs(e,t){return new Ws({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():t}})}const Ks=W(`ZodNonOptional`,(e,t)=>{Ji.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qs(e,t){return new Ks({type:`nonoptional`,innerType:e,...Cn(t)})}const Js=W(`ZodCatch`,(e,t)=>{Xi.init(e,t),Ro.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ys(e,t){return new Js({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Xs=W(`ZodPipe`,(e,t)=>{Zi.init(e,t),Ro.init(e,t),e.in=t.in,e.out=t.out});function Zs(e,t){return new Xs({type:`pipe`,in:e,out:t})}const Qs=W(`ZodReadonly`,(e,t)=>{$i.init(e,t),Ro.init(e,t)});function $s(e){return new Qs({type:`readonly`,innerType:e})}const ec=W(`ZodCustom`,(e,t)=>{ta.init(e,t),Ro.init(e,t)});function tc(e){let t=new Or({check:`custom`});return t._zod.check=e,t}function nc(e,t){return ao(ec,e??(()=>!0),t)}function rc(e,t={}){return oo(ec,e,t)}function ic(e){let t=tc(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Ln(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Ln(r))}},e(n.value,n)));return t}function ac(e,t){return Zs(Ls(e),t)}const oc=`2025-11-25`,sc=[oc,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],cc=`io.modelcontextprotocol/related-task`,lc=nc(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),uc=Ts([G(),cs().int()]),dc=G();Cs({ttl:Ts([cs(),ms()]).optional(),pollInterval:cs().optional()});const fc=Ss({ttl:cs().optional()}),pc=Ss({taskId:G()}),mc=Cs({progressToken:uc.optional(),[cc]:pc.optional()}),hc=Ss({_meta:mc.optional()}),gc=hc.extend({task:fc.optional()}),_c=e=>gc.safeParse(e).success,vc=Ss({method:G(),params:hc.loose().optional()}),yc=Ss({_meta:mc.optional()}),bc=Ss({method:G(),params:yc.loose().optional()}),xc=Cs({_meta:mc.optional()}),Sc=Ts([G(),cs().int()]),Cc=Ss({jsonrpc:Fs(`2.0`),id:Sc,...vc.shape}).strict(),wc=e=>Cc.safeParse(e).success,Tc=Ss({jsonrpc:Fs(`2.0`),...bc.shape}).strict(),Ec=e=>Tc.safeParse(e).success,Dc=Ss({jsonrpc:Fs(`2.0`),id:Sc,result:xc}).strict(),Oc=e=>Dc.safeParse(e).success;var kc;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(kc||={});const Ac=Ss({jsonrpc:Fs(`2.0`),id:Sc.optional(),error:Ss({code:cs().int(),message:G(),data:gs().optional()})}).strict(),jc=e=>Ac.safeParse(e).success,Mc=Ts([Cc,Tc,Dc,Ac]);Ts([Dc,Ac]);const Nc=xc.strict(),Pc=yc.extend({requestId:Sc.optional(),reason:G().optional()}),Fc=bc.extend({method:Fs(`notifications/cancelled`),params:Pc}),Ic=Ss({icons:bs(Ss({src:G(),mimeType:G().optional(),sizes:bs(G()).optional(),theme:Ns([`light`,`dark`]).optional()})).optional()}),Lc=Ss({name:G(),title:G().optional()}),Rc=Lc.extend({...Lc.shape,...Ic.shape,version:G(),websiteUrl:G().optional(),description:G().optional()}),zc=ac(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ks(Ss({form:ks(Ss({applyDefaults:fs().optional()}),js(G(),gs())).optional(),url:lc.optional()}),js(G(),gs()).optional())),Bc=Cs({list:lc.optional(),cancel:lc.optional(),requests:Cs({sampling:Cs({createMessage:lc.optional()}).optional(),elicitation:Cs({create:lc.optional()}).optional()}).optional()}),Vc=Cs({list:lc.optional(),cancel:lc.optional(),requests:Cs({tools:Cs({call:lc.optional()}).optional()}).optional()}),Hc=Ss({experimental:js(G(),lc).optional(),sampling:Ss({context:lc.optional(),tools:lc.optional()}).optional(),elicitation:zc.optional(),roots:Ss({listChanged:fs().optional()}).optional(),tasks:Bc.optional()}),Uc=hc.extend({protocolVersion:G(),capabilities:Hc,clientInfo:Rc}),Wc=vc.extend({method:Fs(`initialize`),params:Uc}),Gc=Ss({experimental:js(G(),lc).optional(),logging:lc.optional(),completions:lc.optional(),prompts:Ss({listChanged:fs().optional()}).optional(),resources:Ss({subscribe:fs().optional(),listChanged:fs().optional()}).optional(),tools:Ss({listChanged:fs().optional()}).optional(),tasks:Vc.optional()}),Kc=xc.extend({protocolVersion:G(),capabilities:Gc,serverInfo:Rc,instructions:G().optional()}),qc=bc.extend({method:Fs(`notifications/initialized`),params:yc.optional()}),Jc=vc.extend({method:Fs(`ping`),params:hc.optional()}),Yc=Ss({progress:cs(),total:zs(cs()),message:zs(G())}),Xc=Ss({...yc.shape,...Yc.shape,progressToken:uc}),Zc=bc.extend({method:Fs(`notifications/progress`),params:Xc}),Qc=hc.extend({cursor:dc.optional()}),$c=vc.extend({params:Qc.optional()}),el=xc.extend({nextCursor:dc.optional()}),tl=Ns([`working`,`input_required`,`completed`,`failed`,`cancelled`]),nl=Ss({taskId:G(),status:tl,ttl:Ts([cs(),ms()]),createdAt:G(),lastUpdatedAt:G(),pollInterval:zs(cs()),statusMessage:zs(G())}),rl=xc.extend({task:nl}),il=yc.merge(nl),al=bc.extend({method:Fs(`notifications/tasks/status`),params:il}),ol=vc.extend({method:Fs(`tasks/get`),params:hc.extend({taskId:G()})}),sl=xc.merge(nl),cl=vc.extend({method:Fs(`tasks/result`),params:hc.extend({taskId:G()})});xc.loose();const ll=$c.extend({method:Fs(`tasks/list`)}),ul=el.extend({tasks:bs(nl)}),dl=vc.extend({method:Fs(`tasks/cancel`),params:hc.extend({taskId:G()})}),fl=xc.merge(nl),pl=Ss({uri:G(),mimeType:zs(G()),_meta:js(G(),gs()).optional()}),ml=pl.extend({text:G()}),hl=G().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),gl=pl.extend({blob:hl}),_l=Ns([`user`,`assistant`]),vl=Ss({audience:bs(_l).optional(),priority:cs().min(0).max(1).optional(),lastModified:To({offset:!0}).optional()}),yl=Ss({...Lc.shape,...Ic.shape,uri:G(),description:zs(G()),mimeType:zs(G()),annotations:vl.optional(),_meta:zs(Cs({}))}),bl=Ss({...Lc.shape,...Ic.shape,uriTemplate:G(),description:zs(G()),mimeType:zs(G()),annotations:vl.optional(),_meta:zs(Cs({}))}),xl=$c.extend({method:Fs(`resources/list`)}),Sl=el.extend({resources:bs(yl)}),Cl=$c.extend({method:Fs(`resources/templates/list`)}),wl=el.extend({resourceTemplates:bs(bl)}),Tl=hc.extend({uri:G()}),El=Tl,Dl=vc.extend({method:Fs(`resources/read`),params:El}),Ol=xc.extend({contents:bs(Ts([ml,gl]))}),kl=bc.extend({method:Fs(`notifications/resources/list_changed`),params:yc.optional()}),Al=Tl,jl=vc.extend({method:Fs(`resources/subscribe`),params:Al}),Ml=Tl,Nl=vc.extend({method:Fs(`resources/unsubscribe`),params:Ml}),Pl=yc.extend({uri:G()}),Fl=bc.extend({method:Fs(`notifications/resources/updated`),params:Pl}),Il=Ss({name:G(),description:zs(G()),required:zs(fs())}),Ll=Ss({...Lc.shape,...Ic.shape,description:zs(G()),arguments:zs(bs(Il)),_meta:zs(Cs({}))}),Rl=$c.extend({method:Fs(`prompts/list`)}),zl=el.extend({prompts:bs(Ll)}),Bl=hc.extend({name:G(),arguments:js(G(),G()).optional()}),Vl=vc.extend({method:Fs(`prompts/get`),params:Bl}),Hl=Ss({type:Fs(`text`),text:G(),annotations:vl.optional(),_meta:js(G(),gs()).optional()}),Ul=Ss({type:Fs(`image`),data:hl,mimeType:G(),annotations:vl.optional(),_meta:js(G(),gs()).optional()}),Wl=Ss({type:Fs(`audio`),data:hl,mimeType:G(),annotations:vl.optional(),_meta:js(G(),gs()).optional()}),Gl=Ss({type:Fs(`tool_use`),name:G(),id:G(),input:js(G(),gs()),_meta:js(G(),gs()).optional()}),Kl=Ss({type:Fs(`resource`),resource:Ts([ml,gl]),annotations:vl.optional(),_meta:js(G(),gs()).optional()}),ql=Ts([Hl,Ul,Wl,yl.extend({type:Fs(`resource_link`)}),Kl]),Jl=Ss({role:_l,content:ql}),Yl=xc.extend({description:G().optional(),messages:bs(Jl)}),Xl=bc.extend({method:Fs(`notifications/prompts/list_changed`),params:yc.optional()}),Zl=Ss({title:G().optional(),readOnlyHint:fs().optional(),destructiveHint:fs().optional(),idempotentHint:fs().optional(),openWorldHint:fs().optional()}),Ql=Ss({taskSupport:Ns([`required`,`optional`,`forbidden`]).optional()}),$l=Ss({...Lc.shape,...Ic.shape,description:G().optional(),inputSchema:Ss({type:Fs(`object`),properties:js(G(),lc).optional(),required:bs(G()).optional()}).catchall(gs()),outputSchema:Ss({type:Fs(`object`),properties:js(G(),lc).optional(),required:bs(G()).optional()}).catchall(gs()).optional(),annotations:Zl.optional(),execution:Ql.optional(),_meta:js(G(),gs()).optional()}),eu=$c.extend({method:Fs(`tools/list`)}),tu=el.extend({tools:bs($l)}),nu=xc.extend({content:bs(ql).default([]),structuredContent:js(G(),gs()).optional(),isError:fs().optional()});nu.or(xc.extend({toolResult:gs()}));const ru=gc.extend({name:G(),arguments:js(G(),gs()).optional()}),iu=vc.extend({method:Fs(`tools/call`),params:ru}),au=bc.extend({method:Fs(`notifications/tools/list_changed`),params:yc.optional()});Ss({autoRefresh:fs().default(!0),debounceMs:cs().int().nonnegative().default(300)});const ou=Ns([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),su=hc.extend({level:ou}),cu=vc.extend({method:Fs(`logging/setLevel`),params:su}),lu=yc.extend({level:ou,logger:G().optional(),data:gs()}),uu=bc.extend({method:Fs(`notifications/message`),params:lu}),du=Ss({hints:bs(Ss({name:G().optional()})).optional(),costPriority:cs().min(0).max(1).optional(),speedPriority:cs().min(0).max(1).optional(),intelligencePriority:cs().min(0).max(1).optional()}),fu=Ss({mode:Ns([`auto`,`required`,`none`]).optional()}),pu=Ss({type:Fs(`tool_result`),toolUseId:G().describe(`The unique identifier for the corresponding tool call.`),content:bs(ql).default([]),structuredContent:Ss({}).loose().optional(),isError:fs().optional(),_meta:js(G(),gs()).optional()}),mu=Ds(`type`,[Hl,Ul,Wl]),hu=Ds(`type`,[Hl,Ul,Wl,Gl,pu]),gu=Ss({role:_l,content:Ts([hu,bs(hu)]),_meta:js(G(),gs()).optional()}),_u=gc.extend({messages:bs(gu),modelPreferences:du.optional(),systemPrompt:G().optional(),includeContext:Ns([`none`,`thisServer`,`allServers`]).optional(),temperature:cs().optional(),maxTokens:cs().int(),stopSequences:bs(G()).optional(),metadata:lc.optional(),tools:bs($l).optional(),toolChoice:fu.optional()}),vu=vc.extend({method:Fs(`sampling/createMessage`),params:_u}),yu=xc.extend({model:G(),stopReason:zs(Ns([`endTurn`,`stopSequence`,`maxTokens`]).or(G())),role:_l,content:mu}),bu=xc.extend({model:G(),stopReason:zs(Ns([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(G())),role:_l,content:Ts([hu,bs(hu)])}),xu=Ss({type:Fs(`boolean`),title:G().optional(),description:G().optional(),default:fs().optional()}),Su=Ss({type:Fs(`string`),title:G().optional(),description:G().optional(),minLength:cs().optional(),maxLength:cs().optional(),format:Ns([`email`,`uri`,`date`,`date-time`]).optional(),default:G().optional()}),Cu=Ss({type:Ns([`number`,`integer`]),title:G().optional(),description:G().optional(),minimum:cs().optional(),maximum:cs().optional(),default:cs().optional()}),wu=Ss({type:Fs(`string`),title:G().optional(),description:G().optional(),enum:bs(G()),default:G().optional()}),Tu=Ss({type:Fs(`string`),title:G().optional(),description:G().optional(),oneOf:bs(Ss({const:G(),title:G()})),default:G().optional()}),Eu=Ts([Ts([Ss({type:Fs(`string`),title:G().optional(),description:G().optional(),enum:bs(G()),enumNames:bs(G()).optional(),default:G().optional()}),Ts([wu,Tu]),Ts([Ss({type:Fs(`array`),title:G().optional(),description:G().optional(),minItems:cs().optional(),maxItems:cs().optional(),items:Ss({type:Fs(`string`),enum:bs(G())}),default:bs(G()).optional()}),Ss({type:Fs(`array`),title:G().optional(),description:G().optional(),minItems:cs().optional(),maxItems:cs().optional(),items:Ss({anyOf:bs(Ss({const:G(),title:G()}))}),default:bs(G()).optional()})])]),xu,Su,Cu]),Du=Ts([gc.extend({mode:Fs(`form`).optional(),message:G(),requestedSchema:Ss({type:Fs(`object`),properties:js(G(),Eu),required:bs(G()).optional()})}),gc.extend({mode:Fs(`url`),message:G(),elicitationId:G(),url:G().url()})]),Ou=vc.extend({method:Fs(`elicitation/create`),params:Du}),ku=yc.extend({elicitationId:G()}),Au=bc.extend({method:Fs(`notifications/elicitation/complete`),params:ku}),ju=xc.extend({action:Ns([`accept`,`decline`,`cancel`]),content:ac(e=>e===null?void 0:e,js(G(),Ts([G(),cs(),fs(),bs(G())])).optional())}),Mu=Ss({type:Fs(`ref/resource`),uri:G()}),Nu=Ss({type:Fs(`ref/prompt`),name:G()}),Pu=hc.extend({ref:Ts([Nu,Mu]),argument:Ss({name:G(),value:G()}),context:Ss({arguments:js(G(),G()).optional()}).optional()}),Fu=vc.extend({method:Fs(`completion/complete`),params:Pu});function Iu(e){if(e.params.ref.type!==`ref/prompt`)throw TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function Lu(e){if(e.params.ref.type!==`ref/resource`)throw TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}const Ru=xc.extend({completion:Cs({values:bs(G()).max(100),total:zs(cs().int()),hasMore:zs(fs())})}),zu=Ss({uri:G().startsWith(`file://`),name:G().optional(),_meta:js(G(),gs()).optional()}),Bu=vc.extend({method:Fs(`roots/list`),params:hc.optional()}),Vu=xc.extend({roots:bs(zu)}),Hu=bc.extend({method:Fs(`notifications/roots/list_changed`),params:yc.optional()});Ts([Jc,Wc,Fu,cu,Vl,Rl,xl,Cl,Dl,jl,Nl,iu,eu,ol,cl,ll,dl]),Ts([Fc,Zc,qc,Hu,al]),Ts([Nc,yu,bu,ju,Vu,sl,ul,rl]),Ts([Jc,vu,Ou,Bu,ol,cl,ll,dl]),Ts([Fc,Zc,uu,Fl,kl,au,Xl,al,Au]),Ts([Nc,Kc,Ru,Yl,zl,Sl,wl,Ol,nu,tu,sl,ul,rl]);var Uu=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===kc.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new Wu(e.elicitations,n)}return new e(t,n,r)}},Wu=class extends Uu{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(kc.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Gu(e){return e===`completed`||e===`failed`||e===`cancelled`}const Ku=Symbol(`Let zodToJsonSchema decide on which parser to use`),qu={name:void 0,$refStrategy:`root`,basePath:[`#`],effectStrategy:`input`,pipeStrategy:`all`,dateStrategy:`format:date-time`,mapStrategy:`entries`,removeAdditionalStrategy:`passthrough`,allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:`definitions`,target:`jsonSchema7`,strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:`escape`,applyRegexFlags:!1,emailStrategy:`format:email`,base64Strategy:`contentEncoding:base64`,nameStrategy:`ref`,openAiAnyTypeName:`OpenAiAnyType`},Ju=e=>typeof e==`string`?{...qu,name:e}:{...qu,...e},Yu=e=>{let t=Ju(e),n=t.name===void 0?t.basePath:[...t.basePath,t.definitionPath,t.name];return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}};function Xu(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function Zu(e,t,n,r,i){e[t]=n,Xu(e,t,r,i)}const Qu=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join(`/`)};function $u(e){if(e.target!==`openAi`)return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy===`relative`?Qu(t,e.currentPath):t.join(`/`)}}function ed(e,t){let n={type:`array`};return e.type?._def&&e.type?._def?.typeName!==H.ZodAny&&(n.items=Wd(e.type._def,{...t,currentPath:[...t.currentPath,`items`]})),e.minLength&&Zu(n,`minItems`,e.minLength.value,e.minLength.message,t),e.maxLength&&Zu(n,`maxItems`,e.maxLength.value,e.maxLength.message,t),e.exactLength&&(Zu(n,`minItems`,e.exactLength.value,e.exactLength.message,t),Zu(n,`maxItems`,e.exactLength.value,e.exactLength.message,t)),n}function td(e,t){let n={type:`integer`,format:`int64`};if(!e.checks)return n;for(let r of e.checks)switch(r.kind){case`min`:t.target===`jsonSchema7`?r.inclusive?Zu(n,`minimum`,r.value,r.message,t):Zu(n,`exclusiveMinimum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),Zu(n,`minimum`,r.value,r.message,t));break;case`max`:t.target===`jsonSchema7`?r.inclusive?Zu(n,`maximum`,r.value,r.message,t):Zu(n,`exclusiveMaximum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),Zu(n,`maximum`,r.value,r.message,t));break;case`multipleOf`:Zu(n,`multipleOf`,r.value,r.message,t);break}return n}function nd(){return{type:`boolean`}}function rd(e,t){return Wd(e.type._def,t)}const id=(e,t)=>Wd(e.innerType._def,t);function ad(e,t,n){let r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((n,r)=>ad(e,t,n))};switch(r){case`string`:case`format:date-time`:return{type:`string`,format:`date-time`};case`format:date`:return{type:`string`,format:`date`};case`integer`:return od(e,t)}}const od=(e,t)=>{let n={type:`integer`,format:`unix-time`};if(t.target===`openApi3`)return n;for(let r of e.checks)switch(r.kind){case`min`:Zu(n,`minimum`,r.value,r.message,t);break;case`max`:Zu(n,`maximum`,r.value,r.message,t);break}return n};function sd(e,t){return{...Wd(e.innerType._def,t),default:e.defaultValue()}}function cd(e,t){return t.effectStrategy===`input`?Wd(e.schema._def,t):$u(t)}function ld(e){return{type:`string`,enum:Array.from(e.values)}}const ud=e=>`type`in e&&e.type===`string`?!1:`allOf`in e;function dd(e,t){let n=[Wd(e.left._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]}),Wd(e.right._def,{...t,currentPath:[...t.currentPath,`allOf`,`1`]})].filter(e=>!!e),r=t.target===`jsonSchema2019-09`?{unevaluatedProperties:!1}:void 0,i=[];return n.forEach(e=>{if(ud(e))i.push(...e.allOf),e.unevaluatedProperties===void 0&&(r=void 0);else{let t=e;if(`additionalProperties`in e&&e.additionalProperties===!1){let{additionalProperties:n,...r}=e;t=r}else r=void 0;i.push(t)}}),i.length?{allOf:i,...r}:void 0}function fd(e,t){let n=typeof e.value;return n!==`bigint`&&n!==`number`&&n!==`boolean`&&n!==`string`?{type:Array.isArray(e.value)?`array`:`object`}:t.target===`openApi3`?{type:n===`bigint`?`integer`:n,enum:[e.value]}:{type:n===`bigint`?`integer`:n,const:e.value}}let pd;const md={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(pd===void 0&&(pd=RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)),pd),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function hd(e,t){let n={type:`string`};if(e.checks)for(let r of e.checks)switch(r.kind){case`min`:Zu(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t);break;case`max`:Zu(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`email`:switch(t.emailStrategy){case`format:email`:yd(n,`email`,r.message,t);break;case`format:idn-email`:yd(n,`idn-email`,r.message,t);break;case`pattern:zod`:bd(n,md.email,r.message,t);break}break;case`url`:yd(n,`uri`,r.message,t);break;case`uuid`:yd(n,`uuid`,r.message,t);break;case`regex`:bd(n,r.regex,r.message,t);break;case`cuid`:bd(n,md.cuid,r.message,t);break;case`cuid2`:bd(n,md.cuid2,r.message,t);break;case`startsWith`:bd(n,RegExp(`^${gd(r.value,t)}`),r.message,t);break;case`endsWith`:bd(n,RegExp(`${gd(r.value,t)}$`),r.message,t);break;case`datetime`:yd(n,`date-time`,r.message,t);break;case`date`:yd(n,`date`,r.message,t);break;case`time`:yd(n,`time`,r.message,t);break;case`duration`:yd(n,`duration`,r.message,t);break;case`length`:Zu(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t),Zu(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`includes`:bd(n,RegExp(gd(r.value,t)),r.message,t);break;case`ip`:r.version!==`v6`&&yd(n,`ipv4`,r.message,t),r.version!==`v4`&&yd(n,`ipv6`,r.message,t);break;case`base64url`:bd(n,md.base64url,r.message,t);break;case`jwt`:bd(n,md.jwt,r.message,t);break;case`cidr`:r.version!==`v6`&&bd(n,md.ipv4Cidr,r.message,t),r.version!==`v4`&&bd(n,md.ipv6Cidr,r.message,t);break;case`emoji`:bd(n,md.emoji(),r.message,t);break;case`ulid`:bd(n,md.ulid,r.message,t);break;case`base64`:switch(t.base64Strategy){case`format:binary`:yd(n,`binary`,r.message,t);break;case`contentEncoding:base64`:Zu(n,`contentEncoding`,`base64`,r.message,t);break;case`pattern:zod`:bd(n,md.base64,r.message,t);break}break;case`nanoid`:bd(n,md.nanoid,r.message,t);case`toLowerCase`:case`toUpperCase`:case`trim`:break;default:(e=>{})(r)}return n}function gd(e,t){return t.patternStrategy===`escape`?vd(e):e}const _d=new Set(`ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789`);function vd(e){let t=``;for(let n=0;n<e.length;n++)_d.has(e[n])||(t+=`\\`),t+=e[n];return t}function yd(e,t,n,r){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||=[],e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):Zu(e,`format`,t,n,r)}function bd(e,t,n,r){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||=[],e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:xd(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):Zu(e,`pattern`,xd(t,r),n,r)}function xd(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes(`i`),m:e.flags.includes(`m`),s:e.flags.includes(`s`)},r=n.i?e.source.toLowerCase():e.source,i=``,a=!1,o=!1,s=!1;for(let e=0;e<r.length;e++){if(a){i+=r[e],a=!1;continue}if(n.i){if(o){if(r[e].match(/[a-z]/)){s?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),s=!1):r[e+1]===`-`&&r[e+2]?.match(/[a-z]/)?(i+=r[e],s=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if(r[e]===`^`){i+=`(^|(?<=[\r
]))`;continue}else if(r[e]===`$`){i+=`($|(?=[\r
]))`;continue}}if(n.s&&r[e]===`.`){i+=o?`${r[e]}\r\n`:`[${r[e]}\r\n]`;continue}i+=r[e],r[e]===`\\`?a=!0:o&&r[e]===`]`?o=!1:!o&&r[e]===`[`&&(o=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join(`/`)} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}function Sd(e,t){if(t.target===`openAi`&&console.warn(`Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.`),t.target===`openApi3`&&e.keyType?._def.typeName===H.ZodEnum)return{type:`object`,required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:Wd(e.valueType._def,{...t,currentPath:[...t.currentPath,`properties`,r]})??$u(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let n={type:`object`,additionalProperties:Wd(e.valueType._def,{...t,currentPath:[...t.currentPath,`additionalProperties`]})??t.allowedAdditionalProperties};if(t.target===`openApi3`)return n;if(e.keyType?._def.typeName===H.ZodString&&e.keyType._def.checks?.length){let{type:r,...i}=hd(e.keyType._def,t);return{...n,propertyNames:i}}else if(e.keyType?._def.typeName===H.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};else if(e.keyType?._def.typeName===H.ZodBranded&&e.keyType._def.type._def.typeName===H.ZodString&&e.keyType._def.type._def.checks?.length){let{type:r,...i}=rd(e.keyType._def,t);return{...n,propertyNames:i}}return n}function Cd(e,t){return t.mapStrategy===`record`?Sd(e,t):{type:`array`,maxItems:125,items:{type:`array`,items:[Wd(e.keyType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`0`]})||$u(t),Wd(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`1`]})||$u(t)],minItems:2,maxItems:2}}}function wd(e){let t=e.values,n=Object.keys(e.values).filter(e=>typeof t[t[e]]!=`number`).map(e=>t[e]),r=Array.from(new Set(n.map(e=>typeof e)));return{type:r.length===1?r[0]===`string`?`string`:`number`:[`string`,`number`],enum:n}}function Td(e){return e.target===`openAi`?void 0:{not:$u({...e,currentPath:[...e.currentPath,`not`]})}}function Ed(e){return e.target===`openApi3`?{enum:[`null`],nullable:!0}:{type:`null`}}const Dd={ZodString:`string`,ZodNumber:`number`,ZodBigInt:`integer`,ZodBoolean:`boolean`,ZodNull:`null`};function Od(e,t){if(t.target===`openApi3`)return kd(e,t);let n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(e=>e._def.typeName in Dd&&(!e._def.checks||!e._def.checks.length))){let e=n.reduce((e,t)=>{let n=Dd[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}else if(n.every(e=>e._def.typeName===`ZodLiteral`&&!e.description)){let e=n.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case`string`:case`number`:case`boolean`:return[...e,n];case`bigint`:return[...e,`integer`];case`object`:if(t._def.value===null)return[...e,`null`];case`symbol`:case`undefined`:case`function`:default:return e}},[]);if(e.length===n.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:n.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(n.every(e=>e._def.typeName===`ZodEnum`))return{type:`string`,enum:n.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return kd(e,t)}const kd=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>Wd(e._def,{...t,currentPath:[...t.currentPath,`anyOf`,`${n}`]})).filter(e=>!!e&&(!t.strictUnions||typeof e==`object`&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function Ad(e,t){if([`ZodString`,`ZodNumber`,`ZodBigInt`,`ZodBoolean`,`ZodNull`].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target===`openApi3`?{type:Dd[e.innerType._def.typeName],nullable:!0}:{type:[Dd[e.innerType._def.typeName],`null`]};if(t.target===`openApi3`){let n=Wd(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&`$ref`in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let n=Wd(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`0`]});return n&&{anyOf:[n,{type:`null`}]}}function jd(e,t){let n={type:`number`};if(!e.checks)return n;for(let r of e.checks)switch(r.kind){case`int`:n.type=`integer`,Xu(n,`type`,r.message,t);break;case`min`:t.target===`jsonSchema7`?r.inclusive?Zu(n,`minimum`,r.value,r.message,t):Zu(n,`exclusiveMinimum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),Zu(n,`minimum`,r.value,r.message,t));break;case`max`:t.target===`jsonSchema7`?r.inclusive?Zu(n,`maximum`,r.value,r.message,t):Zu(n,`exclusiveMaximum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),Zu(n,`maximum`,r.value,r.message,t));break;case`multipleOf`:Zu(n,`multipleOf`,r.value,r.message,t);break}return n}function Md(e,t){let n=t.target===`openAi`,r={type:`object`,properties:{}},i=[],a=e.shape();for(let e in a){let o=a[e];if(o===void 0||o._def===void 0)continue;let s=Pd(o);s&&n&&(o._def.typeName===`ZodOptional`&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);let c=Wd(o._def,{...t,currentPath:[...t.currentPath,`properties`,e],propertyPath:[...t.currentPath,`properties`,e]});c!==void 0&&(r.properties[e]=c,s||i.push(e))}i.length&&(r.required=i);let o=Nd(e,t);return o!==void 0&&(r.additionalProperties=o),r}function Nd(e,t){if(e.catchall._def.typeName!==`ZodNever`)return Wd(e.catchall._def,{...t,currentPath:[...t.currentPath,`additionalProperties`]});switch(e.unknownKeys){case`passthrough`:return t.allowedAdditionalProperties;case`strict`:return t.rejectedAdditionalProperties;case`strip`:return t.removeAdditionalStrategy===`strict`?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function Pd(e){try{return e.isOptional()}catch{return!0}}const Fd=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return Wd(e.innerType._def,t);let n=Wd(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`1`]});return n?{anyOf:[{not:$u(t)},n]}:$u(t)},Id=(e,t)=>{if(t.pipeStrategy===`input`)return Wd(e.in._def,t);if(t.pipeStrategy===`output`)return Wd(e.out._def,t);let n=Wd(e.in._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]});return{allOf:[n,Wd(e.out._def,{...t,currentPath:[...t.currentPath,`allOf`,n?`1`:`0`]})].filter(e=>e!==void 0)}};function Ld(e,t){return Wd(e.type._def,t)}function Rd(e,t){let n={type:`array`,uniqueItems:!0,items:Wd(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`]})};return e.minSize&&Zu(n,`minItems`,e.minSize.value,e.minSize.message,t),e.maxSize&&Zu(n,`maxItems`,e.maxSize.value,e.maxSize.message,t),n}function zd(e,t){return e.rest?{type:`array`,minItems:e.items.length,items:e.items.map((e,n)=>Wd(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[]),additionalItems:Wd(e.rest._def,{...t,currentPath:[...t.currentPath,`additionalItems`]})}:{type:`array`,minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,n)=>Wd(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[])}}function Bd(e){return{not:$u(e)}}function Vd(e){return $u(e)}const Hd=(e,t)=>Wd(e.innerType._def,t),Ud=(e,t,n)=>{switch(t){case H.ZodString:return hd(e,n);case H.ZodNumber:return jd(e,n);case H.ZodObject:return Md(e,n);case H.ZodBigInt:return td(e,n);case H.ZodBoolean:return nd();case H.ZodDate:return ad(e,n);case H.ZodUndefined:return Bd(n);case H.ZodNull:return Ed(n);case H.ZodArray:return ed(e,n);case H.ZodUnion:case H.ZodDiscriminatedUnion:return Od(e,n);case H.ZodIntersection:return dd(e,n);case H.ZodTuple:return zd(e,n);case H.ZodRecord:return Sd(e,n);case H.ZodLiteral:return fd(e,n);case H.ZodEnum:return ld(e);case H.ZodNativeEnum:return wd(e);case H.ZodNullable:return Ad(e,n);case H.ZodOptional:return Fd(e,n);case H.ZodMap:return Cd(e,n);case H.ZodSet:return Rd(e,n);case H.ZodLazy:return()=>e.getter()._def;case H.ZodPromise:return Ld(e,n);case H.ZodNaN:case H.ZodNever:return Td(n);case H.ZodEffects:return cd(e,n);case H.ZodAny:return $u(n);case H.ZodUnknown:return Vd(n);case H.ZodDefault:return sd(e,n);case H.ZodBranded:return rd(e,n);case H.ZodReadonly:return Hd(e,n);case H.ZodCatch:return id(e,n);case H.ZodPipeline:return Id(e,n);case H.ZodFunction:case H.ZodVoid:case H.ZodSymbol:return;default:return(e=>void 0)(t)}};function Wd(e,t,n=!1){let r=t.seen.get(e);if(t.override){let i=t.override?.(e,t,r,n);if(i!==Ku)return i}if(r&&!n){let e=Gd(r,t);if(e!==void 0)return e}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=Ud(e,e.typeName,t),o=typeof a==`function`?Wd(a(),t):a;if(o&&Kd(e,t,o),t.postProcess){let n=t.postProcess(o,e,t);return i.jsonSchema=o,n}return i.jsonSchema=o,o}const Gd=(e,t)=>{switch(t.$refStrategy){case`root`:return{$ref:e.path.join(`/`)};case`relative`:return{$ref:Qu(t.currentPath,e.path)};case`none`:case`seen`:return e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e)?(console.warn(`Recursive reference detected at ${t.currentPath.join(`/`)}! Defaulting to any`),$u(t)):t.$refStrategy===`seen`?$u(t):void 0}},Kd=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),qd=(e,t)=>{let n=Yu(t),r=typeof t==`object`&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:Wd(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??$u(n)}),{}):void 0,i=typeof t==`string`?t:t?.nameStrategy===`title`?void 0:t?.name,a=Wd(e._def,i===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,i]},!1)??$u(n),o=typeof t==`object`&&t.name!==void 0&&t.nameStrategy===`title`?t.name:void 0;o!==void 0&&(a.title=o),n.flags.hasReferencedOpenAiAnyType&&(r||={},r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:[`string`,`number`,`integer`,`boolean`,`array`,`null`],items:{$ref:n.$refStrategy===`relative`?`1`:[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join(`/`)}}));let s=i===void 0?r?{...a,[n.definitionPath]:r}:a:{$ref:[...n.$refStrategy===`relative`?[]:n.basePath,n.definitionPath,i].join(`/`),[n.definitionPath]:{...r,[i]:a}};return n.target===`jsonSchema7`?s.$schema=`http://json-schema.org/draft-07/schema#`:(n.target===`jsonSchema2019-09`||n.target===`openAi`)&&(s.$schema=`https://json-schema.org/draft/2019-09/schema#`),n.target===`openAi`&&(`anyOf`in s||`oneOf`in s||`allOf`in s||`type`in s&&Array.isArray(s.type))&&console.warn(`Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.`),s};function Jd(e){return!e||e===`jsonSchema7`||e===`draft-7`?`draft-7`:e===`jsonSchema2019-09`||e===`draft-2020-12`?`draft-2020-12`:`draft-7`}function Yd(e,t){return mo(e)?co(e,{target:Jd(t?.target),io:t?.pipeStrategy??`input`}):qd(e,{strictUnions:t?.strictUnions??!0,pipeStrategy:t?.pipeStrategy??`input`})}function Xd(e){let t=vo(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Co(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function Zd(e,t){let n=go(e,t);if(!n.success)throw n.error;return n.data}var Qd=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(Fc,e=>{this._oncancel(e)}),this.setNotificationHandler(Zc,e=>{this._onprogress(e)}),this.setRequestHandler(Jc,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ol,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Uu(kc.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(cl,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Uu(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Uu(kc.InvalidParams,`Task not found: ${r}`);if(!Gu(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(Gu(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[cc]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(ll,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Uu(kc.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(dl,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Uu(kc.InvalidParams,`Task not found: ${e.params.taskId}`);if(Gu(n.status))throw new Uu(kc.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Uu(kc.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Uu?e:new Uu(kc.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Uu.fromError(kc.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Oc(e)||jc(e)?this._onresponse(e):wc(e)?this._onrequest(e,t):Ec(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();let t=Uu.fromError(kc.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[cc]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:kc.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=_c(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{let a={...r,relatedRequestId:e.id};i&&!a.relatedTask&&(a.relatedTask={taskId:i});let o=a.relatedTask?.taskId??i;return o&&s&&await s.updateTaskStatus(o,`input_required`),await this.request(t,n,a)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:kc.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),Oc(e)?n(e):n(new Uu(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(Oc(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),Oc(e)?r(e):r(Uu.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Uu?e:new Uu(kc.InternalError,String(e))}}return}let i;try{let r=await this.request(e,rl,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Uu(kc.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},Gu(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Uu(kc.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Uu(kc.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Uu?e:new Uu(kc.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[cc]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Uu?e:new Uu(kc.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=go(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(Uu.fromError(kc.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},sl,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},ul,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},fl,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[cc]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[cc]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[cc]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=Xd(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=Zd(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=Xd(e);this._notificationHandlers.set(n,n=>{let r=Zd(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&wc(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Uu(kc.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Uu(kc.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Uu(kc.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Uu(kc.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=al.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),Gu(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Uu(kc.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(Gu(a.status))throw new Uu(kc.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=al.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),Gu(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function $d(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ef(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];$d(a)&&$d(i)?n[r]={...a,...i}:n[r]=i}return n}var tf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;let a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g})),nf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;let t=tf();var n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;let o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),rf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;let t=tf(),n=nf();var r=tf();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,`strConcat`,{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,`getProperty`,{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,`regexpCode`,{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return r.Name}});var i=nf();Object.defineProperty(e,`Scope`,{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,`ValueScope`,{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,`ValueScopeName`,{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,`varKinds`,{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=k(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,e,n),this}get names(){return O(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=k(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(A(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>D(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(j(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=k(this.condition,e,t),this}get names(){let e=super.names;return O(e,this.condition),this.else&&D(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=k(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return O(O(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=k(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var E=class extends m{render(e){return`finally`+super.render(e)}};E.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
`:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new E,this.code(n)),this._endBlockNode(T,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function D(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,n){return n instanceof t._CodeOrName?D(e,n.names):e}function k(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function A(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function j(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${ie(e)}`}e.not=j;let ee=M(e.operators.AND);function te(...e){return e.reduce(ee)}e.and=te;let ne=M(e.operators.OR);function re(...e){return e.reduce(ne)}e.or=re;function M(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${ie(n)} ${e} ${ie(r)}`}function ie(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),af=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;let t=rf(),n=tf();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0?!0:(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0?!0:(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;let _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),of=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),sf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;let t=rf(),n=af(),r=of();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}let u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),cf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;let t=sf(),n=rf(),r=of(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),lf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getRules=e.isJSONType=void 0;let t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),uf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),df=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;let t=lf(),n=uf(),r=sf(),i=rf(),a=af();var o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;let u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
|| (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
|| (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
|| ${s} === "boolean" || ${a} === null`).assign(c,(0,i._)`[${a}]`)}}}function p({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,i._)`${t} !== undefined`,()=>e.assign((0,i._)`${t}[${n}]`,r))}function m(e,t,n,r=o.Correct){let a=r===o.Correct?i.operators.EQ:i.operators.NEQ,s;switch(e){case`null`:return(0,i._)`${t} ${a} null`;case`array`:s=(0,i._)`Array.isArray(${t})`;break;case`object`:s=(0,i._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:s=c((0,i._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:s=c();break;default:return(0,i._)`typeof ${t} ${a} ${e}`}return r===o.Correct?s:(0,i.not)(s);function c(e=i.nil){return(0,i.and)((0,i._)`typeof ${t} == "number"`,e,n?(0,i._)`isFinite(${t})`:i.nil)}}e.checkDataType=m;function h(e,t,n,r){if(e.length===1)return m(e[0],t,n,r);let o,s=(0,a.toHash)(e);if(s.array&&s.object){let e=(0,i._)`typeof ${t} != "object"`;o=s.null?e:(0,i._)`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;for(let e in s.number&&delete s.integer,s)o=(0,i.and)(o,m(e,t,n,r));return o}e.checkDataTypes=h;let g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,i._)`{type: ${e}}`:(0,i._)`{type: ${t}}`};function _(e){let t=v(e);(0,r.reportError)(t,g)}e.reportTypeError=_;function v(e){let{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}})),ff=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assignDefaults=void 0;let t=rf(),n=af();function r(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)i(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>i(e,n,t.default))}e.assignDefaults=r;function i(e,r,i){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(i===void 0)return;let l=(0,t._)`${s}${(0,t.getProperty)(r)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,t._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,t._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,t._)`${l} = ${(0,t.stringify)(i)}`)}})),pf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;let t=rf(),n=af(),r=of(),i=af();function a(e,n){let{gen:r,data:i,it:a}=e;r.if(d(r,i,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${n}`},!0),e.error()})}e.checkReportMissingProp=a;function o({gen:e,data:n,it:{opts:r}},i,a){return(0,t.or)(...i.map(i=>(0,t.and)(d(e,n,i,r.ownProperties),(0,t._)`${a} = ${i}`)))}e.checkMissingProp=o;function s(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=s;function c(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(e,n,r){return(0,t._)`${c(e)}.call(${n}, ${r})`}e.isOwnProperty=l;function u(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} !== undefined`;return i?(0,t._)`${a} && ${l(e,n,r)}`:a}e.propertyInData=u;function d(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} === undefined`;return i?(0,t.or)(a,(0,t.not)(l(e,n,r))):a}e.noPropertyInData=d;function f(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=f;function p(e,t){return f(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))}e.schemaProperties=p;function m({schemaCode:e,data:n,it:{gen:i,topSchemaRef:a,schemaPath:o,errorPath:s},it:c},l,u,d){let f=d?(0,t._)`${e}, ${n}, ${a}${o}`:n,p=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);let m=(0,t._)`${f}, ${i.object(...p)}`;return u===t.nil?(0,t._)`${l}(${m})`:(0,t._)`${l}.call(${u}, ${m})`}e.callValidateCode=m;let h=(0,t._)`new RegExp`;function g({gen:e,it:{opts:n}},r){let a=n.unicodeRegExp?`u`:``,{regExp:o}=n.code,s=o(r,a);return e.scopeValue(`pattern`,{key:s.toString(),ref:s,code:(0,t._)`${o.code===`new RegExp`?h:(0,i.useFunc)(e,o)}(${r}, ${a})`})}e.usePattern=g;function _(e){let{gen:r,data:i,keyword:a,it:o}=e,s=r.name(`valid`);if(o.allErrors){let e=r.let(`valid`,!0);return c(()=>r.assign(e,!1)),e}return r.var(s,!0),c(()=>r.break()),s;function c(o){let c=r.const(`len`,(0,t._)`${i}.length`);r.forRange(`i`,0,c,i=>{e.subschema({keyword:a,dataProp:i,dataPropType:n.Type.Num},s),r.if((0,t.not)(s),o)})}}e.validateArray=_;function v(e){let{gen:r,schema:i,keyword:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(i.some(e=>(0,n.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=r.let(`valid`,!1),c=r.name(`_valid`);r.block(()=>i.forEach((n,i)=>{let o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);r.assign(s,(0,t._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||r.if((0,t.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=v})),mf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;let t=rf(),n=of(),r=pf(),i=sf();function a(e,n){let{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,c=n.macro.call(s.self,a,o,s),l=u(r,i,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let d=r.name(`valid`);e.subschema({schema:c,schemaPath:t.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}e.macroKeywordCode=a;function o(e,i){let{gen:a,keyword:o,schema:d,parentSchema:f,$data:p,it:m}=e;l(m,i);let h=u(a,o,!p&&i.compile?i.compile.call(m.self,d,f,m):i.validate),g=a.let(`valid`);e.block$data(g,_),e.ok(i.valid??g);function _(){if(i.errors===!1)b(),i.modifying&&s(e),x(()=>e.error());else{let t=i.async?v():y();i.modifying&&s(e),x(()=>c(e,t))}}function v(){let e=a.let(`ruleErrs`,null);return a.try(()=>b((0,t._)`await `),n=>a.assign(g,!1).if((0,t._)`${n} instanceof ${m.ValidationError}`,()=>a.assign(e,(0,t._)`${n}.errors`),()=>a.throw(n))),e}function y(){let e=(0,t._)`${h}.errors`;return a.assign(e,null),b(t.nil),e}function b(o=i.async?(0,t._)`await `:t.nil){let s=m.opts.passContext?n.default.this:n.default.self,c=!(`compile`in i&&!p||i.schema===!1);a.assign(g,(0,t._)`${o}${(0,r.callValidateCode)(e,h,s,c)}`,i.modifying)}function x(e){a.if((0,t.not)(i.valid??g),e)}}e.funcKeywordCode=o;function s(e){let{gen:n,data:r,it:i}=e;n.if(i.parentData,()=>n.assign(r,(0,t._)`${i.parentData}[${i.parentDataProperty}]`))}function c(e,r){let{gen:a}=e;a.if((0,t._)`Array.isArray(${r})`,()=>{a.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function u(e,n,r){if(r===void 0)throw Error(`keyword "${n}" failed to compile`);return e.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,t.stringify)(r)})}function d(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=d;function f({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=f})),hf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;let t=rf(),n=af();function r(e,{keyword:r,schemaProp:i,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(r!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(r!==void 0){let a=e.schema[r];return i===void 0?{schema:a,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[i],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}${(0,t.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,n.escapeFragment)(i)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=r;function i(e,r,{dataProp:i,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&i!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=r;if(i!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=r;u(l.let(`data`,(0,t._)`${r.data}${(0,t.getProperty)(i)}`,!0)),e.errorPath=(0,t.str)`${o}${(0,n.getErrorPath)(i,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${i}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(u(o instanceof t.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function u(t){e.data=t,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,t]}}e.extendSubschemaData=i;function a(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=a})),gf=F(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),_f=F(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h<m.length;h++)r(e,t,a,m[h],s+`/`+p+`/`+h,c,s,p,o,h)}else if(p in n.propsKeywords){if(m&&typeof m==`object`)for(var g in m)r(e,t,a,m[g],s+`/`+p+`/`+i(g),c,s,p,o,g)}else (p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,a,m,s+`/`+p,c,s,p,o)}a(o,s,c,l,u,d,f)}}function i(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}})),vf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;let t=af(),n=gf(),r=_f(),i=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function a(e,t=!0){return typeof e==`boolean`?!0:t===!0?!s(e):t?c(e)<=t:!1}e.inlineRef=a;let o=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function s(e){for(let t in e){if(o.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(s)||typeof n==`object`&&s(n))return!0}return!1}function c(e){let n=0;for(let r in e)if(r===`$ref`||(n++,!i.has(r)&&(typeof e[r]==`object`&&(0,t.eachItem)(e[r],e=>n+=c(e)),n===1/0)))return 1/0;return n}function l(e,t=``,n){return n!==!1&&(t=f(t)),u(e,e.parse(t))}e.getFullPath=l;function u(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=u;let d=/#\/?$/;function f(e){return e?e.replace(d,``):``}e.normalizeId=f;function p(e,t,n){return n=f(n),e.resolve(t,n)}e.resolveUrl=p;let m=/^[a-z_][-a-z0-9._]*$/i;function h(e,t){if(typeof e==`boolean`)return{};let{schemaId:i,uriResolver:a}=this.opts,o=f(e[i]||t),s={"":o},c=l(a,o,!1),u={},d=new Set;return r(e,{allKeys:!0},(e,t,n,r)=>{if(r===void 0)return;let a=c+t,o=s[r];typeof e[i]==`string`&&(o=l.call(this,e[i])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o;function l(t){let n=this.opts.uriResolver.resolve;if(t=f(o?n(o,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?p(e,r.schema,t):t!==f(a)&&(t[0]===`#`?(p(e,u[t],t),u[t]=e):this.refs[t]=a),t}function g(e){if(typeof e==`string`){if(!m.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}),u;function p(e,t,r){if(t!==void 0&&!n(e,t))throw h(r)}function h(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=h})),yf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;let t=cf(),n=df(),r=uf(),i=df(),a=ff(),o=mf(),s=hf(),c=rf(),l=of(),u=vf(),d=af(),f=sf();function p(e){if(S(e)&&(w(e),x(e))){_(e);return}m(e,()=>(0,t.topBoolOrEmptySchema)(e))}e.validateFunctionCode=p;function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,r.$async,()=>{e.code((0,c._)`"use strict"; ${y(n,i)}`),g(e,i),e.code(a)}):e.func(t,(0,c._)`${l.default.data}, ${h(i)}`,r.$async,()=>e.code(y(n,i)).code(a))}function h(e){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function g(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,(0,c._)`""`),e.var(l.default.parentData,(0,c._)`undefined`),e.var(l.default.parentDataProperty,(0,c._)`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function _(e){let{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&A(e),D(e),r.let(l.default.vErrors,null),r.let(l.default.errors,0),n.unevaluated&&v(e),T(e),j(e)})}function v(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,c._)`${n}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}function y(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${n} */`:c.nil}function b(e,n){if(S(e)&&(w(e),x(e))){C(e,n);return}(0,t.boolOrEmptySchema)(e,n)}function x({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function S(e){return typeof e.schema!=`boolean`}function C(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&A(e),O(e),k(e);let a=r.const(`_errs`,l.default.errors);T(e,a),r.var(t,(0,c._)`${a} === ${l.default.errors}`)}function w(e){(0,d.checkUnknownRules)(e),E(e)}function T(e,t){if(e.opts.jtd)return te(e,[],!1,t);let r=(0,n.getSchemaTypes)(e.schema);te(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function E(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function D(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,`default is ignored in the schema root`)}function O(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function k(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function A({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,c._)`${l.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,c.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function j(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${i}(${l.default.vErrors})`)):(t.assign((0,c._)`${r}.errors`,l.default.vErrors),a.unevaluated&&ee(e),t.return((0,c._)`${l.default.errors} === 0`))}function ee({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign((0,c._)`${t}.props`,n),r instanceof c.Name&&e.assign((0,c._)`${t}.items`,r)}function te(e,t,n,a){let{gen:o,schema:s,data:u,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;if(s.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(s,h))){o.block(()=>le(e,`$ref`,h.all.$ref.definition));return}p.jtd||re(e,t),o.block(()=>{for(let e of h.rules)g(e);g(h.post)});function g(d){(0,r.shouldUseGroup)(s,d)&&(d.type?(o.if((0,i.checkDataType)(d.type,u,p.strictNumbers)),ne(e,d),t.length===1&&t[0]===d.type&&n&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):ne(e,d),f||o.if((0,c._)`${l.default.errors} === ${a||0}`))}}function ne(e,t){let{gen:n,schema:i,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,r.shouldUseRule)(i,n)&&le(e,n.keyword,n.definition,t.type)})}function re(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(M(e,t),e.opts.allowUnionTypes||ie(e,t),ae(e,e.dataTypes))}function M(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{oe(e.dataTypes,t)||P(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),se(e,t)}}function ie(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&P(e,`use allowUnionTypes to allow union type keyword`)}function ae(e,t){let n=e.self.RULES.all;for(let i in n){let a=n[i];if(typeof a==`object`&&(0,r.shouldUseRule)(e.schema,a)){let{type:n}=a.definition;n.length&&!n.some(e=>N(t,e))&&P(e,`missing type "${n.join(`,`)}" for keyword "${i}"`)}}}function N(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function oe(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function se(e,t){let n=[];for(let r of e.dataTypes)oe(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function P(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}var ce=class{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,fe(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,l.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,c.or)((0,c._)`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:a}=this;return(0,c.or)(o(),s());function o(){if(n.length){if(!(t instanceof c.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,c._)`${(0,i.checkDataTypes)(e,t,a.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function s(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,c._)`!${n}(${t})`}return c.nil}}subschema(e,t){let n=(0,s.getSubschema)(this.it,e);(0,s.extendSubschemaData)(n,this.it,e),(0,s.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return b(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};e.KeywordCxt=ce;function le(e,t,n,r){let i=new ce(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,o.funcKeywordCode)(i,n):`macro`in n?(0,o.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(i,n)}let ue=/^\/(?:[^~]|~0|~1)*$/,de=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function fe(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return l.default.rootData;if(e[0]===`/`){if(!ue.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=l.default.rootData}else{let o=de.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(u(`property/index`,s));return r[t-s]}if(s>t)throw Error(u(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,c._)`${a}${(0,c.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${a}`);return o;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=fe})),bf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}})),xf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=vf();e.default=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(e,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}})),Sf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;let t=rf(),n=bf(),r=of(),i=vf(),a=af(),o=yf();var s=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,i.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=s;function c(e){let a=d.call(this,e);if(a)return a;let s=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new t.CodeGen(this.scope,{es5:c,lines:l,ownProperties:u}),p;e.$async&&(p=f.scopeValue(`Error`,{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let m=f.scopeName(`validate`);e.validateName=m;let h={gen:f,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:s,baseId:e.baseId||s,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,t._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,o.validateFunctionCode)(h),f.optimize(this.opts.code.optimize);let n=f.toString();g=`${f.scopeRefs(r.default.scope)}return ${n}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let i=Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),this.opts.code.source===!0&&(i.source={validateName:m,validateCode:n,scopeValues:f._values}),this.opts.unevaluated){let{props:e,items:n}=h;i.evaluated={props:e instanceof t.Name?void 0:e,items:n instanceof t.Name?void 0:n,dynamicProps:e instanceof t.Name,dynamicItems:n instanceof t.Name},i.source&&(i.source.evaluated=(0,t.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error(`Error compiling schema, function code:`,g),t}finally{this._compilations.delete(e)}}e.compileSchema=c;function l(e,t,n){n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let a=p.call(this,e,n);if(a===void 0){let r=e.localRefs?.[n],{schemaId:i}=this.opts;r&&(a=new s({schema:r,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=u.call(this,a)}e.resolveRef=l;function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations)if(f(t,e))return t}e.getCompilingSchema=d;function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){let n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n),a=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return g.call(this,n,e);let o=(0,i.normalizeId)(r),l=this.refs[o]||this.schemas[o];if(typeof l==`string`){let t=m.call(this,e,l);return typeof t?.schema==`object`?g.call(this,n,t):void 0}if(typeof l?.schema==`object`){if(l.validate||c.call(this,l),o===(0,i.normalizeId)(t)){let{schema:t}=l,{schemaId:n}=this.opts,r=t[n];return r&&(a=(0,i.resolveUrl)(this.opts.uriResolver,a,r)),new s({schema:t,schemaId:n,root:e,baseId:a})}return g.call(this,n,l)}}e.resolveSchema=m;let h=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function g(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,a.unescapeFragment)(r)];if(e===void 0)return;n=e;let o=typeof n==`object`&&n[this.opts.schemaId];!h.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let o;if(typeof n!=`boolean`&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=m.call(this,r,e)}let{schemaId:c}=this.opts;if(o||=new s({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema)return o}})),Cf=F(((e,t)=>{t.exports={$id:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,description:`Meta-schema for $data reference (JSON AnySchema extension proposal)`,type:`object`,required:[`$data`],properties:{$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},additionalProperties:!1}})),wf=F(((e,t)=>{let n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function i(e){let t=``,n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),n!==48){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r]}return t}let a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(e){return e.length=0,!0}function s(e,t,n){if(e.length){let r=i(e);if(r!==``)t.push(r);else return n.error=!0,!1;e.length=0}return!0}function c(e){let t=0,n={error:!1,address:``,zone:``},r=[],a=[],c=!1,l=!1,u=s;for(let i=0;i<e.length;i++){let s=e[i];if(!(s===`[`||s===`]`))if(s===`:`){if(c===!0&&(l=!0),!u(a,r,n))break;if(++t>7){n.error=!0;break}i>0&&e[i-1]===`:`&&(c=!0),r.push(`:`);continue}else if(s===`%`){if(!u(a,r,n))break;u=o}else{a.push(s);continue}}return a.length&&(u===o?n.zone=a.join(``):l?r.push(a.join(``)):r.push(i(a))),n.address=r.join(``),n}function l(e){if(u(e,`:`)<2)return{host:e,isIPV6:!1};let t=c(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+=`%`+t.zone,n+=`%25`+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function u(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function d(e){let t=e,n=[],r=-1,i=0;for(;i=t.length;){if(i===1){if(t===`.`)break;if(t===`/`){n.push(`/`);break}else{n.push(t);break}}else if(i===2){if(t[0]===`.`){if(t[1]===`.`)break;if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&(t[1]===`.`||t[1]===`/`)){n.push(`/`);break}}else if(i===3&&t===`/..`){n.length!==0&&n.pop(),n.push(`/`);break}if(t[0]===`.`){if(t[1]===`.`){if(t[2]===`/`){t=t.slice(3);continue}}else if(t[1]===`/`){t=t.slice(2);continue}}else if(t[0]===`/`&&t[1]===`.`){if(t[2]===`/`){t=t.slice(2);continue}else if(t[2]===`.`&&t[3]===`/`){t=t.slice(3),n.length!==0&&n.pop();continue}}if((r=t.indexOf(`/`,1))===-1){n.push(t);break}else n.push(t.slice(0,r)),t=t.slice(r)}return n.join(``)}function f(e,t){let n=t===!0?unescape:escape;return e.scheme!==void 0&&(e.scheme=n(e.scheme)),e.userinfo!==void 0&&(e.userinfo=n(e.userinfo)),e.host!==void 0&&(e.host=n(e.host)),e.path!==void 0&&(e.path=n(e.path)),e.query!==void 0&&(e.query=n(e.query)),e.fragment!==void 0&&(e.fragment=n(e.fragment)),e}function p(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push(`@`)),e.host!==void 0){let n=unescape(e.host);if(!r(n)){let t=l(n);n=t.isIPV6===!0?`[${t.escapedHost}]`:e.host}t.push(n)}return(typeof e.port==`number`||typeof e.port==`string`)&&(t.push(`:`),t.push(String(e.port))),t.length?t.join(``):void 0}t.exports={nonSimpleDomain:a,recomposeAuthority:p,normalizeComponentEncoding:f,removeDotSegments:d,isIPv4:r,isUUID:n,normalizeIPv6:l,stringArrayToHexStripped:i}})),Tf=F(((e,t)=>{let{isUUID:n}=wf(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function a(e){return i.indexOf(e)!==-1}function o(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]===`w`||e.scheme[0]===`W`)&&(e.scheme[1]===`s`||e.scheme[1]===`S`)&&(e.scheme[2]===`s`||e.scheme[2]===`S`):!1}function s(e){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e}function c(e){let t=String(e.scheme).toLowerCase()===`https`;return(e.port===(t?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}function l(e){return e.secure=o(e),e.resourceName=(e.path||`/`)+(e.query?`?`+e.query:``),e.path=void 0,e.query=void 0,e}function u(e){if((e.port===(o(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split(`?`);e.path=t&&t!==`/`?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function d(e,t){if(!e.path)return e.error=`URN can not be parsed`,e;let n=e.path.match(r);if(n){let r=t.scheme||e.scheme||`urn`;e.nid=n[1].toLowerCase(),e.nss=n[2];let i=S(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||`URN can not be parsed.`;return e}function f(e,t){if(e.nid===void 0)throw Error(`URN without nid cannot be serialized`);let n=t.scheme||e.scheme||`urn`,r=e.nid.toLowerCase(),i=S(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));let a=e,o=e.nss;return a.path=`${r||t.nid}:${o}`,t.skipEscape=!0,a}function p(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!n(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function m(e){let t=e;return t.nss=(e.uuid||``).toLowerCase(),t}let h={scheme:`http`,domainHost:!0,parse:s,serialize:c},g={scheme:`https`,domainHost:h.domainHost,parse:s,serialize:c},_={scheme:`ws`,domainHost:!0,parse:l,serialize:u},v={scheme:`wss`,domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},y={scheme:`urn`,parse:d,serialize:f,skipNormalize:!0},b={scheme:`urn:uuid`,parse:p,serialize:m,skipNormalize:!0},x={http:h,https:g,ws:_,wss:v,urn:y,"urn:uuid":b};Object.setPrototypeOf(x,null);function S(e){return e&&(x[e]||x[e.toLowerCase()])||void 0}t.exports={wsIsSecure:o,SCHEMES:x,isValidSchemeName:a,getSchemeHandler:S}})),Ef=F(((e,t)=>{let{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:i,normalizeComponentEncoding:a,isIPv4:o,nonSimpleDomain:s}=wf(),{SCHEMES:c,getSchemeHandler:l}=Tf();function u(e,t){return typeof e==`string`?e=m(g(e,t),t):typeof e==`object`&&(e=g(m(e,t),t)),e}function d(e,t,n){let r=n?Object.assign({scheme:`null`},n):{scheme:`null`},i=f(g(e,r),g(t,r),r,!0);return r.skipEscape=!0,m(i,r)}function f(e,t,n,i){let a={};return i||(e=g(m(e,n),n),t=g(m(t,n),n)),n||={},!n.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.path?(t.path[0]===`/`?a.path=r(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path=`/`+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:a.path=t.path,a.path=r(a.path)),a.query=t.query):(a.path=e.path,t.query===void 0?a.query=e.query:a.query=t.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function p(e,t,n){return typeof e==`string`?(e=unescape(e),e=m(a(g(e,n),!0),{...n,skipEscape:!0})):typeof e==`object`&&(e=m(a(e,!0),{...n,skipEscape:!0})),typeof t==`string`?(t=unescape(t),t=m(a(g(t,n),!0),{...n,skipEscape:!0})):typeof t==`object`&&(t=m(a(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function m(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:``},a=Object.assign({},t),o=[],s=l(a.scheme||n.scheme);s&&s.serialize&&s.serialize(n,a),n.path!==void 0&&(a.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split(`%3A`).join(`:`)))),a.reference!==`suffix`&&n.scheme&&o.push(n.scheme,`:`);let c=i(n);if(c!==void 0&&(a.reference!==`suffix`&&o.push(`//`),o.push(c),n.path&&n.path[0]!==`/`&&o.push(`/`)),n.path!==void 0){let e=n.path;!a.absolutePath&&(!s||!s.absolutePath)&&(e=r(e)),c===void 0&&e[0]===`/`&&e[1]===`/`&&(e=`/%2F`+e.slice(2)),o.push(e)}return n.query!==void 0&&o.push(`?`,n.query),n.fragment!==void 0&&o.push(`#`,n.fragment),o.join(``)}let h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},a=!1;r.reference===`suffix`&&(e=r.scheme?r.scheme+`:`+e:`//`+e);let c=e.match(h);if(c){if(i.scheme=c[1],i.userinfo=c[3],i.host=c[4],i.port=parseInt(c[5],10),i.path=c[6]||``,i.query=c[7],i.fragment=c[8],isNaN(i.port)&&(i.port=c[5]),i.host)if(o(i.host)===!1){let e=n(i.host);i.host=e.host.toLowerCase(),a=e.isIPV6}else a=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference=`same-document`:i.scheme===void 0?i.reference=`relative`:i.fragment===void 0?i.reference=`absolute`:i.reference=`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==i.reference&&(i.error=i.error||`URI is not a `+r.reference+` reference.`);let t=l(r.scheme||i.scheme);if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&i.host&&(r.domainHost||t&&t.domainHost)&&a===!1&&s(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||`Host's domain name can not be converted to ASCII: `+e}(!t||t&&!t.skipNormalize)&&(e.indexOf(`%`)!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=unescape(i.host))),i.path&&=escape(unescape(i.path)),i.fragment&&=encodeURI(decodeURIComponent(i.fragment))),t&&t.parse&&t.parse(i,r)}else i.error=i.error||`URI can not be parsed.`;return i}let _={SCHEMES:c,normalize:u,resolve:d,resolveComponent:f,equal:p,serialize:m,parse:g};t.exports=_,t.exports.default=_,t.exports.fastUri=_})),Df=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Ef();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t})),Of=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=yf();Object.defineProperty(e,`KeywordCxt`,{enumerable:!0,get:function(){return t.KeywordCxt}});var n=rf();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,`CodeGen`,{enumerable:!0,get:function(){return n.CodeGen}});let r=bf(),i=xf(),a=lf(),o=Sf(),s=rf(),c=vf(),l=df(),u=af(),d=Cf(),f=Df(),p=(e,t)=>new RegExp(e,t);p.code=`new RegExp`;let m=[`removeAdditional`,`useDefaults`,`coerceTypes`],h=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),g={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},_={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`};function v(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??p,a=e.uriResolver??f.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??200,loopEnum:e.loopEnum??200,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var y=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...v(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:h,es5:t,lines:n}),this.logger=D(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),b.call(this,g,e,`NOT SUPPORTED`),b.call(this,_,e,`DEPRECATED`,`warn`),this._metaOpts=T.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&w.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=d;n===`id`&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await a.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function a(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let n=await l.call(this,e);this.refs[e]||await a.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=x.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new o.SchemaEnv({schema:{},schemaId:n});if(t=o.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=x.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,c.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(k.call(this,n,t),!t)return(0,u.eachItem)(n,e=>A.call(this,e)),this;ee.call(this,t);let r={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,r.type.length===0?e=>A.call(this,e,r):e=>r.type.forEach(t=>A.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=ne(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof e==`object`)a=e[s];else if(this.opts.jtd)throw Error(`schema must be object`);else if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`);let l=this._cache.get(e);if(l!==void 0)return l;n=(0,c.normalizeId)(a||n);let u=c.getSchemaRefs.call(this,e,n);return l=new o.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(l.schema,l),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=l),r&&this.validateSchema(e,!0),l}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):o.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,e)}finally{this.opts=t}}};y.ValidationError=r.default,y.MissingRefError=i.default,e.default=y;function b(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function x(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function C(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function w(e){if(Array.isArray(e)){this.addVocabulary(e);return}for(let t in this.logger.warn(`keywords option as map is deprecated, pass array`),e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function T(){let e={...this.opts};for(let t of m)delete e[t];return e}let E={log(){},warn(){},error(){}};function D(e){if(e===!1)return E;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}let O=/^[a-z_$][a-z0-9_$:-]*$/i;function k(e,t){let{RULES:n}=this;if((0,u.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!O.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function A(e,t,n){var r;let i=t?.post;if(n&&i)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:a}=this,o=i?a.post:a.rules.find(({type:e})=>e===n);if(o||(o={type:n,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};t.before?j.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,(r=t.implements)==null||r.forEach(e=>this.addKeyword(e))}function j(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function ee(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=ne(t)),e.validateSchema=this.compile(t,!0))}let te={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function ne(e){return{anyOf:[e,te]}}})),kf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}})),Af=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.callRef=e.getValidate=void 0;let t=xf(),n=pf(),r=rf(),i=of(),a=Sf(),o=af(),s={keyword:`$ref`,schemaType:`string`,code(e){let{gen:n,schema:i,it:o}=e,{baseId:s,schemaEnv:u,validateName:d,opts:f,self:p}=o,{root:m}=u;if((i===`#`||i===`#/`)&&s===m.baseId)return g();let h=a.resolveRef.call(p,m,s,i);if(h===void 0)throw new t.default(o.opts.uriResolver,s,i);if(h instanceof a.SchemaEnv)return _(h);return v(h);function g(){if(u===m)return l(e,d,u,u.$async);let t=n.scopeValue(`root`,{ref:m});return l(e,(0,r._)`${t}.validate`,m,m.$async)}function _(t){l(e,c(e,t),t,t.$async)}function v(t){let a=n.scopeValue(`schema`,f.code.source===!0?{ref:t,code:(0,r.stringify)(t)}:{ref:t}),o=n.name(`valid`),s=e.subschema({schema:t,dataTypes:[],schemaPath:r.nil,topSchemaRef:a,errSchemaPath:i},o);e.mergeEvaluated(s),e.ok(o)}}};function c(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,r._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=c;function l(e,t,a,s){let{gen:c,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:r.nil;s?m():h();function m(){if(!d.$async)throw Error(`async schema referenced by sync schema`);let i=c.let(`valid`);c.try(()=>{c.code((0,r._)`await ${(0,n.callValidateCode)(e,t,p)}`),_(t),u||c.assign(i,!0)},e=>{c.if((0,r._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),g(e),u||c.assign(i,!1)}),e.ok(i)}function h(){e.result((0,n.callValidateCode)(e,t,p),()=>_(t),()=>g(t))}function g(e){let t=(0,r._)`${e}.errors`;c.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),c.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function _(e){if(!l.opts.unevaluated)return;let t=a?.validate?.evaluated;if(l.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(l.props=o.mergeEvaluated.props(c,t.props,l.props));else{let t=c.var(`props`,(0,r._)`${e}.evaluated.props`);l.props=o.mergeEvaluated.props(c,t,l.props,r.Name)}if(l.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(l.items=o.mergeEvaluated.items(c,t.items,l.items));else{let t=c.var(`items`,(0,r._)`${e}.evaluated.items`);l.items=o.mergeEvaluated.items(c,t,l.items,r.Name)}}}e.callRef=l,e.default=s})),jf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=kf(),n=Af();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]})),Mf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=t.operators,r={maximum:{okStr:`<=`,ok:n.LTE,fail:n.GT},minimum:{okStr:`>=`,ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:`<`,ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:`>`,ok:n.GT,fail:n.LTE}};e.default={keyword:Object.keys(r),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:n})=>(0,t.str)`must be ${r[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,t._)`{comparison: ${r[e].okStr}, limit: ${n}}`},code(e){let{keyword:n,data:i,schemaCode:a}=e;e.fail$data((0,t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`)}}})),Nf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf();e.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:n,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=n.let(`res`),c=o?(0,t._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,t._)`${s} !== parseInt(${s})`;e.fail$data((0,t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}}})),Pf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){let t=e.length,n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)==56320&&r++);return n}e.default=t,t.code=`require("ajv/dist/runtime/ucs2length").default`})),Ff=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af(),r=Pf();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxLength`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} characters`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:i,data:a,schemaCode:o,it:s}=e,c=i===`maxLength`?t.operators.GT:t.operators.LT,l=s.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,n.useFunc)(e.gen,r.default)}(${a})`;e.fail$data((0,t._)`${l} ${c} ${o}`)}}})),If=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=pf(),n=rf();e.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,n._)`{pattern: ${e}}`},code(e){let{data:r,$data:i,schema:a,schemaCode:o,it:s}=e,c=s.opts.unicodeRegExp?`u`:``,l=i?(0,n._)`(new RegExp(${o}, ${c}))`:(0,t.usePattern)(e,a);e.fail$data((0,n._)`!${l}.test(${r})`)}}})),Lf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf();e.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxProperties`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxProperties`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${r}).length ${a} ${i}`)}}})),Rf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=pf(),n=rf(),r=af();e.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`},code(e){let{gen:i,schema:a,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&a.length===0)return;let d=a.length>=u.loopRequired;if(l.allErrors?f():p(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of a)if(t?.[e]===void 0&&!n.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){if(d||c)e.block$data(n.nil,m);else for(let n of a)(0,t.checkReportMissingProp)(e,n)}function p(){let n=i.let(`missing`);if(d||c){let t=i.let(`valid`,!0);e.block$data(t,()=>h(n,t)),e.ok(t)}else i.if((0,t.checkMissingProp)(e,a,n)),(0,t.reportMissingProp)(e,n),i.else()}function m(){i.forOf(`prop`,o,n=>{e.setParams({missingProperty:n}),i.if((0,t.noPropertyInData)(i,s,n,u.ownProperties),()=>e.error())})}function h(r,a){e.setParams({missingProperty:r}),i.forOf(r,o,()=>{i.assign(a,(0,t.propertyInData)(i,s,r,u.ownProperties)),i.if((0,n.not)(a),()=>{e.error(),i.break()})},n.nil)}}}})),zf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxItems`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxItems`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${r}.length ${a} ${i}`)}}})),Bf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=gf();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t})),Vf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=df(),n=rf(),r=af(),i=Bf();e.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`},code(e){let{gen:a,data:o,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;let f=a.let(`valid`),p=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(f,m,(0,n._)`${u} === false`),e.ok(f);function m(){let t=a.let(`i`,(0,n._)`${o}.length`),r=a.let(`j`);e.setParams({i:t,j:r}),a.assign(f,!0),a.if((0,n._)`${t} > 1`,()=>(h()?g:_)(t,r))}function h(){return p.length>0&&!p.some(e=>e===`object`||e===`array`)}function g(r,i){let s=a.name(`item`),c=(0,t.checkDataTypes)(p,s,d.opts.strictNumbers,t.DataType.Wrong),l=a.const(`indices`,(0,n._)`{}`);a.for((0,n._)`;${r}--;`,()=>{a.let(s,(0,n._)`${o}[${r}]`),a.if(c,(0,n._)`continue`),p.length>1&&a.if((0,n._)`typeof ${s} == "string"`,(0,n._)`${s} += "_"`),a.if((0,n._)`typeof ${l}[${s}] == "number"`,()=>{a.assign(i,(0,n._)`${l}[${s}]`),e.error(),a.assign(f,!1).break()}).code((0,n._)`${l}[${s}] = ${r}`)})}function _(t,s){let c=(0,r.useFunc)(a,i.default),l=a.name(`outer`);a.label(l).for((0,n._)`;${t}--;`,()=>a.for((0,n._)`${s} = ${t}; ${s}--;`,()=>a.if((0,n._)`${c}(${o}[${t}], ${o}[${s}])`,()=>{e.error(),a.assign(f,!1).break(l)})))}}}})),Hf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af(),r=Bf();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:i,data:a,$data:o,schemaCode:s,schema:c}=e;o||c&&typeof c==`object`?e.fail$data((0,t._)`!${(0,n.useFunc)(i,r.default)}(${a}, ${s})`):e.fail((0,t._)`${c} !== ${a}`)}}})),Uf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af(),r=Bf();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,f=()=>d??=(0,n.useFunc)(i,r.default),p;if(u||o)p=i.let(`valid`),e.block$data(p,m);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=i.const(`vSchema`,c);p=(0,t.or)(...s.map((t,n)=>h(e,n)))}e.pass(p);function m(){i.assign(p,!1),i.forOf(`v`,c,e=>i.if((0,t._)`${f()}(${a}, ${e})`,()=>i.assign(p,!0).break()))}function h(e,n){let r=s[n];return typeof r==`object`&&r?(0,t._)`${f()}(${a}, ${e}[${n}])`:(0,t._)`${a} === ${r}`}}}})),Wf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Mf(),n=Nf(),r=Ff(),i=If(),a=Lf(),o=Rf(),s=zf(),c=Vf(),l=Hf(),u=Uf();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]})),Gf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateAdditionalItems=void 0;let t=rf(),n=af(),r={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,n.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}i(e,a)}};function i(e,r){let{gen:i,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=i.const(`len`,(0,t._)`${o}.length`);if(a===!1)e.setParams({len:r.length}),e.pass((0,t._)`${l} <= ${r.length}`);else if(typeof a==`object`&&!(0,n.alwaysValidSchema)(c,a)){let n=i.var(`valid`,(0,t._)`${l} <= ${r.length}`);i.if((0,t.not)(n),()=>u(n)),e.ok(n)}function u(a){i.forRange(`i`,r.length,l,r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),c.allErrors||i.if((0,t.not)(a),()=>i.break())})}}e.validateAdditionalItems=i,e.default=r})),Kf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateTuple=void 0;let t=rf(),n=af(),r=pf(),i={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return a(e,`additionalItems`,t);i.items=!0,!(0,n.alwaysValidSchema)(i,t)&&e.ok((0,r.validateArray)(e))}};function a(e,r,i=e.schema){let{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;f(o),l.opts.unevaluated&&i.length&&l.items!==!0&&(l.items=n.mergeEvaluated.items(a,i.length,l.items));let u=a.name(`valid`),d=a.const(`len`,(0,t._)`${s}.length`);i.forEach((r,i)=>{(0,n.alwaysValidSchema)(l,r)||(a.if((0,t._)`${d} > ${i}`,()=>e.subschema({keyword:c,schemaProp:i,dataProp:i},u)),e.ok(u))});function f(e){let{opts:t,errSchemaPath:a}=l,o=i.length,s=o===e.minItems&&(o===e.maxItems||e[r]===!1);if(t.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${r} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,t.strictTuples)}}}e.validateTuple=a,e.default=i})),qf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Kf();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}})),Jf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af(),r=pf(),i=Gf();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:a,it:o}=e,{prefixItems:s}=a;o.items=!0,!(0,n.alwaysValidSchema)(o,t)&&(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,r.validateArray)(e)))}}})),Yf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:n}})=>n===void 0?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${n}}`},code(e){let{gen:r,schema:i,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=r.const(`len`,(0,t._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,n.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,n.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,n.alwaysValidSchema)(s,i)){let n=(0,t._)`${f} >= ${c}`;l!==void 0&&(n=(0,t._)`${n} && ${f} <= ${l}`),e.pass(n);return}s.items=!0;let p=r.name(`valid`);l===void 0&&c===1?h(p,()=>r.if(p,()=>r.break())):c===0?(r.let(p,!0),l!==void 0&&r.if((0,t._)`${o}.length > 0`,m)):(r.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let e=r.name(`_valid`),t=r.let(`count`,0);h(e,()=>r.if(e,()=>g(t)))}function h(t,i){r.forRange(`i`,0,f,r=>{e.subschema({keyword:`contains`,dataProp:r,dataPropType:n.Type.Num,compositeRule:!0},t),i()})}function g(e){r.code((0,t._)`${e}++`),l===void 0?r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0).break()):(r.if((0,t._)`${e} > ${l}`,()=>r.assign(p,!1).break()),c===1?r.assign(p,!0):r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0)))}}}})),Xf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;let t=rf(),n=af(),r=pf();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{let i=n===1?`property`:`properties`;return(0,t.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:i}})=>(0,t._)`{property: ${e},
missingProperty: ${i},
depsCount: ${n},
deps: ${r}}`};let i={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=a(e);o(e,t),s(e,n)}};function a({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function o(e,n=e.schema){let{gen:i,data:a,it:o}=e;if(Object.keys(n).length===0)return;let s=i.let(`missing`);for(let c in n){let l=n[c];if(l.length===0)continue;let u=(0,r.propertyInData)(i,a,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),o.allErrors?i.if(u,()=>{for(let t of l)(0,r.checkReportMissingProp)(e,t)}):(i.if((0,t._)`${u} && (${(0,r.checkMissingProp)(e,l,s)})`),(0,r.reportMissingProp)(e,s),i.else())}}e.validatePropertyDeps=o;function s(e,t=e.schema){let{gen:i,data:a,keyword:o,it:s}=e,c=i.name(`valid`);for(let l in t)(0,n.alwaysValidSchema)(s,t[l])||(i.if((0,r.propertyInData)(i,a,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>i.var(c,!0)),e.ok(c))}e.validateSchemaDeps=s,e.default=i})),Zf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,i))return;let s=r.name(`valid`);r.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),r.if((0,t.not)(s),()=>{e.error(!0),o.allErrors||r.break()})}),e.ok(s)}}})),Qf=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=pf(),n=rf(),r=of(),i=af();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:a,schema:o,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,i.alwaysValidSchema)(u,o))return;let p=(0,t.allSchemaProperties)(s.properties),m=(0,t.allSchemaProperties)(s.patternProperties);h(),e.ok((0,n._)`${l} === ${r.default.errors}`);function h(){a.forIn(`key`,c,e=>{!p.length&&!m.length?v(e):a.if(g(e),()=>v(e))})}function g(r){let o;if(p.length>8){let e=(0,i.schemaRefOrVal)(u,s.properties,`properties`);o=(0,t.isOwnProperty)(a,e,r)}else o=p.length?(0,n.or)(...p.map(e=>(0,n._)`${r} === ${e}`)):n.nil;return m.length&&(o=(0,n.or)(o,...m.map(i=>(0,n._)`${(0,t.usePattern)(e,i)}.test(${r})`))),(0,n.not)(o)}function _(e){a.code((0,n._)`delete ${c}[${e}]`)}function v(t){if(f.removeAdditional===`all`||f.removeAdditional&&o===!1){_(t);return}if(o===!1){e.setParams({additionalProperty:t}),e.error(),d||a.break();return}if(typeof o==`object`&&!(0,i.alwaysValidSchema)(u,o)){let r=a.name(`valid`);f.removeAdditional===`failing`?(y(t,r,!1),a.if((0,n.not)(r),()=>{e.reset(),_(t)})):(y(t,r),d||a.if((0,n.not)(r),()=>a.break()))}}function y(t,n,r){let a={keyword:`additionalProperties`,dataProp:t,dataPropType:i.Type.Str};r===!1&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,n)}}}})),$f=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=yf(),n=pf(),r=af(),i=Qf();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,parentSchema:s,data:c,it:l}=e;l.opts.removeAdditional===`all`&&s.additionalProperties===void 0&&i.default.code(new t.KeywordCxt(l,i.default,`additionalProperties`));let u=(0,n.allSchemaProperties)(o);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(a,(0,r.toHash)(u),l.props));let d=u.filter(e=>!(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0)return;let f=a.name(`valid`);for(let t of d)p(t)?m(t):(a.if((0,n.propertyInData)(a,c,t,l.opts.ownProperties)),m(t),l.allErrors||a.else().var(f,!0),a.endIf()),e.it.definedProperties.add(t),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&o[e].default!==void 0}function m(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}})),ep=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=pf(),n=rf(),r=af(),i=af();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,t.allSchemaProperties)(o),f=d.filter(e=>(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=a.name(`valid`);l.props!==!0&&!(l.props instanceof n.Name)&&(l.props=(0,i.evaluatedPropsToName)(a,l.props));let{props:h}=l;g();function g(){for(let e of d)p&&_(e),l.allErrors?v(e):(a.var(m,!0),v(e),a.if(m))}function _(e){for(let t in p)new RegExp(e).test(t)&&(0,r.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(r){a.forIn(`key`,s,o=>{a.if((0,n._)`${(0,t.usePattern)(e,r)}.test(${o})`,()=>{let t=f.includes(r);t||e.subschema({keyword:`patternProperties`,schemaProp:r,dataProp:o,dataPropType:i.Type.Str},m),l.opts.unevaluated&&h!==!0?a.assign((0,n._)`${h}[${o}]`,!0):!t&&!l.allErrors&&a.if((0,n.not)(m),()=>a.break())})})}}}})),tp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=af();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:n,schema:r,it:i}=e;if((0,t.alwaysValidSchema)(i,r)){e.fail();return}let a=n.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}})),np=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:pf().validateUnion,error:{message:`must match a schema in anyOf`}}})),rp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:r,schema:i,parentSchema:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=i,c=r.let(`valid`,!1),l=r.let(`passing`,null),u=r.name(`_valid`);e.setParams({passing:l}),r.block(d),e.result(c,()=>e.reset(),()=>e.error(!0));function d(){s.forEach((i,a)=>{let s;(0,n.alwaysValidSchema)(o,i)?r.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&r.if((0,t._)`${u} && ${c}`).assign(c,!1).assign(l,(0,t._)`[${l}, ${a}]`).else(),r.if(u,()=>{r.assign(c,!0),r.assign(l,a),s&&e.mergeEvaluated(s,t.Name)})})}}}})),ip=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=af();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:n,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=n.name(`valid`);r.forEach((n,r)=>{if((0,t.alwaysValidSchema)(i,n))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}})),ap=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=af(),r={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:r,parentSchema:a,it:o}=e;a.then===void 0&&a.else===void 0&&(0,n.checkStrictMode)(o,`"if" without "then" and "else" is ignored`);let s=i(o,`then`),c=i(o,`else`);if(!s&&!c)return;let l=r.let(`valid`,!0),u=r.name(`_valid`);if(d(),e.reset(),s&&c){let t=r.let(`ifClause`);e.setParams({ifClause:t}),r.if(u,f(`then`,t),f(`else`,t))}else s?r.if(u,f(`then`)):r.if((0,t.not)(u),f(`else`));e.pass(l,()=>e.error(!0));function d(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}function f(n,i){return()=>{let a=e.subschema({keyword:n},u);r.assign(l,u),e.mergeValidEvaluated(a,l),i?r.assign(i,(0,t._)`${n}`):e.setParams({ifClause:n})}}}};function i(e,t){let r=e.schema[t];return r!==void 0&&!(0,n.alwaysValidSchema)(e,r)}e.default=r})),op=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=af();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:n,it:r}){n.if===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}})),sp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=Gf(),n=qf(),r=Kf(),i=Jf(),a=Yf(),o=Xf(),s=Zf(),c=Qf(),l=$f(),u=ep(),d=tp(),f=np(),p=rp(),m=ip(),h=ap(),g=op();function _(e=!1){let _=[d.default,f.default,p.default,m.default,h.default,g.default,s.default,c.default,o.default,l.default,u.default];return e?_.push(n.default,i.default):_.push(t.default,r.default),_.push(a.default),_}e.default=_})),cp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,n){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?p():m();function p(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,t._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,t._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,t._)`${o}.type || "string"`).assign(u,(0,t._)`${o}.validate`),()=>r.assign(c,(0,t._)`"string"`).assign(u,o)),e.fail$data((0,t.or)(p(),m()));function p(){return l.strictSchema===!1?t.nil:(0,t._)`${s} && !${u}`}function m(){let e=d.$async?(0,t._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,t._)`${u}(${i})`,r=(0,t._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,t._)`${u} && ${u} !== true && ${c} === ${n} && !${r}`}}function m(){let a=f.formats[o];if(!a){m();return}if(a===!0)return;let[s,c,p]=h(a);s===n&&e.pass(g());function m(){if(l.strictSchema===!1){f.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function h(e){let n=e instanceof RegExp?(0,t.regexpCode)(e):l.code.formats?(0,t._)`${l.code.formats}${(0,t.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:n});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,t._)`${i}.validate`]:[`string`,e,i]}function g(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,t._)`await ${p}(${i})`}return typeof c==`function`?(0,t._)`${p}(${i})`:(0,t._)`${p}.test(${i})`}}}}})),lp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=[cp().default]})),up=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]})),dp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=jf(),n=Wf(),r=sp(),i=lp(),a=up();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]})),fp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))})),pp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=rf(),n=fp(),r=Sf(),i=xf(),a=af();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:r}})=>(0,t._)`{error: ${e}, tag: ${r}, tagValue: ${n}}`},code(e){let{gen:o,data:s,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=c.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(c.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=o.let(`valid`,!1),m=o.const(`tag`,(0,t._)`${s}${(0,t.getProperty)(f)}`);o.if((0,t._)`typeof ${m} == "string"`,()=>h(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function h(){let r=_();for(let e in o.if(!1),r)o.elseIf((0,t._)`${m} === ${e}`),o.assign(p,g(r[e]));o.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:m,tagName:f}),o.endIf()}function g(n){let r=o.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,t.Name),r}function _(){let e={},t=o(l),n=!0;for(let e=0;e<d.length;e++){let c=d[e];if(c?.$ref&&!(0,a.schemaHasRulesButRef)(c,u.self.RULES)){let e=c.$ref;if(c=r.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),c instanceof r.SchemaEnv&&(c=c.schema),c===void 0)throw new i.default(u.opts.uriResolver,u.baseId,e)}let l=c?.properties?.[f];if(typeof l!=`object`)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n&&=t||o(c),s(l,e)}if(!n)throw Error(`discriminator: "${f}" must be required`);return e;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,t){if(e.const)c(e.const,t);else if(e.enum)for(let n of e.enum)c(n,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}function c(t,n){if(typeof t!=`string`||t in e)throw Error(`discriminator: "${f}" values must be unique strings`);e[t]=n}}}}})),mp=F(((e,t)=>{t.exports={$schema:`http://json-schema.org/draft-07/schema#`,$id:`http://json-schema.org/draft-07/schema#`,title:`Core schema meta-schema`,definitions:{schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},type:[`object`,`boolean`],properties:{$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},default:!0}})),hp=F(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;let n=Of(),r=dp(),i=pp(),a=mp(),o=[`/properties`],s=`http://json-schema.org/draft-07/schema`;var c=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(a,o):a;this.addMetaSchema(e,s,!1),this.refs[`http://json-schema.org/schema`]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}};e.Ajv=c,t.exports=e=c,t.exports.Ajv=c,Object.defineProperty(e,`__esModule`,{value:!0}),e.default=c;var l=yf();Object.defineProperty(e,`KeywordCxt`,{enumerable:!0,get:function(){return l.KeywordCxt}});var u=rf();Object.defineProperty(e,`_`,{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,`str`,{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,`nil`,{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,`Name`,{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,`CodeGen`,{enumerable:!0,get:function(){return u.CodeGen}});var d=bf();Object.defineProperty(e,`ValidationError`,{enumerable:!0,get:function(){return d.default}});var f=xf();Object.defineProperty(e,`MissingRefError`,{enumerable:!0,get:function(){return f.default}})})),gp=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(e,t){return{validate:e,compare:t}}e.fullFormats={date:t(a,o),time:t(c(!0),l),"date-time":t(f(!0),p),"iso-time":t(c(),u),"iso-date-time":t(f(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:E,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:`number`,validate:S},int64:{type:`number`,validate:C},float:{type:`number`,validate:w},double:{type:`number`,validate:w},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(e){return e%4==0&&(e%100!=0||e%400==0)}let r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){let t=r.exec(e);if(!t)return!1;let a=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(o===2&&n(a)?29:i[o])}function o(e,t){if(e&&t)return e>t?1:e<t?-1:0}let s=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(e){return function(t){let n=s.exec(t);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=n[4],c=n[5]===`-`?-1:1,l=+(n[6]||0),u=+(n[7]||0);if(l>23||u>59||e&&!o)return!1;if(r<=23&&i<=59&&a<60)return!0;let d=i-u*c,f=r-l*c-(d<0?1:0);return(f===23||f===-1)&&(d===59||d===-1)&&a<61}}function l(e,t){if(!(e&&t))return;let n=new Date(`2020-01-01T`+e).valueOf(),r=new Date(`2020-01-01T`+t).valueOf();if(n&&r)return n-r}function u(e,t){if(!(e&&t))return;let n=s.exec(e),r=s.exec(t);if(n&&r)return e=n[1]+n[2]+n[3],t=r[1]+r[2]+r[3],e>t?1:e<t?-1:0}let d=/t|\s/i;function f(e){let t=c(e);return function(e){let n=e.split(d);return n.length===2&&a(n[0])&&t(n[1])}}function p(e,t){if(!(e&&t))return;let n=new Date(e).valueOf(),r=new Date(t).valueOf();if(n&&r)return n-r}function m(e,t){if(!(e&&t))return;let[n,r]=e.split(d),[i,a]=t.split(d),s=o(n,i);if(s!==void 0)return s||l(r,a)}let h=/\/|:/,g=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function _(e){return h.test(e)&&g.test(e)}let v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(e){return v.lastIndex=0,v.test(e)}let b=-(2**31),x=2**31-1;function S(e){return Number.isInteger(e)&&e<=x&&e>=b}function C(e){return Number.isInteger(e)}function w(){return!0}let T=/[^\\]\\Z/;function E(e){if(T.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),_p=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.formatLimitDefinition=void 0;let t=hp(),n=rf(),r=n.operators,i={formatMaximum:{okStr:`<=`,ok:r.LTE,fail:r.GT},formatMinimum:{okStr:`>=`,ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:`<`,ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:`>`,ok:r.GT,fail:r.LTE}};e.formatLimitDefinition={keyword:Object.keys(i),type:`string`,schemaType:`string`,$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{gen:r,data:a,schemaCode:o,keyword:s,it:c}=e,{opts:l,self:u}=c;if(!l.validateFormats)return;let d=new t.KeywordCxt(c,u.RULES.all.format.definition,`format`);d.$data?f():p();function f(){let t=r.scopeValue(`formats`,{ref:u.formats,code:l.code.formats}),i=r.const(`fmt`,(0,n._)`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)((0,n._)`typeof ${i} != "object"`,(0,n._)`${i} instanceof RegExp`,(0,n._)`typeof ${i}.compare != "function"`,m(i)))}function p(){let t=d.schema,i=u.formats[t];if(!i||i===!0)return;if(typeof i!=`object`||i instanceof RegExp||typeof i.compare!=`function`)throw Error(`"${s}": format "${t}" does not define "compare" function`);let a=r.scopeValue(`formats`,{key:t,ref:i,code:l.code.formats?(0,n._)`${l.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(m(a))}function m(e){return(0,n._)`${e}.compare(${a}, ${o}) ${i[s].fail} 0`}},dependencies:[`format`]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),vp=F(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});let n=gp(),r=_p(),i=rf(),a=new i.Name(`fullFormats`),o=new i.Name(`fastFormats`),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,a),e;let[i,s]=t.mode===`fast`?[n.fastFormats,o]:[n.fullFormats,a];return c(e,t.formats||n.formatNames,i,s),t.keywords&&(0,r.default)(e),e};s.get=(e,t=`full`)=>{let r=(t===`fast`?n.fastFormats:n.fullFormats)[e];if(!r)throw Error(`Unknown format "${e}"`);return r};function c(e,t,n,r){var a;(a=e.opts.code).formats??(a.formats=(0,i._)`require("ajv-formats/dist/formats").${r}`);for(let r of t)e.addFormat(r,n[r])}t.exports=e=s,Object.defineProperty(e,`__esModule`,{value:!0}),e.default=s})),yp=_e(hp(),1),bp=_e(vp(),1);function xp(){let e=new yp.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,bp.default)(e),e}var Sp=class{constructor(e){this._ajv=e??xp()}getValidator(e){let t=`$id`in e&&typeof e.$id==`string`?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return e=>t(e)?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}},Cp=class{constructor(e){this._server=e}requestStream(e,t,n){return this._server.requestStream(e,t,n)}async getTask(e,t){return this._server.getTask({taskId:e},t)}async getTaskResult(e,t,n){return this._server.getTaskResult({taskId:e},t,n)}async listTasks(e,t){return this._server.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._server.cancelTask({taskId:e},t)}};function wp(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);switch(t){case`tools/call`:if(!e.tools?.call)throw Error(`${n} does not support task creation for tools/call (required for ${t})`);break;default:break}}function Tp(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);switch(t){case`sampling/createMessage`:if(!e.sampling?.createMessage)throw Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case`elicitation/create`:if(!e.elicitation?.create)throw Error(`${n} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var Ep=class extends Qd{constructor(e,t){super(t),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(ou.options.map((e,t)=>[e,t])),this.isMessageIgnored=(e,t)=>{let n=this._loggingLevels.get(t);return n?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(n):!1},this._capabilities=t?.capabilities??{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new Sp,this.setRequestHandler(Wc,e=>this._oninitialize(e)),this.setNotificationHandler(qc,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(cu,async(e,t)=>{let n=t.sessionId||t.requestInfo?.headers[`mcp-session-id`]||void 0,{level:r}=e.params,i=ou.safeParse(r);return i.success&&this._loggingLevels.set(n,i.data),{}})}get experimental(){return this._experimental||={tasks:new Cp(this)},this._experimental}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after connecting to transport`);this._capabilities=ef(this._capabilities,e)}setRequestHandler(e,t){let n=vo(e)?.method;if(!n)throw Error(`Schema is missing a method literal`);let r;if(mo(n)){let e=n;r=e._zod?.def?.value??e.value}else{let e=n;r=e._def?.value??e.value}if(typeof r!=`string`)throw Error(`Schema method literal must be a string`);return r===`tools/call`?super.setRequestHandler(e,async(e,n)=>{let r=go(iu,e);if(!r.success){let e=r.error instanceof Error?r.error.message:String(r.error);throw new Uu(kc.InvalidParams,`Invalid tools/call request: ${e}`)}let{params:i}=r.data,a=await Promise.resolve(t(e,n));if(i.task){let e=go(rl,a);if(!e.success){let t=e.error instanceof Error?e.error.message:String(e.error);throw new Uu(kc.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}let o=go(nu,a);if(!o.success){let e=o.error instanceof Error?o.error.message:String(o.error);throw new Uu(kc.InvalidParams,`Invalid tools/call result: ${e}`)}return o.data}):super.setRequestHandler(e,t)}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._clientCapabilities?.sampling)throw Error(`Client does not support sampling (required for ${e})`);break;case`elicitation/create`:if(!this._clientCapabilities?.elicitation)throw Error(`Client does not support elicitation (required for ${e})`);break;case`roots/list`:if(!this._clientCapabilities?.roots)throw Error(`Client does not support listing roots (required for ${e})`);break;case`ping`:break}}assertNotificationCapability(e){switch(e){case`notifications/message`:if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${e})`);break;case`notifications/resources/updated`:case`notifications/resources/list_changed`:if(!this._capabilities.resources)throw Error(`Server does not support notifying about resources (required for ${e})`);break;case`notifications/tools/list_changed`:if(!this._capabilities.tools)throw Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case`notifications/prompts/list_changed`:if(!this._capabilities.prompts)throw Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case`notifications/elicitation/complete`:if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for ${e})`);break;case`notifications/cancelled`:break;case`notifications/progress`:break}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case`completion/complete`:if(!this._capabilities.completions)throw Error(`Server does not support completions (required for ${e})`);break;case`logging/setLevel`:if(!this._capabilities.logging)throw Error(`Server does not support logging (required for ${e})`);break;case`prompts/get`:case`prompts/list`:if(!this._capabilities.prompts)throw Error(`Server does not support prompts (required for ${e})`);break;case`resources/list`:case`resources/templates/list`:case`resources/read`:if(!this._capabilities.resources)throw Error(`Server does not support resources (required for ${e})`);break;case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Server does not support tools (required for ${e})`);break;case`tasks/get`:case`tasks/list`:case`tasks/result`:case`tasks/cancel`:if(!this._capabilities.tasks)throw Error(`Server does not support tasks capability (required for ${e})`);break;case`ping`:case`initialize`:break}}assertTaskCapability(e){Tp(this._clientCapabilities?.tasks?.requests,e,`Client`)}assertTaskHandlerCapability(e){this._capabilities&&wp(this._capabilities.tasks?.requests,e,`Server`)}async _oninitialize(e){let t=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:sc.includes(t)?t:oc,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:`ping`},Nc)}async createMessage(e,t){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw Error(`Client does not support sampling tools capability.`);if(e.messages.length>0){let t=e.messages[e.messages.length-1],n=Array.isArray(t.content)?t.content:[t.content],r=n.some(e=>e.type===`tool_result`),i=e.messages.length>1?e.messages[e.messages.length-2]:void 0,a=i?Array.isArray(i.content)?i.content:[i.content]:[],o=a.some(e=>e.type===`tool_use`);if(r){if(n.some(e=>e.type!==`tool_result`))throw Error(`The last message must contain only tool_result content if any is present`);if(!o)throw Error(`tool_result blocks are not matching any tool_use from the previous message`)}if(o){let e=new Set(a.filter(e=>e.type===`tool_use`).map(e=>e.id)),t=new Set(n.filter(e=>e.type===`tool_result`).map(e=>e.toolUseId));if(e.size!==t.size||![...e].every(e=>t.has(e)))throw Error(`ids of tool_result blocks and tool_use blocks from previous message do not match`)}}return e.tools?this.request({method:`sampling/createMessage`,params:e},bu,t):this.request({method:`sampling/createMessage`,params:e},yu,t)}async elicitInput(e,t){switch(e.mode??`form`){case`url`:{if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support url elicitation.`);let n=e;return this.request({method:`elicitation/create`,params:n},ju,t)}case`form`:{if(!this._clientCapabilities?.elicitation?.form)throw Error(`Client does not support form elicitation.`);let n=e.mode===`form`?e:{...e,mode:`form`},r=await this.request({method:`elicitation/create`,params:n},ju,t);if(r.action===`accept`&&r.content&&n.requestedSchema)try{let e=this._jsonSchemaValidator.getValidator(n.requestedSchema)(r.content);if(!e.valid)throw new Uu(kc.InvalidParams,`Elicitation response content does not match requested schema: ${e.errorMessage}`)}catch(e){throw e instanceof Uu?e:new Uu(kc.InternalError,`Error validating elicitation response: ${e instanceof Error?e.message:String(e)}`)}return r}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw Error(`Client does not support URL elicitation (required for notifications/elicitation/complete)`);return()=>this.notification({method:`notifications/elicitation/complete`,params:{elicitationId:e}},t)}async listRoots(e,t){return this.request({method:`roots/list`,params:e},Vu,t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:`notifications/message`,params:e})}async sendResourceUpdated(e){return this.notification({method:`notifications/resources/updated`,params:e})}async sendResourceListChanged(){return this.notification({method:`notifications/resources/list_changed`})}async sendToolListChanged(){return this.notification({method:`notifications/tools/list_changed`})}async sendPromptListChanged(){return this.notification({method:`notifications/prompts/list_changed`})}};const Dp=Symbol.for(`mcp.completable`);function Op(e){return!!e&&typeof e==`object`&&Dp in e}function kp(e){return e[Dp]?.complete}var Ap;(function(e){e.Completable=`McpCompletable`})(Ap||={});const jp=/^[A-Za-z0-9._-]{1,128}$/;function Mp(e){let t=[];if(e.length===0)return{isValid:!1,warnings:[`Tool name cannot be empty`]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(` `)&&t.push(`Tool name contains spaces, which may cause parsing issues`),e.includes(`,`)&&t.push(`Tool name contains commas, which may cause parsing issues`),(e.startsWith(`-`)||e.endsWith(`-`))&&t.push(`Tool name starts or ends with a dash, which may cause parsing issues in some contexts`),(e.startsWith(`.`)||e.endsWith(`.`))&&t.push(`Tool name starts or ends with a dot, which may cause parsing issues in some contexts`),!jp.test(e)){let n=e.split(``).filter(e=>!/[A-Za-z0-9._-]/.test(e)).filter((e,t,n)=>n.indexOf(e)===t);return t.push(`Tool name contains invalid characters: ${n.map(e=>`"${e}"`).join(`, `)}`,`Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)`),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function Np(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let e of t)console.warn(` - ${e}`);console.warn(`Tool registration will proceed, but this may cause compatibility issues.`),console.warn(`Consider updating the tool name to conform to the MCP tool naming standard.`),console.warn(`See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.`)}}function Pp(e){let t=Mp(e);return Np(e,t.warnings),t.isValid}var Fp=class{constructor(e){this._mcpServer=e}registerToolTask(e,t,n){let r={taskSupport:`required`,...t.execution};if(r.taskSupport===`forbidden`)throw Error(`Cannot register task-based tool '${e}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(e,t.title,t.description,t.inputSchema,t.outputSchema,t.annotations,r,t._meta,n)}},Ip=class{constructor(e,t){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new Ep(e,t)}get experimental(){return this._experimental||={tasks:new Fp(this)},this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||=(this.server.assertCanSetRequestHandler(Up(eu)),this.server.assertCanSetRequestHandler(Up(iu)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(eu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:(()=>{let e=yo(t.inputSchema);return e?Yd(e,{strictUnions:!0,pipeStrategy:`input`}):Lp})(),annotations:t.annotations,execution:t.execution,_meta:t._meta};if(t.outputSchema){let e=yo(t.outputSchema);e&&(n.outputSchema=Yd(e,{strictUnions:!0,pipeStrategy:`output`}))}return n})})),this.server.setRequestHandler(iu,async(e,t)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new Uu(kc.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new Uu(kc.InvalidParams,`Tool ${e.params.name} disabled`);let r=!!e.params.task,i=n.execution?.taskSupport,a=`createTask`in n.handler;if((i===`required`||i===`optional`)&&!a)throw new Uu(kc.InternalError,`Tool ${e.params.name} has taskSupport '${i}' but was not registered with registerToolTask`);if(i===`required`&&!r)throw new Uu(kc.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(i===`optional`&&!r&&a)return await this.handleAutomaticTaskPolling(n,e,t);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),s=await this.executeToolHandler(n,o,t);return r||await this.validateToolOutput(n,s,e.params.name),s}catch(e){if(e instanceof Uu&&e.code===kc.UrlElicitationRequired)throw e;return this.createToolError(e instanceof Error?e.message:String(e))}}),!0)}createToolError(e){return{content:[{type:`text`,text:e}],isError:!0}}async validateToolInput(e,t,n){if(!e.inputSchema)return;let r=await _o(yo(e.inputSchema)??e.inputSchema,t);if(!r.success){let e=bo(`error`in r?r.error:`Unknown error`);throw new Uu(kc.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${e}`)}return r.data}async validateToolOutput(e,t,n){if(!e.outputSchema||!(`content`in t)||t.isError)return;if(!t.structuredContent)throw new Uu(kc.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let r=await _o(yo(e.outputSchema),t.structuredContent);if(!r.success){let e=bo(`error`in r?r.error:`Unknown error`);throw new Uu(kc.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${e}`)}}async executeToolHandler(e,t,n){let r=e.handler;if(`createTask`in r){if(!n.taskStore)throw Error(`No task store provided.`);let i={...n,taskStore:n.taskStore};if(e.inputSchema){let e=r;return await Promise.resolve(e.createTask(t,i))}else{let e=r;return await Promise.resolve(e.createTask(i))}}if(e.inputSchema){let e=r;return await Promise.resolve(e(t,n))}else{let e=r;return await Promise.resolve(e(n))}}async handleAutomaticTaskPolling(e,t,n){if(!n.taskStore)throw Error(`No task store provided for task-capable tool.`);let r=await this.validateToolInput(e,t.params.arguments,t.params.name),i=e.handler,a={...n,taskStore:n.taskStore},o=r?await Promise.resolve(i.createTask(r,a)):await Promise.resolve(i.createTask(a)),s=o.task.taskId,c=o.task,l=c.pollInterval??5e3;for(;c.status!==`completed`&&c.status!==`failed`&&c.status!==`cancelled`;){await new Promise(e=>setTimeout(e,l));let e=await n.taskStore.getTask(s);if(!e)throw new Uu(kc.InternalError,`Task ${s} not found during polling`);c=e}return await n.taskStore.getTaskResult(s)}setCompletionRequestHandler(){this._completionHandlerInitialized||=(this.server.assertCanSetRequestHandler(Up(Fu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Fu,async e=>{switch(e.params.ref.type){case`ref/prompt`:return Iu(e),this.handlePromptCompletion(e,e.params.ref);case`ref/resource`:return Lu(e),this.handleResourceCompletion(e,e.params.ref);default:throw new Uu(kc.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),!0)}async handlePromptCompletion(e,t){let n=this._registeredPrompts[t.name];if(!n)throw new Uu(kc.InvalidParams,`Prompt ${t.name} not found`);if(!n.enabled)throw new Uu(kc.InvalidParams,`Prompt ${t.name} disabled`);if(!n.argsSchema)return Gp;let r=vo(n.argsSchema)?.[e.params.argument.name];if(!Op(r))return Gp;let i=kp(r);return i?Wp(await i(e.params.argument.value,e.params.context)):Gp}async handleResourceCompletion(e,t){let n=Object.values(this._registeredResourceTemplates).find(e=>e.resourceTemplate.uriTemplate.toString()===t.uri);if(!n){if(this._registeredResources[t.uri])return Gp;throw new Uu(kc.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let r=n.resourceTemplate.completeCallback(e.params.argument.name);return r?Wp(await r(e.params.argument.value,e.params.context)):Gp}setResourceRequestHandlers(){this._resourceHandlersInitialized||=(this.server.assertCanSetRequestHandler(Up(xl)),this.server.assertCanSetRequestHandler(Up(Cl)),this.server.assertCanSetRequestHandler(Up(Dl)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(xl,async(e,t)=>{let n=Object.entries(this._registeredResources).filter(([e,t])=>t.enabled).map(([e,t])=>({uri:e,name:t.name,...t.metadata})),r=[];for(let e of Object.values(this._registeredResourceTemplates)){if(!e.resourceTemplate.listCallback)continue;let n=await e.resourceTemplate.listCallback(t);for(let t of n.resources)r.push({...e.metadata,...t})}return{resources:[...n,...r]}}),this.server.setRequestHandler(Cl,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler(Dl,async(e,t)=>{let n=new URL(e.params.uri),r=this._registeredResources[n.toString()];if(r){if(!r.enabled)throw new Uu(kc.InvalidParams,`Resource ${n} disabled`);return r.readCallback(n,t)}for(let e of Object.values(this._registeredResourceTemplates)){let r=e.resourceTemplate.uriTemplate.match(n.toString());if(r)return e.readCallback(n,r,t)}throw new Uu(kc.InvalidParams,`Resource ${n} not found`)}),!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||=(this.server.assertCanSetRequestHandler(Up(Rl)),this.server.assertCanSetRequestHandler(Up(Vl)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Rl,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?Hp(t.argsSchema):void 0}))})),this.server.setRequestHandler(Vl,async(e,t)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new Uu(kc.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new Uu(kc.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let r=await _o(yo(n.argsSchema),e.params.arguments);if(!r.success){let t=bo(`error`in r?r.error:`Unknown error`);throw new Uu(kc.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${t}`)}let i=r.data,a=n.callback;return await Promise.resolve(a(i,t))}else{let e=n.callback;return await Promise.resolve(e(t))}}),!0)}resource(e,t,...n){let r;typeof n[0]==`object`&&(r=n.shift());let i=n[0];if(typeof t==`string`){if(this._registeredResources[t])throw Error(`Resource ${t} is already registered`);let n=this._createRegisteredResource(e,void 0,t,r,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),n}else{if(this._registeredResourceTemplates[e])throw Error(`Resource template ${e} is already registered`);let n=this._createRegisteredResourceTemplate(e,void 0,t,r,i);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),n}}registerResource(e,t,n,r){if(typeof t==`string`){if(this._registeredResources[t])throw Error(`Resource ${t} is already registered`);let i=this._createRegisteredResource(e,n.title,t,n,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}else{if(this._registeredResourceTemplates[e])throw Error(`Resource template ${e} is already registered`);let i=this._createRegisteredResourceTemplate(e,n.title,t,n,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),i}}_createRegisteredResource(e,t,n,r,i){let a={name:e,title:t,metadata:r,readCallback:i,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:e=>{e.uri!==void 0&&e.uri!==n&&(delete this._registeredResources[n],e.uri&&(this._registeredResources[e.uri]=a)),e.name!==void 0&&(a.name=e.name),e.title!==void 0&&(a.title=e.title),e.metadata!==void 0&&(a.metadata=e.metadata),e.callback!==void 0&&(a.readCallback=e.callback),e.enabled!==void 0&&(a.enabled=e.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=a,a}_createRegisteredResourceTemplate(e,t,n,r,i){let a={resourceTemplate:n,title:t,metadata:r,readCallback:i,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:t=>{t.name!==void 0&&t.name!==e&&(delete this._registeredResourceTemplates[e],t.name&&(this._registeredResourceTemplates[t.name]=a)),t.title!==void 0&&(a.title=t.title),t.template!==void 0&&(a.resourceTemplate=t.template),t.metadata!==void 0&&(a.metadata=t.metadata),t.callback!==void 0&&(a.readCallback=t.callback),t.enabled!==void 0&&(a.enabled=t.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=a;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(e=>!!n.completeCallback(e))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(e,t,n,r,i){let a={title:t,description:n,argsSchema:r===void 0?void 0:ho(r),callback:i,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:t=>{t.name!==void 0&&t.name!==e&&(delete this._registeredPrompts[e],t.name&&(this._registeredPrompts[t.name]=a)),t.title!==void 0&&(a.title=t.title),t.description!==void 0&&(a.description=t.description),t.argsSchema!==void 0&&(a.argsSchema=ho(t.argsSchema)),t.callback!==void 0&&(a.callback=t.callback),t.enabled!==void 0&&(a.enabled=t.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=a,r&&Object.values(r).some(e=>Op(e instanceof Bt?e._def?.innerType:e))&&this.setCompletionRequestHandler(),a}_createRegisteredTool(e,t,n,r,i,a,o,s,c){Pp(e);let l={title:t,description:n,inputSchema:Vp(r),outputSchema:Vp(i),annotations:a,execution:o,_meta:s,handler:c,enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:t=>{t.name!==void 0&&t.name!==e&&(typeof t.name==`string`&&Pp(t.name),delete this._registeredTools[e],t.name&&(this._registeredTools[t.name]=l)),t.title!==void 0&&(l.title=t.title),t.description!==void 0&&(l.description=t.description),t.paramsSchema!==void 0&&(l.inputSchema=ho(t.paramsSchema)),t.outputSchema!==void 0&&(l.outputSchema=ho(t.outputSchema)),t.callback!==void 0&&(l.handler=t.callback),t.annotations!==void 0&&(l.annotations=t.annotations),t._meta!==void 0&&(l._meta=t._meta),t.enabled!==void 0&&(l.enabled=t.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=l,this.setToolRequestHandlers(),this.sendToolListChanged(),l}tool(e,...t){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let n,r,i;if(typeof t[0]==`string`&&(n=t.shift()),t.length>1){let e=t[0];Bp(e)?(r=t.shift(),t.length>1&&typeof t[0]==`object`&&t[0]!==null&&!Bp(t[0])&&(i=t.shift())):typeof e==`object`&&e&&(i=t.shift())}let a=t[0];return this._createRegisteredTool(e,void 0,n,r,void 0,i,{taskSupport:`forbidden`},void 0,a)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let{title:r,description:i,inputSchema:a,outputSchema:o,annotations:s,_meta:c}=t;return this._createRegisteredTool(e,r,i,a,o,s,{taskSupport:`forbidden`},c,n)}prompt(e,...t){if(this._registeredPrompts[e])throw Error(`Prompt ${e} is already registered`);let n;typeof t[0]==`string`&&(n=t.shift());let r;t.length>1&&(r=t.shift());let i=t[0],a=this._createRegisteredPrompt(e,void 0,n,r,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}registerPrompt(e,t,n){if(this._registeredPrompts[e])throw Error(`Prompt ${e} is already registered`);let{title:r,description:i,argsSchema:a}=t,o=this._createRegisteredPrompt(e,r,i,a,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};const Lp={type:`object`,properties:{}};function Rp(e){return typeof e==`object`&&!!e&&`parse`in e&&typeof e.parse==`function`&&`safeParse`in e&&typeof e.safeParse==`function`}function zp(e){return`_def`in e||`_zod`in e||Rp(e)}function Bp(e){return typeof e!=`object`||!e||zp(e)?!1:Object.keys(e).length===0?!0:Object.values(e).some(Rp)}function Vp(e){if(e)return Bp(e)?ho(e):e}function Hp(e){let t=vo(e);return t?Object.entries(t).map(([e,t])=>({name:e,description:xo(t),required:!So(t)})):[]}function Up(e){let t=vo(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Co(t);if(typeof n==`string`)return n;throw Error(`Schema method literal must be a string`)}function Wp(e){return{completion:{values:e.slice(0,100),total:e.length,hasMore:e.length>100}}}const Gp={completion:{values:[],hasMore:!1}};var Kp=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
`);if(e===-1)return null;let t=this._buffer.toString(`utf8`,0,e).replace(/\r$/,``);return this._buffer=this._buffer.subarray(e+1),qp(t)}clear(){this._buffer=void 0}};function qp(e){return Mc.parse(JSON.parse(e))}function Jp(e){return JSON.stringify(e)+`
`}var Yp=class{constructor(e=t.stdin,n=t.stdout){this._stdin=e,this._stdout=n,this._readBuffer=new Kp,this._started=!1,this._ondata=e=>{this._readBuffer.append(e),this.processReadBuffer()},this._onerror=e=>{this.onerror?.(e)}}async start(){if(this._started)throw Error(`StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.`);this._started=!0,this._stdin.on(`data`,this._ondata),this._stdin.on(`error`,this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off(`data`,this._ondata),this._stdin.off(`error`,this._onerror),this._stdin.listenerCount(`data`)===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(t=>{let n=Jp(e);this._stdout.write(n)?t():this._stdout.once(`drain`,t)})}};function Xp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Zp}=Object.prototype,{getPrototypeOf:Qp}=Object,{iterator:$p,toStringTag:em}=Symbol,tm=(e=>t=>{let n=Zp.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nm=e=>(e=e.toLowerCase(),t=>tm(t)===e),rm=e=>t=>typeof t===e,{isArray:im}=Array,am=rm(`undefined`);function om(e){return e!==null&&!am(e)&&e.constructor!==null&&!am(e.constructor)&&um(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sm=nm(`ArrayBuffer`);function cm(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sm(e.buffer),t}const lm=rm(`string`),um=rm(`function`),dm=rm(`number`),fm=e=>typeof e==`object`&&!!e,pm=e=>e===!0||e===!1,mm=e=>{if(tm(e)!==`object`)return!1;let t=Qp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(em in e)&&!($p in e)},hm=e=>{if(!fm(e)||om(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gm=nm(`Date`),_m=nm(`File`),vm=nm(`Blob`),ym=nm(`FileList`),bm=e=>fm(e)&&um(e.pipe),xm=e=>{let t;return e&&(typeof FormData==`function`&&e instanceof FormData||um(e.append)&&((t=tm(e))===`formdata`||t===`object`&&um(e.toString)&&e.toString()===`[object FormData]`))},Sm=nm(`URLSearchParams`),[Cm,wm,Tm,Em]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(nm),Dm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Om(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),im(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(om(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function km(e,t){if(om(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Am=(()=>typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global)(),jm=e=>!am(e)&&e!==Am;function Mm(){let{caseless:e,skipUndefined:t}=jm(this)&&this||{},n={},r=(r,i)=>{let a=e&&km(n,i)||i;mm(n[a])&&mm(r)?n[a]=Mm(n[a],r):mm(r)?n[a]=Mm({},r):im(r)?n[a]=r.slice():(!t||!am(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Om(arguments[e],r);return n}const Nm=(e,t,n,{allOwnKeys:r}={})=>(Om(t,(t,r)=>{n&&um(t)?e[r]=Xp(t,n):e[r]=t},{allOwnKeys:r}),e),Pm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fm=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Im=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Qp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Rm=e=>{if(!e)return null;if(im(e))return e;let t=e.length;if(!dm(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},zm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Qp(Uint8Array)),Bm=(e,t)=>{let n=(e&&e[$p]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Vm=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Hm=nm(`HTMLFormElement`),Um=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Wm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gm=nm(`RegExp`),Km=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Om(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},qm=e=>{Km(e,(t,n)=>{if(um(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(um(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Jm=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return im(e)?r(e):r(String(e).split(t)),n},Ym=()=>{},Xm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zm(e){return!!(e&&um(e.append)&&e[em]===`FormData`&&e[$p])}const Qm=e=>{let t=Array(10),n=(e,r)=>{if(fm(e)){if(t.indexOf(e)>=0)return;if(om(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=im(e)?[]:{};return Om(e,(e,t)=>{let a=n(e,r+1);!am(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},$m=nm(`AsyncFunction`),eh=e=>e&&(fm(e)||um(e))&&um(e.then)&&um(e.catch),th=((e,t)=>e?setImmediate:t?((e,t)=>(Am.addEventListener(`message`,({source:n,data:r})=>{n===Am&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Am.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,um(Am.postMessage));var K={isArray:im,isArrayBuffer:sm,isBuffer:om,isFormData:xm,isArrayBufferView:cm,isString:lm,isNumber:dm,isBoolean:pm,isObject:fm,isPlainObject:mm,isEmptyObject:hm,isReadableStream:Cm,isRequest:wm,isResponse:Tm,isHeaders:Em,isUndefined:am,isDate:gm,isFile:_m,isBlob:vm,isRegExp:Gm,isFunction:um,isStream:bm,isURLSearchParams:Sm,isTypedArray:zm,isFileList:ym,forEach:Om,merge:Mm,extend:Nm,trim:Dm,stripBOM:Pm,inherits:Fm,toFlatObject:Im,kindOf:tm,kindOfTest:nm,endsWith:Lm,toArray:Rm,forEachEntry:Bm,matchAll:Vm,isHTMLForm:Hm,hasOwnProperty:Wm,hasOwnProp:Wm,reduceDescriptors:Km,freezeMethods:qm,toObjectSet:Jm,toCamelCase:Um,noop:Ym,toFiniteNumber:Xm,findKey:km,global:Am,isContextDefined:jm,isSpecCompliantForm:Zm,toJSONObject:Qm,isAsyncFn:$m,isThenable:eh,setImmediate:th,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Am):typeof process<`u`&&process.nextTick||th,isIterable:e=>e!=null&&um(e[$p])};function nh(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}K.inherits(nh,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const rh=nh.prototype,ih={};[`ERR_BAD_OPTION_VALUE`,`ERR_BAD_OPTION`,`ECONNABORTED`,`ETIMEDOUT`,`ERR_NETWORK`,`ERR_FR_TOO_MANY_REDIRECTS`,`ERR_DEPRECATED`,`ERR_BAD_RESPONSE`,`ERR_BAD_REQUEST`,`ERR_CANCELED`,`ERR_NOT_SUPPORT`,`ERR_INVALID_URL`].forEach(e=>{ih[e]={value:e}}),Object.defineProperties(nh,ih),Object.defineProperty(rh,`isAxiosError`,{value:!0}),nh.from=(e,t,n,r,i,a)=>{let o=Object.create(rh);K.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>e!==`isAxiosError`);let s=e&&e.message?e.message:`Error`,c=t==null&&e?e.code:t;return nh.call(o,s,c,n,r,i),e&&o.cause==null&&Object.defineProperty(o,`cause`,{value:e,configurable:!0}),o.name=e&&e.name||`Error`,a&&Object.assign(o,a),o};var ah=nh,oh=F(((e,t)=>{var n=ve(`stream`).Stream,r=ve(`util`);t.exports=i;function i(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}r.inherits(i,n),i.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(i.prototype,`readable`,{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),i.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},i.prototype.resume=function(){this._released||this.release(),this.source.resume()},i.prototype.pause=function(){this.source.pause()},i.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},i.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);return this.resume(),e},i.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},i.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this.emit(`error`,Error(e))}}})),sh=F(((e,t)=>{var n=ve(`util`),r=ve(`stream`).Stream,i=oh();t.exports=a;function a(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}n.inherits(a,r),a.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},a.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},a.prototype.append=function(e){if(a.isStreamLike(e)){if(!(e instanceof i)){var t=i.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},a.prototype.pipe=function(e,t){return r.prototype.pipe.call(this,e,t),this.resume(),e},a.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},a.prototype._realGetNext=function(){var e=this._streams.shift();if(e===void 0){this.end();return}if(typeof e!=`function`){this._pipeNext(e);return}e(function(e){a.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this))},a.prototype._pipeNext=function(e){if(this._currentStream=e,a.isStreamLike(e)){e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});return}var t=e;this.write(t),this._getNext()},a.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},a.prototype.write=function(e){this.emit(`data`,e)},a.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},a.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume==`function`&&this._currentStream.resume(),this.emit(`resume`)},a.prototype.end=function(){this._reset(),this.emit(`end`)},a.prototype.destroy=function(){this._reset(),this.emit(`close`)},a.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},a.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},a.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},a.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),ch=F(((e,t)=>{t.exports={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),lh=F(((e,t)=>{
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/
t.exports=ch()})),uh=F((e=>{var t=lh(),n=ve(`path`).extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;e.charset=a,e.charsets={lookup:a},e.contentType=o,e.extension=s,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function a(e){if(!e||typeof e!=`string`)return!1;var n=r.exec(e),a=n&&t[n[1].toLowerCase()];return a&&a.charset?a.charset:n&&i.test(n[1])?`UTF-8`:!1}function o(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function s(t){if(!t||typeof t!=`string`)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];return!i||!i.length?!1:i[0]}function c(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().substr(1);return r&&e.types[r]||!1}function l(e,n){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(t).forEach(function(i){var a=t[i],o=a.extensions;if(!(!o||!o.length)){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(n[c]){var l=r.indexOf(t[n[c]].source),u=r.indexOf(a.source);if(n[c]!==`application/octet-stream`&&(l>u||l===u&&n[c].substr(0,12)===`application/`))continue}n[c]=i}}})}})),dh=F(((e,t)=>{t.exports=n;function n(e){var t=typeof setImmediate==`function`?setImmediate:typeof process==`object`&&typeof process.nextTick==`function`?process.nextTick:null;t?t(e):setTimeout(e,0)}})),fh=F(((e,t)=>{var n=dh();t.exports=r;function r(e){var t=!1;return n(function(){t=!0}),function(r,i){t?e(r,i):n(function(){e(r,i)})}}})),ph=F(((e,t)=>{t.exports=n;function n(e){Object.keys(e.jobs).forEach(r.bind(e)),e.jobs={}}function r(e){typeof this.jobs[e]==`function`&&this.jobs[e]()}})),mh=F(((e,t)=>{var n=fh(),r=ph();t.exports=i;function i(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=a(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?r(n):n.results[o]=t,i(e,n.results))})}function a(e,t,r,i){return e.length==2?e(r,n(i)):e(r,t,n(i))}})),hh=F(((e,t)=>{t.exports=n;function n(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}})),gh=F(((e,t)=>{var n=ph(),r=fh();t.exports=i;function i(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),r(e)(null,this.results))}})),_h=F(((e,t)=>{var n=mh(),r=hh(),i=gh();t.exports=a;function a(e,t,a){for(var o=r(e);o.index<(o.keyedList||e).length;)n(e,t,o,function(e,t){if(e){a(e,t);return}if(Object.keys(o.jobs).length===0){a(null,o.results);return}}),o.index++;return i.bind(o,a)}})),vh=F(((e,t)=>{var n=mh(),r=hh(),i=gh();t.exports=a,t.exports.ascending=o,t.exports.descending=s;function a(e,t,a,o){var s=r(e,a);return n(e,t,s,function r(i,a){if(i){o(i,a);return}if(s.index++,s.index<(s.keyedList||e).length){n(e,t,s,r);return}o(null,s.results)}),i.bind(s,o)}function o(e,t){return e<t?-1:e>t?1:0}function s(e,t){return-1*o(e,t)}})),yh=F(((e,t)=>{var n=vh();t.exports=r;function r(e,t,r){return n(e,t,null,r)}})),bh=F(((e,t)=>{t.exports={parallel:_h(),serial:yh(),serialOrdered:vh()}})),xh=F(((e,t)=>{t.exports=Object})),Sh=F(((e,t)=>{t.exports=Error})),Ch=F(((e,t)=>{t.exports=EvalError})),wh=F(((e,t)=>{t.exports=RangeError})),Th=F(((e,t)=>{t.exports=ReferenceError})),Eh=F(((e,t)=>{t.exports=SyntaxError})),Dh=F(((e,t)=>{t.exports=TypeError})),Oh=F(((e,t)=>{t.exports=URIError})),kh=F(((e,t)=>{t.exports=Math.abs})),Ah=F(((e,t)=>{t.exports=Math.floor})),jh=F(((e,t)=>{t.exports=Math.max})),Mh=F(((e,t)=>{t.exports=Math.min})),Nh=F(((e,t)=>{t.exports=Math.pow})),Ph=F(((e,t)=>{t.exports=Math.round})),Fh=F(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Ih=F(((e,t)=>{var n=Fh();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Lh=F(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Rh=F(((e,t)=>{var n=Lh();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),zh=F(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Bh=F(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Vh=F(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Bh();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Hh=F(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Uh=F(((e,t)=>{t.exports=xh().getPrototypeOf||null})),Wh=F(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),Gh=F(((e,t)=>{var n=Wh();t.exports=Function.prototype.bind||n})),Kh=F(((e,t)=>{t.exports=Function.prototype.call})),qh=F(((e,t)=>{t.exports=Function.prototype.apply})),Jh=F(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Yh=F(((e,t)=>{var n=Gh(),r=qh(),i=Kh();t.exports=Jh()||n.call(i,r)})),Xh=F(((e,t)=>{var n=Gh(),r=Dh(),i=Kh(),a=Yh();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Zh=F(((e,t)=>{var n=Xh(),r=Rh(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Qh=F(((e,t)=>{var n=Hh(),r=Uh(),i=Zh();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),$h=F(((e,t)=>{let n=async function(){}.constructor;t.exports=()=>n})),eg=F(((e,t)=>{let n=function*(){}.constructor;t.exports=()=>n})),tg=F(((e,t)=>{let n=async function*(){}.constructor;t.exports=()=>n})),ng=F(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Gh().call(n,r)})),rg=F(((e,t)=>{var n,r=xh(),i=Sh(),a=Ch(),o=wh(),s=Th(),c=Eh(),l=Dh(),u=Oh(),d=kh(),f=Ah(),p=jh(),m=Mh(),h=Nh(),g=Ph(),_=Ih(),v=Rh(),y=zh(),b=function(){throw new l},x=v?function(){try{return arguments.callee,b}catch{try{return v(arguments,`callee`).get}catch{return b}}}():b,S=Vh()(),C=Qh(),w=Uh(),T=Hh(),E=qh(),D=Kh(),O={},k=typeof Uint8Array>`u`||!C?n:C(Uint8Array),A={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&C?C([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&C?C(C([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!S||!C?n:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!S||!C?n:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&C?C(``[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":k,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":E,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":w,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":T};if(C)try{null.error}catch(e){A[`%Error.prototype%`]=C(C(e))}var j=$h(),ee=eg(),te=tg(),ne=function e(t){var n;if(t===`%AsyncFunction%`)n=j()||void 0;else if(t===`%GeneratorFunction%`)n=ee()||void 0;else if(t===`%AsyncGeneratorFunction%`)n=te()||void 0;else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&C&&(n=C(i.prototype))}return A[t]=n,n},re={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},M=Gh(),ie=ng(),ae=M.call(D,Array.prototype.concat),N=M.call(E,Array.prototype.splice),oe=M.call(D,String.prototype.replace),se=M.call(D,String.prototype.slice),P=M.call(D,RegExp.prototype.exec),ce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,ue=function(e){var t=se(e,0,1),n=se(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return oe(e,ce,function(e,t,n,i){r[r.length]=n?oe(i,le,`$1`):t||e}),r},de=function(e,t){var n=e,r;if(ie(re,n)&&(r=re[n],n=`%`+r[0]+`%`),ie(A,n)){var i=A[n];if(i===O&&(i=ne(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(P(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ue(e),r=n.length>0?n[0]:``,i=de(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],N(n,ae([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=se(p,0,1),h=se(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ie(A,a))o=A[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(v&&d+1>=n.length){var g=v(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ie(o,p),o=o[p];f&&!s&&(A[a]=o)}}return o}})),ig=F(((e,t)=>{var n=Bh();t.exports=function(){return n()&&!!Symbol.toStringTag}})),ag=F(((e,t)=>{var n=rg()(`%Object.defineProperty%`,!0),r=ig()(),i=ng(),a=Dh(),o=r?Symbol.toStringTag:null;t.exports=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(r!==void 0&&typeof r!=`boolean`||s!==void 0&&typeof s!=`boolean`)throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");o&&(r||!i(e,o))&&(n?n(e,o,{configurable:!s,enumerable:!1,value:t,writable:!1}):e[o]=t)}})),og=F(((e,t)=>{t.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}})),sg=_e(F(((e,t)=>{var n=sh(),r=ve(`util`),i=ve(`path`),a=ve(`http`),o=ve(`https`),s=ve(`url`).parse,c=ve(`fs`),l=ve(`stream`).Stream,u=ve(`crypto`),d=uh(),f=bh(),p=ag(),m=ng(),h=og();function g(e){if(!(this instanceof g))return new g(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],n.call(this),e||={},e)this[t]=e[t]}r.inherits(g,n),g.LINE_BREAK=`\r
`,g.DEFAULT_CONTENT_TYPE=`application/octet-stream`,g.prototype.append=function(e,t,r){r||={},typeof r==`string`&&(r={filename:r});var i=n.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t)){this._error(Error(`Arrays are not supported.`));return}var a=this._multiPartHeader(e,t,r),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,r)},g.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+g.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&m(t,`httpVersion`))&&!(t instanceof l))&&(n.knownLength||this._valuesToMeasure.push(t))},g.prototype._lengthRetriever=function(e,t){m(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):c.stat(e.path,function(n,r){if(n){t(n);return}t(null,r.size-(e.start?e.start:0))}):m(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):m(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},g.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+e+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&h(o,n.header);var s;for(var c in o)if(m(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+g.LINE_BREAK)}return`--`+this.getBoundary()+g.LINE_BREAK+a+g.LINE_BREAK},g.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=i.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=i.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&m(e,`httpVersion`)&&(n=i.basename(e.client._httpMessage.path||``)),n)return`filename="`+n+`"`},g.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&m(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=d.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=g.DEFAULT_CONTENT_TYPE),n},g.prototype._multiPartFooter=function(){return function(e){var t=g.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},g.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+g.LINE_BREAK},g.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)m(e,t)&&(n[t.toLowerCase()]=e[t]);return n},g.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},g.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},g.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(g.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},g.prototype._generateBoundary=function(){this._boundary=`--------------------------`+u.randomBytes(12).toString(`hex`)},g.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},g.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},g.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}f.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){e(n);return}r.forEach(function(e){t+=e}),e(null,t)})},g.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=s(e),r=h({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=h(e,i),r.port||=r.protocol===`https:`?443:80),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?o.request(r):a.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`){this._error(e);return}if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},g.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},g.prototype.toString=function(){return`[object FormData]`},p(g.prototype,`FormData`),t.exports=g}))(),1).default;function cg(e){return K.isPlainObject(e)||K.isArray(e)}function lg(e){return K.endsWith(e,`[]`)?e.slice(0,-2):e}function ug(e,t,n){return e?e.concat(t).map(function(e,t){return e=lg(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function dg(e){return K.isArray(e)&&!e.some(cg)}const fg=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});function pg(e,t,n){if(!K.isObject(e))throw TypeError(`target must be an object`);t||=new(sg||FormData),n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!K.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!s&&K.isBlob(e))throw new ah(`Blob is not supported. Use a Buffer instead.`);return K.isArrayBuffer(e)||K.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&typeof e==`object`){if(K.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&dg(e)||(K.isFileList(e)||K.endsWith(n,`[]`))&&(s=K.toArray(e)))return n=lg(n),s.forEach(function(e,r){!(K.isUndefined(e)||e===null)&&t.append(o===!0?ug([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return cg(e)?!0:(t.append(ug(i,n,a),c(e)),!1)}let u=[],d=Object.assign(fg,{defaultVisitor:l,convertValue:c,isVisitable:cg});function f(e,n){if(!K.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),K.forEach(e,function(e,r){(!(K.isUndefined(e)||e===null)&&i.call(t,e,K.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!K.isObject(e))throw TypeError(`data must be an object`);return f(e),t}var mg=pg;function hg(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function gg(e,t){this._pairs=[],e&&mg(e,this,t)}const _g=gg.prototype;_g.append=function(e,t){this._pairs.push([e,t])},_g.toString=function(e){let t=e?function(t){return e.call(this,t,hg)}:hg;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};var vg=gg;function yg(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function bg(e,t,n){if(!t)return e;let r=n&&n.encode||yg;K.isFunction(n)&&(n={serialize:n});let i=n&&n.serialize,a;if(a=i?i(t,n):K.isURLSearchParams(t)?t.toString():new vg(t,n).toString(r),a){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}var xg=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){K.forEach(this.handlers,function(t){t!==null&&e(t)})}},Sg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cg=d.URLSearchParams;const wg=`abcdefghijklmnopqrstuvwxyz`,Tg={DIGIT:`0123456789`,ALPHA:wg,ALPHA_DIGIT:wg+`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`};var Eg={isNode:!0,classes:{URLSearchParams:Cg,FormData:sg,Blob:typeof Blob<`u`&&Blob||null},ALPHABET:Tg,generateString:(e=16,t=Tg.ALPHA_DIGIT)=>{let n=``,{length:r}=t,i=new Uint32Array(e);g.randomFillSync(i);for(let a=0;a<e;a++)n+=t[i[a]%r];return n},protocols:[`http`,`https`,`file`,`data`]},Dg=ge({hasBrowserEnv:()=>Og,hasStandardBrowserEnv:()=>Ag,hasStandardBrowserWebWorkerEnv:()=>jg,navigator:()=>kg,origin:()=>Mg});const Og=typeof window<`u`&&typeof document<`u`,kg=typeof navigator==`object`&&navigator||void 0,Ag=Og&&(!kg||[`ReactNative`,`NativeScript`,`NS`].indexOf(kg.product)<0),jg=(()=>typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`)(),Mg=Og&&window.location.href||`http://localhost`;var Ng={...Dg,...Eg};function Pg(e,t){return mg(e,new Ng.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ng.isNode&&K.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Fg(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Ig(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Lg(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&K.isArray(r)?r.length:a,s?(K.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!K.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&K.isArray(r[a])&&(r[a]=Ig(r[a])),!o)}if(K.isFormData(e)&&K.isFunction(e.entries)){let n={};return K.forEachEntry(e,(e,r)=>{t(Fg(e),r,n,0)}),n}return null}var Rg=Lg;function zg(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}const Bg={transitional:Sg,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=K.isObject(e);if(i&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(Rg(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Pg(e,this.formSerializer).toString();if((a=K.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return mg(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),zg(e)):e}],transformResponse:[function(e){let t=this.transitional||Bg.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?ah.from(e,ah.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ng.classes.FormData,Blob:Ng.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Bg.headers[e]={}});var Vg=Bg;const Hg=K.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]);var Ug=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Hg[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};const Wg=Symbol(`internals`);function Gg(e){return e&&String(e).trim().toLowerCase()}function Kg(e){return e===!1||e==null?e:K.isArray(e)?e.map(Kg):String(e)}function qg(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Jg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yg(e,t,n,r,i){if(K.isFunction(r))return r.call(this,t,n);if(i&&(t=n),K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function Xg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Zg(e,t){let n=K.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var Qg=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Gg(t);if(!i)throw Error(`header name must be a non-empty string`);let a=K.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Kg(e))}let a=(e,t)=>K.forEach(e,(e,n)=>i(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(K.isString(e)&&(e=e.trim())&&!Jg(e))a(Ug(e),t);else if(K.isObject(e)&&K.isIterable(e)){let n={},r,i;for(let t of e){if(!K.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?K.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Gg(e),e){let n=K.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return qg(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Gg(e),e){let n=K.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Yg(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Gg(e),e){let i=K.findKey(n,e);i&&(!t||Yg(n,n[i],i,t))&&(delete n[i],r=!0)}}return K.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Yg(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return K.forEach(this,(r,i)=>{let a=K.findKey(n,i);if(a){t[a]=Kg(r),delete t[i];return}let o=e?Xg(i):String(i).trim();o!==i&&delete t[i],t[o]=Kg(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return K.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&K.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Wg]=this[Wg]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Gg(e);t[r]||(Zg(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}};Qg.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),K.reduceDescriptors(Qg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(Qg);var $g=Qg;function e_(e,t){let n=this||Vg,r=t||n,i=$g.from(r.headers),a=r.data;return K.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function t_(e){return!!(e&&e.__CANCEL__)}function n_(e,t,n){ah.call(this,e??`canceled`,ah.ERR_CANCELED,t,n),this.name=`CanceledError`}K.inherits(n_,ah,{__CANCEL__:!0});var r_=n_;function i_(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ah(`Request failed with status code `+n.status,[ah.ERR_BAD_REQUEST,ah.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function a_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function o_(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function s_(e,t,n){let r=!a_(t);return e&&(r||n==0)?o_(e,t):t}var c_=F((e=>{var t=ve(`url`).parse,n={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},r=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function i(e){var r=typeof e==`string`?t(e):e||{},i=r.protocol,s=r.host,c=r.port;if(typeof s!=`string`||!s||typeof i!=`string`||(i=i.split(`:`,1)[0],s=s.replace(/:\d*$/,``),c=parseInt(c)||n[i]||0,!a(s,c)))return``;var l=o(`npm_config_`+i+`_proxy`)||o(i+`_proxy`)||o(`npm_config_proxy`)||o(`all_proxy`);return l&&l.indexOf(`://`)===-1&&(l=i+`://`+l),l}function a(e,t){var n=(o(`npm_config_no_proxy`)||o(`no_proxy`)).toLowerCase();return n?n===`*`?!1:n.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),a=i?i[1]:n,o=i?parseInt(i[2]):0;return o&&o!==t?!0:/^[.*]/.test(a)?(a.charAt(0)===`*`&&(a=a.slice(1)),!r.call(e,a)):e!==a}):!0}function o(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||``}e.getProxyForUrl=i})),l_=F(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),u_=F(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=l_(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),d_=F(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=u_()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),f_=F(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),p_=F(((e,t)=>{let n=ve(`os`),r=ve(`tty`),i=f_(),{env:a}=process,o;i(`no-color`)||i(`no-colors`)||i(`color=false`)||i(`color=never`)?o=0:(i(`color`)||i(`colors`)||i(`color=true`)||i(`color=always`))&&(o=1),`FORCE_COLOR`in a&&(o=a.FORCE_COLOR===`true`?1:a.FORCE_COLOR===`false`?0:a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function c(e,t){if(o===0)return 0;if(i(`color=16m`)||i(`color=full`)||i(`color=truecolor`))return 3;if(i(`color=256`))return 2;if(e&&!t&&o===void 0)return 0;let r=o||0;if(a.TERM===`dumb`)return r;if(process.platform===`win32`){let e=n.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in a)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in a)||a.CI_NAME===`codeship`?1:r;if(`TEAMCITY_VERSION`in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in a){let e=parseInt((a.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(a.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||`COLORTERM`in a?1:r}function l(e){return s(c(e,e&&e.isTTY))}t.exports={supportsColor:l,stdout:s(c(!0,r.isatty(1))),stderr:s(c(!0,r.isatty(2)))}})),m_=F(((e,t)=>{let n=ve(`tty`),r=ve(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=p_();t&&(t.stderr||t).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(`
`).join(`
`+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+`
`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}t.exports=u_()(e);let{formatters:d}=t.exports;d.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split(`
`).map(e=>e.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),h_=F(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=d_():t.exports=m_()})),g_=F(((e,t)=>{var n;t.exports=function(){if(!n){try{n=h_()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),__=F(((e,t)=>{var n=ve(`url`),r=n.URL,i=ve(`http`),a=ve(`https`),o=ve(`stream`).Writable,s=ve(`assert`),c=g_();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=j(Error.captureStackTrace);!e&&(t||!n)&&console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var l=!1;try{s(new r(``))}catch(e){l=e.code===`ERR_INVALID_URL`}var u=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],d=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],f=Object.create(null);d.forEach(function(e){f[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var p=D(`ERR_INVALID_URL`,`Invalid URL`,TypeError),m=D(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),h=D(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,m),g=D(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),_=D(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),v=o.prototype.destroy||x;function y(e,t){o.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on(`response`,t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof m?e:new m({cause:e}))}},this._performRequest()}y.prototype=Object.create(o.prototype),y.prototype.abort=function(){O(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},y.prototype.destroy=function(e){return O(this._currentRequest,e),v.call(this,e),this},y.prototype.write=function(e,t,n){if(this._ending)throw new _;if(!A(e)&&!ee(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);if(j(t)&&(n=t,t=null),e.length===0){n&&n();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new g),this.abort())},y.prototype.end=function(e,t,n){if(j(e)?(n=e,e=t=null):j(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},y.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},y.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},y.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){y.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(y.prototype,e,{get:function(){return this._currentRequest[e]}})}),y.prototype._sanitizeOptions=function(e){if(e.headers||={},e.host&&(e.hostname||=e.host,delete e.host),!e.pathname&&e.path){var t=e.path.indexOf(`?`);t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},y.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of d)i.on(a,f[a]);if(this._currentUrl=/^\//.test(this._options.path)?n.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest)if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()})()}},y.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];return}if(O(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new h;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method===`POST`||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method=`GET`,this._requestBodyBuffers=[],E(/^content-/i,this._options.headers));var s=E(/^host$/i,this._options.headers),l=S(this._currentUrl),u=s||l.host,d=/^\w+:/.test(r)?this._currentUrl:n.format(Object.assign(l,{host:u})),f=C(r,d);if(c(`redirecting to`,f.href),this._isRedirect=!0,T(f,this._options),(f.protocol!==l.protocol&&f.protocol!==`https:`||f.host!==u&&!k(f.host,u))&&E(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),j(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()};function b(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function l(e,r,a){return te(e)?e=T(e):A(e)?e=T(S(e)):(a=r,r=w(e),e={protocol:i}),j(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!A(r.host)&&!A(r.hostname)&&(r.hostname=`::1`),s.equal(r.protocol,i,`protocol mismatch`),c(`options`,r),new y(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:l,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function x(){}function S(e){var t;if(l)t=new r(e);else if(t=w(n.parse(e)),!A(t.protocol))throw new p({input:e});return t}function C(e,t){return l?new r(e,t):S(n.resolve(t,e))}function w(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new p({input:e.href||e});return e}function T(e,t){var n=t||{};for(var r of u)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function E(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function D(e,t,n){function r(n){j(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function O(e,t){for(var n of d)e.removeListener(n,f[n]);e.on(`error`,x),e.destroy(t)}function k(e,t){s(A(e)&&A(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function A(e){return typeof e==`string`||e instanceof String}function j(e){return typeof e==`function`}function ee(e){return typeof e==`object`&&`length`in e}function te(e){return r&&e instanceof r}t.exports=b({http:i,https:a}),t.exports.wrap=b}));const v_=`1.13.2`;function y_(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}const b_=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function x_(e,t,n){let r=n&&n.Blob||Ng.classes.Blob,i=y_(e);if(t===void 0&&r&&(t=!0),i===`data`){e=i.length?e.slice(i.length+1):e;let n=b_.exec(e);if(!n)throw new ah(`Invalid URL`,ah.ERR_INVALID_URL);let a=n[1],o=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),o?`base64`:`utf8`);if(t){if(!r)throw new ah(`Blob is not supported`,ah.ERR_NOT_SUPPORT);return new r([c],{type:a})}return c}throw new ah(`Unsupported protocol `+i,ah.ERR_NOT_SUPPORT)}const S_=Symbol(`internals`);var C_=class extends r.Transform{constructor(e){e=K.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!K.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});let t=this[S_]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on(`newListener`,e=>{e===`progress`&&(t.isCaptured||=!0)})}_read(e){let t=this[S_];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let r=this[S_],i=r.maxRate,a=this.readableHighWaterMark,o=r.timeWindow,s=i/(1e3/o),c=r.minChunkSize===!1?0:Math.max(r.minChunkSize,s*.01),l=(e,t)=>{let n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit(`progress`,r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{let n=Buffer.byteLength(e),u=null,d=a,f,p=0;if(i){let e=Date.now();(!r.ts||(p=e-r.ts)>=o)&&(r.ts=e,f=s-r.bytes,r.bytes=f<0?-f:0,p=0),f=s-r.bytes}if(i){if(f<=0)return setTimeout(()=>{t(null,e)},o-p);f<d&&(d=f)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};u(e,function e(t,r){if(t)return n(t);r?u(r,e):n(null)})}};const{asyncIterator:w_}=Symbol;var T_=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[w_]?yield*e[w_]():yield e};const E_=Ng.ALPHABET.ALPHA_DIGIT+`-_`,D_=typeof TextEncoder==`function`?new TextEncoder:new n.TextEncoder,O_=D_.encode(`\r
`);var k_=class{constructor(e,t){let{escapeName:n}=this.constructor,r=K.isString(t),i=`Content-Disposition: form-data; name="${n(e)}"${!r&&t.name?`; filename="${n(t.name)}"`:``}\r
`;r?t=D_.encode(String(t).replace(/\r?\n|\r\n?/g,`\r
`)):i+=`Content-Type: ${t.type||`application/octet-stream`}\r
`,this.headers=D_.encode(i+`\r
`),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;K.isTypedArray(e)?yield e:yield*T_(e),yield O_}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":`%0D`,"\n":`%0A`,'"':`%22`})[e])}},A_=(e,t,n)=>{let{tag:r=`form-data-boundary`,size:a=25,boundary:o=r+`-`+Ng.generateString(a,E_)}=n||{};if(!K.isFormData(e))throw TypeError(`FormData instance required`);if(o.length<1||o.length>70)throw Error(`boundary must be 10-70 characters long`);let s=D_.encode(`--`+o+`\r
`),c=D_.encode(`--`+o+`--\r
`),l=c.byteLength,u=Array.from(e.entries()).map(([e,t])=>{let n=new k_(e,t);return l+=n.size,n});l+=s.byteLength*u.length,l=K.toFiniteNumber(l);let d={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(l)&&(d[`Content-Length`]=l),t&&t(d),i.from((async function*(){for(let e of u)yield s,yield*e.encode();yield c})())},j_=class extends r.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}},M_=(e,t)=>K.isAsyncFn(e)?function(...n){let r=n.pop();e.apply(this,n).then(e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}},r)}:e;function N_(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}var P_=N_;function F_(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var I_=F_;const L_=(e,t,n=3)=>{let r=0,i=P_(50,250);return I_(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},R_=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},z_=e=>(...t)=>K.asap(()=>e(...t));function B_(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}return Buffer.byteLength(r,`utf8`)}var V_=_e(c_(),1),H_=_e(__(),1);const U_={flush:x.constants.Z_SYNC_FLUSH,finishFlush:x.constants.Z_SYNC_FLUSH},W_={flush:x.constants.BROTLI_OPERATION_FLUSH,finishFlush:x.constants.BROTLI_OPERATION_FLUSH},G_=K.isFunction(x.createBrotliDecompress),{http:K_,https:q_}=H_.default,J_=/https:?/,Y_=Ng.protocols.map(e=>e+`:`),X_=(e,[t,n])=>(e.on(`end`,n).on(`error`,n),t),Z_=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let r=this.sessions[e];if(r){let e=r.length;for(let i=0;i<e;i++){let[e,a]=r[i];if(!e.destroyed&&!e.closed&&n.isDeepStrictEqual(a,t))return e}}let i=v.connect(e,t),a,o=()=>{if(a)return;a=!0;let t=r,n=t.length,o=n;for(;o--;)if(t[o][0]===i){n===1?delete this.sessions[e]:t.splice(o,1);return}},s=i.request,{sessionTimeout:c}=t;if(c!=null){let e,t=0;i.request=function(){let n=s.apply(this,arguments);return t++,e&&=(clearTimeout(e),null),n.once(`close`,()=>{--t||(e=setTimeout(()=>{e=null,o()},c))}),n}}i.once(`close`,o);let l=[i,t];return r?r.push(l):r=this.sessions[e]=[l],i}};function Q_(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function $_(e,t,n){let r=t;if(!r&&r!==!1){let e=V_.getProxyForUrl(n);e&&(r=new URL(e))}if(r){if(r.username&&(r.auth=(r.username||``)+`:`+(r.password||``)),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||``)+`:`+(r.auth.password||``));let t=Buffer.from(r.auth,`utf8`).toString(`base64`);e.headers[`Proxy-Authorization`]=`Basic `+t}e.headers.host=e.hostname+(e.port?`:`+e.port:``);let t=r.hostname||r.host;e.hostname=t,e.host=t,e.port=r.port,e.path=n,r.protocol&&(e.protocol=r.protocol.includes(`:`)?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(e){$_(e,t,e.href)}}const ev=typeof process<`u`&&K.kindOf(process)===`process`,tv=e=>new Promise((t,n)=>{let r,i,a=(e,t)=>{i||(i=!0,r&&r(e,t))},o=e=>{a(e),t(e)},s=e=>{a(e,!0),n(e)};e(o,s,e=>r=e).catch(s)}),nv=({address:e,family:t})=>{if(!K.isString(e))throw TypeError(`address must be a string`);return{address:e,family:t||(e.indexOf(`.`)<0?6:4)}},rv=(e,t)=>nv(K.isObject(e)?e:{address:e,family:t}),iv={request(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||80),{http2Options:r,headers:i}=e,a=Z_.getSession(n,r),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=v.constants,u={[o]:e.protocol.replace(`:`,``),[s]:e.method,[c]:e.path};K.forEach(i,(e,t)=>{t.charAt(0)!==`:`&&(u[t]=e)});let d=a.request(u);return d.once(`response`,e=>{let n=d;e=Object.assign({},e);let r=e[l];delete e[l],n.headers=e,n.statusCode=+r,t(n)}),d}};var av=ev&&function(e){return tv(async function(t,i,a){let{data:o,lookup:s,family:c,httpVersion:d=1,http2Options:f}=e,{responseType:p,responseEncoding:m}=e,h=e.method.toUpperCase(),g,_=!1,v;if(d=+d,Number.isNaN(d))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(d!==1&&d!==2)throw TypeError(`Unsupported protocol version '${d}'`);let y=d===2;if(s){let e=M_(s,e=>K.isArray(e)?e:[e]);s=(t,n,r)=>{e(t,n,(e,t,i)=>{if(e)return r(e);let a=K.isArray(t)?t.map(e=>rv(e)):[rv(t,i)];n.all?r(e,a):r(e,a[0].address,a[0].family)})}}let b=new S;function C(t){try{b.emit(`abort`,!t||t.type?new r_(null,e,v):t)}catch(e){console.warn(`emit error`,e)}}b.once(`abort`,i);let w=()=>{e.cancelToken&&e.cancelToken.unsubscribe(C),e.signal&&e.signal.removeEventListener(`abort`,C),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(C),e.signal&&(e.signal.aborted?C():e.signal.addEventListener(`abort`,C))),a((e,t)=>{if(g=!0,t){_=!0,w();return}let{data:n}=e;if(n instanceof r.Readable||n instanceof r.Duplex){let e=r.finished(n,()=>{e(),w()})}else w()});let T=s_(e.baseURL,e.url,e.allowAbsoluteUrls),E=new URL(T,Ng.hasBrowserEnv?Ng.origin:void 0),D=E.protocol||Y_[0];if(D===`data:`){if(e.maxContentLength>-1&&B_(String(e.url||T||``))>e.maxContentLength)return i(new ah(`maxContentLength size of `+e.maxContentLength+` exceeded`,ah.ERR_BAD_RESPONSE,e));let n;if(h!==`GET`)return i_(t,i,{status:405,statusText:`method not allowed`,headers:{},config:e});try{n=x_(e.url,p===`blob`,{Blob:e.env&&e.env.Blob})}catch(t){throw ah.from(t,ah.ERR_BAD_REQUEST,e)}return p===`text`?(n=n.toString(m),(!m||m===`utf8`)&&(n=K.stripBOM(n))):p===`stream`&&(n=r.Readable.from(n)),i_(t,i,{data:n,status:200,statusText:`OK`,headers:new $g,config:e})}if(Y_.indexOf(D)===-1)return i(new ah(`Unsupported protocol `+D,ah.ERR_BAD_REQUEST,e));let O=$g.from(e.headers).normalize();O.set(`User-Agent`,`axios/`+v_,!1);let{onUploadProgress:k,onDownloadProgress:A}=e,j=e.maxRate,ee,te;if(K.isSpecCompliantForm(o)){let e=O.getContentType(/boundary=([-_\w\d]{10,70})/i);o=A_(o,e=>{O.set(e)},{tag:`axios-${v_}-boundary`,boundary:e&&e[1]||void 0})}else if(K.isFormData(o)&&K.isFunction(o.getHeaders)){if(O.set(o.getHeaders()),!O.hasContentLength())try{let e=await n.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&O.setContentLength(e)}catch{}}else if(K.isBlob(o)||K.isFile(o))o.size&&O.setContentType(o.type||`application/octet-stream`),O.setContentLength(o.size||0),o=r.Readable.from(T_(o));else if(o&&!K.isStream(o)){if(!Buffer.isBuffer(o))if(K.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(K.isString(o))o=Buffer.from(o,`utf-8`);else return i(new ah(`Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream`,ah.ERR_BAD_REQUEST,e));if(O.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return i(new ah(`Request body larger than maxBodyLength limit`,ah.ERR_BAD_REQUEST,e))}let ne=K.toFiniteNumber(O.getContentLength());K.isArray(j)?(ee=j[0],te=j[1]):ee=te=j,o&&(k||ee)&&(K.isStream(o)||(o=r.Readable.from(o,{objectMode:!1})),o=r.pipeline([o,new C_({maxRate:K.toFiniteNumber(ee)})],K.noop),k&&o.on(`progress`,X_(o,R_(ne,L_(z_(k),!1,3)))));let re;if(e.auth){let t=e.auth.username||``,n=e.auth.password||``;re=t+`:`+n}if(!re&&E.username){let e=E.username,t=E.password;re=e+`:`+t}re&&O.delete(`authorization`);let M;try{M=bg(E.pathname+E.search,e.params,e.paramsSerializer).replace(/^\?/,``)}catch(t){let n=Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,i(n)}O.set(`Accept-Encoding`,`gzip, compress, deflate`+(G_?`, br`:``),!1);let ie={path:M,method:h,headers:O.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:re,protocol:D,family:c,beforeRedirect:Q_,beforeRedirects:{},http2Options:f};!K.isUndefined(s)&&(ie.lookup=s),e.socketPath?ie.socketPath=e.socketPath:(ie.hostname=E.hostname.startsWith(`[`)?E.hostname.slice(1,-1):E.hostname,ie.port=E.port,$_(ie,e.proxy,D+`//`+E.hostname+(E.port?`:`+E.port:``)+ie.path));let ae,N=J_.test(ie.protocol);if(ie.agent=N?e.httpsAgent:e.httpAgent,y?ae=iv:e.transport?ae=e.transport:e.maxRedirects===0?ae=N?u:l:(e.maxRedirects&&(ie.maxRedirects=e.maxRedirects),e.beforeRedirect&&(ie.beforeRedirects.config=e.beforeRedirect),ae=N?q_:K_),e.maxBodyLength>-1?ie.maxBodyLength=e.maxBodyLength:ie.maxBodyLength=1/0,e.insecureHTTPParser&&(ie.insecureHTTPParser=e.insecureHTTPParser),v=ae.request(ie,function(n){if(v.destroyed)return;let a=[n],o=K.toFiniteNumber(n.headers[`content-length`]);if(A||te){let e=new C_({maxRate:K.toFiniteNumber(te)});A&&e.on(`progress`,X_(e,R_(o,L_(z_(A),!0,3)))),a.push(e)}let s=n,c=n.req||v;if(e.decompress!==!1&&n.headers[`content-encoding`])switch((h===`HEAD`||n.statusCode===204)&&delete n.headers[`content-encoding`],(n.headers[`content-encoding`]||``).toLowerCase()){case`gzip`:case`x-gzip`:case`compress`:case`x-compress`:a.push(x.createUnzip(U_)),delete n.headers[`content-encoding`];break;case`deflate`:a.push(new j_),a.push(x.createUnzip(U_)),delete n.headers[`content-encoding`];break;case`br`:G_&&(a.push(x.createBrotliDecompress(W_)),delete n.headers[`content-encoding`])}s=a.length>1?r.pipeline(a,K.noop):a[0];let l={status:n.statusCode,statusText:n.statusMessage,headers:new $g(n.headers),config:e,request:c};if(p===`stream`)l.data=s,i_(t,i,l);else{let n=[],r=0;s.on(`data`,function(t){n.push(t),r+=t.length,e.maxContentLength>-1&&r>e.maxContentLength&&(_=!0,s.destroy(),C(new ah(`maxContentLength size of `+e.maxContentLength+` exceeded`,ah.ERR_BAD_RESPONSE,e,c)))}),s.on(`aborted`,function(){if(_)return;let t=new ah(`stream has been aborted`,ah.ERR_BAD_RESPONSE,e,c);s.destroy(t),i(t)}),s.on(`error`,function(t){v.destroyed||i(ah.from(t,null,e,c))}),s.on(`end`,function(){try{let e=n.length===1?n[0]:Buffer.concat(n);p!==`arraybuffer`&&(e=e.toString(m),(!m||m===`utf8`)&&(e=K.stripBOM(e))),l.data=e}catch(t){return i(ah.from(t,null,e,l.request,l))}i_(t,i,l)})}b.once(`abort`,e=>{s.destroyed||(s.emit(`error`,e),s.destroy())})}),b.once(`abort`,e=>{v.close?v.close():v.destroy(e)}),v.on(`error`,function(t){i(ah.from(t,null,e,v))}),v.on(`socket`,function(e){e.setKeepAlive(!0,1e3*60)}),e.timeout){let t=parseInt(e.timeout,10);if(Number.isNaN(t)){C(new ah("error trying to parse `config.timeout` to int",ah.ERR_BAD_OPTION_VALUE,e,v));return}v.setTimeout(t,function(){if(g)return;let t=e.timeout?`timeout of `+e.timeout+`ms exceeded`:`timeout exceeded`,n=e.transitional||Sg;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),C(new ah(t,n.clarifyTimeoutError?ah.ETIMEDOUT:ah.ECONNABORTED,e,v))})}else v.setTimeout(0);if(K.isStream(o)){let t=!1,n=!1;o.on(`end`,()=>{t=!0}),o.once(`error`,e=>{n=!0,v.destroy(e)}),o.on(`close`,()=>{!t&&!n&&C(new r_(`Request stream has been aborted`,e,v))}),o.pipe(v)}else o&&v.write(o),v.end()})},ov=Ng.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ng.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ng.origin),Ng.navigator&&/(msie|trident)/i.test(Ng.navigator.userAgent)):()=>!0,sv=Ng.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&s.push(`path=${r}`),K.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),K.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};const cv=e=>e instanceof $g?{...e}:e;function lv(e,t){t||={};let n={};function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,n,i){if(K.isUndefined(t)){if(!K.isUndefined(e))return r(void 0,e,n,i)}else return r(e,t,n,i)}function a(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){if(K.isUndefined(t)){if(!K.isUndefined(e))return r(void 0,e)}else return r(void 0,t)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(cv(e),cv(t),n,!0)};return K.forEach(Object.keys({...e,...t}),function(r){let a=c[r]||i,o=a(e[r],t[r],r);K.isUndefined(o)&&a!==s||(n[r]=o)}),n}var uv=e=>{let t=lv({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=$g.from(o),t.url=bg(s_(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),K.isFormData(n)){if(Ng.hasStandardBrowserEnv||Ng.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(K.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(Ng.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(t)),r||r!==!1&&ov(t.url))){let e=i&&a&&sv.read(a);e&&o.set(i,e)}return t},dv=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=uv(e),i=r.data,a=$g.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=$g.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());i_(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new ah(`Request aborted`,ah.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new ah(t&&t.message?t.message:`Network Error`,ah.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Sg;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ah(t,i.clarifyTimeoutError?ah.ETIMEDOUT:ah.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&K.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=L_(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=L_(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new r_(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=y_(r.url);if(_&&Ng.protocols.indexOf(_)===-1){n(new ah(`Unsupported protocol `+_+`:`,ah.ERR_BAD_REQUEST,e));return}h.send(i||null)})},fv=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ah?t:new r_(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new ah(`timeout ${t} of ms exceeded`,ah.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>K.asap(o),s}};const pv=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},mv=async function*(e,t){for await(let n of hv(e))yield*pv(n,t)},hv=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},gv=(e,t,n,r)=>{let i=mv(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},_v=64*1024,{isFunction:vv}=K,yv=(({Request:e,Response:t})=>({Request:e,Response:t}))(K.global),{ReadableStream:bv,TextEncoder:xv}=K.global,Sv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cv=e=>{e=K.merge.call({skipUndefined:!0},yv,e);let{fetch:t,Request:n,Response:r}=e,i=t?vv(t):typeof fetch==`function`,a=vv(n),o=vv(r);if(!i)return!1;let s=i&&vv(bv),c=i&&(typeof xv==`function`?(e=>t=>e.encode(t))(new xv):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Sv(()=>{let e=!1,t=new n(Ng.origin,{body:new bv,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&Sv(()=>K.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ah(`Response type '${e}' is not supported`,ah.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e))return(await new n(Ng.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(K.isArrayBufferView(e)||K.isArrayBuffer(e))return e.byteLength;if(K.isURLSearchParams(e)&&(e+=``),K.isString(e))return(await c(e)).byteLength},p=async(e,t)=>K.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=uv(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=fv([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(K.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=R_(T,L_(z_(g)));s=gv(e.body,_v,t,n)}}K.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=K.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&R_(t,L_(z_(h),!0))||[];f=new r(gv(f.body,_v,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let E=await d[K.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{i_(t,n,{data:E,headers:$g.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new ah(`Network Error`,ah.ERR_NETWORK,e,C),{cause:t.cause||t}):ah.from(t,t&&t.code,e,C)}}},wv=new Map,Tv=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=wv;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Cv(t)),l=c;return c};Tv();const Ev={http:av,xhr:dv,fetch:{get:Tv}};K.forEach(Ev,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});const Dv=e=>`- ${e}`,Ov=e=>K.isFunction(e)||e===null||e===!1;function kv(e,t){e=K.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Ov(r)&&(i=Ev[(n=String(r)).toLowerCase()],i===void 0))throw new ah(`Unknown adapter '${n}'`);if(i&&(K.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new ah(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(Dv).join(`
`):` `+Dv(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Av={getAdapter:kv,adapters:Ev};function jv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r_(null,e)}function Mv(e){return jv(e),e.headers=$g.from(e.headers),e.data=e_.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Av.getAdapter(e.adapter||Vg.adapter,e)(e).then(function(t){return jv(e),t.data=e_.call(e,e.transformResponse,t),t.headers=$g.from(t.headers),t},function(t){return t_(t)||(jv(e),t&&t.response&&(t.response.data=e_.call(e,e.transformResponse,t.response),t.response.headers=$g.from(t.response.headers))),Promise.reject(t)})}const Nv={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Nv[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});const Pv={};Nv.transitional=function(e,t,n){function r(e,t){return`[Axios v`+v_+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new ah(r(i,` has been removed`+(t?` in `+t:``)),ah.ERR_DEPRECATED);return t&&!Pv[i]&&(Pv[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Nv.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Fv(e,t,n){if(typeof e!=`object`)throw new ah(`options must be an object`,ah.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new ah(`option `+a+` must be `+n,ah.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ah(`Unknown option `+a,ah.ERR_BAD_OPTION)}}var Iv={assertOptions:Fv,validators:Nv};const Lv=Iv.validators;var Rv=class{constructor(e){this.defaults=e||{},this.interceptors={request:new xg,response:new xg}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
`+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=lv(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Iv.assertOptions(n,{silentJSONParsing:Lv.transitional(Lv.boolean),forcedJSONParsing:Lv.transitional(Lv.boolean),clarifyTimeoutError:Lv.transitional(Lv.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:Iv.assertOptions(r,{encode:Lv.function,serialize:Lv.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Iv.assertOptions(t,{baseUrl:Lv.spelling(`baseURL`),withXsrfToken:Lv.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=$g.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){typeof e.runWhen==`function`&&e.runWhen(t)===!1||(s&&=e.synchronous,o.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Mv.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Mv.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=lv(this.defaults,e),bg(s_(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){Rv.prototype[e]=function(t,n){return this.request(lv(n||{},{method:e,url:t,data:(n||{}).data}))}}),K.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(lv(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Rv.prototype[e]=t(),Rv.prototype[e+`Form`]=t(!0)});var zv=Rv,Bv=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new r_(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Vv(e){return function(t){return e.apply(null,t)}}function Hv(e){return K.isObject(e)&&e.isAxiosError===!0}const Uv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Uv).forEach(([e,t])=>{Uv[t]=e});var Wv=Uv;function Gv(e){let t=new zv(e),n=Xp(zv.prototype.request,t);return K.extend(n,zv.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Gv(lv(e,t))},n}const Kv=Gv(Vg);Kv.Axios=zv,Kv.CanceledError=r_,Kv.CancelToken=Bv,Kv.isCancel=t_,Kv.VERSION=v_,Kv.toFormData=mg,Kv.AxiosError=ah,Kv.Cancel=Kv.CanceledError,Kv.all=function(e){return Promise.all(e)},Kv.spread=Vv,Kv.isAxiosError=Hv,Kv.mergeConfig=lv,Kv.AxiosHeaders=$g,Kv.formToJSON=e=>Rg(K.isHTMLForm(e)?new FormData(e):e),Kv.getAdapter=Av.getAdapter,Kv.HttpStatusCode=Wv,Kv.default=Kv;var qv=Kv;function Jv(e,t,n={}){let{timeout:r=3e4,cwd:i,env:a={},maxOutputSize:o,removeEnvVars:s=[`NODE_OPTIONS`]}=n;return new Promise(n=>{let c={killed:!1,stdout:``,stderr:``,totalOutputSize:0},l={...process.env,...a};for(let e of s)l[e]=void 0;let u={cwd:i,env:l,stdio:[`ignore`,`pipe`,`pipe`],timeout:r},d;try{d=C(e,t,u)}catch(t){n({stdout:``,stderr:``,exitCode:null,success:!1,error:t instanceof Error?t:Error(`Failed to spawn command '${e}'`)});return}let f=setTimeout(()=>{c.killed||(c.killed=!0,d.kill(`SIGTERM`),n({stdout:c.stdout,stderr:c.stderr,exitCode:null,success:!1,error:Error(`Command timeout after ${r}ms`),timedOut:!0}))},r),p=()=>o&&c.totalOutputSize>o?(c.killed||(c.killed=!0,d.kill(`SIGKILL`),clearTimeout(f),n({stdout:c.stdout,stderr:c.stderr,exitCode:null,success:!1,error:Error(`Output size limit exceeded`),outputLimitExceeded:!0})),!0):!1;d.stdout?.on(`data`,e=>{if(c.killed)return;let t=e.toString();c.totalOutputSize+=Buffer.byteLength(t),!p()&&(c.stdout+=t)}),d.stderr?.on(`data`,e=>{if(c.killed)return;let t=e.toString();c.totalOutputSize+=Buffer.byteLength(t),!p()&&(c.stderr+=t)}),d.on(`close`,e=>{c.killed||(clearTimeout(f),n({stdout:c.stdout,stderr:c.stderr,exitCode:e,success:e===0}))}),d.on(`error`,e=>{c.killed||(c.killed=!0,clearTimeout(f),n({stdout:c.stdout,stderr:c.stderr,exitCode:null,success:!1,error:e}))})})}function Yv(e,t,n=1e4){return new Promise(r=>{let i=!1,a=C(e,t,{stdio:[`ignore`,`pipe`,`pipe`],timeout:n,env:{...process.env,NODE_OPTIONS:void 0}});a.on(`close`,e=>{i||r(e===0)}),a.on(`error`,()=>{i||r(!1)});let o=setTimeout(()=>{i||(i=!0,a.kill(`SIGTERM`),r(!1))},n);a.on(`close`,()=>{clearTimeout(o)})})}function Xv(e,t,n=1e4){return new Promise(r=>{let i=!1,a=``,o=C(e,t,{stdio:[`ignore`,`pipe`,`pipe`],timeout:n,env:{...process.env,NODE_OPTIONS:void 0}});o.stdout?.on(`data`,e=>{a+=e.toString()}),o.stderr?.on(`data`,()=>{}),o.on(`close`,e=>{i||r(e===0&&a.trim()||null)}),o.on(`error`,()=>{i||r(null)});let s=setTimeout(()=>{i||(i=!0,o.kill(`SIGTERM`),r(null))},n);o.on(`close`,()=>{clearTimeout(s)})})}function Zv(e,t=1e3){for(let n of e){if(n.includes(`\0`))return{valid:!1,error:`Null bytes not allowed in arguments`};if(n.length>t)return{valid:!1,error:`Argument too long`}}return{valid:!0}}function Qv(){return c(s(process.execPath),process.platform===`win32`?`npm.cmd`:`npm`)}async function $v(){return Xv(`gh`,[`auth`,`token`],1e4)}const ey=[`view`,`search`,`ping`,`config`,`whoami`];async function ty(e=1e4){return Yv(Qv(),[`--version`],e)}async function ny(e,t,n={}){if(!ey.includes(e))return{stdout:``,stderr:``,error:Error(`Command '${e}' is not allowed`)};let r=Zv(t);if(!r.valid)return{stdout:``,stderr:``,error:Error(`Invalid arguments: ${r.error}`)};let{timeout:i=3e4,cwd:a,env:o}=n,s=await Jv(Qv(),[e,...t],{timeout:i,cwd:a,env:o,removeEnvVars:[`NODE_OPTIONS`,`NPM_CONFIG_SCRIPT_SHELL`]});return{stdout:s.stdout,stderr:s.stderr,exitCode:s.exitCode??void 0,error:s.error}}const ry=[`rg`,`ls`,`find`],iy=[/[;&|`$(){}[\]<>]/,/\${/,/\$\(/],ay=[/\${/,/\$\(/,/`/,/;/];function oy(e,t){return ry.includes(e)?sy(e,t):{isValid:!1,error:`Command '${e}' is not allowed. Allowed commands: ${ry.join(`, `)}`}}function sy(e,t){let n=cy(e,t);for(let e=0;e<t.length;e++){let r=t[e],i=n.has(e),a=i?ay:iy;for(let e of a)if(e.test(r))return{isValid:!1,error:`Dangerous pattern detected in ${i?`search pattern`:`argument`}: '${r}'. This may be a command injection attempt.`}}return{isValid:!0}}function cy(e,t){let n=new Set;if(e===`rg`){let e=!1;for(let r=0;r<t.length;r++){let i=t[r];if(i.startsWith(`-`)){if([`-g`,`--glob`,`--include`,`--exclude`,`--exclude-dir`].includes(i)){r++,n.add(r);continue}[`-A`,`-B`,`-C`,`-m`,`-t`,`--type`,`-T`,`--type-not`,`-j`,`--threads`,`--sort`,`--sortr`,`--max-filesize`,`-E`,`--encoding`,`--color`].includes(i)&&r++;continue}e||=(n.add(r),!0)}}else if(e===`find`)for(let e=0;e<t.length;e++){let r=t[e],i=e>0?t[e-1]:``;[`-name`,`-iname`,`-path`,`-regex`,`-size`,`-perm`].includes(i)&&n.add(e),(r===`(`||r===`)`||r===`-o`)&&n.add(e)}return n}function ly(e){return e?o.resolve(e):process.env.WORKSPACE_ROOT?o.resolve(process.env.WORKSPACE_ROOT):process.cwd()}function uy(e,t){let n=ly(t);if(e===void 0)return{isValid:!0};if(e.trim()===``)return{isValid:!1,error:`Execution context (cwd) cannot be empty`};let r=o.resolve(e);if(r!==n&&!r.startsWith(n+o.sep))return{isValid:!1,error:`Can only execute commands within workspace directory: ${n}. Attempted execution in: ${r}`};try{f.lstatSync(r);let e=f.realpathSync(r);if(e!==n&&!e.startsWith(n+o.sep))return{isValid:!1,error:`Symlink target '${e}' is outside workspace directory: ${n}`}}catch(e){return e&&typeof e==`object`&&`code`in e&&e.code===`ENOENT`?{isValid:!0,sanitizedPath:r}:{isValid:!1,error:`Cannot validate execution context: ${e instanceof Error?e.message:String(e)}`}}return{isValid:!0,sanitizedPath:r}}async function dy(e,t=[],n={}){let r=oy(e,t);if(!r.isValid)throw Error(`Command validation failed: ${r.error||`Command not allowed`}`);let i=uy(n.cwd,process.env.WORKSPACE_ROOT);if(!i.isValid)throw Error(`Execution context validation failed: ${i.error||`Invalid working directory`}`);let{timeout:a=3e4,cwd:o,env:s,maxOutputSize:c=10*1024*1024}=n,l=await Jv(e,t,{timeout:a,cwd:o,env:s,maxOutputSize:c,removeEnvVars:[`NODE_OPTIONS`]});if(l.error)throw l.error;return{success:l.success,code:l.exitCode,stdout:l.stdout,stderr:l.stderr}}const fy=new Map,py={rg:{name:`ripgrep`,versionFlag:`--version`,tool:`localSearchCode`},grep:{name:`grep`,versionFlag:`--version`,tool:`localSearchCode (fallback)`},find:{name:`find`,versionFlag:`--version`,tool:`localFindFiles`},ls:{name:`ls`,versionFlag:`--version`,tool:`localViewStructure`}};async function my(e,t=!1){if(!t&&fy.has(e))return fy.get(e);let n=py[e];try{let t;t=e===`find`&&process.platform===`darwin`?await Yv(`find`,[`.`,`-maxdepth`,`0`],5e3):e===`ls`?await Yv(`ls`,[`-la`,`.`],5e3):e===`grep`?await Yv(`grep`,[`--help`],5e3):await Yv(e,[n.versionFlag],5e3);let r={available:t,command:e,...t?{}:{error:`${n.name} (${e}) is not installed or not in PATH`}};return fy.set(e,r),r}catch(t){let n={available:!1,command:e,error:t instanceof Error?t.message:`Failed to check ${e} availability`};return fy.set(e,n),n}}function hy(e){return`${py[e].name} (${e}) is not available. ${{rg:`Install ripgrep: brew install ripgrep (macOS), apt install ripgrep (Ubuntu), or see https://github.com/BurntSushi/ripgrep#installation`,grep:`grep should be available on all Unix systems. Check your PATH configuration.`,find:`find should be available on all Unix systems. Check your PATH configuration.`,ls:`ls should be available on all Unix systems. Check your PATH configuration.`}[e]}`}N.platform(),N.platform(),N.platform();const gy=N.homedir();function _y(){return!0}async function vy(e,t,n){await new oe(e,t).setPassword(n)}async function yy(e,t){try{return await new oe(e,t).getPassword()??null}catch{return null}}const by=3e3;var xy=class extends Error{constructor(e){super(e),this.name=`TimeoutError`}};async function Sy(e,t){return Promise.race([e,new Promise((e,n)=>setTimeout(()=>n(new xy(`Operation timed out after ${t}ms`)),t))])}let Cy=null;function wy(){return Cy===null&&(Cy=_y()),Cy}const Ty=`octocode-cli`,Ey=A(gy,`.octocode`),Dy=A(Ey,`credentials.json`),Oy=A(Ey,`.key`),ky=`aes-256-gcm`,Ay=[`OCTOCODE_TOKEN`,`GH_TOKEN`,`GITHUB_TOKEN`];function jy(){for(let e of Ay){let t=process.env[e];if(t&&t.trim())return t.trim()}return null}let My=null;function Ny(){return My===null&&(My=wy()),My}async function Py(e,t){if(!wy())throw Error(`Keychain not available`);await vy(Ty,e,JSON.stringify(t))}async function Fy(e){if(!wy())return null;try{let t=await yy(Ty,e);return t?JSON.parse(t):null}catch{return null}}function Iy(){if(zy(),w(Oy))return Buffer.from(E(Oy,`utf8`),`hex`);let e=re(32);return k(Oy,e.toString(`hex`),{mode:384}),e}function Ly(e){let t=Iy(),n=re(16),r=j(ky,t,n),i=r.update(e,`utf8`,`hex`);i+=r.final(`hex`);let a=r.getAuthTag();return`${n.toString(`hex`)}:${a.toString(`hex`)}:${i}`}function Ry(e){let t=Iy(),[n,r,i]=e.split(`:`);if(!n||!r||!i)throw Error(`Invalid encrypted data format`);let a=Buffer.from(n,`hex`),o=Buffer.from(r,`hex`),s=ee(ky,t,a);s.setAuthTag(o);let c=s.update(i,`hex`,`utf8`);return c+=s.final(`utf8`),c}function zy(){w(Ey)||T(Ey,{recursive:!0,mode:448})}function By(){if(zy(),!w(Dy))return{version:1,credentials:{}};try{let e=Ry(E(Dy,`utf8`));return JSON.parse(e)}catch(e){return console.error(`
⚠ Warning: Could not read credentials file. You may need to login again.`),console.error(` File: ${Dy}`),e instanceof Error&&e.message&&console.error(` Reason: ${e.message}\n`),{version:1,credentials:{}}}}function Vy(e){zy(),k(Dy,Ly(JSON.stringify(e,null,2)),{mode:384})}function Hy(e){try{let t=By();return t.credentials[e]?(delete t.credentials[e],Object.keys(t.credentials).length===0?Uy():Vy(t),!0):!1}catch(e){return console.warn(`[token-storage] Failed to remove from file storage: ${e instanceof Error?e.message:String(e)}`),!1}}function Uy(){try{w(Dy)&&O(Dy),w(Oy)&&O(Oy)}catch{}}async function Wy(e,t){try{await Sy(Py(e,t),by),Hy(e)}catch{}}function Gy(e){return e.toLowerCase().replace(/^https?:\/\//,``).replace(/\/$/,``)}async function Ky(e=`github.com`){let t=Gy(e);if(Ny())try{let e=await Sy(Fy(t),by);if(e)return e}catch(e){e instanceof xy||console.warn(`[token-storage] Keyring read failed: ${e instanceof Error?e.message:String(e)}`)}let n=By().credentials[t];return n?(Ny()&&Wy(t,n).catch(()=>{}),n):null}function qy(e){if(!e.token.expiresAt)return!1;let t=new Date(e.token.expiresAt);if(isNaN(t.getTime()))return!0;let n=new Date;return t.getTime()-n.getTime()<300*1e3}async function Jy(e=`github.com`){let t=await Ky(e);return!t||!t.token||qy(t)?null:t.token.token}const Yy=A(Ey,`session.json`);let Xy=null,Zy=!1,Qy=null,$y=!1,eb=null,tb=null,nb=null;function rb(){$y||($y=!0,eb=()=>{fb()},tb=()=>{fb()},nb=()=>{fb()},process.on(`exit`,eb),process.once(`SIGINT`,tb),process.once(`SIGTERM`,nb))}function ib(){Qy||(Qy=setInterval(()=>{Zy&&Xy&&(ab(Xy),Zy=!1)},6e4),Qy.unref())}function ab(e){zy();let t=`${Yy}.tmp`;k(t,JSON.stringify(e,null,2),{mode:384}),D(t,Yy)}function ob(){if(!w(Yy))return null;try{let e=E(Yy,`utf8`),t=JSON.parse(e);return t.version!==1||!t.sessionId||!t.createdAt?null:t}catch{return null}}function sb(){return{toolCalls:0,promptCalls:0,errors:0,rateLimits:0}}function cb(){let e=new Date().toISOString();return{version:1,sessionId:M(),createdAt:e,lastActiveAt:e,stats:sb()}}function lb(){if(Xy)return Xy;let e=ob();return e&&(Xy=e),e}function ub(e){Xy=e,Zy=!0,rb(),ib()}function db(){Zy&&Xy&&(ab(Xy),Zy=!1)}function fb(){if(Zy&&Xy)try{ab(Xy),Zy=!1}catch{}}function pb(e){if(e?.forceNew){let e=cb();return ub(e),db(),e}let t=lb();if(t){let e={...t,lastActiveAt:new Date().toISOString()};return ub(e),db(),e}let n=cb();return ub(n),db(),n}function mb(e){let t=lb();if(!t)return{success:!1,session:null};let n={toolCalls:t.stats.toolCalls+(e.toolCalls??0),promptCalls:t.stats.promptCalls+(e.promptCalls??0),errors:t.stats.errors+(e.errors??0),rateLimits:t.stats.rateLimits+(e.rateLimits??0)},r={...t,lastActiveAt:new Date().toISOString(),stats:n};return ub(r),{success:!0,session:r}}function hb(e=1){return mb({toolCalls:e})}function gb(e=1){return mb({promptCalls:e})}function _b(e=1){return mb({errors:e})}function vb(e=1){return mb({rateLimits:e})}var yb=`octocode-mcp`,bb=`11.1.1`;const xb=process.env.REDACT_ERROR_PATHS===`true`;function Sb(e,t){if(!xb)return e;if(t&&e.startsWith(t))return e.slice(t.length).replace(/^[/\\]/,``)||`.`;let n=b.homedir();return n&&e.startsWith(n)?`~`+e.slice(n.length):o.basename(e)}const Cb={NOT_INITIALIZED:{code:`CONFIG_NOT_INITIALIZED`,message:`Configuration not initialized. Call initialize() and await its completion before calling getServerConfig().`},NO_GITHUB_TOKEN:{code:`CONFIG_NO_GITHUB_TOKEN`,message:`No GitHub token found. Please authenticate with GitHub CLI (gh auth login) or set GITHUB_TOKEN/GH_TOKEN/OCTOCODE_TOKEN environment variable. After setting the token, restart the MCP server to apply changes.`}},wb={PROMISES_NOT_ARRAY:{code:`VALIDATION_PROMISES_NOT_ARRAY`,message:`promises must be an array`},TIMEOUT_NOT_POSITIVE:{code:`VALIDATION_TIMEOUT_NOT_POSITIVE`,message:`timeout must be positive`},CONCURRENCY_NOT_POSITIVE:{code:`VALIDATION_CONCURRENCY_NOT_POSITIVE`,message:`concurrency must be positive`},INVALID_PARAMETERS:{code:`VALIDATION_INVALID_PARAMETERS`,message:`Invalid parameters: must be an object`},INVALID_PARAMETER_KEY:{code:`VALIDATION_INVALID_PARAMETER_KEY`,message:e=>`Invalid parameter key: ${e}`},INVALID_NESTED_OBJECT:{code:`VALIDATION_INVALID_NESTED_OBJECT`,message:(e,t)=>`Invalid nested object in parameter ${e}: ${t}`}},Tb={FETCH_NOT_AVAILABLE:{code:`FETCH_NOT_AVAILABLE`,message:`Global fetch is not available in this environment.`},FETCH_FAILED_AFTER_RETRIES:{code:`FETCH_FAILED_AFTER_RETRIES`,message:(e,t)=>`Failed to fetch after ${e} attempts: ${t}`},FETCH_HTTP_ERROR:{code:`FETCH_HTTP_ERROR`,message:(e,t)=>`Failed to fetch (${e} ${t})`}},Eb={INVALID_FORMAT:{code:`TOOL_METADATA_INVALID_FORMAT`,message:`Invalid tool metadata format from remote source.`},INVALID_API_RESPONSE:{code:`TOOL_METADATA_INVALID_API_RESPONSE`,message:`Invalid API response structure`}},Db={PATH_IS_DIRECTORY:{code:`FILE_PATH_IS_DIRECTORY`,message:e=>`Path is a directory. Use ${e} to list directory contents`},FILE_TOO_LARGE:{code:`FILE_TOO_LARGE`,message:(e,t,n)=>`File too large (${e}KB > ${t}KB). Use ${n} to search within the file or use startLine/endLine parameters to get specific sections`},FILE_EMPTY:{code:`FILE_EMPTY`,message:`File is empty - no content to display`},BINARY_FILE:{code:`FILE_BINARY`,message:`Binary file detected. Cannot display as text - download directly from GitHub`},DECODE_FAILED:{code:`FILE_DECODE_FAILED`,message:`Failed to decode file. Encoding may not be supported (expected UTF-8)`},UNSUPPORTED_TYPE:{code:`FILE_UNSUPPORTED_TYPE`,message:e=>`Unsupported file type: ${e}`},MATCH_STRING_NOT_FOUND:{code:`FILE_MATCH_STRING_NOT_FOUND`,message:e=>`Match string "${e}" not found in file. The file may have changed since the search was performed.`}},Ob={NOT_FOUND:{code:`REPO_NOT_FOUND`,message:(e,t,n)=>`Repository "${e}/${t}" not found or not accessible: ${n}`},PATH_NOT_FOUND:{code:`REPO_PATH_NOT_FOUND`,message:(e,t,n,r)=>`Path "${e}" not found in repository "${t}/${n}" on branch "${r}"`},PATH_NOT_FOUND_ANY_BRANCH:{code:`REPO_PATH_NOT_FOUND_ANY_BRANCH`,message:(e,t,n)=>`Path "${e}" not found in repository "${t}/${n}" on any common branch`},ACCESS_FAILED:{code:`REPO_ACCESS_FAILED`,message:(e,t,n)=>`Failed to access repository "${e}/${t}": ${n}`},BRANCH_NOT_FOUND:{code:`REPO_BRANCH_NOT_FOUND`,message:e=>`Branch '${e}' not found. Ask user: Do you want to get the file from the default branch instead?`},STRUCTURE_EXPLORATION_FAILED:{code:`REPO_STRUCTURE_EXPLORATION_FAILED`,message:`Failed to explore repository structure`}},kb={QUERY_EMPTY:{code:`SEARCH_QUERY_EMPTY`,message:`Search query cannot be empty`},NO_VALID_PARAMETERS:{code:`SEARCH_NO_VALID_PARAMETERS`,message:`No valid search parameters provided`},PR_REQUIRED_PARAMS:{code:`SEARCH_PR_REQUIRED_PARAMS`,message:`Owner, repo, and prNumber are required parameters`},PR_SINGLE_VALUES:{code:`SEARCH_PR_SINGLE_VALUES`,message:`Owner and repo must be single values`},API_REQUEST_FAILED:{code:`SEARCH_API_REQUEST_FAILED`,message:e=>`API request failed: ${e}`},PULL_REQUEST_SEARCH_FAILED:{code:`SEARCH_PR_SEARCH_FAILED`,message:e=>`Pull request search failed: ${e}`},PULL_REQUEST_LIST_FAILED:{code:`SEARCH_PR_LIST_FAILED`,message:e=>`Pull request list failed: ${e}`},PULL_REQUEST_FETCH_FAILED:{code:`SEARCH_PR_FETCH_FAILED`,message:(e,t)=>`Failed to fetch pull request #${e}: ${t}`}},Ab={NO_TOOLS_REGISTERED:{code:`STARTUP_NO_TOOLS_REGISTERED`,message:`No tools were successfully registered`},UNCAUGHT_EXCEPTION:{code:`STARTUP_UNCAUGHT_EXCEPTION`,message:e=>`Uncaught exception: ${e}`},UNHANDLED_REJECTION:{code:`STARTUP_UNHANDLED_REJECTION`,message:e=>`Unhandled rejection: ${e}`},STARTUP_FAILED:{code:`STARTUP_FAILED`,message:e=>`Startup failed: ${e}`}},jb={TIMEOUT:{code:`PROMISE_TIMEOUT`,message:(e,t)=>`Promise ${e} timed out after ${t}ms`},NOT_A_FUNCTION:{code:`PROMISE_NOT_A_FUNCTION`,message:e=>`Promise function at index ${e} is not a function`},FUNCTION_UNDEFINED:{code:`PROMISE_FUNCTION_UNDEFINED`,message:`Promise function is undefined`}},Mb={EXECUTION_FAILED:{code:`TOOL_EXECUTION_FAILED`,message:(e,t)=>`Tool ${e} execution failed: ${t}`},SECURITY_VALIDATION_FAILED:{code:`TOOL_SECURITY_VALIDATION_FAILED`,message:(e,t)=>`Security validation failed for ${e}: ${t}`}};({...Cb,...wb,...Tb,...Eb,...Db,...Ob,...kb,...Ab,...jb,...Mb});const Nb={PATH_VALIDATION_FAILED:`pathValidationFailed`,FILE_ACCESS_FAILED:`fileAccessFailed`,FILE_READ_FAILED:`fileReadFailed`,FILE_TOO_LARGE:`fileTooLarge`,NO_MATCHES:`noMatches`,PATTERN_TOO_BROAD:`patternTooBroad`,PAGINATION_REQUIRED:`paginationRequired`,OUTPUT_TOO_LARGE:`outputTooLarge`,RESPONSE_TOO_LARGE:`responseTooLarge`,COMMAND_NOT_AVAILABLE:`commandNotAvailable`,COMMAND_EXECUTION_FAILED:`commandExecutionFailed`,COMMAND_TIMEOUT:`commandTimeout`,QUERY_EXECUTION_FAILED:`queryExecutionFailed`,TOOL_EXECUTION_FAILED:`toolExecutionFailed`};let Pb=function(e){return e.FILE_SYSTEM=`FILE_SYSTEM`,e.VALIDATION=`VALIDATION`,e.SEARCH=`SEARCH`,e.PAGINATION=`PAGINATION`,e.EXECUTION=`EXECUTION`,e}({});const Fb={[Nb.PATH_VALIDATION_FAILED]:{code:Nb.PATH_VALIDATION_FAILED,category:Pb.VALIDATION,description:`Path validation failed - invalid or unsafe path`,recoverability:`user-action-required`},[Nb.FILE_ACCESS_FAILED]:{code:Nb.FILE_ACCESS_FAILED,category:Pb.FILE_SYSTEM,description:`Cannot access file - may not exist or lack permissions`,recoverability:`unrecoverable`},[Nb.FILE_READ_FAILED]:{code:Nb.FILE_READ_FAILED,category:Pb.FILE_SYSTEM,description:`Failed to read file contents`,recoverability:`unrecoverable`},[Nb.FILE_TOO_LARGE]:{code:Nb.FILE_TOO_LARGE,category:Pb.FILE_SYSTEM,description:`File exceeds size limits for operation`,recoverability:`user-action-required`},[Nb.NO_MATCHES]:{code:Nb.NO_MATCHES,category:Pb.SEARCH,description:`Search pattern found no matches`,recoverability:`user-action-required`},[Nb.PATTERN_TOO_BROAD]:{code:Nb.PATTERN_TOO_BROAD,category:Pb.SEARCH,description:`Search pattern is too broad and would return too many results`,recoverability:`user-action-required`},[Nb.PAGINATION_REQUIRED]:{code:Nb.PAGINATION_REQUIRED,category:Pb.PAGINATION,description:`Result set too large - pagination required`,recoverability:`user-action-required`},[Nb.OUTPUT_TOO_LARGE]:{code:Nb.OUTPUT_TOO_LARGE,category:Pb.PAGINATION,description:`Output exceeds size limits`,recoverability:`user-action-required`},[Nb.RESPONSE_TOO_LARGE]:{code:Nb.RESPONSE_TOO_LARGE,category:Pb.PAGINATION,description:`Response exceeds maximum allowed size`,recoverability:`user-action-required`},[Nb.COMMAND_NOT_AVAILABLE]:{code:Nb.COMMAND_NOT_AVAILABLE,category:Pb.EXECUTION,description:`Required CLI command is not installed or not in PATH`,recoverability:`user-action-required`},[Nb.COMMAND_EXECUTION_FAILED]:{code:Nb.COMMAND_EXECUTION_FAILED,category:Pb.EXECUTION,description:`System command execution failed`,recoverability:`unrecoverable`},[Nb.COMMAND_TIMEOUT]:{code:Nb.COMMAND_TIMEOUT,category:Pb.EXECUTION,description:`Command execution timed out`,recoverability:`user-action-required`},[Nb.QUERY_EXECUTION_FAILED]:{code:Nb.QUERY_EXECUTION_FAILED,category:Pb.EXECUTION,description:`Query execution failed`,recoverability:`unrecoverable`},[Nb.TOOL_EXECUTION_FAILED]:{code:Nb.TOOL_EXECUTION_FAILED,category:Pb.EXECUTION,description:`Generic tool execution failure`,recoverability:`unrecoverable`}};var Ib=class e extends Error{errorCode;category;recoverability;context;constructor(t,n,r,i){let a=Fb[t],o=n||a.description;super(o,i?{cause:i}:void 0),this.name=`ToolError`,this.errorCode=t,this.category=a.category,this.recoverability=a.recoverability,this.context=r,i&&i.stack&&(this.stack=`${this.stack}\nCaused by: ${i.stack}`),Object.setPrototypeOf(this,e.prototype)}isRecoverable(){return this.recoverability===`recoverable`}requiresUserAction(){return this.recoverability===`user-action-required`}toJSON(){return{name:this.name,errorCode:this.errorCode,category:this.category,message:this.message,recoverability:this.recoverability,context:this.context,stack:this.stack}}};function Lb(e){return e instanceof Ib}function Rb(e,t=Nb.TOOL_EXECUTION_FAILED,n){return Lb(e)?e:e instanceof Error?new Ib(t,e.message,n,e):new Ib(t,String(e),n)}const zb={pathValidationFailed:(e,t,n)=>new Ib(Nb.PATH_VALIDATION_FAILED,t||`Path validation failed: ${Sb(e,n)}`,{path:e}),fileAccessFailed:(e,t,n)=>{let r=Sb(e,n),i=`Cannot access file: ${r}`,a=t?.code;return a===`ENOENT`?i=`File not found: ${r}. Verify the path exists using localFindFiles.`:a===`EACCES`?i=`Permission denied: ${r}. Check file permissions.`:a===`EISDIR`?i=`Path is a directory: ${r}. Use localViewStructure instead.`:a===`ENOTDIR`?i=`Invalid path: ${r}. A component of the path is not a directory.`:a===`ENAMETOOLONG`&&(i=`Path too long: ${r}`),new Ib(Nb.FILE_ACCESS_FAILED,i,{path:e,errorCode:a},t)},fileReadFailed:(e,t,n)=>new Ib(Nb.FILE_READ_FAILED,`Failed to read file: ${Sb(e,n)}`,{path:e},t),fileTooLarge:(e,t,n)=>new Ib(Nb.FILE_TOO_LARGE,(()=>{let e=e=>Number.isInteger(e)?`${e}KB`:`${e.toFixed(1)}KB`;return`File too large: ${e(t)} (limit: ${e(n)})`})(),{path:e,sizeKB:t,limitKB:n}),noMatches:(e,t)=>new Ib(Nb.NO_MATCHES,`No matches found for pattern: ${e}`,{pattern:e,...t}),patternTooBroad:(e,t)=>new Ib(Nb.PATTERN_TOO_BROAD,`Pattern too broad: ${t} matches found`,{pattern:e,matchCount:t}),paginationRequired:e=>new Ib(Nb.PAGINATION_REQUIRED,`Pagination required: ${e} characters`,{itemCount:e}),outputTooLarge:(e,t)=>new Ib(Nb.OUTPUT_TOO_LARGE,`Output too large: ${e} (limit: ${t})`,{size:e,limit:t}),responseTooLarge:(e,t)=>new Ib(Nb.RESPONSE_TOO_LARGE,`Response too large: ${e} tokens (limit: ${t})`,{tokens:e,limit:t}),commandNotAvailable:(e,t)=>new Ib(Nb.COMMAND_NOT_AVAILABLE,`Command '${e}' is not available. ${t||`Please install it and ensure it is in your PATH.`}`,{command:e,installHint:t}),commandExecutionFailed:(e,t,n)=>new Ib(Nb.COMMAND_EXECUTION_FAILED,n?`Command '${e}' failed: ${n}`:`Command execution failed: ${e}`,{command:e,stderr:n},t),commandTimeout:(e,t)=>new Ib(Nb.COMMAND_TIMEOUT,`Command '${e}' timed out after ${t}ms. Try a narrower search path or add filters.`,{command:e,timeoutMs:t}),queryExecutionFailed:(e,t)=>new Ib(Nb.QUERY_EXECUTION_FAILED,`Query execution failed`,{queryId:e},t),toolExecutionFailed:(e,t)=>new Ib(Nb.TOOL_EXECUTION_FAILED,`Tool execution failed: ${e}`,{toolName:e},t)};zb.commandNotAvailable,zb.commandExecutionFailed,zb.commandTimeout,zb.queryExecutionFailed,zb.toolExecutionFailed;const Bb=[{name:`openaiApiKey`,description:`OpenAI API key`,regex:/\b(sk-[a-zA-Z0-9_-]+T3BlbkFJ[a-zA-Z0-9_-]+)\b/g,matchAccuracy:`high`},{name:`openaiOrgId`,description:`OpenAI organization ID`,regex:/\borg-[a-zA-Z0-9]{20,}\b/g,matchAccuracy:`high`},{name:`groqApiKey`,description:`Groq API key`,regex:/\bgsk_[a-zA-Z0-9-_]{51,52}\b/g,matchAccuracy:`high`},{name:`cohereApiKey`,description:`Cohere API key`,regex:/\bco-[a-zA-Z0-9-_]{38,64}\b/g,matchAccuracy:`high`},{name:`huggingFaceToken`,description:`Hugging Face API token`,regex:/\bhf_[a-zA-Z0-9]{34}\b/g,matchAccuracy:`high`},{name:`perplexityApiKey`,description:`Perplexity AI API key`,regex:/\bpplx-[a-zA-Z0-9]{30,64}\b/g,matchAccuracy:`high`},{name:`replicateApiToken`,description:`Replicate API token`,regex:/\br8_[a-zA-Z0-9]{30,}\b/g,matchAccuracy:`high`},{name:`anthropicApiKey`,description:`Anthropic API key`,regex:/\b(sk-ant-(?:admin01|api03)-[\w-]{93}AA)\b/g,matchAccuracy:`high`},{name:`mistralApiKey`,description:`Mistral AI API key`,regex:/\b(?:mistral-|mist_)[a-zA-Z0-9]{32,}\b/g,matchAccuracy:`high`},{name:`tavilyApiKey`,description:`Tavily API key`,regex:/\btvly-[a-zA-Z0-9]{30,}\b/g,matchAccuracy:`high`},{name:`deepseekApiKey`,description:`DeepSeek API key`,regex:/\bsk-[a-zA-Z0-9]{32,64}\b/g,matchAccuracy:`medium`},{name:`togetherApiKey`,description:`Together AI API key`,regex:/\b['"]?(?:TOGETHER|together)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b/g,matchAccuracy:`medium`},{name:`fireworksApiKey`,description:`Fireworks AI API key`,regex:/\b['"]?(?:FIREWORKS|fireworks)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b/g,matchAccuracy:`medium`},{name:`xaiApiKey`,description:`xAI (Grok) API key`,regex:/\bxai-[a-zA-Z0-9]{48,}\b/g,matchAccuracy:`high`},{name:`openRouterApiKey`,description:`OpenRouter API key`,regex:/\bsk-or-v1-[a-zA-Z0-9]{64}\b/g,matchAccuracy:`high`},{name:`amazonBedrockApiKey`,description:`Amazon Bedrock API key`,regex:/\bABSK[A-Za-z0-9+/]{109,269}={0,2}\b/g,matchAccuracy:`high`},{name:`ai21ApiKey`,description:`AI21 Labs API key`,regex:/\b['"]?(?:AI21|ai21)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b/g,matchAccuracy:`medium`},{name:`stabilityApiKey`,description:`Stability AI API key`,regex:/\bsk-[a-zA-Z0-9]{48,}\b/g,matchAccuracy:`medium`},{name:`voyageApiKey`,description:`Voyage AI API key`,regex:/\bpa-[a-zA-Z0-9]{40,}\b/g,matchAccuracy:`high`}],Vb=[{name:`awsAccessKeyId`,description:`AWS access key ID`,regex:/\b((?:AKIA|ABIA|ACCA)[A-Z0-9]{16})\b/g,matchAccuracy:`high`},{name:`awsAccountId`,description:`AWS account ID`,regex:/\b['"]?(?:AWS|aws|Aws)?_?(?:ACCOUNT|account|Account)_?(?:ID|id|Id)?['"]?\s*(?::|=>|=)\s*['"]?[0-9]{12}['"]?\b/g,matchAccuracy:`high`},{name:`awsAppSyncApiKey`,description:`AWS AppSync GraphQL API key`,regex:/\bda2-[a-z0-9]{26}\b/g,matchAccuracy:`high`},{name:`awsIamRoleArn`,description:`AWS IAM role ARN`,regex:/\barn:aws:iam::[0-9]{12}:role\/[a-zA-Z0-9_+=,.@-]+\b/g,matchAccuracy:`high`},{name:`awsLambdaFunctionArn`,description:`AWS Lambda function ARN`,regex:/\barn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:[a-zA-Z0-9_-]+\b/g,matchAccuracy:`high`},{name:`awsMwsAuthToken`,description:`AWS MWS authentication token`,regex:/\bamzn\.mws\.[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/g,matchAccuracy:`high`},{name:`awsS3BucketArn`,description:`AWS S3 bucket ARN`,regex:/\barn:aws:s3:::[a-zA-Z0-9._-]+\b/g,matchAccuracy:`high`},{name:`alibabaAccessKeyId`,description:`Alibaba Cloud AccessKey ID`,regex:/\bLTAI[a-zA-Z0-9]{20}\b/g,matchAccuracy:`high`},{name:`awsSecretAccessKey`,description:`AWS secret access key`,regex:/\b['"]?(?:AWS|aws|Aws)?_?(?:SECRET|secret|Secret)_?(?:ACCESS|access|Access)_?(?:KEY|key|Key)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{40}['"]?\b/g,matchAccuracy:`high`},{name:`awsSessionToken`,description:`AWS session token`,regex:/\b['"]?(?:AWS|aws|Aws)?_?(?:SESSION|session|Session)_?(?:TOKEN|token|Token)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{200,}['"]?\b/g,matchAccuracy:`high`},{name:`awsSecretsManagerArn`,description:`AWS Secrets Manager secret ARN`,regex:/\barn:aws:secretsmanager:[a-z0-9-]+:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]+\b/g,matchAccuracy:`high`}],Hb=[{name:`vercelToken`,description:`Vercel API token`,regex:/\bvercel_[a-zA-Z0-9]{24}\b/g},{name:`posthogApiKey`,description:`PostHog API key`,regex:/\bphc_[a-zA-Z0-9_-]{39}\b/g,matchAccuracy:`high`},{name:`posthogPersonalApiKey`,description:`PostHog personal API key`,regex:/\bphx_[a-zA-Z0-9_-]{39}\b/g,matchAccuracy:`high`},{name:`datadogApiKey`,description:`Datadog API and application keys (with context)`,regex:/\bdatadog[\s\w]*(?:api|app)[\s\w]*key[\s:=]*["']?[a-fA-F0-9]{32,40}["']?/gi,matchAccuracy:`medium`},{name:`honeycombApiKey`,description:`Honeycomb API key`,regex:/\bhcaik_[a-zA-Z0-9_-]{32,64}\b/g,matchAccuracy:`high`}],Ub=[{name:`jwtToken`,description:`JWT (JSON Web Token - 3-part)`,regex:/\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9/_-]{17,}\.(?:[a-zA-Z0-9/_-]{10,}={0,2})?)\b/g,matchAccuracy:`high`},{name:`sessionIds`,description:`Session IDs / Cookies`,regex:/(?:JSESSIONID|PHPSESSID|ASP\.NET_SessionId|connect\.sid|session_id)=([a-zA-Z0-9%:._-]+)/gi,matchAccuracy:`high`},{name:`googleOauthToken`,description:`Google OAuth token`,regex:/\bya29\.[a-zA-Z0-9_-]+\b/g,matchAccuracy:`high`},{name:`onePasswordSecretKey`,description:`1Password secret key`,regex:/\bA3-[A-Z0-9]{6}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}\b/g,matchAccuracy:`high`},{name:`onePasswordServiceAccountToken`,description:`1Password service account token`,regex:/\bops_eyJ[a-zA-Z0-9+/]+={0,2}\b/g,matchAccuracy:`high`},{name:`jsonWebTokenEnhanced`,description:`JSON Web Token with enhanced detection`,regex:/\bey[a-zA-Z0-9]+\.ey[a-zA-Z0-9/_-]+\.(?:[a-zA-Z0-9/_-]+={0,2})?\b/g,matchAccuracy:`high`},{name:`authressServiceClientAccessKey`,description:`Authress service client access key`,regex:/\b(?:sc|ext|scauth|authress)_[a-z0-9]+\.[a-z0-9]+\.acc[_-][a-z0-9-]+\.[a-z0-9+/_=-]+\b/gi,matchAccuracy:`high`}],Wb=[{name:`googleApiKey`,description:`Google API key`,regex:/\bAIza[a-zA-Z0-9_-]{30,}\b/g,matchAccuracy:`high`},{name:`googleAiApiKey`,description:`Google AI API key`,regex:/\bAIza[0-9A-Za-z_-]{30,}\b/g,matchAccuracy:`high`},{name:`googleOAuth2ClientId`,description:`Google OAuth2 client ID`,regex:/\b[0-9]+-[a-z0-9]+\.apps\.googleusercontent\.com\b/g,matchAccuracy:`high`},{name:`googleOAuthClientSecret`,description:`Google OAuth client secret`,regex:/\b"client_secret":\s*"[a-zA-Z0-9-_]{24}"\b/g,matchAccuracy:`high`},{name:`gcpServiceAccountEmail`,description:`GCP service account email`,regex:/\b[a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com\b/g,matchAccuracy:`high`},{name:`azureStorageConnectionString`,description:`Azure storage account connection string`,regex:/\bDefaultEndpointsProtocol=https?;AccountName=[a-z0-9]+;AccountKey=[a-zA-Z0-9+/]+={0,2};EndpointSuffix=core\.windows\.net\b/g,matchAccuracy:`high`},{name:`azureSubscriptionId`,description:`Azure subscription ID`,regex:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.onmicrosoft\.com\b/g,matchAccuracy:`high`},{name:`azureCosmosDbConnectionString`,description:`Azure Cosmos DB connection string`,regex:/\bAccountEndpoint=https:\/\/[a-z0-9-]+\.documents\.azure\.com:443\/;AccountKey=[a-zA-Z0-9+/]+={0,2}\b/g,matchAccuracy:`high`},{name:`azureServiceBusConnectionString`,description:`Azure Service Bus connection string`,regex:/\bEndpoint=sb:\/\/[a-z0-9-]+\.servicebus\.windows\.net\/;SharedAccessKeyName=[a-zA-Z0-9]+;SharedAccessKey=[a-zA-Z0-9+/]+={0,2}\b/g,matchAccuracy:`high`},{name:`dropboxAccessToken`,description:`Dropbox access token`,regex:/\bsl\.[a-zA-Z0-9_-]{64}\b/g,matchAccuracy:`high`},{name:`dropboxAppKey`,description:`Dropbox app key`,regex:/\b[a-z0-9]{15}\.(?:app|apps)\.dropbox\.com\b/g,matchAccuracy:`high`},{name:`supabaseServiceKey`,description:`Supabase service role key`,regex:/\bsbp_[a-f0-9]{40}\b/g,matchAccuracy:`high`},{name:`planetScaleConnectionString`,description:`PlanetScale connection string`,regex:/\bmysql:\/\/[a-zA-Z0-9_-]+:[a-zA-Z0-9_=-]+@[a-z0-9.-]+\.psdb\.cloud\/[a-zA-Z0-9_-]+\?sslaccept=strict\b/g,matchAccuracy:`high`},{name:`planetScaleToken`,description:`PlanetScale API token`,regex:/\bpscale_tkn_[a-zA-Z0-9_-]{38,43}\b/g,matchAccuracy:`high`},{name:`sendgridApiKey`,description:`SendGrid API key`,regex:/\bSG\.[A-Za-z0-9_-]{20,22}\.[A-Za-z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`mailgunApiKey`,description:`Mailgun API key`,regex:/\bkey-[0-9a-z]{32}\b/g,matchAccuracy:`high`},{name:`mailchimpApiKey`,description:`MailChimp API key`,regex:/\b[0-9a-f]{32}-us[0-9]{1,2}\b/g,matchAccuracy:`high`},{name:`discordBotToken`,description:`Discord bot token`,regex:/\b[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}\b/g,matchAccuracy:`high`},{name:`discordWebhookUrl`,description:`Discord webhook URL`,regex:/\bhttps:\/\/discord\.com\/api\/webhooks\/[0-9]{18}\/[A-Za-z0-9_-]{68}\b/g,matchAccuracy:`high`},{name:`telegramBotToken`,description:`Telegram bot token`,regex:/\b[0-9]{8,10}:[A-Za-z0-9_-]{35}\b/g,matchAccuracy:`high`},{name:`twilioApiKey`,description:`Twilio API key`,regex:/\bSK[a-z0-9]{32}\b/g,matchAccuracy:`high`},{name:`twilioAccountSid`,description:`Twilio account SID`,regex:/\bAC[0-9a-fA-F]{32}\b/g,matchAccuracy:`high`},{name:`dockerHubToken`,description:`Docker Hub personal access token`,regex:/\bdckr_pat_[a-zA-Z0-9_]{36}\b/g,matchAccuracy:`high`},{name:`pypiApiToken`,description:`PyPI API token`,regex:/\bpypi-[a-zA-Z0-9_-]{84}\b/g,matchAccuracy:`high`},{name:`figmaToken`,description:`Figma personal access token`,regex:/\bfigd_[a-zA-Z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`renderToken`,description:`Render API token`,regex:/\brnd_[a-zA-Z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`airtablePersonalAccessToken`,description:`Airtable personal access token`,regex:/\bpat[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{64}\b/g,matchAccuracy:`high`},{name:`typeformToken`,description:`Typeform API token`,regex:/\btfp_[a-zA-Z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`intercomAccessToken`,description:`Intercom access token`,regex:/\bdG9rOi[a-zA-Z0-9+/]{46,48}={0,2}\b/g,matchAccuracy:`high`},{name:`digitalOceanToken`,description:`DigitalOcean API token`,regex:/\bdop_v1_[a-f0-9]{64}\b/g,matchAccuracy:`high`},{name:`digitalOceanOAuthToken`,description:`DigitalOcean OAuth access token`,regex:/\bdoo_v1_[a-f0-9]{64}\b/g,matchAccuracy:`high`},{name:`digitalOceanRefreshToken`,description:`DigitalOcean OAuth refresh token`,regex:/\bdor_v1_[a-f0-9]{64}\b/g,matchAccuracy:`high`},{name:`cloudflareApiKey`,description:`Cloudflare API key`,regex:/\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{40}['"]?\b/gi,matchAccuracy:`medium`},{name:`cloudflareGlobalApiKey`,description:`Cloudflare Global API key`,regex:/\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{37}['"]?\b/gi,matchAccuracy:`medium`},{name:`cloudflareOriginCaKey`,description:`Cloudflare Origin CA key`,regex:/\bv1\.0-[a-f0-9]{24}-[a-f0-9]{146}\b/g,matchAccuracy:`high`},{name:`flyioAccessToken`,description:`Fly.io API access token`,regex:/\bfo1_[\w-]{43}\b/g,matchAccuracy:`high`},{name:`flyioMachineToken`,description:`Fly.io machine token`,regex:/\bfm[12][ar]?_[a-zA-Z0-9+/]{100,}={0,3}\b/g,matchAccuracy:`high`},{name:`dopplerApiToken`,description:`Doppler API token`,regex:/\bdp\.pt\.[a-z0-9]{43}\b/gi,matchAccuracy:`high`},{name:`dynatraceApiToken`,description:`Dynatrace API token`,regex:/\bdt0c01\.[a-z0-9]{24}\.[a-z0-9]{64}\b/gi,matchAccuracy:`high`},{name:`netlifyAccessToken`,description:`Netlify access token`,regex:/\b['"]?(?:netlify)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40,46}['"]?\b/gi,matchAccuracy:`medium`},{name:`scalingoApiToken`,description:`Scalingo API token`,regex:/\btk-us-[\w-]{48}\b/g,matchAccuracy:`high`},{name:`infracostApiToken`,description:`Infracost API token`,regex:/\bico-[a-zA-Z0-9]{32}\b/g,matchAccuracy:`high`},{name:`harnessApiKey`,description:`Harness Access Token (PAT or SAT)`,regex:/\b(?:pat|sat)\.[a-zA-Z0-9_-]{22}\.[a-zA-Z0-9]{24}\.[a-zA-Z0-9]{20}\b/g,matchAccuracy:`high`},{name:`azureAdClientSecret`,description:`Azure AD client secret`,regex:/(?:^|[\\'"` \s>=:(,)])([a-zA-Z0-9_~.]{3}\dQ~[a-zA-Z0-9_~.-]{31,34})(?:$|[\\'"` \s<),])/g,matchAccuracy:`high`},{name:`herokuApiKeyV2`,description:`Heroku API key (new format)`,regex:/\bHRKU-AA[0-9a-zA-Z_-]{58}\b/g,matchAccuracy:`high`},{name:`microsoftTeamsWebhook`,description:`Microsoft Teams incoming webhook URL`,regex:/https:\/\/[a-z0-9]+\.webhook\.office\.com\/webhookb2\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}@[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}\/IncomingWebhook\/[a-z0-9]{32}\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}/gi,matchAccuracy:`high`},{name:`oktaAccessToken`,description:`Okta access token`,regex:/\b['"]?(?:okta)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?00[\w=-]{40}['"]?\b/gi,matchAccuracy:`high`},{name:`openshiftUserToken`,description:`OpenShift user token`,regex:/\bsha256~[\w-]{43}\b/g,matchAccuracy:`high`}],Gb=[{name:`jwtSecrets`,description:`JWT secrets`,regex:/\bjwt[_-]?secret\s*[:=]\s*['"][^'"]{16,}['"]\b/gi,matchAccuracy:`high`},{name:`kubernetesSecrets`,description:`Kubernetes secrets in YAML`,regex:/\bkind:\s*["']?Secret["']?[\s\S]{0,2000}?\bdata:\s*[\s\S]{0,2000}?[a-zA-Z0-9_-]+:\s*[a-zA-Z0-9+/]{16,}={0,3}\b/gi,matchAccuracy:`high`,fileContext:/\.ya?ml$/i},{name:`dockerComposeSecrets`,description:`Docker Compose secrets`,regex:/\b(?:MYSQL_ROOT_PASSWORD|POSTGRES_PASSWORD|REDIS_PASSWORD|MONGODB_PASSWORD)\s*[:=]\s*['"][^'"]{4,}['"]\b/gi,matchAccuracy:`medium`,fileContext:/docker-compose\.ya?ml$/i},{name:`springBootSecrets`,description:`Spring Boot application secrets`,regex:/\b(?:spring\.datasource\.password|spring\.security\.oauth2\.client\.registration\..*\.client-secret)\s*[:=]\s*['"][^'"]{4,}['"]\b/gi,matchAccuracy:`medium`,fileContext:/(?:application|bootstrap)(?:-\w+)?\.(?:properties|ya?ml)$/i},{name:`dotnetConnectionStrings`,description:`.NET connection strings with credentials`,regex:/\b(?:ConnectionStrings?|connectionString)\s*[:=]\s*['"][^'"]*(?:password|pwd)\s*=\s*[^;'"]{4,}[^'"]*['"]\b/gi,matchAccuracy:`medium`,fileContext:/(?:appsettings|web\.config).*\.(?:json|config)$/i},{name:`base64EncodedSecrets`,description:`Base64 encoded secrets in config`,regex:/\b(?:secret|password|key|token)[_-]?(?:base64|encoded)?\s*[:=]\s*['"][A-Za-z0-9+/]{32,}={0,3}['"]\b/gi,matchAccuracy:`medium`}],Kb=[{name:`rsaPrivateKey`,description:`RSA private key`,regex:/-----BEGIN (?:RSA )?PRIVATE KEY-----[\s\S]*?-----END (?:RSA )?PRIVATE KEY-----/g,matchAccuracy:`high`},{name:`pkcs8PrivateKey`,description:`PKCS#8 private key`,regex:/\b-----BEGIN (?:ENCRYPTED )?PRIVATE KEY-----\s*[\s\S]*?-----END (?:ENCRYPTED )?PRIVATE KEY-----\b/g,matchAccuracy:`high`},{name:`ecPrivateKey`,description:`Elliptic Curve private key`,regex:/\b-----BEGIN EC PRIVATE KEY-----\s*[\s\S]*?-----END EC PRIVATE KEY-----\b/g,matchAccuracy:`high`},{name:`dsaPrivateKey`,description:`DSA private key`,regex:/\b-----BEGIN DSA PRIVATE KEY-----\s*[\s\S]*?-----END DSA PRIVATE KEY-----\b/g,matchAccuracy:`high`},{name:`opensshPrivateKey`,description:`OpenSSH private key`,regex:/-----BEGIN OPENSSH PRIVATE KEY-----[\s\S]*?-----END OPENSSH PRIVATE KEY-----/g,matchAccuracy:`high`},{name:`sshPrivateKeyEncrypted`,description:`SSH private key (SSH2 encrypted format)`,regex:/\b-----BEGIN SSH2 ENCRYPTED PRIVATE KEY-----\s*[\s\S]*?-----END SSH2 ENCRYPTED PRIVATE KEY-----\b/g,matchAccuracy:`high`},{name:`puttyPrivateKey`,description:`PuTTY private key file`,regex:/\bPuTTY-User-Key-File-[23]:\s*[\s\S]*?Private-MAC:\b/g,matchAccuracy:`high`},{name:`pgpPrivateKey`,description:`PGP private key block`,regex:/\b-----BEGIN PGP PRIVATE KEY BLOCK-----\s*[\s\S]*?-----END PGP PRIVATE KEY BLOCK-----\b/g,matchAccuracy:`high`},{name:`firebaseServiceAccountPrivateKey`,description:`Firebase service account private key (JSON format)`,regex:/\b"private_key":\s*"-----BEGIN PRIVATE KEY-----\\n[a-zA-Z0-9+/=\\n]+\\n-----END PRIVATE KEY-----"\b/g,matchAccuracy:`high`},{name:`openvpnClientPrivateKey`,description:`OpenVPN client private key`,regex:/\b<key>\s*-----BEGIN[^<]*-----END[^<]*<\/key>\b/g,matchAccuracy:`high`},{name:`dhParameters`,description:`Diffie-Hellman parameters`,regex:/\b-----BEGIN DH PARAMETERS-----\s*[\s\S]*?-----END DH PARAMETERS-----\b/g,matchAccuracy:`high`},{name:`ageSecretKey`,description:`Age encryption secret key`,regex:/\bAGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}\b/g,matchAccuracy:`high`},{name:`vaultBatchToken`,description:`HashiCorp Vault batch token`,regex:/\bhvb\.[a-zA-Z0-9_-]{20,}\b/g,matchAccuracy:`high`},{name:`vaultServiceToken`,description:`HashiCorp Vault service token`,regex:/\bhvs\.[a-zA-Z0-9_-]{20,}\b/g,matchAccuracy:`high`},{name:`vaultPeriodicToken`,description:`HashiCorp Vault periodic token`,regex:/\bhvp\.[a-zA-Z0-9_-]{20,}\b/g,matchAccuracy:`high`},{name:`base64PrivateKeyContent`,description:`Base64 encoded private key content`,regex:/\b(?:private[_-]?key|secret[_-]?key)\s*[:=]\s*["'][A-Za-z0-9+/]{64,}={0,2}["']\b/gi,matchAccuracy:`medium`},{name:`hexEncodedKey`,description:`Hexadecimal encoded cryptographic key`,regex:/\b(?:key|secret)\s*[:=]\s*["'][a-fA-F0-9]{32,}["']\b/gi,matchAccuracy:`medium`}],qb=[{name:`postgresqlConnectionString`,description:`PostgreSQL connection string with credentials`,regex:/\bpostgresql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b/gi,matchAccuracy:`high`},{name:`mysqlConnectionString`,description:`MySQL connection string with credentials`,regex:/\bmysql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b/gi,matchAccuracy:`high`},{name:`mongodbConnectionString`,description:`MongoDB connection string with credentials`,regex:/\bmongodb:\/\/[a-zA-Z0-9._-]+:[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+:[0-9]+\/[a-zA-Z0-9._-]+\b/g,matchAccuracy:`high`},{name:`redisConnectionString`,description:`Redis connection string with credentials`,regex:/\bredis:\/\/[a-zA-Z0-9._-]+:[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+:[0-9]+\b/g,matchAccuracy:`high`},{name:`redisAuthPassword`,description:`Redis AUTH password command`,regex:/\bAUTH\s+[a-zA-Z0-9_-]{8,}\b/gi,matchAccuracy:`medium`},{name:`elasticsearchCredentials`,description:`Elasticsearch credentials in URL`,regex:/\bhttps?:\/\/[^:]+:[^@]+@[^/\s]+:9200\b/gi,matchAccuracy:`high`},{name:`couchdbCredentials`,description:`CouchDB credentials in URL`,regex:/\bhttp[s]?:\/\/[^:]+:[^@]+@[^/\s]+:5984\b/gi,matchAccuracy:`high`},{name:`neo4jCredentials`,description:`Neo4j database credentials in URL`,regex:/\bbolt[s]?:\/\/[^:]+:[^@]+@[^/\s]+:7687\b/gi,matchAccuracy:`high`},{name:`timescaledbConnectionString`,description:`TimescaleDB connection string with credentials`,regex:/\btimescaledb:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b/gi,matchAccuracy:`high`},{name:`clickhouseCredentials`,description:`ClickHouse connection string with credentials`,regex:/\bclickhouse:\/\/[^:]+:[^@]+@[^/\s]+:8123\b/gi,matchAccuracy:`high`},{name:`cassandraConnectionString`,description:`Cassandra connection string with credentials`,regex:/\bcassandra:\/\/[^:]+:[^@]+@[^/\s]+:9042\b/gi,matchAccuracy:`high`},{name:`faunadbKey`,description:`FaunaDB secret key`,regex:/\bfn[a-zA-Z0-9]{40}\b/g,matchAccuracy:`high`},{name:`databricksApiToken`,description:`Databricks API token`,regex:/\bdapi[a-f0-9]{32}(?:-\d)?\b/g,matchAccuracy:`high`},{name:`pineconeApiKey`,description:`Pinecone API key`,regex:/\bpinecone[\s\w]*(?:api|key|env)[\s:=]*["']?[a-zA-Z0-9_-]{32}["']?\b/gi,matchAccuracy:`medium`},{name:`databaseUrlWithCredentials`,description:`Generic database URL with embedded credentials`,regex:/\b(?:postgres|mysql|mongodb|redis):\/\/[^:]+:[^@]+@[^/\s]+\b/gi,matchAccuracy:`medium`},{name:`clickhouseCloudApiKey`,description:`ClickHouse Cloud API secret key`,regex:/\b4b1d[A-Za-z0-9]{38}\b/g,matchAccuracy:`high`},{name:`neonDatabaseConnectionString`,description:`Neon database connection string`,regex:/\bpostgres:\/\/[^:]+:[^@]+@[^/\s]*neon\.tech[^?\s]*\b/gi,matchAccuracy:`high`},{name:`tursoDatabaseToken`,description:`Turso database auth token`,regex:/\b['"]?(?:turso|libsql)(?:[\s\w.-]{0,20})(?:token|auth)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9._-]{50,}['"]?\b/gi,matchAccuracy:`medium`},{name:`upstashRedisToken`,description:`Upstash Redis REST token`,regex:/\b['"]?(?:upstash)(?:[\s\w.-]{0,20})(?:token|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9=]{40,}['"]?\b/gi,matchAccuracy:`medium`}],Jb=[{name:`npmAccessToken`,description:`NPM access token`,regex:/\bnpm_[a-zA-Z0-9]{36}\b/g,matchAccuracy:`high`},{name:`nugetApiKey`,description:`NuGet API key`,regex:/\boy2[a-z0-9]{43}\b/g,matchAccuracy:`high`},{name:`artifactoryApiKey`,description:`JFrog Artifactory API key`,regex:/\bAKCp[A-Za-z0-9]{69}\b/g,matchAccuracy:`high`},{name:`herokuApiKey`,description:`Heroku API key`,regex:/\bheroku.*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\b/gi,matchAccuracy:`high`},{name:`terraformCloudToken`,description:`Terraform Cloud API token`,regex:/\b[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{6}\.[a-zA-Z0-9]{16}\b/g,matchAccuracy:`high`},{name:`pulumiAccessToken`,description:`Pulumi access token`,regex:/\bpul-[a-f0-9]{40}\b/g,matchAccuracy:`high`},{name:`atlassianApiToken`,description:`Atlassian API token (Jira/Confluence)`,regex:/\bATATT3[A-Za-z0-9_\-=]{186}\b/g,matchAccuracy:`high`},{name:`sourcegraphApiKey`,description:`Sourcegraph API key`,regex:/\bsgp_[a-zA-Z0-9]{32}\b/g,matchAccuracy:`high`},{name:`linearApiKey`,description:`Linear API key`,regex:/\blin_api_[0-9A-Za-z]{40}\b/g,matchAccuracy:`high`},{name:`notionIntegrationToken`,description:`Notion integration token`,regex:/\bntn_[a-zA-Z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`stackhawkApiKey`,description:`StackHawk API key`,regex:/\bhawk\.[0-9A-Za-z\-_]{20}\.[0-9A-Za-z\-_]{20}\b/g,matchAccuracy:`high`},{name:`sentryAuthToken`,description:`Sentry authentication token`,regex:/\bsentry[\s\w]*(?:auth|token)[\s:=]*["']?[a-f0-9]{64}["']?\b/gi,matchAccuracy:`medium`},{name:`bugsnagApiKey`,description:`Bugsnag API key`,regex:/\bbugsnag[\s\w]*(?:api|key)[\s:=]*["']?[a-f0-9]{32}["']?\b/gi,matchAccuracy:`medium`},{name:`rollbarAccessToken`,description:`Rollbar access token`,regex:/\brollbar[\s\w]*(?:access|token)[\s:=]*["']?[a-f0-9]{32}["']?\b/gi,matchAccuracy:`medium`},{name:`postmanApiToken`,description:`Postman API token`,regex:/\bPMAK-[a-f0-9]{24}-[a-f0-9]{34}\b/gi,matchAccuracy:`high`},{name:`prefectApiToken`,description:`Prefect API token`,regex:/\bpnu_[a-zA-Z0-9]{36}\b/g,matchAccuracy:`high`},{name:`readmeApiToken`,description:`Readme API token`,regex:/\brdme_[a-z0-9]{70}\b/g,matchAccuracy:`high`},{name:`rubygemsApiToken`,description:`RubyGems API token`,regex:/\brubygems_[a-f0-9]{48}\b/g,matchAccuracy:`high`},{name:`clojarsApiToken`,description:`Clojars API token`,regex:/\bCLOJARS_[a-z0-9]{60}\b/gi,matchAccuracy:`high`},{name:`snykApiToken`,description:`Snyk API token`,regex:/\b['"]?(?:snyk[_.-]?(?:(?:api|oauth)[_.-]?)?(?:key|token))['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b/gi,matchAccuracy:`high`},{name:`sonarqubeToken`,description:`SonarQube/SonarCloud token`,regex:/\b(?:squ_|sqp_|sqa_)[a-z0-9=_-]{40}\b/gi,matchAccuracy:`high`},{name:`travisciAccessToken`,description:`Travis CI access token`,regex:/\b['"]?(?:travis)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{22}['"]?\b/gi,matchAccuracy:`medium`},{name:`codecovAccessToken`,description:`Codecov access token`,regex:/\b['"]?(?:codecov)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b/gi,matchAccuracy:`medium`},{name:`droneCiAccessToken`,description:`DroneCI access token`,regex:/\b['"]?(?:droneci|drone)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b/gi,matchAccuracy:`medium`},{name:`octopusDeployApiKey`,description:`Octopus Deploy API key`,regex:/\bAPI-[A-Z0-9]{26}\b/g,matchAccuracy:`high`},{name:`circleciToken`,description:`CircleCI personal API token`,regex:/\b['"]?(?:circleci|circle)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b/gi,matchAccuracy:`medium`},{name:`buildkiteAgentToken`,description:`Buildkite agent token`,regex:/\bbkagent_[a-f0-9]{40}\b/g,matchAccuracy:`high`},{name:`launchdarklyAccessToken`,description:`LaunchDarkly access token`,regex:/\b['"]?(?:launchdarkly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40}['"]?\b/gi,matchAccuracy:`medium`},{name:`algoliaApiKey`,description:`Algolia API key`,regex:/\b['"]?(?:algolia)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b/gi,matchAccuracy:`medium`}],Yb=[{name:`shopifyStorefrontAccessToken`,description:`Shopify storefront API access token`,regex:/\bshpatf_[0-9a-f]{32}\b/g,matchAccuracy:`high`},{name:`woocommerceConsumerKey`,description:`WooCommerce consumer key`,regex:/\bck_[a-f0-9]{40}\b/g,matchAccuracy:`high`},{name:`woocommerceConsumerSecret`,description:`WooCommerce consumer secret`,regex:/\bcs_[a-f0-9]{40}\b/g,matchAccuracy:`high`},{name:`contentfulAccessToken`,description:`Contentful access token`,regex:/\bCFPAT-[0-9a-zA-Z]{20}\b/g,matchAccuracy:`high`},{name:`mailchimpEcommerceApiKey`,description:`MailChimp E-commerce API key`,regex:/\b[0-9a-f]{32}-[a-z]{2,3}[0-9]{1,2}\b/g,matchAccuracy:`high`}],Xb=[{name:`gitlabPersonalAccessToken`,description:`GitLab personal access token`,regex:/\bglpat-[A-Za-z0-9_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabDeployToken`,description:`GitLab deploy token`,regex:/\bgldt-[A-Za-z0-9_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabRunnerToken`,description:`GitLab runner registration token`,regex:/\bglrt-[A-Za-z0-9_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabCiJobToken`,description:`GitLab CI/CD job token`,regex:/\bglcbt-[0-9a-zA-Z]{1,5}_[0-9a-zA-Z_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabRunnerAuthToken`,description:`GitLab runner authentication token`,regex:/\bglrt-[0-9a-zA-Z_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabPipelineTriggerToken`,description:`GitLab pipeline trigger token`,regex:/\bglptt-[0-9a-f]{40}\b/g,matchAccuracy:`high`},{name:`bitbucketAppPassword`,description:`Bitbucket app password`,regex:/\bATBB[a-zA-Z0-9]{24}\b/g,matchAccuracy:`high`},{name:`githubTokens`,description:`GitHub personal access token (classic)`,regex:/\b((?:ghp|gho|ghu|ghs|ghr|github_pat)_[a-zA-Z0-9_]{36,255})\b/g,matchAccuracy:`high`},{name:`githubAppInstallationToken`,description:`GitHub App installation token`,regex:/\bghs_[0-9a-zA-Z]{37}\b/g,matchAccuracy:`high`},{name:`gitlabScimToken`,description:`GitLab SCIM token`,regex:/\bglsoat-[0-9a-zA-Z_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabFeatureFlagToken`,description:`GitLab feature flag client token`,regex:/\bglffct-[0-9a-zA-Z_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabFeedToken`,description:`GitLab feed token`,regex:/\bglft-[0-9a-zA-Z_-]{20}\b/g,matchAccuracy:`high`},{name:`gitlabIncomingMailToken`,description:`GitLab incoming mail token`,regex:/\bglimt-[0-9a-zA-Z_-]{25}\b/g,matchAccuracy:`high`},{name:`gitlabK8sAgentToken`,description:`GitLab Kubernetes agent token`,regex:/\bglagent-[0-9a-zA-Z_-]{50}\b/g,matchAccuracy:`high`},{name:`gitlabOAuthAppSecret`,description:`GitLab OAuth application secret`,regex:/\bgloas-[0-9a-zA-Z_-]{64}\b/g,matchAccuracy:`high`},{name:`gitlabSessionCookie`,description:`GitLab session cookie`,regex:/_gitlab_session=[0-9a-z]{32}/g,matchAccuracy:`high`},{name:`bitbucketRepoToken`,description:`Bitbucket repository access token`,regex:/\bATCTT3[a-zA-Z0-9]{24}\b/g,matchAccuracy:`high`}],Zb=[{name:`mapboxSecretToken`,description:`Mapbox secret access token`,regex:/\bsk\.eyJ[a-zA-Z0-9._-]{87}\b/g,matchAccuracy:`high`},{name:`grafanaCloudApiKey`,description:`Grafana Cloud API key`,regex:/\bglc_[a-zA-Z0-9]{32}\b/g,matchAccuracy:`high`},{name:`newRelicApiKey`,description:`New Relic API key`,regex:/\bNRAK-[A-Z0-9]{27}\b/g,matchAccuracy:`high`},{name:`newRelicInsightKey`,description:`New Relic Insights query key`,regex:/\bNRIK-[A-Z0-9]{32}\b/g,matchAccuracy:`high`},{name:`newRelicBrowserApiToken`,description:`New Relic browser API token`,regex:/\bNRJS-[a-f0-9]{19}\b/g,matchAccuracy:`high`},{name:`newRelicInsertKey`,description:`New Relic ingest insert key`,regex:/\bNRII-[a-z0-9-]{32}\b/gi,matchAccuracy:`high`},{name:`grafanaApiKey`,description:`Grafana API key`,regex:/\beyJrIjoi[A-Za-z0-9]{70,400}={0,3}\b/gi,matchAccuracy:`high`},{name:`grafanaServiceAccountToken`,description:`Grafana service account token`,regex:/\bglsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8}\b/g,matchAccuracy:`high`},{name:`sentryOrgToken`,description:`Sentry organization token`,regex:/\bsntrys_eyJpYXQiO[a-zA-Z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[a-zA-Z0-9+/]{10,200}={0,2}_[a-zA-Z0-9+/]{43}\b/g,matchAccuracy:`high`},{name:`sentryUserToken`,description:`Sentry user token`,regex:/\bsntryu_[a-f0-9]{64}\b/g,matchAccuracy:`high`},{name:`sumoLogicAccessId`,description:`SumoLogic access ID`,regex:/\b['"]?(?:sumo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?su[a-zA-Z0-9]{12}['"]?\b/gi,matchAccuracy:`high`},{name:`splunkApiToken`,description:`Splunk HEC token`,regex:/\b['"]?(?:splunk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b/gi,matchAccuracy:`medium`},{name:`logdnaApiKey`,description:`LogDNA/Mezmo API key`,regex:/\b['"]?(?:logdna|mezmo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b/gi,matchAccuracy:`medium`},{name:`logglyToken`,description:`Loggly customer token`,regex:/\b['"]?(?:loggly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b/gi,matchAccuracy:`medium`}],Qb=[{name:`stripeSecretKey`,description:`Stripe secret key (sk_*, rk_*)`,regex:/\b[rs]k_live_[a-zA-Z0-9]{20,247}\b/g,matchAccuracy:`high`},{name:`stripeWebhookSecret`,description:`Stripe webhook signing secret`,regex:/\bwhsec_[a-zA-Z0-9]{32,}\b/g,matchAccuracy:`high`},{name:`paypalAccessToken`,description:`PayPal access token`,regex:/\bA21AA[a-zA-Z0-9_-]{50,}\b/g,matchAccuracy:`high`},{name:`paypalBraintreeAccessToken`,description:`PayPal Braintree access token`,regex:/\baccess_token\$(?:production|sandbox)\$[0-9a-z]{16}\$[0-9a-f]{32}\b/g,matchAccuracy:`high`},{name:`squareAccessToken`,description:`Square access token (all formats)`,regex:/\b(?:EAAAE[A-Za-z0-9_-]{94,}|sq0[a-z]?atp-[0-9A-Za-z\-_]{22,26})\b/g,matchAccuracy:`high`},{name:`squareOauthSecret`,description:`Square OAuth secret`,regex:/\bsq0csp-[0-9A-Za-z\-_]{43}\b/g,matchAccuracy:`high`},{name:`squareApplicationId`,description:`Square application ID`,regex:/\bsq0ids-[a-zA-Z0-9_-]{43}\b/g,matchAccuracy:`high`},{name:`shopifyPrivateAppPassword`,description:`Shopify private app password`,regex:/\bshppa_[a-fA-F0-9]{32}\b/g,matchAccuracy:`high`},{name:`shopifyAccessToken`,description:`Shopify access token`,regex:/\bshpat_[a-fA-F0-9]{32}\b/g,matchAccuracy:`high`},{name:`shopifyWebhookToken`,description:`Shopify webhook token`,regex:/\bshpwh_[a-fA-F0-9]{32}\b/g,matchAccuracy:`high`},{name:`adyenApiKey`,description:`Adyen API key`,regex:/\bAQE[a-zA-Z0-9]{70,}\b/g,matchAccuracy:`high`},{name:`razorpayApiKey`,description:`Razorpay API key`,regex:/\brzp_(?:test|live)_[a-zA-Z0-9]{14}\b/g,matchAccuracy:`high`},{name:`flutterwaveKeys`,description:`Flutterwave API keys`,regex:/\bFLW(?:PUBK|SECK)_(?:TEST|LIVE)-[a-h0-9]{32}-X\b/g,matchAccuracy:`high`},{name:`coinbaseAccessToken`,description:`Coinbase access token`,regex:/\b['"]?(?:coinbase)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{64}['"]?\b/gi,matchAccuracy:`medium`},{name:`krakenAccessToken`,description:`Kraken access token`,regex:/\b['"]?(?:kraken)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9/=_+-]{80,90}['"]?\b/gi,matchAccuracy:`medium`},{name:`kucoinAccessToken`,description:`Kucoin access token`,regex:/\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{24}['"]?\b/gi,matchAccuracy:`medium`},{name:`kucoinSecretKey`,description:`Kucoin secret key`,regex:/\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b/gi,matchAccuracy:`medium`},{name:`bittrexAccessKey`,description:`Bittrex access key`,regex:/\b['"]?(?:bittrex)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b/gi,matchAccuracy:`medium`},{name:`binanceApiKey`,description:`Binance API key`,regex:/\b['"]?(?:binance)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{64}['"]?\b/gi,matchAccuracy:`medium`},{name:`bybitApiKey`,description:`Bybit API key`,regex:/\b['"]?(?:bybit)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{18,24}['"]?\b/gi,matchAccuracy:`medium`},{name:`gocardlessApiToken`,description:`GoCardless API token`,regex:/\blive_[a-z0-9\-_=]{40}\b/gi,matchAccuracy:`high`},{name:`plaidApiToken`,description:`Plaid API token`,regex:/\baccess-(?:sandbox|development|production)-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/g,matchAccuracy:`high`}],$b=[{name:`privateKeyPem`,description:`Private key in PEM format (comprehensive)`,regex:/-----BEGIN\s?(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----[\s\S]*?-----END\s?(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----/g,matchAccuracy:`high`},{name:`pgpPrivateKeyBlock`,description:`PGP private key block (comprehensive)`,regex:/-----BEGIN\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----[\s\S]*?-----END\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----/g,matchAccuracy:`high`}],ex=[{name:`credentialsInUrl`,description:`Credentials embedded in URL`,regex:/\b[a-zA-Z]{3,10}:\/\/[^\\/\s:@]{3,20}:[^\\/\s:@]{3,20}@[^\s'"]+\b/g,matchAccuracy:`high`},{name:`envVarSecrets`,description:`Environment variable secrets (KEY, SECRET, TOKEN, PASSWORD)`,regex:/\b(?:\w+_)?(?:SECRET|secret|password|key|token|jwt_secret)(?:_\w+)?\s*=\s*["'][^"']{16,}["']/gi,matchAccuracy:`medium`}],tx=[{name:`slackBotToken`,description:`Slack bot token`,regex:/\bxoxb-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b/g,matchAccuracy:`high`},{name:`slackUserToken`,description:`Slack user token`,regex:/\bxoxp-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b/g,matchAccuracy:`high`},{name:`slackWorkspaceToken`,description:`Slack workspace token`,regex:/\bxoxa-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b/g,matchAccuracy:`high`},{name:`slackRefreshToken`,description:`Slack refresh token`,regex:/\bxoxr-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b/g,matchAccuracy:`high`},{name:`slackWebhookUrl`,description:`Slack incoming webhook URL`,regex:/(?:https?:\/\/)?hooks\.slack\.com\/(?:services|workflows|triggers)\/[A-Za-z0-9+/]{43,56}/gi,matchAccuracy:`high`},{name:`slackAppToken`,description:`Slack app-level token`,regex:/\bxapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+\b/gi,matchAccuracy:`high`},{name:`slackConfigAccessToken`,description:`Slack configuration access token`,regex:/\bxoxe\.xox[bp]-\d-[A-Z0-9]{163,166}\b/gi,matchAccuracy:`high`},{name:`sendbirdAccessToken`,description:`Sendbird access token`,regex:/\b['"]?(?:sendbird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b/gi,matchAccuracy:`medium`},{name:`messagebirdApiToken`,description:`MessageBird API token`,regex:/\b['"]?(?:messagebird|message_bird|message-bird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{25}['"]?\b/gi,matchAccuracy:`medium`},{name:`mattermostAccessToken`,description:`Mattermost access token`,regex:/\b['"]?(?:mattermost)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{26}['"]?\b/gi,matchAccuracy:`medium`},{name:`zendeskSecretKey`,description:`Zendesk secret key`,regex:/\b['"]?(?:zendesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{40}['"]?\b/gi,matchAccuracy:`medium`},{name:`freshdeskApiKey`,description:`Freshdesk API key`,regex:/\b['"]?(?:freshdesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{20}['"]?\b/gi,matchAccuracy:`medium`},{name:`sendinblueApiToken`,description:`Sendinblue (Brevo) API token`,regex:/\bxkeysib-[a-f0-9]{64}-[a-z0-9]{16}\b/g,matchAccuracy:`high`}],nx=[{name:`twitterBearerToken`,description:`Twitter/X Bearer token`,regex:/\bAAAAAAAAAAAAAAAAAAAAA[a-zA-Z0-9%]{50,}\b/g,matchAccuracy:`high`},{name:`facebookAccessToken`,description:`Facebook/Meta access token`,regex:/\bEAA[a-zA-Z0-9]{80,120}\b/g,matchAccuracy:`high`},{name:`facebookPageAccessToken`,description:`Facebook/Meta page access token`,regex:/\bEAAB[a-zA-Z0-9+/]{100,}\b/g,matchAccuracy:`high`},{name:`instagramAccessToken`,description:`Instagram access token`,regex:/\bIGQV[a-zA-Z0-9_-]{100,}\b/g,matchAccuracy:`high`},{name:`discordSocialBotToken`,description:`Discord social bot token`,regex:/\b[MN][A-Za-z\d]{23}\.[A-Za-z\d-_]{6}\.[A-Za-z\d-_]{27}\b/g,matchAccuracy:`high`},{name:`discordSocialWebhookUrl`,description:`Discord social webhook URL`,regex:/\bhttps:\/\/discord(?:app)?\.com\/api\/webhooks\/[0-9]{17,19}\/[A-Za-z0-9_-]{68}\b/g,matchAccuracy:`high`},{name:`pinterestAccessToken`,description:`Pinterest access token`,regex:/\bpina_[a-zA-Z0-9]{32}\b/g,matchAccuracy:`high`},{name:`linkedinApiToken`,description:`LinkedIn API token`,regex:/\b['"]?(?:linkedin|linked_in|linked-in)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{14,16}['"]?\b/gi,matchAccuracy:`medium`},{name:`youtubeApiKey`,description:`YouTube Data API key`,regex:/\b['"]?(?:youtube)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?AIza[a-zA-Z0-9_-]{35}['"]?\b/gi,matchAccuracy:`high`},{name:`tiktokApiToken`,description:`TikTok API token`,regex:/\b['"]?(?:tiktok)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{40,}['"]?\b/gi,matchAccuracy:`medium`}],rx=[{name:`shippoApiToken`,description:`Shippo API token`,regex:/\bshippo_(?:live|test)_[a-fA-F0-9]{40}\b/g,matchAccuracy:`high`},{name:`easypostApiToken`,description:`EasyPost API token`,regex:/\bEZAK[a-z0-9]{54}\b/gi,matchAccuracy:`high`},{name:`easypostTestApiToken`,description:`EasyPost test API token`,regex:/\bEZTK[a-z0-9]{54}\b/gi,matchAccuracy:`high`},{name:`duffelApiToken`,description:`Duffel travel API token`,regex:/\bduffel_(?:test|live)_[a-z0-9_\-=]{43}\b/gi,matchAccuracy:`high`},{name:`frameioApiToken`,description:`Frame.io API token`,regex:/\bfio-u-[a-z0-9\-_=]{64}\b/gi,matchAccuracy:`high`},{name:`maxmindLicenseKey`,description:`MaxMind license key`,regex:/\b[A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk\b/g,matchAccuracy:`high`},{name:`asanaPersonalAccessToken`,description:`Asana personal access token`,regex:/\b['"]?(?:asana)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9]{16}['"]?\b/gi,matchAccuracy:`medium`},{name:`mondayApiToken`,description:`Monday.com API token`,regex:/\b['"]?(?:monday)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b/gi,matchAccuracy:`medium`},{name:`trelloApiKey`,description:`Trello API key`,regex:/\b['"]?(?:trello)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b/gi,matchAccuracy:`medium`},{name:`jiraApiToken`,description:`Jira API token`,regex:/\b['"]?(?:jira)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{24}['"]?\b/gi,matchAccuracy:`medium`},{name:`settlemintApplicationAccessToken`,description:`SettleMint application access token`,regex:/\bsm_aat_[a-zA-Z0-9]{16}\b/g,matchAccuracy:`high`},{name:`settlemintPersonalAccessToken`,description:`SettleMint personal access token`,regex:/\bsm_pat_[a-zA-Z0-9]{16}\b/g,matchAccuracy:`high`},{name:`settlemintServiceAccessToken`,description:`SettleMint service access token`,regex:/\bsm_sat_[a-zA-Z0-9]{16}\b/g,matchAccuracy:`high`}],ix=[...Bb,...Hb,...Ub,...Vb,...Wb,...Gb,...Kb,...qb,...Jb,...Yb,...ex,...Zb,...Qb,...$b,...rx,...tx,...nx,...Xb];let ax=null,ox=[];function sx(e){if(!e)return e;let t=cx(),n=[],r;for(;(r=t.exec(e))!==null;){for(let e=0;e<ox.length;e++)if(r.groups?.[`p${e}`]){n.push({start:r.index,end:r.index+r[0].length,accuracy:ox[e]?.matchAccuracy||`medium`});break}r[0].length===0&&t.lastIndex++}if(n.length===0)return e;n.sort((e,t)=>e.start-t.start);let i=[],a=-1;for(let e of n)e.start>=a&&(i.push(e),a=e.end);let o=e;for(let t=i.length-1;t>=0;t--){let n=i[t];if(n){let t=lx(e.slice(n.start,n.end));o=o.slice(0,n.start)+t+o.slice(n.end)}}return o}function cx(){return ax||(ax=ux(ix),ox=ix),ax}function lx(e){let t=``;for(let n=0;n<e.length;n++)n%2==0?t+=`*`:t+=e[n];return t}function ux(e){let t=e.map((e,t)=>`(?<p${t}>${e.regex.source})`);return new RegExp(t.join(`|`),`gi`)}let dx=null,fx=null,px=null,mx=null,hx=jy,gx=Jy,_x=$v;function vx(e){if(e?.trim())return e.split(`,`).map(e=>e.trim()).filter(e=>e.length>0)}function yx(e,t){if(e==null)return t;let n=e.trim().toLowerCase();return n===``?t:n===`true`||n===`1`}function bx(e){if(e==null)return!0;let t=e.trim().toLowerCase();return t===``?!0:t!==`false`&&t!==`0`}async function xx(){let e=hx();if(e)return e;try{let e=await _x();if(e?.trim())return e.trim()}catch(e){e instanceof Error&&e.message&&(e.message=sx(e.message))}try{let e=await gx();if(e)return e}catch(e){e instanceof Error&&e.message&&(e.message=sx(e.message))}return null}async function Sx(){if(dx===null){if(px!==null)return px;px=(async()=>{fx=await xx();let e=bx(process.env.LOG),t=yx(process.env.ENABLE_LOCAL,!1)||yx(process.env.LOCAL,!1);dx={version:bb,githubApiUrl:process.env.GITHUB_API_URL?.trim()||`https://api.github.com`,toolsToRun:vx(process.env.TOOLS_TO_RUN),enableTools:vx(process.env.ENABLE_TOOLS),disableTools:vx(process.env.DISABLE_TOOLS),enableLogging:e,timeout:Math.max(3e4,parseInt(process.env.REQUEST_TIMEOUT?.trim()||`30000`)||3e4),maxRetries:Math.max(0,Math.min(10,parseInt(process.env.MAX_RETRIES?.trim()||`3`)||3)),loggingEnabled:e,enableLocal:t}})(),await px}}function Cx(){dx=null,fx=null,px=null,mx=null}function wx(){if(!dx){let e=sx(Cb.NOT_INITIALIZED.message);throw Error(e)}return dx}async function Tx(){return fx||mx||(mx=(async()=>{try{return fx=await xx(),fx}finally{mx=null}})(),mx)}function Ex(){return wx().enableLocal}function Dx(){return dx?.loggingEnabled??!1}var Ox=class{session;logEndpoint=`https://octocode-mcp-host.onrender.com/log`;constructor(){this.session=pb()}getSessionId(){return this.session.sessionId}getSession(){return this.session}async logInit(){await this.sendLog(`init`,{})}async logToolCall(e,t,n,r,i){let a=hb(1);a.session&&(this.session=a.session);let o={tool_name:e,repos:t,...n&&{mainResearchGoal:n},...r&&{researchGoal:r},...i&&{reasoning:i}};await this.sendLog(`tool_call`,o)}async logPromptCall(e){let t=gb(1);t.session&&(this.session=t.session);let n={prompt_name:e};await this.sendLog(`prompt_call`,n)}async logError(e,t){let n=_b(1);n.session&&(this.session=n.session),await this.sendLog(`error`,{error:`${e}:${t}`})}async logRateLimit(e){let t=vb(1);t.session&&(this.session=t.session),await this.sendLog(`rate_limit`,e)}async sendLog(e,t){if(Dx())try{let n={sessionId:this.session.sessionId,intent:e,data:t,timestamp:new Date().toISOString(),version:bb};await qv.post(this.logEndpoint,n,{timeout:5e3,headers:{"Content-Type":`application/json`}})}catch(t){let n=t instanceof Error?t.message:String(t);process.stderr.write(`[session] Failed to send log (${e}): ${n}\n`)}}};let kx=null;function Ax(){return kx||=new Ox,kx}function jx(){return kx}async function Mx(){let e=jx();e&&await e.logInit()}async function Nx(e,t,n,r,i){let a=jx();a&&await a.logToolCall(e,t,n,r,i)}async function Px(e){let t=jx();t&&await t.logPromptCall(e)}async function Fx(e,t){let n=jx();n&&await n.logError(e,t)}async function Ix(e){let t=jx();t&&await t.logRateLimit(e)}function Lx(e,t){let n=t.prompts;if(n)for(let t of Object.values(n)){if(!t||typeof t.name!=`string`||t.name.trim().length===0||typeof t.description!=`string`||t.description.trim().length===0||typeof t.content!=`string`||t.content.trim().length===0)continue;let n={};if(t.args&&Array.isArray(t.args))for(let e of t.args){if(!e||typeof e.name!=`string`)continue;let t=U().describe(e.description);e.required||(t=t.optional()),n[e.name]=t}e.registerPrompt(t.name,{description:t.description,argsSchema:n},async e=>{await Px(t.name);let n=t.content;if(e&&Object.keys(e).length>0){n+=`
Use Input
`;for(let[t,r]of Object.entries(e))r!=null&&(n+=`${t}: ${String(r)}\n`)}return{messages:[{role:`user`,content:{type:`text`,text:n}}]}})}}var Rx=F(((e,t)=>{var n=(function(){function e(e,t){return t!=null&&e instanceof t}var t;try{t=Map}catch{t=function(){}}var n;try{n=Set}catch{n=function(){}}var r;try{r=Promise}catch{r=function(){}}function i(a,o,s,c,u){typeof o==`object`&&(s=o.depth,c=o.prototype,u=o.includeNonEnumerable,o=o.circular);var d=[],f=[],p=typeof Buffer<`u`;o===void 0&&(o=!0),s===void 0&&(s=1/0);function m(a,s){if(a===null)return null;if(s===0)return a;var h,g;if(typeof a!=`object`)return a;if(e(a,t))h=new t;else if(e(a,n))h=new n;else if(e(a,r))h=new r(function(e,t){a.then(function(t){e(m(t,s-1))},function(e){t(m(e,s-1))})});else if(i.__isArray(a))h=[];else if(i.__isRegExp(a))h=new RegExp(a.source,l(a)),a.lastIndex&&(h.lastIndex=a.lastIndex);else if(i.__isDate(a))h=new Date(a.getTime());else if(p&&Buffer.isBuffer(a))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(a.length):new Buffer(a.length),a.copy(h),h;else e(a,Error)?h=Object.create(a):c===void 0?(g=Object.getPrototypeOf(a),h=Object.create(g)):(h=Object.create(c),g=c);if(o){var _=d.indexOf(a);if(_!=-1)return f[_];d.push(a),f.push(h)}for(var v in e(a,t)&&a.forEach(function(e,t){var n=m(t,s-1),r=m(e,s-1);h.set(n,r)}),e(a,n)&&a.forEach(function(e){var t=m(e,s-1);h.add(t)}),a){var y;g&&(y=Object.getOwnPropertyDescriptor(g,v)),!(y&&y.set==null)&&(h[v]=m(a[v],s-1))}if(Object.getOwnPropertySymbols)for(var b=Object.getOwnPropertySymbols(a),v=0;v<b.length;v++){var x=b[v],S=Object.getOwnPropertyDescriptor(a,x);S&&!S.enumerable&&!u||(h[x]=m(a[x],s-1),S.enumerable||Object.defineProperty(h,x,{enumerable:!1}))}if(u)for(var C=Object.getOwnPropertyNames(a),v=0;v<C.length;v++){var w=C[v],S=Object.getOwnPropertyDescriptor(a,w);S&&S.enumerable||(h[w]=m(a[w],s-1),Object.defineProperty(h,w,{enumerable:!1}))}return h}return m(a,s)}i.clonePrototype=function(e){if(e===null)return null;var t=function(){};return t.prototype=e,new t};function a(e){return Object.prototype.toString.call(e)}i.__objToStr=a;function o(e){return typeof e==`object`&&a(e)===`[object Date]`}i.__isDate=o;function s(e){return typeof e==`object`&&a(e)===`[object Array]`}i.__isArray=s;function c(e){return typeof e==`object`&&a(e)===`[object RegExp]`}i.__isRegExp=c;function l(e){var t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),t}return i.__getRegExpFlags=l,i})();typeof t==`object`&&t.exports&&(t.exports=n)})),zx=F(((e,t)=>{(function(){var e,n,r=[].splice,i=function(e,t){if(!(e instanceof t))throw Error(`Bound instance method accessed before binding`)},a=[].indexOf;n=Rx(),e=ve(`events`).EventEmitter,t.exports=(function(){class t extends e{constructor(e={}){super(),this.get=this.get.bind(this),this.mget=this.mget.bind(this),this.set=this.set.bind(this),this.mset=this.mset.bind(this),this.del=this.del.bind(this),this.take=this.take.bind(this),this.ttl=this.ttl.bind(this),this.getTtl=this.getTtl.bind(this),this.keys=this.keys.bind(this),this.has=this.has.bind(this),this.getStats=this.getStats.bind(this),this.flushAll=this.flushAll.bind(this),this.flushStats=this.flushStats.bind(this),this.close=this.close.bind(this),this._checkData=this._checkData.bind(this),this._check=this._check.bind(this),this._isInvalidKey=this._isInvalidKey.bind(this),this._wrap=this._wrap.bind(this),this._getValLength=this._getValLength.bind(this),this._error=this._error.bind(this),this._initErrors=this._initErrors.bind(this),this.options=e,this._initErrors(),this.data={},this.options=Object.assign({forceString:!1,objectValueSize:80,promiseValueSize:80,arrayValueSize:40,stdTTL:0,checkperiod:600,useClones:!0,deleteOnExpire:!0,enableLegacyCallbacks:!1,maxKeys:-1},this.options),this.options.enableLegacyCallbacks&&(console.warn(`WARNING! node-cache legacy callback support will drop in v6.x`),[`get`,`mget`,`set`,`del`,`ttl`,`getTtl`,`keys`,`has`].forEach(e=>{var t=this[e];this[e]=function(...e){var n,i,a=e,o;if([...e]=a,[n]=r.call(e,-1),typeof n==`function`)try{o=t(...e),n(null,o)}catch(e){i=e,n(i)}else return t(...e,n)}})),this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this.validKeyTypes=[`string`,`number`],this._checkData()}get(e){var n,r;if(i(this,t),(r=this._isInvalidKey(e))!=null)throw r;if(this.data[e]!=null&&this._check(e,this.data[e]))return this.stats.hits++,n=this._unwrap(this.data[e]),n;this.stats.misses++}mget(e){var n,r,a,o,s,c;if(i(this,t),!Array.isArray(e))throw n=this._error(`EKEYSTYPE`),n;for(c={},a=0,s=e.length;a<s;a++){if(o=e[a],(r=this._isInvalidKey(o))!=null)throw r;this.data[o]!=null&&this._check(o,this.data[o])?(this.stats.hits++,c[o]=this._unwrap(this.data[o])):this.stats.misses++}return c}set(e,n,r){var a,o,s;if(i(this,t),this.options.maxKeys>-1&&this.stats.keys>=this.options.maxKeys)throw a=this._error(`ECACHEFULL`),a;if(this.options.forceString,r??=this.options.stdTTL,(o=this._isInvalidKey(e))!=null)throw o;return s=!1,this.data[e]&&(s=!0,this.stats.vsize-=this._getValLength(this._unwrap(this.data[e],!1))),this.data[e]=this._wrap(n,r),this.stats.vsize+=this._getValLength(n),s||(this.stats.ksize+=this._getKeyLength(e),this.stats.keys++),this.emit(`set`,e,n),!0}mset(e){var n,r,a,o,s,c,l,u,d,f;if(i(this,t),this.options.maxKeys>-1&&this.stats.keys+e.length>=this.options.maxKeys)throw n=this._error(`ECACHEFULL`),n;for(a=0,l=e.length;a<l;a++){if(c=e[a],{key:s,val:f,ttl:d}=c,d&&typeof d!=`number`)throw n=this._error(`ETTLTYPE`),n;if((r=this._isInvalidKey(s))!=null)throw r}for(o=0,u=e.length;o<u;o++)c=e[o],{key:s,val:f,ttl:d}=c,this.set(s,f,d);return!0}del(e){var n,r,a,o,s,c;for(i(this,t),Array.isArray(e)||(e=[e]),n=0,a=0,s=e.length;a<s;a++){if(o=e[a],(r=this._isInvalidKey(o))!=null)throw r;this.data[o]!=null&&(this.stats.vsize-=this._getValLength(this._unwrap(this.data[o],!1)),this.stats.ksize-=this._getKeyLength(o),this.stats.keys--,n++,c=this.data[o],delete this.data[o],this.emit(`del`,o,c.v))}return n}take(e){var n;return i(this,t),n=this.get(e),n!=null&&this.del(e),n}ttl(e,n){var r;if(i(this,t),n||=this.options.stdTTL,!e)return!1;if((r=this._isInvalidKey(e))!=null)throw r;return this.data[e]!=null&&this._check(e,this.data[e])?(n>=0?this.data[e]=this._wrap(this.data[e].v,n,!1):this.del(e),!0):!1}getTtl(e){var n,r;if(i(this,t),e){if((r=this._isInvalidKey(e))!=null)throw r;if(this.data[e]!=null&&this._check(e,this.data[e]))return n=this.data[e].t,n}}keys(){var e;return i(this,t),e=Object.keys(this.data),e}has(e){var n;return i(this,t),n=this.data[e]!=null&&this._check(e,this.data[e]),n}getStats(){return i(this,t),this.stats}flushAll(e=!0){i(this,t),this.data={},this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this._killCheckPeriod(),this._checkData(e),this.emit(`flush`)}flushStats(){i(this,t),this.stats={hits:0,misses:0,keys:0,ksize:0,vsize:0},this.emit(`flush_stats`)}close(){i(this,t),this._killCheckPeriod()}_checkData(e=!0){var n,r,a;for(n in i(this,t),r=this.data,r)a=r[n],this._check(n,a);e&&this.options.checkperiod>0&&(this.checkTimeout=setTimeout(this._checkData,this.options.checkperiod*1e3,e),this.checkTimeout!=null&&this.checkTimeout.unref!=null&&this.checkTimeout.unref())}_killCheckPeriod(){if(this.checkTimeout!=null)return clearTimeout(this.checkTimeout)}_check(e,n){var r;return i(this,t),r=!0,n.t!==0&&n.t<Date.now()&&(this.options.deleteOnExpire&&(r=!1,this.del(e)),this.emit(`expired`,e,this._unwrap(n))),r}_isInvalidKey(e){var n;if(i(this,t),n=typeof e,a.call(this.validKeyTypes,n)<0)return this._error(`EKEYTYPE`,{type:typeof e})}_wrap(e,r,a=!0){var o,s,c;return i(this,t),this.options.useClones||(a=!1),s=Date.now(),o=0,c=1e3,o=r===0?0:r?s+r*c:this.options.stdTTL===0?this.options.stdTTL:s+this.options.stdTTL*c,{t:o,v:a?n(e):e}}_unwrap(e,t=!0){return this.options.useClones||(t=!1),e.v==null?null:t?n(e.v):e.v}_getKeyLength(e){return e.toString().length}_getValLength(e){return i(this,t),typeof e==`string`?e.length:this.options.forceString?JSON.stringify(e).length:Array.isArray(e)?this.options.arrayValueSize*e.length:typeof e==`number`?8:typeof e?.then==`function`?this.options.promiseValueSize:typeof Buffer<`u`&&Buffer!==null&&Buffer.isBuffer(e)?e.length:typeof e==`object`&&e?this.options.objectValueSize*Object.keys(e).length:typeof e==`boolean`?8:0}_error(e,n={}){var r;return i(this,t),r=Error(),r.name=e,r.errorcode=e,r.message=this.ERRORS[e]==null?`-`:this.ERRORS[e](n),r.data=n,r}_initErrors(){var e,n,r;for(n in i(this,t),this.ERRORS={},r=this._ERRORS,r)e=r[n],this.ERRORS[n]=this.createErrorMessage(e)}createErrorMessage(e){return function(t){return e.replace(`__key`,t.type)}}}return t.prototype._ERRORS={ENOTFOUND:"Key `__key` not found",ECACHEFULL:`Cache max keys amount exceeded`,EKEYTYPE:"The key argument has to be of type `string` or `number`. Found: `__key`",EKEYSTYPE:`The keys argument has to be an array.`,ETTLTYPE:`The ttl argument has to be a number.`},t}).call(this)}).call(e)})),Bx=_e(F(((e,t)=>{(function(){var e=t.exports=zx();e.version=`5.1.2`}).call(e)}))(),1);const Vx=new Bx.default({stdTTL:86400,checkperiod:3600,maxKeys:1e3,deleteOnExpire:!0,useClones:!1}),Hx={hits:0,misses:0,sets:0,totalKeys:0,lastReset:new Date},Ux={"gh-api-code":3600,"gh-api-repos":7200,"gh-api-prs":1800,"gh-api-file-content":3600,"gh-repo-structure-api":7200,"github-user":900,"npm-search":14400,"pypi-search":14400,default:86400},Wx=new Map;function Gx(e,t,n){let r=Kx(t),i=n?`${n}:${r}`:r;return`v1-${e}:${g.createHash(`sha256`).update(i).digest(`hex`)}`}function Kx(e){return e===null?`null`:e===void 0?`undefined`:typeof e==`object`?Array.isArray(e)?`[${e.map(Kx).join(`,`)}]`:`{${Object.keys(e).sort().map(t=>{let n=e[t];return`"${t}":${Kx(n)}`}).join(`,`)}}`:String(e)}function qx(e){return Ux[e]||Ux.default}async function Jx(e,t,n={}){if(n.skipCache)return await t();if(!n.forceRefresh)try{let t=Vx.get(e);if(t!==void 0)return Hx.hits++,t}catch{}if(Wx.has(e))return Wx.get(e);let r=(async()=>{try{let r=await t();if(n.forceRefresh||Hx.misses++,(n.shouldCache??(()=>!0))(r))try{let t=n.ttl;t||=qx(e.match(/^v\d+-([^:]+):/)?.[1]??`default`),Vx.set(e,r,t),Hx.sets++,Hx.totalKeys=Vx.keys().length}catch{}return r}finally{Wx.delete(e)}})();return Wx.set(e,r),r}function Yx(){Vx.flushAll(),Wx.clear(),Hx.hits=0,Hx.misses=0,Hx.sets=0,Hx.totalKeys=0,Hx.lastReset=new Date}var Xx=class{prefix;server;constructor(e,t=`core`){this.server=e,this.prefix=`Octocode-${bb}:${t}`}async info(e,t){await this.log(`info`,e,t)}async warning(e,t){await this.log(`warning`,e,t)}async error(e,t){await this.log(`error`,e,t)}async debug(e,t){await this.log(`debug`,e,t)}async log(e,t,n){let r={message:t,timestamp:new Date().toISOString(),...n};try{this.server.isConnected()&&await this.server.sendLoggingMessage({level:e,logger:this.prefix,data:r})}catch{}}};function Zx(e,t){return new Xx(e,t)}var Qx=class{static loggers=new Map;static getLogger(e,t){return this.loggers.has(t)||this.loggers.set(t,new Xx(e,t)),this.loggers.get(t)}};async function $x(e,t={}){let{maxRetries:n=10,initialDelayMs:r=1e3,headers:i={},method:a=`GET`,includeVersion:o=!1}=t,s=e;o&&(s=`${e}${e.includes(`?`)?`&`:`?`}version=${encodeURIComponent(bb)}`);let c={"User-Agent":`Octocode-MCP/${bb}`,...i},l=globalThis.fetch;if(!l)throw Fx(`fetchWithRetries`,Tb.FETCH_NOT_AVAILABLE.code).catch(()=>{}),Error(Tb.FETCH_NOT_AVAILABLE.message);let u,d=n+1;for(let e=1;e<=d;e++)try{let e=await l(s,{method:a,headers:c});if(!e.ok){Fx(`fetchWithRetries`,Tb.FETCH_HTTP_ERROR.code).catch(()=>{});let t=Error(Tb.FETCH_HTTP_ERROR.message(e.status,e.statusText));throw t.status=e.status,t.headers=e.headers,t.retryable=e.status===429||e.status>=500&&e.status<600,t}return e.status===204?null:await e.json()}catch(t){let n=t;if(n&&n.retryable===!1)throw t;if(u=t instanceof Error?t:Error(String(t)),e===d)break;let i=r*2**(e-1);if(n&&n.headers&&typeof n.headers.get==`function`){let e=n.headers.get(`Retry-After`);if(e){let t=parseInt(e,10);isNaN(t)||(i=t*1e3)}}await new Promise(e=>setTimeout(e,i))}throw await Fx(`fetchWithRetries`,Tb.FETCH_FAILED_AFTER_RETRIES.code),Error(Tb.FETCH_FAILED_AFTER_RETRIES.message(d,u?.message||``))}const eS={hasResults:[`Follow 'mainResearchGoal', 'researchGoal', 'reasoning', 'hints' to navigate research`,`Do findings answer your question? If partial, identify gaps and continue`,`Got 3+ examples? Consider stopping to avoid over-research`,`Check last modified dates - skip stale content`],empty:[`Try broader terms or related concepts`,`Remove filters one at a time to find what blocks results`,`Separate concerns into multiple simpler queries`,`<AGENT_INSTRUCTION>If stuck in loop - STOP and ask user</AGENT_INSTRUCTION>`]},q={GITHUB_FETCH_CONTENT:`githubGetFileContent`,GITHUB_SEARCH_CODE:`githubSearchCode`,GITHUB_SEARCH_PULL_REQUESTS:`githubSearchPullRequests`,GITHUB_SEARCH_REPOSITORIES:`githubSearchRepositories`,GITHUB_VIEW_REPO_STRUCTURE:`githubViewRepoStructure`,PACKAGE_SEARCH:`packageSearch`,LOCAL_RIPGREP:`localSearchCode`,LOCAL_FETCH_CONTENT:`localGetFileContent`,LOCAL_FIND_FILES:`localFindFiles`,LOCAL_VIEW_STRUCTURE:`localViewStructure`,LSP_GOTO_DEFINITION:`lspGotoDefinition`,LSP_FIND_REFERENCES:`lspFindReferences`,LSP_CALL_HIERARCHY:`lspCallHierarchy`},tS=new Set([q.LOCAL_RIPGREP,q.LOCAL_FETCH_CONTENT,q.LOCAL_FIND_FILES,q.LOCAL_VIEW_STRUCTURE,q.LSP_GOTO_DEFINITION,q.LSP_FIND_REFERENCES,q.LSP_CALL_HIERARCHY]);function nS(e){return tS.has(e)}let rS=null,iS=null;const aS=Zt({name:U(),description:U(),required:Yt().optional()}),oS=Zt({name:U(),description:U(),content:U(),args:Xt(aS).optional()}),sS=Zt({name:U(),description:U(),schema:en(U()),hints:Zt({hasResults:Xt(U()),empty:Xt(U()),dynamic:en(Xt(U()).optional()).optional()})}),cS=Zt({mainResearchGoal:U(),researchGoal:U(),reasoning:U(),bulkQueryTemplate:U()}),lS=Zt({instructions:Zt({base:U().optional(),hasResults:U().optional(),empty:U().optional(),error:U().optional()}).optional()}),uS=Zt({instructions:U(),prompts:en(oS),toolNames:en(U()),baseSchema:cS,tools:en(sS),baseHints:Zt({hasResults:Xt(U()),empty:Xt(U())}),genericErrorHints:Xt(U()),bulkOperations:lS.optional()});function dS(){if(!rS)throw Fx(`toolMetadata`,Eb.INVALID_FORMAT.code).catch(()=>{}),Error(`Tool metadata not initialized. Call and await initializeToolMetadata() before using tool metadata.`);return rS}function fS(e){return e&&typeof e==`object`&&(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n!==null&&(typeof n==`object`||typeof n==`function`)&&!Object.isFrozen(n)&&fS(n)})),e}async function pS(){if(!rS){if(iS)return iS;iS=(async()=>{let e=await $x(`https://octocodeai.com/api/mcpContent`,{maxRetries:3,includeVersion:!0}),t=uS.safeParse(e);if(!t.success)throw await Fx(`toolMetadata`,Eb.INVALID_API_RESPONSE.code),Error(Eb.INVALID_FORMAT.message);let n=t.data,r=n.toolNames,i=n.baseSchema;rS=fS({instructions:n.instructions,prompts:n.prompts,toolNames:r,baseSchema:{mainResearchGoal:i.mainResearchGoal,researchGoal:i.researchGoal,reasoning:i.reasoning,bulkQuery:e=>i.bulkQueryTemplate.replace(`{toolName}`,e)},tools:n.tools,baseHints:n.baseHints,genericErrorHints:n.genericErrorHints,bulkOperations:n.bulkOperations})})(),await iS}}async function mS(){return rS||await pS(),dS()}const J=new Proxy({},{get(e,t){if(rS){let e=rS.toolNames[t];if(e!==void 0)return e}return q[t]},ownKeys(){return rS?Object.keys(rS.toolNames):Object.keys(q)},getOwnPropertyDescriptor(e,t){if(rS)return t in rS.toolNames?{enumerable:!0,configurable:!0,value:rS.toolNames[t]}:void 0;if(t in q)return{enumerable:!0,configurable:!0,value:q[t]}}}),hS=new Proxy({},{get(e,t){return rS?rS.baseSchema[t]:t===`bulkQuery`?e=>`Research queries for ${e} (1-3 queries per call for optimal resource management). Review schema before use for optimal results`:``}});new Proxy([],{get(e,t){return rS?rS.genericErrorHints[t]:[][t]}});function gS(e){if(!rS)return!1;let t=rS.tools??{};return Object.prototype.hasOwnProperty.call(t,e)}function _S(e,t){if(!rS||!rS.tools[e])return[];let n=nS(e)?eS[t]??[]:rS.baseHints[t]??[],r=rS.tools[e]?.hints[t]??[];return[...n,...r]}function vS(){return rS?dS().genericErrorHints:[]}function yS(e,t){return rS?rS.tools[e]?.hints?.dynamic?.[t]??[]:[]}const bS=new Proxy({},{get(e,t){return rS?.tools[t]?.description??``}});new Proxy({},{get(e,t){return rS?t===`base`?rS.baseHints:rS.tools[t]?.hints??{hasResults:[],empty:[]}:{hasResults:[],empty:[]}},ownKeys(){return[`base`,...Object.keys(rS?.tools??{})]},getOwnPropertyDescriptor(e,t){if(!rS)return t===`base`?{enumerable:!0,configurable:!0,value:{hasResults:[],empty:[]}}:void 0;if(t===`base`||rS.tools[t])return{enumerable:!0,configurable:!0,value:t===`base`?rS.baseHints:rS.tools[t]?.hints??{hasResults:[],empty:[]}}}});function xS(e){return new Proxy({},{get(t,n){return new Proxy({},{get(t,n){return rS?(rS.tools[e]?.schema??{})[n]??``:``}})}})}const SS=xS(J.GITHUB_FETCH_CONTENT),CS=xS(J.GITHUB_SEARCH_CODE),wS=xS(J.GITHUB_SEARCH_REPOSITORIES),TS=xS(J.GITHUB_SEARCH_PULL_REQUESTS),ES=xS(J.GITHUB_VIEW_REPO_STRUCTURE),DS=xS(J.PACKAGE_SEARCH),OS=xS(J.LOCAL_RIPGREP),kS=xS(J.LOCAL_FETCH_CONTENT),AS=xS(J.LOCAL_FIND_FILES),jS=xS(J.LOCAL_VIEW_STRUCTURE),MS=xS(q.LSP_GOTO_DEFINITION),NS=xS(q.LSP_FIND_REFERENCES),PS=xS(q.LSP_CALL_HIERARCHY);var FS=class{static sanitizeContent(e){let t=this.detectSecrets(e);return{content:t.sanitizedContent,hasSecrets:t.hasSecrets,secretsDetected:t.secretsDetected,warnings:t.secretsDetected}}static detectSecrets(e){let t=e,n=new Set;try{for(let e of ix){let r=t.match(e.regex);r&&r.length>0&&(r.forEach(t=>n.add(e.name)),t=t.replace(e.regex,`[REDACTED-${e.name.toUpperCase()}]`))}}catch{return{hasSecrets:!0,secretsDetected:[`detection-error`],sanitizedContent:`[CONTENT-REDACTED-DETECTION-ERROR]`}}let r=Array.from(n);return{hasSecrets:r.length>0,secretsDetected:r,sanitizedContent:t}}static validateInputParameters(e){if(!e||typeof e!=`object`)return{sanitizedParams:{},isValid:!1,hasSecrets:!1,warnings:[`Invalid parameters: must be an object`]};let t={},n=new Set,r=!1,i=!1;for(let[a,o]of Object.entries(e)){if(typeof a!=`string`||a.trim()===``){i=!0,n.add(`Invalid parameter key: ${a}`);continue}if([`__proto__`,`constructor`,`prototype`].includes(a)){i=!0,n.add(`Dangerous parameter key blocked: ${a}`);continue}if(typeof o==`string`){let e=o;o.length>1e4&&(n.add(`Parameter ${a} exceeds maximum length (10,000 characters)`),e=o.substring(0,1e4));let i=this.detectSecrets(e);i.hasSecrets&&(r=!0,i.secretsDetected.forEach(e=>n.add(`Secrets detected in ${a}: ${e}`))),t[a]=i.sanitizedContent}else if(Array.isArray(o))o.length>100?(n.add(`Parameter ${a} array exceeds maximum length (100 items)`),t[a]=o.slice(0,100)):t[a]=o;else if(typeof o==`object`&&o){let e=this.validateInputParameters(o);if(!e.isValid){i=!0,n.add(`Invalid nested object in parameter ${a}: ${e.warnings.join(`, `)}`);continue}t[a]=e.sanitizedParams,r||=e.hasSecrets}else t[a]=o}return{sanitizedParams:t,isValid:!i,hasSecrets:r,warnings:Array.from(n)}}};
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
function IS(e){return e==null}function LS(e){return typeof e==`object`&&!!e}function RS(e){return Array.isArray(e)?e:IS(e)?[]:[e]}function zS(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function BS(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function VS(e){return e===0&&1/e==-1/0}var HS={isNothing:IS,isObject:LS,toArray:RS,repeat:BS,isNegativeZero:VS,extend:zS};function US(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
`+e.mark.snippet),r+` `+n):r}function WS(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=US(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}WS.prototype=Object.create(Error.prototype),WS.prototype.constructor=WS,WS.prototype.toString=function(e){return this.name+`: `+US(this,e)};var GS=WS;function KS(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function qS(e,t){return HS.repeat(` `,t-e.length)+e}function JS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=KS(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=HS.repeat(` `,t.indent)+qS((e.line-c+1).toString(),u)+` | `+l.str+`
`+s;for(l=KS(e.buffer,r[o],i[o],e.position,d),s+=HS.repeat(` `,t.indent)+qS((e.line+1).toString(),u)+` | `+l.str+`
`,s+=HS.repeat(`-`,t.indent+u+3+l.pos)+`^
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=KS(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=HS.repeat(` `,t.indent)+qS((e.line+c+1).toString(),u)+` | `+l.str+`
`;return s.replace(/\n$/,``)}var YS=JS,XS=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],ZS=[`scalar`,`sequence`,`mapping`];function QS(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function $S(e,t){if(t||={},Object.keys(t).forEach(function(t){if(XS.indexOf(t)===-1)throw new GS(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=QS(t.styleAliases||null),ZS.indexOf(this.kind)===-1)throw new GS(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var eC=$S;function tC(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function nC(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function rC(e){return this.extend(e)}rC.prototype.extend=function(e){var t=[],n=[];if(e instanceof eC)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new GS(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof eC))throw new GS(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new GS(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new GS(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof eC))throw new GS(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(rC.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=tC(r,`implicit`),r.compiledExplicit=tC(r,`explicit`),r.compiledTypeMap=nC(r.compiledImplicit,r.compiledExplicit),r};var iC=new rC({explicit:[new eC(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),new eC(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),new eC(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})]});function aC(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function oC(){return null}function sC(e){return e===null}var cC=new eC(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:aC,construct:oC,predicate:sC,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function lC(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function uC(e){return e===`true`||e===`True`||e===`TRUE`}function dC(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var fC=new eC(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:lC,construct:uC,predicate:dC,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function pC(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function mC(e){return 48<=e&&e<=55}function hC(e){return 48<=e&&e<=57}function gC(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!pC(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!mC(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!hC(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function _C(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function vC(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!HS.isNegativeZero(e)}var yC=new eC(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:gC,construct:_C,predicate:vC,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),bC=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function xC(e){return!(e===null||!bC.test(e)||e[e.length-1]===`_`)}function SC(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var CC=/^[-+]?[0-9]+e/;function wC(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(HS.isNegativeZero(e))return`-0.0`;return n=e.toString(10),CC.test(n)?n.replace(`e`,`.e`):n}function TC(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||HS.isNegativeZero(e))}var EC=new eC(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:xC,construct:SC,predicate:TC,represent:wC,defaultStyle:`lowercase`}),DC=iC.extend({implicit:[cC,fC,yC,EC]}),OC=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),kC=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function AC(e){return e===null?!1:OC.exec(e)!==null||kC.exec(e)!==null}function jC(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=OC.exec(e),t===null&&(t=kC.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function MC(e){return e.toISOString()}var NC=new eC(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:AC,construct:jC,instanceOf:Date,represent:MC});function PC(e){return e===`<<`||e===null}var FC=new eC(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:PC}),IC=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function LC(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=IC;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function RC(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=IC,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function zC(e){var t=``,n=0,r,i,a=e.length,o=IC;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function BC(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var VC=new eC(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:LC,construct:RC,predicate:BC,represent:zC}),HC=Object.prototype.hasOwnProperty,UC=Object.prototype.toString;function WC(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,UC.call(i)!==`[object Object]`)return!1;for(a in i)if(HC.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function GC(e){return e===null?[]:e}var KC=new eC(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:WC,construct:GC}),qC=Object.prototype.toString;function JC(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],qC.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function YC(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var XC=new eC(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:JC,construct:YC}),ZC=Object.prototype.hasOwnProperty;function QC(e){if(e===null)return!0;var t,n=e;for(t in n)if(ZC.call(n,t)&&n[t]!==null)return!1;return!0}function $C(e){return e===null?{}:e}var ew=new eC(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:QC,construct:$C}),tw=DC.extend({implicit:[NC,FC],explicit:[VC,KC,XC,ew]}),nw=Object.prototype.hasOwnProperty,rw=1,iw=2,aw=3,ow=4,sw=1,cw=2,lw=3,uw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dw=/[\x85\u2028\u2029]/,fw=/[,\[\]\{\}]/,pw=/^(?:!|!!|![a-z\-]+!)$/i,mw=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hw(e){return Object.prototype.toString.call(e)}function gw(e){return e===10||e===13}function _w(e){return e===9||e===32}function vw(e){return e===9||e===32||e===10||e===13}function yw(e){return e===44||e===91||e===93||e===123||e===125}function bw(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function xw(e){return e===120?2:e===117?4:e===85?8:0}function Sw(e){return 48<=e&&e<=57?e-48:-1}function Cw(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function ww(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Tw(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var Ew=Array(256),Dw=Array(256),Ow=0;Ow<256;Ow++)Ew[Ow]=Cw(Ow)?1:0,Dw[Ow]=Cw(Ow);function kw(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tw,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Aw(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=YS(n),new GS(t,n)}function jw(e,t){throw Aw(e,t)}function Mw(e,t){e.onWarning&&e.onWarning.call(null,Aw(e,t))}var Nw={YAML:function(e,t,n){var r,i,a;e.version!==null&&jw(e,`duplication of %YAML directive`),n.length!==1&&jw(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&jw(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&jw(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Mw(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&jw(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],pw.test(r)||jw(e,`ill-formed tag handle (first argument) of the TAG directive`),nw.call(e.tagMap,r)&&jw(e,`there is a previously declared suffix for "`+r+`" tag handle`),mw.test(i)||jw(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{jw(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function Pw(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||jw(e,`expected valid JSON character`);else uw.test(s)&&jw(e,`the stream contains non-printable characters`);e.result+=s}}function Fw(e,t,n,r){var i,a,o,s;for(HS.isObject(n)||jw(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],nw.call(t,a)||(Tw(t,a,n[a]),r[a]=!0)}function Iw(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&jw(e,`nested arrays are not supported inside keys`),typeof i==`object`&&hw(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&hw(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)Fw(e,t,a[l],n);else Fw(e,t,a,n);else !e.json&&!nw.call(n,i)&&nw.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,jw(e,`duplicated mapping key`)),Tw(t,i,a),delete n[i];return t}function Lw(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):jw(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Rw(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;_w(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(gw(i))for(Lw(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Mw(e,`deficient indentation`),r}function zw(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||vw(n)))}function Bw(e,t){t===1?e.result+=` `:t>1&&(e.result+=HS.repeat(`
`,t-1))}function Vw(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(vw(p)||yw(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),vw(i)||n&&yw(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),vw(i)||n&&yw(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),vw(r))break}else if(e.position===e.lineStart&&zw(e)||n&&yw(p))break;else if(gw(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,Rw(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(Pw(e,a,o,!1),Bw(e,e.line-c),a=o=e.position,!1),_w(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return Pw(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function Hw(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Pw(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else gw(n)?(Pw(e,r,i,!0),Bw(e,Rw(e,!1,t)),r=i=e.position):e.position===e.lineStart&&zw(e)?jw(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);jw(e,`unexpected end of the stream within a single quoted scalar`)}function Uw(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return Pw(e,n,e.position,!0),e.position++,!0;else if(s===92){if(Pw(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),gw(s))Rw(e,!1,t);else if(s<256&&Ew[s])e.result+=Dw[s],e.position++;else if((o=xw(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=bw(s))>=0?a=(a<<4)+o:jw(e,`expected hexadecimal character`);e.result+=ww(a),e.position++}else jw(e,`unknown escape sequence`);n=r=e.position}else gw(s)?(Pw(e,n,r,!0),Bw(e,Rw(e,!1,t)),n=r=e.position):e.position===e.lineStart&&zw(e)?jw(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);jw(e,`unexpected end of the stream within a double quoted scalar`)}function Ww(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(Rw(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&jw(e,`expected the node content, but found ','`):jw(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),vw(l)&&(d=f=!0,e.position++,Rw(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,Zw(e,t,rw,!1,!0),g=e.tag,h=e.result,Rw(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),Rw(e,!0,t),Zw(e,t,rw,!1,!0),_=e.result),p?Iw(e,s,m,g,h,_,r,i,a):d?s.push(Iw(e,null,m,g,h,_,r,i,a)):s.push(h),Rw(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}jw(e,`unexpected end of the stream within a flow collection`)}function Gw(e,t){var n,r,i=sw,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)sw===i?i=d===43?lw:cw:jw(e,`repeat of a chomping mode identifier`);else if((u=Sw(d))>=0)u===0?jw(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?jw(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(_w(d)){do d=e.input.charCodeAt(++e.position);while(_w(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!gw(d)&&d!==0)}for(;d!==0;){for(Lw(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),gw(d)){c++;continue}if(e.lineIndent<s){i===lw?e.result+=HS.repeat(`
`,a?1+c:c):i===sw&&a&&(e.result+=`
`);break}for(r?_w(d)?(l=!0,e.result+=HS.repeat(`
`,a?1+c:c)):l?(l=!1,e.result+=HS.repeat(`
`,c+1)):c===0?a&&(e.result+=` `):e.result+=HS.repeat(`
`,c):e.result+=HS.repeat(`
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!gw(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Pw(e,n,e.position,!1)}return!0}function Kw(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,jw(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!vw(o))));){if(s=!0,e.position++,Rw(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Zw(e,t,aw,!1,!0),a.push(e.result),Rw(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)jw(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function qw(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,jw(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&vw(r))v===63?(g&&(Iw(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):jw(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!Zw(e,n,iw,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);_w(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),vw(v)||jw(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(Iw(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)jw(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)jw(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),Zw(e,t,ow,!0,i)&&(g?m=e.result:h=e.result),g||(Iw(e,d,f,p,m,h,o,s,c),p=m=h=null),Rw(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)jw(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&Iw(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function Jw(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&jw(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):jw(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!vw(o);)o===33&&(r?jw(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),pw.test(i)||jw(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),fw.test(a)&&jw(e,`tag suffix cannot contain flow indicator characters`)}a&&!mw.test(a)&&jw(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{jw(e,`tag name is malformed: `+a)}return n?e.tag=a:nw.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:jw(e,`undeclared tag handle "`+i+`"`),!0}function Yw(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&jw(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!vw(n)&&!yw(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&jw(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function Xw(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!vw(r)&&!yw(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&jw(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),nw.call(e.anchorMap,n)||jw(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],Rw(e,!0,-1),!0}function Zw(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=ow===n||aw===n,r&&Rw(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Jw(e)||Yw(e);)Rw(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||ow===n)&&(h=rw===n||iw===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(Kw(e,g)||qw(e,g,h))||Ww(e,h)?u=!0:(o&&Gw(e,h)||Hw(e,h)||Uw(e,h)?u=!0:Xw(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&jw(e,`alias node should not have any properties`)):Vw(e,h,rw===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&Kw(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&jw(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(nw.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||jw(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&jw(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):jw(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function Qw(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Rw(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!vw(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&jw(e,`directive name must not be less than one character in length`);o!==0;){for(;_w(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!gw(o));break}if(gw(o))break;for(n=e.position;o!==0&&!vw(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Lw(e),nw.call(Nw,r)?Nw[r](e,r,i):Mw(e,`unknown document directive "`+r+`"`)}if(Rw(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Rw(e,!0,-1)):a&&jw(e,`directives end mark is expected`),Zw(e,e.lineIndent-1,ow,!1,!0),Rw(e,!0,-1),e.checkLineBreaks&&dw.test(e.input.slice(t,e.position))&&Mw(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&zw(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Rw(e,!0,-1));return}if(e.position<e.length-1)jw(e,`end of the stream or a document separator is expected`);else return}function $w(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new kw(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,jw(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Qw(n);return n.documents}function eT(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=$w(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function tT(e,t){var n=$w(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new GS(`expected a single document in the stream, but found more`)}}var nT={loadAll:eT,load:tT},rT=Object.prototype.toString,iT=Object.prototype.hasOwnProperty,aT=65279,oT=9,sT=10,cT=13,lT=32,uT=33,dT=34,fT=35,pT=37,mT=38,hT=39,gT=42,_T=44,vT=45,yT=58,bT=61,xT=62,ST=63,CT=64,wT=91,TT=93,ET=96,DT=123,OT=124,kT=125,AT={};AT[0]=`\\0`,AT[7]=`\\a`,AT[8]=`\\b`,AT[9]=`\\t`,AT[10]=`\\n`,AT[11]=`\\v`,AT[12]=`\\f`,AT[13]=`\\r`,AT[27]=`\\e`,AT[34]=`\\"`,AT[92]=`\\\\`,AT[133]=`\\N`,AT[160]=`\\_`,AT[8232]=`\\L`,AT[8233]=`\\P`;var jT=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],MT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function NT(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&iT.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function PT(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new GS(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+HS.repeat(`0`,r-t.length)+t}var FT=1,IT=2;function LT(e){this.schema=e.schema||tw,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=HS.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=NT(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?IT:FT,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function RT(e,t){for(var n=HS.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
`&&(a+=n),a+=o;return a}function zT(e,t){return`
`+HS.repeat(` `,e.indent*t)}function BT(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function VT(e){return e===lT||e===oT}function HT(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==aT||65536<=e&&e<=1114111}function UT(e){return HT(e)&&e!==aT&&e!==cT&&e!==sT}function WT(e,t,n){var r=UT(e),i=r&&!VT(e);return(n?r:r&&e!==_T&&e!==wT&&e!==TT&&e!==DT&&e!==kT)&&e!==fT&&!(t===yT&&!i)||UT(t)&&!VT(t)&&e===fT||t===yT&&i}function GT(e){return HT(e)&&e!==aT&&!VT(e)&&e!==vT&&e!==ST&&e!==yT&&e!==_T&&e!==wT&&e!==TT&&e!==DT&&e!==kT&&e!==fT&&e!==mT&&e!==gT&&e!==uT&&e!==OT&&e!==bT&&e!==xT&&e!==hT&&e!==dT&&e!==pT&&e!==CT&&e!==ET}function KT(e){return!VT(e)&&e!==yT}function qT(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function JT(e){return/^\n* /.test(e)}var YT=1,XT=2,ZT=3,QT=4,$T=5;function eE(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=GT(qT(e,0))&&KT(qT(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=qT(e,c),!HT(l))return $T;h&&=WT(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=qT(e,c),l===sT)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!HT(l))return $T;h&&=WT(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?YT:a===IT?$T:XT:n>9&&JT(e)?$T:o?a===IT?$T:XT:f?QT:ZT}function tE(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===IT?`""`:`''`;if(!e.noCompatMode&&(jT.indexOf(t)!==-1||MT.test(t)))return e.quotingType===IT?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return BT(e,t)}switch(eE(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case YT:return t;case XT:return`'`+t.replace(/'/g,`''`)+`'`;case ZT:return`|`+nE(t,e.indent)+rE(RT(t,a));case QT:return`>`+nE(t,e.indent)+rE(RT(iE(t,o),a));case $T:return`"`+oE(t)+`"`;default:throw new GS(`impossible error: invalid scalar style`)}}()}function nE(e,t){var n=JT(e)?String(t):``,r=e[e.length-1]===`
`;return n+(r&&(e[e.length-2]===`
`||e===`
`)?`+`:r?``:`-`)+`
`}function rE(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function iE(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
`);return r=r===-1?e.length:r,n.lastIndex=r,aE(e.slice(0,r),t)}(),i=e[0]===`
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
`:``)+aE(c,t),i=a}return r}function aE(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
`+e.slice(i,a),i=a+1),o=s;return c+=`
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function oE(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=qT(e,i),r=AT[n],!r&&HT(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||PT(n);return t}function sE(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(fE(e,t,s,!1,!1)||s===void 0&&fE(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function cE(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(fE(e,t+1,c,!0,!0,!1,!0)||c===void 0&&fE(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=zT(e,t)),e.dump&&sT===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function lE(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),fE(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),fE(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function uE(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new GS(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=zT(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),fE(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&sT===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=zT(e,t)),fE(e,t+1,u,!0,d)&&(e.dump&&sT===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function dE(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,rT.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(iT.call(s.represent,c))r=s.represent[c](t,c);else throw new GS(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function fE(e,t,n,r,i,a,o){e.tag=null,e.dump=n,dE(e,n,!1)||dE(e,n,!0);var s=rT.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(uE(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(lE(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?cE(e,t-1,e.dump,i):cE(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(sE(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&tE(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new GS(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function pE(e,t){var n=[],r=[],i,a;for(mE(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function mE(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)mE(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)mE(e[r[i]],t,n)}function hE(e,t){t||={};var n=new LT(t);n.noRefs||pE(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),fE(n,0,r,!0,!0)?n.dump+`
`:``}var gE={dump:hE};nT.load,nT.loadAll;var _E=gE.dump;function vE(e,t){let n=()=>{if(!t?.sortKeys&&!t?.keysPriority)return!1;if(t.keysPriority&&t.keysPriority.length>0){let e=t.keysPriority;return(n,r)=>{let i=e.indexOf(n),a=e.indexOf(r);return i!==-1&&a!==-1?i-a:i!==-1&&a===-1?-1:i===-1&&a!==-1?1:t.sortKeys?n.localeCompare(r):0}}return t.sortKeys?(e,t)=>e.localeCompare(t):!1};try{return _E(e,{forceQuotes:!0,quotingType:`"`,lineWidth:-1,noRefs:!0,sortKeys:n(),indent:2,noCompatMode:!0,flowLevel:-1,skipInvalid:!1})}catch(t){let n=t instanceof Error?t.message:`Unknown error`;try{return JSON.stringify(e,null,2)}catch(e){return`# YAML conversion failed: ${n}\n# JSON conversion also failed: ${e instanceof Error?e.message:`Unknown error`}\n# Object: [Unconvertible]`}}}function yE(e){return e.split(``)}function bE(e,t){return t.includes(e)}var xE=class extends Error{constructor(e,t){super(),this.name=`DefaultsError`,this.message=e,this.defs=t}};function SE(e,t,n){e===!0?e={}:typeof e==`object`&&e&&(e={...e});let r=e||{};if(n){for(let e in r)if(LE(r,e)&&!LE(t,e))throw new xE("`"+e+"` is not a supported option",t)}for(let n in t)if(LE(t,n))if(!e||!LE(e,n))r[n]=t[n];else if(n===`ecma`){let t=e[n]|0;t>5&&t<2015&&(t+=2009),r[n]=t}else r[n]=e&&LE(e,n)?e[n]:t[n];return r}function CE(){}function wE(){return!1}function TE(){return!0}function EE(){return this}function DE(){return null}var OE=(function(){function e(e,n,r=!0){let i=[];for(let a=0;a<e.length;++a){let o=e[a].transform(n,r);o instanceof Z?i.push(o):o instanceof t&&i.push(...o.v)}return i}e.splice=function(e){return new t(e)},e.skip={};function t(e){this.v=e}return e})();function Y(e,t,n){return n||={},t&&(n.start||=t.start,n.end||=t.end),new e(n)}function kE(e,t){e.includes(t)||e.push(t)}function AE(e,t){return e.replace(/{(.+?)}/g,function(e,n){return t&&t[n]})}function jE(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function ME(e,t){if(e.length<2)return e.slice();function n(e,n){for(var r=[],i=0,a=0,o=0;i<e.length&&a<n.length;)t(e[i],n[a])<=0?r[o++]=e[i++]:r[o++]=n[a++];return i<e.length&&r.push.apply(r,e.slice(i)),a<n.length&&r.push.apply(r,n.slice(a)),r}function r(e){if(e.length<=1)return e;var t=Math.floor(e.length/2),i=e.slice(0,t),a=e.slice(t);return i=r(i),a=r(a),n(i,a)}return r(e)}function NE(e){return Array.isArray(e)||(e=e.split(` `)),new Set(e.sort())}function PE(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}function FE(e){var t=new Map;for(var n in e)LE(e,n)&&n.charAt(0)===`$`&&t.set(n.substr(1),e[n]);return t}function IE(e){var t=Object.create(null);return e.forEach(function(e,n){t[`$`+n]=e}),t}function LE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function RE(e,t){return e===!0||e instanceof RegExp&&e.test(t)}var zE={"\0":`0`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`};function BE(e){return e.replace(/[\0\n\r\u2028\u2029]/g,function(t,n){return(e[n-1]==`\\`&&(e[n-2]!=`\\`||/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,n-1)))?``:`\\`)+zE[t]})}const VE=/^[\\/|\0\s\w^$.[\]()]*$/,HE=e=>VE.test(e);function UE(e){let t=new Set(e.split(``)),n=``;for(let e of`dgimsuyv`)t.has(e)&&(n+=e,t.delete(e));return t.size&&t.forEach(e=>{n+=e}),n}function WE(e,t){return e._annotations&t}function GE(e,t){e._annotations|=t}function KE(e,t){e._annotations&=~t}var qE=``,JE=new Map,YE=`break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with`,XE=`false null true`,ZE=`enum import super this `+XE+` `+YE,QE=`implements interface package private protected public static `+ZE,$E=`return new delete throw else case yield await`;YE=NE(YE),ZE=NE(ZE),$E=NE($E),XE=NE(XE),QE=NE(QE);var eD=NE(yE(`+-*&%=<>!?|~^`)),tD=/^0x[0-9a-f]+$/i,nD=/^0[0-7]+$/,rD=/^0o[0-7]+$/i,iD=/^0b[01]+$/i,aD=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,oD=/^(0[xob])?[0-9a-f]+n$/i,sD=/in(?:stanceof)?/y,cD=NE(`in.instanceof.typeof.new.void.delete.++.--.+.-.!.~.&.|.^.*.**./.%.>>.<<.>>>.<.>.<=.>=.==.===.!=.!==.?.=.+=.-=.||=.&&=.??=./=.*=.**=.%=.>>=.<<=.>>>=.|=.^=.&=.&&.??.||`.split(`.`)),lD=NE(yE(` \xA0
\r \f\v \u2028\u2029 `)),uD=NE(yE(`
\r\u2028\u2029`)),dD=NE(yE(`;]),:`)),fD=NE(yE(`[{(,;:`)),pD=NE(yE(`[]{}(),;:`)),mD={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function hD(e,t){if(yD(e.charCodeAt(t))){if(bD(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(bD(e.charCodeAt(t))&&yD(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function gD(e,t){return yD(e.charCodeAt(t))?65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320:e.charCodeAt(t)}function _D(e){for(var t=0,n=0;n<e.length;n++)yD(e.charCodeAt(n))&&bD(e.charCodeAt(n+1))&&(t++,n++);return e.length-t}function vD(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function yD(e){return e>=55296&&e<=56319}function bD(e){return e>=56320&&e<=57343}function xD(e){return e>=48&&e<=57}function SD(e){return mD.ID_Start.test(e)}function CD(e){return mD.ID_Continue.test(e)}const wD=/^[a-z_$][a-z0-9_$]*$/i;function TD(e){return wD.test(e)}function ED(e,t){if(wD.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var n=mD.ID_Start.exec(e);return!n||n.index!==0?!1:(e=e.slice(n[0].length),e?(n=mD.ID_Continue.exec(e),!!n&&n[0].length===e.length):!0)}function DD(e,t=!0){if(!t&&e.includes(`e`))return NaN;if(tD.test(e))return parseInt(e.substr(2),16);if(nD.test(e))return parseInt(e.substr(1),8);if(rD.test(e))return parseInt(e.substr(2),8);if(iD.test(e))return parseInt(e.substr(2),2);if(aD.test(e))return parseFloat(e);var n=parseFloat(e);if(n==e)return n}var OD=class extends Error{constructor(e,t,n,r,i){super(),this.name=`SyntaxError`,this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}};function kD(e,t,n,r,i){throw new OD(e,t,n,r,i)}function AD(e,t,n){return e.type==t&&(n==null||e.value==n)}var jD={};function MD(e,t,n,r){var i={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function a(){return hD(i.text,i.pos)}function o(){if(i.text.charCodeAt(i.pos+1)!==46)return!1;let e=i.text.charCodeAt(i.pos+2);return e<48||e>57}function s(e,t){var n=hD(i.text,i.pos++);if(e&&!n)throw jD;return uD.has(n)?(i.newline_before=i.newline_before||!t,++i.line,i.col=0,n==`\r`&&a()==`
`&&(++i.pos,n=`
`)):(n.length>1&&(++i.pos,++i.col),++i.col),n}function c(e){for(;e--;)s()}function l(e){return i.text.substr(i.pos,e.length)==e}function u(){for(var e=i.text,t=i.pos,n=i.text.length;t<n;++t){var r=e[t];if(uD.has(r))return t}return-1}function d(e,t){var n=i.text.indexOf(e,i.pos);if(t&&n==-1)throw jD;return n}function f(){i.tokline=i.line,i.tokcol=i.col,i.tokpos=i.pos}var p=!1,m=null;function h(e,n,r){i.regex_allowed=e==`operator`&&!PD.has(n)||e==`keyword`&&$E.has(n)||e==`punc`&&fD.has(n)||e==`arrow`,e==`punc`&&(n==`.`||n==`?.`)?p=!0:r||(p=!1);let a=i.tokline,o=i.tokcol,s=i.tokpos,c=i.newline_before,l=t,u=[],d=[];r||(u=i.comments_before,d=i.comments_before=[]),i.newline_before=!1;let f=new HD(e,n,a,o,s,c,u,d,l);return r||(m=f),f}function g(){for(;lD.has(a());)s()}function _(){for(var e=i.pos,t=!1;e<i.text.length;){var n=hD(i.text,e);if(uD.has(n))return{char:n,pos:e};if(t)n==`*`&&hD(i.text,e+1)==`/`?(e+=2,t=!1):e++;else if(lD.has(n))e++;else{if(n==`/`){var r=hD(i.text,e+1);if(r==`/`)return e=u(),{char:hD(i.text,e),pos:e};if(r==`*`){t=!0,e+=2;continue}}return{char:n,pos:e}}}return{char:null,pos:e}}function v(e,t){if(e==`\\`)return!0;if(SD(e)){if(sD.lastIndex=t,sD.test(i.text)){var n=hD(i.text,sD.lastIndex);if(!CD(n)&&n!=`\\`)return!1}return!0}return!1}function y(e){for(var t=``,n,r=0;(n=a())&&e(n,r++);)t+=s();return t}function b(e){kD(e,t,i.tokline,i.tokcol,i.tokpos)}function x(e){var t=!1,n=!1,r=!1,i=e==`.`,a=!1,o=!1,s=y(function(s,c){if(a)return!1;var l=s.charCodeAt(0);switch(l){case 95:return o=!0;case 98:case 66:return r=!0;case 111:case 79:case 120:case 88:return r?!1:r=!0;case 101:case 69:return r?!0:t?!1:t=n=!0;case 45:return n||c==0&&!e;case 43:return n;case n=!1,46:return!i&&!r&&!t?i=!0:!1;case 110:return a=!0,!0}return l>=48&&l<=57||l>=97&&l<=102||l>=65&&l<=70});if(e&&(s=e+s),qE=s,nD.test(s)&&oe.has_directive(`use strict`)&&b(`Legacy octal literals are not allowed in strict mode`),o&&(s.endsWith(`_`)?b(`Numeric separators are not allowed at the end of numeric literals`):s.includes(`__`)&&b(`Only one underscore is allowed as numeric separator`),s=s.replace(/_/g,``)),a){let e=s.slice(0,-1),t=DD(e,tD.test(e));if(!i&&oD.test(s)&&!isNaN(t))return h(`big_int`,e);b(`Invalid or unexpected token`)}var c=DD(s);if(isNaN(c))b(`Invalid syntax: `+s);else return h(`num`,c)}function S(e){return e>=`0`&&e<=`7`}function C(e,t,n){var r=s(!0,e);switch(r.charCodeAt(0)){case 110:return`
`;case 114:return`\r`;case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 120:return String.fromCharCode(T(2,t));case 117:if(a()==`{`){for(s(!0),a()===`}`&&b(`Expecting hex-character between {}`);a()==`0`;)s(!0);var o,c=d(`}`,!0)-i.pos;return(c>6||(o=T(c,t))>1114111)&&b(`Unicode reference out of bounds`),s(!0),vD(o)}return String.fromCharCode(T(4,t));case 10:return``;case 13:if(a()==`
`)return s(!0,e),``}return S(r)?(n&&t&&(r===`0`&&!S(a())||b(`Octal escape sequences are not allowed in template strings`)),w(r,t)):r}function w(e,t){var n=a();return n>=`0`&&n<=`7`&&(e+=s(!0),e[0]<=`3`&&(n=a())>=`0`&&n<=`7`&&(e+=s(!0))),e===`0`?`\0`:(e.length>0&&oe.has_directive(`use strict`)&&t&&b(`Legacy octal escape sequences are not allowed in strict mode`),String.fromCharCode(parseInt(e,8)))}function T(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(a(),16)))return parseInt(n,16)||``;var r=s(!0);isNaN(parseInt(r,16))&&b(`Invalid hex-character pattern in string`),n+=r}return parseInt(n,16)}var E=N(`Unterminated string constant`,function(){let e=i.pos;for(var t=s(),n=[];;){var r=s(!0,!0);if(r==`\\`)r=C(!0,!0);else if(r==`\r`||r==`
`)b(`Unterminated string constant`);else if(r==t)break;n.push(r)}var a=h(`string`,n.join(``));return qE=i.text.slice(e,i.pos),a.quote=t,a}),D=N(`Unterminated template`,function(e){e&&i.template_braces.push(i.brace_counter);var t=``,n=``,r,o;for(s(!0,!0);(r=s(!0,!0))!="`";){if(r==`\r`)a()==`
`&&++i.pos,r=`
`;else if(r==`$`&&a()==`{`)return s(!0,!0),i.brace_counter++,o=h(e?`template_head`:`template_cont`,t),JE.set(o,n),o.template_end=!1,o;if(n+=r,r==`\\`){var c=i.pos;r=C(!0,!(m&&(m.type===`name`||m.type===`punc`&&(m.value===`)`||m.value===`]`))),!0),n+=i.text.substr(c,i.pos-c)}t+=r}return i.template_braces.pop(),o=h(e?`template_head`:`template_cont`,t),JE.set(o,n),o.template_end=!0,o});function O(e){var t=i.regex_allowed,n=u(),r;return n==-1?(r=i.text.substr(i.pos),i.pos=i.text.length):(r=i.text.substring(i.pos,n),i.pos=n),i.col=i.tokcol+(i.pos-i.tokpos),i.comments_before.push(h(e,r,!0)),i.regex_allowed=t,oe}var k=N(`Unterminated multiline comment`,function(){var e=i.regex_allowed,t=d(`*/`,!0),n=i.text.substring(i.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,`
`);return c(_D(n)+2),i.comments_before.push(h(`comment2`,n,!0)),i.newline_before=i.newline_before||n.includes(`
`),i.regex_allowed=e,oe}),A=function(){let e=i.pos,t=e-1,n=`c`;for(;(n=i.text.charAt(++t))&&(n>=`a`&&n<=`z`||n>=`A`&&n<=`Z`););return t>e+1&&n&&n!==`\\`&&!CD(n)&&n<=`~`?(i.pos+=t-e,i.col+=t-e,i.text.slice(e,i.pos)):j()},j=N(`Unterminated identifier name`,function(){var e=[],t,n=!1,r=function(){return n=!0,s(),a()!==`u`&&b(`Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}`),C(!1,!0)};if((t=a())===`\\`)t=r(),SD(t)||b(`First identifier char is an invalid identifier char`);else if(SD(t))s();else return``;for(e.push(t);(t=a())!=null;){if((t=a())===`\\`)t=r(),CD(t)||b(`Invalid escaped identifier char`);else{if(!CD(t))break;s()}e.push(t)}let i=e.join(``);return ZE.has(i)&&n&&b(`Escaped characters are not allowed in keywords`),i}),ee=N(`Unterminated regular expression`,function(e){for(var t=!1,n,r=!1;n=s(!0);)if(uD.has(n))b(`Unexpected line terminator`);else if(t)/^[\u0000-\u007F]$/.test(n)?e+=`\\`+n:e+=n,t=!1;else if(n==`[`)r=!0,e+=n;else if(n==`]`&&r)r=!1,e+=n;else if(n==`/`&&!r)break;else n==`\\`?t=!0:e+=n;let i=A();return h(`regexp`,`/`+e+`/`+i)});function te(e){function t(e){if(!a())return e;var n=e+a();return cD.has(n)?(s(),t(n)):e}return h(`operator`,t(e||s()))}function ne(){switch(s(),a()){case`/`:return s(),O(`comment1`);case`*`:return s(),k()}return i.regex_allowed?ee(``):te(`/`)}function re(){return s(),a()===`>`?(s(),h(`arrow`,`=>`)):te(`=`)}function M(){return s(),xD(a().charCodeAt(0))?x(`.`):a()===`.`?(s(),s(),h(`expand`,`...`)):h(`punc`,`.`)}function ie(){var e=A();return p?h(`name`,e):XE.has(e)?h(`atom`,e):YE.has(e)?cD.has(e)?h(`operator`,e):h(`keyword`,e):h(`name`,e)}function ae(){return s(),h(`privatename`,A())}function N(e,t){return function(n){try{return t(n)}catch(t){if(t===jD)b(e);else throw t}}}function oe(e){if(e!=null)return ee(e);for(r&&i.pos==0&&l(`#!`)&&(f(),c(2),O(`comment5`));;){if(g(),f(),n){if(l(`<!--`)){c(4),O(`comment3`);continue}if(l(`-->`)&&i.newline_before){c(3),O(`comment4`);continue}}var t=a();if(!t)return h(`eof`);var u=t.charCodeAt(0);switch(u){case 34:case 39:return E();case 46:return M();case 47:var d=ne();if(d===oe)continue;return d;case 61:return re();case 63:if(!o())break;return s(),s(),h(`punc`,`?.`);case 96:return D(!0);case 123:i.brace_counter++;break;case 125:if(i.brace_counter--,i.template_braces.length>0&&i.template_braces[i.template_braces.length-1]===i.brace_counter)return D(!1);break}if(xD(u))return x();if(pD.has(t))return h(`punc`,s());if(eD.has(t))return te();if(u==92||SD(t))return ie();if(u==35)return ae();break}b(`Unexpected character '`+t+`'`)}return oe.next=s,oe.peek=a,oe.context=function(e){return e&&(i=e),i},oe.add_directive=function(e){i.directive_stack[i.directive_stack.length-1].push(e),i.directives[e]===void 0?i.directives[e]=1:i.directives[e]++},oe.push_directives_stack=function(){i.directive_stack.push([])},oe.pop_directives_stack=function(){for(var e=i.directive_stack[i.directive_stack.length-1],t=0;t<e.length;t++)i.directives[e[t]]--;i.directive_stack.pop()},oe.has_directive=function(e){return i.directives[e]>0},oe.peek_next_token_start_or_newline=_,oe.ch_starts_binding_identifier=v,oe}var ND=NE([`typeof`,`void`,`delete`,`--`,`++`,`!`,`~`,`-`,`+`]),PD=NE([`--`,`++`]),FD=NE([`=`,`+=`,`-=`,`??=`,`&&=`,`||=`,`/=`,`*=`,`**=`,`%=`,`>>=`,`<<=`,`>>>=`,`|=`,`^=`,`&=`]),ID=NE([`??=`,`&&=`,`||=`]),LD=(function(e,t){for(var n=0;n<e.length;++n)for(let r of e[n])t[r]=n+1;return t})([[`||`],[`??`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]],{}),RD=NE([`atom`,`num`,`big_int`,`string`,`regexp`,`name`]);function zD(e,t){let n=new WeakMap;t=SE(t,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var r={input:typeof e==`string`?MD(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};r.token=o();function i(e,t){return AD(r.token,e,t)}function a(){return r.peeked||=r.input()}function o(){return r.prev=r.token,r.peeked||a(),r.token=r.peeked,r.peeked=null,r.in_directives=r.in_directives&&(r.token.type==`string`||i(`punc`,`;`)),r.token}function s(){return r.prev}function c(e,t,n,i){var a=r.input.context();kD(e,a.filename,t??a.tokline,n??a.tokcol,i??a.tokpos)}function l(e,t){c(t,e.line,e.col)}function u(e){e??=r.token,l(e,`Unexpected token: `+e.type+` (`+e.value+`)`)}function d(e,t){if(i(e,t))return o();l(r.token,`Unexpected token `+r.token.type+` «`+r.token.value+`», expected `+e+` «`+t+`»`)}function f(e){return d(`punc`,e)}function p(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function m(){return!t.strict&&(i(`eof`)||i(`punc`,`}`)||p(r.token))}function h(){return r.in_generator===r.in_function}function g(){return r.in_async===r.in_function}function _(){return r.in_async===r.in_function||r.in_function===0&&r.input.has_directive(`use strict`)}function v(e){i(`punc`,`;`)?o():!e&&!m()&&u()}function y(){f(`(`);var e=Ge(!0);return f(`)`),e}function b(e){return function(...t){let n=r.token,i=e(...t);return i.start=n,i.end=s(),i}}function x(){(i(`operator`,`/`)||i(`operator`,`/=`))&&(r.peeked=null,r.token=r.input(r.token.value.substr(1)))}var S=b(function e(n,l,f){switch(x(),r.token.type){case`string`:if(r.in_directives){var h=a();!qE.includes(`\\`)&&(AD(h,`punc`,`;`)||AD(h,`punc`,`}`)||p(h)||AD(h,`eof`))?r.input.add_directive(r.token.value):r.in_directives=!1}var g=r.in_directives,b=w();return g&&b.body instanceof eA?new GD(b.body):b;case`template_head`:case`num`:case`big_int`:case`regexp`:case`operator`:case`atom`:return w();case`name`:if(r.token.value==`async`&&AD(a(),`keyword`,`function`))return o(),o(),l&&c(`functions are not allowed as the body of a loop`),j(hO,!1,!0,n);if(r.token.value==`import`&&!AD(a(),`punc`,`(`)&&!AD(a(),`punc`,`.`)){o();var S=we();return v(),S}if(r.token.value==`using`&&AD(a(),`name`)&&!p(a())){o();var S=pe();return v(),S}if(r.token.value==`await`&&_()&&AD(a(),`name`,`using`)&&!p(a())){var D=r.input.peek_next_token_start_or_newline();if(r.input.ch_starts_binding_identifier(D.char,D.pos)){o();var S=me();return v(),S}}return AD(a(),`punc`,`:`)?C():w();case`privatename`:return r.in_class||c(`Private field must be used in an enclosing class`),w();case`punc`:switch(r.token.value){case`{`:return new XD({start:r.token,body:se(),end:s()});case`[`:case`(`:return w();case`;`:return r.in_directives=!1,o(),new ZD;default:u()}case`keyword`:switch(r.token.value){case`break`:return o(),T(TO);case`continue`:return o(),T(EO);case`debugger`:return o(),v(),new WD;case`do`:o();var O=Ke(e);d(`keyword`,`while`);var k=y();return v(!0),new nO({body:O,condition:k});case`while`:return o(),new rO({condition:y(),body:Ke(function(){return e(!1,!0)})});case`for`:return o(),E();case`class`:return o(),l&&c(`classes are not allowed as the body of a loop`),f&&c(`classes are not allowed as the body of an if`),xe(Tk,n);case`function`:return o(),l&&c(`functions are not allowed as the body of a loop`),j(hO,!1,!1,n);case`if`:return o(),oe();case`return`:r.in_function==0&&!t.bare_returns&&c(`'return' outside of function`),o();var A=null;return i(`punc`,`;`)?o():m()||(A=Ge(!0),v()),new SO({value:A});case`switch`:return o(),new AO({expression:y(),body:Ke(P)});case`throw`:o(),p(r.token)&&c(`Illegal newline after 'throw'`);var A=Ge(!0);return v(),new CO({value:A});case`try`:return o(),ce();case`var`:o();var S=ue();return v(),S;case`let`:o();var S=de();return v(),S;case`const`:o();var S=fe();return v(),S;case`with`:return r.input.has_directive(`use strict`)&&c(`Strict mode may not include a with statement`),o(),new sO({expression:y(),body:e()});case`export`:if(!AD(a(),`punc`,`(`)){o();var S=Oe();return i(`punc`,`;`)&&v(),S}}}u()});function C(){var e=Ne(Kk);e.name===`await`&&g()&&l(r.prev,`await cannot be used as label inside async function`),r.labels.some(t=>t.name===e.name)&&c(`Label `+e.name+` defined twice`),f(`:`),r.labels.push(e);var t=S();return r.labels.pop(),t instanceof eO||e.references.forEach(function(t){t instanceof EO&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))}),new $D({body:t,label:e})}function w(e){return new KD({body:(e=Ge(!0),v(),e)})}function T(e){var t=null,n;m()||(t=Ne(Yk,!0)),t==null?r.in_loop==0&&c(e.TYPE+` not inside a loop or switch`):(n=r.labels.find(e=>e.name===t.name),n||c(`Undefined label `+t.name),t.thedef=n),v();var i=new e({label:t});return n&&n.references.push(i),i}function E(){var e="`for await` invalid in this context",t=r.token;t.type==`name`&&t.value==`await`?(_()||l(t,e),o()):t=!1,f(`(`);var n=null;if(i(`punc`,`;`))t&&l(t,e);else{n=i(`keyword`,`var`)?(o(),ue(!0)):i(`keyword`,`let`)?(o(),de(!0)):i(`keyword`,`const`)?(o(),fe(!0)):i(`name`,`using`)&&AD(a(),`name`)&&(a().value!=`of`||r.input.peek_next_token_start_or_newline().char==`=`)?(o(),pe(!0)):i(`name`,`await`)&&_()&&AD(a(),`name`,`using`)?(o(),me(!0)):Ge(!0,!0);var s=i(`operator`,`in`),c=i(`name`,`of`);if(t&&!c&&l(t,e),s||c)return n instanceof RO?(n.definitions.length>1&&l(n.start,`Only one variable declaration allowed in for..in loop`),s&&n instanceof UO&&l(n.start,`Invalid using declaration in for..in loop`)):He(n)||(n=V(n))instanceof gO||l(n.start,`Invalid left-hand side in for..in loop`),o(),s?k(n):O(n,!!t)}return D(n)}function D(e){f(`;`);var t=i(`punc`,`;`)?null:Ge(!0);f(`;`);var n=i(`punc`,`)`)?null:Ge(!0);return f(`)`),new iO({init:e,condition:t,step:n,body:Ke(function(){return S(!1,!0)})})}function O(e,t){var n=e instanceof RO?e.definitions[0].name:null,r=Ge(!0);return f(`)`),new oO({await:t,init:e,name:n,object:r,body:Ke(function(){return S(!1,!0)})})}function k(e){var t=Ge(!0);return f(`)`),new aO({init:e,object:t,body:Ke(function(){return S(!1,!0)})})}var A=function(e,t,n){p(r.token)&&c(`Unexpected newline before arrow (=>)`),d(`arrow`,`=>`);var a=ie(i(`punc`,`{`),!1,n);return new mO({start:e,end:a.end,async:n,argnames:t,body:a})},j=function(e,t,n,r){var a=e===hO;i(`operator`,`*`)&&(t=!0,o());var c=i(`name`)?Ne(a?Lk:Bk):null;a&&!c&&(r?e=pO:u()),c&&e!==fO&&!(c instanceof Ak)&&u(s());var l=[],d=ie(!0,t,n,c,l);return new e({start:l.start,end:d.end,is_generator:t,async:n,name:c,argnames:l,body:d})};class ee{constructor(e,t,n=!1){this.is_parameter=e,this.duplicates_ok=n,this.parameters=new Set,this.duplicate=null,this.default_assignment=!1,this.spread=!1,this.strict_mode=!!t}add_parameter(e){if(this.parameters.has(e.value))this.duplicate===null&&(this.duplicate=e),this.check_strict();else if(this.parameters.add(e.value),this.is_parameter)switch(e.value){case`arguments`:case`eval`:case`yield`:this.strict_mode&&l(e,`Unexpected `+e.value+` identifier as parameter inside strict mode`);break;default:ZE.has(e.value)&&u()}}mark_default_assignment(e){this.default_assignment===!1&&(this.default_assignment=e)}mark_spread(e){this.spread===!1&&(this.spread=e)}mark_strict_mode(){this.strict_mode=!0}is_strict(){return this.default_assignment!==!1||this.spread!==!1||this.strict_mode}check_strict(){this.is_strict()&&this.duplicate!==null&&!this.duplicates_ok&&l(this.duplicate,`Parameter `+this.duplicate.value+` was used already`)}}function te(e){var t=new ee(!0,r.input.has_directive(`use strict`));for(f(`(`);!i(`punc`,`)`);){var n=ne(t);if(e.push(n),i(`punc`,`)`)||f(`,`),n instanceof uO)break}o()}function ne(e,t){var n,a=!1;return e===void 0&&(e=new ee(!0,r.input.has_directive(`use strict`))),i(`expand`,`...`)&&(a=r.token,e.mark_spread(r.token),o()),n=re(e,t),i(`operator`,`=`)&&a===!1&&(e.mark_default_assignment(r.token),o(),n=new uk({start:n.start,left:n,operator:`=`,right:Ge(!1),end:r.token})),a!==!1&&(i(`punc`,`)`)||u(),n=new uO({start:a,expression:n,end:a})),e.check_strict(),n}function re(e,t){var n=[],l=!0,d=!1,p,m=r.token;if(e===void 0&&(e=new ee(!1,r.input.has_directive(`use strict`),t===jk)),t=t===void 0?Ik:t,i(`punc`,`[`)){for(o();!i(`punc`,`]`);){if(l?l=!1:f(`,`),i(`expand`,`...`)&&(d=!0,p=r.token,e.mark_spread(r.token),o()),i(`punc`))switch(r.token.value){case`,`:n.push(new cA({start:r.token,end:r.token}));continue;case`]`:break;case`[`:case`{`:n.push(re(e,t));break;default:u()}else i(`name`)?(e.add_parameter(r.token),n.push(Ne(t))):c(`Invalid function parameter`);i(`operator`,`=`)&&d===!1&&(e.mark_default_assignment(r.token),o(),n[n.length-1]=new uk({start:n[n.length-1].start,left:n[n.length-1],operator:`=`,right:Ge(!1),end:r.token})),d&&(i(`punc`,`]`)||c(`Rest element must be last element`),n[n.length-1]=new uO({start:p,expression:n[n.length-1],end:p}))}return f(`]`),e.check_strict(),new gO({start:m,names:n,is_array:!0,end:s()})}else if(i(`punc`,`{`)){for(o();!i(`punc`,`}`);){if(l?l=!1:f(`,`),i(`expand`,`...`)&&(d=!0,p=r.token,e.mark_spread(r.token),o()),i(`name`)&&(AD(a(),`punc`)||AD(a(),`operator`))&&[`,`,`}`,`=`].includes(a().value)){e.add_parameter(r.token);var h=s(),g=Ne(t);d?n.push(new uO({start:p,expression:g,end:g.end})):n.push(new mk({start:h,key:g.name,value:g,end:g.end}))}else if(i(`punc`,`}`))continue;else{var _=r.token,v=ke();v===null?u(s()):s().type===`name`&&!i(`punc`,`:`)?n.push(new mk({start:s(),key:v,value:new t({start:s(),name:v,end:s()}),end:s()})):(f(`:`),n.push(new mk({start:_,quote:_.quote,key:v,value:re(e,t),end:s()})))}d?i(`punc`,`}`)||c(`Rest element must be last element`):i(`operator`,`=`)&&(e.mark_default_assignment(r.token),o(),n[n.length-1].value=new uk({start:n[n.length-1].value.start,left:n[n.length-1].value,operator:`=`,right:Ge(!1),end:r.token}))}return f(`}`),e.check_strict(),new gO({start:m,names:n,is_array:!1,end:s()})}else if(i(`name`))return e.add_parameter(r.token),Ne(t);else c(`Invalid function parameter`)}function M(e,t){var n,a,c,l=[];for(f(`(`);!i(`punc`,`)`);)n&&u(n),i(`expand`,`...`)?(n=r.token,t&&(a=r.token),o(),l.push(new uO({start:s(),expression:Ge(),end:r.token}))):l.push(Ge()),i(`punc`,`)`)||(f(`,`),i(`punc`,`)`)&&(c=s(),t&&(a=c)));return f(`)`),e&&i(`arrow`,`=>`)?n&&c&&u(c):a&&u(a),l}function ie(e,t,n,i,a){var o=r.in_loop,s=r.labels,c=r.in_generator,l=r.in_async;if(++r.in_function,t&&(r.in_generator=r.in_function),n&&(r.in_async=r.in_function),a&&te(a),e&&(r.in_directives=!0),r.in_loop=0,r.labels=[],e){r.input.push_directives_stack();var u=se();i&&Me(i),a&&a.forEach(Me),r.input.pop_directives_stack()}else var u=[new SO({start:r.token,value:Ge(!1),end:r.token})];return--r.in_function,r.in_loop=o,r.labels=s,r.in_generator=c,r.in_async=l,u}function ae(){return _()||c(`Unexpected await expression outside async function`,r.prev.line,r.prev.col,r.prev.pos),new DO({start:s(),end:r.token,expression:Le(!0)})}function N(){var e=r.token,t=!1,n=!0;return m()||i(`punc`)&&dD.has(r.token.value)||i(`template_cont`)?n=!1:i(`operator`,`*`)&&(t=!0,o()),new OO({start:e,is_star:t,expression:n?Ge():null,end:s()})}function oe(){var e=y(),t=S(!1,!1,!0),n=null;return i(`keyword`,`else`)&&(o(),n=S(!1,!1,!0)),new kO({condition:e,body:t,alternative:n})}function se(){f(`{`);for(var e=[];!i(`punc`,`}`);)i(`eof`)&&u(),e.push(S());return o(),e}function P(){f(`{`);for(var e=[],t=null,n=null,a;!i(`punc`,`}`);)i(`eof`)&&u(),i(`keyword`,`case`)?(n&&(n.end=s()),t=[],n=new NO({start:(a=r.token,o(),a),expression:Ge(!0),body:t}),e.push(n),f(`:`)):i(`keyword`,`default`)?(n&&(n.end=s()),t=[],n=new MO({start:(a=r.token,o(),f(`:`),a),body:t}),e.push(n)):(t||u(),t.push(S()));return n&&(n.end=s()),o(),e}function ce(){var e,t=null,n=null;if(e=new FO({start:r.token,body:se(),end:s()}),i(`keyword`,`catch`)){var a=r.token;if(o(),i(`punc`,`{`))var l=null;else{f(`(`);var l=ne(void 0,Uk);f(`)`)}t=new IO({start:a,argname:l,body:se(),end:s()})}if(i(`keyword`,`finally`)){var a=r.token;o(),n=new LO({start:a,body:se(),end:s()})}return!t&&!n&&c(`Missing catch/finally blocks`),new PO({body:e,bcatch:t,bfinally:n})}function le(e,t){for(var n=[],a;;){var l=t===`var`?jk:t===`const`?Nk:t===`let`?Fk:t===`using`||t===`await using`?Pk:null,u=t===`using`||t===`await using`?KO:GO;if(i(`punc`,`{`)||i(`punc`,`[`)?a=new u({start:r.token,name:re(void 0,l),value:i(`operator`,`=`)?(d(`operator`,`=`),Ge(!1,e)):null,end:s()}):(a=new u({start:r.token,name:Ne(l),value:i(`operator`,`=`)?(o(),Ge(!1,e)):!e&&(t===`const`||t===`using`||t===`await using`)?c(`Missing initializer in `+t+` declaration`):null,end:s()}),a.name.name==`import`&&c(`Unexpected token: import`)),n.push(a),!i(`punc`,`,`))break;o()}return n}var ue=function(e){return new BO({start:s(),definitions:le(e,`var`),end:s()})},de=function(e){return new VO({start:s(),definitions:le(e,`let`),end:s()})},fe=function(e){return new HO({start:s(),definitions:le(e,`const`),end:s()})},pe=function(e){return new UO({start:s(),await:!1,definitions:le(e,`using`),end:s()})},me=function(e){return new UO({start:s(),await:!0,definitions:(o(),le(e,`await using`)),end:s()})},he=function(e){var t=r.token;if(d(`operator`,`new`),i(`punc`,`.`))return o(),d(`name`,`target`),Fe(new kk({start:t,end:s()}),e);var n=I(!1),a;i(`punc`,`(`)?(o(),a=ve(`)`,!0)):a=[];var c=new QO({start:t,expression:n,args:a,end:s()});return B(c),Fe(c,e)};function F(){var e=r.token,t;switch(e.type){case`name`:t=je($);break;case`num`:t=new tA({start:e,end:e,value:e.value,raw:qE});break;case`big_int`:t=new nA({start:e,end:e,value:e.value,raw:qE});break;case`string`:t=new eA({start:e,end:e,value:e.value,quote:e.quote}),B(t);break;case`regexp`:let[n,r,i]=e.value.match(/^\/(.*)\/(\w*)$/);t=new rA({start:e,end:e,value:{source:r,flags:i}});break;case`atom`:switch(e.value){case`false`:t=new dA({start:e,end:e});break;case`true`:t=new fA({start:e,end:e});break;case`null`:t=new aA({start:e,end:e});break}break}return o(),t}function ge(e,t){var n=function(e,t){return t?new uk({start:e.start,left:e,operator:`=`,right:t,end:t.end}):e};if(e instanceof fk)return n(new gO({start:e.start,end:e.end,is_array:!1,names:e.properties.map(e=>ge(e))}),t);if(e instanceof mk)return e.value=ge(e.value),n(e,t);if(e instanceof cA)return e;if(e instanceof gO)return e.names=e.names.map(e=>ge(e)),n(e,t);if(e instanceof $)return n(new Ik({name:e.name,start:e.start,end:e.end}),t);if(e instanceof uO)return e.expression=ge(e.expression),n(e,t);if(e instanceof dk)return n(new gO({start:e.start,end:e.end,is_array:!0,names:e.elements.map(e=>ge(e))}),t);if(e instanceof lk)return n(ge(e.left,e.right),t);if(e instanceof uk)return e.left=ge(e.left),e;c(`Invalid function parameter`,e.start.line,e.start.col)}var I=function(e,t){if(i(`operator`,`new`))return he(e);if(i(`name`,`import`)&&AD(a(),`punc`,`.`))return Te(e);var c=r.token,l,d=i(`name`,`async`)&&(l=a()).value!=`[`&&l.type!=`arrow`&&F();if(i(`punc`)){switch(r.token.value){case`(`:if(d&&!e)break;var f=M(t,!d);if(t&&i(`arrow`,`=>`))return A(c,f.map(e=>ge(e)),!!d);var p=d?new ZO({expression:d,args:f}):We(c,f);if(p.start){let e=c.comments_before.length;if(n.set(c,e),p.start.comments_before.unshift(...c.comments_before),c.comments_before=p.start.comments_before,e==0&&c.comments_before.length>0){var m=c.comments_before[0];m.nlb||(m.nlb=c.nlb,c.nlb=!1)}c.comments_after=p.start.comments_after}p.start=c;var h=s();return p.end&&(h.comments_before=p.end.comments_before,p.end.comments_after.push(...h.comments_after),h.comments_after=p.end.comments_after),p.end=h,p instanceof ZO&&B(p),Fe(p,e);case`[`:return Fe(ye(),e);case`{`:return Fe(L(),e)}d||u()}if(t&&i(`name`)&&AD(a(),`arrow`)){var g=new Ik({name:r.token.value,start:c,end:c});return o(),A(c,[g],!!d)}if(i(`keyword`,`function`)){o();var _=j(pO,!1,!!d);return _.start=c,_.end=s(),Fe(_,e)}if(d)return Fe(d,e);if(i(`keyword`,`class`)){o();var v=xe(Dk);return v.start=c,v.end=s(),Fe(v,e)}if(i(`template_head`))return Fe(_e(),e);if(RD.has(r.token.type))return Fe(F(),e);u()};function _e(){var e=[],t=r.token;for(e.push(new yO({start:r.token,raw:JE.get(r.token),value:r.token.value,end:r.token}));!r.token.template_end;)o(),x(),e.push(Ge(!0)),e.push(new yO({start:r.token,raw:JE.get(r.token),value:r.token.value,end:r.token}));return o(),new vO({start:t,segments:e,end:r.token})}function ve(e,t,n){for(var a=!0,c=[];!i(`punc`,e)&&(a?a=!1:f(`,`),!(t&&i(`punc`,e)));)i(`punc`,`,`)&&n?c.push(new cA({start:r.token,end:r.token})):i(`expand`,`...`)?(o(),c.push(new uO({start:s(),expression:Ge(),end:r.token}))):c.push(Ge(!1));return o(),c}var ye=b(function(){return f(`[`),new dk({elements:ve(`]`,!t.strict,!0)})}),be=b((e,t)=>j(fO,e,t)),L=b(function(){var e=r.token,n=!0,a=[];for(f(`{`);!i(`punc`,`}`)&&(n?n=!1:f(`,`),!(!t.strict&&i(`punc`,`}`)));){if(e=r.token,e.type==`expand`){o(),a.push(new uO({start:e,expression:Ge(!1),end:s()}));continue}i(`privatename`)&&c(`private fields are not allowed in an object`);var l=ke(),d;if(i(`punc`,`:`))l===null?u(s()):(o(),d=Ge(!1));else{var p=R(l,e);if(p){a.push(p);continue}d=new $({start:s(),name:l,end:s()})}i(`operator`,`=`)&&(o(),d=new lk({start:e,left:d,operator:`=`,right:Ge(!1),logical:!1,end:s()}));let t=new mk({start:e,quote:e.quote,key:l,value:d,end:s()});a.push(B(t))}return o(),new fk({properties:a})});function xe(e,t){var n,a,c,l,d=[];r.input.push_directives_stack(),r.input.add_directive(`use strict`),r.token.type==`name`&&r.token.value!=`extends`&&(c=Ne(e===Tk?Vk:Hk)),e===Tk&&!c&&(t?e=Dk:u()),r.token.value==`extends`&&(o(),l=Ge(!0)),f(`{`);let p=r.in_class;for(r.in_class=!0;i(`punc`,`;`);)o();for(;!i(`punc`,`}`);)for(n=r.token,a=R(ke(),n,!0),a||u(),d.push(a);i(`punc`,`;`);)o();return r.in_class=p,r.input.pop_directives_stack(),o(),new e({start:n,name:c,extends:l,properties:d,end:s()})}function R(e,t,n){let r=(e,n)=>typeof e==`string`?new n({start:t,name:e,end:s()}):(e===null&&u(),e);var a=s().type===`privatename`;let c=()=>!i(`punc`,`(`)&&!i(`punc`,`,`)&&!i(`punc`,`}`)&&!i(`punc`,`;`)&&!i(`operator`,`=`)&&!a;var l=!1,d=!1,f=!1,p=null;if(n&&e===`static`&&c()){let t=Se();if(t!=null)return t;d=!0,e=ke()}e===`async`&&c()&&(l=!0,e=ke()),s().type===`operator`&&s().value===`*`&&(f=!0,e=ke()),(e===`get`||e===`set`)&&c()&&(p=e,e=ke()),!a&&s().type===`privatename`&&(a=!0);let m=s();if(p!=null){if(a)return B(new(p===`get`?gk:hk)({start:t,static:d,key:r(e,Rk),value:be(),end:s()}));{let n=p===`get`?vk:_k;return e=r(e,Rk),B(new n({start:t,static:d,key:e,quote:e instanceof Rk?m.quote:void 0,value:be(),end:s()}))}}if(i(`punc`,`(`))return e=r(e,Rk),B(new(a?bk:yk)({start:t,static:d,key:e,quote:e instanceof Rk?m.quote:void 0,value:be(f,l),end:s()}));if(n){let n=a?Xk:zk,c=a?Ck:Sk,l=r(e,n),u=l instanceof zk?m.quote:void 0;if(i(`operator`,`=`))return o(),B(new c({start:t,static:d,quote:u,key:l,value:Ge(!1),end:s()}));if(i(`name`)||i(`privatename`)||i(`punc`,`[`)||i(`operator`,`*`)||i(`punc`,`;`)||i(`punc`,`}`)||i(`string`)||i(`num`)||i(`big_int`))return B(new c({start:t,static:d,quote:u,key:l,end:s()}))}}function Se(){if(!i(`punc`,`{`))return null;let e=r.token,t=[];for(o();!i(`punc`,`}`);)t.push(S());return o(),new Ek({start:e,body:t,end:s()})}function Ce(){return(i(`keyword`,`with`)||i(`name`,`assert`))&&!p(r.token)?(o(),L()):null}function we(){var e=s(),t,n;i(`name`)&&(t=Ne(Wk)),i(`punc`,`,`)&&o(),n=De(!0),(n||t)&&d(`name`,`from`);var a=r.token;a.type!==`string`&&u(),o();let c=Ce();return new JO({start:e,imported_name:t,imported_names:n,module_name:new eA({start:a,value:a.value,quote:a.quote,end:a}),attributes:c,end:r.token})}function Te(e){var t=r.token;return d(`name`,`import`),d(`punc`,`.`),d(`name`,`meta`),Fe(new YO({start:t,end:s()}),e)}function Ee(e){function t(e,t){return new e({name:ke(),quote:t||void 0,start:s(),end:s()})}var n=e?Gk:Jk,a=e?Wk:qk,c=r.token,l,u;return e?l=t(n,c.quote):u=t(a,c.quote),i(`name`,`as`)?(o(),e?u=t(a):l=t(n,r.token.quote)):e?u=new a(l):l=new n(u),new qO({start:c,foreign_name:l,name:u,end:s()})}function z(e,t){var n=e?Gk:Jk,i=e?Wk:qk,a=r.token,o,c,l=s();return e?o=t:c=t,o||=new i({start:a,name:`*`,end:l}),c||=new n({start:a,name:`*`,end:l}),new qO({start:a,foreign_name:c,name:o,end:l})}function De(e){var t;if(i(`punc`,`{`)){for(o(),t=[];!i(`punc`,`}`);)t.push(Ee(e)),i(`punc`,`,`)&&o();o()}else if(i(`operator`,`*`)){var n;o(),i(`name`,`as`)&&(o(),n=e?Ne(Wk):Pe(Jk)),t=[z(e,n)]}return t}function Oe(){var e=r.token,t,n;if(i(`keyword`,`default`))t=!0,o();else if(n=De(!1))if(i(`name`,`from`)){o();var c=r.token;c.type!==`string`&&u(),o();let i=Ce();return new XO({start:e,is_default:t,exported_names:n,module_name:new eA({start:c,value:c.value,quote:c.quote,end:c}),end:s(),attributes:i})}else return new XO({start:e,is_default:t,exported_names:n,end:s()});var l,d,f;return i(`punc`,`{`)||t&&(i(`keyword`,`class`)||i(`keyword`,`function`))&&AD(a(),`punc`)?(d=Ge(!1),v()):(l=S(t))instanceof zO&&t?u(l.start):l instanceof zO||l instanceof hO||l instanceof Tk?f=l:l instanceof Dk||l instanceof pO?d=l:l instanceof KD?d=l.body:u(l.start),new XO({start:e,is_default:t,exported_value:d,exported_definition:f,end:s(),attributes:null})}function ke(){var e=r.token;switch(e.type){case`punc`:if(e.value===`[`){o();var t=Ge(!1);return f(`]`),t}else u(e);case`operator`:if(e.value===`*`)return o(),null;[`delete`,`in`,`instanceof`,`new`,`typeof`,`void`].includes(e.value)||u(e);case`name`:case`privatename`:case`string`:case`keyword`:case`atom`:return o(),e.value;case`num`:case`big_int`:return o(),``+e.value;default:u(e)}}function Ae(){var e=r.token;return e.type!=`name`&&e.type!=`privatename`&&u(),o(),e.value}function je(e){var t=r.token.value;return new(t==`this`?Zk:t==`super`?Qk:e)({name:String(t),start:r.token,end:r.token})}function Me(e){var t=e.name;h()&&t==`yield`&&l(e.start,`Yield cannot be used as identifier inside generators`),r.input.has_directive(`use strict`)&&(t==`yield`&&l(e.start,`Unexpected yield identifier inside strict mode`),e instanceof Ak&&(t==`arguments`||t==`eval`)&&l(e.start,`Unexpected `+t+` in strict mode`))}function Ne(e,t){if(!i(`name`))return t||c(`Name expected`),null;var n=je(e);return Me(n),o(),n}function Pe(e){if(!i(`name`)){i(`string`)||c(`Name or string expected`);var t=r.token,n=new e({start:t,end:t,name:t.value,quote:t.quote});return o(),n}var a=je(e);return Me(a),o(),a}function B(e,t=e.start){for(var r=t.comments_before,i=n.get(t)??r.length;--i>=0;){var a=r[i];if(/[@#]__/.test(a.value)){if(/[@#]__PURE__/.test(a.value)){GE(e,vA);break}if(/[@#]__INLINE__/.test(a.value)){GE(e,yA);break}if(/[@#]__NOINLINE__/.test(a.value)){GE(e,bA);break}if(/[@#]__KEY__/.test(a.value)){GE(e,xA);break}if(/[@#]__MANGLE_PROP__/.test(a.value)){GE(e,SA);break}}}return e}var Fe=function(e,t,n){var a=e.start;if(i(`punc`,`.`))return o(),i(`privatename`)&&!r.in_class&&c(`Private field must be used in an enclosing class`),B(Fe(new(i(`privatename`)?nk:tk)({start:a,expression:e,optional:!1,property:Ae(),end:s()}),t,n));if(i(`punc`,`[`)){o();var l=Ge(!0);return f(`]`),B(Fe(new rk({start:a,expression:e,optional:!1,property:l,end:s()}),t,n))}if(t&&i(`punc`,`(`)){o();var d=new ZO({start:a,expression:e,optional:!1,args:Ie(),end:s()});return B(d),Fe(d,!0,n)}if(i(`punc`,`?.`)){o();let n;if(t&&i(`punc`,`(`)){o();let t=new ZO({start:a,optional:!0,expression:e,args:Ie(),end:s()});B(t),n=Fe(t,!0,!0)}else if(i(`name`)||i(`privatename`))i(`privatename`)&&!r.in_class&&c(`Private field must be used in an enclosing class`),n=B(Fe(new(i(`privatename`)?nk:tk)({start:a,expression:e,optional:!0,property:Ae(),end:s()}),t,!0));else if(i(`punc`,`[`)){o();let r=Ge(!0);f(`]`),n=B(Fe(new rk({start:a,expression:e,optional:!0,property:r,end:s()}),t,!0))}return n||u(),n instanceof ik?n:new ik({start:a,expression:n,end:s()})}return i(`template_head`)?(n&&u(),Fe(new _O({start:a,prefix:e,template_string:_e(),end:s()}),t)):e};function Ie(){for(var e=[];!i(`punc`,`)`);)i(`expand`,`...`)?(o(),e.push(new uO({start:s(),expression:Ge(!1),end:s()}))):e.push(Ge(!1)),i(`punc`,`)`)||f(`,`);return o(),e}var Le=function(e,t){var n=r.token;if(n.type==`name`&&n.value==`await`&&_())return o(),ae();if(i(`operator`)&&ND.has(n.value)){o(),x();var a=Re(ok,n,Le(e));return a.start=n,a.end=s(),a}for(var c=I(e,t);i(`operator`)&&PD.has(r.token.value)&&!p(r.token);)c instanceof mO&&u(),c=Re(sk,r.token,c),c.start=n,c.end=r.token,o();return c};function Re(e,t,n){var i=t.value;switch(i){case`++`:case`--`:He(n)||c(`Invalid use of `+i+` operator`,t.line,t.col,t.pos);break;case`delete`:n instanceof $&&r.input.has_directive(`use strict`)&&c(`Calling delete on expression not allowed in strict mode`,n.start.line,n.start.col,n.start.pos);break}return new e({operator:i,expression:n})}var ze=function(e,t,n){var a=i(`operator`)?r.token.value:null;a==`in`&&n&&(a=null),a==`**`&&e instanceof ok&&!AD(e.start,`punc`,`(`)&&e.operator!==`--`&&e.operator!==`++`&&u(e.start);var s=a==null?null:LD[a];if(s!=null&&(s>t||a===`**`&&t===s)){o();var c=Be(n,s,!0);return ze(new Q({start:e.start,left:e,operator:a,right:c,end:c.end}),t,n)}return e};function Be(e,t,n,a){if(!e&&t<LD.in&&i(`privatename`)){r.in_class||c(`Private field must be used in an enclosing class`);let t=r.token,n=new Xk({start:t,name:t.value,end:t});return o(),d(`operator`,`in`),ze(new wk({start:t,key:n,value:Be(e,LD.in,!0),end:s()}),0,e)}else return ze(Le(n,a),t,e)}var Ve=function(e){var t=r.token,n=Be(e,0,!0,!0);if(i(`operator`,`?`)){o();var a=Ge(!1);return f(`:`),new ck({start:t,condition:n,consequent:a,alternative:Ge(!1,e),end:s()})}return n};function He(e){return e instanceof ek||e instanceof $}function V(e){if(e instanceof fk)e=new gO({start:e.start,names:e.properties.map(V),is_array:!1,end:e.end});else if(e instanceof dk){for(var t=[],n=0;n<e.elements.length;n++)e.elements[n]instanceof uO&&(n+1!==e.elements.length&&l(e.elements[n].start,`Spread must the be last element in destructuring array`),e.elements[n].expression=V(e.elements[n].expression)),t.push(V(e.elements[n]));e=new gO({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof pk?e.value=V(e.value):e instanceof lk&&(e=new uk({start:e.start,left:e.left,operator:`=`,right:e.right,end:e.end}));return e}var Ue=function(e){x();var t=r.token;if(t.type==`name`&&t.value==`yield`){if(h())return o(),N();r.input.has_directive(`use strict`)&&l(r.token,`Unexpected yield identifier inside strict mode`)}var n=Ve(e),a=r.token.value;if(i(`operator`)&&FD.has(a)){if(He(n)||(n=V(n))instanceof gO)return o(),new lk({start:t,left:n,operator:a,right:Ue(e),logical:ID.has(a),end:s()});c(`Invalid assignment`)}return n},We=function(e,t){if(t.length===1)return t[0];if(t.length>1)return new $O({start:e,expressions:t,end:a()});c(`Invalid parenthesized expression`)},Ge=function(e,t){for(var n=r.token,a=[];a.push(Ue(t)),!(!e||!i(`punc`,`,`));)o(),e=!0;return We(n,a)};function Ke(e){++r.in_loop;var t=e();return--r.in_loop,t}return t.expression?Ge(!0):(function(){var e=r.token,n=[];for(r.input.push_directives_stack(),t.module&&r.input.add_directive(`use strict`);!i(`eof`);)n.push(S());r.input.pop_directives_stack();var a=s(),o=t.toplevel;return o?(o.body=o.body.concat(n),o.end=a):o=new lO({start:e,body:n,end:a}),JE=new Map,o})()}function X(e,t,n,r,i=Z){t=t?t.split(/\s+/):[];var a=t;i&&i.PROPS&&(t=t.concat(i.PROPS));let o=i&&Object.create(i.prototype);if(o&&(n.prototype=o,n.BASE=i),i&&i.SUBCLASSES.push(n),n.prototype.CTOR=n,n.prototype.constructor=n,n.PROPS=t||null,n.SELF_PROPS=a,n.SUBCLASSES=[],e&&(n.prototype.TYPE=n.TYPE=e),r)for(let e in r)LE(r,e)&&(e[0]===`$`?n[e.substr(1)]=r[e]:n.prototype[e]=r[e]);return n.DEFMETHOD=function(e,t){this.prototype[e]=t},n}const BD=(e,t)=>!!(e.flags&t),VD=(e,t,n)=>{n?e.flags|=t:e.flags&=~t};var HD=class{constructor(e,t,n,r,i,a,o,s,c){this.flags=a?1:0,this.type=e,this.value=t,this.line=n,this.col=r,this.pos=i,this.comments_before=o,this.comments_after=s,this.file=c,Object.seal(this)}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){let n=e=>t.stylize(e,`special`),r=typeof this.value==`string`&&this.value.includes("`")?`'`:"`",i=`${r}${this.value}${r}`;return`${n(`[AST_Token`)} ${i} at ${this.line}:${this.col}${n(`]`)}`}get nlb(){return BD(this,1)}set nlb(e){VD(this,1,e)}get quote(){return BD(this,4)?BD(this,2)?`'`:`"`:``}set quote(e){VD(this,2,e===`'`),VD(this,4,!!e)}get template_end(){return BD(this,8)}set template_end(e){VD(this,8,e)}},Z=X(`Node`,`start end`,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{_clone:function(e){if(e){var t=this.clone();return t.transform(new _A(function(e){if(e!==t)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:`Base class of all AST nodes`,$propdoc:{start:`[AST_Token] The first token of this node`,end:`[AST_Token] The last token of this node`},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null),UD=X(`Statement`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class of all statements`}),WD=X(`Debugger`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Represents a debugger statement`},UD),GD=X(`Directive`,`value quote`,function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Represents a directive, like "use strict";`,$propdoc:{value:`[string] The value of this directive as a plain string (it's not an AST_String!)`,quote:`[string] the original quote character`}},UD),KD=X(`SimpleStatement`,`body`,function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A statement consisting of an expression, i.e. a = 1 + 2`,$propdoc:{body:`[AST_Node] an expression node (should not be instanceof AST_Statement)`},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})},_children_backwards(e){e(this.body)}},UD);function qD(e,t){let n=e.body;for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}function JD(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone()),t}var YD=X(`Block`,`body block_scope`,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A body of statements (usually braced)`,$propdoc:{body:`[AST_Statement*] an array of statements`,block_scope:`[AST_Scope] the block scope`},_walk:function(e){return e._visit(this,function(){qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:JD},UD),XD=X(`BlockStatement`,null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A block statement`},YD),ZD=X(`EmptyStatement`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`The empty statement (empty block or simply a semicolon)`},UD),QD=X(`StatementWithBody`,`body`,function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:`[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement`}},UD),$D=X(`LabeledStatement`,`label`,function(e){e&&(this.label=e.label,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Statement with a label`,$propdoc:{label:`[AST_Label] a label definition`},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},_children_backwards(e){e(this.body),e(this.label)},clone:function(e){var t=this._clone(e);if(e){var n=t.label,r=this.label;t.walk(new gA(function(e){e instanceof wO&&e.label&&e.label.thedef===r&&(e.label.thedef=n,n.references.push(e))}))}return t}},QD),eO=X(`IterationStatement`,`block_scope`,function(e){e&&(this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Internal class. All loops inherit from it.`,$propdoc:{block_scope:`[AST_Scope] the block scope for this iteration statement.`},clone:JD},QD),tO=X(`DWLoop`,`condition`,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for do/while statements`,$propdoc:{condition:`[AST_Node] the loop condition. Should not be instanceof AST_Statement`}},eO),nO=X(`Do`,null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})},_children_backwards(e){e(this.condition),e(this.body)}},tO),rO=X(`While`,null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})},_children_backwards(e){e(this.body),e(this.condition)}},tO),iO=X(`For`,`init condition step`,function(e){e&&(this.init=e.init,this.condition=e.condition,this.step=e.step,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},eO),aO=X(`ForIn`,`init object`,function(e){e&&(this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:`[AST_Node] the object that we're looping through`},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},eO),oO=X(`ForOf`,`await`,function(e){e&&(this.await=e.await,this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... of` statement"},aO),sO=X(`With`,`expression`,function(e){e&&(this.expression=e.expression,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})},_children_backwards(e){e(this.body),e(this.expression)}},QD),cO=X(`Scope`,`variables uses_with uses_eval parent_scope enclosed cname`,function(e){e&&(this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for all statements introducing a lexical scope`,$propdoc:{variables:`[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope`,uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:`[AST_Scope?/S] link to the parent scope`,enclosed:`[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes`,cname:`[integer/S] current index for mangling variables (used internally by the mangler)`},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e,t){var n=this._clone(e);return e&&this.variables&&t&&!this._block_scope?n.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope}):(this.variables&&(n.variables=new Map(this.variables)),this.enclosed&&(n.enclosed=this.enclosed.slice()),this._block_scope&&(n._block_scope=this._block_scope)),n},pinned:function(){return this.uses_eval||this.uses_with}},YD),lO=X(`Toplevel`,`globals`,function(e){e&&(this.globals=e.globals,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`The toplevel scope`,$propdoc:{globals:`[Map/S] a map of name -> SymbolDef for all undeclared names`},wrap_commonjs:function(e){var t=this.body,n=`(function(exports){'$ORIG';})(typeof `+e+`=='undefined'?(`+e+`={}):`+e+`);`;return n=zD(n),n=n.transform(new _A(function(e){if(e instanceof GD&&e.value==`$ORIG`)return OE.splice(t)})),n},wrap_enclose:function(e){typeof e!=`string`&&(e=``);var t=e.indexOf(`:`);t<0&&(t=e.length);var n=this.body;return zD([`(function(`,e.slice(0,t),`){"$ORIG"})(`,e.slice(t+1),`)`].join(``)).transform(new _A(function(e){if(e instanceof GD&&e.value==`$ORIG`)return OE.splice(n)}))}},cO),uO=X(`Expansion`,`expression`,function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list`,$propdoc:{expression:`[AST_Node] the thing to be expanded`},_walk:function(e){return e._visit(this,function(){this.expression.walk(e)})},_children_backwards(e){e(this.expression)}}),dO=X(`Lambda`,`name argnames uses_arguments is_generator async`,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for functions`,$propdoc:{name:`[AST_SymbolDeclaration?] the name of this function`,argnames:`[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments`,uses_arguments:`[boolean/S] tells whether this function accesses the arguments array`,is_generator:`[boolean] is this a generator method`,async:`[boolean] is this method async`},args_as_names:function(){for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof gO?e.push(...this.argnames[t].all_symbols()):e.push(this.argnames[t]);return e},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n<r;n++)t[n]._walk(e);qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);for(t=this.argnames.length;t--;)e(this.argnames[t]);this.name&&e(this.name)},is_braceless(){return this.body[0]instanceof SO&&this.body[0].value},length_property(){let e=0;for(let t of this.argnames)(t instanceof Ik||t instanceof gO)&&e++;return e}},cO),fO=X(`Accessor`,null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A setter/getter function. The `name` property is always null."},dO),pO=X(`Function`,null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A function expression`},dO),mO=X(`Arrow`,null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`An ES6 Arrow function ((a) => b)`},dO),hO=X(`Defun`,null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A function definition`},dO),gO=X(`Destructuring`,`names is_array`,function(e){e&&(this.names=e.names,this.is_array=e.is_array,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A destructuring of several names. Used in destructuring assignment and with destructuring function argument names`,$propdoc:{names:`[AST_Node*] Array of properties or elements`,is_array:`[Boolean] Whether the destructuring represents an object or array`},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.names.length;for(;t--;)e(this.names[t])},all_symbols:function(){var e=[];return pA(this,t=>{if(t instanceof Ak&&e.push(t),t instanceof dO)return!0}),e}}),_O=X(`PrefixedTemplateString`,`template_string prefix`,function(e){e&&(this.template_string=e.template_string,this.prefix=e.prefix,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:`[AST_TemplateString] The template string`,prefix:`[AST_Node] The prefix, which will get called.`},_walk:function(e){return e._visit(this,function(){this.prefix._walk(e),this.template_string._walk(e)})},_children_backwards(e){e(this.template_string),e(this.prefix)}}),vO=X(`TemplateString`,`segments`,function(e){e&&(this.segments=e.segments,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A template string literal`,$propdoc:{segments:`[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment.`},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.segments.length;for(;t--;)e(this.segments[t])}}),yO=X(`TemplateSegment`,`value raw`,function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A segment of a template string literal`,$propdoc:{value:`Content of the segment`,raw:`Raw source of the segment`}}),bO=X(`Jump`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},UD),xO=X(`Exit`,`value`,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:`[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return`},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value)}},bO),SO=X(`Return`,null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `return` statement"},xO),CO=X(`Throw`,null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `throw` statement"},xO),wO=X(`LoopControl`,`label`,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:`[AST_LabelRef?] the label, or null if none`},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){this.label&&e(this.label)}},bO),TO=X(`Break`,null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `break` statement"},wO),EO=X(`Continue`,null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `continue` statement"},wO),DO=X(`Await`,`expression`,function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `await` statement",$propdoc:{expression:`[AST_Node] the mandatory expression being awaited`},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}}),OO=X(`Yield`,`expression is_star`,function(e){e&&(this.expression=e.expression,this.is_star=e.is_star,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `yield` statement",$propdoc:{expression:`[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false`,is_star:`[Boolean] Whether this is a yield or yield* statement`},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){this.expression&&e(this.expression)}}),kO=X(`If`,`condition alternative`,function(e){e&&(this.condition=e.condition,this.alternative=e.alternative,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},QD),AO=X(`Switch`,`expression`,function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},YD),jO=X(`SwitchBranch`,null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `switch` branches"},YD),MO=X(`Default`,null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `default` switch branch"},jO),NO=X(`Case`,`expression`,function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);e(this.expression)}},jO),PO=X(`Try`,`body bcatch bfinally`,function(e){e&&(this.body=e.body,this.bcatch=e.bcatch,this.bfinally=e.bfinally,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `try` statement",$propdoc:{body:`[AST_TryBlock] the try block`,bcatch:`[AST_Catch?] the catch block, or null if not present`,bfinally:`[AST_Finally?] the finally block, or null if not present`},_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch),e(this.body)}},UD),FO=X(`TryBlock`,null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `try` block of a try statement"},YD),IO=X(`Catch`,`argname`,function(e){e&&(this.argname=e.argname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:`[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception`},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t]);this.argname&&e(this.argname)}},YD),LO=X(`Finally`,null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},YD),RO=X(`DefinitionsLike`,`definitions`,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for variable definitions and `using`",$propdoc:{definitions:`[AST_VarDef*|AST_UsingDef*] array of variable definitions`},_walk:function(e){return e._visit(this,function(){for(var t=this.definitions,n=0,r=t.length;n<r;n++)t[n]._walk(e)})},_children_backwards(e){let t=this.definitions.length;for(;t--;)e(this.definitions[t])}},UD),zO=X(`Definitions`,null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)"},RO),BO=X(`Var`,null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `var` statement"},zO),VO=X(`Let`,null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `let` statement"},zO),HO=X(`Const`,null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `const` statement"},zO),UO=X(`Using`,`await`,function(e){e&&(this.await=e.await,this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `using` statement",$propdoc:{await:"[boolean] Whether it's `await using`"}},RO),WO=X(`VarDefLike`,`name value`,function(e){e&&(this.name=e.name,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A name=value pair in a variable definition statement or `using`",$propdoc:{name:`[AST_Destructuring|AST_SymbolDeclaration] name of the variable`,value:`[AST_Node?] initializer, or null of there's no initializer`},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})},_children_backwards(e){this.value&&e(this.value),e(this.name)},declarations_as_names(){return this.name instanceof Ak?[this.name]:this.name.all_symbols()}}),GO=X(`VarDef`,null,function(e){e&&(this.name=e.name,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A variable declaration; only appears in a AST_Definitions node`},WO),KO=X(`UsingDef`,null,function(e){e&&(this.name=e.name,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Like VarDef but specific to AST_Using`},WO),qO=X(`NameMapping`,`foreign_name name`,function(e){e&&(this.foreign_name=e.foreign_name,this.name=e.name,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`The part of the export/import statement that declare names from a module.`,$propdoc:{foreign_name:`[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)`,name:`[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module.`},_walk:function(e){return e._visit(this,function(){this.foreign_name._walk(e),this.name._walk(e)})},_children_backwards(e){e(this.name),e(this.foreign_name)}}),JO=X(`Import`,`imported_name imported_names module_name attributes`,function(e){e&&(this.imported_name=e.imported_name,this.imported_names=e.imported_names,this.module_name=e.module_name,this.attributes=e.attributes,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `import` statement",$propdoc:{imported_name:`[AST_SymbolImport] The name of the variable holding the module's default export.`,imported_names:`[AST_NameMapping*] The names of non-default imported variables`,module_name:`[AST_String] String literal describing where this module came from`,attributes:`[AST_Object?] The import attributes (with {...})`},_walk:function(e){return e._visit(this,function(){this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach(function(t){t._walk(e)}),this.module_name._walk(e)})},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(;t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),YO=X(`ImportMeta`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A reference to import.meta`}),XO=X(`Export`,`exported_definition exported_value is_default exported_names module_name attributes`,function(e){e&&(this.exported_definition=e.exported_definition,this.exported_value=e.exported_value,this.is_default=e.is_default,this.exported_names=e.exported_names,this.module_name=e.module_name,this.attributes=e.attributes,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `export` statement",$propdoc:{exported_definition:`[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition`,exported_value:`[AST_Node?] An exported value`,exported_names:`[AST_NameMapping*?] List of exported names`,module_name:`[AST_String?] Name of the file to load exports from`,is_default:`[Boolean] Whether this is the default exported value of this module`,attributes:`[AST_Object?] The import attributes`},_walk:function(e){return e._visit(this,function(){this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach(function(t){t._walk(e)}),this.module_name&&this.module_name._walk(e)})},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(;t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},UD),ZO=X(`Call`,`expression args optional _annotations`,function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:`A function call expression`,$propdoc:{expression:`[AST_Node] expression to invoke as function`,args:`[AST_Node*] array of arguments`,optional:`[boolean] whether this is an optional call (IE ?.() )`,_annotations:`[number] bitfield containing information about the call`},initialize(){this._annotations??=0},_walk(e){return e._visit(this,function(){for(var t=this.args,n=0,r=t.length;n<r;n++)t[n]._walk(e);this.expression._walk(e)})},_children_backwards(e){let t=this.args.length;for(;t--;)e(this.args[t]);e(this.expression)}}),QO=X(`New`,null,function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:`An object instantiation. Derives from a function call since it has exactly the same properties`},ZO),$O=X(`Sequence`,`expressions`,function(e){e&&(this.expressions=e.expressions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A sequence expression (comma-separated expressions)`,$propdoc:{expressions:`[AST_Node*] array of expressions (at least two)`},_walk:function(e){return e._visit(this,function(){this.expressions.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.expressions.length;for(;t--;)e(this.expressions[t])}}),ek=X(`PropAccess`,`expression property optional`,function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:`[AST_Node] the “container” expression`,property:`[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node`,optional:`[boolean] whether this is an optional property access (IE ?.)`}}),tk=X(`Dot`,`quote`,function(e){e&&(this.quote=e.quote,this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A dotted property access expression`,$propdoc:{quote:`[string] the original quote character when transformed from AST_Sub`},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}},ek),nk=X(`DotHash`,``,function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A dotted property access to a private property`,_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}},ek),rk=X(`Sub`,null,function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})},_children_backwards(e){e(this.property),e(this.expression)}},ek),ik=X(`Chain`,`expression`,function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A chain expression like a?.b?.(c)?.[d]`,$propdoc:{expression:`[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element.`},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}}),ak=X(`Unary`,`operator expression`,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for unary expressions`,$propdoc:{operator:`[string] the operator`,expression:`[AST_Node] expression that this unary operator applies to`},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}}),ok=X(`UnaryPrefix`,null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},ak),sk=X(`UnaryPostfix`,null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary postfix expression, i.e. `i++`"},ak),Q=X(`Binary`,`operator left right`,function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:`[AST_Node] left-hand side expression`,operator:`[string] the operator`,right:`[AST_Node] right-hand side expression`},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})},_children_backwards(e){e(this.right),e(this.left)}}),ck=X(`Conditional`,`condition consequent alternative`,function(e){e&&(this.condition=e.condition,this.consequent=e.consequent,this.alternative=e.alternative,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:`[AST_Node]`,consequent:`[AST_Node]`,alternative:`[AST_Node]`},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),lk=X(`Assign`,`logical`,function(e){e&&(this.logical=e.logical,this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:`Whether it's a logical assignment`}},Q),uk=X(`DefaultAssign`,null,function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A default assignment expression like in `(a = 3) => a`"},Q),dk=X(`Array`,`elements`,function(e){e&&(this.elements=e.elements,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`An array literal`,$propdoc:{elements:`[AST_Node*] array of elements`},_walk:function(e){return e._visit(this,function(){for(var t=this.elements,n=0,r=t.length;n<r;n++)t[n]._walk(e)})},_children_backwards(e){let t=this.elements.length;for(;t--;)e(this.elements[t])}}),fk=X(`Object`,`properties`,function(e){e&&(this.properties=e.properties,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`An object literal`,$propdoc:{properties:`[AST_ObjectProperty*] array of properties`},_walk:function(e){return e._visit(this,function(){for(var t=this.properties,n=0,r=t.length;n<r;n++)t[n]._walk(e)})},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t])}}),pk=X(`ObjectProperty`,`key value`,function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:`Base class for literal object properties`,$propdoc:{key:`[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.`,value:`[AST_Node] property value. For getters, setters and methods this is an AST_Accessor.`},_walk:function(e){return e._visit(this,function(){this.key instanceof Z&&this.key._walk(e),this.value._walk(e)})},_children_backwards(e){e(this.value),this.key instanceof Z&&e(this.key)}}),mk=X(`ObjectKeyVal`,`quote`,function(e){e&&(this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:`A key: value object property`,$propdoc:{quote:`[string] the original quote character`},computed_key(){return this.key instanceof Z}},pk),hk=X(`PrivateSetter`,`static`,function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:`[boolean] whether this is a static private setter`},$documentation:`A private setter property`,computed_key(){return!1}},pk),gk=X(`PrivateGetter`,`static`,function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:`[boolean] whether this is a static private getter`},$documentation:`A private getter property`,computed_key(){return!1}},pk),_k=X(`ObjectSetter`,`quote static`,function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:`[string|undefined] the original quote character, if any`,static:`[boolean] whether this is a static setter (classes only)`},$documentation:`An object setter property`,computed_key(){return!(this.key instanceof Rk)}},pk),vk=X(`ObjectGetter`,`quote static`,function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:`[string|undefined] the original quote character, if any`,static:`[boolean] whether this is a static getter (classes only)`},$documentation:`An object getter property`,computed_key(){return!(this.key instanceof Rk)}},pk),yk=X(`ConciseMethod`,`quote static`,function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:`[string|undefined] the original quote character, if any`,static:`[boolean] is this method static (classes only)`},$documentation:`An ES6 concise method inside an object or class`,computed_key(){return!(this.key instanceof Rk)}},pk),bk=X(`PrivateMethod`,`static`,function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A private class method inside a class`,$propdoc:{static:`[boolean] is this a static private method`},computed_key(){return!1}},pk),xk=X(`Class`,`name extends properties`,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:`[AST_SymbolClass|AST_SymbolDefClass?] optional class name.`,extends:`[AST_Node]? optional parent class`,properties:`[AST_ObjectProperty|AST_ClassStaticBlock]* array of properties or static blocks`},$documentation:`An ES6 class`,_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach(t=>t._walk(e))})},_children_backwards(e){let t=this.properties.length;for(;t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)},visit_nondeferred_class_parts(e){this.extends&&this.extends._walk(e),this.properties.forEach(t=>{if(t instanceof Ek){t._walk(e);return}t.computed_key()&&(e.push(t),t.key._walk(e),e.pop()),(t instanceof Ck&&t.static&&t.value||t instanceof Sk&&t.static&&t.value)&&(e.push(t),t.value._walk(e),e.pop())})},visit_deferred_class_parts(e){this.properties.forEach(t=>{t instanceof yk||t instanceof bk?t.walk(e):(t instanceof Sk&&!t.static&&t.value||t instanceof Ck&&!t.static&&t.value)&&(e.push(t),t.value._walk(e),e.pop())})},is_self_referential:function(){let e=this.name&&this.name.definition().id,t=!1,n=!0;return this.visit_nondeferred_class_parts(new gA((r,i)=>{if(t)return!0;if(r instanceof Zk)return t=n;if(r instanceof $)return t=r.definition().id===e;if(r instanceof dO&&!(r instanceof mO)){let e=n;return n=!1,i(),n=e,!0}})),t}},cO),Sk=X(`ClassProperty`,`static quote`,function(e){e&&(this.static=e.static,this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:`A class property`,$propdoc:{static:`[boolean] whether this is a static key`,quote:`[string] which quote is being used`},_walk:function(e){return e._visit(this,function(){this.key instanceof Z&&this.key._walk(e),this.value instanceof Z&&this.value._walk(e)})},_children_backwards(e){this.value instanceof Z&&e(this.value),this.key instanceof Z&&e(this.key)},computed_key(){return!(this.key instanceof zk)}},pk),Ck=X(`ClassPrivateProperty`,``,function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A class property for a private property`,_walk:function(e){return e._visit(this,function(){this.value instanceof Z&&this.value._walk(e)})},_children_backwards(e){this.value instanceof Z&&e(this.value)},computed_key(){return!1}},pk),wk=X(`PrivateIn`,`key value`,function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `in` binop when the key is private, eg #x in this",_walk:function(e){return e._visit(this,function(){this.key._walk(e),this.value._walk(e)})},_children_backwards(e){e(this.value),e(this.key)}}),Tk=X(`DefClass`,null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A class definition`},xk),Ek=X(`ClassStaticBlock`,`body block_scope`,function(e){this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end},{$documentation:`A block containing statements to be executed in the context of the class`,$propdoc:{body:`[AST_Statement*] an array of statements`},_walk:function(e){return e._visit(this,function(){qD(this,e)})},_children_backwards(e){let t=this.body.length;for(;t--;)e(this.body[t])},clone:JD,computed_key(){return!1}},cO),Dk=X(`ClassExpression`,null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A class expression.`},xk),Ok=X(`Symbol`,`scope name thedef`,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:`[string] name of this symbol`,scope:`[AST_Scope/S] the current scope (not necessarily the definition scope)`,thedef:`[SymbolDef/S] the definition of this symbol`},$documentation:`Base class for all symbols`}),kk=X(`NewTarget`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A reference to new.target`}),Ak=X(`SymbolDeclaration`,`init`,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A declaration symbol (symbol in var/const, function name or argument, symbol in catch)`},Ok),jk=X(`SymbolVar`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol defining a variable`},Ak),Mk=X(`SymbolBlockDeclaration`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for block-scoped declaration symbols`},Ak),Nk=X(`SymbolConst`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A constant declaration`},Mk),Pk=X(`SymbolUsing`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `using` declaration"},Mk),Fk=X(`SymbolLet`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A block-scoped `let` declaration"},Mk),Ik=X(`SymbolFunarg`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol naming a function argument`},jk),Lk=X(`SymbolDefun`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol defining a function`},Ak),Rk=X(`SymbolMethod`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol in an object defining a method`},Ok),zk=X(`SymbolClassProperty`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol for a class property`},Ok),Bk=X(`SymbolLambda`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol naming a function expression`},Ak),Vk=X(`SymbolDefClass`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class.`},Mk),Hk=X(`SymbolClass`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol naming a class's name. Lexically scoped to the class.`},Ak),Uk=X(`SymbolCatch`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol naming the exception in catch`},Mk),Wk=X(`SymbolImport`,null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol referring to an imported name`},Mk),Gk=X(`SymbolImportForeign`,`quote`,function(e){e&&(this.quote=e.quote,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes`},Ok),Kk=X(`Label`,`references`,function(e){e&&(this.references=e.references,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:`Symbol naming a label (declaration)`,$propdoc:{references:`[AST_LoopControl*] a list of nodes referring to this label`},initialize:function(){this.references=[],this.thedef=this}},Ok),$=X(`SymbolRef`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Reference to some symbol (not definition/declaration)`},Ok),qk=X(`SymbolExport`,`quote`,function(e){e&&(this.quote=e.quote,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Symbol referring to a name to export`},$),Jk=X(`SymbolExportForeign`,`quote`,function(e){e&&(this.quote=e.quote,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes`},Ok),Yk=X(`LabelRef`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Reference to a label symbol`},Ok),Xk=X(`SymbolPrivateProperty`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A symbol that refers to a private property`},Ok),Zk=X(`This`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `this` symbol"},Ok),Qk=X(`Super`,null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `super` symbol"},Zk),$k=X(`Constant`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for all constants`,getValue:function(){return this.value}}),eA=X(`String`,`value quote`,function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:`A string literal`,$propdoc:{value:`[string] the contents of this string`,quote:`[string] the original quote character`}},$k),tA=X(`Number`,`value raw`,function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A number literal`,$propdoc:{value:`[number] the numeric value`,raw:`[string] numeric value as string`}},$k),nA=X(`BigInt`,`value raw`,function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A big int literal`,$propdoc:{value:`[string] big int value, represented as a string`,raw:`[string] the original format preserved`}},$k),rA=X(`RegExp`,`value`,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A regexp literal`,$propdoc:{value:`[RegExp] the actual regexp`}},$k),iA=X(`Atom`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for atoms`},$k),aA=X(`Null`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `null` atom",value:null},iA),oA=X(`NaN`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`The impossible value`,value:NaN},iA),sA=X(`Undefined`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `undefined` value",value:function(){}()},iA),cA=X(`Hole`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`A hole in an array`,value:function(){}()},iA),lA=X(`Infinity`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `Infinity` value",value:1/0},iA),uA=X(`Boolean`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:`Base class for booleans`},iA),dA=X(`False`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `false` atom",value:!1},uA),fA=X(`True`,null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `true` atom",value:!0},uA);function pA(e,t,n=[e]){let r=n.push.bind(n);for(;n.length;){let e=n.pop(),i=t(e,n);if(i){if(i===hA)return!0;continue}e._children_backwards(r)}return!1}function mA(e,t,n){let r=[e],i=r.push.bind(r),a=n?n.slice():[],o=[],s,c={parent:(e=0)=>e===-1?s:n&&e>=a.length?(e-=a.length,n[n.length-(e+1)]):a[a.length-(1+e)]};for(;r.length;){for(s=r.pop();o.length&&r.length==o[o.length-1];)a.pop(),o.pop();let e=t(s,c);if(e){if(e===hA)return!0;continue}let n=r.length;s._children_backwards(i),r.length>n&&(a.push(s),o.push(n-1))}return!1}const hA=Symbol(`abort walk`);var gA=class{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:CE);return!n&&t&&t.call(e),this.pop(),n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof dO?this.directives=Object.create(this.directives):e instanceof GD&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof xk&&(this.directives=Object.create(this.directives),this.directives[`use strict`]||(this.directives[`use strict`]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof dO||e instanceof xk)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,n=t.length;--n>=0;){var r=t[n];if(r instanceof e)return r}}is_within_loop(){let e=this.stack.length-1,t=this.stack[e];for(;e--;){let n=this.stack[e];if(n instanceof dO)return!1;if(n instanceof eO&&!(n instanceof iO&&t===n.init)&&!((n instanceof aO||n instanceof oO)&&t===n.object))return!0;t=n}return!1}find_scope(){for(var e=this.stack,t=e.length;--t>=0;){let n=e[t];if(n instanceof lO||n instanceof dO)return n;if(n.block_scope)return n.block_scope}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof cO&&n.body)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof GD))break;if(i.value==e)return i}}loopcontrol_target(e){var t=this.stack;if(e.label)for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof $D&&r.label.name==e.label.name)return r.body}else for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof eO||e instanceof TO&&r instanceof AO)return r}}},_A=class extends gA{constructor(e,t){super(),this.before=e,this.after=t}};const vA=1,yA=2,bA=4,xA=8,SA=16;function CA(e,t){e.DEFMETHOD(`transform`,function(e,n){let r;if(e.push(this),e.before&&(r=e.before(this,t,n)),r===void 0&&(r=this,t(r,e),e.after)){let t=e.after(r,n);t!==void 0&&(r=t)}return e.pop(),r})}CA(Z,CE),CA($D,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),CA(KD,function(e,t){e.body=e.body.transform(t)}),CA(YD,function(e,t){e.body=OE(e.body,t)}),CA(nO,function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)}),CA(rO,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),CA(iO,function(e,t){e.init&&=e.init.transform(t),e.condition&&=e.condition.transform(t),e.step&&=e.step.transform(t),e.body=e.body.transform(t)}),CA(aO,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),CA(sO,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),CA(xO,function(e,t){e.value&&=e.value.transform(t)}),CA(wO,function(e,t){e.label&&=e.label.transform(t)}),CA(kO,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&=e.alternative.transform(t)}),CA(AO,function(e,t){e.expression=e.expression.transform(t),e.body=OE(e.body,t)}),CA(NO,function(e,t){e.expression=e.expression.transform(t),e.body=OE(e.body,t)}),CA(PO,function(e,t){e.body=e.body.transform(t),e.bcatch&&=e.bcatch.transform(t),e.bfinally&&=e.bfinally.transform(t)}),CA(IO,function(e,t){e.argname&&=e.argname.transform(t),e.body=OE(e.body,t)}),CA(RO,function(e,t){e.definitions=OE(e.definitions,t)}),CA(WO,function(e,t){e.name=e.name.transform(t),e.value&&=e.value.transform(t)}),CA(gO,function(e,t){e.names=OE(e.names,t)}),CA(dO,function(e,t){e.name&&=e.name.transform(t),e.argnames=OE(e.argnames,t,!1),e.body instanceof Z?e.body=e.body.transform(t):e.body=OE(e.body,t)}),CA(ZO,function(e,t){e.expression=e.expression.transform(t),e.args=OE(e.args,t,!1)}),CA($O,function(e,t){let n=OE(e.expressions,t);e.expressions=n.length?n:[new tA({value:0})]}),CA(ek,function(e,t){e.expression=e.expression.transform(t)}),CA(rk,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),CA(ik,function(e,t){e.expression=e.expression.transform(t)}),CA(OO,function(e,t){e.expression&&=e.expression.transform(t)}),CA(DO,function(e,t){e.expression=e.expression.transform(t)}),CA(ak,function(e,t){e.expression=e.expression.transform(t)}),CA(Q,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),CA(wk,function(e,t){e.key=e.key.transform(t),e.value=e.value.transform(t)}),CA(ck,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),CA(dk,function(e,t){e.elements=OE(e.elements,t)}),CA(fk,function(e,t){e.properties=OE(e.properties,t)}),CA(pk,function(e,t){e.key instanceof Z&&(e.key=e.key.transform(t)),e.value&&=e.value.transform(t)}),CA(xk,function(e,t){e.name&&=e.name.transform(t),e.extends&&=e.extends.transform(t),e.properties=OE(e.properties,t)}),CA(Ek,function(e,t){e.body=OE(e.body,t)}),CA(uO,function(e,t){e.expression=e.expression.transform(t)}),CA(qO,function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)}),CA(JO,function(e,t){e.imported_name&&=e.imported_name.transform(t),e.imported_names&&OE(e.imported_names,t),e.module_name=e.module_name.transform(t)}),CA(XO,function(e,t){e.exported_definition&&=e.exported_definition.transform(t),e.exported_value&&=e.exported_value.transform(t),e.exported_names&&OE(e.exported_names,t),e.module_name&&=e.module_name.transform(t)}),CA(vO,function(e,t){e.segments=OE(e.segments,t)}),CA(_O,function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)}),(function(){var e=function(e){for(var t=0;t<e.length;t++)if(e[t]instanceof UD&&e[t].body instanceof eA)e[t]=new GD({start:e[t].start,end:e[t].end,quote:`"`,value:e[t].body.value});else return e;return e};function t(e){return e&&e.length>0?new fk({start:i(e),end:a(e),properties:e.map(e=>new mk({start:i(e),end:a(e),key:e.key.name||e.key.value,value:s(e.value)}))}):null}var n={Program:function(t){return new lO({start:i(t),end:a(t),body:e(t.body.map(s))})},ArrayPattern:function(e){return new gO({start:i(e),end:a(e),names:e.elements.map(function(e){return e===null?new cA:s(e)}),is_array:!0})},ObjectPattern:function(e){return new gO({start:i(e),end:a(e),names:e.properties.map(s),is_array:!1})},AssignmentPattern:function(e){return new uk({start:i(e),end:a(e),left:s(e.left),operator:`=`,right:s(e.right)})},SpreadElement:function(e){return new uO({start:i(e),end:a(e),expression:s(e.argument)})},RestElement:function(e){return new uO({start:i(e),end:a(e),expression:s(e.argument)})},TemplateElement:function(e){return new yO({start:i(e),end:a(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var t=[],n=0;n<e.quasis.length;n++)t.push(s(e.quasis[n])),e.expressions[n]&&t.push(s(e.expressions[n]));return new vO({start:i(e),end:a(e),segments:t})},TaggedTemplateExpression:function(e){return new _O({start:i(e),end:a(e),template_string:s(e.quasi),prefix:s(e.tag)})},FunctionDeclaration:function(t){return new hO({start:i(t),end:a(t),name:t.id&&l(Lk,t.id),argnames:t.params.map(e=>d(e,Ik)),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})},FunctionExpression:function(e){return u(e,!1)},ArrowFunctionExpression:function(e){let t=e.body.type===`BlockStatement`?s(e.body).body:[Y(SO,{},{value:s(e.body)})];return new mO({start:i(e),end:a(e),argnames:e.params.map(e=>d(e,Ik)),body:t,async:e.async})},ExpressionStatement:function(e){return new KD({start:i(e),end:a(e),body:s(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw Error(`Multiple catch clauses are not supported.`);return new PO({start:i(e),end:a(e),body:new FO(s(e.block)),bcatch:s(t[0]),bfinally:e.finalizer?new LO(s(e.finalizer)):null})},Property:function(e){if(e.kind==`init`&&!e.method){var t={start:i(e.key||e.value),end:a(e.value),key:e.computed?s(e.key):e.key.name||String(e.key.value),quote:c(e.key,e.computed),static:!1,value:s(e.value)};return new mk(t)}else{var n=u(e.value,!0),t={start:i(e.key||e.value),end:a(e.value),key:e.computed?s(e.key):l(Rk,e.key),quote:c(e.key,e.computed),static:!1,value:n};if(e.kind==`get`)return new vk(t);if(e.kind==`set`)return new _k(t);if(e.method)return new yk(t)}},MethodDefinition:function(e){let t=e.key.type===`PrivateIdentifier`,n=e.computed?s(e.key):new Rk({name:e.key.name||String(e.key.value)});var r={start:i(e),end:a(e),key:n,quote:c(e.key,e.computed),value:u(e.value,!0),static:e.static};return e.kind==`get`?new(t?gk:vk)(r):e.kind==`set`?new(t?hk:_k)(r):new(t?bk:yk)(r)},FieldDefinition:function(e){let t;if(e.computed)t=s(e.key);else{if(e.key.type!==`Identifier`)throw Error(`Non-Identifier key in FieldDefinition`);t=s(e.key)}return new Sk({start:i(e),end:a(e),quote:c(e.key,e.computed),key:t,value:s(e.value),static:e.static})},PropertyDefinition:function(e){let t;if(e.computed)t=s(e.key);else if(e.key.type===`PrivateIdentifier`)return new Ck({start:i(e),end:a(e),key:s(e.key),value:s(e.value),static:e.static});else t=l(zk,e.key);return new Sk({start:i(e),end:a(e),quote:c(e.key,e.computed),key:t,value:s(e.value),static:e.static})},PrivateIdentifier:function(e){return new Xk({start:i(e),end:a(e),name:e.name})},StaticBlock:function(e){return new Ek({start:i(e),end:a(e),body:e.body.map(s)})},ArrayExpression:function(e){return new dk({start:i(e),end:a(e),elements:e.elements.map(function(e){return e===null?new cA:s(e)})})},ObjectExpression:function(e){return new fk({start:i(e),end:a(e),properties:e.properties.map(function(e){return e.type===`SpreadElement`||(e.type=`Property`),s(e)})})},SequenceExpression:function(e){return new $O({start:i(e),end:a(e),expressions:e.expressions.map(s)})},MemberExpression:function(e){return e.property.type===`PrivateIdentifier`?new nk({start:i(e),end:a(e),property:e.property.name,expression:s(e.object),optional:e.optional||!1}):new(e.computed?rk:tk)({start:i(e),end:a(e),property:e.computed?s(e.property):e.property.name,expression:s(e.object),optional:e.optional||!1})},ChainExpression:function(e){return new ik({start:i(e),end:a(e),expression:s(e.expression)})},SwitchCase:function(e){return new(e.test?NO:MO)({start:i(e),end:a(e),expression:s(e.test),body:e.consequent.map(s)})},VariableDeclaration:function(e){let t,n=GO,r,o=!1;e.kind===`const`?(t=HO,r=Nk):e.kind===`let`?(t=VO,r=Fk):e.kind===`using`?(t=UO,n=KO,r=Pk):e.kind===`await using`?(t=UO,n=KO,r=Pk,o=!0):(t=BO,r=jk);let c=e.declarations.map(e=>new n({start:i(e),end:a(e),name:d(e.id,r),value:s(e.init)}));return new t({start:i(e),end:a(e),definitions:c,await:o})},ImportDeclaration:function(e){var n=null,r=null;return e.specifiers.forEach(function(e){e.type===`ImportSpecifier`||e.type===`ImportNamespaceSpecifier`?(r||=[],r.push(s(e))):e.type===`ImportDefaultSpecifier`&&(n=s(e))}),new JO({start:i(e),end:a(e),imported_name:n,imported_names:r,module_name:s(e.source),attributes:t(e.attributes||e.assertions)})},ImportSpecifier:function(e){return new qO({start:i(e),end:a(e),foreign_name:l(Gk,e.imported,e.imported.type===`Literal`),name:l(Wk,e.local)})},ImportDefaultSpecifier:function(e){return l(Wk,e.local)},ImportNamespaceSpecifier:function(e){return new qO({start:i(e),end:a(e),foreign_name:new Gk({name:`*`}),name:l(Wk,e.local)})},ImportExpression:function(e){let t=[s(e.source)];return e.options&&t.push(s(e.options)),new ZO({start:i(e),end:a(e),expression:s({type:`Identifier`,name:`import`}),optional:!1,args:t})},ExportAllDeclaration:function(e){var n=e.exported==null?new Jk({name:`*`}):l(Jk,e.exported,e.exported.type===`Literal`);return new XO({start:i(e),end:a(e),exported_names:[new qO({start:i(e),end:a(e),name:new qk({name:`*`}),foreign_name:n})],module_name:s(e.source),attributes:t(e.attributes||e.assertions)})},ExportNamedDeclaration:function(e){return e.declaration?new XO({start:i(e),end:a(e),exported_definition:s(e.declaration),exported_names:null,module_name:null,attributes:null}):new XO({start:i(e),end:a(e),exported_definition:null,exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(s):[],module_name:s(e.source),attributes:t(e.attributes||e.assertions)})},ExportDefaultDeclaration:function(e){return new XO({start:i(e),end:a(e),exported_value:s(e.declaration),is_default:!0})},ExportSpecifier:function(e){return new qO({start:i(e),end:a(e),foreign_name:l(Jk,e.exported,e.exported.type===`Literal`),name:l(qk,e.local,e.local.type===`Literal`)})},Literal:function(e){var t=e.value,n={start:i(e),end:a(e)},r=e.regex;if(r&&r.pattern)return n.value={source:r.pattern,flags:r.flags},new rA(n);if(r){let r=e.raw||t,i=r.match(/^\/(.*)\/(\w*)$/);if(!i)throw Error(`Invalid regex source `+r);let[a,o,s]=i;return n.value={source:o,flags:s},new rA(n)}let o=typeof e.value==`bigint`?e.value.toString():e.bigint;if(typeof o==`string`)return n.value=o,n.raw=e.raw,new nA(n);if(t===null)return new aA(n);switch(typeof t){case`string`:return n.quote=`"`,n.value=t,new eA(n);case`number`:return n.value=t,n.raw=e.raw||t.toString(),new tA(n);case`boolean`:return new(t?fA:dA)(n)}},MetaProperty:function(e){if(e.meta.name===`new`&&e.property.name===`target`)return new kk({start:i(e),end:a(e)});if(e.meta.name===`import`&&e.property.name===`meta`)return new YO({start:i(e),end:a(e)})},Identifier:function(e){return new $({start:i(e),end:a(e),name:e.name})},EmptyStatement:function(e){return new ZD({start:i(e),end:a(e)})},BlockStatement:function(e){return new XD({start:i(e),end:a(e),body:e.body.map(s)})},IfStatement:function(e){return new kO({start:i(e),end:a(e),condition:s(e.test),body:s(e.consequent),alternative:s(e.alternate)})},LabeledStatement:function(e){try{let t=l(Kk,e.label);return o.push(t),new $D({start:i(e),end:a(e),label:t,body:s(e.body)})}finally{o.pop()}},BreakStatement:function(e){return new TO({start:i(e),end:a(e),label:f(e.label)})},ContinueStatement:function(e){return new EO({start:i(e),end:a(e),label:f(e.label)})},WithStatement:function(e){return new sO({start:i(e),end:a(e),expression:s(e.object),body:s(e.body)})},SwitchStatement:function(e){return new AO({start:i(e),end:a(e),expression:s(e.discriminant),body:e.cases.map(s)})},ReturnStatement:function(e){return new SO({start:i(e),end:a(e),value:s(e.argument)})},ThrowStatement:function(e){return new CO({start:i(e),end:a(e),value:s(e.argument)})},WhileStatement:function(e){return new rO({start:i(e),end:a(e),condition:s(e.test),body:s(e.body)})},DoWhileStatement:function(e){return new nO({start:i(e),end:a(e),condition:s(e.test),body:s(e.body)})},ForStatement:function(e){return new iO({start:i(e),end:a(e),init:s(e.init),condition:s(e.test),step:s(e.update),body:s(e.body)})},ForInStatement:function(e){return new aO({start:i(e),end:a(e),init:s(e.left),object:s(e.right),body:s(e.body)})},ForOfStatement:function(e){return new oO({start:i(e),end:a(e),init:s(e.left),object:s(e.right),body:s(e.body),await:e.await})},AwaitExpression:function(e){return new DO({start:i(e),end:a(e),expression:s(e.argument)})},YieldExpression:function(e){return new OO({start:i(e),end:a(e),expression:s(e.argument),is_star:e.delegate})},DebuggerStatement:function(e){return new WD({start:i(e),end:a(e)})},CatchClause:function(e){return new IO({start:i(e),end:a(e),argname:e.param?d(e.param,Uk):null,body:s(e.body).body})},ThisExpression:function(e){return new Zk({start:i(e),name:`this`,end:a(e)})},Super:function(e){return new Qk({start:i(e),end:a(e),name:`super`})},BinaryExpression:function(e){return e.left.type===`PrivateIdentifier`?new wk({start:i(e),end:a(e),key:new Xk({start:i(e.left),end:a(e.left),name:e.left.name}),value:s(e.right)}):new Q({start:i(e),end:a(e),operator:e.operator,left:s(e.left),right:s(e.right)})},LogicalExpression:function(e){return new Q({start:i(e),end:a(e),operator:e.operator,left:s(e.left),right:s(e.right)})},AssignmentExpression:function(e){return new lk({start:i(e),end:a(e),operator:e.operator,logical:e.operator===`??=`||e.operator===`&&=`||e.operator===`||=`,left:s(e.left),right:s(e.right)})},ConditionalExpression:function(e){return new ck({start:i(e),end:a(e),condition:s(e.test),consequent:s(e.consequent),alternative:s(e.alternate)})},NewExpression:function(e){return new QO({start:i(e),end:a(e),expression:s(e.callee),args:e.arguments.map(s)})},CallExpression:function(e){return new ZO({start:i(e),end:a(e),expression:s(e.callee),optional:e.optional,args:e.arguments.map(s)})}};n.UpdateExpression=n.UnaryExpression=function(e){return new((`prefix`in e?e.prefix:e.type==`UnaryExpression`)?ok:sk)({start:i(e),end:a(e),operator:e.operator,expression:s(e.argument)})},n.ClassDeclaration=n.ClassExpression=function(e){return new(e.type===`ClassDeclaration`?Tk:Dk)({start:i(e),end:a(e),name:e.id&&l(e.type===`ClassDeclaration`?Vk:Hk,e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},m(ZD,function(){return{type:`EmptyStatement`}}),m(XD,function(e){return{type:`BlockStatement`,body:e.body.map(g)}}),m(kO,function(e){return{type:`IfStatement`,test:g(e.condition),consequent:g(e.body),alternate:g(e.alternative)}}),m($D,function(e){return{type:`LabeledStatement`,label:g(e.label),body:g(e.body)}}),m(TO,function(e){return{type:`BreakStatement`,label:g(e.label)}}),m(EO,function(e){return{type:`ContinueStatement`,label:g(e.label)}}),m(sO,function(e){return{type:`WithStatement`,object:g(e.expression),body:g(e.body)}}),m(AO,function(e){return{type:`SwitchStatement`,discriminant:g(e.expression),cases:e.body.map(g)}}),m(SO,function(e){return{type:`ReturnStatement`,argument:g(e.value)}}),m(CO,function(e){return{type:`ThrowStatement`,argument:g(e.value)}}),m(rO,function(e){return{type:`WhileStatement`,test:g(e.condition),body:g(e.body)}}),m(nO,function(e){return{type:`DoWhileStatement`,test:g(e.condition),body:g(e.body)}}),m(iO,function(e){return{type:`ForStatement`,init:g(e.init),test:g(e.condition),update:g(e.step),body:g(e.body)}}),m(aO,function(e){return{type:`ForInStatement`,left:g(e.init),right:g(e.object),body:g(e.body)}}),m(oO,function(e){return{type:`ForOfStatement`,left:g(e.init),right:g(e.object),body:g(e.body),await:e.await}}),m(DO,function(e){return{type:`AwaitExpression`,argument:g(e.expression)}}),m(OO,function(e){return{type:`YieldExpression`,argument:g(e.expression),delegate:e.is_star}}),m(WD,function(){return{type:`DebuggerStatement`}}),m(WO,function(e){return{type:`VariableDeclarator`,id:g(e.name),init:g(e.value)}}),m(Zk,function(){return{type:`ThisExpression`}}),m(Qk,function(){return{type:`Super`}}),m(ck,function(e){return{type:`ConditionalExpression`,test:g(e.condition),consequent:g(e.consequent),alternate:g(e.alternative)}}),m(QO,function(e){return{type:`NewExpression`,callee:g(e.expression),arguments:e.args.map(g)}}),m(ZO,function(e){if(e.expression instanceof $&&e.expression.name===`import`){let[t,n]=e.args.map(g);return{type:`ImportExpression`,source:t,options:n||null}}return{type:`CallExpression`,callee:g(e.expression),optional:e.optional,arguments:e.args.map(g)}}),m(lO,function(e){return x(`Program`,e)}),m(uO,function(e){return{type:y()?`RestElement`:`SpreadElement`,argument:g(e.expression)}}),m(_O,function(e){return{type:`TaggedTemplateExpression`,tag:g(e.prefix),quasi:g(e.template_string)}}),m(vO,function(e){for(var t=[],n=[],r=0;r<e.segments.length;r++)r%2==0?t.push({type:`TemplateElement`,value:{raw:e.segments[r].raw,cooked:e.segments[r].value},tail:r===e.segments.length-1}):n.push(g(e.segments[r]));return{type:`TemplateLiteral`,quasis:t,expressions:n}}),m(hO,function(e){return{type:`FunctionDeclaration`,id:g(e.name),params:e.argnames.map(v),generator:e.is_generator,async:e.async,body:x(`BlockStatement`,e)}}),m(pO,function(e){return{type:`FunctionExpression`,id:g(e.name),params:e.argnames.map(v),generator:e.is_generator||!1,async:e.async||!1,body:x(`BlockStatement`,e)}}),m(mO,function(e){var t=e.body.length===1&&e.body[0]instanceof SO&&e.body[0].value?g(e.body[0].value):{type:`BlockStatement`,body:e.body.map(g)};return{type:`ArrowFunctionExpression`,params:e.argnames.map(v),async:e.async,body:t}}),m(gO,function(e){return e.is_array?{type:`ArrayPattern`,elements:e.names.map(e=>e instanceof cA?null:v(e))}:{type:`ObjectPattern`,properties:e.names.map(e=>{if(e instanceof mk){var t=e.computed_key();let[n,r]=_(e.key,t,e.quote,e.value);return{type:`Property`,computed:t,kind:`init`,key:r,method:!1,shorthand:n,value:v(e.value)}}else return v(e)})}}),m(uk,function(e){return{type:`AssignmentPattern`,left:v(e.left),right:g(e.right)}}),m(GD,function(e){return{type:`ExpressionStatement`,expression:{type:`Literal`,value:e.value,raw:e.print_to_string()},directive:e.value}}),m(KD,function(e){return{type:`ExpressionStatement`,expression:g(e.body)}}),m(jO,function(e){return{type:`SwitchCase`,test:g(e.expression),consequent:e.body.map(g)}}),m(PO,function(e){return{type:`TryStatement`,block:b(e.body),handler:g(e.bcatch),guardedHandlers:[],finalizer:g(e.bfinally)}}),m(IO,function(e){return{type:`CatchClause`,param:e.argname==null?null:v(e.argname),body:b(e)}}),m(RO,function(e){return{type:`VariableDeclaration`,kind:e instanceof HO?`const`:e instanceof VO?`let`:e instanceof UO?e.await?`await using`:`using`:`var`,declarations:e.definitions.map(g)}});function r(e){let t=[];if(e)for(let{key:n,value:r}of e.properties){let e=TD(n)?{type:`Identifier`,name:n}:{type:`Literal`,value:n,raw:JSON.stringify(n)};t.push({type:`ImportAttribute`,key:e,value:g(r)})}return t}m(XO,function(e){if(e.exported_names){var t=e.exported_names[0];if(t&&t.name.name===`*`&&!t.name.quote){var n=t.foreign_name,i=n.name===`*`&&!n.quote?null:g(n);return{type:`ExportAllDeclaration`,source:g(e.module_name),exported:i,attributes:r(e.attributes)}}return{type:`ExportNamedDeclaration`,specifiers:e.exported_names.map(function(e){return{type:`ExportSpecifier`,exported:g(e.foreign_name),local:g(e.name)}}),declaration:g(e.exported_definition),source:g(e.module_name),attributes:r(e.attributes)}}return e.is_default?{type:`ExportDefaultDeclaration`,declaration:g(e.exported_value||e.exported_definition)}:{type:`ExportNamedDeclaration`,declaration:g(e.exported_value||e.exported_definition),specifiers:[],source:null}}),m(JO,function(e){var t=[];if(e.imported_name&&t.push({type:`ImportDefaultSpecifier`,local:g(e.imported_name)}),e.imported_names){var n=e.imported_names[0].foreign_name;n.name===`*`&&!n.quote?t.push({type:`ImportNamespaceSpecifier`,local:g(e.imported_names[0].name)}):e.imported_names.forEach(function(e){t.push({type:`ImportSpecifier`,local:g(e.name),imported:g(e.foreign_name)})})}return{type:`ImportDeclaration`,specifiers:t,source:g(e.module_name),attributes:r(e.attributes)}}),m(YO,function(){return{type:`MetaProperty`,meta:{type:`Identifier`,name:`import`},property:{type:`Identifier`,name:`meta`}}}),m($O,function(e){return{type:`SequenceExpression`,expressions:e.expressions.map(g)}}),m(nk,function(e){return{type:`MemberExpression`,object:g(e.expression),computed:!1,property:{type:`PrivateIdentifier`,name:e.property},optional:e.optional}}),m(ek,function(e){var t=e instanceof rk;return{type:`MemberExpression`,object:g(e.expression),computed:t,property:t?g(e.property):{type:`Identifier`,name:e.property},optional:e.optional}}),m(ik,function(e){return{type:`ChainExpression`,expression:g(e.expression)}}),m(ak,function(e){return{type:e.operator==`++`||e.operator==`--`?`UpdateExpression`:`UnaryExpression`,operator:e.operator,prefix:e instanceof ok,argument:g(e.expression)}}),m(Q,function(e){return e.operator==`=`&&y()?{type:`AssignmentPattern`,left:g(e.left),right:g(e.right)}:{type:e.operator==`&&`||e.operator==`||`||e.operator===`??`?`LogicalExpression`:`BinaryExpression`,left:g(e.left),operator:e.operator,right:g(e.right)}}),m(lk,function(e){return{type:`AssignmentExpression`,operator:e.operator,left:g(e.left),right:g(e.right)}}),m(wk,function(e){return{type:`BinaryExpression`,left:{type:`PrivateIdentifier`,name:e.key.name},operator:`in`,right:g(e.value)}}),m(dk,function(e){return{type:`ArrayExpression`,elements:e.elements.map(g)}}),m(fk,function(e){return{type:`ObjectExpression`,properties:e.properties.map(g)}}),m(pk,function(e,t){var n=e.computed_key();let[r,i]=_(e.key,n,e.quote,e.value);var a;return e instanceof vk?a=`get`:e instanceof _k&&(a=`set`),e instanceof gk||e instanceof hk?{type:`MethodDefinition`,computed:!1,kind:e instanceof gk?`get`:`set`,static:e.static,key:{type:`PrivateIdentifier`,name:e.key.name},value:g(e.value)}:e instanceof Ck?{type:`PropertyDefinition`,key:{type:`PrivateIdentifier`,name:e.key.name},value:g(e.value),computed:!1,static:e.static}:e instanceof Sk?{type:`PropertyDefinition`,key:i,value:g(e.value),computed:n,static:e.static}:t instanceof xk?{type:`MethodDefinition`,computed:n,kind:a,static:e.static,key:g(e.key),value:g(e.value)}:{type:`Property`,computed:n,method:!1,shorthand:r,kind:a,key:i,value:g(e.value)}}),m(mk,function(e){var t=e.computed_key();let[n,r]=_(e.key,t,e.quote,e.value);return{type:`Property`,computed:t,shorthand:n,method:!1,kind:`init`,key:r,value:g(e.value)}}),m(yk,function(e,t){let n=e.computed_key(),[r,i]=_(e.key,n,e.quote,e.value);return t instanceof fk?{type:`Property`,kind:`init`,computed:n,method:!0,shorthand:!1,key:i,value:g(e.value)}:{type:`MethodDefinition`,kind:!n&&e.key.name===`constructor`?`constructor`:`method`,computed:n,key:i,value:g(e.value),static:e.static}}),m(bk,function(e){return{type:`MethodDefinition`,kind:`method`,key:{type:`PrivateIdentifier`,name:e.key.name},value:g(e.value),computed:!1,static:e.static}}),m(xk,function(e){return{type:e instanceof Dk?`ClassExpression`:`ClassDeclaration`,superClass:g(e.extends),id:e.name?g(e.name):null,body:{type:`ClassBody`,body:e.properties.map(g)}}}),m(Ek,function(e){return{type:`StaticBlock`,body:e.body.map(g)}}),m(kk,function(){return{type:`MetaProperty`,meta:{type:`Identifier`,name:`new`},property:{type:`Identifier`,name:`target`}}}),m(Ok,function(e,t){if(e instanceof Rk&&t.quote||(e instanceof Gk||e instanceof Jk||e instanceof qk)&&e.quote)return{type:`Literal`,value:e.name};var n=e.definition();return{type:`Identifier`,name:n?n.mangled_name||n.name:e.name}}),m(rA,function(e){let t=e.value.source,n=e.value.flags;return{type:`Literal`,value:null,raw:e.print_to_string(),regex:{pattern:t,flags:n}}}),m($k,function(e){return{type:`Literal`,value:e.value,raw:e.raw||e.print_to_string()}}),m(iA,function(e){return{type:`Identifier`,name:String(e.value)}}),m(nA,e=>({type:`Literal`,value:null,bigint:typeof BigInt==`function`?BigInt(e.value).toString():e.value,raw:e.raw})),uA.DEFMETHOD(`to_mozilla_ast`,$k.prototype.to_mozilla_ast),aA.DEFMETHOD(`to_mozilla_ast`,$k.prototype.to_mozilla_ast),cA.DEFMETHOD(`to_mozilla_ast`,function(){return null}),YD.DEFMETHOD(`to_mozilla_ast`,XD.prototype.to_mozilla_ast),dO.DEFMETHOD(`to_mozilla_ast`,pO.prototype.to_mozilla_ast);function i(e){var t=e.loc,n=t&&t.start,r=e.range;return new HD(``,``,n&&n.line||0,n&&n.column||0,r?r[0]:e.start,!1,[],[],t&&t.source)}function a(e){var t=e.loc,n=t&&t.end,r=e.range;return new HD(``,``,n&&n.line||0,n&&n.column||0,r?r[0]:e.end,!1,[],[],t&&t.source)}var o=null;function s(e){return e==null?null:n[e.type](e)}function c(e,t){return!t&&e.type===`Literal`&&typeof e.value==`string`?`"`:``}function l(e,t,n){return new e({start:i(t),quote:n?`"`:void 0,name:t.type===`Identifier`?t.name:String(t.value),end:a(t)})}function u(t,n){return new(n?fO:pO)({start:i(t),end:a(t),name:t.id&&l(n?Rk:Bk,t.id),argnames:t.params.map(e=>d(e,Ik)),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})}function d(e,t){switch(e.type){case`ObjectPattern`:return new gO({start:i(e),end:a(e),names:e.properties.map(e=>d(e,t)),is_array:!1});case`Property`:var n=e.key,r={start:i(n||e.value),end:a(e.value),key:n.type==`Identifier`?n.name:String(n.value),quote:!e.computed&&n.type===`Literal`&&typeof n.value==`string`?`"`:``,value:d(e.value,t)};return e.computed&&(r.key=s(e.key)),new mk(r);case`ArrayPattern`:return new gO({start:i(e),end:a(e),names:e.elements.map(function(e){return e===null?new cA:d(e,t)}),is_array:!0});case`SpreadElement`:case`RestElement`:return new uO({start:i(e),end:a(e),expression:d(e.argument,t)});case`AssignmentPattern`:return new uk({start:i(e),end:a(e),left:d(e.left,t),operator:`=`,right:s(e.right)});case`Identifier`:return new t({start:i(e),end:a(e),name:e.name});default:throw Error(`Invalid node type for destructuring: `+e.type)}}function f(e){if(!e)return null;let t=l(Yk,e),n=o.length;for(;n--;){let e=o[n];if(t.name===e.name){t.thedef=e;break}}return t}Z.from_mozilla_ast=function(e){var t=o;o=[];var n=s(e);return o=t,n};function p(e,t){var n=e.start,r=e.end;return n&&r?(n.pos!=null&&r.endpos!=null&&(t.range=[n.pos,r.endpos]),n.line&&(t.loc={start:{line:n.line,column:n.col},end:r.endline?{line:r.endline,column:r.endcol}:null},n.file&&(t.loc.source=n.file)),t):t}function m(e,t){e.DEFMETHOD(`to_mozilla_ast`,function(e){return p(this,t(this,e))})}var h=null;function g(e){h===null&&(h=[]),h.push(e);var t=e==null?null:e.to_mozilla_ast(h[h.length-2]);return h.pop(),h.length===0&&(h=null),t}function _(e,t=!1,n=!1,r=null){if(t)return[!1,g(e)];let i=typeof e==`string`?e:e.name,a;return a=n?{type:`Literal`,value:i,raw:JSON.stringify(i)}:``+ +i===i&&+i>=0?{type:`Literal`,value:+i,raw:JSON.stringify(+i)}:{type:`Identifier`,name:i},[a.type===`Identifier`&&a.name===i&&(r instanceof Ok&&r.name===i||r instanceof uk&&r.left.name===i),a]}function v(e){if(e instanceof uO)return{type:`RestElement`,argument:v(e.expression)};if(e instanceof Ok||e instanceof gO||e instanceof uk||e instanceof ek)return g(e);throw Error(e.TYPE)}function y(){for(var e=h.length;e--;)if(h[e]instanceof gO)return!0;return!1}function b(e){return{type:`BlockStatement`,body:e.body.map(g)}}function x(e,t){var n=t.body.map(g);return t.body[0]instanceof KD&&t.body[0].body instanceof eA&&n.unshift(g(new ZD(t.body[0]))),{type:e,body:n}}})();function wA(e){let t=e.parent(-1);for(let n=0,r;r=e.parent(n);n++){if(r instanceof UD&&r.body===t)return!0;if(r instanceof $O&&r.expressions[0]===t||r.TYPE===`Call`&&r.expression===t||r instanceof _O&&r.prefix===t||r instanceof tk&&r.expression===t||r instanceof rk&&r.expression===t||r instanceof ik&&r.expression===t||r instanceof ck&&r.condition===t||r instanceof Q&&r.left===t||r instanceof sk&&r.expression===t)t=r;else return!1}}function TA(e){return e instanceof fk?!0:e instanceof $O?TA(e.expressions[0]):e.TYPE===`Call`?TA(e.expression):e instanceof _O?TA(e.prefix):e instanceof tk||e instanceof rk||e instanceof ik?TA(e.expression):e instanceof ck?TA(e.condition):e instanceof Q?TA(e.left):e instanceof sk?TA(e.expression):!1}const EA=/[@#]__(PURE|INLINE|NOINLINE)__/;function DA(e){return(e.type===`comment2`||e.type===`comment1`)&&/@preserve|@copyright|@lic|@cc_on|^\**!/i.test(e.value)}var OA=class{constructor(){this.committed=``,this.current=``}append(e){this.current.length>8e3?(this.committed+=this.current+e,this.current=``):this.current+=e}insertAt(e,t){let{committed:n,current:r}=this;t<n.length?this.committed=n.slice(0,t)+e+n.slice(t):t===n.length?this.committed+=e:(t-=n.length,this.committed+=r.slice(0,t)+e,this.current=r.slice(t))}charAt(e){let{committed:t}=this;return e<t.length?t[e]:this.current[e-t.length]}charCodeAt(e){let{committed:t}=this;return e<t.length?t.charCodeAt(e):this.current.charCodeAt(e-t.length)}length(){return this.committed.length+this.current.length}expectDirective(){let e,t=this.length();if(t<=0)return!0;for(;(e=this.charCodeAt(--t))&&(e==32||e==10););return!e||e===59||e===123}hasNLB(){let e=this.length()-1;for(;e>=0;){let t=this.charCodeAt(e--);if(t===10)return!0;if(t!==32)return!1}return!0}toString(){return this.committed+this.current}};function kA(e){var t=!e;e=SE(e,{ascii_only:!1,beautify:!1,braces:!1,comments:`some`,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!1,_destroy_ast:!1},!0),e.shorthand===void 0&&(e.shorthand=e.ecma>5);var n=wE;if(e.comments){let t=e.comments;if(typeof e.comments==`string`&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf(`/`);t=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}n=t instanceof RegExp?function(e){return e.type!=`comment5`&&t.test(e.value)}:typeof t==`function`?function(e){return e.type!=`comment5`&&t(this,e)}:t===`some`?DA:TE}if(e.preserve_annotations){let e=n;n=function(t){return EA.test(t.value)||e.apply(this,arguments)}}var i=0,a=0,o=1,s=0,c=new OA;let l=new Set;var u=e.ascii_only?function(t,n=!1,r=!1){return e.ecma>=2015&&!e.safari10&&!r&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){return`\\u{`+gD(e,0).toString(16)+`}`})),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t=`0`+t;return`\\x`+t}else{for(;t.length<4;)t=`0`+t;return`\\u`+t}})}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(e,t){return t?`\\u`+t.charCodeAt(0).toString(16):e})};function d(t,n){var r=0,i=0;t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n,a){switch(n){case`"`:return++r,`"`;case`'`:return++i,`'`;case`\\`:return`\\\\`;case`
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\v`:return e.ie8?`\\x0B`:`\\v`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;case``:return`\\ufeff`;case`\0`:return/[0-9]/.test(hD(t,a+1))?`\\x00`:`\\0`}return n});function a(){return`'`+t.replace(/\x27/g,`\\'`)+`'`}function o(){return`"`+t.replace(/\x22/g,`\\"`)+`"`}function s(){return"`"+t.replace(/`/g,"\\`")+"`"}if(t=u(t),n==="`")return s();switch(e.quote_style){case 1:return a();case 2:return o();case 3:return n==`'`?a():o();default:return r>i?a():o()}}function f(t,n){var r=d(t,n);return e.inline_script&&(r=r.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,`<\\/$1$2`),r=r.replace(/\x3c!--/g,`\\x3c!--`),r=r.replace(/--\x3e/g,`--\\x3e`)),r}function p(e){return e=e.toString(),e=u(e,!0),e}function m(t){return` `.repeat(e.indent_start+i-t*e.indent_level)}var h=!1,g=!1,_=!1,v=0,y=!1,b=!1,x=-1,S=``,C,w,T=e.source_map&&[],E=T?function(){T.forEach(function(t){try{let{name:n,token:r}=t;n!==!1&&(r.type==`name`||r.type===`privatename`?n=r.value:n instanceof Ok&&(n=r.type===`string`?r.value:n.name)),e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,TD(n)?n:void 0)}catch{}}),T=[]}:CE,D=e.max_line_len?function(){if(a>e.max_line_len&&v){c.insertAt(`
`,v);let e=c.length()-v-1;if(T){var t=e-a;T.forEach(function(e){e.line++,e.col+=t})}o++,s++,a=e}v&&(v=0,E())}:CE,O=NE("( [ + * / - , . `");function k(t){t=String(t);var n=hD(t,0);y&&n&&(y=!1,n!==`
`&&(k(`
`),ee())),b&&n&&(b=!1,/[\s;})]/.test(n)||j()),x=-1;var r=S.charAt(S.length-1);_&&(_=!1,(r===`:`&&n===`}`||(!n||!`;}`.includes(n))&&r!==`;`)&&(e.semicolons||O.has(n)?(c.append(`;`),a++,s++):(D(),a>0&&(c.append(`
`),s++,o++,a=0),/^\s+$/.test(t)&&(_=!0)),e.beautify||(g=!1))),g&&=((CD(r)&&(CD(n)||n==`\\`)||n==`/`&&n==r||(n==`+`||n==`-`)&&n==S)&&(c.append(` `),a++,s++),!1),C&&(T.push({token:C,name:w,line:o,col:a}),C=!1,v||E()),c.append(t),h=t[t.length-1]==`(`,s+=t.length;var i=t.split(/\r?\n/),l=i.length-1;o+=l,a+=i[0].length,l>0&&(D(),a=i[l].length),S=t}var A=function(){k(`*`)},j=e.beautify?function(){k(` `)}:function(){g=!0},ee=e.beautify?function(t){e.beautify&&k(m(t?.5:0))}:CE,te=e.beautify?function(e,t){e===!0&&(e=ie());var n=i;i=e;var r=t();return i=n,r}:function(e,t){return t()},ne=e.beautify?function(){if(x<0)return k(`
`);c.charAt(x)!=`
`&&(c.insertAt(`
`,x),s++,o++),x++}:e.max_line_len?function(){D(),v=c.length()}:CE,re=e.beautify?function(){k(`;`)}:function(){_=!0};function M(){_=!1,k(`;`)}function ie(){return i+e.indent_level}function ae(e){var t;return k(`{`),ne(),te(ie(),function(){t=e()}),ee(),k(`}`),t}function N(e){k(`(`);var t=e();return k(`)`),t}function oe(e){k(`[`);var t=e();return k(`]`),t}function se(){k(`,`),j()}function P(){k(`:`),j()}var ce=T?function(e,t){C=e,w=t}:CE;function le(){return v&&D(),c.toString()}function ue(t){return e.preserve_annotations||(t=t.replace(EA,` `)),/^\s*$/.test(t)?``:t.replace(/(<\s*\/\s*)(script)/i,`<\\/$2`)}function de(t){var r=this,i=t.start;if(!i)return;var a=r.printed_comments;let o=t instanceof xO&&t.value||(t instanceof DO||t instanceof OO)&&t.expression;if(i.comments_before&&a.has(i.comments_before))if(o)i.comments_before=[];else return;var l=i.comments_before;if(l||=i.comments_before=[],a.add(l),o){var u=new gA(function(e){var t=u.parent();if(t instanceof xO||t instanceof DO||t instanceof OO||t instanceof Q&&t.left===e||t.TYPE==`Call`&&t.expression===e||t instanceof ck&&t.condition===e||t instanceof tk&&t.expression===e||t instanceof $O&&t.expressions[0]===e||t instanceof rk&&t.expression===e||t instanceof sk){if(!e.start)return;var n=e.start.comments_before;n&&!a.has(n)&&(a.add(n),l=l.concat(n))}else return!0});u.push(t),o.walk(u)}if(s==0){l.length>0&&e.shebang&&l[0].type===`comment5`&&!a.has(l[0])&&(k(`#!`+l.shift().value+`
`),ee());var d=e.preamble;d&&k(d.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,`
`))}if(l=l.filter(n,t).filter(e=>!a.has(e)),l.length!=0){var f=c.hasNLB();l.forEach(function(e,t){if(a.add(e),f||(e.nlb?(k(`
`),ee(),f=!0):t>0&&j()),/comment[134]/.test(e.type)){var n=ue(e.value);n&&(k(`//`+n+`
`),ee()),f=!0}else if(e.type==`comment2`){var n=ue(e.value);n&&k(`/*`+n+`*/`),f=!1}}),f||(i.nlb?(k(`
`),ee()):j())}}function fe(e,t){var r=this,i=e.end;if(i){var a=r.printed_comments,o=i[t?`comments_before`:`comments_after`];if(!(!o||a.has(o))&&(e instanceof UD||o.every(e=>!/comment[134]/.test(e.type)))){a.add(o);var s=c.length();o.filter(n,e).forEach(function(e,n){if(!a.has(e)){if(a.add(e),b=!1,y?(k(`
`),ee(),y=!1):e.nlb&&(n>0||!c.hasNLB())?(k(`
`),ee()):(n>0||!t)&&j(),/comment[134]/.test(e.type)){let t=ue(e.value);t&&k(`//`+t),y=!0}else if(e.type==`comment2`){let t=ue(e.value);t&&k(`/*`+t+`*/`),b=!0}}}),c.length()>s&&(x=s)}}}let pe=e._destroy_ast?function(e){e.body.length=0,e.argnames.length=0}:CE;var me=[];return{get:le,toString:le,indent:ee,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return i},current_width:function(){return a-i},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return h},newline:ne,print:k,star:A,space:j,comma:se,colon:P,last:function(){return S},semicolon:re,force_semicolon:M,to_utf8:u,print_name:function(e){k(p(e))},print_string:function(e,t,n){var r=f(e,t);n===!0&&!r.includes(`\\`)&&(c.expectDirective()||M(),M()),k(r)},print_template_string_chars:function(e){var t=f(e,"`").replace(/\${/g,"\\${");return k(t.substr(1,t.length-2))},encode_string:f,next_indent:ie,with_indent:te,with_block:ae,with_parens:N,with_square:oe,add_mapping:ce,option:function(t){return e[t]},gc_scope:pe,printed_comments:l,prepend_comments:t?CE:de,append_comments:t||n===wE?CE:fe,line:function(){return o},col:function(){return a},pos:function(){return s},push_node:function(e){me.push(e)},pop_node:function(){return me.pop()},parent:function(e){return me[me.length-2-(e||0)]}}}(function(){function e(e,t){e.DEFMETHOD(`_codegen`,t)}Z.DEFMETHOD(`print`,function(e,t){var n=this,r=n._codegen;n instanceof cO?e.active_scope=n:!e.use_asm&&n instanceof GD&&n.value==`use asm`&&(e.use_asm=e.active_scope);function i(){e.prepend_comments(n),n.add_source_map(e),r(n,e),e.append_comments(n)}e.push_node(n),t||n.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),n===e.use_asm&&(e.use_asm=null)}),Z.DEFMETHOD(`_print`,Z.prototype.print),Z.DEFMETHOD(`print_to_string`,function(e){var t=kA(e);return this.print(t),t.get()});function t(e,n){Array.isArray(e)?e.forEach(function(e){t(e,n)}):e.DEFMETHOD(`needs_parens`,n)}t(Z,wE),t(pO,function(e){if(!e.has_parens()&&wA(e))return!0;if(e.option(`webkit`)){var t=e.parent();if(t instanceof ek&&t.expression===this)return!0}if(e.option(`wrap_iife`)){var t=e.parent();if(t instanceof ZO&&t.expression===this)return!0}if(e.option(`wrap_func_args`)){var t=e.parent();if(t instanceof ZO&&t.args.includes(this))return!0}return!1}),t(mO,function(e){var t=e.parent();return e.option(`wrap_func_args`)&&t instanceof ZO&&t.args.includes(this)?!0:t instanceof ek&&t.expression===this||t instanceof ck&&t.condition===this}),t(fk,function(e){return!e.has_parens()&&wA(e)}),t(Dk,wA),t(ak,function(e){var t=e.parent();return t instanceof ek&&t.expression===this||t instanceof ZO&&t.expression===this||t instanceof Q&&t.operator===`**`&&this instanceof ok&&t.left===this&&this.operator!==`++`&&this.operator!==`--`}),t(DO,function(e){var t=e.parent();return t instanceof ek&&t.expression===this||t instanceof ZO&&t.expression===this||t instanceof Q&&t.operator===`**`&&t.left===this||e.option(`safari10`)&&t instanceof ok}),t($O,function(e){var t=e.parent();return t instanceof ZO||t instanceof ak||t instanceof Q||t instanceof WO||t instanceof ek||t instanceof dk||t instanceof pk||t instanceof ck||t instanceof mO||t instanceof uk||t instanceof uO||t instanceof oO&&this===t.object||t instanceof OO||t instanceof XO}),t(Q,function(e){var t=e.parent();if(t instanceof ZO&&t.expression===this||t instanceof ak||t instanceof ek&&t.expression===this)return!0;if(t instanceof Q){let e=t.operator,n=this.operator;if(n===`??`&&(e===`||`||e===`&&`)||e===`??`&&(n===`||`||n===`&&`))return!0;let r=LD[e],i=LD[n];if(r>i||r==i&&(this===t.right||e==`**`))return!0}if(t instanceof wk){let e=this.operator,n=LD.in,r=LD[e];if(n>r||n==r&&this===t.value)return!0}}),t(wk,function(e){var t=e.parent();if(t instanceof ZO&&t.expression===this||t instanceof ak||t instanceof ek&&t.expression===this)return!0;if(t instanceof Q){let e=t.operator,n=LD[e],r=LD.in;if(n>r||n==r&&(this===t.right||e==`**`))return!0}if(t instanceof wk&&this===t.value)return!0}),t(OO,function(e){var t=e.parent();if(t instanceof Q&&t.operator!==`=`||t instanceof ZO&&t.expression===this||t instanceof ck&&t.condition===this||t instanceof ak||t instanceof ek&&t.expression===this)return!0}),t(ik,function(e){var t=e.parent();return t instanceof ZO||t instanceof ek?t.expression===this:!1}),t(ek,function(e){var t=e.parent();if(t instanceof QO&&t.expression===this)return pA(this,e=>{if(e instanceof cO)return!0;if(e instanceof ZO)return hA})}),t(ZO,function(e){var t=e.parent(),n;return t instanceof QO&&t.expression===this||t instanceof XO&&t.is_default&&this.expression instanceof pO?!0:this.expression instanceof pO&&t instanceof ek&&t.expression===this&&(n=e.parent(1))instanceof lk&&n.left===t}),t(QO,function(e){var t=e.parent();if(this.args.length===0&&(t instanceof ek||t instanceof ZO&&t.expression===this||t instanceof _O&&t.prefix===this))return!0}),t(tA,function(e){var t=e.parent();if(t instanceof ek&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(p(n)))return!0}}),t(nA,function(e){var t=e.parent();if(t instanceof ek&&t.expression===this&&this.getValue().startsWith(`-`))return!0}),t([lk,ck],function(e){var t=e.parent();if(t instanceof ak||t instanceof Q&&!(t instanceof lk)||t instanceof ZO&&t.expression===this||t instanceof ck&&t.condition===this||t instanceof ek&&t.expression===this||this instanceof lk&&this.left instanceof gO&&this.left.is_array===!1)return!0}),e(GD,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(uO,function(e,t){t.print(`...`),e.expression.print(t)}),e(gO,function(e,t){t.print(e.is_array?`[`:`{`);var n=e.names.length;e.names.forEach(function(e,r){r>0&&t.comma(),e.print(t),r==n-1&&e instanceof cA&&t.comma()}),t.print(e.is_array?`]`:`}`)}),e(WD,function(e,t){t.print(`debugger`),t.semicolon()});function n(e,t,n,r){var i=e.length-1;n.in_directive=r,e.forEach(function(e,r){n.in_directive===!0&&!(e instanceof GD||e instanceof ZD||e instanceof KD&&e.body instanceof eA)&&(n.in_directive=!1),e instanceof ZD||(n.indent(),e.print(n),r==i&&t||(n.newline(),t&&n.newline())),n.in_directive===!0&&e instanceof KD&&e.body instanceof eA&&(n.in_directive=!1)}),n.in_directive=!1}QD.DEFMETHOD(`_do_print_body`,function(e){d(this.body,e)}),e(UD,function(e,t){e.body.print(t),t.semicolon()}),e(lO,function(e,t){n(e.body,!0,t,!0),t.print(``)}),e($D,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(KD,function(e,t){e.body.print(t),t.semicolon()});function r(e,t){t.print(`{`),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.add_mapping(e.end),t.print(`}`)}function i(e,t,i){e.body.length>0?t.with_block(function(){n(e.body,!1,t,i),t.add_mapping(e.end)}):r(e,t)}e(XD,function(e,t){i(e,t)}),e(ZD,function(e,t){t.semicolon()}),e(nO,function(e,t){t.print(`do`),t.space(),m(e.body,t),t.space(),t.print(`while`),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(rO,function(e,t){t.print(`while`),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(iO,function(e,t){t.print(`for`),t.space(),t.with_parens(function(){e.init?(e.init instanceof RO?e.init.print(t):o(e.init,t,!0),t.print(`;`),t.space()):t.print(`;`),e.condition?(e.condition.print(t),t.print(`;`),t.space()):t.print(`;`),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(aO,function(e,t){t.print(`for`),e.await&&(t.space(),t.print(`await`)),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print(e instanceof oO?`of`:`in`),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(sO,function(e,t){t.print(`with`),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),dO.DEFMETHOD(`_do_print`,function(e,t){var n=this;t||(n.async&&(e.print(`async`),e.space()),e.print(`function`),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof Ok?n.name.print(e):t&&n.name instanceof Z&&e.with_square(function(){n.name.print(e)}),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),i(n,e,!0)}),e(dO,function(e,t){e._do_print(t),t.gc_scope(e)}),e(_O,function(e,t){var n=e.prefix,r=n instanceof dO||n instanceof Q||n instanceof ck||n instanceof $O||n instanceof ak||n instanceof tk&&n.expression instanceof fk;r&&t.print(`(`),e.prefix.print(t),r&&t.print(`)`),e.template_string.print(t)}),e(vO,function(e,t){var n=t.parent()instanceof _O;t.print("`");for(var r=0;r<e.segments.length;r++)e.segments[r]instanceof yO?n?t.print(e.segments[r].raw):t.print_template_string_chars(e.segments[r].value):(t.print("${"),e.segments[r].print(t),t.print(`}`));t.print("`")}),e(yO,function(e,t){t.print_template_string_chars(e.value)}),mO.DEFMETHOD(`_do_print`,function(e){var t=this,n=e.parent(),r=n instanceof Q&&!(n instanceof lk)&&!(n instanceof uk)||n instanceof ak||n instanceof ZO&&t===n.expression;r&&e.print(`(`),t.async&&(e.print(`async`),e.space()),t.argnames.length===1&&t.argnames[0]instanceof Ok?t.argnames[0].print(e):e.with_parens(function(){t.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),e.print(`=>`),e.space();let a=t.body[0];if(t.body.length===1&&a instanceof SO){let t=a.value;t?TA(t)?(e.print(`(`),t.print(e),e.print(`)`)):t.print(e):e.print(`{}`)}else i(t,e);r&&e.print(`)`),e.gc_scope(t)}),xO.DEFMETHOD(`_do_print`,function(e,t){if(e.print(t),this.value){e.space();let t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print(`(`),this.value.print(e),e.print(`)`)):this.value.print(e)}e.semicolon()}),e(SO,function(e,t){e._do_print(t,`return`)}),e(CO,function(e,t){e._do_print(t,`throw`)}),e(OO,function(e,t){var n=e.is_star?`*`:``;t.print(`yield`+n),e.expression&&(t.space(),e.expression.print(t))}),e(DO,function(e,t){t.print(`await`),t.space();var n=e.expression,r=!(n instanceof ZO||n instanceof $||n instanceof ek||n instanceof ak||n instanceof $k||n instanceof DO||n instanceof fk);r&&t.print(`(`),e.expression.print(t),r&&t.print(`)`)}),wO.DEFMETHOD(`_do_print`,function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(TO,function(e,t){e._do_print(t,`break`)}),e(EO,function(e,t){e._do_print(t,`continue`)});function a(e,t){var n=e.body;if(t.option(`braces`)||t.option(`ie8`)&&n instanceof nO)return m(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof kO){if(!n.alternative){m(e.body,t);return}n=n.alternative}else if(n instanceof QD)n=n.body;else break;d(e.body,t)}e(kO,function(e,t){t.print(`if`),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(a(e,t),t.space(),t.print(`else`),t.space(),e.alternative instanceof kO?e.alternative.print(t):d(e.alternative,t)):e._do_print_body(t)}),e(AO,function(e,t){t.print(`switch`),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?r(e,t):t.with_block(function(){e.body.forEach(function(e,r){t.indent(!0),e.print(t),r<n&&e.body.length>0&&t.newline()})})}),jO.DEFMETHOD(`_do_print_body`,function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),e(MO,function(e,t){t.print(`default:`),e._do_print_body(t)}),e(NO,function(e,t){t.print(`case`),t.space(),e.expression.print(t),t.print(`:`),e._do_print_body(t)}),e(PO,function(e,t){t.print(`try`),t.space(),e.body.print(t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(FO,function(e,t){i(e,t)}),e(IO,function(e,t){t.print(`catch`),e.argname&&(t.space(),t.with_parens(function(){e.argname.print(t)})),t.space(),i(e,t)}),e(LO,function(e,t){t.print(`finally`),t.space(),i(e,t)}),RO.DEFMETHOD(`_do_print`,function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(!(n instanceof iO||n instanceof aO)||n&&n.init!==this)&&e.semicolon()}),e(VO,function(e,t){e._do_print(t,`let`)}),e(BO,function(e,t){e._do_print(t,`var`)}),e(HO,function(e,t){e._do_print(t,`const`)}),e(UO,function(e,t){e._do_print(t,e.await?`await using`:`using`)}),e(JO,function(e,t){t.print(`import`),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(`,`),t.space()),e.imported_names&&(e.imported_names.length===1&&e.imported_names[0].foreign_name.name===`*`&&!e.imported_names[0].foreign_name.quote?e.imported_names[0].print(t):(t.print(`{`),e.imported_names.forEach(function(n,r){t.space(),n.print(t),r<e.imported_names.length-1&&t.print(`,`)}),t.space(),t.print(`}`))),(e.imported_name||e.imported_names)&&(t.space(),t.print(`from`),t.space()),e.module_name.print(t),e.attributes&&(t.print(`with`),e.attributes.print(t)),t.semicolon()}),e(YO,function(e,t){t.print(`import.meta`)}),e(qO,function(e,t){var n=t.parent()instanceof JO,r=e.name.definition(),i=e.foreign_name,a=(r&&r.mangled_name||e.name.name)!==i.name;!a&&i.name===`*`&&!!i.quote!=!!e.name.quote&&(a=!0);var o=!i.quote;a?(n?o?t.print(i.name):t.print_string(i.name,i.quote):e.name.quote?t.print_string(e.name.name,e.name.quote):e.name.print(t),t.space(),t.print(`as`),t.space(),n?e.name.print(t):o?t.print(i.name):t.print_string(i.name,i.quote)):e.name.quote?t.print_string(e.name.name,e.name.quote):e.name.print(t)}),e(XO,function(e,t){if(t.print(`export`),t.space(),e.is_default&&(t.print(`default`),t.space()),e.exported_names)e.exported_names.length===1&&e.exported_names[0].name.name===`*`&&!e.exported_names[0].name.quote?e.exported_names[0].print(t):(t.print(`{`),e.exported_names.forEach(function(n,r){t.space(),n.print(t),r<e.exported_names.length-1&&t.print(`,`)}),t.space(),t.print(`}`));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof zO))return;e.module_name&&(t.space(),t.print(`from`),t.space(),e.module_name.print(t)),e.attributes&&(t.print(`with`),e.attributes.print(t)),(e.exported_value&&!(e.exported_value instanceof hO||e.exported_value instanceof pO||e.exported_value instanceof xk)||e.module_name||e.exported_names)&&t.semicolon()});function o(e,t,n){var r=!1;n&&(r=pA(e,e=>{if(e instanceof cO&&!(e instanceof mO))return!0;if(e instanceof Q&&e.operator==`in`||e instanceof wk)return hA})),e.print(t,r)}e(WO,function(e,t){if(e.name.print(t),e.value){t.space(),t.print(`=`),t.space();var n=t.parent(1),r=n instanceof iO||n instanceof aO;o(e.value,t,r)}}),e(ZO,function(e,t){e.expression.print(t),!(e instanceof QO&&e.args.length===0)&&((e.expression instanceof ZO||e.expression instanceof dO)&&t.add_mapping(e.start),e.optional&&t.print(`?.`),t.with_parens(function(){e.args.forEach(function(e,n){n&&t.comma(),e.print(t)})}))}),e(QO,function(e,t){t.print(`new`),t.space(),ZO.prototype._codegen(e,t)}),$O.DEFMETHOD(`_do_print`,function(e){this.expressions.forEach(function(t,n){n>0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),e($O,function(e,t){e._do_print(t)}),e(tk,function(e,t){var n=e.expression;n.print(t);var r=e.property,i=QE.has(r)?t.option(`ie8`):!ED(r,t.option(`ecma`)>=2015&&!t.option(`safari10`));e.optional&&t.print(`?.`),i?(t.print(`[`),t.add_mapping(e.end),t.print_string(r),t.print(`]`)):(n instanceof tA&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(`.`)),e.optional||t.print(`.`),t.add_mapping(e.end),t.print_name(r))}),e(nk,function(e,t){e.expression.print(t);var n=e.property;e.optional&&t.print(`?`),t.print(`.#`),t.add_mapping(e.end),t.print_name(n)}),e(rk,function(e,t){e.expression.print(t),e.optional&&t.print(`?.`),t.print(`[`),e.property.print(t),t.print(`]`)}),e(ik,function(e,t){e.expression.print(t)}),e(ok,function(e,t){var n=e.operator;n===`--`&&t.last().endsWith(`!`)&&t.print(` `),t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof ok&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(sk,function(e,t){e.expression.print(t),t.print(e.operator)}),e(Q,function(e,t){var n=e.operator;e.left.print(t),n[0]==`>`&&t.last().endsWith(`--`)?t.print(` `):t.space(),t.print(n),t.space(),e.right.print(t)}),e(ck,function(e,t){e.condition.print(t),t.space(),t.print(`?`),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(dk,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof cA&&t.comma()}),r>0&&t.space()})}),e(fk,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(`,`),t.newline()),t.indent(),e.print(t)}),t.newline()}):r(e,t)}),e(xk,function(e,t){if(t.print(`class`),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof $)&&!(e.extends instanceof ek)&&!(e.extends instanceof Dk)&&!(e.extends instanceof pO);t.print(`extends`),n?t.print(`(`):t.space(),e.extends.print(t),n?t.print(`)`):t.space()}e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&t.newline(),t.indent(),e.print(t)}),t.newline()}):t.print(`{}`)}),e(kk,function(e,t){t.print(`new.target`)});function s(e,t,n){return n.option(`quote_keys`)?(n.print_string(e),!1):``+ +e==e&&e>=0?n.option(`keep_numbers`)?(n.print(e),!1):(n.print(p(e)),!1):(QE.has(e)?n.option(`ie8`):n.option(`ecma`)<2015||n.option(`safari10`)?!TD(e):!ED(e,!0))||t&&n.option(`keep_quoted_props`)?(n.print_string(e,t),!1):(n.print_name(e),!0)}e(mk,function(e,t){function n(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}let r=t.option(`shorthand`)&&!(e.key instanceof Z);r&&e.value instanceof Ok&&n(e.value)===e.key&&!QE.has(e.key)?s(e.key,e.quote,t)||(t.colon(),e.value.print(t)):r&&e.value instanceof uk&&e.value.left instanceof Ok&&n(e.value.left)===e.key?(s(e.key,e.quote,t)||(t.colon(),e.value.left.print(t)),t.space(),t.print(`=`),t.space(),e.value.right.print(t)):(e.key instanceof Z?t.with_square(function(){e.key.print(t)}):s(e.key,e.quote,t),t.colon(),e.value.print(t))}),e(Ck,(e,t)=>{e.static&&(t.print(`static`),t.space()),t.print(`#`),s(e.key.name,void 0,t),e.value&&(t.print(`=`),e.value.print(t)),t.semicolon()}),e(Sk,(e,t)=>{e.static&&(t.print(`static`),t.space()),e.key instanceof zk?s(e.key.name,e.quote,t):(t.print(`[`),e.key.print(t),t.print(`]`)),e.value&&(t.print(`=`),e.value.print(t)),t.semicolon()}),pk.DEFMETHOD(`_print_getter_setter`,function(e,t,n){var r=this;r.static&&(n.print(`static`),n.space()),e&&(n.print(e),n.space()),r.key instanceof Rk?(t&&n.print(`#`),s(r.key.name,r.quote,n),r.key.add_source_map(n)):n.with_square(function(){r.key.print(n)}),r.value._do_print(n,!0)}),e(_k,function(e,t){e._print_getter_setter(`set`,!1,t)}),e(vk,function(e,t){e._print_getter_setter(`get`,!1,t)}),e(hk,function(e,t){e._print_getter_setter(`set`,!0,t)}),e(gk,function(e,t){e._print_getter_setter(`get`,!0,t)}),e(yk,function(e,t){var n;e.value.is_generator&&e.value.async?n=`async*`:e.value.is_generator?n=`*`:e.value.async&&(n=`async`),e._print_getter_setter(n,!1,t)}),e(bk,function(e,t){var n;e.value.is_generator&&e.value.async?n=`async*`:e.value.is_generator?n=`*`:e.value.async&&(n=`async`),e._print_getter_setter(n,!0,t)}),e(wk,function(e,t){e.key.print(t),t.space(),t.print(`in`),t.space(),e.value.print(t)}),e(Xk,function(e,t){t.print(`#`+e.name)}),e(Ek,function(e,t){t.print(`static`),t.space(),i(e,t)}),Ok.DEFMETHOD(`_do_print`,function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)}),e(Ok,function(e,t){e._do_print(t)}),e(cA,CE),e(Zk,function(e,t){t.print(`this`)}),e(Qk,function(e,t){t.print(`super`)}),e($k,function(e,t){t.print(e.getValue())}),e(eA,function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)}),e(tA,function(e,t){(t.option(`keep_numbers`)||t.use_asm)&&e.raw?t.print(e.raw):t.print(p(e.getValue()))}),e(nA,function(e,t){t.option(`keep_numbers`)&&e.raw?t.print(e.raw):t.print(e.getValue()+`n`)});let c=/(<\s*\/\s*script)/i,l=/^\s*script/i,u=(e,t)=>t.replace(`/`,`\\/`);e(rA,function(e,t){let{source:n,flags:r}=e.getValue();n=BE(n),r=r?UE(r):``,n=n.replace(c,u),l.test(n)&&t.last().endsWith(`<`)&&t.print(` `),t.print(t.to_utf8(`/${n}/${r}`,!1,!0));let i=t.parent();i instanceof Q&&/^\w/.test(i.operator)&&i.left===e&&t.print(` `)});function d(e,t){t.option(`braces`)?m(e,t):!e||e instanceof ZD?t.force_semicolon():e instanceof RO&&!(e instanceof BO)||e instanceof xk?m(e,t):e.print(t)}function f(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(t=e[r],n=t.length);return t}function p(e){var t=e.toString(10).replace(/^0\./,`.`).replace(`e+`,`e`),n=[t];Math.floor(e)===e&&(e<0?n.push(`-0x`+(-e).toString(16).toLowerCase()):n.push(`0x`+e.toString(16).toLowerCase()));var r,i,a;return(r=/^\.0+/.exec(t))?(i=r[0].length,a=t.slice(i),n.push(a+`e-`+(a.length+i-1))):(r=/0+$/.exec(t))?(i=r[0].length,n.push(t.slice(0,-i)+`e`+i)):(r=/^(\d)\.(\d+)e(-?\d+)$/.exec(t))&&n.push(r[1]+r[2]+`e`+(r[3]-r[2].length)),f(n)}function m(e,t){!e||e instanceof ZD?t.print(`{}`):e instanceof XD?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function h(e,t){e.forEach(function(e){e.DEFMETHOD(`add_source_map`,t)})}h([Z,$D,lO],CE),h([dk,XD,IO,xk,$k,WD,RO,GD,LO,bO,dO,QO,fk,QD,Ok,AO,jO,vO,yO,PO],function(e){e.add_mapping(this.start)}),h([vk,_k,gk,hk,yk,bk],function(e){e.add_mapping(this.start,!1)}),h([Rk,Xk],function(e){let t=this.end&&this.end.type;t===`name`||t===`privatename`?e.add_mapping(this.end,this.name):e.add_mapping(this.end)}),h([pk],function(e){e.add_mapping(this.start,this.key)})})();const AA=(e,t)=>e===null&&t===null||e.TYPE===t.TYPE&&e.shallow_cmp(t),jA=(e,t)=>{if(!AA(e,t))return!1;let n=[e],r=[t],i=n.push.bind(n),a=r.push.bind(r);for(;n.length&&r.length;){let e=n.pop(),t=r.pop();if(!AA(e,t)||(e._children_backwards(i),t._children_backwards(a),n.length!==r.length))return!1}return n.length==0&&r.length==0},MA=()=>!0;Z.prototype.shallow_cmp=function(){throw Error(`did not find a shallow_cmp function for `+this.constructor.name)},WD.prototype.shallow_cmp=MA,GD.prototype.shallow_cmp=function(e){return this.value===e.value},KD.prototype.shallow_cmp=MA,YD.prototype.shallow_cmp=MA,ZD.prototype.shallow_cmp=MA,$D.prototype.shallow_cmp=function(e){return this.label.name===e.label.name},nO.prototype.shallow_cmp=MA,rO.prototype.shallow_cmp=MA,iO.prototype.shallow_cmp=function(e){return(this.init==null?e.init==null:this.init===e.init)&&(this.condition==null?e.condition==null:this.condition===e.condition)&&(this.step==null?e.step==null:this.step===e.step)},aO.prototype.shallow_cmp=MA,oO.prototype.shallow_cmp=MA,sO.prototype.shallow_cmp=MA,lO.prototype.shallow_cmp=MA,uO.prototype.shallow_cmp=MA,dO.prototype.shallow_cmp=function(e){return this.is_generator===e.is_generator&&this.async===e.async},gO.prototype.shallow_cmp=function(e){return this.is_array===e.is_array},_O.prototype.shallow_cmp=MA,vO.prototype.shallow_cmp=MA,yO.prototype.shallow_cmp=function(e){return this.value===e.value},bO.prototype.shallow_cmp=MA,wO.prototype.shallow_cmp=MA,DO.prototype.shallow_cmp=MA,OO.prototype.shallow_cmp=function(e){return this.is_star===e.is_star},kO.prototype.shallow_cmp=function(e){return this.alternative==null?e.alternative==null:this.alternative===e.alternative},AO.prototype.shallow_cmp=MA,jO.prototype.shallow_cmp=MA,PO.prototype.shallow_cmp=function(e){return this.body===e.body&&(this.bcatch==null?e.bcatch==null:this.bcatch===e.bcatch)&&(this.bfinally==null?e.bfinally==null:this.bfinally===e.bfinally)},IO.prototype.shallow_cmp=function(e){return this.argname==null?e.argname==null:this.argname===e.argname},LO.prototype.shallow_cmp=MA,RO.prototype.shallow_cmp=MA,WO.prototype.shallow_cmp=function(e){return this.value==null?e.value==null:this.value===e.value},qO.prototype.shallow_cmp=MA,JO.prototype.shallow_cmp=function(e){return(this.imported_name==null?e.imported_name==null:this.imported_name===e.imported_name)&&(this.imported_names==null?e.imported_names==null:this.imported_names===e.imported_names)&&(this.attributes==null?e.attributes==null:this.attributes===e.attributes)},YO.prototype.shallow_cmp=MA,XO.prototype.shallow_cmp=function(e){return(this.exported_definition==null?e.exported_definition==null:this.exported_definition===e.exported_definition)&&(this.exported_value==null?e.exported_value==null:this.exported_value===e.exported_value)&&(this.exported_names==null?e.exported_names==null:this.exported_names===e.exported_names)&&(this.attributes==null?e.attributes==null:this.attributes===e.attributes)&&this.module_name===e.module_name&&this.is_default===e.is_default},ZO.prototype.shallow_cmp=MA,$O.prototype.shallow_cmp=MA,ek.prototype.shallow_cmp=MA,ik.prototype.shallow_cmp=MA,tk.prototype.shallow_cmp=function(e){return this.property===e.property},nk.prototype.shallow_cmp=function(e){return this.property===e.property},ak.prototype.shallow_cmp=function(e){return this.operator===e.operator},Q.prototype.shallow_cmp=function(e){return this.operator===e.operator},wk.prototype.shallow_cmp=MA,ck.prototype.shallow_cmp=MA,dk.prototype.shallow_cmp=MA,fk.prototype.shallow_cmp=MA,pk.prototype.shallow_cmp=MA,mk.prototype.shallow_cmp=function(e){return this.key===e.key&&this.quote===e.quote},_k.prototype.shallow_cmp=function(e){return this.static===e.static},vk.prototype.shallow_cmp=function(e){return this.static===e.static},yk.prototype.shallow_cmp=function(e){return this.static===e.static},bk.prototype.shallow_cmp=function(e){return this.static===e.static},xk.prototype.shallow_cmp=function(e){return(this.name==null?e.name==null:this.name===e.name)&&(this.extends==null?e.extends==null:this.extends===e.extends)},Sk.prototype.shallow_cmp=function(e){return this.static===e.static&&(typeof this.key==`string`?this.key===e.key:!0)},Ck.prototype.shallow_cmp=function(e){return this.static===e.static},Ok.prototype.shallow_cmp=function(e){return this.name===e.name},kk.prototype.shallow_cmp=MA,Zk.prototype.shallow_cmp=MA,Qk.prototype.shallow_cmp=MA,eA.prototype.shallow_cmp=function(e){return this.value===e.value},tA.prototype.shallow_cmp=function(e){return this.value===e.value},nA.prototype.shallow_cmp=function(e){return this.value===e.value},rA.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},iA.prototype.shallow_cmp=MA;let NA=null,PA=null,FA=null;var IA=class e{constructor(t,n,r){this.name=n.name,this.orig=[n],this.init=r,this.eliminated=0,this.assignments=0,this.scope=t,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=e.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof Z?this.fixed:this.fixed()}unmangleable(e){return e||={},NA&&NA.has(this.id)&&RE(e.keep_fnames,this.orig[0].name)?!0:this.global&&!e.toplevel||this.export&1||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof Bk||this.orig[0]instanceof Lk)&&RE(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof Rk||(this.orig[0]instanceof Hk||this.orig[0]instanceof Vk)&&RE(e.keep_classnames,this.orig[0].name)}mangle(e){let t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope,r=this.orig[0];e.ie8&&r instanceof Bk&&(n=n.parent_scope);let i=LA(this);this.mangled_name=i?i.mangled_name||i.name:n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}};IA.next_id=1;function LA(e){if(e.orig[0]instanceof Uk&&e.scope.is_block_scope())return e.scope.get_defun_scope().variables.get(e.name)}cO.DEFMETHOD(`figure_out_scope`,function(e,{parent_scope:t=void 0,toplevel:n=this}={}){if(e=SE(e,{cache:null,ie8:!1,safari10:!1,module:!1}),!(n instanceof lO))throw Error(`Invalid toplevel scope`);var r=this.parent_scope=t,i=new Map,a=null,o=null,s=[],c=new gA((t,n)=>{if(t.is_block_scope()){let i=r;if(t.block_scope=r=new cO(t),r._block_scope=!0,r.init_scope_vars(i),r.uses_with=i.uses_with,r.uses_eval=i.uses_eval,e.safari10&&(t instanceof iO||t instanceof aO||t instanceof oO)&&s.push(r),t instanceof AO){let e=r;r=i,t.expression.walk(c),r=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else n();return r=i,!0}if(t instanceof gO){let e=o;return o=t,n(),o=e,!0}if(t instanceof cO){t.init_scope_vars(r);var u=r,d=a,f=i;return a=r=t,i=new Map,n(),r=u,a=d,i=f,!0}if(t instanceof $D){var p=t.label;if(i.has(p.name))throw Error(AE(`Label {name} defined twice`,p));return i.set(p.name,p),n(),i.delete(p.name),!0}if(t instanceof sO){for(var m=r;m;m=m.parent_scope)m.uses_with=!0;return}if(t instanceof Ok&&(t.scope=r),t instanceof Kk&&(t.thedef=t,t.references=[]),t instanceof Bk)a.def_function(t,t.name==`arguments`?void 0:a);else if(t instanceof Lk){let e=a.parent_scope;t.scope=c.directives[`use strict`]?e:e.get_defun_scope(),l(t.scope.def_function(t,a),1)}else if(t instanceof Hk)l(a.def_variable(t,a),1);else if(t instanceof Wk)r.def_variable(t);else if(t instanceof Vk)l((t.scope=a.parent_scope).def_function(t,a),1);else if(t instanceof jk||t instanceof Fk||t instanceof Nk||t instanceof Pk||t instanceof Uk){var h=t instanceof Mk?r.def_variable(t,null):a.def_variable(t,t.TYPE==`SymbolVar`?null:void 0);if(h.orig.every(e=>e===t?!0:t instanceof Mk?e instanceof Bk:!(e instanceof Fk||e instanceof Nk||e instanceof Pk))||kD(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Ik||l(h,2),a!==r){t.mark_enclosed();var h=r.find_variable(t);t.thedef!==h&&(t.thedef=h,t.reference())}}else if(t instanceof Yk){var g=i.get(t.name);if(!g)throw Error(AE(`Undefined label {name} [{line},{col}]`,{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=g}!(r instanceof lO)&&(t instanceof XO||t instanceof JO)&&kD(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)});e.module&&(c.directives[`use strict`]=!0),this.walk(c);function l(e,t){if(o){var n=0;do t++;while(c.parent(n++)!==o)}var r=c.parent(t);if(e.export=r instanceof XO?1:0){var i=r.exported_definition;(i instanceof hO||i instanceof Tk)&&r.is_default&&(e.export=2)}}this instanceof lO&&(this.globals=new Map);var c=new gA(e=>{if(e instanceof wO&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof $){var t=e.name;if(t==`eval`&&c.parent()instanceof ZO)for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope)r.uses_eval=!0;var i;return c.parent()instanceof qO&&c.parent(1).module_name||!(i=e.scope.find_variable(t))?(i=n.def_global(e),e instanceof qk&&(i.export=1)):i.scope instanceof dO&&t==`arguments`&&(i.scope.get_defun_scope().uses_arguments=!0),e.thedef=i,e.reference(),e.scope.is_block_scope()&&!(i.orig[0]instanceof Mk)&&(e.scope=e.scope.get_defun_scope()),!0}var a;if(e instanceof Uk&&(a=LA(e.definition())))for(var r=e.scope;r&&(kE(r.enclosed,a),r!==a.scope);)r=r.parent_scope});if(this.walk(c),(e.ie8||e.safari10)&&pA(this,e=>{if(e instanceof Uk){var t=e.name,r=e.thedef.references,i=e.scope.get_defun_scope(),a=i.find_variable(t)||n.globals.get(t)||i.def_variable(e);return r.forEach(function(e){e.thedef=a,e.reference()}),e.thedef=a,e.reference(),!0}}),e.safari10)for(let e of s)e.parent_scope.variables.forEach(function(t){kE(e.enclosed,t)})}),lO.DEFMETHOD(`def_global`,function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new IA(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),cO.DEFMETHOD(`init_scope_vars`,function(e){this.variables=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),cO.DEFMETHOD(`conflicting_def`,function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)}),cO.DEFMETHOD(`conflicting_def_shallow`,function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)}),cO.DEFMETHOD(`add_child_scope`,function(e){if(e.parent_scope===this)return;e.parent_scope=this,e instanceof mO&&this instanceof dO&&!this.uses_arguments&&(this.uses_arguments=pA(e,e=>{if(e instanceof $&&e.scope instanceof dO&&e.name===`arguments`)return hA;if(e instanceof dO&&!(e instanceof mO))return!0})),this.uses_with=this.uses_with||e.uses_with,this.uses_eval=this.uses_eval||e.uses_eval;let t=(()=>{let e=[],t=this;do e.push(t);while(t=t.parent_scope);return e.reverse(),e})(),n=new Set(e.enclosed),r=[];for(let e of t){r.forEach(t=>kE(e.enclosed,t));for(let t of e.variables.values())n.has(t)&&(kE(r,t),kE(e.enclosed,t))}});function RA(e){let t=new Set;for(let n of new Set(e))(function e(n){n==null||t.has(n)||(t.add(n),e(n.parent_scope))})(n);return[...t]}cO.DEFMETHOD(`create_symbol`,function(e,{source:t,tentative_name:n,scope:r,conflict_scopes:i=[r],init:a=null}={}){let o;if(i=RA(i),n){n=o=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,`_`);let e=0;for(;i.find(e=>e.conflicting_def_shallow(o));)o=n+`$`+ e++}if(!o)throw Error(`No symbol name could be generated in create_symbol()`);let s=Y(e,t,{name:o,scope:r});return this.def_variable(s,a||null),s.mark_enclosed(),s}),Z.DEFMETHOD(`is_block_scope`,wE),xk.DEFMETHOD(`is_block_scope`,wE),dO.DEFMETHOD(`is_block_scope`,wE),lO.DEFMETHOD(`is_block_scope`,wE),jO.DEFMETHOD(`is_block_scope`,wE),YD.DEFMETHOD(`is_block_scope`,TE),cO.DEFMETHOD(`is_block_scope`,function(){return this._block_scope||!1}),eO.DEFMETHOD(`is_block_scope`,TE),dO.DEFMETHOD(`init_scope_vars`,function(){cO.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Ik({name:`arguments`,start:this.start,end:this.end}))}),mO.DEFMETHOD(`init_scope_vars`,function(){cO.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),Ok.DEFMETHOD(`mark_enclosed`,function(){for(var e=this.definition(),t=this.scope;t&&(kE(t.enclosed,e),t!==e.scope);)t=t.parent_scope}),Ok.DEFMETHOD(`reference`,function(){this.definition().references.push(this),this.mark_enclosed()}),cO.DEFMETHOD(`find_variable`,function(e){return e instanceof Ok&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),cO.DEFMETHOD(`def_function`,function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof hO)&&(n.init=t),n}),cO.DEFMETHOD(`def_variable`,function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof pO)&&(n.init=t)):(n=new IA(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n});function zA(e,t){let n;FA&&(n=e.get_defun_scope())&&FA.has(n)&&(e=n);var r=e.enclosed,i=t.nth_identifier;out:for(;;){var a=i.get(++e.cname);if(!QE.has(a)&&!t.reserved.has(a)){if(PA&&PA.has(a))continue out;for(let e=r.length;--e>=0;){let n=r[e];if(a==(n.mangled_name||n.unmangleable(t)&&n.name))continue out}return a}}}cO.DEFMETHOD(`next_mangled`,function(e){return zA(this,e)}),lO.DEFMETHOD(`next_mangled`,function(e){let t,n=this.mangled_names;do t=zA(this,e);while(n.has(t));return t}),pO.DEFMETHOD(`next_mangled`,function(e,t){for(var n=t.orig[0]instanceof Ik&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var i=zA(this,e);if(!r||r!=i)return i}}),Ok.DEFMETHOD(`unmangleable`,function(e){var t=this.definition();return!t||t.unmangleable(e)}),Kk.DEFMETHOD(`unmangleable`,wE),Ok.DEFMETHOD(`unreferenced`,function(){return!this.definition().references.length&&!this.scope.pinned()}),Ok.DEFMETHOD(`definition`,function(){return this.thedef}),Ok.DEFMETHOD(`global`,function(){return this.thedef.global});function BA(e){return e=SE(e,{eval:!1,nth_identifier:VA,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1}),e.module&&(e.toplevel=!0),!Array.isArray(e.reserved)&&!(e.reserved instanceof Set)&&(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add(`arguments`),e}lO.DEFMETHOD(`mangle_names`,function(e){e=BA(e);var t=e.nth_identifier,n=-1,r=[];e.keep_fnames&&(NA=new Set);let i=this.mangled_names=new Set;PA=new Set,e.cache&&(this.globals.forEach(o),e.cache.props&&e.cache.props.forEach(function(e){i.add(e)}));var a=new gA(function(i,s){if(i instanceof $D){var c=n;return s(),n=c,!0}if(i instanceof hO&&!(a.parent()instanceof cO)&&(FA||=new Set,FA.add(i.parent_scope.get_defun_scope())),i instanceof cO){i.variables.forEach(o);return}if(i.is_block_scope()){i.block_scope.variables.forEach(o);return}if(NA&&i instanceof GO&&i.value instanceof dO&&!i.value.name&&RE(e.keep_fnames,i.name.name)){NA.add(i.name.definition().id);return}if(i instanceof Kk){let e;do e=t.get(++n);while(QE.has(e));return i.mangled_name=e,!0}if(!(e.ie8||e.safari10)&&i instanceof Uk){r.push(i.definition());return}});this.walk(a),(e.keep_fnames||e.keep_classnames)&&r.forEach(t=>{t.name.length<6&&t.unmangleable(e)&&PA.add(t.name)}),r.forEach(t=>{t.mangle(e)}),NA=null,PA=null,FA=null;function o(t){t.export&1?PA.add(t.name):e.reserved.has(t.name)||r.push(t)}}),lO.DEFMETHOD(`find_colliding_names`,function(e){let t=e.cache&&e.cache.props,n=new Set;return e.reserved.forEach(r),this.globals.forEach(i),this.walk(new gA(function(e){e instanceof cO&&e.variables.forEach(i),e instanceof Uk&&i(e.definition())})),n;function r(e){n.add(e)}function i(n){var i=n.name;if(n.global&&t&&t.has(i))i=t.get(i);else if(!n.unmangleable(e))return;r(i)}}),lO.DEFMETHOD(`expand_names`,function(e){e=BA(e);var t=e.nth_identifier;t.reset&&t.sort&&(t.reset(),t.sort());var n=this.find_colliding_names(e),r=0;this.globals.forEach(a),this.walk(new gA(function(e){e instanceof cO&&e.variables.forEach(a),e instanceof Uk&&a(e.definition())}));function i(){var e;do e=t.get(r++);while(n.has(e)||QE.has(e));return e}function a(t){if(t.global&&e.cache||t.unmangleable(e)||e.reserved.has(t.name))return;let n=LA(t),r=t.name=n?n.name:i();t.orig.forEach(function(e){e.name=r}),t.references.forEach(function(e){e.name=r})}}),Z.DEFMETHOD(`tail_node`,EE),$O.DEFMETHOD(`tail_node`,function(){return this.expressions[this.expressions.length-1]}),lO.DEFMETHOD(`compute_char_frequency`,function(e){e=BA(e);var t=e.nth_identifier;if(!t.reset||!t.consider||!t.sort)return;t.reset();try{Z.prototype.print=function(r,i){this._print(r,i),this instanceof Ok&&!this.unmangleable(e)?t.consider(this.name,-1):e.properties&&(this instanceof nk?t.consider(`#`+this.property,-1):this instanceof tk?t.consider(this.property,-1):this instanceof rk&&n(this.property))},t.consider(this.print_to_string(),1)}finally{Z.prototype.print=Z.prototype._print}t.sort();function n(e){e instanceof eA?t.consider(e.value,-1):e instanceof ck?(n(e.consequent),n(e.alternative)):e instanceof $O&&n(e.tail_node())}});const VA=(()=>{let e=`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_`.split(``),t=`0123456789`.split(``),n,r;function i(){r=new Map,e.forEach(function(e){r.set(e,0)}),t.forEach(function(e){r.set(e,0)})}function a(e,t){for(var n=e.length;--n>=0;)r.set(e[n],r.get(e[n])+t)}function o(e,t){return r.get(t)-r.get(e)}function s(){n=ME(e,o).concat(ME(t,o))}i(),s();function c(e){var t=``,r=54;e++;do e--,t+=n[e%r],e=Math.floor(e/r),r=64;while(e>0);return t}return{get:c,consider:a,reset:i,sort:s}})();let HA;Z.prototype.size=function(e,t){HA=e&&e._mangle_options;let n=0;return mA(this,(e,t)=>{if(n+=e._size(t),e instanceof mO&&e.is_braceless())return n+=e.body[0].value._size(t),!0},t||e&&e.stack),HA=void 0,n},Z.prototype._size=()=>0,WD.prototype._size=()=>8,GD.prototype._size=function(){return 2+this.value.length};const UA=e=>e.length&&e.length-1;YD.prototype._size=function(){return 2+UA(this.body)},lO.prototype._size=function(){return UA(this.body)},ZD.prototype._size=()=>1,$D.prototype._size=()=>2,nO.prototype._size=()=>9,rO.prototype._size=()=>7,iO.prototype._size=()=>8,aO.prototype._size=()=>8,sO.prototype._size=()=>6,uO.prototype._size=()=>3;const WA=e=>(e.is_generator?1:0)+(e.async?6:0);fO.prototype._size=function(){return WA(this)+4+UA(this.argnames)+UA(this.body)},pO.prototype._size=function(e){return!!wA(e)*2+WA(this)+12+UA(this.argnames)+UA(this.body)},hO.prototype._size=function(){return WA(this)+13+UA(this.argnames)+UA(this.body)},mO.prototype._size=function(){let e=2+UA(this.argnames);this.argnames.length===1&&this.argnames[0]instanceof Ok||(e+=2);let t=this.is_braceless()?0:UA(this.body)+2;return WA(this)+e+t},gO.prototype._size=()=>2,vO.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3},yO.prototype._size=function(){return this.value.length},SO.prototype._size=function(){return this.value?7:6},CO.prototype._size=()=>6,TO.prototype._size=function(){return this.label?6:5},EO.prototype._size=function(){return this.label?9:8},kO.prototype._size=()=>4,AO.prototype._size=function(){return 8+UA(this.body)},NO.prototype._size=function(){return 5+UA(this.body)},MO.prototype._size=function(){return 8+UA(this.body)},PO.prototype._size=()=>3,IO.prototype._size=function(){let e=7+UA(this.body);return this.argname&&(e+=2),e},LO.prototype._size=function(){return 7+UA(this.body)},BO.prototype._size=function(){return 4+UA(this.definitions)},VO.prototype._size=function(){return 4+UA(this.definitions)},HO.prototype._size=function(){return 6+UA(this.definitions)},UO.prototype._size=function(){return(this.await?6:0)+6+UA(this.definitions)},WO.prototype._size=function(){return this.value?1:0},qO.prototype._size=function(){return this.name?4:0},JO.prototype._size=function(){let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+UA(this.imported_names)),e},YO.prototype._size=()=>11,XO.prototype._size=function(){let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size()),this.exported_names&&(e+=2+UA(this.exported_names)),this.module_name&&(e+=5),e},ZO.prototype._size=function(){return this.optional?4+UA(this.args):2+UA(this.args)},QO.prototype._size=function(){return 6+UA(this.args)},$O.prototype._size=function(){return UA(this.expressions)},tk.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},nk.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},rk.prototype._size=function(){return this.optional?4:2},ak.prototype._size=function(){return this.operator===`typeof`?7:this.operator===`void`?5:this.operator.length},Q.prototype._size=function(e){if(this.operator===`in`)return 4;let t=this.operator.length;return(this.operator===`+`||this.operator===`-`)&&this.right instanceof ak&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},ck.prototype._size=()=>3,dk.prototype._size=function(){return 2+UA(this.elements)},fk.prototype._size=function(e){let t=2;return wA(e)&&(t+=2),t+UA(this.properties)};const GA=e=>typeof e==`string`?e.length:0;mk.prototype._size=function(){return GA(this.key)+1};const KA=e=>e?7:0;vk.prototype._size=function(){return 5+KA(this.static)+GA(this.key)},_k.prototype._size=function(){return 5+KA(this.static)+GA(this.key)},yk.prototype._size=function(){return KA(this.static)+GA(this.key)},bk.prototype._size=function(){return yk.prototype._size.call(this)+1},gk.prototype._size=function(){return yk.prototype._size.call(this)+4},hk.prototype._size=function(){return yk.prototype._size.call(this)+4},wk.prototype._size=function(){return 5},xk.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Ek.prototype._size=function(){return 8+UA(this.body)},Sk.prototype._size=function(){return KA(this.static)+(typeof this.key==`string`?this.key.length+2:0)+(this.value?1:0)},Ck.prototype._size=function(){return Sk.prototype._size.call(this)+1},Ok.prototype._size=function(){return HA&&this.thedef&&!this.thedef.unmangleable(HA)?1:this.name.length},zk.prototype._size=function(){return this.name.length},$.prototype._size=Ak.prototype._size=function(){return this.name===`arguments`?9:Ok.prototype._size.call(this)},kk.prototype._size=()=>10,Gk.prototype._size=function(){return this.name.length},Jk.prototype._size=function(){return this.name.length},Zk.prototype._size=()=>4,Qk.prototype._size=()=>5,eA.prototype._size=function(){return this.value.length+2},tA.prototype._size=function(){let{value:e}=this;return e===0?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString().length},nA.prototype._size=function(){return this.value.length},rA.prototype._size=function(){return this.value.toString().length},aA.prototype._size=()=>4,oA.prototype._size=()=>3,sA.prototype._size=()=>6,cA.prototype._size=()=>0,lA.prototype._size=()=>8,fA.prototype._size=()=>4,dA.prototype._size=()=>5,DO.prototype._size=()=>6,OO.prototype._size=()=>6;const qA=1024,JA=(e,t)=>e.flags&t,YA=(e,t)=>{e.flags|=t},XA=(e,t)=>{e.flags&=~t};function ZA(e,t){return t instanceof $O?e.push(...t.expressions):e.push(t),e}function QA(e,t){if(t.length==1)return t[0];if(t.length==0)throw Error(`trying to create a sequence with length zero!`);return Y($O,e,{expressions:t.reduce(ZA,[])})}function $A(e){return Y(pO,e,{uses_arguments:!1,argnames:[],body:[],is_generator:!1,async:!1,variables:new Map,uses_with:!1,uses_eval:!1,parent_scope:null,enclosed:[],cname:0,block_scope:void 0})}function ej(e,t){switch(typeof e){case`string`:return Y(eA,t,{value:e});case`number`:return isNaN(e)?Y(oA,t):isFinite(e)?1/e<0?Y(ok,t,{operator:`-`,expression:Y(tA,t,{value:-e})}):Y(tA,t,{value:e}):e<0?Y(ok,t,{operator:`-`,expression:Y(lA,t)}):Y(lA,t);case`bigint`:return Y(nA,t,{value:e.toString()});case`boolean`:return Y(e?fA:dA,t);case`undefined`:return Y(sA,t);default:if(e===null)return Y(aA,t,{value:null});if(e instanceof RegExp)return Y(rA,t,{value:{source:BE(e.source),flags:e.flags}});throw Error(AE(`Can't handle constant of type: {type}`,{type:typeof e}))}}function tj(e,t){return e.size()>t.size()?t:e}function nj(e,t){return tj(Y(KD,e,{body:e}),Y(KD,t,{body:t})).body}function rj(e,t,n){return wA(e)?nj(t,n):tj(t,n)}function ij(e){if(e instanceof $k)return e.getValue();if(!(e instanceof ok&&e.operator==`void`&&e.expression instanceof $k))return e}function aj(e,t){if(t=ij(t),!(t instanceof Z)){var n;if(e instanceof dk){var r=e.elements;if(t==`length`)return ej(r.length,e);typeof t==`number`&&t in r&&(n=r[t])}else if(e instanceof fk){t=``+t;for(var i=e.properties,a=i.length;--a>=0;){if(!(i[a]instanceof mk))return;!n&&i[a].key===t&&(n=i[a].value)}}return n instanceof $&&n.fixed_value()||n}}function oj(e,t){var n=!1,r=new gA(function(t){if(n||t instanceof cO)return!0;if(t instanceof wO&&r.loopcontrol_target(t)===e)return n=!0});return t instanceof $D&&r.push(t),r.push(e),e.body.walk(r),n}function sj(e,t,n){return cj(e,t,n)?QA(t,[Y(tA,t,{value:0}),n]):n}function cj(e,t,n){return e instanceof ok&&e.operator==`delete`||e instanceof ZO&&e.expression===t&&(n instanceof ik||n instanceof ek||n instanceof $&&n.name==`eval`)}function lj(e){return e instanceof mO||e instanceof pO}function uj(e){return e.TYPE==`Call`?e.expression instanceof pO||uj(e.expression):!1}function dj(e){return e===null||e instanceof ZD?!0:e instanceof XD?e.body.length==0:!1}const fj=NE(`Infinity NaN undefined`);function pj(e){return e instanceof lA||e instanceof oA||e instanceof sA}function mj(e,t){if(!(e instanceof $))return!1;for(var n=e.definition().orig,r=n.length;--r>=0;)if(n[r]instanceof t)return!0}function hj(e){return!(e instanceof Tk||e instanceof hO||e instanceof VO||e instanceof HO||e instanceof UO||e instanceof XO||e instanceof JO)}function gj(e){if(e===null)return[];if(e instanceof XD)return e.body;if(e instanceof ZD)return[];if(e instanceof UD)return[e];throw Error(`Can't convert thing to statement array`)}function _j(e,t){let n=e=>{if(e instanceof $&&t.includes(e.definition()))return hA};return mA(e,(t,r)=>{if(t instanceof cO&&t!==e){var i=r.parent();return i instanceof ZO&&i.expression===t&&!(t.async||t.is_generator)?void 0:pA(t,n)?hA:!0}})}function vj(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof dO||n instanceof xk){var i=n.name;if(i&&i.definition()===t)return!0}return!1}function yj(e,t){return t.top_retain&&e instanceof hO&&JA(e,qA)&&e.name&&t.top_retain(e.name.definition())}function bj(e){let t=new Map;for(var n of Object.keys(e))t.set(n,NE(e[n]));return(e,n)=>{let r=t.get(e);return r!=null&&r.has(n)}}const xj=new Set([`Number`,`String`,`Array`,`Object`,`Function`,`Promise`]),Sj=[`constructor`,`toString`,`valueOf`],Cj=bj({Array:[`at`,`flat`,`includes`,`indexOf`,`join`,`lastIndexOf`,`slice`,...Sj],Boolean:Sj,Function:Sj,Number:[`toExponential`,`toFixed`,`toPrecision`,...Sj],Object:Sj,RegExp:[`test`,...Sj],String:[`at`,`charAt`,`charCodeAt`,`charPointAt`,`concat`,`endsWith`,`fromCharCode`,`fromCodePoint`,`includes`,`indexOf`,`italics`,`lastIndexOf`,`localeCompare`,`match`,`matchAll`,`normalize`,`padStart`,`padEnd`,`repeat`,`replace`,`replaceAll`,`search`,`slice`,`split`,`startsWith`,`substr`,`substring`,`repeat`,`toLocaleLowerCase`,`toLocaleUpperCase`,`toLowerCase`,`toUpperCase`,`trim`,`trimEnd`,`trimStart`,...Sj]}),wj=bj({Array:[`isArray`],Math:[`abs`,`acos`,`asin`,`atan`,`ceil`,`cos`,`exp`,`floor`,`log`,`round`,`sin`,`sqrt`,`tan`,`atan2`,`pow`,`max`,`min`],Number:[`isFinite`,`isNaN`],Object:[`create`,`getOwnPropertyDescriptor`,`getOwnPropertyNames`,`getPrototypeOf`,`isExtensible`,`isFrozen`,`isSealed`,`hasOwn`,`keys`],String:[`fromCharCode`]}),Tj=bj({Math:[`E`,`LN10`,`LN2`,`LOG2E`,`LOG10E`,`PI`,`SQRT1_2`,`SQRT2`],Number:[`MAX_VALUE`,`MIN_VALUE`,`NaN`,`NEGATIVE_INFINITY`,`POSITIVE_INFINITY`]}),Ej=e=>e instanceof $&&e.definition().undeclared,Dj=NE(`<<< >> << & | ^ ~`),Oj=NE(`&& || ??`),kj=NE(`delete ++ --`);(function(e){let t=NE(`! delete`),n=NE(`in instanceof == != === !== < <= >= >`);e(Z,wE),e(ok,function(){return t.has(this.operator)}),e(Q,function(){return n.has(this.operator)||Oj.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(ck,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(lk,function(){return this.operator==`=`&&this.right.is_boolean()}),e($O,function(){return this.tail_node().is_boolean()}),e(fA,TE),e(dA,TE)})(function(e,t){e.DEFMETHOD(`is_boolean`,t)}),(function(e){e(Z,wE),e(tA,TE);let t=NE(`+ - ~ ++ --`);e(ak,function(e){return t.has(this.operator)&&this.expression.is_number(e)});let n=NE(`- * / % & | ^ << >> >>>`);e(Q,function(e){return this.operator===`+`?this.left.is_number(e)&&this.right.is_number_or_bigint(e)||this.right.is_number(e)&&this.left.is_number_or_bigint(e):n.has(this.operator)?this.left.is_number(e)||this.right.is_number(e):!1}),e(lk,function(e){return(this.operator===`=`||n.has(this.operator.slice(0,-1)))&&this.right.is_number(e)}),e($O,function(e){return this.tail_node().is_number(e)}),e(ck,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})})(function(e,t){e.DEFMETHOD(`is_number`,t)}),(function(e){e(Z,wE),e(nA,TE);let t=NE(`+ - ~ ++ --`);e(ak,function(e){return t.has(this.operator)&&this.expression.is_bigint(e)});let n=NE(`- * / % & | ^ << >>`);e(Q,function(e){return this.operator===`+`?this.left.is_bigint(e)&&this.right.is_number_or_bigint(e)||this.right.is_bigint(e)&&this.left.is_number_or_bigint(e):n.has(this.operator)?this.left.is_bigint(e)||this.right.is_bigint(e):!1}),e(lk,function(e){return(n.has(this.operator.slice(0,-1))||this.operator==`=`)&&this.right.is_bigint(e)}),e($O,function(e){return this.tail_node().is_bigint(e)}),e(ck,function(e){return this.consequent.is_bigint(e)&&this.alternative.is_bigint(e)})})(function(e,t){e.DEFMETHOD(`is_bigint`,t)}),(function(e){e(Z,wE),e(tA,TE),e(nA,TE);let t=NE(`+ - ~ ++ --`);e(ak,function(e){return t.has(this.operator)});let n=NE(`- * / % & | ^ << >>`);e(Q,function(e){return this.operator===`+`?this.left.is_number_or_bigint(e)&&this.right.is_number_or_bigint(e):n.has(this.operator)}),e(lk,function(e){return n.has(this.operator.slice(0,-1))||this.operator==`=`&&this.right.is_number_or_bigint(e)}),e($O,function(e){return this.tail_node().is_number_or_bigint(e)}),e(ck,function(e){return this.consequent.is_number_or_bigint(e)&&this.alternative.is_number_or_bigint(e)})})(function(e,t){e.DEFMETHOD(`is_number_or_bigint`,t)}),(function(e){e(Z,wE),e(tA,function(e){return this.value===(this.value|0)}),e(ok,function(e){return this.operator==`~`?this.expression.is_number(e):this.operator===`+`?this.expression.is_32_bit_integer(e):!1}),e(Q,function(e){return Dj.has(this.operator)&&(this.left.is_number(e)||this.right.is_number(e))})})(function(e,t){e.DEFMETHOD(`is_32_bit_integer`,t)}),(function(e){e(Z,wE),e(eA,TE),e(vO,TE),e(ok,function(){return this.operator==`typeof`}),e(Q,function(e){return this.operator==`+`&&(this.left.is_string(e)||this.right.is_string(e))}),e(lk,function(e){return(this.operator==`=`||this.operator==`+=`)&&this.right.is_string(e)}),e($O,function(e){return this.tail_node().is_string(e)}),e(ck,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})})(function(e,t){e.DEFMETHOD(`is_string`,t)});function Aj(e,t){return JA(e,8)||e instanceof sA||e instanceof ok&&e.operator==`void`&&!e.expression.has_side_effects(t)}function jj(e,t){let n;return e instanceof aA||Aj(e,t)||e instanceof $&&(n=e.definition().fixed)instanceof Z&&Nj(n,t)}function Mj(e,t){return e instanceof ek||e instanceof ZO?e.optional&&jj(e.expression,t)||Mj(e.expression,t):e instanceof ik?Mj(e.expression,t):!1}function Nj(e,t){return jj(e,t)?!0:Mj(e,t)}(function(e){e(Z,TE),e(ZD,wE),e($k,wE),e(Zk,wE);function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(YD,function(e){return t(this.body,e)}),e(ZO,function(e){return!this.is_callee_pure(e)&&(!this.expression.is_call_pure(e)||this.expression.has_side_effects(e))?!0:t(this.args,e)}),e(AO,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(NO,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(PO,function(e){return this.body.has_side_effects(e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(kO,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(YO,wE),e($D,function(e){return this.body.has_side_effects(e)}),e(KD,function(e){return this.body.has_side_effects(e)}),e(dO,wE),e(xk,function(e){return this.extends&&this.extends.has_side_effects(e)?!0:t(this.properties,e)}),e(Ek,function(e){return t(this.body,e)}),e(Q,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(lk,TE),e(ck,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(ak,function(e){return kj.has(this.operator)||this.expression.has_side_effects(e)}),e($,function(e){return!this.is_declared(e)&&!xj.has(this.name)}),e(zk,wE),e(Ak,wE),e(fk,function(e){return t(this.properties,e)}),e(mk,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value&&this.value.has_side_effects(e)}),e([Sk,Ck],function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)}),e([bk,gk,hk,yk,vk,_k],function(e){return this.computed_key()&&this.key.has_side_effects(e)}),e(dk,function(e){return t(this.elements,e)}),e(tk,function(e){return Nj(this,e)?this.expression.has_side_effects(e):!this.optional&&this.expression.may_throw_on_access(e)?!0:this.expression.has_side_effects(e)}),e(rk,function(e){if(Nj(this,e))return this.expression.has_side_effects(e);if(!this.optional&&this.expression.may_throw_on_access(e))return!0;var t=this.property.has_side_effects(e);return t&&this.optional?!0:t||this.expression.has_side_effects(e)}),e(ik,function(e){return this.expression.has_side_effects(e)}),e($O,function(e){return t(this.expressions,e)}),e(zO,function(e){return t(this.definitions,e)}),e(GO,function(){return this.value!=null}),e(yO,wE),e(vO,function(e){return t(this.segments,e)})})(function(e,t){for(let n of[].concat(e))n.DEFMETHOD(`has_side_effects`,t)}),(function(e){e(Z,TE),e($k,wE),e(ZD,wE),e(dO,wE),e(Ak,wE),e(Zk,wE),e(YO,wE);function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(xk,function(e){return this.extends&&this.extends.may_throw(e)?!0:t(this.properties,e)}),e(Ek,function(e){return t(this.body,e)}),e(dk,function(e){return t(this.elements,e)}),e(lk,function(e){return this.right.may_throw(e)?!0:!e.has_directive(`use strict`)&&this.operator==`=`&&this.left instanceof $?!1:this.left.may_throw(e)}),e(Q,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e(YD,function(e){return t(this.body,e)}),e(ZO,function(e){return Nj(this,e)?!1:t(this.args,e)?!0:this.is_callee_pure(e)?!1:this.expression.may_throw(e)?!0:!(this.expression instanceof dO)||t(this.expression.body,e)}),e(NO,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(ck,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(zO,function(e){return t(this.definitions,e)}),e(kO,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e($D,function(e){return this.body.may_throw(e)}),e(fk,function(e){return t(this.properties,e)}),e(mk,function(e){return this.computed_key()&&this.key.may_throw(e)||this.value?this.value.may_throw(e):!1}),e([Sk,Ck],function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)}),e([yk,vk,_k],function(e){return this.computed_key()&&this.key.may_throw(e)}),e([bk,gk,hk],wE),e(SO,function(e){return this.value&&this.value.may_throw(e)}),e($O,function(e){return t(this.expressions,e)}),e(KD,function(e){return this.body.may_throw(e)}),e(tk,function(e){return Nj(this,e)?!1:!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(rk,function(e){return Nj(this,e)?!1:!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(ik,function(e){return this.expression.may_throw(e)}),e(AO,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e($,function(e){return!this.is_declared(e)&&!xj.has(this.name)}),e(zk,wE),e(PO,function(e){return this.bcatch?this.bcatch.may_throw(e):this.body.may_throw(e)||this.bfinally&&this.bfinally.may_throw(e)}),e(ak,function(e){return this.operator==`typeof`&&this.expression instanceof $?!1:this.expression.may_throw(e)}),e(GO,function(e){return this.value?this.value.may_throw(e):!1})})(function(e,t){for(let n of[].concat(e))n.DEFMETHOD(`may_throw`,t)}),(function(e){function t(e){let t=!0;return pA(this,n=>{if(n instanceof $){if(JA(this,16))return t=!1,hA;var r=n.definition();if(bE(r,this.enclosed)&&!this.variables.has(r.name)){if(e){var i=e.find_variable(n);if(r.undeclared?!i:i===r)return t=`f`,!0}return t=!1,hA}return!0}if(n instanceof Zk&&this instanceof mO)return t=!1,hA}),t}e(Z,wE),e($k,TE),e(xk,function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(let t of this.properties)if(t.computed_key()&&!t.key.is_constant_expression(e)||t.static&&t.value&&!t.value.is_constant_expression(e)||t instanceof Ek)return!1;return t.call(this,e)}),e(dO,t),e(ak,function(){return this.expression.is_constant_expression()}),e(Q,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(dk,function(){return this.elements.every(e=>e.is_constant_expression())}),e(fk,function(){return this.properties.every(e=>e.is_constant_expression())}),e(pk,function(){return!!(!(this.key instanceof Z)&&this.value&&this.value.is_constant_expression())})})(function(e,t){e.DEFMETHOD(`is_constant_expression`,t)}),(function(e){Z.DEFMETHOD(`may_throw_on_access`,function(e){return!e.option(`pure_getters`)||this._dot_throw(e)});function t(e){return/strict/.test(e.option(`pure_getters`))}e(Z,t),e(aA,TE),e(sA,TE),e($k,wE),e(dk,wE),e(fk,function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n]._dot_throw(e))return!0;return!1}),e(xk,wE),e(pk,wE),e(vk,TE),e(uO,function(e){return this.expression._dot_throw(e)}),e(pO,wE),e(mO,wE),e(sk,wE),e(ok,function(){return this.operator==`void`}),e(Q,function(e){return(this.operator==`&&`||this.operator==`||`||this.operator==`??`)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(lk,function(e){return this.logical?!0:this.operator==`=`&&this.right._dot_throw(e)}),e(ck,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(tk,function(e){return t(e)?this.property==`prototype`?!(this.expression instanceof pO||this.expression instanceof xk):!0:!1}),e(ik,function(e){return this.expression._dot_throw(e)}),e($O,function(e){return this.tail_node()._dot_throw(e)}),e($,function(e){if(this.name===`arguments`&&this.scope instanceof dO)return!1;if(JA(this,8))return!0;if(!t(e)||Ej(this)&&this.is_declared(e)||this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(e)})})(function(e,t){e.DEFMETHOD(`_dot_throw`,t)});function Pj(e,t){if(t instanceof ak&&kj.has(t.operator))return t.expression;if(t instanceof lk&&t.left===e||t instanceof aO&&t.init===e)return e}(function(e){function t(e){return Y(ok,e,{operator:`!`,expression:e})}function n(e,n,r){var i=t(e);if(r){var a=Y(KD,n,{body:n});return tj(i,a)===a?n:i}return tj(i,n)}e(Z,function(){return t(this)}),e(UD,function(){throw Error(`Cannot negate a statement`)}),e(pO,function(){return t(this)}),e(xk,function(){return t(this)}),e(mO,function(){return t(this)}),e(ok,function(){return this.operator==`!`?this.expression:t(this)}),e($O,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),QA(this,t)}),e(ck,function(e,t){var r=this.clone();return r.consequent=r.consequent.negate(e),r.alternative=r.alternative.negate(e),n(this,r,t)}),e(Q,function(e,r){var i=this.clone(),a=this.operator;if(e.option(`unsafe_comps`))switch(a){case`<=`:return i.operator=`>`,i;case`<`:return i.operator=`>=`,i;case`>=`:return i.operator=`<`,i;case`>`:return i.operator=`<=`,i}switch(a){case`==`:return i.operator=`!=`,i;case`!=`:return i.operator=`==`,i;case`===`:return i.operator=`!==`,i;case`!==`:return i.operator=`===`,i;case`&&`:return i.operator=`||`,i.left=i.left.negate(e,r),i.right=i.right.negate(e),n(this,i,r);case`||`:return i.operator=`&&`,i.left=i.left.negate(e,r),i.right=i.right.negate(e),n(this,i,r)}return t(this)})})(function(e,t){e.DEFMETHOD(`negate`,function(e,n){return t.call(this,e,n)})}),(function(e){function t(e){return Y(ok,e,{operator:`~`,expression:e})}e(Z,function(e){return t(this)}),e(tA,function(e){let n=~this.value;return n.toString().length>this.value.toString().length?t(this):Y(tA,this,{value:n})}),e(ok,function(e,n){return this.operator==`~`&&(this.expression.is_32_bit_integer(e)||(n??e.in_32_bit_context()))?this.expression:t(this)})})(function(e,t){e.DEFMETHOD(`bitwise_negate`,t)});var Fj=NE(`Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError`);ZO.DEFMETHOD(`is_callee_pure`,function(e){if(e.option(`unsafe`)){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&t.expression.name===`hasOwnProperty`&&(n==null||n.thedef&&n.thedef.undeclared))return!1;if(Ej(t)&&Fj.has(t.name)||t instanceof tk&&Ej(t.expression)&&wj(t.expression.name,t.property))return!0}return this instanceof QO&&e.option(`pure_new`)||e.option(`side_effects`)&&WE(this,1)?!0:!e.pure_funcs(this)}),Z.DEFMETHOD(`is_call_pure`,wE),tk.DEFMETHOD(`is_call_pure`,function(e){if(!e.option(`unsafe`))return;let t=this.expression,n;return t instanceof dk?n=`Array`:t.is_boolean()?n=`Boolean`:t.is_number(e)?n=`Number`:t instanceof rA?n=`RegExp`:t.is_string(e)?n=`String`:this.may_throw_on_access(e)||(n=`Object`),n!=null&&Cj(n,this.property)});const Ij=e=>e&&e.aborts();(function(e){e(UD,DE),e(bO,EE);function t(){for(var e=0;e<this.body.length;e++)if(Ij(this.body[e]))return this.body[e];return null}e(JO,DE),e(XD,t),e(jO,t),e(Tk,function(){for(let e of this.properties)if(e instanceof Ek&&e.aborts())return e;return null}),e(Ek,t),e(kO,function(){return this.alternative&&Ij(this.body)&&Ij(this.alternative)&&this})})(function(e,t){e.DEFMETHOD(`aborts`,t)}),Z.DEFMETHOD(`contains_this`,function(){return pA(this,e=>{if(e instanceof Zk)return hA;if(e!==this&&e instanceof cO&&!(e instanceof mO))return!0})});function Lj(e,t,n,r,i,a){var o=t.parent(i),s=Pj(n,o);if(s)return s;if(!a&&o instanceof ZO&&o.expression===n&&!(r instanceof mO)&&!(r instanceof xk)&&!o.is_callee_pure(e)&&(!(r instanceof pO)||!(o instanceof QO)&&r.contains_this()))return!0;if(o instanceof dk)return Lj(e,t,o,o,i+1);if(o instanceof mk&&n===o.value){var c=t.parent(i+1);return Lj(e,t,c,c,i+2)}if(o instanceof ek&&o.expression===n){var l=aj(r,o.property);return!a&&Lj(e,t,o,l,i+1)}}function Rj(e){for(let t=-1,n,r;n=e.parent(t),r=e.parent(t+1);t++){if(r instanceof $O)if(r.expressions.indexOf(n)!==r.expressions.length-1){let n=e.parent(t+2);return!(r.expressions.length>2||r.expressions.length===1||!cj(n,r,r.expressions[1]))}else continue;if(r instanceof ak){let e=r.operator;if(e===`void`)return!1;if(e===`typeof`||e===`+`||e===`-`||e===`!`||e===`~`)continue}return!(r instanceof KD||r instanceof $D||r instanceof cO)}return!0}function zj(e,t){e.DEFMETHOD(`_eval`,t)}const Bj=Symbol(`This AST_Chain is nullish`);Z.DEFMETHOD(`evaluate`,function(e){if(!e.option(`evaluate`))return this;var t=this._eval(e,1);if(!t||t instanceof RegExp)return t;if(typeof t==`function`||typeof t==`object`||t==Bj)return this;if(typeof t==`string`){let n=this.size(e);if(t.length+2>n)return this}return t});var Vj=NE(`! ~ - + void`);Z.DEFMETHOD(`is_constant`,function(){return this instanceof $k?!(this instanceof rA):this instanceof ok&&Vj.has(this.operator)&&(this.expression instanceof $k||this.expression.is_constant())}),zj(UD,function(){throw Error(AE(`Cannot evaluate a statement [{file}:{line},{col}]`,this.start))}),zj(dO,EE),zj(xk,EE),zj(Z,EE),zj($k,function(){return this.getValue()});const Hj=typeof BigInt==`function`;zj(nA,function(){return Hj?BigInt(this.value):this}),zj(rA,function(e){let t=e.evaluated_regexps.get(this.value);if(t===void 0&&HE(this.value.source)){try{let{source:e,flags:n}=this.value;t=new RegExp(e,n)}catch{t=null}e.evaluated_regexps.set(this.value,t)}return t||this}),zj(vO,function(){return this.segments.length===1?this.segments[0].value:this}),zj(pO,function(e){if(e.option(`unsafe`)){var t=function(){};return t.node=this,t.toString=()=>this.print_to_string(),t}return this}),zj(dk,function(e,t){if(e.option(`unsafe`)){for(var n=[],r=0,i=this.elements.length;r<i;r++){var a=this.elements[r],o=a._eval(e,t);if(a===o)return this;n.push(o)}return n}return this}),zj(fk,function(e,t){if(e.option(`unsafe`)){for(var n={},r=0,i=this.properties.length;r<i;r++){var a=this.properties[r];if(a instanceof uO)return this;var o=a.key;if(o instanceof Ok)o=o.name;else if(o instanceof Z&&(o=o._eval(e,t),o===a.key))return this;if(typeof Object.prototype[o]==`function`||!(a.value instanceof pO)&&(n[o]=a.value._eval(e,t),n[o]===a.value))return this}return n}return this});var Uj=NE(`! typeof void`);zj(ok,function(e,t){var n=this.expression;if(e.option(`typeofs`)&&this.operator==`typeof`){if(n instanceof dO||n instanceof $&&n.fixed_value()instanceof dO)return`function`;if((n instanceof fk||n instanceof dk||n instanceof $&&(n.fixed_value()instanceof fk||n.fixed_value()instanceof dk))&&!n.has_side_effects(e))return`object`}if(Uj.has(this.operator)||t++,n=n._eval(e,t),n===this.expression)return this;switch(this.operator){case`!`:return!n;case`typeof`:return n instanceof RegExp?this:typeof n;case`void`:return;case`~`:return~n;case`-`:return-n;case`+`:return+n}return this});var Wj=NE(`&& || ?? === !==`);const Gj=NE(`== != === !==`),Kj=e=>typeof e==`object`||typeof e==`function`||typeof e==`symbol`;zj(Q,function(e,t){Wj.has(this.operator)||t++;var n=this.left._eval(e,t);if(n===this.left)return this;var r=this.right._eval(e,t);if(r===this.right||n!=null&&r!=null&&Gj.has(this.operator)&&Kj(n)&&Kj(r)&&typeof n==typeof r||typeof n==`bigint`!=(typeof r==`bigint`)||typeof n==`bigint`&&(this.operator===`>>>`||this.operator===`/`&&Number(r)===0))return this;var i;switch(this.operator){case`&&`:i=n&&r;break;case`||`:i=n||r;break;case`??`:i=n??r;break;case`|`:i=n|r;break;case`&`:i=n&r;break;case`^`:i=n^r;break;case`+`:i=n+r;break;case`*`:i=n*r;break;case`**`:i=n**r;break;case`/`:i=n/r;break;case`%`:i=n%r;break;case`-`:i=n-r;break;case`<<`:i=n<<r;break;case`>>`:i=n>>r;break;case`>>>`:i=n>>>r;break;case`==`:i=n==r;break;case`===`:i=n===r;break;case`!=`:i=n!=r;break;case`!==`:i=n!==r;break;case`<`:i=n<r;break;case`<=`:i=n<=r;break;case`>`:i=n>r;break;case`>=`:i=n>=r;break;default:return this}return typeof i==`number`&&isNaN(i)&&e.find_parent(sO)?this:i}),zj(ck,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var r=n?this.consequent:this.alternative,i=r._eval(e,t);return i===r?this:i});const qj=new Set;zj($,function(e,t){if(qj.has(this))return this;var n=this.fixed_value();if(!n)return this;qj.add(this);let r=n._eval(e,t);if(qj.delete(this),r===n)return this;if(r&&typeof r==`object`){var i=this.definition().escaped;if(i&&t>i)return this}return r});const Jj={Array,Math,Number,Object,String},Yj=new Set([`dotAll`,`global`,`ignoreCase`,`multiline`,`sticky`,`unicode`]);zj(ek,function(e,t){let n=this.expression._eval(e,t+1);if(n===Bj||this.optional&&n==null)return Bj;if(this.property===`length`){if(typeof n==`string`)return n.length;if(n instanceof dk&&n.elements.every(e=>!(e instanceof uO))&&n.elements.every(t=>!t.has_side_effects(e)))return n.elements.length}if(e.option(`unsafe`)){var r=this.property;if(r instanceof Z&&(r=r._eval(e,t),r===this.property))return this;var i=this.expression;if(Ej(i)){var a,o=i.name===`hasOwnProperty`&&r===`call`&&(a=e.parent()&&e.parent().args)&&a&&a[0]&&a[0].evaluate(e);if(o=o instanceof tk?o.expression:o,o==null||o.thedef&&o.thedef.undeclared)return this.clone();if(!Tj(i.name,r))return this;n=Jj[i.name]}else{if(n instanceof RegExp){if(r==`source`)return BE(n.source);if(r==`flags`||Yj.has(r))return n[r]}if(!n||n===i||!LE(n,r))return this;if(typeof n==`function`)switch(r){case`name`:return n.node.name?n.node.name.name:``;case`length`:return n.node.length_property();default:return this}}return n[r]}return this}),zj(ik,function(e,t){let n=this.expression._eval(e,t);return n===Bj?void 0:n===this.expression?this:n}),zj(ZO,function(e,t){var n=this.expression;let r=n._eval(e,t);if(r===Bj||this.optional&&r==null)return Bj;if(e.option(`unsafe`)&&n instanceof ek){var i=n.property;if(i instanceof Z&&(i=i._eval(e,t),i===n.property))return this;var a,o=n.expression;if(Ej(o)){var s=o.name===`hasOwnProperty`&&i===`call`&&this.args[0]&&this.args[0].evaluate(e);if(s=s instanceof tk?s.expression:s,s==null||s.thedef&&s.thedef.undeclared)return this.clone();if(!wj(o.name,i))return this;a=Jj[o.name]}else if(a=o._eval(e,t+1),a===o||!a||!Cj(a.constructor.name,i))return this;for(var c=[],l=0,u=this.args.length;l<u;l++){var d=this.args[l],f=d._eval(e,t);if(d===f||d instanceof dO)return this;c.push(f)}try{return a[i].apply(a,c)}catch{}}return this}),zj(QO,EE);function Xj(e,t){for(let n of[].concat(e))n.DEFMETHOD(`drop_side_effect_free`,t)}function Zj(e,t,n){var r=e.length;if(!r)return null;for(var i=[],a=!1,o=0;o<r;o++){var s=e[o].drop_side_effect_free(t,n);a|=s!==e[o],s&&(i.push(s),n=!1)}return a?i.length?i:null:e}Xj(Z,EE),Xj($k,DE),Xj(Zk,DE),Xj(ZO,function(e,t){if(Mj(this,e))return this.expression.drop_side_effect_free(e,t);if(!this.is_callee_pure(e)){if(this.expression.is_call_pure(e)){var n=this.args.slice();return n.unshift(this.expression.expression),n=Zj(n,e,t),n&&QA(this,n)}if(lj(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();return r.expression.process_expression(!1,e),r}return this}var i=Zj(this.args,e,t);return i&&QA(this,i)}),Xj(fO,DE),Xj(pO,DE),Xj(mO,DE),Xj(xk,function(e){let t=[];if(this.is_self_referential()&&this.has_side_effects(e))return this;let n=this.extends&&this.extends.drop_side_effect_free(e);n&&t.push(n);for(let n of this.properties)if(n instanceof Ek){if(n.has_side_effects(e))return this}else{let r=n.drop_side_effect_free(e);r&&t.push(r)}if(!t.length)return null;let r=QA(this,t);return this instanceof Tk?Y(KD,this,{body:r}):r}),Xj([Sk,Ck],function(e){let t=this.computed_key()&&this.key.drop_side_effect_free(e),n=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&n?QA(this,[t,n]):t||n||null}),Xj(Q,function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(Oj.has(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}else{var i=this.left.drop_side_effect_free(e,t);return i?QA(this,[i,n]):this.right.drop_side_effect_free(e,t)}}),Xj(lk,function(e){if(this.logical)return this;var t=this.left;if(t.has_side_effects(e)||e.has_directive(`use strict`)&&t instanceof ek&&t.expression.is_constant())return this;for(YA(this,32);t instanceof ek;)t=t.expression;return t.is_constant_expression(e.find_parent(cO))?this.right.drop_side_effect_free(e):this}),Xj(ck,function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?Y(Q,this,{operator:`||`,left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return Y(Q,this,{operator:`&&`,left:this.condition,right:t});var r=this.clone();return r.consequent=t,r.alternative=n,r}),Xj(ak,function(e,t){if(kj.has(this.operator))return this.expression.has_side_effects(e)?XA(this,32):YA(this,32),this;if(this.operator==`typeof`&&this.expression instanceof $)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&uj(n)?n===this.expression&&this.operator==`!`?this:n.negate(e,t):n}),Xj($,function(e){return this.is_declared(e)||xj.has(this.name)?null:this}),Xj(fk,function(e,t){var n=Zj(this.properties,e,t);return n&&QA(this,n)}),Xj(mk,function(e,t){let n=this.key instanceof Z&&this.key.drop_side_effect_free(e,t),r=this.value.drop_side_effect_free(e,t);return n&&r?QA(this,[n,r]):n||r}),Xj([yk,vk,_k],function(){return this.computed_key()?this.key:null}),Xj([bk,gk,hk],function(){return null}),Xj(dk,function(e,t){var n=Zj(this.elements,e,t);return n&&QA(this,n)}),Xj(tk,function(e,t){return Mj(this,e)?this.expression.drop_side_effect_free(e,t):!this.optional&&this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)}),Xj(rk,function(e,t){if(Mj(this,e))return this.expression.drop_side_effect_free(e,t);if(!this.optional&&this.expression.may_throw_on_access(e))return this;var n=this.property.drop_side_effect_free(e);if(n&&this.optional)return this;var r=this.expression.drop_side_effect_free(e,t);return r&&n?QA(this,[r,n]):r||n}),Xj(ik,function(e,t){return this.expression.drop_side_effect_free(e,t)}),Xj($O,function(e){var t=this.tail_node(),n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),r.length?QA(this,r):Y(tA,this,{value:0})}),Xj(uO,function(e,t){return this.expression.drop_side_effect_free(e,t)}),Xj(yO,DE),Xj(vO,function(e){var t=Zj(this.segments,e,wA);return t&&QA(this,t)});const Qj=/keep_assign/;cO.DEFMETHOD(`drop_unused`,function(e){if(!e.option(`unused`)||e.has_directive(`use asm`)||!this.variables)return;var t=this;if(t.pinned())return;var n=!(t instanceof lO)||e.toplevel.funcs,r=!(t instanceof lO)||e.toplevel.vars;let i=Qj.test(e.option(`unused`))?wE:function(e){if(e instanceof lk&&!e.logical&&(JA(e,32)||e.operator==`=`))return e.left;if(e instanceof ak&&JA(e,32))return e.expression};var a=new Map,o=new Map;t instanceof lO&&e.top_retain&&t.variables.forEach(function(t){e.top_retain(t)&&a.set(t.id,t)});var s=new Map,c=new Map,l=this,u=new gA(function(i,d){if(i instanceof dO&&i.uses_arguments&&!u.has_directive(`use strict`)&&i.argnames.forEach(function(e){if(e instanceof Ak){var t=e.definition();a.set(t.id,t)}}),i===t)return;if(i instanceof xk&&i.has_side_effects(e)&&(i.is_self_referential()?d():i.visit_nondeferred_class_parts(u)),i instanceof hO||i instanceof Tk){var p=i.name.definition();return(u.parent()instanceof XO||!n&&l===t)&&p.global&&a.set(p.id,p),PE(c,p.id,i),!0}let m=l===t;if(i instanceof Ik&&m&&PE(s,i.definition().id,i),i instanceof zO&&m){let t=u.parent()instanceof XO;return i.definitions.forEach(function(n){if(n.name instanceof jk&&PE(s,n.name.definition().id,n),(t||!r)&&pA(n.name,e=>{if(e instanceof Ak){let t=e.definition();t.global&&a.set(t.id,t)}}),n.name instanceof gO&&n.walk(u),n.name instanceof Ak&&n.value){var i=n.name.definition();PE(c,i.id,n.value),!i.chained&&n.name.fixed_value()===n.value&&o.set(i.id,n),n.value.has_side_effects(e)&&n.value.walk(u)}}),!0}return f(i,d)});t.walk(u),u=new gA(f),a.forEach(function(e){var t=c.get(e.id);t&&t.forEach(function(e){e.walk(u)})});var d=new _A(function(c,u,f){var p=d.parent();if(r){let t=i(c);if(t instanceof $){var m=t.definition(),h=a.has(m.id);if(c instanceof lk){if(!h||o.has(m.id)&&o.get(m.id)!==c){let t=c.right.transform(d);return!h&&!t.has_side_effects(e)&&!Rj(d)?f?OE.skip:Y(tA,c,{value:0}):sj(p,c,t)}}else if(!h)return f?OE.skip:Y(tA,c,{value:0})}}if(l===t){var m;if(c.name&&(c instanceof Dk&&!RE(e.option(`keep_classnames`),(m=c.name.definition()).name)||c instanceof pO&&!RE(e.option(`keep_fnames`),(m=c.name.definition()).name))&&(!a.has(m.id)||m.orig.length>1)&&(c.name=null),c instanceof dO&&!(c instanceof fO))for(var g=!e.option(`keep_fargs`)||p instanceof ZO&&p.expression===c&&!c.pinned()&&(!c.name||c.name.unreferenced()),_=c.argnames,v=_.length;--v>=0;){var y=_[v];y instanceof uO&&(y=y.expression),y instanceof uk&&(y=y.left),!(y instanceof gO)&&!a.has(y.definition().id)?(YA(y,1),g&&_.pop()):g=!1}if(c instanceof Tk&&c!==t){let t=c.name.definition();return u(c,this),t.global&&!n||a.has(t.id)?c:c.drop_side_effect_free(e)??(t.eliminated++,f?OE.skip:Y(ZD,c))}if(c instanceof hO&&c!==t){let e=c.name.definition();if(!(e.global&&!n||a.has(e.id)))return e.eliminated++,f?OE.skip:Y(ZD,c)}if(c instanceof zO&&!(p instanceof aO&&p.init===c)){var b=!(p instanceof lO)&&!(c instanceof BO),x=[],S=[],C=[],w=[];switch(c.definitions.forEach(function(t){t.value&&=t.value.transform(d);var n=t.name instanceof gO,i=n?new IA(null,{name:`<destructure>`}):t.name.definition();if(b&&i.global)return C.push(t);if(!(r||b)||n&&(t.name.names.length||t.name.is_array||e.option(`pure_getters`)!=1)||a.has(i.id)){if(t.value&&o.has(i.id)&&o.get(i.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof jk){var l=s.get(i.id);if(l.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var u=Y($,t.name,t.name);i.references.push(u);var f=Y(lk,t,{operator:`=`,logical:!1,left:u,right:t.value});o.get(i.id)===t&&o.set(i.id,f),w.push(f.transform(d))}jE(l,t),i.eliminated++;return}}t.value?(w.length>0&&(C.length>0?(w.push(t.value),t.value=QA(t.value,w)):x.push(Y(KD,c,{body:QA(c,w)})),w=[]),C.push(t)):S.push(t)}else if(i.orig[0]instanceof Uk){var p=t.value&&t.value.drop_side_effect_free(e);p&&w.push(p),t.value=null,S.push(t)}else{var p=t.value&&t.value.drop_side_effect_free(e);p&&w.push(p),i.eliminated++}}),(S.length>0||C.length>0)&&(c.definitions=S.concat(C),x.push(c)),w.length>0&&x.push(Y(KD,c,{body:QA(c,w)})),x.length){case 0:return f?OE.skip:Y(ZD,c);case 1:return x[0];default:return f?OE.splice(x):Y(XD,c,{body:x})}}if(c instanceof iO){u(c,this);var T;return c.init instanceof XD&&(T=c.init,c.init=T.body.pop(),T.body.push(c)),c.init instanceof KD?c.init=c.init.body:dj(c.init)&&(c.init=null),T?f?OE.splice(T.body):T:c}if(c instanceof $D&&c.body instanceof iO){if(u(c,this),c.body instanceof XD){var T=c.body;return c.body=T.body.pop(),T.body.push(c),f?OE.splice(T.body):T}return c}if(c instanceof XD)return u(c,this),f&&c.body.every(hj)?OE.splice(c.body):c;if(c instanceof cO&&!(c instanceof Ek)){let e=l;return l=c,u(c,this),l=e,c}}},function(e,t){if(e instanceof $O)switch(e.expressions.length){case 0:return t?OE.skip:Y(tA,e,{value:0});case 1:return e.expressions[0]}});t.transform(d);function f(e,n){var r;let s=i(e);if(s instanceof $&&!mj(e.left,Mk)&&t.variables.get(s.name)===(r=s.definition()))return e instanceof lk&&(e.right.walk(u),!r.chained&&e.left.fixed_value()===e.right&&o.set(r.id,e)),!0;if(e instanceof $){if(r=e.definition(),!a.has(r.id)&&(a.set(r.id,r),r.orig[0]instanceof Uk)){let e=r.scope.is_block_scope()&&r.scope.get_defun_scope().variables.get(r.name);e&&a.set(e.id,e)}return!0}if(e instanceof xk)return n(),!0;if(e instanceof cO&&!(e instanceof Ek)){var c=l;return l=e,n(),l=c,!0}}});function $j(e,t){e.DEFMETHOD(`reduce_vars`,t)}$j(Z,CE);function eM(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.single_use=void 0,t.scope.pinned()||t.orig[0]instanceof Ik&&t.scope.uses_arguments?t.fixed=!1:t.orig[0]instanceof Nk||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function tM(e,t,n){n.variables.forEach(function(n){eM(t,n),n.fixed===null?(e.defs_to_safe_ids.set(n.id,e.safe_ids),aM(e,n,!0)):n.fixed&&(e.loop_ids.set(n.id,e.in_loop),aM(e,n,!0))})}function nM(e,t){t.block_scope&&t.block_scope.variables.forEach(t=>{eM(e,t)})}function rM(e){e.safe_ids=Object.create(e.safe_ids)}function iM(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function aM(e,t,n){e.safe_ids[t.id]=n}function oM(e,t){if(t.single_use==`m`)return!1;if(e.safe_ids[t.id]){if(t.fixed==null){var n=t.orig[0];if(n instanceof Ik||n.name==`arguments`)return!1;t.fixed=Y(sA,n)}return!0}return t.fixed instanceof hO}function sM(e,t,n,r){if(t.fixed===void 0)return!0;let i;return t.fixed===null&&(i=e.defs_to_safe_ids.get(t.id))?(i[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!LE(e.safe_ids,t.id)||!oM(e,t)||t.fixed===!1||t.fixed!=null&&(!r||t.references.length>t.assignments)?!1:t.fixed instanceof hO?r instanceof Z&&t.fixed.parent_scope===n:t.orig.every(e=>!(e instanceof Nk||e instanceof Lk||e instanceof Bk))}function cM(e,t,n){return t.option(`unused`)&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}function lM(e){return e?e.is_constant()||e instanceof dO||e instanceof Zk:!1}function uM(e,t,n,r,i,a=0,o=1){var s=e.parent(a);if(!(i&&(i.is_constant()||i instanceof Dk))){if(s instanceof lk&&(s.operator===`=`||s.logical)&&r===s.right||s instanceof ZO&&(r!==s.expression||s instanceof QO)||s instanceof xO&&r===s.value&&r.scope!==t.scope||s instanceof WO&&r===s.value||s instanceof OO&&r===s.value&&r.scope!==t.scope){o>1&&!(i&&i.is_constant_expression(n))&&(o=1),(!t.escaped||t.escaped>o)&&(t.escaped=o);return}else if(s instanceof dk||s instanceof DO||s instanceof Q&&Oj.has(s.operator)||s instanceof ck&&r!==s.condition||s instanceof uO||s instanceof $O&&r===s.tail_node())uM(e,t,n,s,s,a+1,o);else if(s instanceof mk&&r===s.value){var c=e.parent(a+1);uM(e,t,n,c,c,a+2,o)}else if(s instanceof ek&&r===s.expression&&(i=aj(i,s.property),uM(e,t,n,s,i,a+1,o+1),i))return;a>0||s instanceof $O&&r!==s.tail_node()||s instanceof KD||(t.direct_access=!0)}}const dM=e=>pA(e,e=>{if(e instanceof Ok){var t=e.definition();t&&(e instanceof $&&t.references.push(e),t.fixed=!1)}});$j(fO,function(e,t,n){return rM(e),tM(e,n,this),t(),iM(e),!0}),$j(lk,function(e,t,n){var r=this;if(r.left instanceof gO){dM(r.left);return}let i=()=>{if(r.logical)return r.left.walk(e),rM(e),r.right.walk(e),iM(e),!0};var a=r.left;if(!(a instanceof $))return i();var o=a.definition(),s=sM(e,o,a.scope,r.right);if(o.assignments++,!s)return i();var c=o.fixed;if(!c&&r.operator!=`=`&&!r.logical)return i();var l=r.operator==`=`,u=l?r.right:r;return Lj(n,e,r,u,0)?i():(o.references.push(a),r.logical||(l||(o.chained=!0),o.fixed=l?function(){return r.right}:function(){return Y(Q,r,{operator:r.operator.slice(0,-1),left:c instanceof Z?c:c(),right:r.right})}),r.logical?(aM(e,o,!1),rM(e),r.right.walk(e),iM(e),!0):(aM(e,o,!1),r.right.walk(e),aM(e,o,!0),uM(e,o,a.scope,r,u,0,1),!0))}),$j(Q,function(e){if(Oj.has(this.operator))return this.left.walk(e),rM(e),this.right.walk(e),iM(e),!0}),$j(YD,function(e,t,n){nM(n,this)}),$j(NO,function(e){return rM(e),this.expression.walk(e),iM(e),rM(e),qD(this,e),iM(e),!0}),$j(xk,function(e,t){return XA(this,16),rM(e),t(),iM(e),!0}),$j(Ek,function(e,t,n){nM(n,this)}),$j(ck,function(e){return this.condition.walk(e),rM(e),this.consequent.walk(e),iM(e),rM(e),this.alternative.walk(e),iM(e),!0}),$j(ik,function(e,t){let n=e.safe_ids;return t(),e.safe_ids=n,!0}),$j(ZO,function(e){this.expression.walk(e),this.optional&&rM(e);for(let t of this.args)t.walk(e);return!0}),$j(ek,function(e){if(this.optional)return this.expression.walk(e),rM(e),this.property instanceof Z&&this.property.walk(e),!0}),$j(MO,function(e,t){return rM(e),t(),iM(e),!0});function fM(e,t,n){XA(this,16),rM(e),tM(e,n,this);var r;return!this.name&&!this.uses_arguments&&!this.pinned()&&(r=e.parent())instanceof ZO&&r.expression===this&&!r.args.some(e=>e instanceof uO)&&this.argnames.every(e=>e instanceof Ok)&&this.argnames.forEach((t,n)=>{if(t.definition){var i=t.definition();i.orig.length>1||(i.fixed===void 0&&(!this.uses_arguments||e.has_directive(`use strict`))?(i.fixed=function(){return r.args[n]||Y(sA,r)},e.loop_ids.set(i.id,e.in_loop),aM(e,i,!0)):i.fixed=!1)}}),t(),iM(e),pM(this),!0}function pM(e){let t=[];pA(e,n=>{if(n!==e){if(n instanceof hO)return t.push(n),!0;if(n instanceof cO||n instanceof KD)return!0}});let n=new Map,r=new Map,i=new Set,a=new Set;for(let o of t){let t=o.name.definition(),s=[];for(let r of o.enclosed)if(!(r.fixed===!1||r===t||r.scope.get_defun_scope()!==e)){if(i.add(r.id),r.assignments===0&&r.orig.length===1&&r.orig[0]instanceof Lk){a.add(r.id),i.add(r.id),a.add(t.id),i.add(t.id),n.has(t.id)||n.set(t.id,[]),n.get(t.id).push(r.id);continue}s.push(r)}s.length&&(r.set(t.id,s),a.add(t.id),i.add(t.id))}if(!r.size)return;let o=1,s=new Map,c=new Map;mA(e,(e,t)=>{if(e instanceof Ok&&e.thedef){let n=e.definition().id;o++,i.has(n)&&(e instanceof Ak||Pj(e,t.parent()))&&c.set(n,o),a.has(n)&&!s.has(n)&&!vj(t,n)&&s.set(n,o)}});for(let[e,t]of s){let r=new Set(n.get(e));for(let e of r){let i=s.get(e);if(!(i!=null&&i<t)){s.set(e,t);for(let t of n.get(e)||[])r.add(t)}}}for(let[e,t]of r){let n=s.get(e);if(n!==void 0)for(let e of t)e.fixed!==!1&&n<(c.get(e.id)||0)&&(e.fixed=!1)}}$j(dO,fM),$j(nO,function(e,t,n){nM(n,this);let r=e.in_loop;return e.in_loop=this,rM(e),this.body.walk(e),oj(this)&&(iM(e),rM(e)),this.condition.walk(e),iM(e),e.in_loop=r,!0}),$j(iO,function(e,t,n){nM(n,this),this.init&&this.init.walk(e);let r=e.in_loop;return e.in_loop=this,rM(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(oj(this)&&(iM(e),rM(e)),this.step.walk(e)),iM(e),e.in_loop=r,!0}),$j(aO,function(e,t,n){nM(n,this),dM(this.init),this.object.walk(e);let r=e.in_loop;return e.in_loop=this,rM(e),this.body.walk(e),iM(e),e.in_loop=r,!0}),$j(kO,function(e){return this.condition.walk(e),rM(e),this.body.walk(e),iM(e),this.alternative&&(rM(e),this.alternative.walk(e),iM(e)),!0}),$j($D,function(e){return rM(e),this.body.walk(e),iM(e),!0}),$j(Uk,function(){this.definition().fixed=!1}),$j($,function(e,t,n){var r=this.definition();r.references.push(this),r.references.length==1&&!r.fixed&&r.orig[0]instanceof Lk&&e.loop_ids.set(r.id,e.in_loop);var i;r.fixed===void 0||!oM(e,r)?r.fixed=!1:r.fixed&&(i=this.fixed_value(),i instanceof dO&&vj(e,r)?r.recursive_refs++:i&&!n.exposed(r)&&cM(e,n,r)?r.single_use=i instanceof dO&&!i.pinned()||i instanceof xk||r.scope===this.scope&&i.is_constant_expression():r.single_use=!1,Lj(n,e,this,i,0,lM(i))&&(r.single_use?r.single_use=`m`:r.fixed=!1)),uM(e,r,this.scope,this,i,0,1)}),$j(lO,function(e,t,n){return this.globals.forEach(function(e){eM(n,e)}),tM(e,n,this),t(),pM(this),!0}),$j(PO,function(e,t,n){return nM(n,this),rM(e),this.body.walk(e),iM(e),this.bcatch&&(rM(e),this.bcatch.walk(e),iM(e)),this.bfinally&&this.bfinally.walk(e),!0}),$j(ak,function(e){var t=this;if(!(t.operator!==`++`&&t.operator!==`--`)){var n=t.expression;if(n instanceof $){var r=n.definition(),i=sM(e,r,n.scope,!0);if(r.assignments++,i){var a=r.fixed;if(a)return r.references.push(n),r.chained=!0,r.fixed=function(){return Y(Q,t,{operator:t.operator.slice(0,-1),left:Y(ok,t,{operator:`+`,expression:a instanceof Z?a:a()}),right:Y(tA,t,{value:1})})},aM(e,r,!0),!0}}}}),$j(GO,function(e,t){var n=this;if(n.name instanceof gO){dM(n.name);return}var r=n.name.definition();if(n.value){if(sM(e,r,n.name.scope,n.value))return r.fixed=function(){return n.value},e.loop_ids.set(r.id,e.in_loop),aM(e,r,!1),t(),aM(e,r,!0),!0;r.fixed=!1}}),$j(KO,function(){dM(this.name)}),$j(rO,function(e,t,n){nM(n,this);let r=e.in_loop;return e.in_loop=this,rM(e),t(),iM(e),e.in_loop=r,!0});function mM(e){return e instanceof eO&&e.body instanceof XD?e.body:e}function hM(e){if(e instanceof Zk)return!0;if(e instanceof $)return e.definition().orig[0]instanceof Bk;if(e instanceof ek){if(e=e.expression,e instanceof $){if(e.is_immutable())return!1;e=e.fixed_value()}return e?e instanceof rA?!1:e instanceof $k?!0:hM(e):!0}return!1}function gM(e){var t=[];return e.definitions.forEach(function(e){e.name instanceof Ak?(e.value=null,t.push(e)):e.declarations_as_names().forEach(n=>{t.push(Y(GO,e,{name:n,value:null}))})}),t.length?Y(BO,e,{definitions:t}):null}function _M(e,t,n){pA(t,r=>{if(r instanceof BO){let e=gM(r);return e&&n.push(e),!0}if(r instanceof hO&&(r===t||!e.has_directive(`use strict`)))return n.push(r===t?r:Y(BO,r,{definitions:[Y(GO,r,{name:Y(jk,r.name,r.name),value:null})]})),!0;if(r instanceof XO||r instanceof JO)return n.push(r),!0;if(r instanceof cO||r instanceof xk)return!0})}function vM(e,t){let n=t.find_scope(),r=n.get_defun_scope(),{in_loop:i,in_try:a}=c();var o,s=10;do o=!1,u(e),t.option(`dead_code`)&&f(e,t),t.option(`if_return`)&&d(e,t),t.sequences_limit>0&&(m(e,t),g(e,t)),t.option(`join_vars`)&&v(e),t.option(`collapse_vars`)&&l(e,t);while(o&&s-- >0);function c(){var e=t.self(),n=0,r=!1,i=!1;do if(e instanceof eO)r=!0;else if(e instanceof cO)break;else e instanceof FO&&(i=!0);while(e=t.parent(n++));return{in_loop:r,in_try:i}}function l(e,t){if(n.pinned()||r.pinned())return e;for(var s,c=[],l=e.length,u=new _A(function(e){if(E)return e;if(!T)return e===f[p]?(p++,p<f.length?j(e):(T=!0,g=ie(e,0),g===e&&(E=!0),e)):e;var r=u.parent();if(e instanceof lk&&(e.logical||e.operator!=`=`&&v.equivalent_to(e.left))||e instanceof DO||e instanceof UO||e instanceof ZO&&v instanceof ek&&v.equivalent_to(e.expression)||(e instanceof ZO||e instanceof ek)&&e.optional||e instanceof WD||e instanceof gO||e instanceof uO&&e.expression instanceof Ok&&(e.expression instanceof Zk||e.expression.definition().references.length>1)||e instanceof eO&&!(e instanceof iO)||e instanceof wO||e instanceof PO||e instanceof sO||e instanceof OO||e instanceof XO||e instanceof xk||r instanceof iO&&e!==r.init||!S&&e instanceof $&&!e.is_declared(t)&&!xj.has(e)||e instanceof $&&r instanceof ZO&&WE(r,4)||e instanceof pk&&e.key instanceof Z)return E=!0,e;if(!_&&(!b||!S)&&(r instanceof Q&&Oj.has(r.operator)&&r.left!==e||r instanceof ck&&r.condition!==e||r instanceof kO&&r.condition!==e)&&(_=r),O&&!(e instanceof Ak)&&v.equivalent_to(e)&&!pe(u.find_scope()||n,y)){if(_)return E=!0,e;if(Pj(e,r))return h&&D++,e;if(D++,h&&m instanceof GO)return e;if(o=E=!0,m instanceof sk)return Y(ok,m,m);if(m instanceof GO){var i=m.name.definition(),s=m.value;return i.references.length-i.replaced==1&&!t.exposed(i)?(i.replaced++,w&&pj(s)?s.transform(t):sj(r,e,s)):Y(lk,m,{operator:`=`,logical:!1,left:Y($,m.name,m.name),right:s})}return XA(m,32),m}var c;return(e instanceof ZO||e instanceof xO&&(x||v instanceof ek||de(v))||e instanceof ek&&(x||e.expression.may_throw_on_access(t))||e instanceof $&&(y.has(e.name)&&y.get(e.name).modified||x&&de(e))||e instanceof GO&&e.value&&(y.has(e.name.name)||x&&de(e.name))||e instanceof UO||(c=Pj(e.left,e))&&(c instanceof ek||y.has(c.name))||C&&(a?e.has_side_effects(t):fe(e)))&&(g=e,e instanceof cO&&(E=!0)),j(e)},function(e){E||(g===e&&(E=!0),_===e&&(_=null))}),d=new _A(function(e){if(E)return e;if(!T)return e===f[p]?(p++,p<f.length?void 0:(T=!0,e)):e;if(e instanceof $&&e.name==A.name)return--D||(E=!0),Pj(e,d.parent())?e:(A.replaced++,h.replaced--,m.value);if(e instanceof MO||e instanceof cO)return e});--l>=0;){l==0&&t.option(`unused`)&&re();var f=[];for(M(e[l]);c.length>0;){f=c.pop();var p=0,m=f[f.length-1],h=null,g=null,_=null,v=N(m);if(!(!v||hM(v)||v.has_side_effects(t))){var y=se(m),b=ce(v);v instanceof $&&y.set(v.name,{def:v.definition(),modified:!1});var x=le(m),S=ue(),C=m.may_throw(t),w=m.name instanceof Ik,T=w,E=!1,D=0,O=!s||!T;if(!O){for(let e=t.self().argnames.lastIndexOf(m.name)+1;!E&&e<s.length;e++)s[e].transform(u);O=!0}for(var k=l;!E&&k<e.length;k++)e[k].transform(u);if(h){var A=m.name.definition();if(E&&A.references.length-A.replaced>D)D=!1;else{E=!1,p=0,T=w;for(var k=l;!E&&k<e.length;k++)e[k].transform(d);h.single_use=!1}}D&&!P(m)&&e.splice(l,1)}}}function j(e){if(e instanceof cO)return e;if(e instanceof AO){e.expression=e.expression.transform(u);for(var t=0,n=e.body.length;!E&&t<n;t++){var r=e.body[t];if(r instanceof NO){if(!T){if(r!==f[p])continue;p++}if(r.expression=r.expression.transform(u),!S)break}}return E=!0,e}}function ee(e,t){if(e.global)return!1;let n=e.scope;for(;n&&n!==t;){if(n.variables.has(e.name))return!0;n=n.parent_scope}return!1}function te(e,t,n){var i=!1,a=!(e instanceof mO);return t.walk(new gA(function(t,o){if(i)return!0;if(t instanceof $&&(e.variables.has(t.name)||ee(t.definition(),e))){var s=t.definition().scope;if(s!==r){for(;s=s.parent_scope;)if(s===r)return!0}return i=!0}if((n||a)&&t instanceof Zk)return i=!0;if(t instanceof cO&&!(t instanceof mO)){var c=a;return a=!1,o(),a=c,!0}})),i}function ne(e){return!(e instanceof uO||pA(e,e=>{if(e instanceof DO)return hA}))}function re(){var e,n=t.self();if(lj(n)&&!n.name&&!n.uses_arguments&&!n.pinned()&&(e=t.parent())instanceof ZO&&e.expression===n&&e.args.every(ne)){var r=t.has_directive(`use strict`);r&&!bE(r,n.body)&&(r=!1);var i=n.argnames.length;s=e.args.slice(i);for(var a=new Set,o=i;--o>=0;){var l=n.argnames[o],u=e.args[o];let i=l.definition&&l.definition();if(!(i&&i.orig.length>1)&&(s.unshift(Y(GO,l,{name:l,value:u})),!a.has(l.name)))if(a.add(l.name),l instanceof uO){var d=e.args.slice(o);d.every(e=>!te(n,e,r))&&c.unshift([Y(GO,l,{name:l.expression,value:Y(dk,e,{elements:d})})])}else u?(u instanceof dO&&u.pinned()||te(n,u,r))&&(u=null):u=Y(sA,l).transform(t),u&&c.unshift([Y(GO,l,{name:l,value:u})])}}}function M(e){if(f.push(e),e instanceof lk)!e.left.has_side_effects(t)&&!(e.right instanceof ik)&&c.push(f.slice()),M(e.right);else if(e instanceof Q)M(e.left),M(e.right);else if(e instanceof ZO&&!WE(e,4))M(e.expression),e.args.forEach(M);else if(e instanceof NO)M(e.expression);else if(e instanceof ck)M(e.condition),M(e.consequent),M(e.alternative);else if(e instanceof zO){var n=e.definitions.length,r=n-200;for(r<0&&(r=0);r<n;r++)M(e.definitions[r])}else e instanceof tO?(M(e.condition),e.body instanceof YD||M(e.body)):e instanceof xO?e.value&&M(e.value):e instanceof iO?(e.init&&M(e.init),e.condition&&M(e.condition),e.step&&M(e.step),e.body instanceof YD||M(e.body)):e instanceof aO?(M(e.object),e.body instanceof YD||M(e.body)):e instanceof kO?(M(e.condition),e.body instanceof YD||M(e.body),e.alternative&&!(e.alternative instanceof YD)&&M(e.alternative)):e instanceof $O?e.expressions.forEach(M):e instanceof KD?M(e.body):e instanceof AO?(M(e.expression),e.body.forEach(M)):e instanceof ak?(e.operator==`++`||e.operator==`--`)&&c.push(f.slice()):e instanceof GO&&e.value&&!(e.value instanceof ik)&&(c.push(f.slice()),M(e.value));f.pop()}function ie(e,t,n){var r=u.parent(t);return r instanceof lk?n&&!r.logical&&!(r.left instanceof ek||y.has(r.left.name))?ie(r,t+1,n):e:r instanceof Q?n&&(!Oj.has(r.operator)||r.left===e)?ie(r,t+1,n):e:r instanceof ZO||r instanceof NO?e:r instanceof ck?n&&r.condition===e?ie(r,t+1,n):e:r instanceof zO?ie(r,t+1,!0):r instanceof xO?n?ie(r,t+1,n):e:r instanceof kO?n&&r.condition===e?ie(r,t+1,n):e:r instanceof eO?e:r instanceof $O?ie(r,t+1,r.tail_node()!==e):r instanceof KD?ie(r,t+1,!0):r instanceof AO||r instanceof GO?e:null}function ae(e){var t=e.value;if(t instanceof $&&t.name!=`arguments`){var n=t.definition();if(!n.undeclared)return h=n}}function N(e){if(e instanceof lk&&e.logical)return!1;if(e instanceof GO&&e.name instanceof Ak){var n=e.name.definition();if(!bE(e.name,n.orig))return;var r=n.references.length-n.replaced;if(!r)return;if(n.orig.length-n.eliminated>1&&!(e.name instanceof Ik)||(r>1?ae(e):!t.exposed(n)))return Y($,e.name,e.name)}else{let t=e instanceof lk?e.left:e.expression;return!mj(t,Nk)&&!mj(t,Fk)&&!mj(t,Pk)&&t}}function oe(e){return e instanceof lk?e.right:e.value}function se(e){var n=new Map;if(e instanceof ak)return n;var r=new gA(function(e){for(var i=e;i instanceof ek;)i=i.expression;if(i instanceof $){let a=n.get(i.name);(!a||!a.modified)&&n.set(i.name,{def:i.definition(),modified:Lj(t,r,e,e,0)})}});return oe(e).walk(r),n}function P(n){if(n.name instanceof Ik){var r=t.parent(),i=t.self().argnames,a=i.indexOf(n.name);if(a<0)r.args.length=Math.min(r.args.length,i.length-1);else{var o=r.args;o[a]&&(o[a]=Y(tA,o[a],{value:0}))}return!0}var s=!1;return e[l].transform(new _A(function(e,t,r){if(s)return e;if(e===n||e.body===n)return s=!0,e instanceof GO?(e.value=e.name instanceof Nk?Y(sA,e.value):null,e):r?OE.skip:null},function(e){if(e instanceof $O)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function ce(e){for(;e instanceof ek;)e=e.expression;return e instanceof $&&e.definition().scope.get_defun_scope()===r&&!(i&&(y.has(e.name)||m instanceof ak||m instanceof lk&&!m.logical&&m.operator!=`=`))}function le(e){return e instanceof ak?kj.has(e.operator):oe(e).has_side_effects(t)}function ue(){if(x)return!1;if(h)return!0;if(v instanceof $){var e=v.definition();if(e.references.length-e.replaced==(m instanceof GO?1:2))return!0}return!1}function de(e){if(!e.definition)return!0;var t=e.definition();return t.orig.length==1&&t.orig[0]instanceof Lk?!1:t.scope.get_defun_scope()===r?t.references.some(e=>e.scope.get_defun_scope()!==r):!0}function fe(e,t){if(e instanceof lk)return fe(e.left,!0);if(e instanceof ak)return fe(e.expression,!0);if(e instanceof GO)return e.value&&fe(e.value);if(t){if(e instanceof tk||e instanceof rk)return fe(e.expression,!0);if(e instanceof $)return e.definition().scope.get_defun_scope()!==r}return!1}function pe(e,t){for(let{def:n}of t.values()){let t=e.find_variable(n.name);if(t){if(t===n)continue;return!0}}return!1}}function u(e){for(var t=[],n=0;n<e.length;){var r=e[n];r instanceof XD&&r.body.every(hj)?(o=!0,u(r.body),e.splice(n,1,...r.body),n+=r.body.length):r instanceof ZD?(o=!0,e.splice(n,1)):r instanceof GD?t.indexOf(r.value)<0?(n++,t.push(r.value)):(o=!0,e.splice(n,1)):n++}}function d(e,t){for(var n=t.self(),r=f(e),i=n instanceof dO,a=Math.min(e.length,500);--a>=0;){var s=e[a],c=v(a),l=e[c];if(i&&!l&&s instanceof SO){if(!s.value){o=!0,e.splice(a,1);continue}if(s.value instanceof ok&&s.value.operator==`void`){o=!0,e[a]=Y(KD,s,{body:s.value.expression});continue}}if(s instanceof kO){let n,r;if(n=Ij(s.body),h(n)&&(r=_(s.body,n))){n.label&&jE(n.label.thedef.references,n),o=!0,s=s.clone(),s.condition=s.condition.negate(t),s.body=Y(XD,s,{body:gj(s.alternative).concat(g())}),s.alternative=Y(XD,s,{body:r}),e[a]=s.transform(t);continue}if(n=Ij(s.alternative),h(n)&&(r=_(s.alternative,n))){n.label&&jE(n.label.thedef.references,n),o=!0,s=s.clone(),s.body=Y(XD,s.body,{body:gj(s.body).concat(g())}),s.alternative=Y(XD,s.alternative,{body:r}),e[a]=s.transform(t);continue}}if(s instanceof kO&&s.body instanceof SO){var u=s.body.value;if(!u&&!s.alternative&&(i&&!l||l instanceof SO&&!l.value)){o=!0,e[a]=Y(KD,s.condition,{body:s.condition});continue}if(u&&!s.alternative&&l instanceof SO&&l.value){o=!0,s=s.clone(),s.alternative=l,e[a]=s.transform(t),e.splice(c,1);continue}if(u&&!s.alternative&&(!l&&i&&r||l instanceof SO)){o=!0,s=s.clone(),s.alternative=l||Y(SO,s,{value:null}),e[a]=s.transform(t),l&&e.splice(c,1);continue}var d=e[y(a)];if(t.option(`sequences`)&&i&&!s.alternative&&d instanceof kO&&d.body instanceof SO&&v(c)==e.length&&l instanceof KD){o=!0,s=s.clone(),s.alternative=Y(XD,l,{body:[l,Y(SO,l,{value:null})]}),e[a]=s.transform(t),e.splice(c,1);continue}}}function f(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof kO&&r.body instanceof SO&&++t>1)return!0}return!1}function m(e){return!e||e instanceof ok&&e.operator==`void`}function h(r){if(!r)return!1;for(var o=a+1,s=e.length;o<s;o++){var c=e[o];if(c instanceof RO&&!(c instanceof BO))return!1}var l=r instanceof wO?t.loopcontrol_target(r):null;return r instanceof SO&&i&&m(r.value)||r instanceof EO&&n===mM(l)||r instanceof TO&&l instanceof XD&&n===l}function g(){var t=e.slice(a+1);return e.length=a+1,t.filter(function(t){return t instanceof hO?(e.push(t),!1):!0})}function _(e,t){var n=gj(e);if(t===n[n.length-1]&&(n=n.slice(0,-1),n.every(e=>hj(e))))return t.value&&n.push(Y(KD,t.value,{body:t.value.expression})),n}function v(t){for(var n=t+1,r=e.length;n<r;n++){var i=e[n];if(!(i instanceof BO&&p(i)))break}return n}function y(t){for(var n=t;--n>=0;){var r=e[n];if(!(r instanceof BO&&p(r)))break}return n}}function f(e,t){for(var n,r=t.self(),i=0,a=0,s=e.length;i<s;i++){var c=e[i];if(c instanceof wO){var l=t.loopcontrol_target(c);c instanceof TO&&!(l instanceof eO)&&mM(l)===r||c instanceof EO&&mM(l)===r?c.label&&jE(c.label.thedef.references,c):e[a++]=c}else e[a++]=c;if(Ij(c)){n=e.slice(i+1);break}}e.length=a,o=a!=s,n&&n.forEach(function(n){_M(t,n,e)})}function p(e){return e.definitions.every(e=>!e.value)}function m(e,t){if(e.length<2)return;var n=[],r=0;function i(){if(n.length){var t=QA(n[0],n);e[r++]=Y(KD,t,{body:t}),n=[]}}for(var a=0,s=e.length;a<s;a++){var c=e[a];if(c instanceof KD){n.length>=t.sequences_limit&&i();var l=c.body;n.length>0&&(l=l.drop_side_effect_free(t)),l&&ZA(n,l)}else c instanceof zO&&p(c)||c instanceof hO||i(),e[r++]=c}i(),e.length=r,r!=s&&(o=!0)}function h(e,t){if(!(e instanceof XD))return e;for(var n=null,r=0,i=e.body.length;r<i;r++){var a=e.body[r];if(a instanceof BO&&p(a))t.push(a);else if(n||a instanceof RO&&!(a instanceof BO))return!1;else n=a}return n}function g(e,t){function n(e){r--,o=!0;var n=i.body;return QA(n,[n,e]).transform(t)}for(var r=0,i,a=0;a<e.length;a++){var s=e[a];if(i&&(s instanceof xO?s.value=n(s.value||Y(sA,s).transform(t)):s instanceof iO?s.init instanceof RO||pA(i.body,e=>{if(e instanceof cO)return!0;if(e instanceof Q&&e.operator===`in`)return hA})||(s.init?s.init=n(s.init):(s.init=i.body,r--,o=!0)):s instanceof aO?(!(s.init instanceof RO)||s.init instanceof BO)&&(s.object=n(s.object)):s instanceof kO?s.condition=n(s.condition):(s instanceof AO||s instanceof sO)&&(s.expression=n(s.expression))),t.option(`conditionals`)&&s instanceof kO){var c=[],l=h(s.body,c),u=h(s.alternative,c);if(l!==!1&&u!==!1&&c.length>0){var d=c.length;c.push(Y(kO,s,{condition:s.condition,body:l||Y(ZD,s.body),alternative:u})),c.unshift(r,1),[].splice.apply(e,c),a+=d,r+=d+1,i=null,o=!0;continue}}e[r++]=s,i=s instanceof KD?s:null}e.length=r}function _(e,r){if(e instanceof zO){var i=e.definitions[e.definitions.length-1];if(i.value instanceof fk){var a;if(r instanceof lk&&!r.logical?a=[r]:r instanceof $O&&(a=r.expressions.slice()),a){var o=!1;do{var s=a[0];if(!(s instanceof lk)||s.operator!=`=`||!(s.left instanceof ek))break;var c=s.left.expression;if(!(c instanceof $)||i.name.name!=c.name||!s.right.is_constant_expression(n))break;var l=s.left.property;if(l instanceof Z&&(l=l.evaluate(t)),l instanceof Z)break;l=``+l;var u=t.option(`ecma`)<2015&&t.has_directive(`use strict`)?function(e){return e.key!=l&&e.key&&e.key.name!=l}:function(e){return e.key&&e.key.name!=l};if(!i.value.properties.every(u))break;var d=i.value.properties.filter(function(e){return e.key===l})[0];d?d.value=new $O({start:d.start,expressions:[d.value.clone(),s.right.clone()],end:d.end}):i.value.properties.push(Y(mk,s,{key:l,value:s.right})),a.shift(),o=!0}while(a.length);return o&&a}}}}function v(e){for(var t,n=0,r=-1,i=e.length;n<i;n++){var a=e[n],s=e[r];if(a instanceof zO)s&&s.TYPE==a.TYPE?(s.definitions=s.definitions.concat(a.definitions),o=!0):t&&t.TYPE==a.TYPE&&p(a)?(t.definitions=t.definitions.concat(a.definitions),o=!0):(e[++r]=a,t=a);else if(a instanceof UO&&s instanceof UO&&s.await===a.await)s.definitions=s.definitions.concat(a.definitions);else if(a instanceof xO)a.value=l(a.value);else if(a instanceof iO){var c=_(s,a.init);c?(o=!0,a.init=c.length?QA(a.init,c):null,e[++r]=a):s instanceof BO&&(!a.init||a.init.TYPE==s.TYPE)?(a.init&&(s.definitions=s.definitions.concat(a.init.definitions)),a.init=s,e[r]=a,o=!0):t instanceof BO&&a.init instanceof BO&&p(a.init)?(t.definitions=t.definitions.concat(a.init.definitions),a.init=null,e[++r]=a,o=!0):e[++r]=a}else if(a instanceof aO)a.object=l(a.object);else if(a instanceof kO)a.condition=l(a.condition);else if(a instanceof KD){var c=_(s,a.body);if(c){if(o=!0,!c.length)continue;a.body=QA(a.body,c)}e[++r]=a}else a instanceof AO||a instanceof sO?a.expression=l(a.expression):e[++r]=a}e.length=r+1;function l(t){e[++r]=a;var n=_(s,t);return n?(o=!0,n.length?QA(t,n):t instanceof $O?t.tail_node().left:t.left):t}}}function yM(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof UD)return!1;if(t instanceof dk||t instanceof mk||t instanceof fk)return!0}return!1}function bM(e,t){for(let n of t.enclosed){if(t.variables.has(n.name))continue;let r=e.find_variable(n.name);if(r){if(r===n)continue;return!0}}return!1}function xM(e,t){return e.orig.length===1&&t?t.size()>e.name.length:!0}function SM(e,t){if(t.in_computed_key())return e;let n=t.parent(),r=e.definition(),i=t.find_scope(),a=e.fixed_value();if(t.top_retain&&r.global&&t.top_retain(r)&&xM(r,a))return r.fixed=!1,r.single_use=!1,e;if(wM(t,a))return e;let o=r.single_use&&!(n instanceof ZO&&n.is_callee_pure(t)||WE(n,4))&&!(n instanceof XO&&a instanceof dO&&a.name);if(o&&a instanceof Z&&(o=!a.has_side_effects(t)&&!a.may_throw(t)),a instanceof xk&&r.scope!==e.scope)return e;if(o&&(a instanceof dO||a instanceof xk)){if(yj(a,t))o=!1;else if(r.scope!==e.scope&&(r.escaped==1||JA(a,16)||yM(t)||!t.option(`reduce_funcs`)))o=!1;else if(vj(t,r))o=!1;else if((r.scope!==e.scope||r.orig[0]instanceof Ik)&&(o=a.is_constant_expression(e.scope),o==`f`)){var s=e.scope;do(s instanceof hO||lj(s))&&YA(s,16);while(s=s.parent_scope)}}if(o&&(a instanceof dO||a instanceof xk)&&(o=r.scope===e.scope&&!bM(i,a)||n instanceof ZO&&n.expression===e&&!bM(i,a)&&!(a.name&&a.name.definition().recursive_refs>0)),o&&a){if(a instanceof Tk&&(YA(a,256),a=Y(Dk,a,a)),a instanceof hO&&(YA(a,256),a=Y(pO,a,a)),r.recursive_refs>0&&a.name instanceof Lk){let e=a.name.definition(),t=a.variables.get(a.name.name),n=t&&t.orig[0];n instanceof Bk||(n=Y(Bk,a.name,a.name),n.scope=a,a.name=n,t=a.def_function(n)),pA(a,n=>{n instanceof $&&n.definition()===e&&(n.thedef=t,t.references.push(n))})}return(a instanceof dO||a instanceof xk)&&a.parent_scope!==i&&(a=a.clone(!0,t.get_toplevel()),i.add_child_scope(a)),a.optimize(t)}if(a){let n;if(a instanceof Zk)!(r.orig[0]instanceof Ik)&&r.references.every(e=>r.scope===e.scope)&&(n=a);else{var c=a.evaluate(t);c!==a&&(t.option(`unsafe_regexp`)||!(c instanceof RegExp))&&(n=ej(c,a))}if(n){let i=e.size(t),o=n.size(t),s=0;if(t.option(`unused`)&&!t.exposed(r)&&(s=(i+2+a.size(t))/(r.references.length-r.assignments)),o<=i+s)return n}}return e}function CM(e,t){if(t.in_computed_key())return e;var n=e.expression,r=n,i=e.args.every(e=>!(e instanceof uO));if(t.option(`reduce_vars`)&&r instanceof $&&!WE(e,4)){let i=r.fixed_value();if(yj(i,t)||!t.toplevel.funcs&&n.definition().global)return e;r=i}if(wM(t,r)&&!WE(e,2))return e;var a=r instanceof dO,o=a&&r.body[0],s=a&&!r.is_generator&&!r.async,c=s&&t.option(`inline`)&&!e.is_callee_pure(t);if(c&&o instanceof SO){let n=o.value;if(!n||n.is_constant_expression())return n=n?n.clone(!0):Y(sA,e),QA(e,e.args.concat(n)).optimize(t);if(r.argnames.length===1&&r.argnames[0]instanceof Ik&&e.args.length<2&&!(e.args[0]instanceof uO)&&n instanceof $&&n.name===r.argnames[0].name){let n=(e.args[0]||Y(sA)).optimize(t),r;return n instanceof ek&&(r=t.parent())instanceof ZO&&r.expression===e?QA(e,[Y(tA,e,{value:0}),n]):n}}if(c){var l,u,d=-1;let a,s,c;if(i&&!r.uses_arguments&&!(t.parent()instanceof xk)&&!(r.name&&r instanceof pO)&&(s=m(o))&&(n===r||WE(e,2)||t.option(`unused`)&&(a=n.definition()).references.length==1&&!vj(t,a)&&r.is_constant_expression(n.scope))&&!WE(e,5)&&!r.contains_this()&&_()&&(c=t.find_scope())&&!bM(c,r)&&!(function(){let e=0,n;for(;n=t.parent(e++);){if(n instanceof uk)return!0;if(n instanceof YD)break}return!1})()&&!(l instanceof xk))return YA(r,256),c.add_child_scope(r),QA(e,x(s)).optimize(t)}if(c&&WE(e,2))return YA(r,256),r=Y(r.CTOR===hO?pO:r.CTOR,r,r),r=r.clone(!0),r.figure_out_scope({},{parent_scope:t.find_scope(),toplevel:t.get_toplevel()}),Y(ZO,e,{expression:r,args:e.args}).optimize(t);if(s&&t.option(`side_effects`)&&r.body.every(dj))return QA(e,e.args.concat(Y(sA,e))).optimize(t);if(t.option(`negate_iife`)&&t.parent()instanceof KD&&uj(e))return e.negate(t,!0);var f=e.evaluate(t);if(f!==e)return f=ej(f,e).optimize(t),rj(t,f,e);return e;function p(t){if(!t)return Y(sA,e);if(t instanceof SO)return t.value?t.value.clone(!0):Y(sA,e);if(t instanceof KD)return Y(ok,t,{operator:`void`,expression:t.body.clone(!0)})}function m(e){var n=r.body,i=n.length;if(t.option(`inline`)<3)return i==1&&p(e);e=null;for(var a=0;a<i;a++){var o=n[a];if(o instanceof BO){if(e&&!o.definitions.every(e=>!e.value))return!1}else if(e)return!1;else o instanceof ZD||(e=o)}return p(e)}function h(e,t){for(var n=0,i=r.argnames.length;n<i;n++){var a=r.argnames[n];if(a instanceof uk){if(JA(a.left,1))continue;return!1}if(a instanceof gO)return!1;if(a instanceof uO){if(JA(a.expression,1))continue;return!1}if(!JA(a,1)){if(!t||e.has(a.name)||fj.has(a.name)||l.conflicting_def(a.name))return!1;u&&u.push(a.definition())}}return!0}function g(e,t){for(var n=r.body.length,i=0;i<n;i++){var a=r.body[i];if(a instanceof BO){if(!t)return!1;for(var o=a.definitions.length;--o>=0;){var s=a.definitions[o].name;if(s instanceof gO||e.has(s.name)||fj.has(s.name)||l.conflicting_def(s.name))return!1;u&&u.push(s.definition())}}}return!0}function _(){var e=new Set;do if(l=t.parent(++d),l.is_block_scope()&&l.block_scope&&l.block_scope.variables.forEach(function(t){e.add(t.name)}),l instanceof IO)l.argname&&e.add(l.argname.name);else if(l instanceof eO)u=[];else if(l instanceof $&&l.fixed_value()instanceof cO)return!1;while(!(l instanceof cO));var n=!(l instanceof lO)||t.toplevel.vars,i=t.option(`inline`);return!g(e,i>=3&&n)||!h(e,i>=2&&n)?!1:!u||u.length==0||!_j(r,u)}function v(t,n,r,i){var a=r.definition();l.variables.has(r.name)||(l.variables.set(r.name,a),l.enclosed.push(a),t.push(Y(GO,r,{name:r,value:null})));var o=Y($,r,r);a.references.push(o),i&&n.push(Y(lk,e,{operator:`=`,logical:!1,left:o,right:i.clone()}))}function y(t,n){for(var i=r.argnames.length,a=e.args.length;--a>=i;)n.push(e.args[a]);for(a=i;--a>=0;){var o=r.argnames[a],s=e.args[a];if(JA(o,1)||!o.name||l.conflicting_def(o.name))s&&n.push(s);else{var c=Y(jk,o,o);o.definition().orig.push(c),!s&&u&&(s=Y(sA,e)),v(t,n,c,s)}}t.reverse(),n.reverse()}function b(e,t){for(var n=t.length,i=0,a=r.body.length;i<a;i++){var o=r.body[i];if(o instanceof BO)for(var s=0,c=o.definitions.length;s<c;s++){var l=o.definitions[s],d=l.name;if(v(e,t,d,l.value),u&&r.argnames.every(e=>e.name!=d.name)){var f=r.variables.get(d.name),p=Y($,d,d);f.references.push(p),t.splice(n++,0,Y(lk,l,{operator:`=`,logical:!1,left:p,right:Y(sA,d)}))}}}}function x(e){var n=[],i=[];if(y(n,i),b(n,i),i.push(e),n.length){let e=l.body.indexOf(t.parent(d-1))+1;l.body.splice(e,0,Y(BO,r,{definitions:n}))}return i.map(e=>e.clone(!0))}}function wM(e,t){return(t instanceof dO||t instanceof xk)&&!!e.is_within_loop()}(function(e){function t(e,n){if(e instanceof Z)return e instanceof $k||(e=e.clone(!0)),Y(e.CTOR,n,e);if(Array.isArray(e))return Y(dk,n,{elements:e.map(function(e){return t(e,n)})});if(e&&typeof e==`object`){var r=[];for(var i in e)LE(e,i)&&r.push(Y(mk,n,{key:i,value:t(e[i],n)}));return Y(fk,n,{properties:r})}return ej(e,n)}lO.DEFMETHOD(`resolve_defines`,function(e){return e.option(`global_defs`)?(this.figure_out_scope({ie8:e.option(`ie8`)}),this.transform(new _A(function(t){var n=t._find_defs(e,``);if(n){for(var r=0,i=t,a;(a=this.parent(r++))&&!(!(a instanceof ek)||a.expression!==i);)i=a;if(!Pj(i,a))return n}}))):this}),e(Z,CE),e(ik,function(e,t){return this.expression._find_defs(e,t)}),e(tk,function(e,t){return this.expression._find_defs(e,`.`+this.property+t)}),e(Ak,function(){this.global()}),e($,function(e,n){if(this.global()){var r=e.option(`global_defs`),i=this.name+n;if(LE(r,i))return t(r[i],this)}}),e(YO,function(e,n){var r=e.option(`global_defs`),i=`import.meta`+n;if(LE(r,i))return t(r[i],this)})})(function(e,t){e.DEFMETHOD(`_find_defs`,t)});var TM=class extends gA{constructor(e,{false_by_default:t=!1,mangle_options:n=!1}){super(),e.defaults!==void 0&&!e.defaults&&(t=!0),this.options=SE(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,lhs_constants:!t,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&`strict`,pure_funcs:null,pure_new:!1,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!!(e&&e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var r=this.options.global_defs;if(typeof r==`object`)for(var i in r)i[0]===`@`&&LE(r,i)&&(r[i.slice(1)]=zD(r[i],{expression:!0}));this.options.inline===!0&&(this.options.inline=3);var a=this.options.pure_funcs;typeof a==`function`?this.pure_funcs=a:this.pure_funcs=a?function(e){return!a.includes(e.expression.print_to_string())}:TE;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=function(e){return o.test(e.name)}:typeof o==`function`?this.top_retain=o:o&&(typeof o==`string`&&(o=o.split(/,/)),this.top_retain=function(e){return o.includes(e.name)}),this.options.module&&(this.directives[`use strict`]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel=typeof s==`string`?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var c=this.options.sequences;this.sequences_limit=c==1?800:c|0,this.evaluated_regexps=new Map,this._toplevel=void 0,this._mangle_options=n&&BA(n)}mangle_options(){var e=this._mangle_options&&this._mangle_options.nth_identifier||VA,t=this._mangle_options&&this._mangle_options.module||this.option(`module`);return{ie8:this.option(`ie8`),nth_identifier:e,module:t}}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global){for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof Lk?`funcs`:`vars`])return!0}return!1}in_boolean_context(){if(!this.option(`booleans`))return!1;for(var e=this.self(),t=0,n;n=this.parent(t);t++){if(n instanceof KD||n instanceof ck&&n.condition===e||n instanceof tO&&n.condition===e||n instanceof iO&&n.condition===e||n instanceof kO&&n.condition===e||n instanceof ok&&n.operator==`!`&&n.expression===e)return!0;if(n instanceof Q&&(n.operator==`&&`||n.operator==`||`||n.operator==`??`)||n instanceof ck||n.tail_node()===e)e=n;else return!1}}in_32_bit_context(e){if(!this.option(`evaluate`))return!1;for(var t=this.self(),n=0,r;r=this.parent(n);n++){if(r instanceof Q&&Dj.has(r.operator))return e?(t===r.left?r.right:r.left).is_number(this):!0;if(r instanceof ok)return r.operator===`~`;if(r instanceof Q&&(r.operator==`&&`&&r.right===t||r.operator==`||`&&r.right===t||r.operator==`??`&&r.right===t)||r instanceof ck&&r.condition!==t||r.tail_node()===t)t=r;else return!1}}in_computed_key(){if(!this.option(`evaluate`))return!1;for(var e=this.self(),t=0,n;n=this.parent(t);t++)if(n instanceof pk&&n.key===e)return!0;return!1}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option(`expression`)&&this._toplevel.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,r=!1,i=this.mangle_options(),a=0;a<t;a++)if(this._toplevel.figure_out_scope(i),a===0&&this.option(`drop_console`)&&(this._toplevel=this._toplevel.drop_console(this.option(`drop_console`))),(a>0||this.option(`reduce_vars`))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),t>1){let e=0;if(pA(this._toplevel,()=>{e++}),e<n)n=e,r=!1;else if(r)break;else r=!0}return this.option(`expression`)&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,t){if(JA(e,256))return e;var n=!1;e instanceof cO&&(e=e.hoist_properties(this),e=e.hoist_declarations(this),n=!0),t(e,this),t(e,this);var r=e.optimize(this);return n&&r instanceof cO&&(r.drop_unused(this),t(r,this)),r===e&&YA(r,256),r}is_lhs(){let e=this.stack[this.stack.length-1],t=this.stack[this.stack.length-2];return Pj(e,t)}};function EM(e,t){e.DEFMETHOD(`optimize`,function(e){var n=this;if(JA(n,512)||e.has_directive(`use asm`))return n;var r=t(n,e);return YA(r,512),r})}EM(Z,function(e){return e}),lO.DEFMETHOD(`drop_console`,function(e){let t=Array.isArray(e),n=new _A(function(r){if(r.TYPE===`Call`){var i=r.expression;if(i instanceof ek){for(var a=i.expression,o=i.property,s=2;a.expression;)o=a.property,a=a.expression,s++;if(!(t&&!e.includes(o))&&Ej(a)&&a.name==`console`)if(s===3&&![`call`,`apply`].includes(i.property)&&Rj(n))i.expression=$A(r),YA(i.expression,256),r.args=[];else return Y(sA,r)}}});return this.transform(n)}),Z.DEFMETHOD(`equivalent_to`,function(e){return jA(this,e)}),cO.DEFMETHOD(`process_expression`,function(e,t){var n=this,r=new _A(function(i){if(e&&i instanceof KD)return Y(SO,i,{value:i.body});if(!e&&i instanceof SO){if(t){var a=i.value&&i.value.drop_side_effect_free(t,!0);return a?Y(KD,i,{body:a}):Y(ZD,i)}return Y(KD,i,{body:i.value||Y(ok,i,{operator:`void`,expression:Y(tA,i,{value:0})})})}if(i instanceof xk||i instanceof dO&&i!==n)return i;if(i instanceof YD){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(r))}else i instanceof kO?(i.body=i.body.transform(r),i.alternative&&=i.alternative.transform(r)):i instanceof sO&&(i.body=i.body.transform(r));return i});n.transform(r)}),lO.DEFMETHOD(`reset_opt_flags`,function(e){let t=this,n=e.option(`reduce_vars`),r=new gA(function(i,a){if(XA(i,1792),n)return e.top_retain&&i instanceof hO&&r.parent()===t&&YA(i,qA),i.reduce_vars(r,a,e)});r.safe_ids=Object.create(null),r.in_loop=null,r.loop_ids=new Map,r.defs_to_safe_ids=new Map,t.walk(r)}),Ok.DEFMETHOD(`fixed_value`,function(){var e=this.thedef.fixed;return!e||e instanceof Z?e:e()}),$.DEFMETHOD(`is_immutable`,function(){var e=this.definition().orig;return e.length==1&&e[0]instanceof Bk});function DM(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof cO);)if(n instanceof IO&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}var OM=NE(`Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError`);$.DEFMETHOD(`is_declared`,function(e){return!this.definition().undeclared||e.option(`unsafe`)&&OM.has(this.name)});var kM=new Set([`use asm`,`use strict`]);EM(GD,function(e,t){return t.option(`directives`)&&(!kM.has(e.value)||t.has_directive(e.value)!==e)?Y(ZD,e):e}),EM(WD,function(e,t){return t.option(`drop_debugger`)?Y(ZD,e):e}),EM($D,function(e,t){return e.body instanceof TO&&t.loopcontrol_target(e.body)===e.body?Y(ZD,e):e.label.references.length==0?e.body:e}),EM(YD,function(e,t){return vM(e.body,t),e});function AM(e){return!(e instanceof HO||e instanceof VO||e instanceof UO||e instanceof xk)}EM(XD,function(e,t){switch(vM(e.body,t),e.body.length){case 1:if(!t.has_directive(`use strict`)&&t.parent()instanceof kO&&AM(e.body[0])||hj(e.body[0]))return e.body[0];break;case 0:return Y(ZD,e)}return e});function jM(e,t){return vM(e.body,t),t.option(`side_effects`)&&e.body.length==1&&e.body[0]===t.has_directive(`use strict`)&&(e.body.length=0),e}EM(dO,jM),cO.DEFMETHOD(`hoist_declarations`,function(e){var t=this;if(e.has_directive(`use asm`))return t;var n=e.option(`hoist_funs`),r=e.option(`hoist_vars`);if(n||r){var i=[],a=[],o=new Map,s=0,c=0;pA(t,e=>{if(e instanceof cO&&e!==t)return!0;if(e instanceof BO)return++c,!0}),r&&=c>1;var l=new _A(function(c){if(c!==t){if(c instanceof GD)return i.push(c),Y(ZD,c);if(n&&c instanceof hO&&!(l.parent()instanceof XO)&&l.parent()===t)return a.push(c),Y(ZD,c);if(r&&c instanceof BO&&!c.definitions.some(e=>e.name instanceof gO)){c.definitions.forEach(function(e){o.set(e.name.name,e),++s});var u=c.to_assignments(e),d=l.parent();if(d instanceof aO&&d.init===c){if(u==null){var f=c.definitions[0].name;return Y($,f,f)}return u}return d instanceof iO&&d.init===c?u:u?Y(KD,c,{body:u}):Y(ZD,c)}if(c instanceof cO)return c}});if(t=t.transform(l),s>0){var u=[];let e=t instanceof dO,n=e?t.args_as_names():null;if(o.forEach((t,r)=>{e&&n.some(e=>e.name===t.name.name)?o.delete(r):(t=t.clone(),t.value=null,u.push(t),o.set(r,t))}),u.length>0){for(var d=0;d<t.body.length;){if(t.body[d]instanceof KD){var f=t.body[d].body,p,m;if(f instanceof lk&&f.operator==`=`&&(p=f.left)instanceof Ok&&o.has(p.name)){var h=o.get(p.name);if(h.value)break;h.value=f.right,jE(u,h),u.push(h),t.body.splice(d,1);continue}if(f instanceof $O&&(m=f.expressions[0])instanceof lk&&m.operator==`=`&&(p=m.left)instanceof Ok&&o.has(p.name)){var h=o.get(p.name);if(h.value)break;h.value=m.right,jE(u,h),u.push(h),t.body[d].body=QA(f,f.expressions.slice(1));continue}}if(t.body[d]instanceof ZD){t.body.splice(d,1);continue}if(t.body[d]instanceof XD){t.body.splice(d,1,...t.body[d].body);continue}break}u=Y(BO,t,{definitions:u}),a.push(u)}}t.body=i.concat(a,t.body)}return t}),cO.DEFMETHOD(`hoist_properties`,function(e){var t=this;if(!e.option(`hoist_props`)||e.has_directive(`use asm`))return t;var n=t instanceof lO&&e.top_retain||wE,r=new Map,i=new _A(function(a,o){if(a instanceof GO){let s=a.name,c,l;if(s.scope===t&&!(s instanceof Pk)&&(c=s.definition()).escaped!=1&&!c.assignments&&!c.direct_access&&!c.single_use&&!e.exposed(c)&&!n(c)&&(l=s.fixed_value())===a.value&&l instanceof fk&&!l.properties.some(e=>e instanceof uO||e.computed_key())){o(a,this);let e=new Map,n=[];return l.properties.forEach(({key:r,value:o})=>{let c=i.find_scope(),l=t.create_symbol(s.CTOR,{source:s,scope:c,conflict_scopes:new Set([c,...s.definition().references.map(e=>e.scope)]),tentative_name:s.name+`_`+r});e.set(String(r),l.definition()),n.push(Y(GO,a,{name:l,value:o}))}),r.set(c.id,e),OE.splice(n)}}else if(a instanceof ek&&a.expression instanceof $){let e=r.get(a.expression.definition().id);if(e){let t=e.get(String(ij(a.property))),n=Y($,a,{name:t.name,scope:a.expression.scope,thedef:t});return n.reference({}),n}}});return t.transform(i)}),EM(KD,function(e,t){if(t.option(`side_effects`)){var n=e.body,r=n.drop_side_effect_free(t,!0);if(!r)return Y(ZD,e);if(r!==n)return Y(KD,e,{body:r})}return e}),EM(rO,function(e,t){return t.option(`loops`)?Y(iO,e,e).optimize(t):e}),EM(nO,function(e,t){if(!t.option(`loops`))return e;var n=e.condition.tail_node().evaluate(t);if(!(n instanceof Z)){if(n)return Y(iO,e,{body:Y(XD,e.body,{body:[e.body,Y(KD,e.condition,{body:e.condition})]})}).optimize(t);if(!oj(e,t.parent()))return Y(XD,e.body,{body:[e.body,Y(KD,e.condition,{body:e.condition})]}).optimize(t)}return e});function MM(e,t){var n=e.body instanceof XD?e.body.body[0]:e.body;if(t.option(`dead_code`)&&i(n)){var r=[];return e.init instanceof UD?r.push(e.init):e.init&&r.push(Y(KD,e.init,{body:e.init})),e.condition&&r.push(Y(KD,e.condition,{body:e.condition})),_M(t,e.body,r),Y(XD,e,{body:r})}return n instanceof kO&&(i(n.body)?(e.condition?e.condition=Y(Q,e.condition,{left:e.condition,operator:`&&`,right:n.condition.negate(t)}):e.condition=n.condition.negate(t),a(n.alternative)):i(n.alternative)&&(e.condition?e.condition=Y(Q,e.condition,{left:e.condition,operator:`&&`,right:n.condition}):e.condition=n.condition,a(n.body))),e;function i(e){return e instanceof TO&&t.loopcontrol_target(e)===t.self()}function a(n){n=gj(n),e.body instanceof XD?(e.body=e.body.clone(),e.body.body=n.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=Y(XD,e.body,{body:n}).transform(t),e=MM(e,t)}}EM(iO,function(e,t){if(!t.option(`loops`))return e;if(t.option(`side_effects`)&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof Z)){if(n)e.condition=null;else if(!t.option(`dead_code`)){var r=e.condition;e.condition=ej(n,e.condition),e.condition=tj(e.condition.transform(t),r)}}if(t.option(`dead_code`)&&(n instanceof Z&&(n=e.condition.tail_node().evaluate(t)),!n)){var i=[];return _M(t,e.body,i),e.init instanceof UD?i.push(e.init):e.init&&i.push(Y(KD,e.init,{body:e.init})),i.push(Y(KD,e.condition,{body:e.condition})),Y(XD,e,{body:i}).optimize(t)}}return MM(e,t)}),EM(kO,function(e,t){if(dj(e.alternative)&&(e.alternative=null),!t.option(`conditionals`))return e;var n=e.condition.evaluate(t);if(!t.option(`dead_code`)&&!(n instanceof Z)){var r=e.condition;e.condition=ej(n,r),e.condition=tj(e.condition.transform(t),r)}if(t.option(`dead_code`))if(n instanceof Z&&(n=e.condition.tail_node().evaluate(t)),n){if(!(n instanceof Z)){var i=[];return i.push(Y(KD,e.condition,{body:e.condition})),i.push(e.body),e.alternative&&_M(t,e.alternative,i),Y(XD,e,{body:i}).optimize(t)}}else{var i=[];return _M(t,e.body,i),i.push(Y(KD,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),Y(XD,e,{body:i}).optimize(t)}var a=e.condition.negate(t),o=e.condition.size(),s=a.size(),c=s<o;if(e.alternative&&c){c=!1,e.condition=a;var l=e.body;e.body=e.alternative||Y(ZD,e),e.alternative=l}if(dj(e.body)&&dj(e.alternative))return Y(KD,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof KD&&e.alternative instanceof KD)return Y(KD,e,{body:Y(ck,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(dj(e.alternative)&&e.body instanceof KD)return o===s&&!c&&e.condition instanceof Q&&e.condition.operator==`||`&&(c=!0),c?Y(KD,e,{body:Y(Q,e,{operator:`||`,left:a,right:e.body.body})}).optimize(t):Y(KD,e,{body:Y(Q,e,{operator:`&&`,left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof ZD&&e.alternative instanceof KD)return Y(KD,e,{body:Y(Q,e,{operator:`||`,left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof xO&&e.alternative instanceof xO&&e.body.TYPE==e.alternative.TYPE)return Y(e.body.CTOR,e,{value:Y(ck,e,{condition:e.condition,consequent:e.body.value||Y(sA,e.body),alternative:e.alternative.value||Y(sA,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof kO&&!e.body.alternative&&!e.alternative&&(e=Y(kO,e,{condition:Y(Q,e.condition,{operator:`&&`,left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),Ij(e.body)&&e.alternative){var u=e.alternative;return e.alternative=null,Y(XD,e,{body:[e,u]}).optimize(t)}if(Ij(e.alternative)){var i=e.body;return e.body=e.alternative,e.condition=c?a:e.condition.negate(t),e.alternative=null,Y(XD,e,{body:[e,i]}).optimize(t)}return e}),EM(AO,function(e,t){if(!t.option(`switches`))return e;var n,r=e.expression.evaluate(t);if(!(r instanceof Z)){var i=e.expression;e.expression=ej(r,i),e.expression=tj(e.expression.transform(t),i)}if(!t.option(`dead_code`))return e;r instanceof Z&&(r=e.expression.tail_node().evaluate(t));for(var a=[],o=[],s,c,l=0,u=e.body.length;l<u&&!c;l++){if(n=e.body[l],n instanceof MO)s?m(n,o[o.length-1]):s=n;else if(!(r instanceof Z)){var d=n.expression.evaluate(t);if(!(d instanceof Z)&&d!==r){m(n,o[o.length-1]);continue}if(d instanceof Z&&!d.has_side_effects(t)&&(d=n.expression.tail_node().evaluate(t)),d===r&&(c=n,s)){var f=o.indexOf(s);o.splice(f,1),m(s,o[f-1]),s=null}}o.push(n)}for(;l<u;)m(e.body[l++],o[o.length-1]);e.body=o;let p=s||c;if(s=null,c=null,o.every((e,t)=>(e===p||e.expression instanceof $k)&&(e.body.length===0||Ij(e)||o.length-1===t)))for(let e=0;e<o.length;e++){let t=o[e];for(let n=e+1;n<o.length;n++){let r=o[n];if(r.body.length===0)continue;let i=n===o.length-1,a=h(r,t,!1);if(a||i&&h(r,t,!0)){!a&&i&&r.body.push(Y(TO));let t=n-1,s=0;for(;t>e&&y(o[t--]);)s++;let c=o.splice(n-s,1+s);o.splice(e+1,0,...c),e+=c.length}}}for(let e=0;e<o.length;e++){let t=o[e];if(t.body.length!==0&&Ij(t))for(let n=e+1;n<o.length;e++,n++){let e=o[n];if(e.body.length!==0){if(h(e,t,!1)||n===o.length-1&&h(e,t,!0)){t.body=[],t=e;continue}break}}}{let e=o.length-1;for(;e>=0;e--){let n=o[e].body;for(;v(n[n.length-1],t);)n.pop();if(!y(o[e]))break}if(e++,!p||o.indexOf(p)>=e)for(let n=o.length-1;n>=e;n--){let e=o[n];if(e===p)p=null,m(o.pop());else if(!e.expression.has_side_effects(t))m(o.pop());else break}}DEFAULT:if(p){let e=o.indexOf(p),n=e;for(;n<o.length-1&&y(o[n]);n++);if(n<o.length-1)break DEFAULT;let r=o.length-1;for(;r>=0;r--){let e=o[r];if(e!==p&&e.expression.has_side_effects(t))break}if(n>r){let t=e-1;for(;t>=0&&y(o[t]);t--);let i=Math.max(r,t)+1,a=e;r>e?(a=r,o[r].body=o[n].body):p.body=o[n].body,o.splice(a+1,n-a),o.splice(i,e-i)}}DEFAULT:if(p){let n=o.findIndex(e=>!y(e)),r;if(n===o.length-1){let t=o[n];if(_(e))break DEFAULT;r=Y(XD,t,{body:t.body}),t.body=[]}else if(n!==-1)break DEFAULT;if(!o.find(e=>e!==p&&e.expression.has_side_effects(t)))return Y(XD,e,{body:a.concat(g(e.expression),p.expression?g(p.expression):[],r||[])}).optimize(t);let i=o.indexOf(p);if(o.splice(i,1),p=null,r)return Y(XD,e,{body:a.concat(e,r)}).optimize(t)}if(o.length>0&&(o[0].body=a.concat(o[0].body)),o.length==0)return Y(XD,e,{body:a.concat(g(e.expression))}).optimize(t);if(o.length==1&&!_(e)){let n=o[0];return Y(kO,e,{condition:Y(Q,e,{operator:`===`,left:e.expression,right:n.expression}),body:Y(XD,n,{body:n.body}),alternative:null}).optimize(t)}if(o.length===2&&p&&!_(e)){let n=o[0]===p?o[1]:o[0],r=p.expression&&g(p.expression);if(Ij(o[0])){let i=o[0];return v(i.body[i.body.length-1],t)&&i.body.pop(),Y(kO,e,{condition:Y(Q,e,{operator:`===`,left:e.expression,right:n.expression}),body:Y(XD,n,{body:n.body}),alternative:Y(XD,p,{body:[].concat(r||[],p.body)})}).optimize(t)}let i=`===`,a=Y(XD,n,{body:n.body}),s=Y(XD,p,{body:[].concat(r||[],p.body)});if(o[0]===p){i=`!==`;let e=s;s=a,a=e}return Y(XD,e,{body:[Y(kO,e,{condition:Y(Q,e,{operator:i,left:e.expression,right:n.expression}),body:a,alternative:null}),s]}).optimize(t)}return e;function m(e,n){n&&!Ij(n)?n.body=n.body.concat(e.body):_M(t,e,a)}function h(e,t,n){let r=e.body,i=t.body;if(n&&(r=r.concat(Y(TO))),r.length!==i.length)return!1;let a=Y(XD,e,{body:r}),o=Y(XD,t,{body:i});return a.equivalent_to(o)}function g(e){return Y(KD,e,{body:e})}function _(e){let t=!1,n=new gA(e=>{if(t||e instanceof dO||e instanceof KD)return!0;if(!v(e,n))return;let r=n.parent();r instanceof jO&&r.body[r.body.length-1]===e||(t=!0)});return e.walk(n),t}function v(t,n){return t instanceof TO&&n.loopcontrol_target(t)===e}function y(e){return!Ij(e)&&!Y(XD,e,{body:e.body}).has_side_effects(t)}}),EM(PO,function(e,t){if(e.bcatch&&e.bfinally&&e.bfinally.body.every(dj)&&(e.bfinally=null),t.option(`dead_code`)&&e.body.body.every(dj)){var n=[];return e.bcatch&&_M(t,e.bcatch,n),e.bfinally&&n.push(...e.bfinally.body),Y(XD,e,{body:n}).optimize(t)}return e}),zO.DEFMETHOD(`to_assignments`,function(e){var t=e.option(`reduce_vars`),n=[];for(let e of this.definitions){if(e.value){var r=Y($,e.name,e.name);n.push(Y(lk,e,{operator:`=`,logical:!1,left:r,right:e.value})),t&&(r.definition().fixed=!1)}let i=e.name.definition();i.eliminated++,i.replaced--}return n.length==0?null:QA(this,n)}),EM(zO,function(e){return e.definitions.length==0?Y(ZD,e):e}),EM(GO,function(e,t){return e.name instanceof Fk&&e.value!=null&&Aj(e.value,t)&&(e.value=null),e}),EM(JO,function(e){return e}),EM(ZO,function(e,t){var n=e.expression,r=n;VM(e.args);var i=e.args.every(e=>!(e instanceof uO));t.option(`reduce_vars`)&&r instanceof $&&(r=r.fixed_value());var a=r instanceof dO;if(a&&r.pinned())return e;if(t.option(`unused`)&&i&&a&&!r.uses_arguments){for(var o=0,s=0,c=0,l=e.args.length;c<l;c++){if(r.argnames[c]instanceof uO){if(JA(r.argnames[c].expression,1))for(;c<l;){var u=e.args[c++].drop_side_effect_free(t);u&&(e.args[o++]=u)}else for(;c<l;)e.args[o++]=e.args[c++];s=o;break}var d=c>=r.argnames.length;if(d||JA(r.argnames[c],1)){var u=e.args[c].drop_side_effect_free(t);if(u)e.args[o++]=u;else if(!d){e.args[o++]=Y(tA,e.args[c],{value:0});continue}}else e.args[o++]=e.args[c];s=o}e.args.length=s}if(n instanceof tk&&n.expression instanceof $&&n.expression.name===`console`&&n.expression.definition().undeclared&&n.property===`assert`){let n=e.args[0];if(n){let r=n.evaluate(t);if(r===1||r===!0)return Y(sA,e)}}if(t.option(`unsafe`)&&!n.contains_optional()){if(n instanceof tk&&n.start.value===`Array`&&n.property===`from`&&e.args.length===1){let[n]=e.args;if(n instanceof dk)return Y(dk,n,{elements:n.elements}).optimize(t)}if(Ej(n))switch(n.name){case`Array`:if(e.args.length!=1)return Y(dk,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof tA&&e.args[0].value<=11){let t=[];for(let n=0;n<e.args[0].value;n++)t.push(new cA);return new dk({elements:t})}break;case`Object`:if(e.args.length==0)return Y(fk,e,{properties:[]});break;case`String`:if(e.args.length==0)return Y(eA,e,{value:``});if(e.args.length<=1)return Y(Q,e,{left:e.args[0],operator:`+`,right:Y(eA,e,{value:``})}).optimize(t);break;case`Number`:if(e.args.length==0)return Y(tA,e,{value:0});if(e.args.length==1&&t.option(`unsafe_math`))return Y(ok,e,{expression:e.args[0],operator:`+`}).optimize(t);break;case`Symbol`:e.args.length==1&&e.args[0]instanceof eA&&t.option(`unsafe_symbols`)&&(e.args.length=0);break;case`Boolean`:if(e.args.length==0)return Y(dA,e);if(e.args.length==1)return Y(ok,e,{expression:Y(ok,e,{expression:e.args[0],operator:`!`}),operator:`!`}).optimize(t);break;case`RegExp`:var f=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);return f.push(n),e!==n})&&HE(f[0])){let[n,r]=f;n=BE(new RegExp(n).source);let i=Y(rA,e,{value:{source:n,flags:r}});if(i._eval(t)!==i)return i}break}else if(n instanceof tk)switch(n.property){case`toString`:if(e.args.length==0&&!n.expression.may_throw_on_access(t))return Y(Q,e,{left:Y(eA,e,{value:``}),operator:`+`,right:n.expression}).optimize(t);break;case`join`:if(n.expression instanceof dk)EXIT:{var p;if(e.args.length>0&&(p=e.args[0].evaluate(t),p===e.args[0]))break EXIT;for(var m=[],h=[],c=0,l=n.expression.elements.length;c<l;c++){var g=n.expression.elements[c];if(g instanceof uO)break EXIT;var _=g.evaluate(t);_===g?(h.length>0&&(m.push(Y(eA,e,{value:h.join(p)})),h.length=0),m.push(g)):h.push(_)}if(h.length>0&&m.push(Y(eA,e,{value:h.join(p)})),m.length==0)return Y(eA,e,{value:``});if(m.length==1)return m[0].is_string(t)?m[0]:Y(Q,m[0],{operator:`+`,left:Y(eA,e,{value:``}),right:m[0]});if(p==``){var v=m[0].is_string(t)||m[1].is_string(t)?m.shift():Y(eA,e,{value:``});return m.reduce(function(e,t){return Y(Q,t,{operator:`+`,left:e,right:t})},v).optimize(t)}var u=e.clone();return u.expression=u.expression.clone(),u.expression.expression=u.expression.expression.clone(),u.expression.expression.elements=m,rj(t,e,u)}break;case`charAt`:if(n.expression.is_string(t)){var y=e.args[0],b=y?y.evaluate(t):0;if(b!==y)return Y(rk,n,{expression:n.expression,property:ej(b|0,y||n)}).optimize(t)}break;case`apply`:if(e.args.length==2&&e.args[1]instanceof dk){var x=e.args[1].elements.slice();return x.unshift(e.args[0]),Y(ZO,e,{expression:Y(tk,n,{expression:n.expression,optional:!1,property:`call`}),args:x}).optimize(t)}break;case`call`:var S=n.expression;if(S instanceof $&&(S=S.fixed_value()),S instanceof dO&&!S.contains_this())return(e.args.length?QA(this,[e.args[0],Y(ZO,e,{expression:n.expression,args:e.args.slice(1)})]):Y(ZO,e,{expression:n.expression,args:[]})).optimize(t);break}}if(t.option(`unsafe_Function`)&&Ej(n)&&n.name==`Function`){if(e.args.length==0)return $A(e).optimize(t);if(e.args.every(e=>e instanceof eA))try{var C=`n(function(`+e.args.slice(0,-1).map(function(e){return e.value}).join(`,`)+`){`+e.args[e.args.length-1].value+`})`,w=zD(C),T=t.mangle_options();w.figure_out_scope(T);var E=new TM(t.options,{mangle_options:t._mangle_options});w=w.transform(E),w.figure_out_scope(T),w.compute_char_frequency(T),w.mangle_names(T);var D;pA(w,e=>{if(lj(e))return D=e,hA});var C=kA();return XD.prototype._codegen.call(D,D,C),e.args=[Y(eA,e,{value:D.argnames.map(function(e){return e.print_to_string()}).join(`,`)}),Y(eA,e.args[e.args.length-1],{value:C.get().replace(/^{|}$/g,``)})],e}catch(e){if(!(e instanceof OD))throw e}}return CM(e,t)}),Z.DEFMETHOD(`contains_optional`,function(){return this instanceof ek||this instanceof ZO||this instanceof ik?this.optional?!0:this.expression.contains_optional():!1}),EM(QO,function(e,t){return t.option(`unsafe`)&&Ej(e.expression)&&[`Object`,`RegExp`,`Function`,`Error`,`Array`].includes(e.expression.name)?Y(ZO,e,e).transform(t):e}),EM($O,function(e,t){if(!t.option(`side_effects`))return e;var n=[];i();var r=n.length-1;if(a(),r==0)return e=sj(t.parent(),t.self(),n[0]),e instanceof $O||(e=e.optimize(t)),e;return e.expressions=n,e;function i(){var r=wA(t),i=e.expressions.length-1;e.expressions.forEach(function(e,a){a<i&&(e=e.drop_side_effect_free(t,r)),e&&(ZA(n,e),r=!1)})}function a(){for(;r>0&&Aj(n[r],t);)r--;r<n.length-1&&(n[r]=Y(ok,e,{operator:`void`,expression:n[r]}),n.length=r+1)}}),ak.DEFMETHOD(`lift_sequences`,function(e){if(e.option(`sequences`)&&this.expression instanceof $O){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),QA(this,t).optimize(e)}return this}),EM(sk,function(e,t){return e.lift_sequences(t)}),EM(ok,function(e,t){var n=e.expression;if(e.operator==`delete`&&!(n instanceof $||n instanceof ek||n instanceof ik||pj(n)))return QA(e,[n,Y(fA,e)]).optimize(t);var r=e.lift_sequences(t);if(r!==e)return r;if(t.option(`side_effects`)&&e.operator==`void`)return n=n.drop_side_effect_free(t),n?(e.expression=n,e):Y(sA,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case`!`:if(n instanceof ok&&n.operator==`!`)return n.expression;n instanceof Q&&(e=rj(t,e,n.negate(t,wA(t))));break;case`typeof`:return(n instanceof $?Y(fA,e):QA(e,[n,Y(fA,e)])).optimize(t)}if(e.operator==`-`&&n instanceof lA&&(n=n.transform(t)),n instanceof Q&&(e.operator==`+`||e.operator==`-`)&&(n.operator==`*`||n.operator==`/`||n.operator==`%`))return Y(Q,e,{operator:n.operator,left:Y(ok,n.left,{operator:e.operator,expression:n.left}),right:n.right});if(t.option(`evaluate`)){if(e.operator===`~`&&e.expression instanceof ok&&e.expression.operator===`~`&&(t.in_32_bit_context(!1)||e.expression.expression.is_32_bit_integer(t)))return e.expression.expression;if(e.operator===`~`&&n instanceof Q&&n.operator===`^`)return n.left instanceof ok&&n.left.operator===`~`?n.left=n.left.bitwise_negate(t,!0):n.right=n.right.bitwise_negate(t,!0),n}if(e.operator!=`-`||!(n instanceof tA||n instanceof lA||n instanceof nA)){var i=e.evaluate(t);if(i!==e)return i=ej(i,e).optimize(t),rj(t,i,e)}return e}),Q.DEFMETHOD(`lift_sequences`,function(e){if(e.option(`sequences`)){if(this.left instanceof $O){var t=this.left.expressions.slice(),n=this.clone();return n.left=t.pop(),t.push(n),QA(this,t).optimize(e)}if(this.right instanceof $O&&!this.left.has_side_effects(e)){for(var r=this.operator==`=`&&this.left instanceof $,t=this.right.expressions,i=t.length-1,a=0;a<i&&!(!r&&t[a].has_side_effects(e));a++);if(a==i){t=t.slice();var n=this.clone();return n.right=t.pop(),t.push(n),QA(this,t).optimize(e)}else if(a>0){var n=this.clone();return n.right=QA(this.right,t.slice(a)),t=t.slice(0,a),t.push(n),QA(this,t).optimize(e)}}}return this});var NM=NE(`== === != !== * & | ^`);function PM(e){return e instanceof dk||e instanceof dO||e instanceof fk||e instanceof xk}EM(Q,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function r(t){if(n()){t&&(e.operator=t);var r=e.left;e.left=e.right,e.right=r}}if(t.option(`lhs_constants`)&&NM.has(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof Q&&LD[e.left.operator]>=LD[e.operator]||r()),e=e.lift_sequences(t),t.option(`comparisons`))switch(e.operator){case`===`:case`!==`:var i=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_bigint(t)&&e.right.is_bigint(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case`==`:case`!=`:if(!i&&Aj(e.left,t))e.left=Y(aA,e.left);else if(!i&&Aj(e.right,t))e.right=Y(aA,e.right);else if(t.option(`typeofs`)&&e.left instanceof eA&&e.left.value==`undefined`&&e.right instanceof ok&&e.right.operator==`typeof`){var a=e.right.expression;(a instanceof $?a.is_declared(t):!(a instanceof ek&&t.option(`ie8`)))&&(e.right=a,e.left=Y(sA,e.left).optimize(t),e.operator.length==2&&(e.operator+=`=`))}else if(t.option(`typeofs`)&&e.left instanceof ok&&e.left.operator==`typeof`&&e.right instanceof eA&&e.right.value==`undefined`){var a=e.left.expression;(a instanceof $?a.is_declared(t):!(a instanceof ek&&t.option(`ie8`)))&&(e.left=a,e.right=Y(sA,e.right).optimize(t),e.operator.length==2&&(e.operator+=`=`))}else if(e.left instanceof $&&e.right instanceof $&&e.left.definition()===e.right.definition()&&PM(e.left.fixed_value()))return Y(e.operator[0]==`=`?fA:dA,e);else if(e.left.is_32_bit_integer(t)&&e.right.is_32_bit_integer(t)){let n=e=>Y(ok,e,{operator:`!`,expression:e}),r=(e,r)=>r?t.in_boolean_context()?e:n(n(e)):n(e);if(e.left instanceof tA&&e.left.value===0)return r(e.right,e.operator[0]===`!`);if(e.right instanceof tA&&e.right.value===0)return r(e.left,e.operator[0]===`!`);let i,a,o;if((i=e.left instanceof Q?e.left:e.right instanceof Q?e.right:null)&&(o=i===e.left?e.right:e.left)&&i.operator===`&`&&o instanceof tA&&o.is_32_bit_integer(t)&&(a=i.left.equivalent_to(o)?i.right:i.right.equivalent_to(o)?i.left:null))return rj(t,r(Y(Q,e,{operator:`&`,left:o,right:Y(ok,e,{operator:`~`,expression:a})}),e.operator[0]===`!`),e)}break;case`&&`:case`||`:var o=e.left;if(o.operator==e.operator&&(o=o.right),o instanceof Q&&o.operator==(e.operator==`&&`?`!==`:`===`)&&e.right instanceof Q&&o.operator==e.right.operator&&(Aj(o.left,t)&&e.right.left instanceof aA||o.left instanceof aA&&Aj(e.right.left,t))&&!o.right.has_side_effects(t)&&o.right.equivalent_to(e.right.right)){var s=Y(Q,e,{operator:o.operator.slice(0,-1),left:Y(aA,e),right:o.right});return o!==e.left&&(s=Y(Q,e,{operator:e.operator,left:e.left.left,right:s})),s}break}if(e.operator==`+`&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&typeof c==`string`)return QA(e,[e.right,Y(fA,e)]).optimize(t);if(l&&typeof l==`string`)return QA(e,[e.left,Y(fA,e)]).optimize(t)}if(t.option(`comparisons`)&&e.is_boolean()){if(!(t.parent()instanceof Q)||t.parent()instanceof lk){var u=Y(ok,e,{operator:`!`,expression:e.negate(t,wA(t))});e=rj(t,e,u)}if(t.option(`unsafe_comps`))switch(e.operator){case`<`:r(`>`);break;case`<=`:r(`>=`);break}}if(e.operator==`+`){if(e.right instanceof eA&&e.right.getValue()==``&&e.left.is_string(t))return e.left;if(e.left instanceof eA&&e.left.getValue()==``&&e.right.is_string(t))return e.right;if(e.left instanceof Q&&e.left.operator==`+`&&e.left.left instanceof eA&&e.left.left.getValue()==``&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option(`evaluate`)){switch(e.operator){case`&&`:var c=JA(e.left,2)?!0:JA(e.left,4)?!1:e.left.evaluate(t);if(c){if(!(c instanceof Z))return QA(e,[e.left,e.right]).optimize(t)}else return sj(t.parent(),t.self(),e.left).optimize(t);var l=e.right.evaluate(t);if(l){if(!(l instanceof Z)){var d=t.parent();if(d.operator==`&&`&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t)}}else{if(t.in_boolean_context())return QA(e,[e.left,Y(dA,e)]).optimize(t);YA(e,4)}if(e.left.operator==`||`){var f=e.left.right.evaluate(t);if(!f)return Y(ck,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t)}break;case`||`:var c=JA(e.left,2)?!0:JA(e.left,4)?!1:e.left.evaluate(t);if(c){if(!(c instanceof Z))return sj(t.parent(),t.self(),e.left).optimize(t)}else return QA(e,[e.left,e.right]).optimize(t);var l=e.right.evaluate(t);if(l){if(!(l instanceof Z)){if(t.in_boolean_context())return QA(e,[e.left,Y(fA,e)]).optimize(t);YA(e,2)}}else{var d=t.parent();if(d.operator==`||`&&d.left===t.self()||t.in_boolean_context())return e.left.optimize(t)}if(e.left.operator==`&&`){var f=e.left.right.evaluate(t);if(f&&!(f instanceof Z))return Y(ck,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}break;case`??`:if(Nj(e.left,t))return e.right;var c=e.left.evaluate(t);if(!(c instanceof Z))return c==null?e.right:e.left;if(t.in_boolean_context()){let n=e.right.evaluate(t);if(!(n instanceof Z)&&!n)return e.left}}var p=!0;switch(e.operator){case`+`:if(e.right instanceof $k&&e.left instanceof Q&&e.left.operator==`+`&&e.left.is_string(t)){var m=Y(Q,e,{operator:`+`,left:e.left.right,right:e.right}),h=m.optimize(t);m!==h&&(e=Y(Q,e,{operator:`+`,left:e.left.left,right:h}))}if(e.left instanceof Q&&e.left.operator==`+`&&e.left.is_string(t)&&e.right instanceof Q&&e.right.operator==`+`&&e.right.is_string(t)){var m=Y(Q,e,{operator:`+`,left:e.left.right,right:e.right.left}),g=m.optimize(t);m!==g&&(e=Y(Q,e,{operator:`+`,left:Y(Q,e.left,{operator:`+`,left:e.left.left,right:g}),right:e.right.right}))}if(e.right instanceof ok&&e.right.operator==`-`&&e.left.is_number_or_bigint(t)){e=Y(Q,e,{operator:`-`,left:e.left,right:e.right.expression});break}if(e.left instanceof ok&&e.left.operator==`-`&&n()&&e.right.is_number_or_bigint(t)){e=Y(Q,e,{operator:`-`,left:e.right,right:e.left.expression});break}if(e.left instanceof vO){var _=e.left,h=e.right.evaluate(t);if(h!=e.right)return _.segments[_.segments.length-1].value+=String(h),_}if(e.right instanceof vO){var h=e.right,_=e.left.evaluate(t);if(_!=e.left)return h.segments[0].value=String(_)+h.segments[0].value,h}if(e.left instanceof vO&&e.right instanceof vO){var _=e.left,v=_.segments,h=e.right;v[v.length-1].value+=h.segments[0].value;for(var y=1;y<h.segments.length;y++)v.push(h.segments[y]);return _}case`*`:p=t.option(`unsafe_math`);case`&`:case`|`:case`^`:if(e.left.is_number_or_bigint(t)&&e.right.is_number_or_bigint(t)&&n()&&!(e.left instanceof Q&&e.left.operator!=e.operator&&LD[e.left.operator]>=LD[e.operator])){var b=Y(Q,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof $k&&!(e.left instanceof $k)?rj(t,b,e):rj(t,e,b)}p&&e.is_number_or_bigint(t)&&(e.right instanceof Q&&e.right.operator==e.operator&&(e=Y(Q,e,{operator:e.operator,left:Y(Q,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof $k&&e.left instanceof Q&&e.left.operator==e.operator&&(e.left.left instanceof $k?e=Y(Q,e,{operator:e.operator,left:Y(Q,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof $k&&(e=Y(Q,e,{operator:e.operator,left:Y(Q,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof Q&&e.left.operator==e.operator&&e.left.right instanceof $k&&e.right instanceof Q&&e.right.operator==e.operator&&e.right.left instanceof $k&&(e=Y(Q,e,{operator:e.operator,left:Y(Q,e.left,{operator:e.operator,left:Y(Q,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}if(Dj.has(e.operator)){let n,r,i,a,o=e.left;if(e.operator===`&`&&e.right instanceof Q&&e.right.operator===`|`&&typeof(r=e.left.evaluate(t))==`number`&&(typeof(n=e.right.right.evaluate(t))==`number`?(i=e.right.left,a=e.right.right):typeof(n=e.right.left.evaluate(t))==`number`&&(i=e.right.right,a=e.right.left),i&&a))if((n&r)===0)e=Y(Q,e,{operator:e.operator,left:o,right:i});else{let s=Y(Q,e,{operator:`|`,left:Y(Q,e,{operator:`&`,left:i,right:o}),right:ej(n&r,a)});e=rj(t,e,s)}(e.operator===`|`||e.operator===`&`)&&e.left.equivalent_to(e.right)&&!e.left.has_side_effects(t)&&t.in_32_bit_context(!0)&&(e.left=Y(tA,e,{value:0}),e.operator=`|`),e.operator===`^`&&e.left instanceof ok&&e.left.operator===`~`&&e.right instanceof ok&&e.right.operator===`~`&&(e=Y(Q,e,{operator:`^`,left:e.left.expression,right:e.right.expression})),(e.operator===`<<`||e.operator===`>>`)&&e.right instanceof tA&&e.right.value===0&&(e.operator=`|`);let s=e.right instanceof tA&&e.right.value===0?e.right:e.left instanceof tA&&e.left.value===0?e.left:null,c=s&&(s===e.right?e.left:e.right);if(s&&(e.operator===`|`||e.operator===`^`)&&(c.is_32_bit_integer(t)||t.in_32_bit_context(!0)))return c;if(s&&e.operator===`&`&&!c.has_side_effects(t)&&c.is_32_bit_integer(t))return s;let l=e=>e instanceof tA&&e.value===-1||e instanceof ok&&e.operator===`-`&&e.expression instanceof tA&&e.expression.value===1,u=l(e.right)?e.right:l(e.left)?e.left:null,d=u===e.right?e.left:e.right;if(u&&e.operator===`&`&&(d.is_32_bit_integer(t)||t.in_32_bit_context(!0)))return d;if(u&&e.operator===`^`&&(d.is_32_bit_integer(t)||t.in_32_bit_context(!0)))return d.bitwise_negate(t)}}if(e.right instanceof Q&&e.right.operator==e.operator&&(Oj.has(e.operator)||e.operator==`+`&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=Y(Q,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var x=e.evaluate(t);return x===e?e:(x=ej(x,e).optimize(t),rj(t,x,e))}),EM(qk,function(e){return e}),EM($,function(e,t){if(!t.option(`ie8`)&&Ej(e)&&!t.find_parent(sO))switch(e.name){case`undefined`:return Y(sA,e).optimize(t);case`NaN`:return Y(oA,e).optimize(t);case`Infinity`:return Y(lA,e).optimize(t)}return t.option(`reduce_vars`)&&!t.is_lhs()?SM(e,t):e});function FM(e,t){return e instanceof $||e.TYPE===t.TYPE}EM(sA,function(e,t){if(t.option(`unsafe_undefined`)){var n=DM(t,`undefined`);if(n){var r=Y($,e,{name:`undefined`,scope:n.scope,thedef:n});return YA(r,8),r}}var i=t.is_lhs();return i&&FM(i,e)?e:Y(ok,e,{operator:`void`,expression:Y(tA,e,{value:0})})}),EM(lA,function(e,t){var n=t.is_lhs();return n&&FM(n,e)||t.option(`keep_infinity`)&&!(n&&!FM(n,e))&&!DM(t,`Infinity`)?e:Y(Q,e,{operator:`/`,left:Y(tA,e,{value:1}),right:Y(tA,e,{value:0})})}),EM(oA,function(e,t){var n=t.is_lhs();return n&&!FM(n,e)||DM(t,`NaN`)?Y(Q,e,{operator:`/`,left:Y(tA,e,{value:0}),right:Y(tA,e,{value:0})}):e});const IM=NE(`+ - / * % >> << >>> | ^ &`),LM=NE(`* | ^ &`);EM(lk,function(e,t){if(e.logical)return e.lift_sequences(t);var n;if(e.operator===`=`&&e.left instanceof $&&e.left.name!==`arguments`&&!(n=e.left.definition()).undeclared&&e.right.equivalent_to(e.left))return e.right;if(t.option(`dead_code`)&&e.left instanceof $&&(n=e.left.definition()).scope===t.find_parent(dO)){var r=0,i,a=e;do if(i=a,a=t.parent(r++),a instanceof xO){if(o(r,a)||_j(n.scope,[n]))break;return e.operator==`=`?e.right:(n.fixed=!1,Y(Q,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}while(a instanceof Q&&a.right===i||a instanceof $O&&a.tail_node()===i)}return e=e.lift_sequences(t),e.operator==`=`&&e.left instanceof $&&e.right instanceof Q&&(e.right.left instanceof $&&e.right.left.name==e.left.name&&IM.has(e.right.operator)?(e.operator=e.right.operator+`=`,e.right=e.right.right):e.right.right instanceof $&&e.right.right.name==e.left.name&&LM.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+`=`,e.right=e.right.left)),e;function o(n,r){function i(){let n=e.right;e.right=Y(aA,n);let i=r.may_throw(t);return e.right=n,i}for(var a=e.left.definition().scope.get_defun_scope(),o;(o=t.parent(n++))!==a;)if(o instanceof PO&&(o.bfinally||o.bcatch&&i()))return!0}}),EM(uk,function(e,t){if(!t.option(`evaluate`))return e;var n=e.right.evaluate(t);let r,i;return n===void 0?(!((r=t.parent())instanceof dO)||t.option(`keep_fargs`)===!1||(i=t.parent(1)).TYPE===`Call`&&i.expression===r)&&(e=e.left):n!==e.right&&(n=ej(n,e.right),e.right=tj(n,e.right)),e});function RM(e,t,n){if(t.may_throw(n))return!1;let r;if(e instanceof Q&&e.operator===`==`&&((r=Nj(e.left,n)&&e.left)||(r=Nj(e.right,n)&&e.right))&&(r===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof Q&&e.operator===`||`){let r,i,a=e=>{if(!(e instanceof Q&&(e.operator===`===`||e.operator===`==`)))return!1;let a=0,o;return e.left instanceof aA&&(a++,r=e,o=e.right),e.right instanceof aA&&(a++,r=e,o=e.left),Aj(e.left,n)&&(a++,i=e,o=e.right),Aj(e.right,n)&&(a++,i=e,o=e.left),!(a!==1||!o.equivalent_to(t))};if(!a(e.left)||!a(e.right))return!1;if(r&&i&&r!==i)return!0}return!1}EM(ck,function(e,t){if(!t.option(`conditionals`))return e;if(e.condition instanceof $O){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),QA(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?sj(t.parent(),t.self(),e.consequent):sj(t.parent(),t.self(),e.alternative);var i=r.negate(t,wA(t));rj(t,r,i)===i&&(e=Y(ck,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var a=e.condition,o=e.consequent,s=e.alternative;if(a instanceof $&&o instanceof $&&a.definition()===o.definition())return Y(Q,e,{operator:`||`,left:a,right:s});if(o instanceof lk&&s instanceof lk&&o.operator===s.operator&&o.logical===s.logical&&o.left.equivalent_to(s.left)&&(!e.condition.has_side_effects(t)||o.operator==`=`&&!o.left.has_side_effects(t)))return Y(lk,e,{operator:o.operator,left:o.left,logical:o.logical,right:Y(ck,e,{condition:e.condition,consequent:o.right,alternative:s.right})});var c;if(o instanceof ZO&&s.TYPE===o.TYPE&&o.args.length>0&&o.args.length==s.args.length&&o.expression.equivalent_to(s.expression)&&!e.condition.has_side_effects(t)&&!o.expression.has_side_effects(t)&&typeof(c=m())==`number`){var l=o.clone();return l.args[c]=Y(ck,e,{condition:e.condition,consequent:o.args[c],alternative:s.args[c]}),l}if(s instanceof ck&&o.equivalent_to(s.consequent))return Y(ck,e,{condition:Y(Q,e,{operator:`||`,left:a,right:s.condition}),consequent:o,alternative:s.alternative}).optimize(t);if(t.option(`ecma`)>=2020&&RM(a,s,t))return Y(Q,e,{operator:`??`,left:s,right:o}).optimize(t);if(s instanceof $O&&o.equivalent_to(s.expressions[s.expressions.length-1]))return QA(e,[Y(Q,e,{operator:`||`,left:a,right:QA(e,s.expressions.slice(0,-1))}),o]).optimize(t);if(s instanceof Q&&s.operator==`&&`&&o.equivalent_to(s.right))return Y(Q,e,{operator:`&&`,left:Y(Q,e,{operator:`||`,left:a,right:s.left}),right:o}).optimize(t);if(o instanceof ck&&o.alternative.equivalent_to(s))return Y(ck,e,{condition:Y(Q,e,{left:e.condition,operator:`&&`,right:o.condition}),consequent:o.consequent,alternative:s});if(o.equivalent_to(s))return QA(e,[e.condition,o]).optimize(t);if(o instanceof Q&&o.operator==`||`&&o.right.equivalent_to(s))return Y(Q,e,{operator:`||`,left:Y(Q,e,{operator:`&&`,left:e.condition,right:o.left}),right:s}).optimize(t);let u=t.in_boolean_context();if(f(e.consequent))return p(e.alternative)?d(e.condition):Y(Q,e,{operator:`||`,left:d(e.condition),right:e.alternative});if(p(e.consequent))return f(e.alternative)?d(e.condition.negate(t)):Y(Q,e,{operator:`&&`,left:d(e.condition.negate(t)),right:e.alternative});if(f(e.alternative))return Y(Q,e,{operator:`||`,left:d(e.condition.negate(t)),right:e.consequent});if(p(e.alternative))return Y(Q,e,{operator:`&&`,left:d(e.condition),right:e.consequent});return e;function d(e){return e.is_boolean()?e:Y(ok,e,{operator:`!`,expression:e.negate(t)})}function f(e){return e instanceof fA||u&&e instanceof $k&&e.getValue()||e instanceof ok&&e.operator==`!`&&e.expression instanceof $k&&!e.expression.getValue()}function p(e){return e instanceof dA||u&&e instanceof $k&&!e.getValue()||e instanceof ok&&e.operator==`!`&&e.expression instanceof $k&&e.expression.getValue()}function m(){for(var e=o.args,t=s.args,n=0,r=e.length;n<r;n++){if(e[n]instanceof uO)return;if(!e[n].equivalent_to(t[n])){if(t[n]instanceof uO)return;for(var i=n+1;i<r;i++)if(e[i]instanceof uO||!e[i].equivalent_to(t[i]))return;return n}}}}),EM(uA,function(e,t){if(t.in_boolean_context())return Y(tA,e,{value:+e.value});var n=t.parent();return t.option(`booleans_as_integers`)?(n instanceof Q&&(n.operator==`===`||n.operator==`!==`)&&(n.operator=n.operator.replace(/=$/,``)),Y(tA,e,{value:+e.value})):t.option(`booleans`)?n instanceof Q&&(n.operator==`==`||n.operator==`!=`)?Y(tA,e,{value:+e.value}):Y(ok,e,{operator:`!`,expression:Y(tA,e,{value:1-e.value})}):e});function zM(e,t){return e instanceof $&&(e=e.fixed_value()),e?!(e instanceof dO||e instanceof xk)||!(e instanceof dO&&e.contains_this())?!0:t.parent()instanceof QO:!1}ek.DEFMETHOD(`flatten_object`,function(e,t){if(t.option(`properties`)&&e!==`__proto__`&&!(this instanceof nk)){var n=t.option(`unsafe_arrows`)&&t.option(`ecma`)>=2015,r=this.expression;if(r instanceof fk)for(var i=r.properties,a=i.length;--a>=0;){var o=i[a];if(``+(o instanceof yk?o.key.name:o.key)==e)return!i.every(e=>(e instanceof mk||n&&e instanceof yk&&!e.value.is_generator)&&!e.computed_key())||!zM(o.value,t)?void 0:Y(rk,this,{expression:Y(dk,r,{elements:i.map(function(e){var t=e.value;t instanceof fO&&(t=Y(pO,t,t));var n=e.key;return n instanceof Z&&!(n instanceof Rk)?QA(e,[n,t]):t})}),property:Y(tA,this,{value:a})})}}}),EM(rk,function(e,t){var n=e.expression,r=e.property;if(t.option(`properties`)){var i=r.evaluate(t);if(i!==r){if(typeof i==`string`)if(i==`undefined`)i=void 0;else{var a=parseFloat(i);a.toString()==i&&(i=a)}r=e.property=tj(r,ej(i,r).transform(t));var o=``+i;if(TD(o)&&o.length<=r.size()+1)return Y(tk,e,{expression:n,optional:e.optional,property:o,quote:r.quote}).optimize(t)}}var s;OPT_ARGUMENTS:if(t.option(`arguments`)&&n instanceof $&&n.name==`arguments`&&n.definition().orig.length==1&&(s=n.scope)instanceof dO&&s.uses_arguments&&!(s instanceof mO)&&r instanceof tA){for(var c=r.getValue(),l=new Set,u=s.argnames,d=0;d<u.length;d++){if(!(u[d]instanceof Ik))break OPT_ARGUMENTS;var f=u[d].name;if(l.has(f))break OPT_ARGUMENTS;l.add(f)}var p=s.argnames[c];if(p&&t.has_directive(`use strict`)){var m=p.definition();(!t.option(`reduce_vars`)||m.assignments||m.orig.length>1)&&(p=null)}else if(!p&&!t.option(`keep_fargs`)&&c<s.argnames.length+5)for(;c>=s.argnames.length;)p=s.create_symbol(Ik,{source:s,scope:s,tentative_name:`argument_`+s.argnames.length}),s.argnames.push(p);if(p){var h=Y($,e,p);return h.reference({}),XA(p,1),h}}if(t.is_lhs())return e;if(i!==r){var g=e.flatten_object(o,t);g&&(n=e.expression=g.expression,r=e.property=g.property)}if(t.option(`properties`)&&t.option(`side_effects`)&&r instanceof tA&&n instanceof dk){var c=r.getValue(),_=n.elements,v=_[c];FLATTEN:if(zM(v,t)){for(var y=!0,b=[],x=_.length;--x>c;){var a=_[x].drop_side_effect_free(t);a&&(b.unshift(a),y&&a.has_side_effects(t)&&(y=!1))}if(v instanceof uO)break FLATTEN;for(v=v instanceof cA?Y(sA,v):v,y||b.unshift(v);--x>=0;){var a=_[x];if(a instanceof uO)break FLATTEN;a=a.drop_side_effect_free(t),a?b.unshift(a):c--}return y?(b.push(v),QA(e,b).optimize(t)):Y(rk,e,{expression:Y(dk,n,{elements:b}),property:Y(tA,r,{value:c})})}}var S=e.evaluate(t);return S===e?e:(S=ej(S,e).optimize(t),rj(t,S,e))}),EM(ik,function(e,t){if(Nj(e.expression,t)){let n=t.parent();return n instanceof ok&&n.operator===`delete`?ej(0,e):Y(sA,e)}return e.expression instanceof ek||e.expression instanceof ZO?e:e.expression}),EM(tk,function(e,t){let n=t.parent();if(t.is_lhs())return e;if(t.option(`unsafe_proto`)&&e.expression instanceof tk&&e.expression.property==`prototype`){var r=e.expression.expression;if(Ej(r))switch(r.name){case`Array`:e.expression=Y(dk,e.expression,{elements:[]});break;case`Function`:e.expression=$A(e.expression);break;case`Number`:e.expression=Y(tA,e.expression,{value:0});break;case`Object`:e.expression=Y(fk,e.expression,{properties:[]});break;case`RegExp`:e.expression=Y(rA,e.expression,{value:{source:`t`,flags:``}});break;case`String`:e.expression=Y(eA,e.expression,{value:``});break}}if(!(n instanceof ZO)||!WE(n,4)){let n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}if(e.expression instanceof ek&&n instanceof ek)return e;let i=e.evaluate(t);return i===e?e:(i=ej(i,e).optimize(t),rj(t,i,e))});function BM(e,t){return t.in_boolean_context()?rj(t,e,QA(e,[e,Y(fA,e)]).optimize(t)):e}function VM(e){for(var t=0;t<e.length;t++){var n=e[t];if(n instanceof uO){var r=n.expression;r instanceof dk&&!r.elements.some(e=>e instanceof cA)&&(e.splice(t,1,...r.elements),t--)}}}EM(dk,function(e,t){var n=BM(e,t);return n===e?(VM(e.elements),e):n});function HM(e){for(var t=0;t<e.length;t++){var n=e[t];if(n instanceof uO){let r=n.expression;r instanceof fk&&r.properties.every(e=>e instanceof mk)?(e.splice(t,1,...r.properties),t--):(r instanceof $k||r.is_constant())&&!(r instanceof eA)&&(e.splice(t,1),t--)}}}EM(fk,function(e,t){var n=BM(e,t);return n===e?(HM(e.properties),e):n}),EM(rA,BM),EM(SO,function(e,t){return e.value&&Aj(e.value,t)&&(e.value=null),e}),EM(mO,jM),EM(pO,function(e,t){return e=jM(e,t),t.option(`unsafe_arrows`)&&t.option(`ecma`)>=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()&&!pA(e,e=>{if(e instanceof Zk)return hA})?Y(mO,e,e).optimize(t):e}),EM(xk,function(e){for(let t=0;t<e.properties.length;t++){let n=e.properties[t];n instanceof Ek&&n.body.length==0&&(e.properties.splice(t,1),t--)}return e}),EM(Ek,function(e,t){return vM(e.body,t),e}),EM(OO,function(e,t){return e.expression&&!e.is_star&&Aj(e.expression,t)&&(e.expression=null),e}),EM(vO,function(e,t){if(!t.option(`evaluate`)||t.parent()instanceof _O)return e;for(var n=[],r=0;r<e.segments.length;r++){var i=e.segments[r];if(i instanceof Z){var a=i.evaluate(t);if(a!==i&&(a+``).length<=i.size()+3){n[n.length-1].value=n[n.length-1].value+a+e.segments[++r].value;continue}if(i instanceof vO){var o=i.segments;n[n.length-1].value+=o[0].value;for(var s=1;s<o.length;s++)i=o[s],n.push(i);continue}}n.push(i)}if(e.segments=n,n.length==1)return Y(eA,e,n[0]);if(n.length===3&&n[1]instanceof Z&&(n[1].is_string(t)||n[1].is_number_or_bigint(t)||Nj(n[1],t)||t.option(`unsafe`))){if(n[2].value===``)return Y(Q,e,{operator:`+`,left:Y(eA,e,{value:n[0].value}),right:n[1]});if(n[0].value===``)return Y(Q,e,{operator:`+`,left:n[1],right:Y(eA,e,{value:n[2].value})})}return e}),EM(_O,function(e){return e});function UM(e,t){if(!t.option(`computed_props`)||!(e.key instanceof $k))return e;if(e.key instanceof eA||e.key instanceof tA){let n=e.key.value.toString();if(n===`__proto__`||n==`constructor`&&t.parent()instanceof xk)return e;e instanceof mk?(e.quote=e.key.quote,e.key=n):e instanceof Sk?(e.quote=e.key.quote,e.key=Y(zk,e.key,{name:n})):(e.quote=e.key.quote,e.key=Y(Rk,e.key,{name:n}))}return e}EM(pk,UM),EM(yk,function(e,t){if(UM(e,t),t.option(`arrows`)&&t.parent()instanceof fk&&!e.value.is_generator&&!e.value.uses_arguments&&!e.value.pinned()&&e.value.body.length==1&&e.value.body[0]instanceof SO&&e.value.body[0].value&&!e.value.contains_this()){var n=Y(mO,e.value,e.value);return n.async=e.value.async,n.is_generator=e.value.is_generator,Y(mk,e,{key:e.key instanceof Rk?e.key.name:e.key,value:n,quote:e.quote})}return e}),EM(mk,function(e,t){UM(e,t);var n=t.option(`unsafe_methods`);if(n&&t.option(`ecma`)>=2015&&(!(n instanceof RegExp)||n.test(e.key+``))){var r=e.key,i=e.value;if((i instanceof mO&&Array.isArray(i.body)&&!i.contains_this()||i instanceof pO)&&!i.name)return Y(yk,e,{key:r instanceof Z?r:Y(Rk,e,{name:r}),value:Y(fO,i,i),quote:e.quote})}return e}),EM(gO,function(e,t){if(t.option(`pure_getters`)==1&&t.option(`unused`)&&!e.is_array&&Array.isArray(e.names)&&!a(t)&&!(e.names[e.names.length-1]instanceof uO)){for(var n=[],r=0;r<e.names.length;r++){var i=e.names[r];i instanceof mk&&typeof i.key==`string`&&i.value instanceof Ak&&!o(t,i.value.definition())||n.push(i)}n.length!=e.names.length&&(e.names=n)}return e;function a(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,r=0,i=t.length;n<i;r++){var a=e.parent(r);if(!a)return!1;if(!(n===0&&a.TYPE==`Destructuring`)){if(!t[n].test(a.TYPE))return!1;n++}}return!0}function o(e,t){return t.references.length?!0:t.global?e.toplevel.vars?e.top_retain?e.top_retain(t):!1:!0:!1}});var WM=44,GM=59,KM=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,qM=new Uint8Array(64),JM=new Uint8Array(128);for(let e=0;e<KM.length;e++){let t=KM.charCodeAt(e);qM[e]=t,JM[t]=e}function YM(e,t){let n=0,r=0,i=0;do i=JM[e.next()],n|=(i&31)<<r,r+=5;while(i&32);let a=n&1;return n>>>=1,a&&(n=-2147483648|-n),t+n}function XM(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(qM[t])}while(r>0);return t}function ZM(e,t){return e.pos>=t?!1:e.peek()!==WM}var QM=1024*16,$M=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},eN=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(QM)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===QM&&(this.out+=$M.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+$M.decode(e.subarray(0,n)):t}},tN=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return r===-1?t.length:r}};function nN(e){let{length:t}=e,n=new tN(e),r=[],i=0,a=0,o=0,s=0,c=0;do{let e=n.indexOf(`;`),t=[],l=!0,u=0;for(i=0;n.pos<e;){let r;i=YM(n,i),i<u&&(l=!1),u=i,ZM(n,e)?(a=YM(n,a),o=YM(n,o),s=YM(n,s),ZM(n,e)?(c=YM(n,c),r=[i,a,o,s,c]):r=[i,a,o,s]):r=[i],t.push(r),n.pos++}l||rN(t),r.push(t),n.pos=e+1}while(n.pos<=t);return r}function rN(e){e.sort(iN)}function iN(e,t){return e[0]-t[0]}function aN(e){let t=new eN,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(GM),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(WM),c=XM(t,o[0],c),o.length!==1&&(n=XM(t,o[1],n),r=XM(t,o[2],r),i=XM(t,o[3],i),o.length!==4&&(a=XM(t,o[4],a)))}}return t.flush()}const oN=/^[\w+.-]+:\/\//,sN=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,cN=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function lN(e){return oN.test(e)}function uN(e){return e.startsWith(`//`)}function dN(e){return e.startsWith(`/`)}function fN(e){return e.startsWith(`file:`)}function pN(e){return/^[.?#]/.test(e)}function mN(e){let t=sN.exec(e);return gN(t[1],t[2]||``,t[3],t[4]||``,t[5]||`/`,t[6]||``,t[7]||``)}function hN(e){let t=cN.exec(e),n=t[2];return gN(`file:`,``,t[1]||``,``,dN(n)?n:`/`+n,t[3]||``,t[4]||``)}function gN(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function _N(e){if(uN(e)){let t=mN(`http:`+e);return t.scheme=``,t.type=6,t}if(dN(e)){let t=mN(`http://foo.com`+e);return t.scheme=``,t.host=``,t.type=5,t}if(fN(e))return hN(e);if(lN(e))return mN(e);let t=mN(`http://foo.com/`+e);return t.scheme=``,t.host=``,t.type=e?e.startsWith(`?`)?3:e.startsWith(`#`)?2:4:1,t}function vN(e){if(e.endsWith(`/..`))return e;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function yN(e,t){bN(t,t.type),e.path===`/`?e.path=t.path:e.path=vN(t.path)+e.path}function bN(e,t){let n=t<=4,r=e.path.split(`/`),i=1,a=0,o=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){o=!0;continue}if(o=!1,t!==`.`){if(t===`..`){a?(o=!0,a--,i--):n&&(r[i++]=t);continue}r[i++]=t,a++}}let s=``;for(let e=1;e<i;e++)s+=`/`+r[e];(!s||o&&!s.endsWith(`/..`))&&(s+=`/`),e.path=s}function xN(e,t){if(!e&&!t)return``;let n=_N(e),r=n.type;if(t&&r!==7){let e=_N(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:yN(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}bN(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);return r?pN(t||e)&&!pN(r)?`./`+r+i:r+i:i||`.`}case 5:return n.path+i;default:return n.scheme+`//`+n.user+n.host+n.port+n.path+i}}function SN(e){if(!e)return``;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function CN(e,t){let n=SN(e),r=t?t+`/`:``;return e=>xN(r+(e||``),n)}var wN=0,TN=1,EN=2,DN=3,ON=4,kN=1,AN=2;function jN(e,t){let n=MN(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=MN(e,r+1))e[r]=PN(e[r],t);return e}function MN(e,t){for(let n=t;n<e.length;n++)if(!NN(e[n]))return n;return e.length}function NN(e){for(let t=1;t<e.length;t++)if(e[t][wN]<e[t-1][wN])return!1;return!0}function PN(e,t){return t||(e=e.slice()),e.sort(FN)}function FN(e,t){return e[wN]-t[wN]}function IN(e,t){let n=t.map(()=>[]);for(let t=0;t<e.length;t++){let r=e[t];for(let e=0;e<r.length;e++){let i=r[e];if(i.length===1)continue;let a=i[TN],o=i[EN],s=i[DN],c=n[a];(c[o]||(c[o]=[])).push([s,t,i[wN]])}}for(let e=0;e<n.length;e++){let t=n[e];for(let e=0;e<t.length;e++){let n=t[e];n&&n.sort(FN)}}return n}var LN=!1;function RN(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),a=e[i][wN]-t;if(a===0)return LN=!0,i;a<0?n=i+1:r=i-1}return LN=!1,n-1}function zN(e,t,n){for(let r=n+1;r<e.length&&e[r][wN]===t;n=r++);return n}function BN(e,t,n){for(let r=n-1;r>=0&&e[r][wN]===t;n=r--);return n}function VN(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function HN(e,t,n,r){let{lastKey:i,lastNeedle:a,lastIndex:o}=n,s=0,c=e.length-1;if(r===i){if(t===a)return LN=o!==-1&&e[o][wN]===t,o;t>=a?s=o===-1?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=RN(e,t,s,c)}function UN(e){return typeof e==`string`?JSON.parse(e):e}var WN=function(e,t){let n=UN(e);if(!(`sections`in n))return new $N(n,t);let r=[],i=[],a=[],o=[],s=[];return GN(n,t,r,i,a,o,s,0,0,1/0,1/0),lP({version:3,file:n.file,names:o,sources:i,sourcesContent:a,mappings:r,ignoreList:s})};function GN(e,t,n,r,i,a,o,s,c,l,u){let{sections:d}=e;for(let e=0;e<d.length;e++){let{map:f,offset:p}=d[e],m=l,h=u;if(e+1<d.length){let t=d[e+1].offset;m=Math.min(l,s+t.line),m===l?h=Math.min(u,c+t.column):m<l&&(h=c+t.column)}KN(f,t,n,r,i,a,o,s+p.line,c+p.column,m,h)}}function KN(e,t,n,r,i,a,o,s,c,l,u){let d=UN(e);if(`sections`in d)return GN(...arguments);let f=new $N(d,t),p=r.length,m=a.length,h=nP(f),{resolvedSources:g,sourcesContent:_,ignoreList:v}=f;if(qN(r,g),qN(a,f.names),_)qN(i,_);else for(let e=0;e<g.length;e++)i.push(null);if(v)for(let e=0;e<v.length;e++)o.push(v[e]+p);for(let e=0;e<h.length;e++){let t=s+e;if(t>l)return;let r=JN(n,t),i=e===0?c:0,a=h[e];for(let e=0;e<a.length;e++){let n=a[e],o=i+n[wN];if(t===l&&o>=u)return;if(n.length===1){r.push([o]);continue}let s=p+n[TN],c=n[EN],d=n[DN];r.push(n.length===4?[o,s,c,d]:[o,s,c,d,m+n[ON]])}}}function qN(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function JN(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}var YN="`line` must be greater than 0 (lines start at line 1)",XN="`column` must be greater than or equal to 0 (columns start at column 0)",ZN=-1,QN=1,$N=class{constructor(e,t){let n=typeof e==`string`;if(!n&&e._decodedMemo)return e;let r=UN(e),{version:i,file:a,names:o,sourceRoot:s,sources:c,sourcesContent:l}=r;this.version=i,this.file=a,this.names=o||[],this.sourceRoot=s,this.sources=c,this.sourcesContent=l,this.ignoreList=r.ignoreList||r.x_google_ignoreList||void 0;let u=CN(t,s);this.resolvedSources=c.map(u);let{mappings:d}=r;if(typeof d==`string`)this._encoded=d,this._decoded=void 0;else if(Array.isArray(d))this._encoded=void 0,this._decoded=jN(d,n);else if(r.sections)throw Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`);else throw Error(`invalid source map: ${JSON.stringify(r)}`);this._decodedMemo=VN(),this._bySources=void 0,this._bySourceMemos=void 0}};function eP(e){return e}function tP(e){var t;return(t=eP(e))._encoded??(t._encoded=aN(eP(e)._decoded))}function nP(e){var t;return(t=eP(e))._decoded||(t._decoded=nN(eP(e)._encoded))}function rP(e,t){let{line:n,column:r,bias:i}=t;if(n--,n<0)throw Error(YN);if(r<0)throw Error(XN);let a=nP(e);if(n>=a.length)return dP(null,null,null,null);let o=a[n],s=pP(o,eP(e)._decodedMemo,n,r,i||QN);if(s===-1)return dP(null,null,null,null);let c=o[s];if(c.length===1)return dP(null,null,null,null);let{names:l,resolvedSources:u}=e;return dP(u[c[TN]],c[EN]+1,c[DN],c.length===5?l[c[ON]]:null)}function iP(e,t){let{source:n,line:r,column:i,bias:a}=t;return hP(e,n,r,i,a||QN,!1)}function aP(e,t){let{source:n,line:r,column:i,bias:a}=t;return hP(e,n,r,i,a||ZN,!0)}function oP(e,t){let n=nP(e),{names:r,resolvedSources:i}=e;for(let e=0;e<n.length;e++){let a=n[e];for(let n=0;n<a.length;n++){let o=a[n],s=e+1,c=o[0],l=null,u=null,d=null,f=null;o.length!==1&&(l=i[o[1]],u=o[2]+1,d=o[3]),o.length===5&&(f=r[o[4]]),t({generatedLine:s,generatedColumn:c,source:l,originalLine:u,originalColumn:d,name:f})}}}function sP(e,t){let{sources:n,resolvedSources:r}=e,i=n.indexOf(t);return i===-1&&(i=r.indexOf(t)),i}function cP(e,t){let{sourcesContent:n}=e;if(n==null)return null;let r=sP(e,t);return r===-1?null:n[r]}function lP(e,t){let n=new $N(uP(e,[]),t);return eP(n)._decoded=e.mappings,n}function uP(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function dP(e,t,n,r){return{source:e,line:t,column:n,name:r}}function fP(e,t){return{line:e,column:t}}function pP(e,t,n,r,i){let a=HN(e,r,t,n);return LN?a=(i===ZN?zN:BN)(e,r,a):i===ZN&&a++,a===-1||a===e.length?-1:a}function mP(e,t,n,r,i){let a=pP(e,t,n,r,QN);if(!LN&&i===ZN&&a++,a===-1||a===e.length)return[];let o=LN?r:e[a][wN];LN||(a=BN(e,o,a));let s=zN(e,o,a),c=[];for(;a<=s;a++){let t=e[a];c.push(fP(t[kN]+1,t[AN]))}return c}function hP(e,t,n,r,i,a){var o,s;if(n--,n<0)throw Error(YN);if(r<0)throw Error(XN);let{sources:c,resolvedSources:l}=e,u=c.indexOf(t);if(u===-1&&(u=l.indexOf(t)),u===-1)return a?[]:fP(null,null);let d=(o=eP(e))._bySourceMemos||(o._bySourceMemos=c.map(VN)),f=((s=eP(e))._bySources||(s._bySources=IN(nP(e),d)))[u][n];if(f==null)return a?[]:fP(null,null);let p=d[u];if(a)return mP(f,p,n,r,i);let m=pP(f,p,n,r,i);if(m===-1)return fP(null,null);let h=f[m];return fP(h[kN]+1,h[AN])}var gP=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function _P(e){return e}function vP(e,t){return _P(e)._indexes[t]}function yP(e,t){let n=vP(e,t);if(n!==void 0)return n;let{array:r,_indexes:i}=_P(e);return i[t]=r.push(t)-1}var bP=0,xP=1,SP=2,CP=3,wP=4,TP=-1,EP=class{constructor({file:e,sourceRoot:t}={}){this._names=new gP,this._sources=new gP,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new gP}};function DP(e){return e}var OP=(e,t)=>VP(!0,e,t);function kP(e,t,n){let{_sources:r,_sourcesContent:i}=DP(e),a=yP(r,t);i[a]=n}function AP(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=DP(e);return LP(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function jP(e){let t=AP(e);return Object.assign({},t,{mappings:aN(t.mappings)})}function MP(e){let t=new $N(e),n=new EP({file:t.file,sourceRoot:t.sourceRoot});return RP(DP(n)._names,t.names),RP(DP(n)._sources,t.sources),DP(n)._sourcesContent=t.sourcesContent||t.sources.map(()=>null),DP(n)._mappings=nP(t),t.ignoreList&&RP(DP(n)._ignoreList,t.ignoreList),n}function NP(e,t,n,r,i,a,o,s,c){let{_mappings:l,_sources:u,_sourcesContent:d,_names:f}=DP(t),p=PP(l,n),m=FP(p,r);if(!i)return e&&zP(p,m)?void 0:IP(p,m,[r]);let h=yP(u,i),g=s?yP(f,s):TP;if(h===d.length&&(d[h]=c??null),!(e&&BP(p,m,h,a,o,g)))return IP(p,m,s?[r,h,a,o,g]:[r,h,a,o])}function PP(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function FP(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][bP]);n=r--);return n}function IP(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function LP(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}function RP(e,t){for(let n=0;n<t.length;n++)yP(e,t[n])}function zP(e,t){return t===0?!0:e[t-1].length===1}function BP(e,t,n,r,i,a){if(t===0)return!1;let o=e[t-1];return o.length===1?!1:n===o[xP]&&r===o[SP]&&i===o[CP]&&a===(o.length===5?o[wP]:TP)}function VP(e,t,n){let{generated:r,source:i,original:a,name:o,content:s}=n;return i?NP(e,t,r.line-1,r.column,i,a.line-1,a.column,o,s):NP(e,t,r.line-1,r.column,null,null,null,null,null)}var HP=class e{constructor(e,t){let n=this._map=new WN(e,t);this.file=n.file,this.names=n.names,this.sourceRoot=n.sourceRoot,this.sources=n.resolvedSources,this.sourcesContent=n.sourcesContent,this.version=n.version}static fromSourceMap(t,n){return t.toDecodedMap?new e(t.toDecodedMap(),n):new e(t.toJSON(),n)}get mappings(){return tP(this._map)}originalPositionFor(e){return rP(this._map,e)}generatedPositionFor(e){return iP(this._map,e)}allGeneratedPositionsFor(e){return aP(this._map,e)}hasContentsOfAllSources(){if(!this.sourcesContent||this.sourcesContent.length!==this.sources.length)return!1;for(let e of this.sourcesContent)if(e==null)return!1;return!0}sourceContentFor(e,t){let n=cP(this._map,e);if(n!=null)return n;if(t)return null;throw Error(`"${e}" is not in the SourceMap.`)}eachMapping(e,t){oP(this._map,t?e.bind(t):e)}destroy(){}},UP=class e{constructor(e){this._map=e instanceof EP?e:new EP(e)}static fromSourceMap(t){return new e(MP(t))}addMapping(e){OP(this._map,e)}setSourceContent(e,t){kP(this._map,e,t)}toJSON(){return jP(this._map)}toString(){return JSON.stringify(this.toJSON())}toDecodedMap(){return AP(this._map)}};function*WP(e){e=SE(e,{file:null,root:null,orig:null,files:{}});var t,n=new UP({file:e.file,sourceRoot:e.root});let r={__proto__:null},i=e.files;for(var a in i)LE(i,a)&&(r[a]=i[a]);e.orig&&(t=yield new HP(e.orig),t.sourcesContent&&t.sources.forEach(function(e,n){var i=t.sourcesContent[n];i&&(r[e]=i)}));function o(e,i,a,o,s,c){let l={line:i,column:a};if(t){var u=t.originalPositionFor({line:o,column:s});if(u.source===null){n.addMapping({generated:l,original:null,source:null,name:null});return}e=u.source,o=u.line,s=u.column,c=u.name||c}n.addMapping({generated:l,original:{line:o,column:s},source:e,name:c}),n.setSourceContent(e,r[e])}function s(e){return e.sourcesContent&&e.sourcesContent.every(e=>e==null)&&delete e.sourcesContent,e.file===void 0&&delete e.file,e.sourceRoot===void 0&&delete e.sourceRoot,e}function c(){return n.toDecodedMap?s(n.toDecodedMap()):null}function l(){return s(n.toJSON())}function u(){t&&t.destroy&&t.destroy()}return{add:o,getDecoded:c,getEncoded:l,destroy:u}}var GP="$&.$'.$*.$+.$1.$2.$3.$4.$5.$6.$7.$8.$9.$_.$`.$input.-moz-animation.-moz-animation-delay.-moz-animation-direction.-moz-animation-duration.-moz-animation-fill-mode.-moz-animation-iteration-count.-moz-animation-name.-moz-animation-play-state.-moz-animation-timing-function.-moz-appearance.-moz-backface-visibility.-moz-border-end.-moz-border-end-color.-moz-border-end-style.-moz-border-end-width.-moz-border-image.-moz-border-start.-moz-border-start-color.-moz-border-start-style.-moz-border-start-width.-moz-box-align.-moz-box-direction.-moz-box-flex.-moz-box-ordinal-group.-moz-box-orient.-moz-box-pack.-moz-box-sizing.-moz-float-edge.-moz-font-feature-settings.-moz-font-language-override.-moz-force-broken-image-icon.-moz-hyphens.-moz-image-region.-moz-margin-end.-moz-margin-start.-moz-orient.-moz-osx-font-smoothing.-moz-outline-radius.-moz-outline-radius-bottomleft.-moz-outline-radius-bottomright.-moz-outline-radius-topleft.-moz-outline-radius-topright.-moz-padding-end.-moz-padding-start.-moz-perspective.-moz-perspective-origin.-moz-tab-size.-moz-text-size-adjust.-moz-transform.-moz-transform-origin.-moz-transform-style.-moz-transition.-moz-transition-delay.-moz-transition-duration.-moz-transition-property.-moz-transition-timing-function.-moz-user-focus.-moz-user-input.-moz-user-modify.-moz-user-select.-moz-window-dragging.-webkit-align-content.-webkit-align-items.-webkit-align-self.-webkit-animation.-webkit-animation-delay.-webkit-animation-direction.-webkit-animation-duration.-webkit-animation-fill-mode.-webkit-animation-iteration-count.-webkit-animation-name.-webkit-animation-play-state.-webkit-animation-timing-function.-webkit-appearance.-webkit-backface-visibility.-webkit-background-clip.-webkit-background-origin.-webkit-background-size.-webkit-border-bottom-left-radius.-webkit-border-bottom-right-radius.-webkit-border-image.-webkit-border-radius.-webkit-border-top-left-radius.-webkit-border-top-right-radius.-webkit-box-align.-webkit-box-direction.-webkit-box-flex.-webkit-box-ordinal-group.-webkit-box-orient.-webkit-box-pack.-webkit-box-shadow.-webkit-box-sizing.-webkit-clip-path.-webkit-filter.-webkit-flex.-webkit-flex-basis.-webkit-flex-direction.-webkit-flex-flow.-webkit-flex-grow.-webkit-flex-shrink.-webkit-flex-wrap.-webkit-font-feature-settings.-webkit-justify-content.-webkit-line-clamp.-webkit-mask.-webkit-mask-clip.-webkit-mask-composite.-webkit-mask-image.-webkit-mask-origin.-webkit-mask-position.-webkit-mask-position-x.-webkit-mask-position-y.-webkit-mask-repeat.-webkit-mask-size.-webkit-order.-webkit-perspective.-webkit-perspective-origin.-webkit-text-fill-color.-webkit-text-security.-webkit-text-size-adjust.-webkit-text-stroke.-webkit-text-stroke-color.-webkit-text-stroke-width.-webkit-transform.-webkit-transform-origin.-webkit-transform-style.-webkit-transition.-webkit-transition-delay.-webkit-transition-duration.-webkit-transition-property.-webkit-transition-timing-function.-webkit-user-select.@@iterator.ABORT_ERR.ACTIVE.ACTIVE_ATTRIBUTES.ACTIVE_TEXTURE.ACTIVE_UNIFORMS.ACTIVE_UNIFORM_BLOCKS.ADDITION.ALIASED_LINE_WIDTH_RANGE.ALIASED_POINT_SIZE_RANGE.ALL.ALLOW_KEYBOARD_INPUT.ALLPASS.ALPHA.ALPHA_BITS.ALREADY_SIGNALED.ALT_MASK.ALWAYS.ANY_SAMPLES_PASSED.ANY_SAMPLES_PASSED_CONSERVATIVE.ANY_TYPE.ANY_UNORDERED_NODE_TYPE.ARRAY_BUFFER.ARRAY_BUFFER_BINDING.ATTACHED_SHADERS.ATTRIBUTE_NODE.AT_TARGET.AbortController.AbortSignal.AbsoluteOrientationSensor.AbstractRange.Accelerometer.AddSearchProvider.AggregateError.AnalyserNode.Animation.AnimationEffect.AnimationEvent.AnimationPlaybackEvent.AnimationTimeline.AnonXMLHttpRequest.Any.AnyPermissions.ApplicationCache.ApplicationCacheErrorEvent.Array.ArrayBuffer.ArrayType.Atomics.Attr.Audio.AudioBuffer.AudioBufferSourceNode.AudioContext.AudioData.AudioDecoder.AudioDestinationNode.AudioEncoder.AudioListener.AudioNode.AudioParam.AudioParamMap.AudioProcessingEvent.AudioScheduledSourceNode.AudioSinkInfo.AudioStreamTrack.AudioWorklet.AudioWorkletNode.AuthenticatorAssertionResponse.AuthenticatorAttestationResponse.AuthenticatorResponse.AutocompleteErrorEvent.BACK.BAD_BOUNDARYPOINTS_ERR.BAD_REQUEST.BANDPASS.BLEND.BLEND_COLOR.BLEND_DST_ALPHA.BLEND_DST_RGB.BLEND_EQUATION.BLEND_EQUATION_ALPHA.BLEND_EQUATION_RGB.BLEND_SRC_ALPHA.BLEND_SRC_RGB.BLUE.BLUE_BITS.BLUR.BOOL.BOOLEAN_TYPE.BOOL_VEC2.BOOL_VEC3.BOOL_VEC4.BOTH.BROWSER_DEFAULT_WEBGL.BUBBLING_PHASE.BUFFER_SIZE.BUFFER_USAGE.BYTE.BYTES_PER_ELEMENT.BackgroundFetchManager.BackgroundFetchRecord.BackgroundFetchRegistration.BarProp.BarcodeDetector.BaseAudioContext.BaseHref.BatteryManager.BeforeInstallPromptEvent.BeforeLoadEvent.BeforeUnloadEvent.BigInt.BigInt64Array.BigUint64Array.BiquadFilterNode.Blob.BlobEvent.Bluetooth.BluetoothCharacteristicProperties.BluetoothDevice.BluetoothRemoteGATTCharacteristic.BluetoothRemoteGATTDescriptor.BluetoothRemoteGATTServer.BluetoothRemoteGATTService.BluetoothUUID.Boolean.BroadcastChannel.BrowserCaptureMediaStreamTrack.BrowserInfo.ByteLengthQueuingStrategy.CAPTURING_PHASE.CCW.CDATASection.CDATA_SECTION_NODE.CHANGE.CHARSET_RULE.CHECKING.CLAMP_TO_EDGE.CLICK.CLOSED.CLOSING.COLOR.COLOR_ATTACHMENT0.COLOR_ATTACHMENT1.COLOR_ATTACHMENT10.COLOR_ATTACHMENT11.COLOR_ATTACHMENT12.COLOR_ATTACHMENT13.COLOR_ATTACHMENT14.COLOR_ATTACHMENT15.COLOR_ATTACHMENT2.COLOR_ATTACHMENT3.COLOR_ATTACHMENT4.COLOR_ATTACHMENT5.COLOR_ATTACHMENT6.COLOR_ATTACHMENT7.COLOR_ATTACHMENT8.COLOR_ATTACHMENT9.COLOR_BUFFER_BIT.COLOR_CLEAR_VALUE.COLOR_WRITEMASK.COMMENT_NODE.COMPARE_REF_TO_TEXTURE.COMPILE_STATUS.COMPLETION_STATUS_KHR.COMPRESSED_RGBA_S3TC_DXT1_EXT.COMPRESSED_RGBA_S3TC_DXT3_EXT.COMPRESSED_RGBA_S3TC_DXT5_EXT.COMPRESSED_RGB_S3TC_DXT1_EXT.COMPRESSED_TEXTURE_FORMATS.COMPUTE.CONDITION_SATISFIED.CONFIGURATION_UNSUPPORTED.CONNECTING.CONSTANT_ALPHA.CONSTANT_COLOR.CONSTRAINT_ERR.CONTEXT_LOST_WEBGL.CONTROL_MASK.COPY_DST.COPY_READ_BUFFER.COPY_READ_BUFFER_BINDING.COPY_SRC.COPY_WRITE_BUFFER.COPY_WRITE_BUFFER_BINDING.COUNTER_STYLE_RULE.CSS.CSS2Properties.CSSAnimation.CSSCharsetRule.CSSConditionRule.CSSContainerRule.CSSCounterStyleRule.CSSFontFaceRule.CSSFontFeatureValuesRule.CSSFontPaletteValuesRule.CSSGroupingRule.CSSImageValue.CSSImportRule.CSSKeyframeRule.CSSKeyframesRule.CSSKeywordValue.CSSLayerBlockRule.CSSLayerStatementRule.CSSMarginRule.CSSMathClamp.CSSMathInvert.CSSMathMax.CSSMathMin.CSSMathNegate.CSSMathProduct.CSSMathSum.CSSMathValue.CSSMatrixComponent.CSSMediaRule.CSSMozDocumentRule.CSSNameSpaceRule.CSSNamespaceRule.CSSNestedDeclarations.CSSNumericArray.CSSNumericValue.CSSPageDescriptors.CSSPageRule.CSSPerspective.CSSPositionTryDescriptors.CSSPositionTryRule.CSSPositionValue.CSSPrimitiveValue.CSSPropertyRule.CSSRotate.CSSRule.CSSRuleList.CSSScale.CSSScopeRule.CSSSkew.CSSSkewX.CSSSkewY.CSSStartingStyleRule.CSSStyleDeclaration.CSSStyleRule.CSSStyleSheet.CSSStyleValue.CSSSupportsRule.CSSTransformComponent.CSSTransformValue.CSSTransition.CSSTranslate.CSSUnitValue.CSSUnknownRule.CSSUnparsedValue.CSSValue.CSSValueList.CSSVariableReferenceValue.CSSVariablesDeclaration.CSSVariablesRule.CSSViewTransitionRule.CSSViewportRule.CSS_ATTR.CSS_CM.CSS_COUNTER.CSS_CUSTOM.CSS_DEG.CSS_DIMENSION.CSS_EMS.CSS_EXS.CSS_FILTER_BLUR.CSS_FILTER_BRIGHTNESS.CSS_FILTER_CONTRAST.CSS_FILTER_CUSTOM.CSS_FILTER_DROP_SHADOW.CSS_FILTER_GRAYSCALE.CSS_FILTER_HUE_ROTATE.CSS_FILTER_INVERT.CSS_FILTER_OPACITY.CSS_FILTER_REFERENCE.CSS_FILTER_SATURATE.CSS_FILTER_SEPIA.CSS_GRAD.CSS_HZ.CSS_IDENT.CSS_IN.CSS_INHERIT.CSS_KHZ.CSS_MATRIX.CSS_MATRIX3D.CSS_MM.CSS_MS.CSS_NUMBER.CSS_PC.CSS_PERCENTAGE.CSS_PERSPECTIVE.CSS_PRIMITIVE_VALUE.CSS_PT.CSS_PX.CSS_RAD.CSS_RECT.CSS_RGBCOLOR.CSS_ROTATE.CSS_ROTATE3D.CSS_ROTATEX.CSS_ROTATEY.CSS_ROTATEZ.CSS_S.CSS_SCALE.CSS_SCALE3D.CSS_SCALEX.CSS_SCALEY.CSS_SCALEZ.CSS_SKEW.CSS_SKEWX.CSS_SKEWY.CSS_STRING.CSS_TRANSLATE.CSS_TRANSLATE3D.CSS_TRANSLATEX.CSS_TRANSLATEY.CSS_TRANSLATEZ.CSS_UNKNOWN.CSS_URI.CSS_VALUE_LIST.CSS_VH.CSS_VMAX.CSS_VMIN.CSS_VW.CULL_FACE.CULL_FACE_MODE.CURRENT_PROGRAM.CURRENT_QUERY.CURRENT_VERTEX_ATTRIB.CUSTOM.CW.Cache.CacheStorage.CanvasCaptureMediaStream.CanvasCaptureMediaStreamTrack.CanvasGradient.CanvasPattern.CanvasRenderingContext2D.CaptureController.CaretPosition.ChannelMergerNode.ChannelSplitterNode.ChapterInformation.CharacterBoundsUpdateEvent.CharacterData.ClientRect.ClientRectList.Clipboard.ClipboardEvent.ClipboardItem.CloseEvent.CloseWatcher.Collator.ColorArray.ColorValue.CommandEvent.Comment.CompileError.CompositionEvent.CompressionStream.Console.ConstantSourceNode.ContentVisibilityAutoStateChangeEvent.ContextFilter.ContextType.Controllers.ConvolverNode.CookieChangeEvent.CookieStore.CookieStoreManager.CountQueuingStrategy.Counter.CreateType.Credential.CredentialsContainer.CropTarget.Crypto.CryptoKey.CustomElementRegistry.CustomEvent.CustomStateSet.DATABASE_ERR.DATA_CLONE_ERR.DATA_ERR.DBLCLICK.DECR.DECR_WRAP.DELETE_STATUS.DEPTH.DEPTH24_STENCIL8.DEPTH32F_STENCIL8.DEPTH_ATTACHMENT.DEPTH_BITS.DEPTH_BUFFER_BIT.DEPTH_CLEAR_VALUE.DEPTH_COMPONENT.DEPTH_COMPONENT16.DEPTH_COMPONENT24.DEPTH_COMPONENT32F.DEPTH_FUNC.DEPTH_RANGE.DEPTH_STENCIL.DEPTH_STENCIL_ATTACHMENT.DEPTH_TEST.DEPTH_WRITEMASK.DEVICE_INELIGIBLE.DIRECTION_DOWN.DIRECTION_LEFT.DIRECTION_RIGHT.DIRECTION_UP.DISABLED.DISPATCH_REQUEST_ERR.DITHER.DOCUMENT_FRAGMENT_NODE.DOCUMENT_NODE.DOCUMENT_POSITION_CONTAINED_BY.DOCUMENT_POSITION_CONTAINS.DOCUMENT_POSITION_DISCONNECTED.DOCUMENT_POSITION_FOLLOWING.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC.DOCUMENT_POSITION_PRECEDING.DOCUMENT_TYPE_NODE.DOMCursor.DOMError.DOMException.DOMImplementation.DOMImplementationLS.DOMMatrix.DOMMatrixReadOnly.DOMParser.DOMPoint.DOMPointReadOnly.DOMQuad.DOMRect.DOMRectList.DOMRectReadOnly.DOMRequest.DOMSTRING_SIZE_ERR.DOMSettableTokenList.DOMStringList.DOMStringMap.DOMTokenList.DOMTransactionEvent.DOM_DELTA_LINE.DOM_DELTA_PAGE.DOM_DELTA_PIXEL.DOM_INPUT_METHOD_DROP.DOM_INPUT_METHOD_HANDWRITING.DOM_INPUT_METHOD_IME.DOM_INPUT_METHOD_KEYBOARD.DOM_INPUT_METHOD_MULTIMODAL.DOM_INPUT_METHOD_OPTION.DOM_INPUT_METHOD_PASTE.DOM_INPUT_METHOD_SCRIPT.DOM_INPUT_METHOD_UNKNOWN.DOM_INPUT_METHOD_VOICE.DOM_KEY_LOCATION_JOYSTICK.DOM_KEY_LOCATION_LEFT.DOM_KEY_LOCATION_MOBILE.DOM_KEY_LOCATION_NUMPAD.DOM_KEY_LOCATION_RIGHT.DOM_KEY_LOCATION_STANDARD.DOM_VK_0.DOM_VK_1.DOM_VK_2.DOM_VK_3.DOM_VK_4.DOM_VK_5.DOM_VK_6.DOM_VK_7.DOM_VK_8.DOM_VK_9.DOM_VK_A.DOM_VK_ACCEPT.DOM_VK_ADD.DOM_VK_ALT.DOM_VK_ALTGR.DOM_VK_AMPERSAND.DOM_VK_ASTERISK.DOM_VK_AT.DOM_VK_ATTN.DOM_VK_B.DOM_VK_BACKSPACE.DOM_VK_BACK_QUOTE.DOM_VK_BACK_SLASH.DOM_VK_BACK_SPACE.DOM_VK_C.DOM_VK_CANCEL.DOM_VK_CAPS_LOCK.DOM_VK_CIRCUMFLEX.DOM_VK_CLEAR.DOM_VK_CLOSE_BRACKET.DOM_VK_CLOSE_CURLY_BRACKET.DOM_VK_CLOSE_PAREN.DOM_VK_COLON.DOM_VK_COMMA.DOM_VK_CONTEXT_MENU.DOM_VK_CONTROL.DOM_VK_CONVERT.DOM_VK_CRSEL.DOM_VK_CTRL.DOM_VK_D.DOM_VK_DECIMAL.DOM_VK_DELETE.DOM_VK_DIVIDE.DOM_VK_DOLLAR.DOM_VK_DOUBLE_QUOTE.DOM_VK_DOWN.DOM_VK_E.DOM_VK_EISU.DOM_VK_END.DOM_VK_ENTER.DOM_VK_EQUALS.DOM_VK_EREOF.DOM_VK_ESCAPE.DOM_VK_EXCLAMATION.DOM_VK_EXECUTE.DOM_VK_EXSEL.DOM_VK_F.DOM_VK_F1.DOM_VK_F10.DOM_VK_F11.DOM_VK_F12.DOM_VK_F13.DOM_VK_F14.DOM_VK_F15.DOM_VK_F16.DOM_VK_F17.DOM_VK_F18.DOM_VK_F19.DOM_VK_F2.DOM_VK_F20.DOM_VK_F21.DOM_VK_F22.DOM_VK_F23.DOM_VK_F24.DOM_VK_F25.DOM_VK_F26.DOM_VK_F27.DOM_VK_F28.DOM_VK_F29.DOM_VK_F3.DOM_VK_F30.DOM_VK_F31.DOM_VK_F32.DOM_VK_F33.DOM_VK_F34.DOM_VK_F35.DOM_VK_F36.DOM_VK_F4.DOM_VK_F5.DOM_VK_F6.DOM_VK_F7.DOM_VK_F8.DOM_VK_F9.DOM_VK_FINAL.DOM_VK_FRONT.DOM_VK_G.DOM_VK_GREATER_THAN.DOM_VK_H.DOM_VK_HANGUL.DOM_VK_HANJA.DOM_VK_HASH.DOM_VK_HELP.DOM_VK_HK_TOGGLE.DOM_VK_HOME.DOM_VK_HYPHEN_MINUS.DOM_VK_I.DOM_VK_INSERT.DOM_VK_J.DOM_VK_JUNJA.DOM_VK_K.DOM_VK_KANA.DOM_VK_KANJI.DOM_VK_L.DOM_VK_LEFT.DOM_VK_LEFT_TAB.DOM_VK_LESS_THAN.DOM_VK_M.DOM_VK_META.DOM_VK_MODECHANGE.DOM_VK_MULTIPLY.DOM_VK_N.DOM_VK_NONCONVERT.DOM_VK_NUMPAD0.DOM_VK_NUMPAD1.DOM_VK_NUMPAD2.DOM_VK_NUMPAD3.DOM_VK_NUMPAD4.DOM_VK_NUMPAD5.DOM_VK_NUMPAD6.DOM_VK_NUMPAD7.DOM_VK_NUMPAD8.DOM_VK_NUMPAD9.DOM_VK_NUM_LOCK.DOM_VK_O.DOM_VK_OEM_1.DOM_VK_OEM_102.DOM_VK_OEM_2.DOM_VK_OEM_3.DOM_VK_OEM_4.DOM_VK_OEM_5.DOM_VK_OEM_6.DOM_VK_OEM_7.DOM_VK_OEM_8.DOM_VK_OEM_COMMA.DOM_VK_OEM_MINUS.DOM_VK_OEM_PERIOD.DOM_VK_OEM_PLUS.DOM_VK_OPEN_BRACKET.DOM_VK_OPEN_CURLY_BRACKET.DOM_VK_OPEN_PAREN.DOM_VK_P.DOM_VK_PA1.DOM_VK_PAGEDOWN.DOM_VK_PAGEUP.DOM_VK_PAGE_DOWN.DOM_VK_PAGE_UP.DOM_VK_PAUSE.DOM_VK_PERCENT.DOM_VK_PERIOD.DOM_VK_PIPE.DOM_VK_PLAY.DOM_VK_PLUS.DOM_VK_PRINT.DOM_VK_PRINTSCREEN.DOM_VK_PROCESSKEY.DOM_VK_PROPERITES.DOM_VK_Q.DOM_VK_QUESTION_MARK.DOM_VK_QUOTE.DOM_VK_R.DOM_VK_REDO.DOM_VK_RETURN.DOM_VK_RIGHT.DOM_VK_S.DOM_VK_SCROLL_LOCK.DOM_VK_SELECT.DOM_VK_SEMICOLON.DOM_VK_SEPARATOR.DOM_VK_SHIFT.DOM_VK_SLASH.DOM_VK_SLEEP.DOM_VK_SPACE.DOM_VK_SUBTRACT.DOM_VK_T.DOM_VK_TAB.DOM_VK_TILDE.DOM_VK_U.DOM_VK_UNDERSCORE.DOM_VK_UNDO.DOM_VK_UNICODE.DOM_VK_UP.DOM_VK_V.DOM_VK_VOLUME_DOWN.DOM_VK_VOLUME_MUTE.DOM_VK_VOLUME_UP.DOM_VK_W.DOM_VK_WIN.DOM_VK_WINDOW.DOM_VK_WIN_ICO_00.DOM_VK_WIN_ICO_CLEAR.DOM_VK_WIN_ICO_HELP.DOM_VK_WIN_OEM_ATTN.DOM_VK_WIN_OEM_AUTO.DOM_VK_WIN_OEM_BACKTAB.DOM_VK_WIN_OEM_CLEAR.DOM_VK_WIN_OEM_COPY.DOM_VK_WIN_OEM_CUSEL.DOM_VK_WIN_OEM_ENLW.DOM_VK_WIN_OEM_FINISH.DOM_VK_WIN_OEM_FJ_JISHO.DOM_VK_WIN_OEM_FJ_LOYA.DOM_VK_WIN_OEM_FJ_MASSHOU.DOM_VK_WIN_OEM_FJ_ROYA.DOM_VK_WIN_OEM_FJ_TOUROKU.DOM_VK_WIN_OEM_JUMP.DOM_VK_WIN_OEM_PA1.DOM_VK_WIN_OEM_PA2.DOM_VK_WIN_OEM_PA3.DOM_VK_WIN_OEM_RESET.DOM_VK_WIN_OEM_WSCTRL.DOM_VK_X.DOM_VK_XF86XK_ADD_FAVORITE.DOM_VK_XF86XK_APPLICATION_LEFT.DOM_VK_XF86XK_APPLICATION_RIGHT.DOM_VK_XF86XK_AUDIO_CYCLE_TRACK.DOM_VK_XF86XK_AUDIO_FORWARD.DOM_VK_XF86XK_AUDIO_LOWER_VOLUME.DOM_VK_XF86XK_AUDIO_MEDIA.DOM_VK_XF86XK_AUDIO_MUTE.DOM_VK_XF86XK_AUDIO_NEXT.DOM_VK_XF86XK_AUDIO_PAUSE.DOM_VK_XF86XK_AUDIO_PLAY.DOM_VK_XF86XK_AUDIO_PREV.DOM_VK_XF86XK_AUDIO_RAISE_VOLUME.DOM_VK_XF86XK_AUDIO_RANDOM_PLAY.DOM_VK_XF86XK_AUDIO_RECORD.DOM_VK_XF86XK_AUDIO_REPEAT.DOM_VK_XF86XK_AUDIO_REWIND.DOM_VK_XF86XK_AUDIO_STOP.DOM_VK_XF86XK_AWAY.DOM_VK_XF86XK_BACK.DOM_VK_XF86XK_BACK_FORWARD.DOM_VK_XF86XK_BATTERY.DOM_VK_XF86XK_BLUE.DOM_VK_XF86XK_BLUETOOTH.DOM_VK_XF86XK_BOOK.DOM_VK_XF86XK_BRIGHTNESS_ADJUST.DOM_VK_XF86XK_CALCULATOR.DOM_VK_XF86XK_CALENDAR.DOM_VK_XF86XK_CD.DOM_VK_XF86XK_CLOSE.DOM_VK_XF86XK_COMMUNITY.DOM_VK_XF86XK_CONTRAST_ADJUST.DOM_VK_XF86XK_COPY.DOM_VK_XF86XK_CUT.DOM_VK_XF86XK_CYCLE_ANGLE.DOM_VK_XF86XK_DISPLAY.DOM_VK_XF86XK_DOCUMENTS.DOM_VK_XF86XK_DOS.DOM_VK_XF86XK_EJECT.DOM_VK_XF86XK_EXCEL.DOM_VK_XF86XK_EXPLORER.DOM_VK_XF86XK_FAVORITES.DOM_VK_XF86XK_FINANCE.DOM_VK_XF86XK_FORWARD.DOM_VK_XF86XK_FRAME_BACK.DOM_VK_XF86XK_FRAME_FORWARD.DOM_VK_XF86XK_GAME.DOM_VK_XF86XK_GO.DOM_VK_XF86XK_GREEN.DOM_VK_XF86XK_HIBERNATE.DOM_VK_XF86XK_HISTORY.DOM_VK_XF86XK_HOME_PAGE.DOM_VK_XF86XK_HOT_LINKS.DOM_VK_XF86XK_I_TOUCH.DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN.DOM_VK_XF86XK_KBD_BRIGHTNESS_UP.DOM_VK_XF86XK_KBD_LIGHT_ON_OFF.DOM_VK_XF86XK_LAUNCH0.DOM_VK_XF86XK_LAUNCH1.DOM_VK_XF86XK_LAUNCH2.DOM_VK_XF86XK_LAUNCH3.DOM_VK_XF86XK_LAUNCH4.DOM_VK_XF86XK_LAUNCH5.DOM_VK_XF86XK_LAUNCH6.DOM_VK_XF86XK_LAUNCH7.DOM_VK_XF86XK_LAUNCH8.DOM_VK_XF86XK_LAUNCH9.DOM_VK_XF86XK_LAUNCH_A.DOM_VK_XF86XK_LAUNCH_B.DOM_VK_XF86XK_LAUNCH_C.DOM_VK_XF86XK_LAUNCH_D.DOM_VK_XF86XK_LAUNCH_E.DOM_VK_XF86XK_LAUNCH_F.DOM_VK_XF86XK_LIGHT_BULB.DOM_VK_XF86XK_LOG_OFF.DOM_VK_XF86XK_MAIL.DOM_VK_XF86XK_MAIL_FORWARD.DOM_VK_XF86XK_MARKET.DOM_VK_XF86XK_MEETING.DOM_VK_XF86XK_MEMO.DOM_VK_XF86XK_MENU_KB.DOM_VK_XF86XK_MENU_PB.DOM_VK_XF86XK_MESSENGER.DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN.DOM_VK_XF86XK_MON_BRIGHTNESS_UP.DOM_VK_XF86XK_MUSIC.DOM_VK_XF86XK_MY_COMPUTER.DOM_VK_XF86XK_MY_SITES.DOM_VK_XF86XK_NEW.DOM_VK_XF86XK_NEWS.DOM_VK_XF86XK_OFFICE_HOME.DOM_VK_XF86XK_OPEN.DOM_VK_XF86XK_OPEN_URL.DOM_VK_XF86XK_OPTION.DOM_VK_XF86XK_PASTE.DOM_VK_XF86XK_PHONE.DOM_VK_XF86XK_PICTURES.DOM_VK_XF86XK_POWER_DOWN.DOM_VK_XF86XK_POWER_OFF.DOM_VK_XF86XK_RED.DOM_VK_XF86XK_REFRESH.DOM_VK_XF86XK_RELOAD.DOM_VK_XF86XK_REPLY.DOM_VK_XF86XK_ROCKER_DOWN.DOM_VK_XF86XK_ROCKER_ENTER.DOM_VK_XF86XK_ROCKER_UP.DOM_VK_XF86XK_ROTATE_WINDOWS.DOM_VK_XF86XK_ROTATION_KB.DOM_VK_XF86XK_ROTATION_PB.DOM_VK_XF86XK_SAVE.DOM_VK_XF86XK_SCREEN_SAVER.DOM_VK_XF86XK_SCROLL_CLICK.DOM_VK_XF86XK_SCROLL_DOWN.DOM_VK_XF86XK_SCROLL_UP.DOM_VK_XF86XK_SEARCH.DOM_VK_XF86XK_SEND.DOM_VK_XF86XK_SHOP.DOM_VK_XF86XK_SPELL.DOM_VK_XF86XK_SPLIT_SCREEN.DOM_VK_XF86XK_STANDBY.DOM_VK_XF86XK_START.DOM_VK_XF86XK_STOP.DOM_VK_XF86XK_SUBTITLE.DOM_VK_XF86XK_SUPPORT.DOM_VK_XF86XK_SUSPEND.DOM_VK_XF86XK_TASK_PANE.DOM_VK_XF86XK_TERMINAL.DOM_VK_XF86XK_TIME.DOM_VK_XF86XK_TOOLS.DOM_VK_XF86XK_TOP_MENU.DOM_VK_XF86XK_TO_DO_LIST.DOM_VK_XF86XK_TRAVEL.DOM_VK_XF86XK_USER1KB.DOM_VK_XF86XK_USER2KB.DOM_VK_XF86XK_USER_PB.DOM_VK_XF86XK_UWB.DOM_VK_XF86XK_VENDOR_HOME.DOM_VK_XF86XK_VIDEO.DOM_VK_XF86XK_VIEW.DOM_VK_XF86XK_WAKE_UP.DOM_VK_XF86XK_WEB_CAM.DOM_VK_XF86XK_WHEEL_BUTTON.DOM_VK_XF86XK_WLAN.DOM_VK_XF86XK_WORD.DOM_VK_XF86XK_WWW.DOM_VK_XF86XK_XFER.DOM_VK_XF86XK_YELLOW.DOM_VK_XF86XK_ZOOM_IN.DOM_VK_XF86XK_ZOOM_OUT.DOM_VK_Y.DOM_VK_Z.DOM_VK_ZOOM.DONE.DONT_CARE.DOWNLOADING.DRAGDROP.DRAW_BUFFER0.DRAW_BUFFER1.DRAW_BUFFER10.DRAW_BUFFER11.DRAW_BUFFER12.DRAW_BUFFER13.DRAW_BUFFER14.DRAW_BUFFER15.DRAW_BUFFER2.DRAW_BUFFER3.DRAW_BUFFER4.DRAW_BUFFER5.DRAW_BUFFER6.DRAW_BUFFER7.DRAW_BUFFER8.DRAW_BUFFER9.DRAW_FRAMEBUFFER.DRAW_FRAMEBUFFER_BINDING.DST_ALPHA.DST_COLOR.DYNAMIC_COPY.DYNAMIC_DRAW.DYNAMIC_READ.DataChannel.DataTransfer.DataTransferItem.DataTransferItemList.DataView.Date.DateTimeFormat.DecompressionStream.DelayNode.DelegatedInkTrailPresenter.DeprecationReportBody.DesktopNotification.DesktopNotificationCenter.Details.DeviceLightEvent.DeviceMotionEvent.DeviceMotionEventAcceleration.DeviceMotionEventRotationRate.DeviceOrientationEvent.DeviceProximityEvent.DeviceStorage.DeviceStorageChangeEvent.Directory.DisplayNames.Document.DocumentFragment.DocumentPictureInPicture.DocumentPictureInPictureEvent.DocumentTimeline.DocumentType.DragEvent.DurationFormat.DynamicsCompressorNode.E.ELEMENT_ARRAY_BUFFER.ELEMENT_ARRAY_BUFFER_BINDING.ELEMENT_NODE.EMPTY.ENCODING_ERR.ENDED.END_TO_END.END_TO_START.ENTITY_NODE.ENTITY_REFERENCE_NODE.EPSILON.EQUAL.EQUALPOWER.ERROR.EXPONENTIAL_DISTANCE.EditContext.Element.ElementInternals.ElementQuery.EncodedAudioChunk.EncodedVideoChunk.EnterPictureInPictureEvent.Entity.EntityReference.Error.ErrorEvent.EvalError.Event.EventCounts.EventException.EventSource.EventTarget.Exception.ExtensionContext.ExtensionDisabledReason.ExtensionInfo.ExtensionInstallType.ExtensionType.External.EyeDropper.FASTEST.FIDOSDK.FILTER_ACCEPT.FILTER_INTERRUPT.FILTER_REJECT.FILTER_SKIP.FINISHED_STATE.FIRST_ORDERED_NODE_TYPE.FLOAT.FLOAT_32_UNSIGNED_INT_24_8_REV.FLOAT_MAT2.FLOAT_MAT2x3.FLOAT_MAT2x4.FLOAT_MAT3.FLOAT_MAT3x2.FLOAT_MAT3x4.FLOAT_MAT4.FLOAT_MAT4x2.FLOAT_MAT4x3.FLOAT_VEC2.FLOAT_VEC3.FLOAT_VEC4.FOCUS.FONT_FACE_RULE.FONT_FEATURE_VALUES_RULE.FRAGMENT.FRAGMENT_SHADER.FRAGMENT_SHADER_DERIVATIVE_HINT.FRAGMENT_SHADER_DERIVATIVE_HINT_OES.FRAMEBUFFER.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE.FRAMEBUFFER_ATTACHMENT_RED_SIZE.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL.FRAMEBUFFER_BINDING.FRAMEBUFFER_COMPLETE.FRAMEBUFFER_DEFAULT.FRAMEBUFFER_INCOMPLETE_ATTACHMENT.FRAMEBUFFER_INCOMPLETE_DIMENSIONS.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE.FRAMEBUFFER_UNSUPPORTED.FRONT.FRONT_AND_BACK.FRONT_FACE.FUNC_ADD.FUNC_REVERSE_SUBTRACT.FUNC_SUBTRACT.FeaturePolicy.FeaturePolicyViolationReportBody.FederatedCredential.Feed.FeedEntry.Fence.FencedFrameConfig.File.FileError.FileList.FileReader.FileSystem.FileSystemDirectoryEntry.FileSystemDirectoryHandle.FileSystemDirectoryReader.FileSystemEntry.FileSystemFileEntry.FileSystemFileHandle.FileSystemHandle.FileSystemWritableFileStream.FinalizationRegistry.FindInPage.Float16Array.Float32Array.Float64Array.FocusEvent.FontData.FontFace.FontFaceSet.FontFaceSetLoadEvent.FormData.FormDataEvent.FragmentDirective.Function.GENERATE_MIPMAP_HINT.GEQUAL.GPU.GPUAdapter.GPUAdapterInfo.GPUBindGroup.GPUBindGroupLayout.GPUBuffer.GPUBufferUsage.GPUCanvasContext.GPUColorWrite.GPUCommandBuffer.GPUCommandEncoder.GPUCompilationInfo.GPUCompilationMessage.GPUComputePassEncoder.GPUComputePipeline.GPUDevice.GPUDeviceLostInfo.GPUError.GPUExternalTexture.GPUInternalError.GPUMapMode.GPUOutOfMemoryError.GPUPipelineError.GPUPipelineLayout.GPUQuerySet.GPUQueue.GPURenderBundle.GPURenderBundleEncoder.GPURenderPassEncoder.GPURenderPipeline.GPUSampler.GPUShaderModule.GPUShaderStage.GPUSupportedFeatures.GPUSupportedLimits.GPUTexture.GPUTextureUsage.GPUTextureView.GPUUncapturedErrorEvent.GPUValidationError.GREATER.GREEN.GREEN_BITS.GainNode.Gamepad.GamepadAxisMoveEvent.GamepadButton.GamepadButtonEvent.GamepadEvent.GamepadHapticActuator.GamepadPose.Geolocation.GeolocationCoordinates.GeolocationPosition.GeolocationPositionError.GestureEvent.GetInfo.Global.GravitySensor.Gyroscope.HALF_FLOAT.HAVE_CURRENT_DATA.HAVE_ENOUGH_DATA.HAVE_FUTURE_DATA.HAVE_METADATA.HAVE_NOTHING.HEADERS_RECEIVED.HID.HIDConnectionEvent.HIDDEN.HIDDevice.HIDInputReportEvent.HIERARCHY_REQUEST_ERR.HIGHPASS.HIGHSHELF.HIGH_FLOAT.HIGH_INT.HORIZONTAL.HORIZONTAL_AXIS.HRTF.HTMLAllCollection.HTMLAnchorElement.HTMLAppletElement.HTMLAreaElement.HTMLAudioElement.HTMLBRElement.HTMLBaseElement.HTMLBaseFontElement.HTMLBlockquoteElement.HTMLBodyElement.HTMLButtonElement.HTMLCanvasElement.HTMLCollection.HTMLCommandElement.HTMLContentElement.HTMLDListElement.HTMLDataElement.HTMLDataListElement.HTMLDetailsElement.HTMLDialogElement.HTMLDirectoryElement.HTMLDivElement.HTMLDocument.HTMLElement.HTMLEmbedElement.HTMLFencedFrameElement.HTMLFieldSetElement.HTMLFontElement.HTMLFormControlsCollection.HTMLFormElement.HTMLFrameElement.HTMLFrameSetElement.HTMLHRElement.HTMLHeadElement.HTMLHeadingElement.HTMLHtmlElement.HTMLIFrameElement.HTMLImageElement.HTMLInputElement.HTMLIsIndexElement.HTMLKeygenElement.HTMLLIElement.HTMLLabelElement.HTMLLegendElement.HTMLLinkElement.HTMLMapElement.HTMLMarqueeElement.HTMLMediaElement.HTMLMenuElement.HTMLMenuItemElement.HTMLMetaElement.HTMLMeterElement.HTMLModElement.HTMLOListElement.HTMLObjectElement.HTMLOptGroupElement.HTMLOptionElement.HTMLOptionsCollection.HTMLOutputElement.HTMLParagraphElement.HTMLParamElement.HTMLPictureElement.HTMLPreElement.HTMLProgressElement.HTMLPropertiesCollection.HTMLQuoteElement.HTMLScriptElement.HTMLSelectElement.HTMLShadowElement.HTMLSlotElement.HTMLSourceElement.HTMLSpanElement.HTMLStyleElement.HTMLTableCaptionElement.HTMLTableCellElement.HTMLTableColElement.HTMLTableElement.HTMLTableRowElement.HTMLTableSectionElement.HTMLTemplateElement.HTMLTextAreaElement.HTMLTimeElement.HTMLTitleElement.HTMLTrackElement.HTMLUListElement.HTMLUnknownElement.HTMLVideoElement.HashChangeEvent.Headers.Highlight.HighlightRegistry.History.Hz.ICE_CHECKING.ICE_CLOSED.ICE_COMPLETED.ICE_CONNECTED.ICE_FAILED.ICE_GATHERING.ICE_WAITING.IDBCursor.IDBCursorWithValue.IDBDatabase.IDBDatabaseException.IDBFactory.IDBFileHandle.IDBFileRequest.IDBIndex.IDBKeyRange.IDBMutableFile.IDBObjectStore.IDBOpenDBRequest.IDBRequest.IDBTransaction.IDBVersionChangeEvent.IDLE.IIRFilterNode.IMPLEMENTATION_COLOR_READ_FORMAT.IMPLEMENTATION_COLOR_READ_TYPE.IMPORT_RULE.INCR.INCR_WRAP.INDEX.INDEX_SIZE_ERR.INDIRECT.INT.INTERLEAVED_ATTRIBS.INT_2_10_10_10_REV.INT_SAMPLER_2D.INT_SAMPLER_2D_ARRAY.INT_SAMPLER_3D.INT_SAMPLER_CUBE.INT_VEC2.INT_VEC3.INT_VEC4.INUSE_ATTRIBUTE_ERR.INVALID_ACCESS_ERR.INVALID_CHARACTER_ERR.INVALID_ENUM.INVALID_EXPRESSION_ERR.INVALID_FRAMEBUFFER_OPERATION.INVALID_INDEX.INVALID_MODIFICATION_ERR.INVALID_NODE_TYPE_ERR.INVALID_OPERATION.INVALID_STATE_ERR.INVALID_VALUE.INVERSE_DISTANCE.INVERT.IceCandidate.IconInfo.IdentityCredential.IdentityCredentialError.IdentityProvider.IdleDeadline.IdleDetector.Image.ImageBitmap.ImageBitmapRenderingContext.ImageCapture.ImageData.ImageDataType.ImageDecoder.ImageTrack.ImageTrackList.Infinity.Ink.InputDeviceCapabilities.InputDeviceInfo.InputEvent.InputMethodContext.InstallTrigger.InstallTriggerImpl.Instance.Int16Array.Int32Array.Int8Array.Intent.InternalError.IntersectionObserver.IntersectionObserverEntry.Intl.IsSearchProviderInstalled.Iterator.JSON.JSTag.KEEP.KEYDOWN.KEYFRAMES_RULE.KEYFRAME_RULE.KEYPRESS.KEYUP.KeyEvent.Keyboard.KeyboardEvent.KeyboardLayoutMap.KeyframeEffect.LENGTHADJUST_SPACING.LENGTHADJUST_SPACINGANDGLYPHS.LENGTHADJUST_UNKNOWN.LEQUAL.LESS.LINEAR.LINEAR_DISTANCE.LINEAR_MIPMAP_LINEAR.LINEAR_MIPMAP_NEAREST.LINES.LINE_LOOP.LINE_STRIP.LINE_WIDTH.LINK_STATUS.LIVE.LN10.LN2.LOADED.LOADING.LOG10E.LOG2E.LOWPASS.LOWSHELF.LOW_FLOAT.LOW_INT.LSException.LSParserFilter.LUMINANCE.LUMINANCE_ALPHA.LanguageCode.LargestContentfulPaint.LaunchParams.LaunchQueue.LaunchType.LayoutShift.LayoutShiftAttribution.LinearAccelerationSensor.LinkError.ListFormat.LocalMediaStream.Locale.Location.Lock.LockManager.MAP_READ.MAP_WRITE.MARGIN_RULE.MAX.MAX_3D_TEXTURE_SIZE.MAX_ARRAY_TEXTURE_LAYERS.MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND.MAX_CLIENT_WAIT_TIMEOUT_WEBGL.MAX_COLOR_ATTACHMENTS.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS.MAX_COMBINED_TEXTURE_IMAGE_UNITS.MAX_COMBINED_UNIFORM_BLOCKS.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS.MAX_CUBE_MAP_TEXTURE_SIZE.MAX_DRAW_BUFFERS.MAX_ELEMENTS_INDICES.MAX_ELEMENTS_VERTICES.MAX_ELEMENT_INDEX.MAX_FRAGMENT_INPUT_COMPONENTS.MAX_FRAGMENT_UNIFORM_BLOCKS.MAX_FRAGMENT_UNIFORM_COMPONENTS.MAX_FRAGMENT_UNIFORM_VECTORS.MAX_PROGRAM_TEXEL_OFFSET.MAX_RENDERBUFFER_SIZE.MAX_SAFE_INTEGER.MAX_SAMPLES.MAX_SERVER_WAIT_TIMEOUT.MAX_TEXTURE_IMAGE_UNITS.MAX_TEXTURE_LOD_BIAS.MAX_TEXTURE_MAX_ANISOTROPY_EXT.MAX_TEXTURE_SIZE.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS.MAX_UNIFORM_BLOCK_SIZE.MAX_UNIFORM_BUFFER_BINDINGS.MAX_VALUE.MAX_VARYING_COMPONENTS.MAX_VARYING_VECTORS.MAX_VERTEX_ATTRIBS.MAX_VERTEX_OUTPUT_COMPONENTS.MAX_VERTEX_TEXTURE_IMAGE_UNITS.MAX_VERTEX_UNIFORM_BLOCKS.MAX_VERTEX_UNIFORM_COMPONENTS.MAX_VERTEX_UNIFORM_VECTORS.MAX_VIEWPORT_DIMS.MEDIA_ERR_ABORTED.MEDIA_ERR_DECODE.MEDIA_ERR_ENCRYPTED.MEDIA_ERR_NETWORK.MEDIA_ERR_SRC_NOT_SUPPORTED.MEDIA_KEYERR_CLIENT.MEDIA_KEYERR_DOMAIN.MEDIA_KEYERR_HARDWARECHANGE.MEDIA_KEYERR_OUTPUT.MEDIA_KEYERR_SERVICE.MEDIA_KEYERR_UNKNOWN.MEDIA_RULE.MEDIUM_FLOAT.MEDIUM_INT.META_MASK.MIDIAccess.MIDIConnectionEvent.MIDIInput.MIDIInputMap.MIDIMessageEvent.MIDIOutput.MIDIOutputMap.MIDIPort.MIN.MIN_PROGRAM_TEXEL_OFFSET.MIN_SAFE_INTEGER.MIN_VALUE.MIRRORED_REPEAT.MODE_ASYNCHRONOUS.MODE_SYNCHRONOUS.MODIFICATION.MOUSEDOWN.MOUSEDRAG.MOUSEMOVE.MOUSEOUT.MOUSEOVER.MOUSEUP.MOZ_KEYFRAMES_RULE.MOZ_KEYFRAME_RULE.MOZ_SOURCE_CURSOR.MOZ_SOURCE_ERASER.MOZ_SOURCE_KEYBOARD.MOZ_SOURCE_MOUSE.MOZ_SOURCE_PEN.MOZ_SOURCE_TOUCH.MOZ_SOURCE_UNKNOWN.MSGESTURE_FLAG_BEGIN.MSGESTURE_FLAG_CANCEL.MSGESTURE_FLAG_END.MSGESTURE_FLAG_INERTIA.MSGESTURE_FLAG_NONE.MSPOINTER_TYPE_MOUSE.MSPOINTER_TYPE_PEN.MSPOINTER_TYPE_TOUCH.MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE.MS_ASYNC_CALLBACK_STATUS_CANCEL.MS_ASYNC_CALLBACK_STATUS_CHOOSEANY.MS_ASYNC_CALLBACK_STATUS_ERROR.MS_ASYNC_CALLBACK_STATUS_JOIN.MS_ASYNC_OP_STATUS_CANCELED.MS_ASYNC_OP_STATUS_ERROR.MS_ASYNC_OP_STATUS_SUCCESS.MS_MANIPULATION_STATE_ACTIVE.MS_MANIPULATION_STATE_CANCELLED.MS_MANIPULATION_STATE_COMMITTED.MS_MANIPULATION_STATE_DRAGGING.MS_MANIPULATION_STATE_INERTIA.MS_MANIPULATION_STATE_PRESELECT.MS_MANIPULATION_STATE_SELECTING.MS_MANIPULATION_STATE_STOPPED.MS_MEDIA_ERR_ENCRYPTED.MS_MEDIA_KEYERR_CLIENT.MS_MEDIA_KEYERR_DOMAIN.MS_MEDIA_KEYERR_HARDWARECHANGE.MS_MEDIA_KEYERR_OUTPUT.MS_MEDIA_KEYERR_SERVICE.MS_MEDIA_KEYERR_UNKNOWN.Map.Math.MathMLElement.MediaCapabilities.MediaCapabilitiesInfo.MediaController.MediaDeviceInfo.MediaDevices.MediaElementAudioSourceNode.MediaEncryptedEvent.MediaError.MediaKeyError.MediaKeyEvent.MediaKeyMessageEvent.MediaKeyNeededEvent.MediaKeySession.MediaKeyStatusMap.MediaKeySystemAccess.MediaKeys.MediaList.MediaMetadata.MediaQueryList.MediaQueryListEvent.MediaRecorder.MediaRecorderErrorEvent.MediaSession.MediaSettingsRange.MediaSource.MediaSourceHandle.MediaStream.MediaStreamAudioDestinationNode.MediaStreamAudioSourceNode.MediaStreamEvent.MediaStreamTrack.MediaStreamTrackAudioSourceNode.MediaStreamTrackAudioStats.MediaStreamTrackEvent.MediaStreamTrackGenerator.MediaStreamTrackProcessor.MediaStreamTrackVideoStats.Memory.MessageChannel.MessageEvent.MessagePort.MessageSender.Methods.MimeType.MimeTypeArray.Module.MouseEvent.MouseScrollEvent.MozAnimation.MozAnimationDelay.MozAnimationDirection.MozAnimationDuration.MozAnimationFillMode.MozAnimationIterationCount.MozAnimationName.MozAnimationPlayState.MozAnimationTimingFunction.MozAppearance.MozBackfaceVisibility.MozBinding.MozBorderBottomColors.MozBorderEnd.MozBorderEndColor.MozBorderEndStyle.MozBorderEndWidth.MozBorderImage.MozBorderLeftColors.MozBorderRightColors.MozBorderStart.MozBorderStartColor.MozBorderStartStyle.MozBorderStartWidth.MozBorderTopColors.MozBoxAlign.MozBoxDirection.MozBoxFlex.MozBoxOrdinalGroup.MozBoxOrient.MozBoxPack.MozBoxSizing.MozCSSKeyframeRule.MozCSSKeyframesRule.MozColumnCount.MozColumnFill.MozColumnGap.MozColumnRule.MozColumnRuleColor.MozColumnRuleStyle.MozColumnRuleWidth.MozColumnWidth.MozColumns.MozContactChangeEvent.MozFloatEdge.MozFontFeatureSettings.MozFontLanguageOverride.MozForceBrokenImageIcon.MozHyphens.MozImageRegion.MozMarginEnd.MozMarginStart.MozMmsEvent.MozMmsMessage.MozMobileMessageThread.MozOSXFontSmoothing.MozOrient.MozOsxFontSmoothing.MozOutlineRadius.MozOutlineRadiusBottomleft.MozOutlineRadiusBottomright.MozOutlineRadiusTopleft.MozOutlineRadiusTopright.MozPaddingEnd.MozPaddingStart.MozPerspective.MozPerspectiveOrigin.MozPowerManager.MozSettingsEvent.MozSmsEvent.MozSmsMessage.MozStackSizing.MozTabSize.MozTextAlignLast.MozTextDecorationColor.MozTextDecorationLine.MozTextDecorationStyle.MozTextSizeAdjust.MozTransform.MozTransformOrigin.MozTransformStyle.MozTransition.MozTransitionDelay.MozTransitionDuration.MozTransitionProperty.MozTransitionTimingFunction.MozUserFocus.MozUserInput.MozUserModify.MozUserSelect.MozWindowDragging.MozWindowShadow.MutationEvent.MutationObserver.MutationRecord.MutedInfo.MutedInfoReason.NAMESPACE_ERR.NAMESPACE_RULE.NEAREST.NEAREST_MIPMAP_LINEAR.NEAREST_MIPMAP_NEAREST.NEGATIVE_INFINITY.NETWORK_EMPTY.NETWORK_ERR.NETWORK_IDLE.NETWORK_LOADED.NETWORK_LOADING.NETWORK_NO_SOURCE.NEVER.NEW.NEXT.NEXT_NO_DUPLICATE.NICEST.NODE_AFTER.NODE_BEFORE.NODE_BEFORE_AND_AFTER.NODE_INSIDE.NONE.NON_TRANSIENT_ERR.NOTATION_NODE.NOTCH.NOTEQUAL.NOT_ALLOWED_ERR.NOT_FOUND_ERR.NOT_READABLE_ERR.NOT_SUPPORTED_ERR.NO_DATA_ALLOWED_ERR.NO_ERR.NO_ERROR.NO_MODIFICATION_ALLOWED_ERR.NUMBER_TYPE.NUM_COMPRESSED_TEXTURE_FORMATS.NaN.NamedNodeMap.NavigateEvent.Navigation.NavigationActivation.NavigationCurrentEntryChangeEvent.NavigationDestination.NavigationHistoryEntry.NavigationPreloadManager.NavigationTransition.Navigator.NavigatorLogin.NavigatorManagedData.NavigatorUAData.NearbyLinks.NetworkInformation.Node.NodeFilter.NodeIterator.NodeList.NotRestoredReasonDetails.NotRestoredReasons.Notation.Notification.NotifyPaintEvent.Number.NumberFormat.OBJECT_TYPE.OBSOLETE.OK.ONE.ONE_MINUS_CONSTANT_ALPHA.ONE_MINUS_CONSTANT_COLOR.ONE_MINUS_DST_ALPHA.ONE_MINUS_DST_COLOR.ONE_MINUS_SRC_ALPHA.ONE_MINUS_SRC_COLOR.OPEN.OPENED.OPENING.ORDERED_NODE_ITERATOR_TYPE.ORDERED_NODE_SNAPSHOT_TYPE.OTHER_ERROR.OTPCredential.OUT_OF_MEMORY.Object.OfflineAudioCompletionEvent.OfflineAudioContext.OfflineResourceList.OffscreenCanvas.OffscreenCanvasRenderingContext2D.OnClickData.OnInstalledReason.OnPerformanceWarningCategory.OnPerformanceWarningSeverity.OnRestartRequiredReason.Option.OrientationSensor.OscillatorNode.OverconstrainedError.OverflowEvent.PACK_ALIGNMENT.PACK_ROW_LENGTH.PACK_SKIP_PIXELS.PACK_SKIP_ROWS.PAGE_RULE.PARSE_ERR.PATHSEG_ARC_ABS.PATHSEG_ARC_REL.PATHSEG_CLOSEPATH.PATHSEG_CURVETO_CUBIC_ABS.PATHSEG_CURVETO_CUBIC_REL.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS.PATHSEG_CURVETO_CUBIC_SMOOTH_REL.PATHSEG_CURVETO_QUADRATIC_ABS.PATHSEG_CURVETO_QUADRATIC_REL.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL.PATHSEG_LINETO_ABS.PATHSEG_LINETO_HORIZONTAL_ABS.PATHSEG_LINETO_HORIZONTAL_REL.PATHSEG_LINETO_REL.PATHSEG_LINETO_VERTICAL_ABS.PATHSEG_LINETO_VERTICAL_REL.PATHSEG_MOVETO_ABS.PATHSEG_MOVETO_REL.PATHSEG_UNKNOWN.PATH_EXISTS_ERR.PEAKING.PERMISSION_DENIED.PERSISTENT.PI.PIXEL_PACK_BUFFER.PIXEL_PACK_BUFFER_BINDING.PIXEL_UNPACK_BUFFER.PIXEL_UNPACK_BUFFER_BINDING.PLAYING_STATE.POINTS.POLYGON_OFFSET_FACTOR.POLYGON_OFFSET_FILL.POLYGON_OFFSET_UNITS.POSITION_UNAVAILABLE.POSITIVE_INFINITY.PREV.PREV_NO_DUPLICATE.PROCESSING_INSTRUCTION_NODE.PageChangeEvent.PageRevealEvent.PageSettings.PageSwapEvent.PageTransitionEvent.PaintRequest.PaintRequestList.PannerNode.PasswordCredential.Path2D.PaymentAddress.PaymentInstruments.PaymentManager.PaymentMethodChangeEvent.PaymentRequest.PaymentRequestUpdateEvent.PaymentResponse.Performance.PerformanceElementTiming.PerformanceEntry.PerformanceEventTiming.PerformanceLongAnimationFrameTiming.PerformanceLongTaskTiming.PerformanceMark.PerformanceMeasure.PerformanceNavigation.PerformanceNavigationTiming.PerformanceObserver.PerformanceObserverEntryList.PerformancePaintTiming.PerformanceResourceTiming.PerformanceScriptTiming.PerformanceServerTiming.PerformanceTiming.PeriodicSyncManager.PeriodicWave.PermissionStatus.Permissions.PhotoCapabilities.PictureInPictureEvent.PictureInPictureWindow.PlatformArch.PlatformInfo.PlatformNaclArch.PlatformOs.Plugin.PluginArray.PluralRules.PointerEvent.PopStateEvent.PopupBlockedEvent.Port.Presentation.PresentationAvailability.PresentationConnection.PresentationConnectionAvailableEvent.PresentationConnectionCloseEvent.PresentationConnectionList.PresentationReceiver.PresentationRequest.PressureObserver.PressureRecord.ProcessingInstruction.Profiler.ProgressEvent.Promise.PromiseRejectionEvent.PropertyNodeList.ProtectedAudience.Proxy.PublicKeyCredential.PushManager.PushSubscription.PushSubscriptionOptions.Q.QUERY_RESOLVE.QUERY_RESULT.QUERY_RESULT_AVAILABLE.QUOTA_ERR.QUOTA_EXCEEDED_ERR.QueryInterface.R11F_G11F_B10F.R16F.R16I.R16UI.R32F.R32I.R32UI.R8.R8I.R8UI.R8_SNORM.RASTERIZER_DISCARD.READ.READ_BUFFER.READ_FRAMEBUFFER.READ_FRAMEBUFFER_BINDING.READ_ONLY.READ_ONLY_ERR.READ_WRITE.RED.RED_BITS.RED_INTEGER.REMOVAL.RENDERBUFFER.RENDERBUFFER_ALPHA_SIZE.RENDERBUFFER_BINDING.RENDERBUFFER_BLUE_SIZE.RENDERBUFFER_DEPTH_SIZE.RENDERBUFFER_GREEN_SIZE.RENDERBUFFER_HEIGHT.RENDERBUFFER_INTERNAL_FORMAT.RENDERBUFFER_RED_SIZE.RENDERBUFFER_SAMPLES.RENDERBUFFER_STENCIL_SIZE.RENDERBUFFER_WIDTH.RENDERER.RENDERING_INTENT_ABSOLUTE_COLORIMETRIC.RENDERING_INTENT_AUTO.RENDERING_INTENT_PERCEPTUAL.RENDERING_INTENT_RELATIVE_COLORIMETRIC.RENDERING_INTENT_SATURATION.RENDERING_INTENT_UNKNOWN.RENDER_ATTACHMENT.REPEAT.REPLACE.RG.RG16F.RG16I.RG16UI.RG32F.RG32I.RG32UI.RG8.RG8I.RG8UI.RG8_SNORM.RGB.RGB10_A2.RGB10_A2UI.RGB16F.RGB16I.RGB16UI.RGB32F.RGB32I.RGB32UI.RGB565.RGB5_A1.RGB8.RGB8I.RGB8UI.RGB8_SNORM.RGB9_E5.RGBA.RGBA16F.RGBA16I.RGBA16UI.RGBA32F.RGBA32I.RGBA32UI.RGBA4.RGBA8.RGBA8I.RGBA8UI.RGBA8_SNORM.RGBA_INTEGER.RGBColor.RGB_INTEGER.RG_INTEGER.ROTATION_CLOCKWISE.ROTATION_COUNTERCLOCKWISE.RTCCertificate.RTCDTMFSender.RTCDTMFToneChangeEvent.RTCDataChannel.RTCDataChannelEvent.RTCDtlsTransport.RTCEncodedAudioFrame.RTCEncodedVideoFrame.RTCError.RTCErrorEvent.RTCIceCandidate.RTCIceTransport.RTCPeerConnection.RTCPeerConnectionIceErrorEvent.RTCPeerConnectionIceEvent.RTCRtpReceiver.RTCRtpScriptTransform.RTCRtpSender.RTCRtpTransceiver.RTCSctpTransport.RTCSessionDescription.RTCStatsReport.RTCTrackEvent.RadioNodeList.Range.RangeError.RangeException.ReadableByteStreamController.ReadableStream.ReadableStreamBYOBReader.ReadableStreamBYOBRequest.ReadableStreamDefaultController.ReadableStreamDefaultReader.RecordErrorEvent.Rect.ReferenceError.Reflect.RegExp.RelativeOrientationSensor.RelativeTimeFormat.RemotePlayback.Report.ReportBody.ReportingObserver.Request.RequestUpdateCheckStatus.ResizeObserver.ResizeObserverEntry.ResizeObserverSize.Response.RuntimeError.SAMPLER_2D.SAMPLER_2D_ARRAY.SAMPLER_2D_ARRAY_SHADOW.SAMPLER_2D_SHADOW.SAMPLER_3D.SAMPLER_BINDING.SAMPLER_CUBE.SAMPLER_CUBE_SHADOW.SAMPLES.SAMPLE_ALPHA_TO_COVERAGE.SAMPLE_BUFFERS.SAMPLE_COVERAGE.SAMPLE_COVERAGE_INVERT.SAMPLE_COVERAGE_VALUE.SAWTOOTH.SCHEDULED_STATE.SCISSOR_BOX.SCISSOR_TEST.SCROLL_PAGE_DOWN.SCROLL_PAGE_UP.SDP_ANSWER.SDP_OFFER.SDP_PRANSWER.SECURITY_ERR.SELECT.SEPARATE_ATTRIBS.SERIALIZE_ERR.SEVERITY_ERROR.SEVERITY_FATAL_ERROR.SEVERITY_WARNING.SHADER_COMPILER.SHADER_TYPE.SHADING_LANGUAGE_VERSION.SHIFT_MASK.SHORT.SHOWING.SHOW_ALL.SHOW_ATTRIBUTE.SHOW_CDATA_SECTION.SHOW_COMMENT.SHOW_DOCUMENT.SHOW_DOCUMENT_FRAGMENT.SHOW_DOCUMENT_TYPE.SHOW_ELEMENT.SHOW_ENTITY.SHOW_ENTITY_REFERENCE.SHOW_NOTATION.SHOW_PROCESSING_INSTRUCTION.SHOW_TEXT.SIGNALED.SIGNED_NORMALIZED.SINE.SOUNDFIELD.SQLException.SQRT1_2.SQRT2.SQUARE.SRC_ALPHA.SRC_ALPHA_SATURATE.SRC_COLOR.SRGB.SRGB8.SRGB8_ALPHA8.START_TO_END.START_TO_START.STATIC_COPY.STATIC_DRAW.STATIC_READ.STENCIL.STENCIL_ATTACHMENT.STENCIL_BACK_FAIL.STENCIL_BACK_FUNC.STENCIL_BACK_PASS_DEPTH_FAIL.STENCIL_BACK_PASS_DEPTH_PASS.STENCIL_BACK_REF.STENCIL_BACK_VALUE_MASK.STENCIL_BACK_WRITEMASK.STENCIL_BITS.STENCIL_BUFFER_BIT.STENCIL_CLEAR_VALUE.STENCIL_FAIL.STENCIL_FUNC.STENCIL_INDEX.STENCIL_INDEX8.STENCIL_PASS_DEPTH_FAIL.STENCIL_PASS_DEPTH_PASS.STENCIL_REF.STENCIL_TEST.STENCIL_VALUE_MASK.STENCIL_WRITEMASK.STORAGE.STORAGE_BINDING.STREAM_COPY.STREAM_DRAW.STREAM_READ.STRING_TYPE.STYLE_RULE.SUBPIXEL_BITS.SUPPORTS_RULE.SVGAElement.SVGAltGlyphDefElement.SVGAltGlyphElement.SVGAltGlyphItemElement.SVGAngle.SVGAnimateColorElement.SVGAnimateElement.SVGAnimateMotionElement.SVGAnimateTransformElement.SVGAnimatedAngle.SVGAnimatedBoolean.SVGAnimatedEnumeration.SVGAnimatedInteger.SVGAnimatedLength.SVGAnimatedLengthList.SVGAnimatedNumber.SVGAnimatedNumberList.SVGAnimatedPreserveAspectRatio.SVGAnimatedRect.SVGAnimatedString.SVGAnimatedTransformList.SVGAnimationElement.SVGCircleElement.SVGClipPathElement.SVGColor.SVGComponentTransferFunctionElement.SVGCursorElement.SVGDefsElement.SVGDescElement.SVGDiscardElement.SVGDocument.SVGElement.SVGElementInstance.SVGElementInstanceList.SVGEllipseElement.SVGException.SVGFEBlendElement.SVGFEColorMatrixElement.SVGFEComponentTransferElement.SVGFECompositeElement.SVGFEConvolveMatrixElement.SVGFEDiffuseLightingElement.SVGFEDisplacementMapElement.SVGFEDistantLightElement.SVGFEDropShadowElement.SVGFEFloodElement.SVGFEFuncAElement.SVGFEFuncBElement.SVGFEFuncGElement.SVGFEFuncRElement.SVGFEGaussianBlurElement.SVGFEImageElement.SVGFEMergeElement.SVGFEMergeNodeElement.SVGFEMorphologyElement.SVGFEOffsetElement.SVGFEPointLightElement.SVGFESpecularLightingElement.SVGFESpotLightElement.SVGFETileElement.SVGFETurbulenceElement.SVGFilterElement.SVGFontElement.SVGFontFaceElement.SVGFontFaceFormatElement.SVGFontFaceNameElement.SVGFontFaceSrcElement.SVGFontFaceUriElement.SVGForeignObjectElement.SVGGElement.SVGGeometryElement.SVGGlyphElement.SVGGlyphRefElement.SVGGradientElement.SVGGraphicsElement.SVGHKernElement.SVGImageElement.SVGLength.SVGLengthList.SVGLineElement.SVGLinearGradientElement.SVGMPathElement.SVGMarkerElement.SVGMaskElement.SVGMatrix.SVGMetadataElement.SVGMissingGlyphElement.SVGNumber.SVGNumberList.SVGPaint.SVGPathElement.SVGPathSeg.SVGPathSegArcAbs.SVGPathSegArcRel.SVGPathSegClosePath.SVGPathSegCurvetoCubicAbs.SVGPathSegCurvetoCubicRel.SVGPathSegCurvetoCubicSmoothAbs.SVGPathSegCurvetoCubicSmoothRel.SVGPathSegCurvetoQuadraticAbs.SVGPathSegCurvetoQuadraticRel.SVGPathSegCurvetoQuadraticSmoothAbs.SVGPathSegCurvetoQuadraticSmoothRel.SVGPathSegLinetoAbs.SVGPathSegLinetoHorizontalAbs.SVGPathSegLinetoHorizontalRel.SVGPathSegLinetoRel.SVGPathSegLinetoVerticalAbs.SVGPathSegLinetoVerticalRel.SVGPathSegList.SVGPathSegMovetoAbs.SVGPathSegMovetoRel.SVGPatternElement.SVGPoint.SVGPointList.SVGPolygonElement.SVGPolylineElement.SVGPreserveAspectRatio.SVGRadialGradientElement.SVGRect.SVGRectElement.SVGRenderingIntent.SVGSVGElement.SVGScriptElement.SVGSetElement.SVGStopElement.SVGStringList.SVGStyleElement.SVGSwitchElement.SVGSymbolElement.SVGTRefElement.SVGTSpanElement.SVGTextContentElement.SVGTextElement.SVGTextPathElement.SVGTextPositioningElement.SVGTitleElement.SVGTransform.SVGTransformList.SVGUnitTypes.SVGUseElement.SVGVKernElement.SVGViewElement.SVGViewSpec.SVGZoomAndPan.SVGZoomEvent.SVG_ANGLETYPE_DEG.SVG_ANGLETYPE_GRAD.SVG_ANGLETYPE_RAD.SVG_ANGLETYPE_UNKNOWN.SVG_ANGLETYPE_UNSPECIFIED.SVG_CHANNEL_A.SVG_CHANNEL_B.SVG_CHANNEL_G.SVG_CHANNEL_R.SVG_CHANNEL_UNKNOWN.SVG_COLORTYPE_CURRENTCOLOR.SVG_COLORTYPE_RGBCOLOR.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR.SVG_COLORTYPE_UNKNOWN.SVG_EDGEMODE_DUPLICATE.SVG_EDGEMODE_NONE.SVG_EDGEMODE_UNKNOWN.SVG_EDGEMODE_WRAP.SVG_FEBLEND_MODE_COLOR.SVG_FEBLEND_MODE_COLOR_BURN.SVG_FEBLEND_MODE_COLOR_DODGE.SVG_FEBLEND_MODE_DARKEN.SVG_FEBLEND_MODE_DIFFERENCE.SVG_FEBLEND_MODE_EXCLUSION.SVG_FEBLEND_MODE_HARD_LIGHT.SVG_FEBLEND_MODE_HUE.SVG_FEBLEND_MODE_LIGHTEN.SVG_FEBLEND_MODE_LUMINOSITY.SVG_FEBLEND_MODE_MULTIPLY.SVG_FEBLEND_MODE_NORMAL.SVG_FEBLEND_MODE_OVERLAY.SVG_FEBLEND_MODE_SATURATION.SVG_FEBLEND_MODE_SCREEN.SVG_FEBLEND_MODE_SOFT_LIGHT.SVG_FEBLEND_MODE_UNKNOWN.SVG_FECOLORMATRIX_TYPE_HUEROTATE.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA.SVG_FECOLORMATRIX_TYPE_MATRIX.SVG_FECOLORMATRIX_TYPE_SATURATE.SVG_FECOLORMATRIX_TYPE_UNKNOWN.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR.SVG_FECOMPONENTTRANSFER_TYPE_TABLE.SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC.SVG_FECOMPOSITE_OPERATOR_ATOP.SVG_FECOMPOSITE_OPERATOR_IN.SVG_FECOMPOSITE_OPERATOR_LIGHTER.SVG_FECOMPOSITE_OPERATOR_OUT.SVG_FECOMPOSITE_OPERATOR_OVER.SVG_FECOMPOSITE_OPERATOR_UNKNOWN.SVG_FECOMPOSITE_OPERATOR_XOR.SVG_INVALID_VALUE_ERR.SVG_LENGTHTYPE_CM.SVG_LENGTHTYPE_EMS.SVG_LENGTHTYPE_EXS.SVG_LENGTHTYPE_IN.SVG_LENGTHTYPE_MM.SVG_LENGTHTYPE_NUMBER.SVG_LENGTHTYPE_PC.SVG_LENGTHTYPE_PERCENTAGE.SVG_LENGTHTYPE_PT.SVG_LENGTHTYPE_PX.SVG_LENGTHTYPE_UNKNOWN.SVG_MARKERUNITS_STROKEWIDTH.SVG_MARKERUNITS_UNKNOWN.SVG_MARKERUNITS_USERSPACEONUSE.SVG_MARKER_ORIENT_ANGLE.SVG_MARKER_ORIENT_AUTO.SVG_MARKER_ORIENT_AUTO_START_REVERSE.SVG_MARKER_ORIENT_UNKNOWN.SVG_MASKTYPE_ALPHA.SVG_MASKTYPE_LUMINANCE.SVG_MATRIX_NOT_INVERTABLE.SVG_MEETORSLICE_MEET.SVG_MEETORSLICE_SLICE.SVG_MEETORSLICE_UNKNOWN.SVG_MORPHOLOGY_OPERATOR_DILATE.SVG_MORPHOLOGY_OPERATOR_ERODE.SVG_MORPHOLOGY_OPERATOR_UNKNOWN.SVG_PAINTTYPE_CURRENTCOLOR.SVG_PAINTTYPE_NONE.SVG_PAINTTYPE_RGBCOLOR.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR.SVG_PAINTTYPE_UNKNOWN.SVG_PAINTTYPE_URI.SVG_PAINTTYPE_URI_CURRENTCOLOR.SVG_PAINTTYPE_URI_NONE.SVG_PAINTTYPE_URI_RGBCOLOR.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR.SVG_PRESERVEASPECTRATIO_NONE.SVG_PRESERVEASPECTRATIO_UNKNOWN.SVG_PRESERVEASPECTRATIO_XMAXYMAX.SVG_PRESERVEASPECTRATIO_XMAXYMID.SVG_PRESERVEASPECTRATIO_XMAXYMIN.SVG_PRESERVEASPECTRATIO_XMIDYMAX.SVG_PRESERVEASPECTRATIO_XMIDYMID.SVG_PRESERVEASPECTRATIO_XMIDYMIN.SVG_PRESERVEASPECTRATIO_XMINYMAX.SVG_PRESERVEASPECTRATIO_XMINYMID.SVG_PRESERVEASPECTRATIO_XMINYMIN.SVG_SPREADMETHOD_PAD.SVG_SPREADMETHOD_REFLECT.SVG_SPREADMETHOD_REPEAT.SVG_SPREADMETHOD_UNKNOWN.SVG_STITCHTYPE_NOSTITCH.SVG_STITCHTYPE_STITCH.SVG_STITCHTYPE_UNKNOWN.SVG_TRANSFORM_MATRIX.SVG_TRANSFORM_ROTATE.SVG_TRANSFORM_SCALE.SVG_TRANSFORM_SKEWX.SVG_TRANSFORM_SKEWY.SVG_TRANSFORM_TRANSLATE.SVG_TRANSFORM_UNKNOWN.SVG_TURBULENCE_TYPE_FRACTALNOISE.SVG_TURBULENCE_TYPE_TURBULENCE.SVG_TURBULENCE_TYPE_UNKNOWN.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX.SVG_UNIT_TYPE_UNKNOWN.SVG_UNIT_TYPE_USERSPACEONUSE.SVG_WRONG_TYPE_ERR.SVG_ZOOMANDPAN_DISABLE.SVG_ZOOMANDPAN_MAGNIFY.SVG_ZOOMANDPAN_UNKNOWN.SYNC_CONDITION.SYNC_FENCE.SYNC_FLAGS.SYNC_FLUSH_COMMANDS_BIT.SYNC_GPU_COMMANDS_COMPLETE.SYNC_STATUS.SYNTAX_ERR.SavedPages.Scheduler.Scheduling.Screen.ScreenDetailed.ScreenDetails.ScreenOrientation.Script.ScriptProcessorNode.ScrollAreaEvent.ScrollTimeline.SecurityPolicyViolationEvent.Segmenter.Selection.Sensor.SensorErrorEvent.Serial.SerialPort.ServiceWorker.ServiceWorkerContainer.ServiceWorkerRegistration.SessionDescription.Set.ShadowRoot.SharedArrayBuffer.SharedStorage.SharedStorageWorklet.SharedWorker.SharingState.SimpleGestureEvent.SnapEvent.SourceBuffer.SourceBufferList.SpeechSynthesis.SpeechSynthesisErrorEvent.SpeechSynthesisEvent.SpeechSynthesisUtterance.SpeechSynthesisVoice.StaticRange.StereoPannerNode.StopIteration.Storage.StorageBucket.StorageBucketManager.StorageEvent.StorageManager.String.StructType.StylePropertyMap.StylePropertyMapReadOnly.StyleSheet.StyleSheetList.SubmitEvent.SubtleCrypto.Symbol.SyncManager.SyntaxError.TAB_ID_NONE.TAB_INDEX_NONE.TEMPORARY.TEXTPATH_METHODTYPE_ALIGN.TEXTPATH_METHODTYPE_STRETCH.TEXTPATH_METHODTYPE_UNKNOWN.TEXTPATH_SPACINGTYPE_AUTO.TEXTPATH_SPACINGTYPE_EXACT.TEXTPATH_SPACINGTYPE_UNKNOWN.TEXTURE.TEXTURE0.TEXTURE1.TEXTURE10.TEXTURE11.TEXTURE12.TEXTURE13.TEXTURE14.TEXTURE15.TEXTURE16.TEXTURE17.TEXTURE18.TEXTURE19.TEXTURE2.TEXTURE20.TEXTURE21.TEXTURE22.TEXTURE23.TEXTURE24.TEXTURE25.TEXTURE26.TEXTURE27.TEXTURE28.TEXTURE29.TEXTURE3.TEXTURE30.TEXTURE31.TEXTURE4.TEXTURE5.TEXTURE6.TEXTURE7.TEXTURE8.TEXTURE9.TEXTURE_2D.TEXTURE_2D_ARRAY.TEXTURE_3D.TEXTURE_BASE_LEVEL.TEXTURE_BINDING.TEXTURE_BINDING_2D.TEXTURE_BINDING_2D_ARRAY.TEXTURE_BINDING_3D.TEXTURE_BINDING_CUBE_MAP.TEXTURE_COMPARE_FUNC.TEXTURE_COMPARE_MODE.TEXTURE_CUBE_MAP.TEXTURE_CUBE_MAP_NEGATIVE_X.TEXTURE_CUBE_MAP_NEGATIVE_Y.TEXTURE_CUBE_MAP_NEGATIVE_Z.TEXTURE_CUBE_MAP_POSITIVE_X.TEXTURE_CUBE_MAP_POSITIVE_Y.TEXTURE_CUBE_MAP_POSITIVE_Z.TEXTURE_IMMUTABLE_FORMAT.TEXTURE_IMMUTABLE_LEVELS.TEXTURE_MAG_FILTER.TEXTURE_MAX_ANISOTROPY_EXT.TEXTURE_MAX_LEVEL.TEXTURE_MAX_LOD.TEXTURE_MIN_FILTER.TEXTURE_MIN_LOD.TEXTURE_WRAP_R.TEXTURE_WRAP_S.TEXTURE_WRAP_T.TEXT_NODE.TIMEOUT.TIMEOUT_ERR.TIMEOUT_EXPIRED.TIMEOUT_IGNORED.TOO_LARGE_ERR.TRANSACTION_INACTIVE_ERR.TRANSFORM_FEEDBACK.TRANSFORM_FEEDBACK_ACTIVE.TRANSFORM_FEEDBACK_BINDING.TRANSFORM_FEEDBACK_BUFFER.TRANSFORM_FEEDBACK_BUFFER_BINDING.TRANSFORM_FEEDBACK_BUFFER_MODE.TRANSFORM_FEEDBACK_BUFFER_SIZE.TRANSFORM_FEEDBACK_BUFFER_START.TRANSFORM_FEEDBACK_PAUSED.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN.TRANSFORM_FEEDBACK_VARYINGS.TRIANGLE.TRIANGLES.TRIANGLE_FAN.TRIANGLE_STRIP.TYPE_BACK_FORWARD.TYPE_ERR.TYPE_MISMATCH_ERR.TYPE_NAVIGATE.TYPE_RELOAD.TYPE_RESERVED.Tab.TabStatus.Table.Tag.TaskAttributionTiming.TaskController.TaskPriorityChangeEvent.TaskSignal.Text.TextDecoder.TextDecoderStream.TextEncoder.TextEncoderStream.TextEvent.TextFormat.TextFormatUpdateEvent.TextMetrics.TextTrack.TextTrackCue.TextTrackCueList.TextTrackList.TextUpdateEvent.TimeEvent.TimeRanges.ToggleEvent.Touch.TouchEvent.TouchList.TrackEvent.TransformStream.TransformStreamDefaultController.TransitionEvent.TreeWalker.TrustedHTML.TrustedScript.TrustedScriptURL.TrustedTypePolicy.TrustedTypePolicyFactory.TypeError.TypedObject.U2F.UIEvent.UNCACHED.UNIFORM.UNIFORM_ARRAY_STRIDE.UNIFORM_BLOCK_ACTIVE_UNIFORMS.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES.UNIFORM_BLOCK_BINDING.UNIFORM_BLOCK_DATA_SIZE.UNIFORM_BLOCK_INDEX.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER.UNIFORM_BUFFER.UNIFORM_BUFFER_BINDING.UNIFORM_BUFFER_OFFSET_ALIGNMENT.UNIFORM_BUFFER_SIZE.UNIFORM_BUFFER_START.UNIFORM_IS_ROW_MAJOR.UNIFORM_MATRIX_STRIDE.UNIFORM_OFFSET.UNIFORM_SIZE.UNIFORM_TYPE.UNKNOWN_ERR.UNKNOWN_RULE.UNMASKED_RENDERER_WEBGL.UNMASKED_VENDOR_WEBGL.UNORDERED_NODE_ITERATOR_TYPE.UNORDERED_NODE_SNAPSHOT_TYPE.UNPACK_ALIGNMENT.UNPACK_COLORSPACE_CONVERSION_WEBGL.UNPACK_FLIP_Y_WEBGL.UNPACK_IMAGE_HEIGHT.UNPACK_PREMULTIPLY_ALPHA_WEBGL.UNPACK_ROW_LENGTH.UNPACK_SKIP_IMAGES.UNPACK_SKIP_PIXELS.UNPACK_SKIP_ROWS.UNSCHEDULED_STATE.UNSENT.UNSIGNALED.UNSIGNED_BYTE.UNSIGNED_INT.UNSIGNED_INT_10F_11F_11F_REV.UNSIGNED_INT_24_8.UNSIGNED_INT_2_10_10_10_REV.UNSIGNED_INT_5_9_9_9_REV.UNSIGNED_INT_SAMPLER_2D.UNSIGNED_INT_SAMPLER_2D_ARRAY.UNSIGNED_INT_SAMPLER_3D.UNSIGNED_INT_SAMPLER_CUBE.UNSIGNED_INT_VEC2.UNSIGNED_INT_VEC3.UNSIGNED_INT_VEC4.UNSIGNED_NORMALIZED.UNSIGNED_SHORT.UNSIGNED_SHORT_4_4_4_4.UNSIGNED_SHORT_5_5_5_1.UNSIGNED_SHORT_5_6_5.UNSPECIFIED_EVENT_TYPE_ERR.UPDATEREADY.URIError.URL.URLPattern.URLSearchParams.URLUnencoded.URL_MISMATCH_ERR.USB.USBAlternateInterface.USBConfiguration.USBConnectionEvent.USBDevice.USBEndpoint.USBInTransferResult.USBInterface.USBIsochronousInTransferPacket.USBIsochronousInTransferResult.USBIsochronousOutTransferPacket.USBIsochronousOutTransferResult.USBOutTransferResult.UTC.Uint16Array.Uint32Array.Uint8Array.Uint8ClampedArray.UpdateFilter.UpdatePropertyName.UserActivation.UserMessageHandler.UserMessageHandlersNamespace.UserProximityEvent.VALIDATE_STATUS.VALIDATION_ERR.VARIABLES_RULE.VENDOR.VERSION.VERSION_CHANGE.VERSION_ERR.VERTEX.VERTEX_ARRAY_BINDING.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING.VERTEX_ATTRIB_ARRAY_DIVISOR.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE.VERTEX_ATTRIB_ARRAY_ENABLED.VERTEX_ATTRIB_ARRAY_INTEGER.VERTEX_ATTRIB_ARRAY_NORMALIZED.VERTEX_ATTRIB_ARRAY_POINTER.VERTEX_ATTRIB_ARRAY_SIZE.VERTEX_ATTRIB_ARRAY_STRIDE.VERTEX_ATTRIB_ARRAY_TYPE.VERTEX_SHADER.VERTICAL.VERTICAL_AXIS.VER_ERR.VIEWPORT.VIEWPORT_RULE.VRDisplay.VRDisplayCapabilities.VRDisplayEvent.VREyeParameters.VRFieldOfView.VRFrameData.VRPose.VRStageParameters.VTTCue.VTTRegion.ValidityState.VideoColorSpace.VideoDecoder.VideoEncoder.VideoFrame.VideoPlaybackQuality.VideoStreamTrack.ViewTimeline.ViewTransition.ViewTransitionTypeSet.ViewType.VirtualKeyboard.VirtualKeyboardGeometryChangeEvent.VisibilityStateEntry.VisualViewport.WAIT_FAILED.WEBKIT_FILTER_RULE.WEBKIT_KEYFRAMES_RULE.WEBKIT_KEYFRAME_RULE.WEBKIT_REGION_RULE.WGSLLanguageFeatures.WINDOW_ID_CURRENT.WINDOW_ID_NONE.WRITE.WRONG_DOCUMENT_ERR.WakeLock.WakeLockSentinel.WasmAnyRef.WaveShaperNode.WeakMap.WeakRef.WeakSet.WebAssembly.WebGL2RenderingContext.WebGLActiveInfo.WebGLBuffer.WebGLContextEvent.WebGLFramebuffer.WebGLObject.WebGLProgram.WebGLQuery.WebGLRenderbuffer.WebGLRenderingContext.WebGLSampler.WebGLShader.WebGLShaderPrecisionFormat.WebGLSync.WebGLTexture.WebGLTransformFeedback.WebGLUniformLocation.WebGLVertexArray.WebGLVertexArrayObject.WebKitAnimationEvent.WebKitBlobBuilder.WebKitCSSFilterRule.WebKitCSSFilterValue.WebKitCSSKeyframeRule.WebKitCSSKeyframesRule.WebKitCSSMatrix.WebKitCSSRegionRule.WebKitCSSTransformValue.WebKitDataCue.WebKitGamepad.WebKitMediaKeyError.WebKitMediaKeyMessageEvent.WebKitMediaKeySession.WebKitMediaKeys.WebKitMediaSource.WebKitMutationObserver.WebKitNamespace.WebKitPlaybackTargetAvailabilityEvent.WebKitPoint.WebKitShadowRoot.WebKitSourceBuffer.WebKitSourceBufferList.WebKitTransitionEvent.WebSocket.WebSocketError.WebSocketStream.WebTransport.WebTransportBidirectionalStream.WebTransportDatagramDuplexStream.WebTransportError.WebTransportReceiveStream.WebTransportSendStream.WebkitAlignContent.WebkitAlignItems.WebkitAlignSelf.WebkitAnimation.WebkitAnimationDelay.WebkitAnimationDirection.WebkitAnimationDuration.WebkitAnimationFillMode.WebkitAnimationIterationCount.WebkitAnimationName.WebkitAnimationPlayState.WebkitAnimationTimingFunction.WebkitAppearance.WebkitBackfaceVisibility.WebkitBackgroundClip.WebkitBackgroundOrigin.WebkitBackgroundSize.WebkitBorderBottomLeftRadius.WebkitBorderBottomRightRadius.WebkitBorderImage.WebkitBorderRadius.WebkitBorderTopLeftRadius.WebkitBorderTopRightRadius.WebkitBoxAlign.WebkitBoxDirection.WebkitBoxFlex.WebkitBoxOrdinalGroup.WebkitBoxOrient.WebkitBoxPack.WebkitBoxShadow.WebkitBoxSizing.WebkitClipPath.WebkitFilter.WebkitFlex.WebkitFlexBasis.WebkitFlexDirection.WebkitFlexFlow.WebkitFlexGrow.WebkitFlexShrink.WebkitFlexWrap.WebkitFontFeatureSettings.WebkitJustifyContent.WebkitLineClamp.WebkitMask.WebkitMaskClip.WebkitMaskComposite.WebkitMaskImage.WebkitMaskOrigin.WebkitMaskPosition.WebkitMaskPositionX.WebkitMaskPositionY.WebkitMaskRepeat.WebkitMaskSize.WebkitOrder.WebkitPerspective.WebkitPerspectiveOrigin.WebkitTextFillColor.WebkitTextSecurity.WebkitTextSizeAdjust.WebkitTextStroke.WebkitTextStrokeColor.WebkitTextStrokeWidth.WebkitTransform.WebkitTransformOrigin.WebkitTransformStyle.WebkitTransition.WebkitTransitionDelay.WebkitTransitionDuration.WebkitTransitionProperty.WebkitTransitionTimingFunction.WebkitUserSelect.WheelEvent.Window.WindowControlsOverlay.WindowControlsOverlayGeometryChangeEvent.WindowState.WindowType.Worker.Worklet.WritableStream.WritableStreamDefaultController.WritableStreamDefaultWriter.XMLDocument.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestException.XMLHttpRequestProgressEvent.XMLHttpRequestUpload.XMLSerializer.XMLStylesheetProcessingInstruction.XPathEvaluator.XPathException.XPathExpression.XPathNSResolver.XPathResult.XRAnchor.XRAnchorSet.XRBoundedReferenceSpace.XRCPUDepthInformation.XRCamera.XRDOMOverlayState.XRDepthInformation.XRFrame.XRHand.XRHitTestResult.XRHitTestSource.XRInputSource.XRInputSourceArray.XRInputSourceEvent.XRInputSourcesChangeEvent.XRJointPose.XRJointSpace.XRLayer.XRLightEstimate.XRLightProbe.XRPose.XRRay.XRReferenceSpace.XRReferenceSpaceEvent.XRRenderState.XRRigidTransform.XRSession.XRSessionEvent.XRSpace.XRSystem.XRTransientInputHitTestResult.XRTransientInputHitTestSource.XRView.XRViewerPose.XRViewport.XRWebGLBinding.XRWebGLDepthInformation.XRWebGLLayer.XSLTProcessor.ZERO.ZoomSettings.ZoomSettingsMode.ZoomSettingsScope._XD0M_._YD0M_.__REACT_DEVTOOLS_GLOBAL_HOOK__.__brand.__defineGetter__.__defineSetter__.__lookupGetter__.__lookupSetter__.__opera.__proto__._browserjsran.a.aLink.abbr.abort.aborted.aboutConfigPrefs.abs.absolute.acceleration.accelerationIncludingGravity.accelerator.accent-color.accentColor.accept.acceptCharset.acceptNode.access.accessKey.accessKeyLabel.accuracy.acos.acosh.action.actionURL.actions.activated.activation.activationStart.active.activeCues.activeElement.activeSourceBuffers.activeSourceCount.activeTexture.activeVRDisplays.activityLog.actualBoundingBoxAscent.actualBoundingBoxDescent.actualBoundingBoxLeft.actualBoundingBoxRight.adAuctionComponents.adAuctionHeaders.add.addAll.addBehavior.addCandidate.addColorStop.addCue.addElement.addEventListener.addFilter.addFromString.addFromUri.addIceCandidate.addImport.addListener.addModule.addNamed.addPageRule.addPath.addPointer.addRange.addRegion.addRule.addSearchEngine.addSourceBuffer.addStream.addTextTrack.addTrack.addTransceiver.addWakeLockListener.added.addedNodes.additionalName.additiveSymbols.addons.address.addressLine.addressModeU.addressModeV.addressModeW.adoptNode.adoptedCallback.adoptedStyleSheets.adr.advance.after.alarms.album.alert.algorithm.align.align-content.align-items.align-self.alignContent.alignItems.alignSelf.alignmentBaseline.alinkColor.all.allSettled.allocationSize.allow.allowFullscreen.allowPaymentRequest.allowedDirections.allowedFeatures.allowedToPlay.allowsFeature.alpha.alphaMode.alphaToCoverageEnabled.alphabeticBaseline.alt.altGraphKey.altHtml.altKey.altLeft.alternate.alternateSetting.alternates.altitude.altitudeAccuracy.altitudeAngle.amplitude.ancestorOrigins.anchor.anchorNode.anchorOffset.anchorSpace.anchors.and.angle.angularAcceleration.angularVelocity.animVal.animate.animated.animatedInstanceRoot.animatedNormalizedPathSegList.animatedPathSegList.animatedPoints.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-timing-function.animationComposition.animationDelay.animationDirection.animationDuration.animationFillMode.animationIterationCount.animationName.animationPlayState.animationStartTime.animationTimingFunction.animationsPaused.anniversary.antialias.anticipatedRemoval.any.app.appCodeName.appMinorVersion.appName.appNotifications.appVersion.appearance.append.appendBuffer.appendChild.appendData.appendItem.appendMedium.appendNamed.appendRule.appendStream.appendWindowEnd.appendWindowStart.applets.applicationCache.applicationServerKey.apply.applyConstraints.applyElement.arc.arcTo.arch.architecture.archive.areas.arguments.ariaAtomic.ariaAutoComplete.ariaBrailleLabel.ariaBrailleRoleDescription.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRelevant.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.arrayBuffer.arrayLayerCount.arrayStride.artist.artwork.as.asIntN.asUintN.ascentOverride.asin.asinh.aspect.aspect-ratio.aspectRatio.assert.assign.assignedElements.assignedNodes.assignedSlot.async.asyncDispose.asyncIterator.at.atEnd.atan.atan2.atanh.atob.attachEvent.attachInternals.attachShader.attachShadow.attachedElements.attachments.attack.attestationObject.attrChange.attrName.attributeChangedCallback.attributeFilter.attributeName.attributeNamespace.attributeOldValue.attributeStyleMap.attributes.attribution.attributionSrc.audioBitrateMode.audioBitsPerSecond.audioTracks.audioWorklet.authenticatedSignedWrites.authenticatorAttachment.authenticatorData.autoIncrement.autobuffer.autocapitalize.autocomplete.autocorrect.autofocus.automationRate.autoplay.availHeight.availLeft.availTop.availWidth.availability.available.averageLatency.aversion.ax.axes.axis.ay.azimuth.azimuthAngle.b.back.backdrop-filter.backdropFilter.backends.backface-visibility.backfaceVisibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.backgroundAttachment.backgroundBlendMode.backgroundClip.backgroundColor.backgroundFetch.backgroundImage.backgroundOrigin.backgroundPosition.backgroundPositionX.backgroundPositionY.backgroundRepeat.backgroundSize.badInput.badge.balance.baseArrayLayer.baseFrequencyX.baseFrequencyY.baseLatency.baseLayer.baseMipLevel.baseNode.baseOffset.basePalette.baseURI.baseVal.baseline-source.baselineShift.baselineSource.battery.bday.before.beginComputePass.beginElement.beginElementAt.beginOcclusionQuery.beginPath.beginQuery.beginRenderPass.beginTransformFeedback.beginningOfPassWriteIndex.behavior.behaviorCookie.behaviorPart.behaviorUrns.beta.bezierCurveTo.bgColor.bgProperties.bias.big.bigint64.biguint64.binaryType.bind.bindAttribLocation.bindBuffer.bindBufferBase.bindBufferRange.bindFramebuffer.bindGroupLayouts.bindRenderbuffer.bindSampler.bindTexture.bindTransformFeedback.bindVertexArray.binding.bitness.blend.blendColor.blendEquation.blendEquationSeparate.blendFunc.blendFuncSeparate.blink.blitFramebuffer.blob.block-size.blockDirection.blockSize.blockedURI.blocking.blockingDuration.blue.bluetooth.blur.body.bodyUsed.bold.bookmarks.booleanValue.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.borderBlock.borderBlockColor.borderBlockEnd.borderBlockEndColor.borderBlockEndStyle.borderBlockEndWidth.borderBlockStart.borderBlockStartColor.borderBlockStartStyle.borderBlockStartWidth.borderBlockStyle.borderBlockWidth.borderBottom.borderBottomColor.borderBottomLeftRadius.borderBottomRightRadius.borderBottomStyle.borderBottomWidth.borderBoxSize.borderCollapse.borderColor.borderColorDark.borderColorLight.borderEndEndRadius.borderEndStartRadius.borderImage.borderImageOutset.borderImageRepeat.borderImageSlice.borderImageSource.borderImageWidth.borderInline.borderInlineColor.borderInlineEnd.borderInlineEndColor.borderInlineEndStyle.borderInlineEndWidth.borderInlineStart.borderInlineStartColor.borderInlineStartStyle.borderInlineStartWidth.borderInlineStyle.borderInlineWidth.borderLeft.borderLeftColor.borderLeftStyle.borderLeftWidth.borderRadius.borderRight.borderRightColor.borderRightStyle.borderRightWidth.borderSpacing.borderStartEndRadius.borderStartStartRadius.borderStyle.borderTop.borderTopColor.borderTopLeftRadius.borderTopRightRadius.borderTopStyle.borderTopWidth.borderWidth.bottom.bottomMargin.bound.boundElements.boundingClientRect.boundingHeight.boundingLeft.boundingRect.boundingTop.boundingWidth.bounds.boundsGeometry.box-decoration-break.box-shadow.box-sizing.boxDecorationBreak.boxShadow.boxSizing.brand.brands.break-after.break-before.break-inside.breakAfter.breakBefore.breakInside.broadcast.browser.browserLanguage.browserSettings.browsingData.browsingTopics.btoa.bubbles.buffer.bufferData.bufferDepth.bufferSize.bufferSubData.buffered.bufferedAmount.bufferedAmountLowThreshold.buffers.buildID.buildNumber.button.buttonID.buttons.byobRequest.byteLength.byteOffset.bytes.bytesPerRow.bytesWritten.c.cache.caches.call.caller.camera.canBeFormatted.canBeMounted.canBeShared.canConstructInDedicatedWorker.canGoBack.canGoForward.canHaveChildren.canHaveHTML.canInsertDTMF.canIntercept.canLoadAdAuctionFencedFrame.canLoadOpaqueURL.canMakePayment.canParse.canPlayType.canPresent.canShare.canTransition.canTrickleIceCandidates.cancel.cancelAndHoldAtTime.cancelAnimationFrame.cancelBubble.cancelIdleCallback.cancelScheduledValues.cancelVideoFrameCallback.cancelWatchAvailability.cancelable.candidate.canonicalUUID.canvas.cap.capabilities.caption.caption-side.captionSide.captivePortal.capture.captureEvents.captureStackTrace.captureStream.captureTab.captureVisibleTab.caret-color.caretBidiLevel.caretColor.caretPositionFromPoint.caretRangeFromPoint.cast.catch.category.cbrt.cd.ceil.cellIndex.cellPadding.cellSpacing.cells.ch.chOff.chain.challenge.changeType.changed.changedTouches.channel.channelCount.channelCountMode.channelInterpretation.chapterInfo.char.charAt.charCode.charCodeAt.charIndex.charLength.characterBounds.characterBoundsRangeStart.characterData.characterDataOldValue.characterSet.characteristic.charging.chargingTime.charset.check.checkDCE.checkEnclosure.checkFramebufferStatus.checkIntersection.checkValidity.checkVisibility.checked.childElementCount.childList.childNodes.children.chrome.ciphertext.cite.city.claimInterface.claimed.classList.className.classid.clear.clearAppBadge.clearAttributes.clearBuffer.clearBufferfi.clearBufferfv.clearBufferiv.clearBufferuiv.clearColor.clearData.clearDepth.clearHalt.clearImmediate.clearInterval.clearLiveSeekableRange.clearMarks.clearMaxGCPauseAccumulator.clearMeasures.clearOriginJoinedAdInterestGroups.clearParameters.clearRect.clearResourceTimings.clearShadow.clearStencil.clearTimeout.clearValue.clearWatch.click.clickCount.clientDataJSON.clientHeight.clientInformation.clientLeft.clientRect.clientRects.clientTop.clientWaitSync.clientWidth.clientX.clientY.clip.clip-path.clip-rule.clipBottom.clipLeft.clipPath.clipPathUnits.clipRight.clipRule.clipTop.clipboard.clipboardData.clonable.clone.cloneContents.cloneNode.cloneRange.close.closeCode.closePath.closed.closest.clz.clz32.cm.cmp.code.codeBase.codePointAt.codeType.codedHeight.codedRect.codedWidth.colSpan.collapse.collapseToEnd.collapseToStart.collapsed.collect.collections.colno.color.color-adjust.color-interpolation.color-interpolation-filters.color-scheme.colorAdjust.colorAttachments.colorDepth.colorFormats.colorInterpolation.colorInterpolationFilters.colorMask.colorScheme.colorSpace.colorType.cols.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columnCount.columnFill.columnGap.columnNumber.columnRule.columnRuleColor.columnRuleStyle.columnRuleWidth.columnSpan.columnWidth.columns.command.commands.commit.commitLoadTime.commitPreferences.commitStyles.commonAncestorContainer.compact.compare.compareBoundaryPoints.compareDocumentPosition.compareEndPoints.compareExchange.compareNode.comparePoint.compatMode.compatible.compile.compileShader.compileStreaming.complete.completed.component.componentFromPoint.composed.composedPath.composite.compositionEndOffset.compositionStartOffset.compressedTexImage2D.compressedTexImage3D.compressedTexSubImage2D.compressedTexSubImage3D.compute.computedStyleMap.concat.conditionText.coneInnerAngle.coneOuterAngle.coneOuterGain.config.configurable.configuration.configurationName.configurationValue.configurations.configure.confirm.confirmComposition.confirmSiteSpecificTrackingException.confirmWebWideTrackingException.congestionControl.connect.connectEnd.connectNative.connectShark.connectStart.connected.connectedCallback.connection.connectionInfo.connectionList.connectionSpeed.connectionState.connections.console.consolidate.constants.constraint.constrictionActive.construct.constructor.contactID.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.containIntrinsicBlockSize.containIntrinsicHeight.containIntrinsicInlineSize.containIntrinsicSize.containIntrinsicWidth.container.container-name.container-type.containerId.containerName.containerQuery.containerSrc.containerType.contains.containsNode.content.content-visibility.contentBoxSize.contentDocument.contentEditable.contentHint.contentOverflow.contentRect.contentScriptType.contentStyleType.contentType.contentVisibility.contentWindow.context.contextId.contextIds.contextMenu.contextMenus.contextType.contextTypes.contextmenu.contextualIdentities.continue.continuePrimaryKey.continuous.control.controlTransferIn.controlTransferOut.controller.controls.controlsList.convertPointFromNode.convertQuadFromNode.convertRectFromNode.convertToBlob.convertToSpecifiedUnits.cookie.cookieEnabled.cookieStore.cookies.coords.copyBufferSubData.copyBufferToBuffer.copyBufferToTexture.copyExternalImageToTexture.copyFromChannel.copyTexImage2D.copyTexSubImage2D.copyTexSubImage3D.copyTextureToBuffer.copyTextureToTexture.copyTo.copyToChannel.copyWithin.correspondingElement.correspondingUseElement.corruptedVideoFrames.cos.cosh.count.countReset.counter-increment.counter-reset.counter-set.counterIncrement.counterReset.counterSet.country.cpuClass.cpuSleepAllowed.cqb.cqh.cqi.cqmax.cqmin.cqw.create.createAnalyser.createAnchor.createAnswer.createAttribute.createAttributeNS.createAuctionNonce.createBidirectionalStream.createBindGroup.createBindGroupLayout.createBiquadFilter.createBuffer.createBufferSource.createCDATASection.createCSSStyleSheet.createCaption.createChannelMerger.createChannelSplitter.createCommandEncoder.createComment.createComputePipeline.createComputePipelineAsync.createConicGradient.createConstantSource.createContextualFragment.createControlRange.createConvolver.createDTMFSender.createDataChannel.createDelay.createDelayNode.createDocument.createDocumentFragment.createDocumentType.createDynamicsCompressor.createElement.createElementNS.createEncodedStreams.createEntityReference.createEvent.createEventObject.createExpression.createFramebuffer.createFunction.createGain.createGainNode.createHTML.createHTMLDocument.createIIRFilter.createImageBitmap.createImageData.createIndex.createJavaScriptNode.createLinearGradient.createMediaElementSource.createMediaKeys.createMediaStreamDestination.createMediaStreamSource.createMediaStreamTrackSource.createMutableFile.createNSResolver.createNodeIterator.createNotification.createObjectStore.createObjectURL.createOffer.createOscillator.createPanner.createPattern.createPeriodicWave.createPipelineLayout.createPolicy.createPopup.createProcessingInstruction.createProgram.createQuery.createQuerySet.createRadialGradient.createRange.createRangeCollection.createReader.createRenderBundleEncoder.createRenderPipeline.createRenderPipelineAsync.createRenderbuffer.createSVGAngle.createSVGLength.createSVGMatrix.createSVGNumber.createSVGPathSegArcAbs.createSVGPathSegArcRel.createSVGPathSegClosePath.createSVGPathSegCurvetoCubicAbs.createSVGPathSegCurvetoCubicRel.createSVGPathSegCurvetoCubicSmoothAbs.createSVGPathSegCurvetoCubicSmoothRel.createSVGPathSegCurvetoQuadraticAbs.createSVGPathSegCurvetoQuadraticRel.createSVGPathSegCurvetoQuadraticSmoothAbs.createSVGPathSegCurvetoQuadraticSmoothRel.createSVGPathSegLinetoAbs.createSVGPathSegLinetoHorizontalAbs.createSVGPathSegLinetoHorizontalRel.createSVGPathSegLinetoRel.createSVGPathSegLinetoVerticalAbs.createSVGPathSegLinetoVerticalRel.createSVGPathSegMovetoAbs.createSVGPathSegMovetoRel.createSVGPoint.createSVGRect.createSVGTransform.createSVGTransformFromMatrix.createSampler.createScript.createScriptProcessor.createScriptURL.createSession.createShader.createShaderModule.createShadowRoot.createStereoPanner.createStyleSheet.createTBody.createTFoot.createTHead.createTask.createTextNode.createTextRange.createTexture.createTouch.createTouchList.createTransformFeedback.createTreeWalker.createUnidirectionalStream.createVertexArray.createView.createWaveShaper.createWorklet.createWritable.creationTime.credentialless.credentials.criticalCHRestart.cropTo.crossOrigin.crossOriginIsolated.crypto.csi.csp.cssFloat.cssRules.cssText.cssValueType.ctrlKey.ctrlLeft.cues.cullFace.cullMode.currentCSSZoom.currentDirection.currentEntry.currentLocalDescription.currentNode.currentPage.currentRect.currentRemoteDescription.currentScale.currentScreen.currentScript.currentSrc.currentState.currentStyle.currentTarget.currentTime.currentTranslate.currentView.cursor.curve.customElements.customError.cx.cy.d.data.dataFld.dataFormatAs.dataLoss.dataLossMessage.dataPageSize.dataSrc.dataTransfer.database.databases.datagrams.dataset.dateTime.db.debug.debuggerEnabled.declarativeNetRequest.declare.decode.decodeAudioData.decodeQueueSize.decodeURI.decodeURIComponent.decodedBodySize.decoding.decodingInfo.decrypt.default.defaultCharset.defaultChecked.defaultMuted.defaultPlaybackRate.defaultPolicy.defaultPrevented.defaultQueue.defaultRequest.defaultSelected.defaultStatus.defaultURL.defaultValue.defaultView.defaultstatus.defer.define.defineMagicFunction.defineMagicVariable.defineProperties.defineProperty.deg.delay.delayTime.delegatesFocus.delete.deleteBuffer.deleteCaption.deleteCell.deleteContents.deleteData.deleteDatabase.deleteFramebuffer.deleteFromDocument.deleteIndex.deleteMedium.deleteObjectStore.deleteProgram.deleteProperty.deleteQuery.deleteRenderbuffer.deleteRow.deleteRule.deleteSampler.deleteShader.deleteSync.deleteTFoot.deleteTHead.deleteTexture.deleteTransformFeedback.deleteVertexArray.deleted.deliverChangeRecords.deliveredFrames.deliveredFramesDuration.delivery.deliveryInfo.deliveryStatus.deliveryTimestamp.deliveryType.delta.deltaMode.deltaX.deltaY.deltaZ.dependentLocality.deprecatedReplaceInURN.deprecatedRunAdAuctionEnforcesKAnonymity.deprecatedURNToURL.depthBias.depthBiasClamp.depthBiasSlopeScale.depthClearValue.depthCompare.depthDataFormat.depthFailOp.depthFar.depthFunc.depthLoadOp.depthMask.depthNear.depthOrArrayLayers.depthRange.depthReadOnly.depthStencil.depthStencilAttachment.depthStencilFormat.depthStoreOp.depthUsage.depthWriteEnabled.deref.deriveBits.deriveKey.descentOverride.description.deselectAll.designMode.desiredSize.destination.destinationURL.destroy.detach.detachEvent.detachShader.detached.detail.details.detect.detectLanguage.detune.device.deviceClass.deviceId.deviceMemory.devicePixelContentBoxSize.devicePixelRatio.deviceProtocol.deviceSubclass.deviceVersionMajor.deviceVersionMinor.deviceVersionSubminor.deviceXDPI.deviceYDPI.devtools.devtools_panels.didTimeout.difference.diffuseConstant.digest.dimension.dimensions.dir.dirName.direction.dirxml.disable.disablePictureInPicture.disableRemotePlayback.disableVertexAttribArray.disabled.discard.discardedFrames.dischargingTime.disconnect.disconnectShark.disconnectedCallback.dispatchEvent.dispatchWorkgroups.dispatchWorkgroupsIndirect.display.displayHeight.displayId.displayName.displayWidth.dispose.disposition.distanceModel.div.divisor.djsapi.djsproxy.dns.doImport.doNotTrack.doScroll.doctype.document.documentElement.documentId.documentIds.documentLifecycle.documentMode.documentOrigin.documentOrigins.documentPictureInPicture.documentURI.documentUrl.documentUrls.dolphin.dolphinGameCenter.dolphininfo.dolphinmeta.dom.domComplete.domContentLoadedEventEnd.domContentLoadedEventStart.domInteractive.domLoading.domOverlayState.domain.domainLookupEnd.domainLookupStart.dominant-baseline.dominantBaseline.done.dopplerFactor.dotAll.downDegrees.downlink.download.downloadRequest.downloadTotal.downloaded.downloads.dpcm.dpi.dppx.dragDrop.draggable.draw.drawArrays.drawArraysInstanced.drawArraysInstancedANGLE.drawBuffers.drawCustomFocusRing.drawElements.drawElementsInstanced.drawElementsInstancedANGLE.drawFocusIfNeeded.drawImage.drawImageFromRect.drawIndexed.drawIndexedIndirect.drawIndirect.drawRangeElements.drawSystemFocusRing.drawingBufferColorSpace.drawingBufferFormat.drawingBufferHeight.drawingBufferStorage.drawingBufferWidth.drop.dropEffect.droppedVideoFrames.dropzone.dstFactor.dtmf.dump.dumpProfile.duplex.duplicate.durability.duration.dvb.dvh.dvi.dvmax.dvmin.dvname.dvnum.dvw.dx.dy.dynamicId.dynsrc.e.edgeMode.editContext.effect.effectAllowed.effectiveDirective.effectiveType.effects.elapsedTime.element.elementFromPoint.elementTiming.elements.elementsFromPoint.elevation.ellipse.em.emHeightAscent.emHeightDescent.email.embeds.emit.emma.empty.empty-cells.emptyCells.emptyHTML.emptyScript.emulatedPosition.enable.enableBackground.enableDelegations.enableStyleSheetsForSet.enableVertexAttribArray.enabled.enabledFeatures.enabledPlugin.encode.encodeInto.encodeQueueSize.encodeURI.encodeURIComponent.encodedBodySize.encoding.encodingInfo.encrypt.enctype.end.endContainer.endElement.endElementAt.endOcclusionQuery.endOfPassWriteIndex.endOfStream.endOffset.endQuery.endTime.endTransformFeedback.ended.endpoint.endpointNumber.endpoints.endsWith.enqueue.enterKeyHint.entities.entries.entry.entryPoint.entryType.enumerable.enumerate.enumerateDevices.enumerateEditable.environmentBlendMode.equals.error.errorCode.errorDetail.errorText.escape.estimate.eval.evaluate.event.eventCounts.eventPhase.events.every.ex.exception.exchange.exec.execCommand.execCommandShowHelp.execScript.executeBundles.executionStart.exitFullscreen.exitPictureInPicture.exitPointerLock.exitPresent.exp.expand.expandEntityReferences.expando.expansion.expectedImprovement.experiments.expiration.expirationTime.expires.expiryDate.explicitOriginalTarget.expm1.exponent.exponentialRampToValueAtTime.exportKey.exports.extend.extension.extensionTypes.extensions.extentNode.extentOffset.external.externalResourcesRequired.externalTexture.extractContents.extractable.eye.f.f16round.face.factoryReset.failOp.failureReason.fallback.family.familyName.farthestViewportElement.fastSeek.fatal.featureId.featurePolicy.featureSettings.features.fence.fenceSync.fetch.fetchPriority.fetchStart.fftSize.fgColor.fieldOfView.file.fileCreatedDate.fileHandle.fileModifiedDate.fileName.fileSize.fileUpdatedDate.filename.files.filesystem.fill.fill-opacity.fill-rule.fillJointRadii.fillLightMode.fillOpacity.fillPoses.fillRect.fillRule.fillStyle.fillText.filter.filterResX.filterResY.filterUnits.filters.finally.find.findIndex.findLast.findLastIndex.findRule.findText.finish.finishDocumentLoadTime.finishLoadTime.finished.fireEvent.firesTouchEvents.firstChild.firstElementChild.firstInterimResponseStart.firstPage.firstPaintAfterLoadTime.firstPaintTime.firstUIEventTimestamp.fixed.flags.flat.flatMap.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.flexBasis.flexDirection.flexFlow.flexGrow.flexShrink.flexWrap.flipX.flipY.float.float32.float64.flood-color.flood-opacity.floodColor.floodOpacity.floor.flush.focus.focusNode.focusOffset.font.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.fontBoundingBoxAscent.fontBoundingBoxDescent.fontFamily.fontFeatureSettings.fontKerning.fontLanguageOverride.fontOpticalSizing.fontPalette.fontSize.fontSizeAdjust.fontSmoothingEnabled.fontStretch.fontStyle.fontSynthesis.fontSynthesisPosition.fontSynthesisSmallCaps.fontSynthesisStyle.fontSynthesisWeight.fontVariant.fontVariantAlternates.fontVariantCaps.fontVariantEastAsian.fontVariantLigatures.fontVariantNumeric.fontVariantPosition.fontVariationSettings.fontWeight.fontcolor.fontfaces.fonts.fontsize.for.forEach.force.forceFallbackAdapter.forceRedraw.forced-color-adjust.forcedColorAdjust.forcedStyleAndLayoutDuration.forget.form.formAction.formData.formEnctype.formMethod.formNoValidate.formTarget.format.formatToParts.forms.forward.forwardX.forwardY.forwardZ.foundation.fr.fragment.fragmentDirective.frame.frameBorder.frameCount.frameElement.frameId.frameIds.frameSpacing.framebuffer.framebufferHeight.framebufferRenderbuffer.framebufferTexture2D.framebufferTextureLayer.framebufferWidth.frames.freeSpace.freeze.frequency.frequencyBinCount.from.fromAsync.fromBase64.fromCharCode.fromCodePoint.fromElement.fromEntries.fromFloat32Array.fromFloat64Array.fromHex.fromMatrix.fromPoint.fromQuad.fromRect.frontFace.fround.fullName.fullPath.fullRange.fullScreen.fullVersionList.fullscreen.fullscreenElement.fullscreenEnabled.fx.fy.g.gain.gamepad.gamma.gap.gatheringState.gatt.geckoProfiler.genderIdentity.generateCertificate.generateKey.generateMipmap.generateRequest.geolocation.gestureObject.get.getAcceptLanguages.getActiveAttrib.getActiveUniform.getActiveUniformBlockName.getActiveUniformBlockParameter.getActiveUniforms.getAdjacentText.getAll.getAllKeys.getAllResponseHeaders.getAllowlistForFeature.getAnimations.getAsFile.getAsFileSystemHandle.getAsString.getAttachedShaders.getAttribLocation.getAttribute.getAttributeNS.getAttributeNames.getAttributeNode.getAttributeNodeNS.getAttributeType.getAudioTracks.getAuthenticatorData.getAutoplayPolicy.getAvailability.getBBox.getBackgroundPage.getBadgeBackgroundColor.getBadgeText.getBadgeTextColor.getBattery.getBigInt64.getBigUint64.getBindGroupLayout.getBlob.getBookmark.getBoundingClientRect.getBounds.getBoxQuads.getBrowserInfo.getBufferParameter.getBufferSubData.getByteFrequencyData.getByteTimeDomainData.getCSSCanvasContext.getCTM.getCameraImage.getCandidateWindowClientRect.getCanonicalLocales.getCapabilities.getCaptureHandle.getChannelData.getCharNumAtPosition.getCharacteristic.getCharacteristics.getClientExtensionResults.getClientRect.getClientRects.getCoalescedEvents.getCompilationInfo.getCompositionAlternatives.getComputedStyle.getComputedTextLength.getComputedTiming.getConfiguration.getConstraints.getContext.getContextAttributes.getContexts.getContributingSources.getCounterValue.getCueAsHTML.getCueById.getCurrent.getCurrentPosition.getCurrentTexture.getCurrentTime.getData.getDatabaseNames.getDate.getDay.getDefaultComputedStyle.getDepthInMeters.getDepthInformation.getDescriptor.getDescriptors.getDestinationInsertionPoints.getDevices.getDirectory.getDirectoryHandle.getDisplayMedia.getDistributedNodes.getEditable.getElementById.getElementsByClassName.getElementsByName.getElementsByTagName.getElementsByTagNameNS.getEnclosureList.getEndPositionOfChar.getEntries.getEntriesByName.getEntriesByType.getError.getExtension.getExtentOfChar.getEyeParameters.getFeature.getFiberRoots.getFile.getFileHandle.getFiles.getFilesAndDirectories.getFingerprints.getFloat16.getFloat32.getFloat64.getFloatFrequencyData.getFloatTimeDomainData.getFloatValue.getFragDataLocation.getFrameData.getFrameId.getFramebufferAttachmentParameter.getFrequencyResponse.getFullYear.getGamepads.getHTML.getHeaderExtensionsToNegotiate.getHighEntropyValues.getHitTestResults.getHitTestResultsForTransientInput.getHours.getIdentityAssertion.getIds.getImageData.getIndexedParameter.getInfo.getInnerHTML.getInstalledRelatedApps.getInt16.getInt32.getInt8.getInterestGroupAdAuctionData.getInternalModuleRanges.getInternalformatParameter.getIntersectionList.getItem.getItems.getJointPose.getKey.getKeyframes.getLastFocused.getLayers.getLayoutMap.getLightEstimate.getLineDash.getLocalCandidates.getLocalParameters.getLocalStreams.getManagedConfiguration.getManifest.getMappedRange.getMarks.getMatchedCSSRules.getMaxGCPauseSinceClear.getMeasures.getMessage.getMetadata.getMilliseconds.getMinutes.getModifierState.getMonth.getName.getNamedItem.getNamedItemNS.getNativeFramebufferScaleFactor.getNegotiatedHeaderExtensions.getNestedConfigs.getNotifications.getNotifier.getNumberOfChars.getOffsetReferenceSpace.getOutputTimestamp.getOverrideHistoryNavigationMode.getOverrideStyle.getOwnPropertyDescriptor.getOwnPropertyDescriptors.getOwnPropertyNames.getOwnPropertySymbols.getPackageDirectoryEntry.getParameter.getParameters.getParent.getPathSegAtLength.getPermissionWarningsByManifest.getPhotoCapabilities.getPhotoSettings.getPlatformInfo.getPointAtLength.getPopup.getPorts.getPose.getPredictedEvents.getPreference.getPreferenceDefault.getPreferredCanvasFormat.getPresentationAttribute.getPreventDefault.getPrimaryService.getPrimaryServices.getProgramInfoLog.getProgramParameter.getPropertyCSSValue.getPropertyPriority.getPropertyShorthand.getPropertyType.getPropertyValue.getPrototypeOf.getPublicKey.getPublicKeyAlgorithm.getQuery.getQueryParameter.getRGBColorValue.getRandomValues.getRangeAt.getReader.getReceivers.getRectValue.getReflectionCubeMap.getRegistration.getRegistrations.getRemoteCandidates.getRemoteCertificates.getRemoteParameters.getRemoteStreams.getRenderbufferParameter.getResponseHeader.getRoot.getRootNode.getRotationOfChar.getSVGDocument.getSamplerParameter.getScreenCTM.getScreenDetails.getSeconds.getSelectedCandidatePair.getSelection.getSelf.getSenders.getService.getSetCookie.getSettings.getShaderInfoLog.getShaderParameter.getShaderPrecisionFormat.getShaderSource.getSignals.getSimpleDuration.getSiteIcons.getSources.getSpeculativeParserUrls.getStartPositionOfChar.getStartTime.getState.getStats.getStatusForPolicy.getStorageUpdates.getStreamById.getStringValue.getSubStringLength.getSubscription.getSubscriptions.getSupportedConstraints.getSupportedExtensions.getSupportedFormats.getSyncParameter.getSynchronizationSources.getTags.getTargetRanges.getTexParameter.getTextFormats.getTime.getTimezoneOffset.getTiming.getTitle.getTitlebarAreaRect.getTotalLength.getTrackById.getTracks.getTransceivers.getTransform.getTransformFeedbackVarying.getTransformToElement.getTransports.getType.getTypeMapping.getUILanguage.getURL.getUTCDate.getUTCDay.getUTCFullYear.getUTCHours.getUTCMilliseconds.getUTCMinutes.getUTCMonth.getUTCSeconds.getUint16.getUint32.getUint8.getUniform.getUniformBlockIndex.getUniformIndices.getUniformLocation.getUserInfo.getUserMedia.getUserSettings.getVRDisplays.getValues.getVarDate.getVariableValue.getVertexAttrib.getVertexAttribOffset.getVideoPlaybackQuality.getVideoTracks.getViewerPose.getViewport.getViews.getVoices.getWakeLockState.getWriter.getYear.getZoom.getZoomSettings.givenName.global.globalAlpha.globalCompositeOperation.globalPrivacyControl.globalThis.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.go.goBack.goForward.gpu.grabFrame.grad.gradientTransform.gradientUnits.grammars.green.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-gap.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-gap.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.gridArea.gridAutoColumns.gridAutoFlow.gridAutoRows.gridColumn.gridColumnEnd.gridColumnGap.gridColumnStart.gridGap.gridRow.gridRowEnd.gridRowGap.gridRowStart.gridTemplate.gridTemplateAreas.gridTemplateColumns.gridTemplateRows.gripSpace.group.groupBy.groupCollapsed.groupEnd.groupId.groups.grow.growable.guestProcessId.guestRenderFrameRoutingId.hadRecentInput.hand.handedness.hangingBaseline.hapticActuators.hardwareConcurrency.has.hasAttribute.hasAttributeNS.hasAttributes.hasBeenActive.hasChildNodes.hasComposition.hasDynamicOffset.hasEnrolledInstrument.hasExtension.hasExternalDisplay.hasFeature.hasFocus.hasIndices.hasInstance.hasLayout.hasOrientation.hasOwn.hasOwnProperty.hasPointerCapture.hasPosition.hasPrivateToken.hasReading.hasRedemptionRecord.hasRegExpGroups.hasStorageAccess.hasUAVisualTransition.hasUnpartitionedCookieAccess.hash.hashChange.head.headers.heading.height.hid.hidden.hide.hideFocus.hidePopover.high.highWaterMark.highlight.highlights.hint.hints.history.honorificPrefix.honorificSuffix.horizontalOverflow.host.hostCandidate.hostname.href.hrefTranslate.hreflang.hspace.html5TagCheckInerface.htmlFor.htmlText.httpEquiv.httpRequestStatusCode.hwTimestamp.hyphenate-character.hyphenateCharacter.hyphens.hypot.i18n.ic.iccId.iceConnectionState.iceGatheringState.iceTransport.icon.iconURL.id.identifier.identity.ideographicBaseline.idle.idpLoginUrl.ignoreBOM.ignoreCase.ignoreDepthValues.image.image-orientation.image-rendering.imageHeight.imageOrientation.imageRendering.imageSizes.imageSmoothingEnabled.imageSmoothingQuality.imageSrcset.imageWidth.images.ime-mode.imeMode.implementation.importExternalTexture.importKey.importNode.importStylesheet.imports.impp.imul.in.in1.in2.inBandMetadataTrackDispatchType.inIncognitoContext.inRange.includes.incognito.incomingBidirectionalStreams.incomingHighWaterMark.incomingMaxAge.incomingUnidirectionalStreams.incremental.indeterminate.index.indexNames.indexOf.indexedDB.indicate.indices.inert.inertiaDestinationX.inertiaDestinationY.info.inherits.init.initAnimationEvent.initBeforeLoadEvent.initClipboardEvent.initCloseEvent.initCommandEvent.initCompositionEvent.initCustomEvent.initData.initDataType.initDeviceMotionEvent.initDeviceOrientationEvent.initDragEvent.initErrorEvent.initEvent.initFocusEvent.initGestureEvent.initHashChangeEvent.initKeyEvent.initKeyboardEvent.initMSManipulationEvent.initMessageEvent.initMouseEvent.initMouseScrollEvent.initMouseWheelEvent.initMutationEvent.initNSMouseEvent.initOverflowEvent.initPageEvent.initPageTransitionEvent.initPointerEvent.initPopStateEvent.initProgressEvent.initScrollAreaEvent.initSimpleGestureEvent.initStorageEvent.initTextEvent.initTimeEvent.initTouchEvent.initTransitionEvent.initUIEvent.initWebKitAnimationEvent.initWebKitTransitionEvent.initWebKitWheelEvent.initWheelEvent.initialTime.initialValue.initialize.initiatorType.inject.ink.inline-size.inlineSize.inlineVerticalFieldOfView.inner.innerHTML.innerHeight.innerText.innerWidth.input.inputBuffer.inputEncoding.inputMethod.inputMode.inputSource.inputSources.inputType.inputs.insertAdjacentElement.insertAdjacentHTML.insertAdjacentText.insertBefore.insertCell.insertDTMF.insertData.insertDebugMarker.insertItemBefore.insertNode.insertRow.insertRule.inset.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.insetBlock.insetBlockEnd.insetBlockStart.insetInline.insetInlineEnd.insetInlineStart.install.installing.instanceRoot.instantiate.instantiateStreaming.instruments.int16.int32.int8.integrity.interactionId.interactionMode.intercept.interfaceClass.interfaceName.interfaceNumber.interfaceProtocol.interfaceSubclass.interfaces.interimResults.internalSubset.interpretation.intersection.intersectionRatio.intersectionRect.intersectsNode.interval.invalidIteratorState.invalidateFramebuffer.invalidateSubFramebuffer.inverse.invertSelf.invoker.invokerType.is.is2D.isActive.isAllowedFileSchemeAccess.isAllowedIncognitoAccess.isAlternate.isArray.isAutoSelected.isBingCurrentSearchDefault.isBuffer.isCandidateWindowVisible.isChar.isCollapsed.isComposing.isConcatSpreadable.isConditionalMediationAvailable.isConfigSupported.isConnected.isContentEditable.isContentHandlerRegistered.isContextLost.isDefaultNamespace.isDirectory.isDisabled.isDisjointFrom.isEnabled.isEqual.isEqualNode.isExtended.isExtensible.isExternalCTAP2SecurityKeySupported.isFallbackAdapter.isFile.isFinite.isFirstPersonObserver.isFramebuffer.isFrozen.isGenerator.isHTML.isHistoryNavigation.isId.isIdentity.isInjected.isInputPending.isInteger.isInternal.isIntersecting.isLockFree.isMap.isMultiLine.isNaN.isOpen.isPointInFill.isPointInPath.isPointInRange.isPointInStroke.isPrefAlternate.isPresenting.isPrimary.isProgram.isPropertyImplicit.isProtocolHandlerRegistered.isPrototypeOf.isQuery.isRawJSON.isRenderbuffer.isSafeInteger.isSameEntry.isSameNode.isSampler.isScript.isScriptURL.isSealed.isSecureContext.isSessionSupported.isShader.isSubsetOf.isSupersetOf.isSupported.isSync.isTextEdit.isTexture.isTransformFeedback.isTrusted.isTypeSupported.isUserVerifyingPlatformAuthenticatorAvailable.isVertexArray.isView.isVisible.isWellFormed.isochronousTransferIn.isochronousTransferOut.isolation.italics.item.itemId.itemProp.itemRef.itemScope.itemType.itemValue.items.iterateNext.iterationComposite.iterator.javaEnabled.jitterBufferTarget.jobTitle.join.joinAdInterestGroup.jointName.json.justify-content.justify-items.justify-self.justifyContent.justifyItems.justifySelf.k1.k2.k3.k4.kHz.keepalive.kernelMatrix.kernelUnitLengthX.kernelUnitLengthY.kerning.key.keyCode.keyFor.keyIdentifier.keyLightEnabled.keyLocation.keyPath.keyStatuses.keySystem.keyText.keyUsage.keyboard.keys.keytype.kind.knee.knownSources.label.labels.lang.language.languages.largeArcFlag.lastChild.lastElementChild.lastError.lastEventId.lastIndex.lastIndexOf.lastInputTime.lastMatch.lastMessageSubject.lastMessageType.lastModified.lastModifiedDate.lastPage.lastParen.lastState.lastStyleSheetSet.latency.latitude.launchQueue.layerName.layerX.layerY.layout.layoutFlow.layoutGrid.layoutGridChar.layoutGridLine.layoutGridMode.layoutGridType.lbound.leaveAdInterestGroup.left.leftContext.leftDegrees.leftMargin.leftProjectionMatrix.leftViewMatrix.length.lengthAdjust.lengthComputable.letter-spacing.letterSpacing.level.lh.lighting-color.lightingColor.limitingConeAngle.limits.line.line-break.line-height.lineAlign.lineBreak.lineCap.lineDashOffset.lineGapOverride.lineHeight.lineJoin.lineNum.lineNumber.linePos.lineTo.lineWidth.linearAcceleration.linearRampToValueAtTime.linearVelocity.lineno.lines.link.linkColor.linkProgram.links.list.list-style.list-style-image.list-style-position.list-style-type.listStyle.listStyleImage.listStylePosition.listStyleType.listener.listeners.load.loadEventEnd.loadEventStart.loadOp.loadTime.loadTimes.loaded.loading.localDescription.localName.localService.localStorage.locale.localeCompare.location.locationbar.lock.locked.lockedFile.locks.lodMaxClamp.lodMinClamp.log.log10.log1p.log2.logicalXDPI.logicalYDPI.login.loglevel.longDesc.longitude.lookupNamespaceURI.lookupPrefix.loop.loopEnd.loopStart.looping.lost.low.lower.lowerBound.lowerOpen.lowsrc.lvb.lvh.lvi.lvmax.lvmin.lvw.m11.m12.m13.m14.m21.m22.m23.m24.m31.m32.m33.m34.m41.m42.m43.m44.magFilter.makeXRCompatible.managed.management.manifest.manufacturer.manufacturerName.map.mapAsync.mapState.mappedAtCreation.mapping.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.marginBlock.marginBlockEnd.marginBlockStart.marginBottom.marginHeight.marginInline.marginInlineEnd.marginInlineStart.marginLeft.marginRight.marginTop.marginWidth.mark.marker.marker-end.marker-mid.marker-offset.marker-start.markerEnd.markerHeight.markerMid.markerOffset.markerStart.markerUnits.markerWidth.marks.mask.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-position-x.mask-position-y.mask-repeat.mask-size.mask-type.maskClip.maskComposite.maskContentUnits.maskImage.maskMode.maskOrigin.maskPosition.maskPositionX.maskPositionY.maskRepeat.maskSize.maskType.maskUnits.match.matchAll.matchMedia.matchMedium.matchPatterns.matches.math-depth.math-style.mathDepth.mathStyle.matrix.matrixTransform.max.max-block-size.max-height.max-inline-size.max-width.maxActions.maxAlternatives.maxAnisotropy.maxBindGroups.maxBindGroupsPlusVertexBuffers.maxBindingsPerBindGroup.maxBlockSize.maxBufferSize.maxByteLength.maxChannelCount.maxChannels.maxColorAttachmentBytesPerSample.maxColorAttachments.maxComputeInvocationsPerWorkgroup.maxComputeWorkgroupSizeX.maxComputeWorkgroupSizeY.maxComputeWorkgroupSizeZ.maxComputeWorkgroupStorageSize.maxComputeWorkgroupsPerDimension.maxConnectionsPerServer.maxDatagramSize.maxDecibels.maxDistance.maxDrawCount.maxDynamicStorageBuffersPerPipelineLayout.maxDynamicUniformBuffersPerPipelineLayout.maxHeight.maxInlineSize.maxInterStageShaderComponents.maxInterStageShaderVariables.maxLayers.maxLength.maxMessageSize.maxPacketLifeTime.maxRetransmits.maxSampledTexturesPerShaderStage.maxSamplersPerShaderStage.maxStorageBufferBindingSize.maxStorageBuffersPerShaderStage.maxStorageTexturesPerShaderStage.maxTextureArrayLayers.maxTextureDimension1D.maxTextureDimension2D.maxTextureDimension3D.maxTouchPoints.maxUniformBufferBindingSize.maxUniformBuffersPerShaderStage.maxValue.maxVertexAttributes.maxVertexBufferArrayStride.maxVertexBuffers.maxWidth.maximumLatency.measure.measureText.media.mediaCapabilities.mediaDevices.mediaElement.mediaGroup.mediaKeys.mediaSession.mediaStream.mediaText.meetOrSlice.memory.menubar.menus.menusChild.menusInternal.mergeAttributes.message.messageClass.messageHandlers.messageType.messages.metaKey.metadata.method.methodDetails.methodName.mid.mimeType.mimeTypes.min.min-block-size.min-height.min-inline-size.min-width.minBindingSize.minBlockSize.minDecibels.minFilter.minHeight.minInlineSize.minLength.minStorageBufferOffsetAlignment.minUniformBufferOffsetAlignment.minValue.minWidth.minimumLatency.mipLevel.mipLevelCount.mipmapFilter.miterLimit.mix-blend-mode.mixBlendMode.mm.mobile.mode.model.modify.module.mount.move.moveBy.moveEnd.moveFirst.moveFocusDown.moveFocusLeft.moveFocusRight.moveFocusUp.moveInSuccession.moveNext.moveRow.moveStart.moveTo.moveToBookmark.moveToElementText.moveToPoint.movementX.movementY.mozAdd.mozAnimationStartTime.mozAnon.mozApps.mozAudioCaptured.mozAudioChannelType.mozAutoplayEnabled.mozCancelAnimationFrame.mozCancelFullScreen.mozCancelRequestAnimationFrame.mozCaptureStream.mozCaptureStreamUntilEnded.mozClearDataAt.mozContact.mozContacts.mozCreateFileHandle.mozCurrentTransform.mozCurrentTransformInverse.mozCursor.mozDash.mozDashOffset.mozDecodedFrames.mozExitPointerLock.mozFillRule.mozFragmentEnd.mozFrameDelay.mozFullScreen.mozFullScreenElement.mozFullScreenEnabled.mozGetAll.mozGetAllKeys.mozGetAsFile.mozGetDataAt.mozGetMetadata.mozGetUserMedia.mozHasAudio.mozHasItem.mozHidden.mozImageSmoothingEnabled.mozIndexedDB.mozInnerScreenX.mozInnerScreenY.mozInputSource.mozIsTextField.mozItem.mozItemCount.mozItems.mozLength.mozLockOrientation.mozMatchesSelector.mozMovementX.mozMovementY.mozOpaque.mozOrientation.mozPaintCount.mozPaintedFrames.mozParsedFrames.mozPay.mozPointerLockElement.mozPresentedFrames.mozPreservesPitch.mozPressure.mozPrintCallback.mozRTCIceCandidate.mozRTCPeerConnection.mozRTCSessionDescription.mozRemove.mozRequestAnimationFrame.mozRequestFullScreen.mozRequestPointerLock.mozSetDataAt.mozSetImageElement.mozSourceNode.mozSrcObject.mozSystem.mozTCPSocket.mozTextStyle.mozTypesAt.mozUnlockOrientation.mozUserCancelled.mozVisibilityState.ms.msAnimation.msAnimationDelay.msAnimationDirection.msAnimationDuration.msAnimationFillMode.msAnimationIterationCount.msAnimationName.msAnimationPlayState.msAnimationStartTime.msAnimationTimingFunction.msBackfaceVisibility.msBlockProgression.msCSSOMElementFloatMetrics.msCaching.msCachingEnabled.msCancelRequestAnimationFrame.msCapsLockWarningOff.msClearImmediate.msClose.msContentZoomChaining.msContentZoomFactor.msContentZoomLimit.msContentZoomLimitMax.msContentZoomLimitMin.msContentZoomSnap.msContentZoomSnapPoints.msContentZoomSnapType.msContentZooming.msConvertURL.msCrypto.msDoNotTrack.msElementsFromPoint.msElementsFromRect.msExitFullscreen.msExtendedCode.msFillRule.msFirstPaint.msFlex.msFlexAlign.msFlexDirection.msFlexFlow.msFlexItemAlign.msFlexLinePack.msFlexNegative.msFlexOrder.msFlexPack.msFlexPositive.msFlexPreferredSize.msFlexWrap.msFlowFrom.msFlowInto.msFontFeatureSettings.msFullscreenElement.msFullscreenEnabled.msGetInputContext.msGetRegionContent.msGetUntransformedBounds.msGraphicsTrustStatus.msGridColumn.msGridColumnAlign.msGridColumnSpan.msGridColumns.msGridRow.msGridRowAlign.msGridRowSpan.msGridRows.msHidden.msHighContrastAdjust.msHyphenateLimitChars.msHyphenateLimitLines.msHyphenateLimitZone.msHyphens.msImageSmoothingEnabled.msImeAlign.msIndexedDB.msInterpolationMode.msIsStaticHTML.msKeySystem.msKeys.msLaunchUri.msLockOrientation.msManipulationViewsEnabled.msMatchMedia.msMatchesSelector.msMaxTouchPoints.msOrientation.msOverflowStyle.msPerspective.msPerspectiveOrigin.msPlayToDisabled.msPlayToPreferredSourceUri.msPlayToPrimary.msPointerEnabled.msRegionOverflow.msReleasePointerCapture.msRequestAnimationFrame.msRequestFullscreen.msSaveBlob.msSaveOrOpenBlob.msScrollChaining.msScrollLimit.msScrollLimitXMax.msScrollLimitXMin.msScrollLimitYMax.msScrollLimitYMin.msScrollRails.msScrollSnapPointsX.msScrollSnapPointsY.msScrollSnapType.msScrollSnapX.msScrollSnapY.msScrollTranslation.msSetImmediate.msSetMediaKeys.msSetPointerCapture.msTextCombineHorizontal.msTextSizeAdjust.msToBlob.msTouchAction.msTouchSelect.msTraceAsyncCallbackCompleted.msTraceAsyncCallbackStarting.msTraceAsyncOperationCompleted.msTraceAsyncOperationStarting.msTransform.msTransformOrigin.msTransformStyle.msTransition.msTransitionDelay.msTransitionDuration.msTransitionProperty.msTransitionTimingFunction.msUnlockOrientation.msUpdateAsyncCallbackRelation.msUserSelect.msVisibilityState.msWrapFlow.msWrapMargin.msWrapThrough.msWriteProfilerMark.msZoom.msZoomTo.mt.mul.multiEntry.multiSelectionObj.multiline.multiple.multiply.multiplySelf.multisample.multisampled.mutableFile.muted.n.nacl_arch.name.nameList.nameProp.namedItem.namedRecordset.names.namespaceURI.namespaces.nativeApplication.nativeMap.nativeObjectCreate.nativeSet.nativeWeakMap.naturalHeight.naturalWidth.navigate.navigation.navigationMode.navigationPreload.navigationStart.navigationType.navigator.near.nearestViewportElement.negative.negotiated.netscape.networkState.networkStatus.newScale.newState.newTranslate.newURL.newValue.newValueSpecifiedUnits.newVersion.newhome.next.nextElementSibling.nextHopProtocol.nextNode.nextPage.nextSibling.nickname.noHref.noModule.noResize.noShade.noValidate.noWrap.node.nodeName.nodeType.nodeValue.nonce.normDepthBufferFromNormView.normalize.normalizedPathSegList.normandyAddonStudy.notRestoredReasons.notationName.notations.note.noteGrainOn.noteOff.noteOn.notifications.notify.now.npnNegotiatedProtocol.numOctaves.number.numberOfChannels.numberOfFrames.numberOfInputs.numberOfItems.numberOfOutputs.numberValue.oMatchesSelector.object.object-fit.object-position.objectFit.objectPosition.objectStore.objectStoreNames.objectType.observe.occlusionQuerySet.of.off.offscreenBuffering.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.offsetAnchor.offsetDistance.offsetHeight.offsetLeft.offsetNode.offsetParent.offsetPath.offsetPosition.offsetRotate.offsetTop.offsetWidth.offsetX.offsetY.ok.oldState.oldURL.oldValue.oldVersion.olderShadowRoot.omnibox.on.onActivated.onAdded.onAttached.onBoundsChanged.onBrowserUpdateAvailable.onClicked.onCommitFiberRoot.onCommitFiberUnmount.onConnect.onConnectExternal.onConnectNative.onCreated.onDetached.onDisabled.onEnabled.onFocusChanged.onHighlighted.onInstalled.onLine.onMessage.onMessageExternal.onMoved.onPerformanceWarning.onPostCommitFiberRoot.onRemoved.onReplaced.onRestartRequired.onStartup.onSubmittedWorkDone.onSuspend.onSuspendCanceled.onUninstalled.onUpdateAvailable.onUpdated.onUserScriptConnect.onUserScriptMessage.onUserSettingsChanged.onZoomChange.onabort.onabsolutedeviceorientation.onactivate.onactive.onaddsourcebuffer.onaddstream.onaddtrack.onafterprint.onafterscriptexecute.onafterupdate.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onappinstalled.onaudioend.onaudioprocess.onaudiostart.onautocomplete.onautocompleteerror.onauxclick.onbeforeactivate.onbeforecopy.onbeforecut.onbeforedeactivate.onbeforeeditfocus.onbeforeinput.onbeforeinstallprompt.onbeforematch.onbeforepaste.onbeforeprint.onbeforescriptexecute.onbeforetoggle.onbeforeunload.onbeforeupdate.onbeforexrselect.onbegin.onblocked.onblur.onbounce.onboundary.onbufferedamountlow.oncached.oncancel.oncandidatewindowhide.oncandidatewindowshow.oncandidatewindowupdate.oncanplay.oncanplaythrough.oncapturehandlechange.once.oncellchange.onchange.oncharacterboundsupdate.oncharacteristicvaluechanged.onchargingchange.onchargingtimechange.onchecking.onclick.onclose.onclosing.oncompassneedscalibration.oncomplete.oncompositionend.oncompositionstart.onconnect.onconnecting.onconnectionavailable.onconnectionstatechange.oncontentvisibilityautostatechange.oncontextlost.oncontextmenu.oncontextrestored.oncontrollerchange.oncontrolselect.oncopy.oncuechange.oncurrententrychange.oncurrentscreenchange.oncut.ondataavailable.ondatachannel.ondatasetchanged.ondatasetcomplete.ondblclick.ondeactivate.ondequeue.ondevicechange.ondevicelight.ondevicemotion.ondeviceorientation.ondeviceorientationabsolute.ondeviceproximity.ondischargingtimechange.ondisconnect.ondisplay.ondispose.ondownloading.ondrag.ondragend.ondragenter.ondragexit.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onencrypted.onend.onended.onenter.onenterpictureinpicture.onerror.onerrorupdate.onexit.onfencedtreeclick.onfilterchange.onfinish.onfocus.onfocusin.onfocusout.onformdata.onfreeze.onfullscreenchange.onfullscreenerror.ongamepadconnected.ongamepaddisconnected.ongatheringstatechange.ongattserverdisconnected.ongeometrychange.ongesturechange.ongestureend.ongesturestart.ongotpointercapture.onhashchange.onhelp.onicecandidate.onicecandidateerror.oniceconnectionstatechange.onicegatheringstatechange.oninactive.oninput.oninputreport.oninputsourceschange.oninvalid.onkeydown.onkeypress.onkeystatuseschange.onkeyup.onlanguagechange.onlayoutcomplete.onleavepictureinpicture.onlevelchange.onload.onloadT.onloadeddata.onloadedmetadata.onloadend.onloading.onloadingdone.onloadingerror.onloadstart.onlosecapture.onlostpointercapture.only.onmanagedconfigurationchange.onmark.onmessage.onmessageerror.onmidimessage.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onmousewheel.onmove.onmoveend.onmovestart.onmozfullscreenchange.onmozfullscreenerror.onmozorientationchange.onmozpointerlockchange.onmozpointerlockerror.onmscontentzoom.onmsfullscreenchange.onmsfullscreenerror.onmsgesturechange.onmsgesturedoubletap.onmsgestureend.onmsgesturehold.onmsgesturestart.onmsgesturetap.onmsgotpointercapture.onmsinertiastart.onmslostpointercapture.onmsmanipulationstatechanged.onmsneedkey.onmsorientationchange.onmspointercancel.onmspointerdown.onmspointerenter.onmspointerhover.onmspointerleave.onmspointermove.onmspointerout.onmspointerover.onmspointerup.onmssitemodejumplistitemremoved.onmsthumbnailclick.onmute.onnavigate.onnavigateerror.onnavigatesuccess.onnegotiationneeded.onnomatch.onnoupdate.onobsolete.onoffline.ononline.onopen.onorientationchange.onpagechange.onpagehide.onpagereveal.onpageshow.onpageswap.onpaste.onpause.onpayerdetailchange.onpaymentmethodchange.onplay.onplaying.onpluginstreamstart.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointerlockchange.onpointerlockerror.onpointermove.onpointerout.onpointerover.onpointerrawupdate.onpointerup.onpopstate.onprerenderingchange.onprioritychange.onprocessorerror.onprogress.onpropertychange.onratechange.onreading.onreadystatechange.onreflectionchange.onrejectionhandled.onrelease.onremove.onremovesourcebuffer.onremovestream.onremovetrack.onrepeat.onreset.onresize.onresizeend.onresizestart.onresourcetimingbufferfull.onresult.onresume.onrowenter.onrowexit.onrowsdelete.onrowsinserted.onscreenschange.onscroll.onscrollend.onscrollsnapchange.onscrollsnapchanging.onsearch.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectedcandidatepairchange.onselectend.onselectionchange.onselectstart.onshippingaddresschange.onshippingoptionchange.onshow.onsignalingstatechange.onsinkchange.onslotchange.onsoundend.onsoundstart.onsourceclose.onsourceclosed.onsourceended.onsourceopen.onspeechend.onspeechstart.onsqueeze.onsqueezeend.onsqueezestart.onstalled.onstart.onstatechange.onstop.onstorage.onstoragecommit.onsubmit.onsuccess.onsuspend.onterminate.ontextformatupdate.ontextinput.ontextupdate.ontimeout.ontimeupdate.ontoggle.ontonechange.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontrack.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onuncapturederror.onunhandledrejection.onunload.onunmute.onupdate.onupdateend.onupdatefound.onupdateready.onupdatestart.onupgradeneeded.onuserproximity.onversionchange.onvisibilitychange.onvoiceschanged.onvolumechange.onvrdisplayactivate.onvrdisplayconnect.onvrdisplaydeactivate.onvrdisplaydisconnect.onvrdisplaypresentchange.onwaiting.onwaitingforkey.onwarning.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkitcurrentplaybacktargetiswirelesschanged.onwebkitfullscreenchange.onwebkitfullscreenerror.onwebkitkeyadded.onwebkitkeyerror.onwebkitkeymessage.onwebkitneedkey.onwebkitorientationchange.onwebkitplaybacktargetavailabilitychanged.onwebkitpointerlockchange.onwebkitpointerlockerror.onwebkitresourcetimingbufferfull.onwebkittransitionend.onwheel.onzoom.opacity.open.openCursor.openDatabase.openKeyCursor.openOptionsPage.openOrClosedShadowRoot.openPopup.opened.opener.opera.operation.operationType.operator.opr.optimum.options.or.order.orderX.orderY.ordered.org.organization.orient.orientAngle.orientType.orientation.orientationX.orientationY.orientationZ.origin.originAgentCluster.originalPolicy.originalTarget.orphans.os.oscpu.outerHTML.outerHeight.outerText.outerWidth.outgoingHighWaterMark.outgoingMaxAge.outline.outline-color.outline-offset.outline-style.outline-width.outlineColor.outlineOffset.outlineStyle.outlineWidth.outputBuffer.outputChannelCount.outputLatency.outputs.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overflowAnchor.overflowBlock.overflowClipMargin.overflowInline.overflowWrap.overflowX.overflowY.overlaysContent.overrideColors.overrideMimeType.oversample.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.overscrollBehavior.overscrollBehaviorBlock.overscrollBehaviorInline.overscrollBehaviorX.overscrollBehaviorY.ownKeys.ownerDocument.ownerElement.ownerNode.ownerRule.ownerSVGElement.owningElement.p1.p2.p3.p4.packetSize.packets.pad.padEnd.padStart.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.paddingBlock.paddingBlockEnd.paddingBlockStart.paddingBottom.paddingInline.paddingInlineEnd.paddingInlineStart.paddingLeft.paddingRight.paddingTop.page.page-break-after.page-break-before.page-break-inside.page-orientation.pageAction.pageBreakAfter.pageBreakBefore.pageBreakInside.pageCount.pageLeft.pageOrientation.pageT.pageTop.pageX.pageXOffset.pageY.pageYOffset.pages.paint-order.paintOrder.paintRequests.paintType.paintWorklet.palette.pan.panningModel.parameterData.parameters.parent.parentElement.parentNode.parentRule.parentStyleSheet.parentTextEdit.parentWindow.parse.parseAll.parseCreationOptionsFromJSON.parseFloat.parseFromString.parseHTMLUnsafe.parseInt.parseRequestOptionsFromJSON.part.participants.passOp.passive.password.pasteHTML.path.pathLength.pathSegList.pathSegType.pathSegTypeAsLetter.pathname.pattern.patternContentUnits.patternMismatch.patternTransform.patternUnits.pause.pauseAnimations.pauseDuration.pauseOnExit.pauseProfilers.pauseTransformFeedback.paused.payerEmail.payerName.payerPhone.paymentManager.pc.pdfViewerEnabled.peerIdentity.pending.pendingLocalDescription.pendingRemoteDescription.percent.performance.periodicSync.permission.permissionState.permissions.persist.persisted.persistentDeviceId.personalbar.perspective.perspective-origin.perspectiveOrigin.phone.phoneticFamilyName.phoneticGivenName.photo.pictureInPictureChild.pictureInPictureElement.pictureInPictureEnabled.pictureInPictureWindow.ping.pipeThrough.pipeTo.pitch.pixelBottom.pixelDepth.pixelHeight.pixelLeft.pixelRight.pixelStorei.pixelTop.pixelUnitToMillimeterX.pixelUnitToMillimeterY.pixelWidth.pkcs11.place-content.place-items.place-self.placeContent.placeItems.placeSelf.placeholder.platform.platformVersion.platforms.play.playEffect.playState.playbackRate.playbackState.playbackTime.played.playoutDelayHint.playsInline.plugins.pluginspage.pname.pointer-events.pointerBeforeReferenceNode.pointerEnabled.pointerEvents.pointerId.pointerLockElement.pointerType.points.pointsAtX.pointsAtY.pointsAtZ.polygonOffset.pop.popDebugGroup.popErrorScope.popover.popoverTargetAction.popoverTargetElement.populateMatrix.popupWindowFeatures.popupWindowName.popupWindowURI.port.port1.port2.ports.posBottom.posHeight.posLeft.posRight.posTop.posWidth.pose.position.position-anchor.position-area.positionAlign.positionAnchor.positionArea.positionX.positionY.positionZ.postError.postMessage.postTask.postalCode.poster.postscriptName.pow.powerEfficient.powerOff.powerPreference.preMultiplySelf.precision.preferredReflectionFormat.preferredStyleSheetSet.preferredStylesheetSet.prefix.preload.premultipliedAlpha.prepend.prerendering.presentation.presentationArea.presentationStyle.preserveAlpha.preserveAspectRatio.preserveAspectRatioString.preservesPitch.pressed.pressure.prevValue.preventDefault.preventExtensions.preventSilentAccess.previousElementSibling.previousNode.previousPage.previousPriority.previousRect.previousScale.previousSibling.previousTranslate.primaries.primaryKey.primaryLightDirection.primaryLightIntensity.primitive.primitiveType.primitiveUnits.principals.print.print-color-adjust.printColorAdjust.printPreview.priority.privacy.privateKey.privateToken.probablySupportsContext.probeSpace.process.processIceMessage.processingEnd.processingStart.processorOptions.product.productId.productName.productSub.profile.profileEnd.profiles.projectionMatrix.promise.prompt.properties.propertyIsEnumerable.propertyName.protectedAudience.protocol.protocolLong.prototype.provider.proxy.pseudoClass.pseudoElement.pt.publicId.publicKey.published.pulse.push.pushDebugGroup.pushErrorScope.pushManager.pushNotification.pushState.put.putImageData.px.quadraticCurveTo.qualifier.quaternion.query.queryCommandEnabled.queryCommandIndeterm.queryCommandState.queryCommandSupported.queryCommandText.queryCommandValue.queryFeatureSupport.queryLocalFonts.queryPermission.querySelector.querySelectorAll.querySet.queue.queueMicrotask.quote.quotes.r.r1.r2.race.rad.radiogroup.radius.radiusX.radiusY.random.randomUUID.range.rangeCount.rangeEnd.rangeMax.rangeMin.rangeOffset.rangeOverflow.rangeParent.rangeStart.rangeUnderflow.rate.ratio.raw.rawId.rawJSON.rawValueToMeters.rcap.rch.read.readAsArrayBuffer.readAsBinaryString.readAsBlob.readAsDataURL.readAsText.readBuffer.readEntries.readOnly.readPixels.readReportRequested.readText.readValue.readable.ready.readyState.reason.reasons.reboot.receiveFeatureReport.receivedAlert.receiver.receivers.recipient.recommendedViewportScale.reconnect.recordNumber.recordsAvailable.recordset.rect.red.redEyeReduction.redirect.redirectCount.redirectEnd.redirectStart.redirected.reduce.reduceRight.reduction.refDistance.refX.refY.referenceNode.referenceSpace.referrer.referrerPolicy.refresh.region.regionAnchorX.regionAnchorY.regionId.regions.register.registerContentHandler.registerElement.registerInternalModuleStart.registerInternalModuleStop.registerProperty.registerProtocolHandler.reject.rel.relList.relatedAddress.relatedNode.relatedPort.relatedTarget.relayProtocol.release.releaseCapture.releaseEvents.releaseInterface.releaseLock.releasePointerCapture.releaseShaderCompiler.released.reliability.reliable.reliableWrite.reload.rem.remainingSpace.remote.remoteDescription.remove.removeAllRanges.removeAttribute.removeAttributeNS.removeAttributeNode.removeBehavior.removeChild.removeCue.removeEntry.removeEventListener.removeFilter.removeImport.removeItem.removeListener.removeNamedItem.removeNamedItemNS.removeNode.removeParameter.removeProperty.removeRange.removeRegion.removeRule.removeSiteSpecificTrackingException.removeSourceBuffer.removeStream.removeTrack.removeVariable.removeWakeLockListener.removeWebWideTrackingException.removed.removedNodes.renderBlockingStatus.renderHeight.renderStart.renderState.renderTime.renderWidth.renderbufferStorage.renderbufferStorageMultisample.renderedBuffer.rendererInterfaces.renderers.renderingMode.renotify.repeat.repetitionCount.replace.replaceAdjacentText.replaceAll.replaceChild.replaceChildren.replaceData.replaceId.replaceItem.replaceNode.replaceState.replaceSync.replaceTrack.replaceWholeText.replaceWith.reportError.reportEvent.reportId.reportValidity.request.requestAdapter.requestAdapterInfo.requestAnimationFrame.requestAutocomplete.requestClose.requestData.requestDevice.requestFrame.requestFullscreen.requestHitTestSource.requestHitTestSourceForTransientInput.requestId.requestIdleCallback.requestLightProbe.requestMIDIAccess.requestMediaKeySystemAccess.requestPermission.requestPictureInPicture.requestPointerLock.requestPort.requestPresent.requestPresenter.requestReferenceSpace.requestSession.requestStart.requestStorageAccess.requestStorageAccessFor.requestSubmit.requestTime.requestUpdateCheck.requestVideoFrameCallback.requestViewportScale.requestWindow.requestingWindow.requireInteraction.required.requiredExtensions.requiredFeatures.requiredLimits.reset.resetLatency.resetPose.resetTransform.resizable.resize.resizeBy.resizeTo.resolve.resolveQuerySet.resolveTarget.resource.respond.respondWithNewView.response.responseBody.responseEnd.responseReady.responseStart.responseStatus.responseText.responseType.responseURL.responseXML.restart.restartAfterDelay.restartIce.restore.result.resultIndex.resultType.results.resume.resumeProfilers.resumeTransformFeedback.retry.returnValue.rev.reverse.reversed.revocable.revokeObjectURL.rex.rgbColor.ric.right.rightContext.rightDegrees.rightMargin.rightProjectionMatrix.rightViewMatrix.rlh.role.rolloffFactor.root.rootBounds.rootElement.rootMargin.rotate.rotateAxisAngle.rotateAxisAngleSelf.rotateFromVector.rotateFromVectorSelf.rotateSelf.rotation.rotationAngle.rotationRate.round.roundRect.row-gap.rowGap.rowIndex.rowSpan.rows.rowsPerImage.rtcpTransport.rtt.ruby-align.ruby-position.rubyAlign.rubyOverhang.rubyPosition.rules.run.runAdAuction.runtime.runtimeStyle.rx.ry.s.safari.sameDocument.sample.sampleCount.sampleCoverage.sampleInterval.sampleRate.sampleType.sampler.samplerParameterf.samplerParameteri.sandbox.save.saveAsPDF.saveData.scale.scale3d.scale3dSelf.scaleNonUniform.scaleNonUniformSelf.scaleSelf.scheduler.scheduling.scheme.scissor.scope.scopeName.scoped.screen.screenBrightness.screenEnabled.screenLeft.screenPixelToMillimeterX.screenPixelToMillimeterY.screenState.screenTop.screenX.screenY.screens.scriptURL.scripting.scripts.scroll.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scrollAmount.scrollBehavior.scrollBy.scrollByLines.scrollByPages.scrollDelay.scrollHeight.scrollIntoView.scrollIntoViewIfNeeded.scrollLeft.scrollLeftMax.scrollMargin.scrollMarginBlock.scrollMarginBlockEnd.scrollMarginBlockStart.scrollMarginBottom.scrollMarginInline.scrollMarginInlineEnd.scrollMarginInlineStart.scrollMarginLeft.scrollMarginRight.scrollMarginTop.scrollMaxX.scrollMaxY.scrollPadding.scrollPaddingBlock.scrollPaddingBlockEnd.scrollPaddingBlockStart.scrollPaddingBottom.scrollPaddingInline.scrollPaddingInlineEnd.scrollPaddingInlineStart.scrollPaddingLeft.scrollPaddingRight.scrollPaddingTop.scrollRestoration.scrollSnapAlign.scrollSnapStop.scrollSnapType.scrollTo.scrollTop.scrollTopMax.scrollWidth.scrollX.scrollY.scrollbar-color.scrollbar-gutter.scrollbar-width.scrollbar3dLightColor.scrollbarArrowColor.scrollbarBaseColor.scrollbarColor.scrollbarDarkShadowColor.scrollbarFaceColor.scrollbarGutter.scrollbarHighlightColor.scrollbarShadowColor.scrollbarTrackColor.scrollbarWidth.scrollbars.scrolling.scrollingElement.sctp.sctpCauseCode.sdp.sdpLineNumber.sdpMLineIndex.sdpMid.seal.search.searchBox.searchBoxJavaBridge_.searchParams.sectionRowIndex.secureConnectionStart.security.seed.seek.seekToNextFrame.seekable.seeking.select.selectAllChildren.selectAlternateInterface.selectAudioOutput.selectConfiguration.selectNode.selectNodeContents.selectNodes.selectSingleNode.selectSubString.selectURL.selected.selectedIndex.selectedOptions.selectedStyleSheetSet.selectedStylesheetSet.selectedTrack.selection.selectionDirection.selectionEnd.selectionStart.selector.selectorText.self.send.sendAsBinary.sendBeacon.sendFeatureReport.sendMessage.sendNativeMessage.sendOrder.sendReport.sender.sentAlert.sentTimestamp.separator.serial.serialNumber.serializable.serializeToString.serverTiming.service.serviceWorker.session.sessionId.sessionStorage.sessions.set.setActionHandler.setActive.setAlpha.setAppBadge.setAttribute.setAttributeNS.setAttributeNode.setAttributeNodeNS.setAttributionReporting.setBadgeBackgroundColor.setBadgeText.setBadgeTextColor.setBaseAndExtent.setBigInt64.setBigUint64.setBindGroup.setBingCurrentSearchDefault.setBlendConstant.setCameraActive.setCapture.setCaptureHandleConfig.setCodecPreferences.setColor.setCompositeOperation.setConfiguration.setConsumer.setCurrentTime.setCustomValidity.setData.setDate.setDragImage.setEnabled.setEnd.setEndAfter.setEndBefore.setEndPoint.setExpires.setFillColor.setFilterRes.setFloat16.setFloat32.setFloat64.setFloatValue.setFocusBehavior.setFormValue.setFromBase64.setFromHex.setFullYear.setHTMLUnsafe.setHeaderExtensionsToNegotiate.setHeaderValue.setHours.setIcon.setIdentityProvider.setImmediate.setIndexBuffer.setInt16.setInt32.setInt8.setInterval.setItem.setKeyframes.setLineCap.setLineDash.setLineJoin.setLineWidth.setLiveSeekableRange.setLocalDescription.setMatrix.setMatrixValue.setMediaKeys.setMicrophoneActive.setMilliseconds.setMinutes.setMiterLimit.setMonth.setNamedItem.setNamedItemNS.setNonUserCodeExceptions.setOrientToAngle.setOrientToAuto.setOrientation.setOverrideHistoryNavigationMode.setPaint.setParameter.setParameters.setPeriodicWave.setPipeline.setPointerCapture.setPopup.setPosition.setPositionState.setPreference.setPriority.setPrivateToken.setProperty.setPrototypeOf.setRGBColor.setRGBColorICCColor.setRadius.setRangeText.setRemoteDescription.setReportEventDataForAutomaticBeacons.setRequestHeader.setResizable.setResourceTimingBufferSize.setRotate.setScale.setScissorRect.setSeconds.setSelectionRange.setServerCertificate.setShadow.setSharedStorageContext.setSignals.setSinkId.setSkewX.setSkewY.setStart.setStartAfter.setStartBefore.setStatus.setStdDeviation.setStencilReference.setStreams.setStrictMode.setStringValue.setStrokeColor.setSuggestResult.setTargetAtTime.setTargetValueAtTime.setTime.setTimeout.setTitle.setTransform.setTranslate.setUTCDate.setUTCFullYear.setUTCHours.setUTCMilliseconds.setUTCMinutes.setUTCMonth.setUTCSeconds.setUint16.setUint32.setUint8.setUninstallURL.setUpdateUrlData.setUri.setValidity.setValueAtTime.setValueCurveAtTime.setVariable.setVelocity.setVersion.setVertexBuffer.setViewport.setYear.setZoom.setZoomSettings.settingName.settingValue.sex.shaderLocation.shaderSource.shadowBlur.shadowColor.shadowOffsetX.shadowOffsetY.shadowRoot.shadowRootClonable.shadowRootDelegatesFocus.shadowRootMode.shadowRootSerializable.shape.shape-image-threshold.shape-margin.shape-outside.shape-rendering.shapeImageThreshold.shapeMargin.shapeOutside.shapeRendering.share.sharedStorage.sharedStorageWritable.sheet.shift.shiftKey.shiftLeft.shippingAddress.shippingOption.shippingType.show.showDirectoryPicker.showHelp.showModal.showModalDialog.showModelessDialog.showNotification.showOpenFilePicker.showPicker.showPopover.showSaveFilePicker.sidebar.sidebarAction.sign.signal.signalingState.signature.silent.sin.singleNodeValue.sinh.sinkId.sittingToStandingTransform.size.sizeAdjust.sizeToContent.sizeX.sizeZ.sizes.skewX.skewXSelf.skewY.skewYSelf.skipTransition.skipped.slice.slope.slot.slotAssignment.small.smil.smooth.smoothingTimeConstant.snapTargetBlock.snapTargetInline.snapToLines.snapshotItem.snapshotLength.some.sort.sortingCode.source.sourceBuffer.sourceBuffers.sourceCapabilities.sourceCharPosition.sourceFile.sourceFunctionName.sourceIndex.sourceMap.sourceURL.sources.spacing.span.speak.speakAs.speaking.species.specified.specularConstant.specularExponent.speechSynthesis.speed.speedOfSound.spellcheck.sphericalHarmonicsCoefficients.splice.split.splitText.spreadMethod.sqrt.src.srcElement.srcFactor.srcFilter.srcObject.srcUrn.srcdoc.srclang.srcset.stack.stackTraceLimit.stacktrace.stageParameters.standalone.standby.start.startContainer.startE.startIce.startLoadTime.startMessages.startNotifications.startOffset.startProfiling.startRendering.startShark.startTime.startViewTransition.startsWith.state.states.stats.status.statusCode.statusMessage.statusText.statusbar.stdDeviationX.stdDeviationY.stencilBack.stencilClearValue.stencilFront.stencilFunc.stencilFuncSeparate.stencilLoadOp.stencilMask.stencilMaskSeparate.stencilOp.stencilOpSeparate.stencilReadMask.stencilReadOnly.stencilStoreOp.stencilWriteMask.step.stepDown.stepMismatch.stepMode.stepUp.sticky.stitchTiles.stop.stop-color.stop-opacity.stopColor.stopImmediatePropagation.stopNotifications.stopOpacity.stopProfiling.stopPropagation.stopShark.stopped.storage.storageArea.storageBuckets.storageName.storageStatus.storageTexture.store.storeOp.storeSiteSpecificTrackingException.storeWebWideTrackingException.stpVersion.stream.streamErrorCode.streams.stretch.strike.string.stringValue.stringify.stripIndexFormat.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeRect.strokeStyle.strokeText.strokeWidth.structuredClone.style.styleAndLayoutStart.styleFloat.styleMap.styleMedia.styleSheet.styleSheetSets.styleSheets.sub.subarray.subject.submit.submitFrame.submitter.subscribe.substr.substring.substringData.subtle.subtree.suffix.suffixes.summary.sup.supported.supportedContentEncodings.supportedEntryTypes.supportedValuesOf.supports.supportsFiber.supportsSession.supportsText.surfaceScale.surroundContents.suspend.suspendRedraw.svb.svh.svi.svmax.svmin.svw.swapCache.swapNode.sweepFlag.symbols.symmetricDifference.sync.syntax.sysexEnabled.system.systemCode.systemId.systemLanguage.systemXDPI.systemYDPI.tBodies.tFoot.tHead.tab.tab-size.tabId.tabIds.tabIndex.tabSize.table.table-layout.tableLayout.tableValues.tabs.tag.tagName.tagUrn.tags.taintEnabled.take.takePhoto.takeRecords.tan.tangentialPressure.tanh.target.targetAddressSpace.targetElement.targetRayMode.targetRaySpace.targetTouches.targetURL.targetX.targetY.targets.tcpType.tee.tel.telemetry.terminate.test.texImage2D.texImage3D.texParameterf.texParameteri.texStorage2D.texStorage3D.texSubImage2D.texSubImage3D.text.text-align.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.textAlign.textAlignLast.textAnchor.textAutospace.textBaseline.textCombineUpright.textContent.textDecoration.textDecorationBlink.textDecorationColor.textDecorationLine.textDecorationLineThrough.textDecorationNone.textDecorationOverline.textDecorationSkipInk.textDecorationStyle.textDecorationThickness.textDecorationUnderline.textEmphasis.textEmphasisColor.textEmphasisPosition.textEmphasisStyle.textIndent.textJustify.textJustifyTrim.textKashida.textKashidaSpace.textLength.textOrientation.textOverflow.textRendering.textShadow.textTracks.textTransform.textUnderlineOffset.textUnderlinePosition.textWrap.textWrapMode.textWrapStyle.texture.theme.then.threadId.threshold.thresholds.throwIfAborted.tiltX.tiltY.time.timeEnd.timeLog.timeOrigin.timeRemaining.timeStamp.timecode.timeline.timelineTime.timeout.timestamp.timestampOffset.timestampWrites.timing.title.titlebarAreaRect.tlsChannelId.to.toArray.toBase64.toBlob.toDataURL.toDateString.toElement.toExponential.toFixed.toFloat32Array.toFloat64Array.toGMTString.toHex.toISOString.toJSON.toLocaleDateString.toLocaleFormat.toLocaleLowerCase.toLocaleString.toLocaleTimeString.toLocaleUpperCase.toLowerCase.toMatrix.toMethod.toPrecision.toPrimitive.toReversed.toSdp.toSorted.toSource.toSpliced.toStaticHTML.toString.toStringTag.toSum.toTimeString.toUTCString.toUpperCase.toWellFormed.toggle.toggleAttribute.toggleLongPressEnabled.togglePopover.toggleReaderMode.token.tone.toneBuffer.tooLong.tooShort.toolbar.top.topMargin.topSites.topology.total.totalFrameDelay.totalFrames.totalFramesDuration.totalVideoFrames.touch-action.touchAction.touched.touches.trace.track.trackVisibility.trackedAnchors.tracks.tran.transaction.transactions.transceiver.transfer.transferControlToOffscreen.transferFromImageBitmap.transferImageBitmap.transferIn.transferOut.transferSize.transferToFixedLength.transferToImageBitmap.transform.transform-box.transform-origin.transform-style.transformBox.transformFeedbackVaryings.transformOrigin.transformPoint.transformString.transformStyle.transformToDocument.transformToFragment.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.transitionBehavior.transitionDelay.transitionDuration.transitionProperty.transitionTimingFunction.translate.translateSelf.translationX.translationY.transport.traverseTo.trim.trimEnd.trimLeft.trimRight.trimStart.trueSpeed.trunc.truncate.trustedTypes.try.turn.twist.type.typeDetail.typeMismatch.typeMustMatch.types.u2f.ubound.uint16.uint32.uint8.uint8Clamped.unadjustedMovement.unclippedDepth.unconfigure.undefined.underlineStyle.underlineThickness.unescape.uneval.ungroup.unicode.unicode-bidi.unicodeBidi.unicodeRange.unicodeSets.uniform1f.uniform1fv.uniform1i.uniform1iv.uniform1ui.uniform1uiv.uniform2f.uniform2fv.uniform2i.uniform2iv.uniform2ui.uniform2uiv.uniform3f.uniform3fv.uniform3i.uniform3iv.uniform3ui.uniform3uiv.uniform4f.uniform4fv.uniform4i.uniform4iv.uniform4ui.uniform4uiv.uniformBlockBinding.uniformMatrix2fv.uniformMatrix2x3fv.uniformMatrix2x4fv.uniformMatrix3fv.uniformMatrix3x2fv.uniformMatrix3x4fv.uniformMatrix4fv.uniformMatrix4x2fv.uniformMatrix4x3fv.uninstallSelf.union.unique.uniqueID.uniqueNumber.unit.unitType.units.unloadEventEnd.unloadEventStart.unlock.unmap.unmount.unobserve.unpackColorSpace.unpause.unpauseAnimations.unreadCount.unregister.unregisterContentHandler.unregisterProtocolHandler.unscopables.unselectable.unshift.unsubscribe.unsuspendRedraw.unsuspendRedrawAll.unwatch.unwrapKey.upDegrees.upX.upY.upZ.update.updateAdInterestGroups.updateCallbackDone.updateCharacterBounds.updateCommands.updateControlBounds.updateCurrentEntry.updateIce.updateInkTrailStartPoint.updateInterval.updatePlaybackRate.updateRangeEnd.updateRangeStart.updateRenderState.updateSelection.updateSelectionBounds.updateSettings.updateText.updateTiming.updateViaCache.updateWith.updated.updating.upgrade.upload.uploadTotal.uploaded.upper.upperBound.upperOpen.uri.url.urn.urns.usage.usages.usb.usbVersionMajor.usbVersionMinor.usbVersionSubminor.useCurrentView.useMap.useProgram.usedSpace.user-select.userActivation.userAgent.userAgentData.userChoice.userHandle.userHint.userInitiated.userLanguage.userSelect.userState.userVisibleOnly.username.usernameFragment.utterance.uuid.v8BreakIterator.vAlign.vLink.valid.validate.validateProgram.validationMessage.validity.value.valueAsDate.valueAsNumber.valueAsString.valueInSpecifiedUnits.valueMissing.valueOf.valueText.valueType.values.variable.variant.variationSettings.vb.vector-effect.vectorEffect.velocityAngular.velocityExpansion.velocityX.velocityY.vendor.vendorId.vendorSub.verify.version.vertex.vertexAttrib1f.vertexAttrib1fv.vertexAttrib2f.vertexAttrib2fv.vertexAttrib3f.vertexAttrib3fv.vertexAttrib4f.vertexAttrib4fv.vertexAttribDivisor.vertexAttribDivisorANGLE.vertexAttribI4i.vertexAttribI4iv.vertexAttribI4ui.vertexAttribI4uiv.vertexAttribIPointer.vertexAttribPointer.vertical.vertical-align.verticalAlign.verticalOverflow.vh.vi.vibrate.vibrationActuator.videoBitsPerSecond.videoHeight.videoTracks.videoWidth.view.viewBox.viewBoxString.viewDimension.viewFormats.viewTarget.viewTargetString.viewTransition.viewport.viewportAnchorX.viewportAnchorY.viewportElement.views.violatedDirective.virtualKeyboard.virtualKeyboardPolicy.visibility.visibilityState.visible.visibleRect.visualViewport.vlinkColor.vmax.vmin.voice.voiceURI.volume.vrml.vspace.vw.w.wait.waitAsync.waitSync.waiting.wake.wakeLock.wand.warmup.warn.wasAlternateProtocolAvailable.wasClean.wasDiscarded.wasFetchedViaSpdy.wasNpnNegotiated.watch.watchAvailability.watchPosition.webNavigation.webRequest.webdriver.webkitAddKey.webkitAlignContent.webkitAlignItems.webkitAlignSelf.webkitAnimation.webkitAnimationDelay.webkitAnimationDirection.webkitAnimationDuration.webkitAnimationFillMode.webkitAnimationIterationCount.webkitAnimationName.webkitAnimationPlayState.webkitAnimationTimingFunction.webkitAppearance.webkitAudioContext.webkitAudioDecodedByteCount.webkitAudioPannerNode.webkitBackfaceVisibility.webkitBackground.webkitBackgroundAttachment.webkitBackgroundClip.webkitBackgroundColor.webkitBackgroundImage.webkitBackgroundOrigin.webkitBackgroundPosition.webkitBackgroundPositionX.webkitBackgroundPositionY.webkitBackgroundRepeat.webkitBackgroundSize.webkitBackingStorePixelRatio.webkitBorderBottomLeftRadius.webkitBorderBottomRightRadius.webkitBorderImage.webkitBorderImageOutset.webkitBorderImageRepeat.webkitBorderImageSlice.webkitBorderImageSource.webkitBorderImageWidth.webkitBorderRadius.webkitBorderTopLeftRadius.webkitBorderTopRightRadius.webkitBoxAlign.webkitBoxDirection.webkitBoxFlex.webkitBoxOrdinalGroup.webkitBoxOrient.webkitBoxPack.webkitBoxShadow.webkitBoxSizing.webkitCancelAnimationFrame.webkitCancelFullScreen.webkitCancelKeyRequest.webkitCancelRequestAnimationFrame.webkitClearResourceTimings.webkitClipPath.webkitClosedCaptionsVisible.webkitConvertPointFromNodeToPage.webkitConvertPointFromPageToNode.webkitCreateShadowRoot.webkitCurrentFullScreenElement.webkitCurrentPlaybackTargetIsWireless.webkitDecodedFrameCount.webkitDirectionInvertedFromDevice.webkitDisplayingFullscreen.webkitDroppedFrameCount.webkitEnterFullScreen.webkitEnterFullscreen.webkitEntries.webkitExitFullScreen.webkitExitFullscreen.webkitExitPointerLock.webkitFilter.webkitFlex.webkitFlexBasis.webkitFlexDirection.webkitFlexFlow.webkitFlexGrow.webkitFlexShrink.webkitFlexWrap.webkitFontFeatureSettings.webkitFullScreenKeyboardInputAllowed.webkitFullscreenElement.webkitFullscreenEnabled.webkitGenerateKeyRequest.webkitGetAsEntry.webkitGetDatabaseNames.webkitGetEntries.webkitGetEntriesByName.webkitGetEntriesByType.webkitGetFlowByName.webkitGetGamepads.webkitGetImageDataHD.webkitGetNamedFlows.webkitGetRegionFlowRanges.webkitGetUserMedia.webkitHasClosedCaptions.webkitHidden.webkitIDBCursor.webkitIDBDatabase.webkitIDBDatabaseError.webkitIDBDatabaseException.webkitIDBFactory.webkitIDBIndex.webkitIDBKeyRange.webkitIDBObjectStore.webkitIDBRequest.webkitIDBTransaction.webkitImageSmoothingEnabled.webkitIndexedDB.webkitInitMessageEvent.webkitIsFullScreen.webkitJustifyContent.webkitKeys.webkitLineClamp.webkitLineDashOffset.webkitLockOrientation.webkitMask.webkitMaskClip.webkitMaskComposite.webkitMaskImage.webkitMaskOrigin.webkitMaskPosition.webkitMaskPositionX.webkitMaskPositionY.webkitMaskRepeat.webkitMaskSize.webkitMatchesSelector.webkitMediaStream.webkitNotifications.webkitOfflineAudioContext.webkitOrder.webkitOrientation.webkitPeerConnection00.webkitPersistentStorage.webkitPerspective.webkitPerspectiveOrigin.webkitPointerLockElement.webkitPostMessage.webkitPreservesPitch.webkitPutImageDataHD.webkitRTCPeerConnection.webkitRegionOverset.webkitRelativePath.webkitRequestAnimationFrame.webkitRequestFileSystem.webkitRequestFullScreen.webkitRequestFullscreen.webkitRequestPointerLock.webkitResolveLocalFileSystemURL.webkitSetMediaKeys.webkitSetResourceTimingBufferSize.webkitShadowRoot.webkitShowPlaybackTargetPicker.webkitSlice.webkitSpeechGrammar.webkitSpeechGrammarList.webkitSpeechRecognition.webkitSpeechRecognitionError.webkitSpeechRecognitionEvent.webkitStorageInfo.webkitSupportsFullscreen.webkitTemporaryStorage.webkitTextFillColor.webkitTextSecurity.webkitTextSizeAdjust.webkitTextStroke.webkitTextStrokeColor.webkitTextStrokeWidth.webkitTransform.webkitTransformOrigin.webkitTransformStyle.webkitTransition.webkitTransitionDelay.webkitTransitionDuration.webkitTransitionProperty.webkitTransitionTimingFunction.webkitURL.webkitUnlockOrientation.webkitUserSelect.webkitVideoDecodedByteCount.webkitVisibilityState.webkitWirelessVideoPlaybackDisabled.webkitdirectory.webkitdropzone.webstore.weight.wgslLanguageFeatures.whatToShow.wheelDelta.wheelDeltaX.wheelDeltaY.whenDefined.which.white-space.white-space-collapse.whiteSpace.whiteSpaceCollapse.wholeText.widows.width.will-change.willChange.willValidate.window.windowAttribution.windowControlsOverlay.windowId.windowIds.windows.with.withCredentials.withResolvers.word-break.word-spacing.word-wrap.wordBreak.wordSpacing.wordWrap.workerStart.worklet.wow64.wrap.wrapKey.writable.writableAuxiliaries.write.writeBuffer.writeMask.writeText.writeTexture.writeTimestamp.writeValue.writeValueWithResponse.writeValueWithoutResponse.writeWithoutResponse.writeln.writing-mode.writingMode.writingSuggestions.x.x1.x2.xChannelSelector.xmlEncoding.xmlStandalone.xmlVersion.xmlbase.xmllang.xmlspace.xor.xr.y.y1.y2.yChannelSelector.yandex.yield.z.z-index.zIndex.zoom.zoomAndPan.zoomRectScreen".split(`.`);function KP(e){GP.forEach(i);var t=[`Symbol`,`Map`,`Promise`,`Proxy`,`Reflect`,`Set`,`WeakMap`,`WeakSet`],n={},r=typeof global==`object`?global:self;t.forEach(function(e){n[e]=r[e]||function(){}}),[`null`,`true`,`false`,`NaN`,`Infinity`,`-Infinity`,`undefined`].forEach(i),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(i),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(i)});function i(t){e.add(t)}}function qP(e,t){function n(e){kE(t,e)}e.walk(new gA(function(e){e instanceof mk&&e.quote?n(e.key):e instanceof pk&&e.quote?n(e.key.name):e instanceof rk&&JP(e.property,n)}))}function JP(e,t){e.walk(new gA(function(e){return e instanceof $O?JP(e.tail_node(),t):e instanceof eA?t(e.value):e instanceof ck&&(JP(e.consequent,t),JP(e.alternative,t)),!0}))}function YP(e,t){var n=-1,r=new Map,i=t.nth_identifier||VA;return e=e.transform(new _A(function(e){e instanceof Ck||e instanceof bk||e instanceof gk||e instanceof hk||e instanceof wk?e.key.name=a(e.key.name):e instanceof nk&&(e.property=a(e.property))})),e;function a(e){let t=r.get(e);return t||(t=i.get(++n),r.set(e,t)),t}}function XP(e){var t=new Set;return pA(e,e=>{e instanceof Ck||e instanceof bk||e instanceof gk||e instanceof hk||e instanceof nk||(e instanceof mk?typeof e.key==`string`&&WE(e,16)&&t.add(e.key):e instanceof pk?WE(e,16)&&t.add(e.key.name):e instanceof tk?WE(e,16)&&t.add(e.property):e instanceof rk&&e.property instanceof eA&&WE(e,16)&&t.add(e.property.value))}),t}function ZP(e,t,n=XP(e)){t=SE(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,nth_identifier:VA,only_cache:!1,regex:null,reserved:null,undeclared:!1,only_annotated:!1},!0);var r=t.nth_identifier,i=t.reserved;Array.isArray(i)||(i=[i]);var a=new Set(i);t.builtins||KP(a);var o=-1,s=t.cache?t.cache.props:new Map,c=t.only_annotated,l=t.regex&&new RegExp(t.regex),u=t.debug!==!1,d;u&&(d=t.debug===!0?``:t.debug);var f=new Set,p=new Set;s.forEach(e=>p.add(e));var m=!!t.keep_quoted;return e.walk(new gA(function(e){if(!(e instanceof Ck||e instanceof bk||e instanceof gk||e instanceof hk||e instanceof nk))if(e instanceof mk)typeof e.key==`string`&&(!m||!e.quote)&&_(e.key);else if(e instanceof pk)(!m||!e.quote)&&_(e.key.name);else if(e instanceof tk){var n=!!t.undeclared;if(!n){for(var r=e;r.expression;)r=r.expression;n=!(r.thedef&&r.thedef.undeclared)}n&&(!m||!e.quote)&&_(e.property)}else e instanceof rk?m||JP(e.property,_):e instanceof ZO&&e.expression.print_to_string()==`Object.defineProperty`?JP(e.args[1],_):e instanceof Q&&e.operator===`in`?JP(e.left,_):e instanceof eA&&WE(e,8)&&_(e.value)})),e.transform(new _A(function(e){e instanceof Ck||e instanceof bk||e instanceof gk||e instanceof hk||e instanceof nk||(e instanceof mk?typeof e.key==`string`&&(!m||!e.quote)&&(e.key=v(e.key)):e instanceof pk?(!m||!e.quote)&&(e.computed_key()||(e.key.name=v(e.key.name))):e instanceof tk?(!m||!e.quote)&&(e.property=v(e.property)):!m&&e instanceof rk?e.property=y(e.property):e instanceof ZO&&e.expression.print_to_string()==`Object.defineProperty`?e.args[1]=y(e.args[1]):e instanceof Q&&e.operator===`in`?e.left=y(e.left):e instanceof eA&&WE(e,8)&&(KE(e,8),e.value=v(e.value)))}));function h(e){return p.has(e)||a.has(e)?!1:t.only_cache?s.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)}function g(e){return c&&!n.has(e)?!1:l&&!l.test(e)?n.has(e):a.has(e)?!1:s.has(e)||f.has(e)}function _(e){h(e)&&f.add(e),g(e)||p.add(e)}function v(e){if(!g(e))return e;var t=s.get(e);if(!t){if(u){var n=`_$`+e+`$`+d+`_`;h(n)&&(t=n)}if(!t)do t=r.get(++o);while(!h(t));s.set(e,t)}return t}function y(e){return e.transform(new _A(function(e){if(e instanceof $O){var t=e.expressions.length-1;e.expressions[t]=y(e.expressions[t])}else e instanceof eA?(KE(e,8),e.value=v(e.value)):e instanceof ck&&(e.consequent=y(e.consequent),e.alternative=y(e.alternative));return e}))}}var QP=typeof Buffer<`u`?e=>Buffer.from(e,`base64`).toString():e=>decodeURIComponent(escape(atob(e))),$P=typeof Buffer<`u`?e=>Buffer.from(e).toString(`base64`):e=>btoa(unescape(encodeURIComponent(e)));function eF(e){var t=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(e);return t?QP(t[2]):(console.warn(`inline source map not found`),null)}function tF(e,t,n){t[e]&&n.forEach(function(n){t[n]&&(typeof t[n]!=`object`&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))})}function nF(e){e&&(`props`in e?e.props instanceof Map||(e.props=FE(e.props)):e.props=new Map)}function rF(e){return{props:IE(e.props)}}function iF(e,t,n,r){if(!(n&&n.writeFileSync&&n.mkdirSync))return;try{n.mkdirSync(r)}catch(e){if(e.code!==`EEXIST`)throw e}let i=`${r}/terser-debug-${Math.random()*9999999|0}.log`;t||={};let a=JSON.stringify(t,(e,t)=>typeof t==`function`?`[Function `+t.toString()+`]`:t instanceof RegExp?`[RegExp `+t.toString()+`]`:t,4),o=e=>typeof e==`object`&&t.parse&&t.parse.spidermonkey?JSON.stringify(e,null,2):typeof e==`object`?Object.keys(e).map(t=>t+`: `+o(e[t])).join(`
`):typeof e==`string`?"```\n"+e+"\n```":e;n.writeFileSync(i,`Options:
`+a+`
Input files:
`+o(e)+`
`)}function*aF(e,t,n){n&&typeof process==`object`&&process.env&&typeof process.env.TERSER_DEBUG_DIR==`string`&&iF(e,t,n,process.env.TERSER_DEBUG_DIR),t=SE(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,spidermonkey:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0);var r=t.timings&&{start:Date.now()};if(t.keep_classnames===void 0&&(t.keep_classnames=t.keep_fnames),t.rename===void 0&&(t.rename=t.compress&&t.mangle),t.output&&t.format)throw Error(`Please only specify either output or format option, preferrably format.`);t.format=t.format||t.output||{},tF(`ecma`,t,[`parse`,`compress`,`format`]),tF(`ie8`,t,[`compress`,`mangle`,`format`]),tF(`keep_classnames`,t,[`compress`,`mangle`]),tF(`keep_fnames`,t,[`compress`,`mangle`]),tF(`module`,t,[`parse`,`compress`,`mangle`]),tF(`safari10`,t,[`mangle`,`format`]),tF(`toplevel`,t,[`compress`,`mangle`]),tF(`warnings`,t,[`compress`]);var i;t.mangle&&(t.mangle=SE(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,nth_identifier:VA,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&(typeof t.mangle.properties!=`object`&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(i=t.mangle.properties.reserved,Array.isArray(i)||(i=[]),t.mangle.properties.reserved=i),t.nameCache&&!(`cache`in t.mangle.properties)&&(t.mangle.properties.cache=t.nameCache.props||{})),nF(t.mangle.cache),nF(t.mangle.properties.cache)),t.sourceMap&&=SE(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0),r&&(r.parse=Date.now());var a;if(e instanceof lO)a=e;else{if((typeof e==`string`||t.parse.spidermonkey&&!Array.isArray(e))&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,t.parse.spidermonkey)t.parse.toplevel=Z.from_mozilla_ast(Object.keys(e).reduce(function(t,n){return t?(t.body=t.body.concat(e[n].body),t):e[n]},null));else for(var o in delete t.parse.spidermonkey,e)if(LE(e,o)&&(t.parse.filename=o,t.parse.toplevel=zD(e[o],t.parse),t.sourceMap&&t.sourceMap.content==`inline`)){if(Object.keys(e).length>1)throw Error(`inline source map only works with singular input`);t.sourceMap.content=eF(e[o])}if(t.parse.toplevel===null)throw Error(`no source file given`);a=t.parse.toplevel}i&&t.mangle.properties.keep_quoted!==`strict`&&qP(a,i);var s;t.mangle&&t.mangle.properties&&(s=XP(a)),t.wrap&&(a=a.wrap_commonjs(t.wrap)),t.enclose&&(a=a.wrap_enclose(t.enclose)),r&&(r.rename=Date.now()),r&&(r.compress=Date.now()),t.compress&&(a=new TM(t.compress,{mangle_options:t.mangle}).compress(a)),r&&(r.scope=Date.now()),t.mangle&&a.figure_out_scope(t.mangle),r&&(r.mangle=Date.now()),t.mangle&&(a.compute_char_frequency(t.mangle),a.mangle_names(t.mangle),a=YP(a,t.mangle)),r&&(r.properties=Date.now()),t.mangle&&t.mangle.properties&&(a=ZP(a,t.mangle.properties,s)),r&&(r.format=Date.now());var c={};t.format.ast&&(c.ast=a),t.format.spidermonkey&&(c.ast=a.to_mozilla_ast());let l;if(!LE(t.format,`code`)||t.format.code){if(l={...t.format},l.ast||(l._destroy_ast=!0,pA(a,e=>{e instanceof cO&&(e.variables=void 0,e.enclosed=void 0,e.parent_scope=void 0),e.block_scope&&(e.block_scope.variables=void 0,e.block_scope.enclosed=void 0,e.block_scope.parent_scope=void 0)})),t.sourceMap){if(t.sourceMap.includeSources&&e instanceof lO)throw Error(`original source content unavailable`);l.source_map=yield*WP({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root,files:t.sourceMap.includeSources?e:null})}delete l.ast,delete l.code,delete l.spidermonkey;var u=kA(l);if(a.print(u),c.code=u.get(),t.sourceMap)if(Object.defineProperty(c,`map`,{configurable:!0,enumerable:!0,get(){let e=l.source_map.getEncoded();return c.map=t.sourceMap.asObject?e:JSON.stringify(e)},set(e){Object.defineProperty(c,`map`,{value:e,writable:!0})}}),c.decoded_map=l.source_map.getDecoded(),t.sourceMap.url==`inline`){var d=typeof c.map==`object`?JSON.stringify(c.map):c.map;c.code+=`
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+$P(d)}else t.sourceMap.url&&(c.code+=`
//# sourceMappingURL=`+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=rF(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=rF(t.mangle.properties.cache))),l&&l.source_map&&l.source_map.destroy(),r&&(r.end=Date.now(),c.timings={parse:.001*(r.rename-r.parse),rename:.001*(r.compress-r.rename),compress:.001*(r.scope-r.compress),scope:.001*(r.mangle-r.scope),mangle:.001*(r.properties-r.mangle),properties:.001*(r.format-r.properties),format:.001*(r.end-r.format),total:.001*(r.end-r.start)}),c}async function oF(e,t,n){let r=aF(e,t,n),i,a;do a=r.next(await i),i=a.value;while(!a.done);return a.value}var sF=F(((e,t)=>{function n(e){return e}t.exports=n})),cF=F(((e,t)=>{var n=/([0-9]+)/;function r(e,t){var r=(``+e).split(n).map(i),a=(``+t).split(n).map(i),o,s,c=Math.min(r.length,a.length),l,u;for(l=0,u=c;l<u;l++)if(o=r[l],s=a[l],o!=s)return o>s?1:-1;return r.length>a.length?1:r.length==a.length?0:-1}function i(e){return``+parseInt(e)==e?parseInt(e):e}t.exports=r})),lF=F(((e,t)=>{var n=cF();function r(e,t){return n(e[1],t[1])}function i(e,t){return e[1]>t[1]?1:-1}function a(e,t){switch(t){case`natural`:return e.sort(r);case`standard`:return e.sort(i);case`none`:case!1:return e}}t.exports=a})),uF=F(((e,t)=>{function n(e,t){var r={},i,a,o;for(i in e)o=e[i],Array.isArray(o)?r[i]=o.slice(0):typeof o==`object`&&o?r[i]=n(o,{}):r[i]=o;for(a in t)o=t[a],a in r&&Array.isArray(o)?r[a]=o.slice(0):a in r&&typeof o==`object`&&o?r[a]=n(r[a],o):r[a]=o;return r}t.exports=n})),dF=F(((e,t)=>{var n=uF();function r(){var e=`
`;try{e=ve(`os`).EOL}catch{}return e}var i={AfterAtRule:`afterAtRule`,AfterBlockBegins:`afterBlockBegins`,AfterBlockEnds:`afterBlockEnds`,AfterComment:`afterComment`,AfterProperty:`afterProperty`,AfterRuleBegins:`afterRuleBegins`,AfterRuleEnds:`afterRuleEnds`,BeforeBlockEnds:`beforeBlockEnds`,BetweenSelectors:`betweenSelectors`},a={CarriageReturnLineFeed:`\r
`,LineFeed:`
`,System:r()},o={Space:` `,Tab:` `},s={AroundSelectorRelation:`aroundSelectorRelation`,BeforeBlockBegins:`beforeBlockBegins`,BeforeValue:`beforeValue`},c={breaks:y(!1),breakWith:a.System,indentBy:0,indentWith:o.Space,spaces:b(!1),wrapAt:!1,semicolonAfterLastProperty:!1},l=`beautify`,u=`keep-breaks`,d=`;`,f=`:`,p=`,`,m=`=`,h=`false`,g=`off`,_=`true`,v=`on`;function y(e){var t={};return t[i.AfterAtRule]=e,t[i.AfterBlockBegins]=e,t[i.AfterBlockEnds]=e,t[i.AfterComment]=e,t[i.AfterProperty]=e,t[i.AfterRuleBegins]=e,t[i.AfterRuleEnds]=e,t[i.BeforeBlockEnds]=e,t[i.BetweenSelectors]=e,t}function b(e){var t={};return t[s.AroundSelectorRelation]=e,t[s.BeforeBlockBegins]=e,t[s.BeforeValue]=e,t}function x(e){return e===void 0||e===!1?!1:(typeof e==`object`&&`breakWith`in e&&(e=n(e,{breakWith:T(e.breakWith)})),typeof e==`object`&&`indentBy`in e&&(e=n(e,{indentBy:parseInt(e.indentBy)})),typeof e==`object`&&`indentWith`in e&&(e=n(e,{indentWith:E(e.indentWith)})),typeof e==`object`?D(n(c,e)):typeof e==`string`&&e==l?D(n(c,{breaks:y(!0),indentBy:2,spaces:b(!0)})):typeof e==`string`&&e==u?D(n(c,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}})):typeof e==`string`?D(n(c,S(e))):c)}function S(e){return e.split(d).reduce(function(e,t){var n=t.split(f),r=n[0],i=n[1];return r==`breaks`||r==`spaces`?e[r]=C(i):r==`indentBy`||r==`wrapAt`?e[r]=parseInt(i):r==`indentWith`?e[r]=E(i):r==`breakWith`&&(e[r]=T(i)),e},{})}function C(e){return e.split(p).reduce(function(e,t){var n=t.split(m),r=n[0],i=n[1];return e[r]=w(i),e},{})}function w(e){switch(e){case h:case g:return!1;case _:case v:return!0;default:return e}}function T(e){switch(e){case`windows`:case`crlf`:case a.CarriageReturnLineFeed:return a.CarriageReturnLineFeed;case`unix`:case`lf`:case a.LineFeed:return a.LineFeed;default:return a.System}}function E(e){switch(e){case`space`:return o.Space;case`tab`:return o.Tab;default:return e}}function D(e){for(var t in i){var n=i[t],r=e.breaks[n];r===!0?e.breaks[n]=e.breakWith:r===!1?e.breaks[n]=``:e.breaks[n]=e.breakWith.repeat(parseInt(r))}return e}t.exports={Breaks:i,Spaces:s,formatFrom:x}})),fF=F(((e,t)=>{t.exports={ASTERISK:`*`,AT:`@`,BACK_SLASH:`\\`,CARRIAGE_RETURN:`\r`,CLOSE_CURLY_BRACKET:`}`,CLOSE_ROUND_BRACKET:`)`,CLOSE_SQUARE_BRACKET:`]`,COLON:`:`,COMMA:`,`,DOUBLE_QUOTE:`"`,EXCLAMATION:`!`,FORWARD_SLASH:`/`,INTERNAL:`-clean-css-`,NEW_LINE_NIX:`
`,OPEN_CURLY_BRACKET:`{`,OPEN_ROUND_BRACKET:`(`,OPEN_SQUARE_BRACKET:`[`,SEMICOLON:`;`,SINGLE_QUOTE:`'`,SPACE:` `,TAB:` `,UNDERSCORE:`_`}})),pF=F(((e,t)=>{function n(e){var t=e[0],n=e[1],r=e[2];return r?r+`:`+t+`:`+n:t+`:`+n}t.exports=n})),mF=F(((e,t)=>{var n=dF().Spaces,r=fF(),i=pF(),a=/[\s"'][iI]\s*\]/,o=/([\d\w])([iI])\]/g,s=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,c=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,l=/^(?:(?:<!--|-->)\s*)+/,u=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,d=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,f=/[>+~]/,p=/\s/,m=`*+html `,h=`*:first-child+html `,g=`<`,_=[`:current`,`:future`,`:has`,`:host`,`:host-context`,`:is`,`:not`,`:past`,`:where`];function v(e){var t,n=!1,i,a=!1,o,s;for(o=0,s=e.length;o<s;o++){if(i=e[o],!t){if(i==r.SINGLE_QUOTE||i==r.DOUBLE_QUOTE)a=!a;else if(!a&&(i==r.CLOSE_CURLY_BRACKET||i==r.EXCLAMATION||i==g||i==r.SEMICOLON)){n=!0;break}else if(!a&&o===0&&f.test(i)){n=!0;break}}t=i==r.BACK_SLASH}return n}function y(e,t){var i=[],s,c,l,u,d,m,h,g,_,v,y,x,S=0,C=!1,w=!1,T=!1,E=a.test(e),D=t&&t.spaces[n.AroundSelectorRelation],O,k;for(O=0,k=e.length;O<k;O++){if(s=e[O],c=s==r.NEW_LINE_NIX,l=s==r.NEW_LINE_NIX&&e[O-1]==r.CARRIAGE_RETURN,m=h||g,v=!_&&!u&&S===0&&f.test(s),y=p.test(s),x=S==1&&s==r.CLOSE_ROUND_BRACKET?!1:x||S===0&&s==r.COLON&&b(e,O),d&&m&&l)i.pop(),i.pop();else if(u&&m&&c)i.pop();else if(u)i.push(s);else if(s==r.OPEN_SQUARE_BRACKET&&!m)i.push(s),_=!0;else if(s==r.CLOSE_SQUARE_BRACKET&&!m)i.push(s),_=!1;else if(s==r.OPEN_ROUND_BRACKET&&!m)i.push(s),S++;else if(s==r.CLOSE_ROUND_BRACKET&&!m)i.push(s),S--;else if(s==r.SINGLE_QUOTE&&!m)i.push(s),h=!0;else if(s==r.DOUBLE_QUOTE&&!m)i.push(s),g=!0;else if(s==r.SINGLE_QUOTE&&m)i.push(s),h=!1;else if(s==r.DOUBLE_QUOTE&&m)i.push(s),g=!1;else if(y&&w&&!D)continue;else !y&&w&&D?(i.push(r.SPACE),i.push(s)):y&&!T&&C&&S>0&&x||(y&&!T&&S>0&&x?i.push(s):y&&(_||S>0)&&!m||y&&T&&!m||(l||c)&&(_||S>0)&&m||(v&&T&&!D?(i.pop(),i.push(s)):v&&!T&&D?(i.push(r.SPACE),i.push(s)):y?i.push(r.SPACE):i.push(s)));d=u,u=s==r.BACK_SLASH,w=v,T=y,C=s==r.COMMA}return E?i.join(``).replace(o,`$1 $2]`):i.join(``)}function b(e,t){var n=e.substring(t,e.indexOf(r.OPEN_ROUND_BRACKET,t));return _.indexOf(n)>-1}function x(e){return e.indexOf(`'`)==-1&&e.indexOf(`"`)==-1?e:e.replace(u,`=$1 $2`).replace(d,`=$1$2`).replace(s,`=$1 $2`).replace(c,`=$1$2`)}function S(e){return e.replace(`nth-child(1)`,`first-child`).replace(`nth-of-type(1)`,`first-of-type`).replace(`nth-of-type(even)`,`nth-of-type(2n)`).replace(`nth-child(even)`,`nth-child(2n)`).replace(`nth-of-type(2n+1)`,`nth-of-type(odd)`).replace(`nth-child(2n+1)`,`nth-child(odd)`).replace(`nth-last-child(1)`,`last-child`).replace(`nth-last-of-type(1)`,`last-of-type`).replace(`nth-last-of-type(even)`,`nth-last-of-type(2n)`).replace(`nth-last-child(even)`,`nth-last-child(2n)`).replace(`nth-last-of-type(2n+1)`,`nth-last-of-type(odd)`).replace(`nth-last-child(2n+1)`,`nth-last-child(odd)`)}function C(e,t,n,r,a){var o=[],s=[];function c(e,t){return a.push(`HTML comment '`+t+`' at `+i(e[2][0])+`. Removing.`),``}for(var u=0,d=e.length;u<d;u++){var f=e[u],p=f[1];if(p=p.replace(l,c.bind(null,f)),v(p)){a.push(`Invalid selector '`+f[1]+`' at `+i(f[2][0])+`. Ignoring.`);continue}p=y(p,r),p=x(p),n&&p.indexOf(`nav`)>0&&(p=p.replace(/\+nav(\S|$)/,`+ nav$1`)),!(t&&p.indexOf(m)>-1)&&(t&&p.indexOf(h)>-1||(p.indexOf(`*`)>-1&&(p=p.replace(/\*([:#.[])/g,`$1`).replace(/^(:first-child)?\+html/,`*$1+html`)),!(s.indexOf(p)>-1)&&(p=S(p),f[1]=p,s.push(p),o.push(f))))}return o.length==1&&o[0][1].length===0&&(a.push(`Empty selector '`+o[0][1]+`' at `+i(o[0][2][0])+`. Ignoring.`),o=[]),o}t.exports=C})),hF=F(((e,t)=>{var n=/^@media\W/,r=/^@(?:keyframes|-moz-keyframes|-o-keyframes|-webkit-keyframes)\W/;function i(e,t){var i,a,o;for(o=e.length-1;o>=0;o--)i=!t&&n.test(e[o][1]),a=r.test(e[o][1]),e[o][1]=e[o][1].replace(/\n|\r\n/g,` `).replace(/\s+/g,` `).replace(/(,|:|\() /g,`$1`).replace(/ \)/g,`)`),a&&(e[o][1]=e[o][1].replace(/'([a-zA-Z][a-zA-Z\d\-_]+)'/,`$1`).replace(/"([a-zA-Z][a-zA-Z\d\-_]+)"/,`$1`)),i&&(e[o][1]=e[o][1].replace(/\) /g,`)`));return e}t.exports=i})),gF=F(((e,t)=>{function n(e){return e.replace(/\s+/g,` `).replace(/url\(\s+/g,`url(`).replace(/\s+\)/g,`)`).trim()}t.exports=n})),_F=F(((e,t)=>{t.exports={ASTERISK:`asterisk`,BANG:`bang`,BACKSLASH:`backslash`,UNDERSCORE:`underscore`}})),vF=F(((e,t)=>{function n(e){for(var t=e.length-1;t>=0;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}t.exports=n})),yF=F(((e,t)=>{var n=_F(),r=fF(),i=`*`,a=`\\`,o=`!important`,s=`_`,c=`!ie`;function l(e,t){var n,r,i,a;for(a=e.length-1;a>=0;a--){if(n=e[a],n.dynamic&&n.important){u(n);continue}n.dynamic||n.unused||!n.dirty&&!n.important&&!n.hack||(n.optimizable&&t?(r=t(n),n.value=r):r=n.value,n.important&&u(n),n.hack&&d(n),`all`in n&&(i=n.all[n.position],i[1][1]=n.name,i.splice(2,i.length-1),Array.prototype.push.apply(i,r)))}}function u(e){e.value[e.value.length-1][1]+=o}function d(e){e.hack[0]==n.UNDERSCORE?e.name=s+e.name:e.hack[0]==n.ASTERISK?e.name=i+e.name:e.hack[0]==n.BACKSLASH?e.value[e.value.length-1][1]+=a+e.hack[1]:e.hack[0]==n.BANG&&(e.value[e.value.length-1][1]+=r.SPACE+c)}t.exports=l})),bF=F(((e,t)=>{t.exports={AT_RULE:`at-rule`,AT_RULE_BLOCK:`at-rule-block`,AT_RULE_BLOCK_SCOPE:`at-rule-block-scope`,COMMENT:`comment`,NESTED_BLOCK:`nested-block`,NESTED_BLOCK_SCOPE:`nested-block-scope`,PROPERTY:`property`,PROPERTY_BLOCK:`property-block`,PROPERTY_NAME:`property-name`,PROPERTY_VALUE:`property-value`,RAW:`raw`,RULE:`rule`,RULE_SCOPE:`rule-scope`}})),xF=F(((e,t)=>{var n=_F(),r=fF(),i=bF(),a={ASTERISK:`*`,BACKSLASH:`\\`,BANG:`!`,BANG_SUFFIX_PATTERN:/!\w+$/,IMPORTANT_TOKEN:`!important`,IMPORTANT_TOKEN_PATTERN:RegExp(`!important$`,`i`),IMPORTANT_WORD:`important`,IMPORTANT_WORD_PATTERN:RegExp(`important$`,`i`),SUFFIX_BANG_PATTERN:/!$/,UNDERSCORE:`_`,VARIABLE_REFERENCE_PATTERN:/var\(--.+\)$/};function o(e,t){var n=[],r,a,o;for(o=e.length-1;o>=0;o--)a=e[o],a[0]==i.PROPERTY&&(t&&t.indexOf(a[1][1])>-1||(r=h(a),r.all=e,r.position=o,n.unshift(r)));return n}function s(e){var t,n,r;for(t=2,n=e.length;t<n;t++)if(r=e[t],r[0]==i.PROPERTY_VALUE&&c(r[1]))return!0;return!1}function c(e){return a.VARIABLE_REFERENCE_PATTERN.test(e)}function l(e){var t,n,a;for(n=3,a=e.length;n<a;n++)if(t=e[n],t[0]==i.PROPERTY_VALUE&&(t[1]==r.COMMA||t[1]==r.FORWARD_SLASH))return!0;return!1}function u(e){var t=!1,r=e[1][1],i=e[e.length-1];return r[0]==a.UNDERSCORE?t=[n.UNDERSCORE]:r[0]==a.ASTERISK?t=[n.ASTERISK]:i[1][0]==a.BANG&&!i[1].match(a.IMPORTANT_WORD_PATTERN)||i[1].indexOf(a.BANG)>0&&!i[1].match(a.IMPORTANT_WORD_PATTERN)&&a.BANG_SUFFIX_PATTERN.test(i[1])?t=[n.BANG]:i[1].indexOf(a.BACKSLASH)>0&&i[1].indexOf(a.BACKSLASH)==i[1].length-a.BACKSLASH.length-1?t=[n.BACKSLASH,i[1].substring(i[1].indexOf(a.BACKSLASH)+1)]:i[1].indexOf(a.BACKSLASH)===0&&i[1].length==2&&(t=[n.BACKSLASH,i[1].substring(1)]),t}function d(e){if(e.length<3)return!1;var t=e[e.length-1];return!!(a.IMPORTANT_TOKEN_PATTERN.test(t[1])||a.IMPORTANT_WORD_PATTERN.test(t[1])&&a.SUFFIX_BANG_PATTERN.test(e[e.length-2][1]))}function f(e){var t=e[e.length-1],n=e[e.length-2];a.IMPORTANT_TOKEN_PATTERN.test(t[1])?t[1]=t[1].replace(a.IMPORTANT_TOKEN_PATTERN,``):(t[1]=t[1].replace(a.IMPORTANT_WORD_PATTERN,``),n[1]=n[1].replace(a.SUFFIX_BANG_PATTERN,``)),t[1].length===0&&e.pop(),n[1].length===0&&e.pop()}function p(e){e[1][1]=e[1][1].substring(1)}function m(e,t){var r=e[e.length-1];r[1]=r[1].substring(0,r[1].indexOf(t[0]==n.BACKSLASH?a.BACKSLASH:a.BANG)).trim(),r[1].length===0&&e.pop()}function h(e){var t=d(e);t&&f(e);var r=u(e);return r[0]==n.ASTERISK||r[0]==n.UNDERSCORE?p(e):(r[0]==n.BACKSLASH||r[0]==n.BANG)&&m(e,r),{block:e[2]&&e[2][0]==i.PROPERTY_BLOCK,components:[],dirty:!1,dynamic:s(e),hack:r,important:t,name:e[1][1],multiplex:e.length>3?l(e):!1,optimizable:!0,position:0,shorthand:!1,unused:!1,value:e.slice(2)}}t.exports={all:o,single:h}})),SF=F(((e,t)=>{function n(e){this.name=`InvalidPropertyError`,this.message=e,this.stack=Error().stack}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,t.exports=n})),CF=F(((e,t)=>{var n=SF(),r=xF().single,i=bF(),a=fF(),o=pF();function s(e){var t,n;for(t=0,n=e.length;t<n;t++)if(e[t][1]==`inherit`)return!0;return!1}function c(e){return function(t){return t[1]==`invert`||e.isColor(t[1])||e.isPrefixed(t[1])}}function l(e){return function(t){return t[1]!=`inherit`&&e.isStyleKeyword(t[1])&&!e.isColorFunction(t[1])}}function u(e,t,n){var a=n[e];return a.doubleValues&&a.defaultValue.length==2?r([i.PROPERTY,[i.PROPERTY_NAME,e],[i.PROPERTY_VALUE,a.defaultValue[0]],[i.PROPERTY_VALUE,a.defaultValue[1]]]):a.doubleValues&&a.defaultValue.length==1?r([i.PROPERTY,[i.PROPERTY_NAME,e],[i.PROPERTY_VALUE,a.defaultValue[0]]]):r([i.PROPERTY,[i.PROPERTY_NAME,e],[i.PROPERTY_VALUE,a.defaultValue]])}function d(e){return function(t){return t[1]!=`inherit`&&(e.isWidth(t[1])||e.isUnit(t[1])||e.isDynamicUnit(t[1]))&&!e.isStyleKeyword(t[1])&&!e.isColorFunction(t[1])}}function f(e,t,r){var i=u(e.name+`-duration`,e,t),a=u(e.name+`-timing-function`,e,t),c=u(e.name+`-delay`,e,t),l=u(e.name+`-iteration-count`,e,t),d=u(e.name+`-direction`,e,t),f=u(e.name+`-fill-mode`,e,t),p=u(e.name+`-play-state`,e,t),m=u(e.name+`-name`,e,t),h=[i,a,c,l,d,f,p,m],g=e.value,_,v=!1,y=!1,b=!1,x=!1,S=!1,C=!1,w=!1,T=!1,E,D;if(e.value.length==1&&e.value[0][1]==`inherit`)return i.value=a.value=c.value=l.value=d.value=f.value=p.value=m.value=e.value,h;if(g.length>1&&s(g))throw new n(`Invalid animation values at `+o(g[0][2][0])+`. Ignoring.`);for(E=0,D=g.length;E<D;E++)if(_=g[E],r.isTime(_[1])&&!v)i.value=[_],v=!0;else if(r.isTime(_[1])&&!b)c.value=[_],b=!0;else if((r.isGlobal(_[1])||r.isTimingFunction(_[1]))&&!y)a.value=[_],y=!0;else if((r.isAnimationIterationCountKeyword(_[1])||r.isPositiveNumber(_[1]))&&!x)l.value=[_],x=!0;else if(r.isAnimationDirectionKeyword(_[1])&&!S)d.value=[_],S=!0;else if(r.isAnimationFillModeKeyword(_[1])&&!C)f.value=[_],C=!0;else if(r.isAnimationPlayStateKeyword(_[1])&&!w)p.value=[_],w=!0;else if((r.isAnimationNameKeyword(_[1])||r.isIdentifier(_[1]))&&!T)m.value=[_],T=!0;else throw new n(`Invalid animation value at `+o(_[2][0])+`. Ignoring.`);return h}function p(e,t,r){var i=u(`background-image`,e,t),s=u(`background-position`,e,t),c=u(`background-size`,e,t),l=u(`background-repeat`,e,t),d=u(`background-attachment`,e,t),f=u(`background-origin`,e,t),p=u(`background-clip`,e,t),m=u(`background-color`,e,t),h=[i,s,c,l,d,f,p,m],g=e.value,_=!1,v=!1,y=!1,b=!1,x=!1;if(e.value.length==1&&e.value[0][1]==`inherit`)return m.value=i.value=l.value=s.value=c.value=f.value=p.value=e.value,h;if(e.value.length==1&&e.value[0][1]==`0 0`)return h;for(var S=g.length-1;S>=0;S--){var C=g[S];if(r.isBackgroundAttachmentKeyword(C[1]))d.value=[C],x=!0;else if(r.isBackgroundClipKeyword(C[1])||r.isBackgroundOriginKeyword(C[1]))v?(f.value=[C],y=!0):(p.value=[C],v=!0),x=!0;else if(r.isBackgroundRepeatKeyword(C[1]))b?l.value.unshift(C):(l.value=[C],b=!0),x=!0;else if(r.isBackgroundPositionKeyword(C[1])||r.isBackgroundSizeKeyword(C[1])||r.isUnit(C[1])||r.isDynamicUnit(C[1])){if(S>0){var w=g[S-1];w[1]==a.FORWARD_SLASH?c.value=[C]:S>1&&g[S-2][1]==a.FORWARD_SLASH?(c.value=[w,C],S-=2):(_||(s.value=[]),s.value.unshift(C),_=!0)}else _||(s.value=[]),s.value.unshift(C),_=!0;x=!0}else (m.value[0][1]==t[m.name].defaultValue||m.value[0][1]==`none`)&&(r.isColor(C[1])||r.isPrefixed(C[1]))?(m.value=[C],x=!0):(r.isUrl(C[1])||r.isFunction(C[1]))&&(i.value=[C],x=!0)}if(v&&!y&&(f.value=p.value.slice(0)),!x)throw new n(`Invalid background value at `+o(g[0][2][0])+`. Ignoring.`);return h}function m(e,t){for(var r=e.value,i=-1,s=0,c=r.length;s<c;s++)if(r[s][1]==a.FORWARD_SLASH){i=s;break}if(i===0||i===r.length-1)throw new n(`Invalid border-radius value at `+o(r[0][2][0])+`. Ignoring.`);var l=u(e.name,e,t);l.value=i>-1?r.slice(0,i):r.slice(0),l.components=v(l,t);var d=u(e.name,e,t);d.value=i>-1?r.slice(i+1):r.slice(0),d.components=v(d,t);for(var f=0;f<4;f++)l.components[f].multiplex=!0,l.components[f].value=l.components[f].value.concat(d.components[f].value);return l.components}function h(e,t,r){var i=u(`font-style`,e,t),c=u(`font-variant`,e,t),l=u(`font-weight`,e,t),d=u(`font-stretch`,e,t),f=u(`font-size`,e,t),p=u(`line-height`,e,t),m=u(`font-family`,e,t),h=[i,c,l,d,f,p,m],v=e.value,y=4,b=0,x=!1,S,C=!1,w,T=!1,E,D=!1,O,k=!1;if(!v[b])throw new n(`Missing font values at `+o(e.all[e.position][1][2][0])+`. Ignoring.`);if(v.length==1&&v[0][1]==`inherit`)return i.value=c.value=l.value=d.value=f.value=p.value=m.value=v,h;if(v.length==1&&(r.isFontKeyword(v[0][1])||r.isGlobal(v[0][1])||r.isPrefixed(v[0][1])))return v[0][1]=a.INTERNAL+v[0][1],i.value=c.value=l.value=d.value=f.value=p.value=m.value=v,h;if(v.length<2||!g(v,r)||!_(v,r))throw new n(`Invalid font values at `+o(e.all[e.position][1][2][0])+`. Ignoring.`);if(v.length>1&&s(v))throw new n(`Invalid font values at `+o(v[0][2][0])+`. Ignoring.`);for(;b<y;){if(S=r.isFontStretchKeyword(v[b][1])||r.isGlobal(v[b][1]),w=r.isFontStyleKeyword(v[b][1])||r.isGlobal(v[b][1]),E=r.isFontVariantKeyword(v[b][1])||r.isGlobal(v[b][1]),O=r.isFontWeightKeyword(v[b][1])||r.isGlobal(v[b][1]),w&&!C)i.value=[v[b]],C=!0;else if(E&&!T)c.value=[v[b]],T=!0;else if(O&&!D)l.value=[v[b]],D=!0;else if(S&&!x)d.value=[v[b]],x=!0;else if(w&&C||E&&T||O&&D||S&&x)throw new n(`Invalid font style / variant / weight / stretch value at `+o(v[0][2][0])+`. Ignoring.`);else break;b++}if(r.isFontSizeKeyword(v[b][1])||r.isUnit(v[b][1])&&!r.isDynamicUnit(v[b][1]))f.value=[v[b]],b++;else throw new n(`Missing font size at `+o(v[0][2][0])+`. Ignoring.`);if(!v[b])throw new n(`Missing font family at `+o(v[0][2][0])+`. Ignoring.`);for(v[b]&&v[b][1]==a.FORWARD_SLASH&&v[b+1]&&(r.isLineHeightKeyword(v[b+1][1])||r.isUnit(v[b+1][1])||r.isNumber(v[b+1][1]))&&(p.value=[v[b+1]],b++,b++),m.value=[];v[b];)v[b][1]==a.COMMA?k=!1:(k?m.value[m.value.length-1][1]+=a.SPACE+v[b][1]:m.value.push(v[b]),k=!0),b++;if(m.value.length===0)throw new n(`Missing font family at `+o(v[0][2][0])+`. Ignoring.`);return h}function g(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isFontSizeKeyword(n[1])||t.isUnit(n[1])&&!t.isDynamicUnit(n[1])||t.isFunction(n[1]))return!0;return!1}function _(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isIdentifier(n[1])||t.isQuotedText(n[1]))return!0;return!1}function v(e,t){var n=t[e.name].components,a=[],o=e.value;if(o.length<1)return[];o.length<2&&(o[1]=o[0].slice(0)),o.length<3&&(o[2]=o[0].slice(0)),o.length<4&&(o[3]=o[1].slice(0));for(var s=n.length-1;s>=0;s--){var c=r([i.PROPERTY,[i.PROPERTY_NAME,n[s]]]);c.value=[o[s]],a.unshift(c)}return a}function y(e){return function(t,n,r){var o=[],s=t.value,c,l,d,f;for(c=0,d=s.length;c<d;c++)s[c][1]==`,`&&o.push(c);if(o.length===0)return e(t,n,r);var p=[];for(c=0,d=o.length;c<=d;c++){var m=c===0?0:o[c-1]+1,h=c<d?o[c]:s.length,g=u(t.name,t,n);g.value=s.slice(m,h),g.value.length>0&&p.push(e(g,n,r))}var _=p[0];for(c=0,d=_.length;c<d;c++)for(_[c].multiplex=!0,l=1,f=p.length;l<f;l++)_[c].value.push([i.PROPERTY_VALUE,a.COMMA]),Array.prototype.push.apply(_[c].value,p[l][c].value);return _}}function b(e,t,n){var r=u(`list-style-type`,e,t),i=u(`list-style-position`,e,t),a=u(`list-style-image`,e,t),o=[r,i,a];if(e.value.length==1&&e.value[0][1]==`inherit`)return r.value=i.value=a.value=[e.value[0]],o;var s=e.value.slice(0),c=s.length,l=0;for(l=0,c=s.length;l<c;l++)if(n.isUrl(s[l][1])||s[l][1]==`0`){a.value=[s[l]],s.splice(l,1);break}for(l=0,c=s.length;l<c;l++)if(n.isListStylePositionKeyword(s[l][1])){i.value=[s[l]],s.splice(l,1);break}return s.length>0&&(n.isListStyleTypeKeyword(s[0][1])||n.isIdentifier(s[0][1]))&&(r.value=[s[0]]),o}function x(e,t,r){var i=u(e.name+`-property`,e,t),a=u(e.name+`-duration`,e,t),c=u(e.name+`-timing-function`,e,t),l=u(e.name+`-delay`,e,t),d=[i,a,c,l],f=e.value,p,m=!1,h=!1,g=!1,_=!1,v,y;if(e.value.length==1&&e.value[0][1]==`inherit`)return i.value=a.value=c.value=l.value=e.value,d;if(f.length>1&&s(f))throw new n(`Invalid animation values at `+o(f[0][2][0])+`. Ignoring.`);for(v=0,y=f.length;v<y;v++)if(p=f[v],r.isTime(p[1])&&!m)a.value=[p],m=!0;else if(r.isTime(p[1])&&!h)l.value=[p],h=!0;else if((r.isGlobal(p[1])||r.isTimingFunction(p[1]))&&!_)c.value=[p],_=!0;else if(r.isIdentifier(p[1])&&!g)i.value=[p],g=!0;else throw new n(`Invalid animation value at `+o(p[2][0])+`. Ignoring.`);return d}function S(e,t,n){for(var r=t[e.name],i=[u(r.components[0],e,t),u(r.components[1],e,t),u(r.components[2],e,t)],a,o,s,f=0;f<3;f++){var p=i[f];p.name.indexOf(`color`)>0?a=p:p.name.indexOf(`style`)>0?o=p:s=p}if(e.value.length==1&&e.value[0][1]==`inherit`||e.value.length==3&&e.value[0][1]==`inherit`&&e.value[1][1]==`inherit`&&e.value[2][1]==`inherit`)return a.value=o.value=s.value=[e.value[0]],i;var m=e.value.slice(0),h,g;return m.length>0&&(g=m.filter(d(n)),h=g.length>1&&(g[0][1]==`none`||g[0][1]==`auto`)?g[1]:g[0],h&&(s.value=[h],m.splice(m.indexOf(h),1))),m.length>0&&(h=m.filter(l(n))[0],h&&(o.value=[h],m.splice(m.indexOf(h),1))),m.length>0&&(h=m.filter(c(n))[0],h&&(a.value=[h],m.splice(m.indexOf(h),1))),i}t.exports={animation:f,background:p,border:S,borderRadius:m,font:h,fourValues:v,listStyle:b,multiplex:y,outline:S,transition:x}})),wF=F(((e,t)=>{var n=/(?:^|\W)(-\w+-)/g;function r(e){for(var t=[],r;(r=n.exec(e))!==null;)t.indexOf(r[0])==-1&&t.push(r[0]);return t}function i(e,t){return r(e).sort().join(`,`)==r(t).sort().join(`,`)}t.exports={unique:r,same:i}})),TF=F(((e,t)=>{var n=wF().same;function r(e,t,r,i,a){return!(!n(t,r)||a&&e.isVariable(t)!==e.isVariable(r))}t.exports=r})),EF=F(((e,t)=>{var n=TF();function r(e,t,r){return!n(e,t,r,0,!0)&&!(e.isAnimationIterationCountKeyword(r)||e.isPositiveNumber(r))?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isAnimationIterationCountKeyword(r)||e.isPositiveNumber(r)}function i(e,t,r){return!n(e,t,r,0,!0)&&!(e.isAnimationNameKeyword(r)||e.isIdentifier(r))?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isAnimationNameKeyword(r)||e.isIdentifier(r)}function a(e,t,n){if(!e.isFunction(t)||!e.isFunction(n))return!1;var r=t.substring(0,t.indexOf(`(`)),i=n.substring(0,n.indexOf(`(`)),o=t.substring(r.length+1,t.length-1),s=n.substring(i.length+1,n.length-1);return e.isFunction(o)||e.isFunction(s)?r===i&&a(e,o,s):r===i}function o(e,t,r){return!n(e,t,r,0,!0)&&!(e.isBackgroundPositionKeyword(r)||e.isGlobal(r))?!1:e.isVariable(t)&&e.isVariable(r)||e.isBackgroundPositionKeyword(r)||e.isGlobal(r)?!0:y(e,t,r)}function s(e,t,r){return!n(e,t,r,0,!0)&&!(e.isBackgroundSizeKeyword(r)||e.isGlobal(r))?!1:e.isVariable(t)&&e.isVariable(r)||e.isBackgroundSizeKeyword(r)||e.isGlobal(r)?!0:y(e,t,r)}function c(e,t,r){return!n(e,t,r,0,!0)&&!e.isColor(r)?!1:e.isVariable(t)&&e.isVariable(r)?!0:!e.colorOpacity&&(e.isRgbColor(t)||e.isHslColor(t))||!e.colorOpacity&&(e.isRgbColor(r)||e.isHslColor(r))||!e.colorHexAlpha&&(e.isHexAlphaColor(t)||e.isHexAlphaColor(r))?!1:e.isColor(t)&&e.isColor(r)?!0:h(e,t,r)}function l(e){return function(t,n,r,i){return e[i](t,n,r)}}function u(e,t,r){return n(e,t,r,0,!0)}function d(e,t,r){return!n(e,t,r,0,!0)&&!e.isImage(r)?!1:e.isVariable(t)&&e.isVariable(r)||e.isImage(r)?!0:e.isImage(t)?!1:h(e,t,r)}function f(e){return function(t,r,i){return!n(t,r,i,0,!0)&&!t.isKeyword(e)(i)?!1:t.isVariable(r)&&t.isVariable(i)?!0:t.isKeyword(e)(i)}}function p(e){return function(t,r,i){return!n(t,r,i,0,!0)&&!(t.isKeyword(e)(i)||t.isGlobal(i))?!1:t.isVariable(r)&&t.isVariable(i)?!0:t.isKeyword(e)(i)||t.isGlobal(i)}}function m(e,t,r){return!n(e,t,r,0,!0)&&!e.isIdentifier(r)?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isIdentifier(r)}function h(e,t,n){return a(e,t,n)?!0:t===n}function g(e,t,r){return!n(e,t,r,0,!0)&&!(e.isUnit(r)||e.isColor(r)||e.isGlobal(r))?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isUnit(r)||e.isColor(r)||e.isGlobal(r)}function _(e,t,r){return!n(e,t,r,0,!0)&&!e.isTime(r)?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isTime(t)&&!e.isTime(r)?!1:e.isTime(r)?!0:e.isTime(t)?!1:e.isFunction(t)&&!e.isPrefixed(t)&&e.isFunction(r)&&!e.isPrefixed(r)?!0:h(e,t,r)}function v(e,t,r){return!n(e,t,r,0,!0)&&!(e.isTimingFunction(r)||e.isGlobal(r))?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isTimingFunction(r)||e.isGlobal(r)}function y(e,t,r){return!n(e,t,r,0,!0)&&!e.isUnit(r)?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isUnit(t)&&!e.isUnit(r)?!1:e.isUnit(r)?!0:e.isUnit(t)?!1:e.isFunction(t)&&!e.isPrefixed(t)&&e.isFunction(r)&&!e.isPrefixed(r)?!0:h(e,t,r)}function b(e){var t=p(e);return function(e,n,r){return y(e,n,r)||t(e,n,r)}}function x(e,t,r){return!n(e,t,r,0,!0)&&!(e.isUnit(r)||e.isNumber(r))?!1:e.isVariable(t)&&e.isVariable(r)?!0:(e.isUnit(t)||e.isNumber(t))&&!(e.isUnit(r)||e.isNumber(r))?!1:e.isUnit(r)||e.isNumber(r)?!0:e.isUnit(t)||e.isNumber(t)?!1:e.isFunction(t)&&!e.isPrefixed(t)&&e.isFunction(r)&&!e.isPrefixed(r)?!0:h(e,t,r)}function S(e,t,r){return!n(e,t,r,0,!0)&&!e.isZIndex(r)?!1:e.isVariable(t)&&e.isVariable(r)?!0:e.isZIndex(r)}t.exports={generic:{color:c,components:l,image:d,propertyName:m,time:_,timingFunction:v,unit:y,unitOrNumber:x},property:{animationDirection:p(`animation-direction`),animationFillMode:f(`animation-fill-mode`),animationIterationCount:r,animationName:i,animationPlayState:p(`animation-play-state`),backgroundAttachment:f(`background-attachment`),backgroundClip:p(`background-clip`),backgroundOrigin:f(`background-origin`),backgroundPosition:o,backgroundRepeat:f(`background-repeat`),backgroundSize:s,bottom:b(`bottom`),borderCollapse:f(`border-collapse`),borderStyle:p(`*-style`),clear:p(`clear`),cursor:p(`cursor`),display:p(`display`),float:p(`float`),left:b(`left`),fontFamily:u,fontStretch:p(`font-stretch`),fontStyle:p(`font-style`),fontVariant:p(`font-variant`),fontWeight:p(`font-weight`),listStyleType:p(`list-style-type`),listStylePosition:p(`list-style-position`),outlineStyle:p(`*-style`),overflow:p(`overflow`),position:p(`position`),right:b(`right`),textAlign:p(`text-align`),textDecoration:p(`text-decoration`),textOverflow:p(`text-overflow`),textShadow:g,top:b(`top`),transform:h,verticalAlign:b(`vertical-align`),visibility:p(`visibility`),whiteSpace:p(`white-space`),zIndex:S}}})),DF=F(((e,t)=>{var n=xF().single,r=bF();function i(e){for(var t=a(e),n=e.components.length-1;n>=0;n--){var r=a(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t}function a(e){var t=n([r.PROPERTY,[r.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}t.exports={deep:i,shallow:a}})),OF=F(((e,t)=>{var n=DF().shallow,r=bF(),i=fF();function a(e){for(var t=0,n=e.length;t<n;t++){var r=e[t][1];if(r!=`inherit`&&r!=i.COMMA&&r!=i.FORWARD_SLASH)return!1}return!0}function o(e,t,n){var o=e.components,s=[],c,l;function u(e){Array.prototype.unshift.apply(s,e.value)}function d(e){var n=t[e.name];return n.doubleValues&&n.defaultValue.length==1?e.value[0][1]==n.defaultValue[0]&&(e.value[1]?e.value[1][1]==n.defaultValue[0]:!0):n.doubleValues&&n.defaultValue.length!=1?e.value[0][1]==n.defaultValue[0]&&(e.value[1]?e.value[1][1]:e.value[0][1])==n.defaultValue[1]:e.value[0][1]==n.defaultValue}for(var f=o.length-1;f>=0;f--){var p=o[f],m=d(p);if(p.name==`background-clip`){var h=o[f-1],g=d(h);c=p.value[0][1]==h.value[0][1],l=!c&&(g&&!m||!g&&!m||!g&&m&&p.value[0][1]!=h.value[0][1]),c?u(h):l&&(u(p),u(h)),f--}else if(p.name==`background-size`){var _=o[f-1],v=d(_);c=!v&&m,l=!c&&(v&&!m||!v&&!m),c?u(_):l?(u(p),s.unshift([r.PROPERTY_VALUE,i.FORWARD_SLASH]),u(_)):_.value.length==1&&u(_),f--}else{if(m||t[p.name].multiplexLastOnly&&!n)continue;u(p)}}return s.length===0&&e.value.length==1&&e.value[0][1]==`0`&&s.push(e.value[0]),s.length===0&&s.push([r.PROPERTY_VALUE,t[e.name].defaultValue]),a(s)?[s[0]]:s}function s(e){if(e.multiplex){for(var t=n(e),a=n(e),o=0;o<4;o++){var s=e.components[o],c=n(e);c.value=[s.value[0]],t.components.push(c);var u=n(e);u.value=[s.value[1]||s.value[0]],a.components.push(u)}var d=l(t),f=l(a);return d.length==f.length&&d[0][1]==f[0][1]&&(!(d.length>1)||d[1][1]==f[1][1])&&(!(d.length>2)||d[2][1]==f[2][1])&&(!(d.length>3)||d[3][1]==f[3][1])?d:d.concat([[r.PROPERTY_VALUE,i.FORWARD_SLASH]]).concat(f)}return l(e)}function c(e,t){var n=e.components,o=[],s,c=0,l=0;if(e.value[0][1].indexOf(i.INTERNAL)===0)return e.value[0][1]=e.value[0][1].substring(i.INTERNAL.length),e.value;for(;c<4;)s=n[c],s.value[0][1]!=t[s.name].defaultValue&&Array.prototype.push.apply(o,s.value),c++;for(Array.prototype.push.apply(o,n[c].value),c++,n[c].value[0][1]!=t[n[c].name].defaultValue&&(Array.prototype.push.apply(o,[[r.PROPERTY_VALUE,i.FORWARD_SLASH]]),Array.prototype.push.apply(o,n[c].value)),c++;n[c].value[l];)o.push(n[c].value[l]),n[c].value[l+1]&&o.push([r.PROPERTY_VALUE,i.COMMA]),l++;return a(o)?[o[0]]:o}function l(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],i=t[2].value[0],a=t[3].value[0];return n[1]==r[1]&&n[1]==i[1]&&n[1]==a[1]?[n]:n[1]==i[1]&&r[1]==a[1]?[n,r]:r[1]==a[1]?[n,r,i]:[n,r,i,a]}function u(e){return function(t,a){if(!t.multiplex)return e(t,a,!0);var o=0,s=[],c={},l,u;for(l=0,u=t.components[0].value.length;l<u;l++)t.components[0].value[l][1]==i.COMMA&&o++;for(l=0;l<=o;l++){for(var d=n(t),f=0,p=t.components.length;f<p;f++){var m=t.components[f],h=n(m);d.components.push(h);for(var g=c[h.name]||0,_=m.value.length;g<_;g++){if(m.value[g][1]==i.COMMA){c[h.name]=g+1;break}h.value.push(m.value[g])}}var v=e(d,a,l==o);Array.prototype.push.apply(s,v),l<o&&s.push([r.PROPERTY_VALUE,i.COMMA])}return s}}function d(e,t){for(var n=e.components,i=[],o=n.length-1;o>=0;o--){var s=n[o],c=t[s.name];(s.value[0][1]!=c.defaultValue||`keepUnlessDefault`in c&&!f(n,t,c.keepUnlessDefault))&&i.unshift(s.value[0])}return i.length===0&&i.push([r.PROPERTY_VALUE,t[e.name].defaultValue]),a(i)?[i[0]]:i}function f(e,t,n){var r,i,a;for(i=0,a=e.length;i<a;i++)if(r=e[i],r.name==n&&r.value[0][1]==t[n].defaultValue)return!0;return!1}t.exports={background:o,borderRadius:s,font:c,fourValues:l,multiplex:u,withoutDefaults:d}})),kF=F(((e,t)=>{var n=uF(),r=/^\d+$/,i=[`*`,`all`],a=`off`,o=`,`,s=`=`;function c(e){return n(l(a),u(e))}function l(e){return{ch:e,cm:e,em:e,ex:e,in:e,mm:e,pc:e,pt:e,px:e,q:e,rem:e,vh:e,vmax:e,vmin:e,vw:e,"%":e}}function u(e){return e==null||typeof e==`boolean`?{}:typeof e==`number`&&e==-1?l(a):typeof e==`number`?l(e):typeof e==`string`&&r.test(e)?l(parseInt(e)):typeof e==`string`&&e==a?l(a):typeof e==`object`?e:e.split(o).reduce(function(e,t){var r=t.split(s),o=r[0],c=parseInt(r[1]);return(Number.isNaN(c)||c==-1)&&(c=a),i.indexOf(o)>-1?e=n(e,l(c)):e[o]=c,e},{})}t.exports={DEFAULT:a,roundingPrecisionFrom:c}})),AF=F(((e,t)=>{var n=kF().roundingPrecisionFrom,r=uF(),i={Zero:`0`,One:`1`,Two:`2`},a={};a[i.Zero]={},a[i.One]={cleanupCharsets:!0,normalizeUrls:!0,optimizeBackground:!0,optimizeBorderRadius:!0,optimizeFilter:!0,optimizeFontWeight:!0,optimizeOutline:!0,removeEmpty:!0,removeNegativePaddings:!0,removeQuotes:!0,removeWhitespace:!0,replaceMultipleZeros:!0,replaceTimeUnits:!0,replaceZeroUnits:!0,roundingPrecision:n(void 0),selectorsSortingMethod:`standard`,specialComments:`all`,tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,variableValueOptimizers:[]},a[i.Two]={mergeAdjacentRules:!0,mergeIntoShorthands:!0,mergeMedia:!0,mergeNonAdjacentRules:!0,mergeSemantically:!1,overrideProperties:!0,removeEmpty:!0,reduceNonAdjacentRules:!0,removeDuplicateFontRules:!0,removeDuplicateMediaBlocks:!0,removeDuplicateRules:!0,removeUnusedAtRules:!1,restructureRules:!1,skipProperties:[]};var o=`*`,s=`all`,c=`false`,l=`off`,u=`true`,d=`on`,f=`,`,p=`;`,m=`:`;function h(e){var t=r(a,{}),c=i.Zero,l=i.One,u=i.Two;return e===void 0?(delete t[u],t):(typeof e==`string`&&(e=parseInt(e)),typeof e==`number`&&e===parseInt(u)?t:typeof e==`number`&&e===parseInt(l)?(delete t[u],t):typeof e==`number`&&e===parseInt(c)?(delete t[u],delete t[l],t):(typeof e==`object`&&(e=v(e)),l in e&&`roundingPrecision`in e[l]&&(e[l].roundingPrecision=n(e[l].roundingPrecision)),u in e&&`skipProperties`in e[u]&&typeof e[u].skipProperties==`string`&&(e[u].skipProperties=e[u].skipProperties.split(f)),(c in e||l in e||u in e)&&(t[c]=r(t[c],e[c])),l in e&&o in e[l]&&(t[l]=r(t[l],g(l,_(e[l][o]))),delete e[l][o]),l in e&&s in e[l]&&(t[l]=r(t[l],g(l,_(e[l][s]))),delete e[l][s]),l in e||u in e?t[l]=r(t[l],e[l]):delete t[l],u in e&&o in e[u]&&(t[u]=r(t[u],g(u,_(e[u][o]))),delete e[u][o]),u in e&&s in e[u]&&(t[u]=r(t[u],g(u,_(e[u][s]))),delete e[u][s]),u in e?t[u]=r(t[u],e[u]):delete t[u],t))}function g(e,t){var n=r(a[e],{}),i;for(i in n)typeof n[i]==`boolean`&&(n[i]=t);return n}function _(e){switch(e){case c:case l:return!1;case u:case d:return!0;default:return e}}function v(e){var t=r(e,{}),n,i;for(i=0;i<=2;i++)n=``+i,n in t&&(t[n]===void 0||t[n]===!1)&&delete t[n],n in t&&t[n]===!0&&(t[n]={}),n in t&&typeof t[n]==`string`&&(t[n]=y(t[n],n));return t}function y(e,t){return e.split(p).reduce(function(e,n){var i=n.split(m),a=i[0],c=i[1],l=_(c);return o==a||s==a?e=r(e,g(t,l)):e[a]=l,e},{})}t.exports={OptimizationLevel:i,optimizationLevelFrom:h}})),jF=F(((e,t)=>{var n=AF().OptimizationLevel;t.exports={level1:{property:function(e,t,r){var i=t.value;r.level[n.One].optimizeBackground&&(i.length==1&&i[0][1]==`none`&&(i[0][1]=`0 0`),i.length==1&&i[0][1]==`transparent`&&(i[0][1]=`0 0`))}}}})),MF=F(((e,t)=>{t.exports={level1:{property:function(e,t){var n=t.value;n.length==4&&n[0][1]===`0`&&n[1][1]===`0`&&n[2][1]===`0`&&n[3][1]===`0`&&(t.value.splice(2),t.dirty=!0)}}}})),NF=F(((e,t)=>{var n=AF().OptimizationLevel;t.exports={level1:{property:function(e,t,r){var i=t.value;r.level[n.One].optimizeBorderRadius&&(i.length==3&&i[1][1]==`/`&&i[0][1]==i[2][1]?(t.value.splice(1),t.dirty=!0):i.length==5&&i[2][1]==`/`&&i[0][1]==i[3][1]&&i[1][1]==i[4][1]?(t.value.splice(2),t.dirty=!0):i.length==7&&i[3][1]==`/`&&i[0][1]==i[4][1]&&i[1][1]==i[5][1]&&i[2][1]==i[6][1]?(t.value.splice(3),t.dirty=!0):i.length==9&&i[4][1]==`/`&&i[0][1]==i[5][1]&&i[1][1]==i[6][1]&&i[2][1]==i[7][1]&&i[3][1]==i[8][1]&&(t.value.splice(4),t.dirty=!0))}}}})),PF=F(((e,t)=>{var n=AF().OptimizationLevel,r=/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,i=/,(\S)/g,a=/ ?= ?/g;t.exports={level1:{property:function(e,t,o){o.compatibility.properties.ieFilters&&o.level[n.One].optimizeFilter&&(t.value.length==1&&(t.value[0][1]=t.value[0][1].replace(r,function(e,t,n){return t.toLowerCase()+n})),t.value[0][1]=t.value[0][1].replace(i,`, $1`).replace(a,`=`))}}}})),FF=F(((e,t)=>{var n=AF().OptimizationLevel;t.exports={level1:{property:function(e,t,r){var i=t.value[0][1];r.level[n.One].optimizeFontWeight&&(i==`normal`?i=`400`:i==`bold`&&(i=`700`),t.value[0][1]=i)}}}})),IF=F(((e,t)=>{var n=AF().OptimizationLevel;t.exports={level1:{property:function(e,t,r){var i=t.value;r.level[n.One].replaceMultipleZeros&&i.length==4&&i[0][1]===`0`&&i[1][1]===`0`&&i[2][1]===`0`&&i[3][1]===`0`&&(t.value.splice(1),t.dirty=!0)}}}})),LF=F(((e,t)=>{var n=AF().OptimizationLevel;t.exports={level1:{property:function(e,t,r){var i=t.value;r.level[n.One].optimizeOutline&&i.length==1&&i[0][1]==`none`&&(i[0][1]=`0`)}}}})),RF=F(((e,t)=>{var n=AF().OptimizationLevel;function r(e){return e&&e[1][0]==`-`&&parseFloat(e[1])<0}t.exports={level1:{property:function(e,t,i){var a=t.value;a.length==4&&a[0][1]===`0`&&a[1][1]===`0`&&a[2][1]===`0`&&a[3][1]===`0`&&(t.value.splice(1),t.dirty=!0),i.level[n.One].removeNegativePaddings&&(r(t.value[0])||r(t.value[1])||r(t.value[2])||r(t.value[3]))&&(t.unused=!0)}}}})),zF=F(((e,t)=>{t.exports={background:jF().level1.property,boxShadow:MF().level1.property,borderRadius:NF().level1.property,filter:PF().level1.property,fontWeight:FF().level1.property,margin:IF().level1.property,outline:LF().level1.property,padding:RF().level1.property}})),BF=F(((e,t)=>{var n={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#0ff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000`,blanchedalmond:`#ffebcd`,blue:`#00f`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#0ff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#f0f`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#0f0`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#f00`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#fff`,whitesmoke:`#f5f5f5`,yellow:`#ff0`,yellowgreen:`#9acd32`},r={},i={};for(var a in n){var o=n[a];a.length<o.length?i[o]=a:r[a]=o}var s=RegExp(`(^| |,|\\))(`+Object.keys(r).join(`|`)+`)( |,|\\)|$)`,`ig`),c=RegExp(`(`+Object.keys(i).join(`|`)+`)([^a-f0-9]|$)`,`ig`);function l(e,t,n,i){return t+r[n.toLowerCase()]+i}function u(e,t,n){return i[t.toLowerCase()]+n}function d(e){var t=e.indexOf(`#`)>-1,n=e.replace(s,l);return n!=e&&(n=n.replace(s,l)),t?n.replace(c,u):n}t.exports=d})),VF=F(((e,t)=>{function n(e,t,n){var i,a,o;if(e%=360,e<0&&(e+=360),e=~~e/360,t<0?t=0:t>100&&(t=100),t=~~t/100,n<0?n=0:n>100&&(n=100),n=~~n/100,t===0)i=a=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;i=r(c,s,e+1/3),a=r(c,s,e),o=r(c,s,e-1/3)}return[~~(i*255),~~(a*255),~~(o*255)]}function r(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function i(e,t,r){var i=n(e,t,r),a=i[0].toString(16),o=i[1].toString(16),s=i[2].toString(16);return`#`+((a.length==1?`0`:``)+a)+((o.length==1?`0`:``)+o)+((s.length==1?`0`:``)+s)}t.exports=i})),HF=F(((e,t)=>{function n(e,t,n){var r=Math.max(0,Math.min(parseInt(e),255)),i=Math.max(0,Math.min(parseInt(t),255)),a=Math.max(0,Math.min(parseInt(n),255));return`#`+(`00000`+(r<<16|i<<8|a).toString(16)).slice(-6)}t.exports=n})),UF=F(((e,t)=>{var n=fF();function r(e,t,n){return n?t.test(e):e===t}function i(e,t){var i=n.OPEN_ROUND_BRACKET,a=n.CLOSE_ROUND_BRACKET,o=0,s=0,c=0,l,u,d=e.length,f=[],p=typeof t==`object`&&`exec`in t;if(!p&&e.indexOf(t)==-1)return[e];if(e.indexOf(i)==-1)return e.split(t);for(;s<d;)e[s]==i?o++:e[s]==a&&o--,o===0&&s>0&&s+1<d&&r(e[s],t,p)&&(f.push(e.substring(c,s)),p&&t.exec(e[s]).length>1&&f.push(e[s]),c=s+1),s++;return c<s+1&&(l=e.substring(c),u=l[l.length-1],r(u,t,p)&&(l=l.substring(0,l.length-1)),f.push(l)),f}t.exports=i})),WF=F(((e,t)=>{var n=BF(),r=VF(),i=HF(),a=UF(),o=/(rgb|rgba|hsl|hsla)\(([^()]+)\)/gi,s=/#|rgb|hsl/gi,c=/(^|[^='"])#([0-9a-f]{6})/gi,l=/(^|[^='"])#([0-9a-f]{3})/gi,u=/[0-9a-f]/i,d=/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/gi,f=/(rgb|hsl)a?\((-?\d+),(-?\d+%?),(-?\d+%?),(0*[1-9]+[0-9]*(\.?\d*)?)\)/gi,p=/rgb\((-?\d+),(-?\d+),(-?\d+)\)/gi,m=/(?:rgba|hsla)\(0,0%?,0%?,0\)/g;t.exports={level1:{value:function(e,t,h){return h.compatibility.properties.colors?t.match(s)?(t=t.replace(f,function(e,t,n,r,i,a){return parseInt(a)>=1?t+`(`+[n,r,i].join(`,`)+`)`:e}).replace(p,function(e,t,n,r){return i(t,n,r)}).replace(d,function(e,t,n,i){return r(t,n,i)}).replace(c,function(e,t,n,r,i){var a=i[r+e.length];return a&&u.test(a)?e:n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?(t+`#`+n[0]+n[2]+n[4]).toLowerCase():(t+`#`+n).toLowerCase()}).replace(l,function(e,t,n){return t+`#`+n.toLowerCase()}).replace(o,function(e,t,n){var r=n.split(`,`),i=t&&t.toLowerCase();return i==`hsl`&&r.length==3||i==`hsla`&&r.length==4||i==`rgb`&&r.length===3&&n.indexOf(`%`)>0||i==`rgba`&&r.length==4&&r[0].indexOf(`%`)>0?(r[1].indexOf(`%`)==-1&&(r[1]+=`%`),r[2].indexOf(`%`)==-1&&(r[2]+=`%`),t+`(`+r.join(`,`)+`)`):e}),h.compatibility.colors.opacity&&e.indexOf(`background`)==-1&&(t=t.replace(m,function(e){return a(t,`,`).pop().indexOf(`gradient(`)>-1?e:`transparent`})),n(t)):n(t):t}}}})),GF=F(((e,t)=>{var n=/\(0deg\)/g;t.exports={level1:{value:function(e,t,r){return!r.compatibility.properties.zeroUnits||t.indexOf(`0deg`)==-1?t:t.replace(n,`(0)`)}}}})),KF=F(((e,t)=>{var n=/^url\(/i;function r(e){return n.test(e)}t.exports=r})),qF=F(((e,t)=>{var n=UF(),r=KF(),i=AF().OptimizationLevel,a=/^expression\(.*\)$/,o=/^(-(?:moz|ms|o|webkit)-[a-z-]+|[a-z-]+)\((.+)\)$/,s=/([\s,/])/,c=/(^|\D)\.0+(\D|$)/g,l=/\.([1-9]*)0+(\D|$)/g,u=/(^|\D)0\.(\d)/g,d=/([^\w\d-]|^)-0([^.]|$)/g,f=/(^|\s)0+([1-9])/g;function p(e){var t,i;return r(e)||a.test(e)?e:(t=o.exec(e),t?(i=n(t[2],s).map(function(e){return p(e)}),t[1]+`(`+i.join(``)+`)`):m(e))}function m(e){return e.indexOf(`0`)==-1?e:(e.indexOf(`-`)>-1&&(e=e.replace(d,`$10$2`).replace(d,`$10$2`)),e.replace(f,`$1$2`).replace(c,`$10$2`).replace(l,function(e,t,n){return(t.length>0?`.`:``)+t+n}).replace(u,`$1.$2`))}t.exports={level1:{value:function(e,t,n){return n.level[i.One].replaceZeroUnits?p(t):t}}}})),JF=F(((e,t)=>{t.exports={level1:{value:function(e,t,n){return!n.precision.enabled||t.indexOf(`.`)===-1?t:t.replace(n.precision.decimalPointMatcher,`$1$2$3`).replace(n.precision.zeroMatcher,function(e,t,r,i){var a=n.precision.units[i].multiplier,o=parseInt(t),s=Number.isNaN(o)?0:o,c=parseFloat(r);return Math.round((s+c)*a)/a+i})}}}})),YF=F(((e,t)=>{var n=AF().OptimizationLevel,r=/^local\(/i,i=/^('.*'|".*")$/,a=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,o=/^['"](?:cursive|default|emoji|fangsong|fantasy|inherit|initial|math|monospace|revert|revert-layer|sans-serif|serif|system-ui|ui-monospace|ui-rounded|ui-sans-serif|ui-serif|unset)['"]$/;t.exports={level1:{value:function(e,t,s){return(e==`font-family`||e==`font`)&&o.test(t)||!s.level[n.One].removeQuotes||!i.test(t)&&!r.test(t)?t:a.test(t)?t.substring(1,t.length-1):t}}}})),XF=F(((e,t)=>{var n=AF().OptimizationLevel,r=/^(-?[\d.]+)(m?s)$/;t.exports={level1:{value:function(e,t,i){return!i.level[n.One].replaceTimeUnits||!r.test(t)?t:t.replace(r,function(e,t,n){var r;return n==`ms`?r=parseInt(t)/1e3+`s`:n==`s`&&(r=parseFloat(t)*1e3+`ms`),r.length<e.length?r:e})}}}})),ZF=F(((e,t)=>{var n=/(?:^|\s|\()(-?\d+)px/;t.exports={level1:{value:function(e,t,r){return n.test(t)?t.replace(n,function(e,t){var n,i=parseInt(t);return i===0?e:(r.compatibility.properties.shorterLengthUnits&&r.compatibility.units.pt&&i*3%4==0&&(n=i*3/4+`pt`),r.compatibility.properties.shorterLengthUnits&&r.compatibility.units.pc&&i%16==0&&(n=i/16+`pc`),r.compatibility.properties.shorterLengthUnits&&r.compatibility.units.in&&i%96==0&&(n=i/96+`in`),n&&=e.substring(0,e.indexOf(t))+n,n&&n.length<e.length?n:e)}):t}}}})),QF=F(((e,t)=>{var n=KF(),r=AF().OptimizationLevel,i=/^url\(/i;t.exports={level1:{value:function(e,t,a){return!a.level[r.One].normalizeUrls||!n(t)?t:t.replace(i,`url(`)}}}})),$F=F(((e,t)=>{var n=/^url\(['"].+['"]\)$/,r=/^url\(['"].*[*\s()'"].*['"]\)$/,i=/["']/g,a=/^url\(['"]data:[^;]+;charset/;t.exports={level1:{value:function(e,t,o){return o.compatibility.properties.urlQuotes?t:n.test(t)&&!r.test(t)&&!a.test(t)?t.replace(i,``):t}}}})),eI=F(((e,t)=>{var n=KF(),r=/\\?\n|\\?\r\n/g,i=/(\()\s+/g,a=/\s+(\))/g;t.exports={level1:{value:function(e,t){return n(t)?t.replace(r,``).replace(i,`$1`).replace(a,`$1`):t}}}})),tI=F(((e,t)=>{var n=AF().OptimizationLevel,r=fF(),i=/\) ?\/ ?/g,a=/, /g,o=/\r?\n/g,s=/\s+/g,c=/\s+(;?\))/g,l=/(\(;?)\s+/g,u=/^--\S+$/,d=/^var\(\s*--\S+\s*\)$/;t.exports={level1:{value:function(e,t,f){return!f.level[n.One].removeWhitespace||u.test(e)&&!d.test(t)||t.indexOf(` `)==-1&&t.indexOf(`
`)==-1||t.indexOf(`expression`)===0||t.indexOf(r.SINGLE_QUOTE)>-1||t.indexOf(r.DOUBLE_QUOTE)>-1?t:(t=t.replace(o,``),t=t.replace(s,` `),t.indexOf(`calc`)>-1&&(t=t.replace(i,`)/ `)),t.replace(l,`$1`).replace(c,`$1`).replace(a,`,`))}}}})),nI=F(((e,t)=>{var n=UF(),r=/^(-(?:moz|ms|o|webkit)-[a-z-]+|[a-z-]+)\((.+)\)$/,i=/^(?:-moz-calc|-webkit-calc|calc|rgb|hsl|rgba|hsla|min|max|clamp|expression)\(/,a=/([\s,/])/;function o(e,t){var c,l;return i.test(e)?e:(c=r.exec(e),c?(l=n(c[2],a).map(function(e){return o(e,t)}),c[1]+`(`+l.join(``)+`)`):s(e,t))}function s(e,t){return e.replace(t.unitsRegexp,`$10$2`).replace(t.unitsRegexp,`$10$2`)}t.exports={level1:{value:function(e,t,n){return!n.compatibility.properties.zeroUnits||t.indexOf(`%`)>0&&(e==`height`||e==`max-height`||e==`width`||e==`max-width`)?t:o(t,n)}}}})),rI=F(((e,t)=>{t.exports={color:WF().level1.value,degrees:GF().level1.value,fraction:qF().level1.value,precision:JF().level1.value,textQuotes:YF().level1.value,time:XF().level1.value,unit:ZF().level1.value,urlPrefix:QF().level1.value,urlQuotes:$F().level1.value,urlWhiteSpace:eI().level1.value,whiteSpace:tI().level1.value,zero:nI().level1.value}})),iI=F(((e,t)=>{var n=CF(),r=EF(),i=OF(),a=zF(),o=rI(),s=uF(),c={animation:{canOverride:r.generic.components([r.generic.time,r.generic.timingFunction,r.generic.time,r.property.animationIterationCount,r.property.animationDirection,r.property.animationFillMode,r.property.animationPlayState,r.property.animationName]),components:[`animation-duration`,`animation-timing-function`,`animation-delay`,`animation-iteration-count`,`animation-direction`,`animation-fill-mode`,`animation-play-state`,`animation-name`],breakUp:n.multiplex(n.animation),defaultValue:`none`,restore:i.multiplex(i.withoutDefaults),shorthand:!0,valueOptimizers:[o.whiteSpace,o.textQuotes,o.time,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-delay":{canOverride:r.generic.time,componentOf:[`animation`],defaultValue:`0s`,intoMultiplexMode:`real`,valueOptimizers:[o.time,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-direction":{canOverride:r.property.animationDirection,componentOf:[`animation`],defaultValue:`normal`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-duration":{canOverride:r.generic.time,componentOf:[`animation`],defaultValue:`0s`,intoMultiplexMode:`real`,keepUnlessDefault:`animation-delay`,valueOptimizers:[o.time,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-fill-mode":{canOverride:r.property.animationFillMode,componentOf:[`animation`],defaultValue:`none`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-iteration-count":{canOverride:r.property.animationIterationCount,componentOf:[`animation`],defaultValue:`1`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-name":{canOverride:r.property.animationName,componentOf:[`animation`],defaultValue:`none`,intoMultiplexMode:`real`,valueOptimizers:[o.textQuotes],vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-play-state":{canOverride:r.property.animationPlayState,componentOf:[`animation`],defaultValue:`running`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},"animation-timing-function":{canOverride:r.generic.timingFunction,componentOf:[`animation`],defaultValue:`ease`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-o-`,`-webkit-`]},background:{canOverride:r.generic.components([r.generic.image,r.property.backgroundPosition,r.property.backgroundSize,r.property.backgroundRepeat,r.property.backgroundAttachment,r.property.backgroundOrigin,r.property.backgroundClip,r.generic.color]),components:[`background-image`,`background-position`,`background-size`,`background-repeat`,`background-attachment`,`background-origin`,`background-clip`,`background-color`],breakUp:n.multiplex(n.background),defaultValue:`0 0`,propertyOptimizer:a.background,restore:i.multiplex(i.background),shortestValue:`0`,shorthand:!0,valueOptimizers:[o.whiteSpace,o.urlWhiteSpace,o.fraction,o.zero,o.color,o.urlPrefix,o.urlQuotes]},"background-attachment":{canOverride:r.property.backgroundAttachment,componentOf:[`background`],defaultValue:`scroll`,intoMultiplexMode:`real`},"background-clip":{canOverride:r.property.backgroundClip,componentOf:[`background`],defaultValue:`border-box`,intoMultiplexMode:`real`,shortestValue:`border-box`},"background-color":{canOverride:r.generic.color,componentOf:[`background`],defaultValue:`transparent`,intoMultiplexMode:`real`,multiplexLastOnly:!0,nonMergeableValue:`none`,shortestValue:`red`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"background-image":{canOverride:r.generic.image,componentOf:[`background`],defaultValue:`none`,intoMultiplexMode:`default`,valueOptimizers:[o.urlWhiteSpace,o.urlPrefix,o.urlQuotes,o.whiteSpace,o.fraction,o.precision,o.unit,o.zero,o.color]},"background-origin":{canOverride:r.property.backgroundOrigin,componentOf:[`background`],defaultValue:`padding-box`,intoMultiplexMode:`real`,shortestValue:`border-box`},"background-position":{canOverride:r.property.backgroundPosition,componentOf:[`background`],defaultValue:[`0`,`0`],doubleValues:!0,intoMultiplexMode:`real`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"background-repeat":{canOverride:r.property.backgroundRepeat,componentOf:[`background`],defaultValue:[`repeat`],doubleValues:!0,intoMultiplexMode:`real`},"background-size":{canOverride:r.property.backgroundSize,componentOf:[`background`],defaultValue:[`auto`],doubleValues:!0,intoMultiplexMode:`real`,shortestValue:`0 0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},bottom:{canOverride:r.property.bottom,defaultValue:`auto`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},border:{breakUp:n.border,canOverride:r.generic.components([r.generic.unit,r.property.borderStyle,r.generic.color]),components:[`border-width`,`border-style`,`border-color`],defaultValue:`none`,overridesShorthands:[`border-bottom`,`border-left`,`border-right`,`border-top`],restore:i.withoutDefaults,shorthand:!0,shorthandComponents:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.zero,o.color]},"border-bottom":{breakUp:n.border,canOverride:r.generic.components([r.generic.unit,r.property.borderStyle,r.generic.color]),components:[`border-bottom-width`,`border-bottom-style`,`border-bottom-color`],defaultValue:`none`,restore:i.withoutDefaults,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.zero,o.color]},"border-bottom-color":{canOverride:r.generic.color,componentOf:[`border-bottom`,`border-color`],defaultValue:`none`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-bottom-left-radius":{canOverride:r.generic.unit,componentOf:[`border-radius`],defaultValue:`0`,propertyOptimizer:a.borderRadius,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`]},"border-bottom-right-radius":{canOverride:r.generic.unit,componentOf:[`border-radius`],defaultValue:`0`,propertyOptimizer:a.borderRadius,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`]},"border-bottom-style":{canOverride:r.property.borderStyle,componentOf:[`border-bottom`,`border-style`],defaultValue:`none`},"border-bottom-width":{canOverride:r.generic.unit,componentOf:[`border-bottom`,`border-width`],defaultValue:`medium`,oppositeTo:`border-top-width`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"border-collapse":{canOverride:r.property.borderCollapse,defaultValue:`separate`},"border-color":{breakUp:n.fourValues,canOverride:r.generic.components([r.generic.color,r.generic.color,r.generic.color,r.generic.color]),componentOf:[`border`],components:[`border-top-color`,`border-right-color`,`border-bottom-color`,`border-left-color`],defaultValue:`none`,restore:i.fourValues,shortestValue:`red`,shorthand:!0,singleTypeComponents:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-left":{breakUp:n.border,canOverride:r.generic.components([r.generic.unit,r.property.borderStyle,r.generic.color]),components:[`border-left-width`,`border-left-style`,`border-left-color`],defaultValue:`none`,restore:i.withoutDefaults,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.zero,o.color]},"border-left-color":{canOverride:r.generic.color,componentOf:[`border-color`,`border-left`],defaultValue:`none`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-left-style":{canOverride:r.property.borderStyle,componentOf:[`border-left`,`border-style`],defaultValue:`none`},"border-left-width":{canOverride:r.generic.unit,componentOf:[`border-left`,`border-width`],defaultValue:`medium`,oppositeTo:`border-right-width`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"border-radius":{breakUp:n.borderRadius,canOverride:r.generic.components([r.generic.unit,r.generic.unit,r.generic.unit,r.generic.unit]),components:[`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`],defaultValue:`0`,propertyOptimizer:a.borderRadius,restore:i.borderRadius,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`]},"border-right":{breakUp:n.border,canOverride:r.generic.components([r.generic.unit,r.property.borderStyle,r.generic.color]),components:[`border-right-width`,`border-right-style`,`border-right-color`],defaultValue:`none`,restore:i.withoutDefaults,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-right-color":{canOverride:r.generic.color,componentOf:[`border-color`,`border-right`],defaultValue:`none`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-right-style":{canOverride:r.property.borderStyle,componentOf:[`border-right`,`border-style`],defaultValue:`none`},"border-right-width":{canOverride:r.generic.unit,componentOf:[`border-right`,`border-width`],defaultValue:`medium`,oppositeTo:`border-left-width`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"border-style":{breakUp:n.fourValues,canOverride:r.generic.components([r.property.borderStyle,r.property.borderStyle,r.property.borderStyle,r.property.borderStyle]),componentOf:[`border`],components:[`border-top-style`,`border-right-style`,`border-bottom-style`,`border-left-style`],defaultValue:`none`,restore:i.fourValues,shorthand:!0,singleTypeComponents:!0},"border-top":{breakUp:n.border,canOverride:r.generic.components([r.generic.unit,r.property.borderStyle,r.generic.color]),components:[`border-top-width`,`border-top-style`,`border-top-color`],defaultValue:`none`,restore:i.withoutDefaults,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.zero,o.color,o.unit]},"border-top-color":{canOverride:r.generic.color,componentOf:[`border-color`,`border-top`],defaultValue:`none`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"border-top-left-radius":{canOverride:r.generic.unit,componentOf:[`border-radius`],defaultValue:`0`,propertyOptimizer:a.borderRadius,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`]},"border-top-right-radius":{canOverride:r.generic.unit,componentOf:[`border-radius`],defaultValue:`0`,propertyOptimizer:a.borderRadius,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-o-`]},"border-top-style":{canOverride:r.property.borderStyle,componentOf:[`border-style`,`border-top`],defaultValue:`none`},"border-top-width":{canOverride:r.generic.unit,componentOf:[`border-top`,`border-width`],defaultValue:`medium`,oppositeTo:`border-bottom-width`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"border-width":{breakUp:n.fourValues,canOverride:r.generic.components([r.generic.unit,r.generic.unit,r.generic.unit,r.generic.unit]),componentOf:[`border`],components:[`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`],defaultValue:`medium`,restore:i.fourValues,shortestValue:`0`,shorthand:!0,singleTypeComponents:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"box-shadow":{propertyOptimizer:a.boxShadow,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero,o.color],vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},clear:{canOverride:r.property.clear,defaultValue:`none`},clip:{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},color:{canOverride:r.generic.color,defaultValue:`transparent`,shortestValue:`red`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"column-gap":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},cursor:{canOverride:r.property.cursor,defaultValue:`auto`},display:{canOverride:r.property.display},filter:{propertyOptimizer:a.filter,valueOptimizers:[o.fraction]},float:{canOverride:r.property.float,defaultValue:`none`},font:{breakUp:n.font,canOverride:r.generic.components([r.property.fontStyle,r.property.fontVariant,r.property.fontWeight,r.property.fontStretch,r.generic.unit,r.generic.unit,r.property.fontFamily]),components:[`font-style`,`font-variant`,`font-weight`,`font-stretch`,`font-size`,`line-height`,`font-family`],restore:i.font,shorthand:!0,valueOptimizers:[o.textQuotes]},"font-family":{canOverride:r.property.fontFamily,defaultValue:`user|agent|specific`,valueOptimizers:[o.textQuotes]},"font-size":{canOverride:r.generic.unit,defaultValue:`medium`,shortestValue:`0`,valueOptimizers:[o.fraction]},"font-stretch":{canOverride:r.property.fontStretch,defaultValue:`normal`},"font-style":{canOverride:r.property.fontStyle,defaultValue:`normal`},"font-variant":{canOverride:r.property.fontVariant,defaultValue:`normal`},"font-weight":{canOverride:r.property.fontWeight,defaultValue:`normal`,propertyOptimizer:a.fontWeight,shortestValue:`400`},gap:{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},height:{canOverride:r.generic.unit,defaultValue:`auto`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},left:{canOverride:r.property.left,defaultValue:`auto`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"letter-spacing":{valueOptimizers:[o.fraction,o.zero]},"line-height":{canOverride:r.generic.unitOrNumber,defaultValue:`normal`,shortestValue:`0`,valueOptimizers:[o.fraction,o.zero]},"list-style":{canOverride:r.generic.components([r.property.listStyleType,r.property.listStylePosition,r.property.listStyleImage]),components:[`list-style-type`,`list-style-position`,`list-style-image`],breakUp:n.listStyle,restore:i.withoutDefaults,defaultValue:`outside`,shortestValue:`none`,shorthand:!0},"list-style-image":{canOverride:r.generic.image,componentOf:[`list-style`],defaultValue:`none`},"list-style-position":{canOverride:r.property.listStylePosition,componentOf:[`list-style`],defaultValue:`outside`,shortestValue:`inside`},"list-style-type":{canOverride:r.property.listStyleType,componentOf:[`list-style`],defaultValue:`decimal|disc`,shortestValue:`none`},margin:{breakUp:n.fourValues,canOverride:r.generic.components([r.generic.unit,r.generic.unit,r.generic.unit,r.generic.unit]),components:[`margin-top`,`margin-right`,`margin-bottom`,`margin-left`],defaultValue:`0`,propertyOptimizer:a.margin,restore:i.fourValues,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-bottom":{canOverride:r.generic.unit,componentOf:[`margin`],defaultValue:`0`,oppositeTo:`margin-top`,propertyOptimizer:a.margin,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-inline-end":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-inline-start":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-left":{canOverride:r.generic.unit,componentOf:[`margin`],defaultValue:`0`,oppositeTo:`margin-right`,propertyOptimizer:a.margin,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-right":{canOverride:r.generic.unit,componentOf:[`margin`],defaultValue:`0`,oppositeTo:`margin-left`,propertyOptimizer:a.margin,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"margin-top":{canOverride:r.generic.unit,componentOf:[`margin`],defaultValue:`0`,oppositeTo:`margin-bottom`,propertyOptimizer:a.margin,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"max-height":{canOverride:r.generic.unit,defaultValue:`none`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"max-width":{canOverride:r.generic.unit,defaultValue:`none`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"min-height":{canOverride:r.generic.unit,defaultValue:`0`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"min-width":{canOverride:r.generic.unit,defaultValue:`0`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},opacity:{valueOptimizers:[o.fraction,o.precision]},outline:{canOverride:r.generic.components([r.generic.color,r.property.outlineStyle,r.generic.unit]),components:[`outline-color`,`outline-style`,`outline-width`],breakUp:n.outline,restore:i.withoutDefaults,defaultValue:`0`,propertyOptimizer:a.outline,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"outline-color":{canOverride:r.generic.color,componentOf:[`outline`],defaultValue:`invert`,shortestValue:`red`,valueOptimizers:[o.whiteSpace,o.fraction,o.color]},"outline-style":{canOverride:r.property.outlineStyle,componentOf:[`outline`],defaultValue:`none`},"outline-width":{canOverride:r.generic.unit,componentOf:[`outline`],defaultValue:`medium`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},overflow:{canOverride:r.property.overflow,defaultValue:`visible`},"overflow-x":{canOverride:r.property.overflow,defaultValue:`visible`},"overflow-y":{canOverride:r.property.overflow,defaultValue:`visible`},padding:{breakUp:n.fourValues,canOverride:r.generic.components([r.generic.unit,r.generic.unit,r.generic.unit,r.generic.unit]),components:[`padding-top`,`padding-right`,`padding-bottom`,`padding-left`],defaultValue:`0`,propertyOptimizer:a.padding,restore:i.fourValues,shorthand:!0,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"padding-bottom":{canOverride:r.generic.unit,componentOf:[`padding`],defaultValue:`0`,oppositeTo:`padding-top`,propertyOptimizer:a.padding,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"padding-left":{canOverride:r.generic.unit,componentOf:[`padding`],defaultValue:`0`,oppositeTo:`padding-right`,propertyOptimizer:a.padding,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"padding-right":{canOverride:r.generic.unit,componentOf:[`padding`],defaultValue:`0`,oppositeTo:`padding-left`,propertyOptimizer:a.padding,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"padding-top":{canOverride:r.generic.unit,componentOf:[`padding`],defaultValue:`0`,oppositeTo:`padding-bottom`,propertyOptimizer:a.padding,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},position:{canOverride:r.property.position,defaultValue:`static`},right:{canOverride:r.property.right,defaultValue:`auto`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"row-gap":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},src:{valueOptimizers:[o.urlWhiteSpace,o.urlPrefix,o.urlQuotes]},"stroke-width":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"text-align":{canOverride:r.property.textAlign,defaultValue:`left|right`},"text-decoration":{canOverride:r.property.textDecoration,defaultValue:`none`},"text-indent":{canOverride:r.property.textOverflow,defaultValue:`none`,valueOptimizers:[o.fraction,o.zero]},"text-overflow":{canOverride:r.property.textOverflow,defaultValue:`none`},"text-shadow":{canOverride:r.property.textShadow,defaultValue:`none`,valueOptimizers:[o.whiteSpace,o.fraction,o.zero,o.color]},top:{canOverride:r.property.top,defaultValue:`auto`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},transform:{canOverride:r.property.transform,valueOptimizers:[o.whiteSpace,o.degrees,o.fraction,o.precision,o.unit,o.zero],vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},transition:{breakUp:n.multiplex(n.transition),canOverride:r.generic.components([r.property.transitionProperty,r.generic.time,r.generic.timingFunction,r.generic.time]),components:[`transition-property`,`transition-duration`,`transition-timing-function`,`transition-delay`],defaultValue:`none`,restore:i.multiplex(i.withoutDefaults),shorthand:!0,valueOptimizers:[o.time,o.fraction],vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},"transition-delay":{canOverride:r.generic.time,componentOf:[`transition`],defaultValue:`0s`,intoMultiplexMode:`real`,valueOptimizers:[o.time],vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},"transition-duration":{canOverride:r.generic.time,componentOf:[`transition`],defaultValue:`0s`,intoMultiplexMode:`real`,keepUnlessDefault:`transition-delay`,valueOptimizers:[o.time,o.fraction],vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},"transition-property":{canOverride:r.generic.propertyName,componentOf:[`transition`],defaultValue:`all`,intoMultiplexMode:`placeholder`,placeholderValue:`_`,vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},"transition-timing-function":{canOverride:r.generic.timingFunction,componentOf:[`transition`],defaultValue:`ease`,intoMultiplexMode:`real`,vendorPrefixes:[`-moz-`,`-ms-`,`-o-`,`-webkit-`]},"vertical-align":{canOverride:r.property.verticalAlign,defaultValue:`baseline`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},visibility:{canOverride:r.property.visibility,defaultValue:`visible`},"-webkit-tap-highlight-color":{valueOptimizers:[o.whiteSpace,o.color]},"-webkit-margin-end":{valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"white-space":{canOverride:r.property.whiteSpace,defaultValue:`normal`},width:{canOverride:r.generic.unit,defaultValue:`auto`,shortestValue:`0`,valueOptimizers:[o.whiteSpace,o.fraction,o.precision,o.unit,o.zero]},"z-index":{canOverride:r.property.zIndex,defaultValue:`auto`}},l={};function u(e,t){var n=s(c[e],{});return`componentOf`in n&&(n.componentOf=n.componentOf.map(function(e){return t+e})),`components`in n&&(n.components=n.components.map(function(e){return t+e})),`keepUnlessDefault`in n&&(n.keepUnlessDefault=t+n.keepUnlessDefault),n}for(var d in c){var f=c[d];if(`vendorPrefixes`in f){for(var p=0;p<f.vendorPrefixes.length;p++){var m=f.vendorPrefixes[p],h=u(d,m);delete h.vendorPrefixes,l[m+d]=h}delete f.vendorPrefixes}}t.exports=s(c,l)})),aI=F(((e,t)=>{var n=``,r=dF().Breaks,i=dF().Spaces,a=fF(),o=bF();function s(e){return e[1][1]==`background`||e[1][1]==`transform`||e[1][1]==`src`}function c(e,t){return e[t][1][e[t][1].length-1]==a.CLOSE_ROUND_BRACKET}function l(e,t){return e[t][1]==a.COMMA}function u(e,t){return e[t][1]==a.FORWARD_SLASH}function d(e,t){return e[t+1]&&e[t+1][1]==a.COMMA}function f(e,t){return e[t+1]&&e[t+1][1]==a.FORWARD_SLASH}function p(e){return e[1][1]==`filter`||e[1][1]==`-ms-filter`}function m(e,t,n){return!e.spaceAfterClosingBrace&&s(t)&&c(t,n)||f(t,n)||u(t,n)||d(t,n)||l(t,n)}function h(e,t){for(var n=e.store,r=0,i=t.length;r<i;r++)n(e,t[r]),r<i-1&&n(e,E(e))}function g(e,t){for(var n=_(t),r=0,i=t.length;r<i;r++)v(e,t,r,n)}function _(e){for(var t=e.length-1;t>=0&&e[t][0]==o.COMMENT;t--);return t}function v(e,t,i,a){var s=e.store,c=t[i],l=c[2],u=l&&l[0]===o.PROPERTY_BLOCK,d=e.format?e.format.semicolonAfterLastProperty||u?!0:i<a:i<a||u,f=i===a;switch(c[0]){case o.AT_RULE:s(e,c),s(e,T(e,r.AfterProperty,!1));break;case o.AT_RULE_BLOCK:h(e,c[1]),s(e,S(e,r.AfterRuleBegins,!0)),g(e,c[2]),s(e,C(e,r.AfterRuleEnds,!1,f));break;case o.COMMENT:s(e,c),s(e,b(e,r.AfterComment)+e.indentWith);break;case o.PROPERTY:s(e,c[1]),s(e,w(e)),l&&y(e,c),s(e,d?T(e,r.AfterProperty,f):n);break;case o.RAW:s(e,c)}}function y(e,t){var n=e.store,i,s;if(t[2][0]==o.PROPERTY_BLOCK)n(e,S(e,r.AfterBlockBegins,!1)),g(e,t[2][1]),n(e,C(e,r.AfterBlockEnds,!1,!0));else for(i=2,s=t.length;i<s;i++)n(e,t[i]),i<s-1&&(p(t)||!m(e,t,i))&&n(e,a.SPACE)}function b(e,t){return e.format?e.format.breaks[t]:n}function x(e,t){return e.format&&e.format.spaces[t]}function S(e,t,r){return e.format?(e.indentBy+=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(r&&x(e,i.BeforeBlockBegins)?a.SPACE:n)+a.OPEN_CURLY_BRACKET+b(e,t)+e.indentWith):a.OPEN_CURLY_BRACKET}function C(e,t,i,o){return e.format?(e.indentBy-=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(i?b(e,r.BeforeBlockEnds):b(e,r.AfterProperty))+e.indentWith+a.CLOSE_CURLY_BRACKET+(o?n:b(e,t)+e.indentWith)):a.CLOSE_CURLY_BRACKET}function w(e){return e.format?a.COLON+(x(e,i.BeforeValue)?a.SPACE:n):a.COLON}function T(e,t,r){return e.format?a.SEMICOLON+(r?n:b(e,t)+e.indentWith):a.SEMICOLON}function E(e){return e.format?a.COMMA+b(e,r.BetweenSelectors)+e.indentWith:a.COMMA}function D(e,t){var n=e.store,i,a,s,c;for(s=0,c=t.length;s<c;s++)switch(i=t[s],a=s==c-1,i[0]){case o.AT_RULE:n(e,i),n(e,T(e,r.AfterAtRule,a));break;case o.AT_RULE_BLOCK:h(e,i[1]),n(e,S(e,r.AfterRuleBegins,!0)),g(e,i[2]),n(e,C(e,r.AfterRuleEnds,!1,a));break;case o.NESTED_BLOCK:h(e,i[1]),n(e,S(e,r.AfterBlockBegins,!0)),D(e,i[2]),n(e,C(e,r.AfterBlockEnds,!0,a));break;case o.COMMENT:n(e,i),n(e,b(e,r.AfterComment)+e.indentWith);break;case o.RAW:n(e,i);break;case o.RULE:h(e,i[1]),n(e,S(e,r.AfterRuleBegins,!0)),g(e,i[2]),n(e,C(e,r.AfterRuleEnds,!1,a));break}}t.exports={all:D,body:g,property:v,rules:h,value:y}})),oI=F(((e,t)=>{var n=aI();function r(e,t){e.output.push(typeof t==`string`?t:t[1])}function i(){return{output:[],store:r}}function a(e){var t=i();return n.all(t,e),t.output.join(``)}function o(e){var t=i();return n.body(t,e),t.output.join(``)}function s(e,t){var r=i();return n.property(r,e,t,!0),r.output.join(``)}function c(e){var t=i();return n.rules(t,e),t.output.join(``)}function l(e){var t=i();return n.value(t,e),t.output.join(``)}t.exports={all:a,body:o,property:s,rules:c,value:l}})),sI=F(((e,t)=>{var n=lF(),r=mF(),i=hF(),a=gF(),o=_F(),s=vF(),c=yF(),l=xF().all,u=iI(),d=rI(),f=AF().OptimizationLevel,p=bF(),m=fF(),h=pF(),g=oI().rules,_=`@charset`,v=RegExp(`^`+_,`i`),y=kF().DEFAULT,b=/^--\S+$/,x=/^(?:-chrome-|-[\w-]+\w|\w[\w-]+\w|\w{1,})$/,S=/^@import/i,C=/^url\(/i;function w(e){return C.test(e)}function T(e){return S.test(e[1])}function E(e){var t;return e.name==`filter`||e.name==`-ms-filter`?(t=e.value[0][1],t.indexOf(`progid`)>-1||t.indexOf(`alpha`)===0||t.indexOf(`chroma`)===0):!1}function D(){}function O(e,t,n){return t}function k(e,t,n){var r=n.options,i,a,f,m,_,v,y,S=g(e),C=l(t),T=n.options.plugins.level1Value,O=n.options.plugins.level1Property,j,ee,te;for(ee=0,te=C.length;ee<te;ee++){var ne,re,M,ie;if(a=C[ee],f=a.name,y=u[f]&&u[f].propertyOptimizer||D,i=u[f]&&u[f].valueOptimizers||[d.whiteSpace],j=b.test(f),j&&(i=r.variableOptimizers.length>0?r.variableOptimizers:[d.whiteSpace]),!j&&!x.test(f)){v=a.all[a.position],n.warnings.push(`Invalid property name '`+f+`' at `+h(v[1][2][0])+`. Ignoring.`),a.unused=!0;continue}if(a.value.length===0){v=a.all[a.position],n.warnings.push(`Empty property '`+f+`' at `+h(v[1][2][0])+`. Ignoring.`),a.unused=!0;continue}if(a.hack&&((a.hack[0]==o.ASTERISK||a.hack[0]==o.UNDERSCORE)&&!r.compatibility.properties.iePrefixHack||a.hack[0]==o.BACKSLASH&&!r.compatibility.properties.ieSuffixHack||a.hack[0]==o.BANG&&!r.compatibility.properties.ieBangHack)){a.unused=!0;continue}if(!r.compatibility.properties.ieFilters&&E(a)){a.unused=!0;continue}if(a.block){k(e,a.value[0][1],n);continue}for(ne=0,M=a.value.length;ne<M;ne++){if(m=a.value[ne][0],_=a.value[ne][1],m==p.PROPERTY_BLOCK){a.unused=!0,n.warnings.push(`Invalid value token at `+h(_[0][1][2][0])+`. Ignoring.`);break}if(w(_)&&!n.validator.isUrl(_)){a.unused=!0,n.warnings.push(`Broken URL '`+_+`' at `+h(a.value[ne][2][0])+`. Ignoring.`);break}for(re=0,ie=i.length;re<ie;re++)_=i[re](f,_,r);for(re=0,ie=T.length;re<ie;re++)_=T[re](f,_,r);a.value[ne][1]=_}for(y(S,a,r),ne=0,M=O.length;ne<M;ne++)O[ne](S,a,r)}c(C),s(C),A(t,r)}function A(e,t){var n,r;for(r=0;r<e.length;r++)n=e[r],n[0]==p.COMMENT&&(j(n,t),n[1].length===0&&(e.splice(r,1),r--))}function j(e,t){if(e[1][2]==m.EXCLAMATION&&(t.level[f.One].specialComments==`all`||t.commentsKept<t.level[f.One].specialComments)){t.commentsKept++;return}e[1]=[]}function ee(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];i[0]==p.AT_RULE&&v.test(i[1])&&(t||i[1].indexOf(_)==-1?(e.splice(n,1),n--,r--):(t=!0,e.splice(n,1),e.unshift([p.AT_RULE,i[1].replace(v,_)])))}}function te(e){var t=[`px`,`em`,`ex`,`cm`,`mm`,`in`,`pt`,`pc`,`%`];return[`ch`,`rem`,`vh`,`vm`,`vmax`,`vmin`,`vw`].forEach(function(n){e.compatibility.units[n]&&t.push(n)}),RegExp(`(^|\\s|\\(|,)0(?:`+t.join(`|`)+`)(\\W|$)`,`g`)}function ne(e){var t={matcher:null,units:{}},n=[],r,i;for(r in e)i=e[r],i!=y&&(t.units[r]={},t.units[r].value=i,t.units[r].multiplier=10**i,n.push(r));return n.length>0&&(t.enabled=!0,t.decimalPointMatcher=RegExp(`(\\d)\\.($|`+n.join(`|`)+`)($|\\W)`,`g`),t.zeroMatcher=RegExp(`(\\d*)(\\.\\d+)(`+n.join(`|`)+`)`,`g`)),t}function re(e){return e.level[f.One].variableValueOptimizers.map(function(e){return typeof e==`string`?d[e]||O:e})}function M(e,t){var o=t.options,s=o.level[f.One],c=o.compatibility.selectors.ie7Hack,l=o.compatibility.selectors.adjacentSpace,u=o.compatibility.properties.spaceAfterClosingBrace,d=o.format,m=!1,h=!1;o.unitsRegexp=o.unitsRegexp||te(o),o.precision=o.precision||ne(s.roundingPrecision),o.commentsKept=o.commentsKept||0,o.variableOptimizers=o.variableOptimizers||re(o);for(var g=0,_=e.length;g<_;g++){var v=e[g];switch(v[0]){case p.AT_RULE:v[1]=T(v)&&h?``:v[1],v[1]=s.tidyAtRules?a(v[1]):v[1],m=!0;break;case p.AT_RULE_BLOCK:k(v[1],v[2],t),h=!0;break;case p.NESTED_BLOCK:v[1]=s.tidyBlockScopes?i(v[1],u):v[1],M(v[2],t),h=!0;break;case p.COMMENT:j(v,o);break;case p.RULE:v[1]=s.tidySelectors?r(v[1],!c,l,d,t.warnings):v[1],v[1]=v[1].length>1?n(v[1],s.selectorsSortingMethod):v[1],k(v[1],v[2],t),h=!0;break}(v[0]==p.COMMENT&&v[1].length===0||s.removeEmpty&&(v[1].length===0||v[2]&&v[2].length===0))&&(e.splice(g,1),g--,_--)}return s.cleanupCharsets&&m&&ee(e),e}t.exports=M})),cI=F(((e,t)=>{var n=fF(),r=UF(),i=/\/deep\//,a=/^::/,o=/:(-moz-|-ms-|-o-|-webkit-)/,s=`:not`,c=[`:dir`,`:lang`,`:not`,`:nth-child`,`:nth-last-child`,`:nth-last-of-type`,`:nth-of-type`],l=/[>+~]/,u=[`:after`,`:before`,`:first-letter`,`:first-line`,`:lang`],d=[`::after`,`::before`,`::first-letter`,`::first-line`],f={DOUBLE_QUOTE:`double-quote`,SINGLE_QUOTE:`single-quote`,ROOT:`root`};function p(e,t,i,a){var o=r(e,n.COMMA),s,c,l;for(c=0,l=o.length;c<l;c++)if(s=o[c],s.length===0||m(s)||h(s)||s.indexOf(n.COLON)>-1&&!_(s,g(s),t,i,a))return!1;return!0}function m(e){return i.test(e)}function h(e){return o.test(e)}function g(e){var t=[],r,i=[],a=f.ROOT,o=0,s,c,u=!1,d,p=!1,m,h;for(m=0,h=e.length;m<h;m++)r=e[m],d=!c&&l.test(r),s=a==f.DOUBLE_QUOTE||a==f.SINGLE_QUOTE,c?i.push(r):r==n.DOUBLE_QUOTE&&a==f.ROOT?(i.push(r),a=f.DOUBLE_QUOTE):r==n.DOUBLE_QUOTE&&a==f.DOUBLE_QUOTE?(i.push(r),a=f.ROOT):r==n.SINGLE_QUOTE&&a==f.ROOT?(i.push(r),a=f.SINGLE_QUOTE):r==n.SINGLE_QUOTE&&a==f.SINGLE_QUOTE?(i.push(r),a=f.ROOT):s?i.push(r):r==n.OPEN_ROUND_BRACKET?(i.push(r),o++):r==n.CLOSE_ROUND_BRACKET&&o==1&&u?(i.push(r),t.push(i.join(``)),o--,i=[],u=!1):r==n.CLOSE_ROUND_BRACKET?(i.push(r),o--):r==n.COLON&&o===0&&u&&!p?(t.push(i.join(``)),i=[],i.push(r)):r==n.COLON&&o===0&&!p?(i=[],i.push(r),u=!0):r==n.SPACE&&o===0&&u||d&&o===0&&u?(t.push(i.join(``)),i=[],u=!1):i.push(r),c=r==n.BACK_SLASH,p=r==n.COLON;return i.length>0&&u&&t.push(i.join(``)),t}function _(e,t,n,r,i){return v(t,n,r)&&y(t)&&(t.length<2||!b(e,t))&&(t.length<2||i&&x(t))}function v(e,t,r){var i,a,o,s;for(o=0,s=e.length;o<s;o++)if(i=e[o],a=i.indexOf(n.OPEN_ROUND_BRACKET)>-1?i.substring(0,i.indexOf(n.OPEN_ROUND_BRACKET)):i,t.indexOf(a)===-1&&r.indexOf(a)===-1)return!1;return!0}function y(e){var t,r,i,a,o,s;for(o=0,s=e.length;o<s;o++)if(t=e[o],i=t.indexOf(n.OPEN_ROUND_BRACKET),a=i>-1,r=a?t.substring(0,i):t,a&&c.indexOf(r)==-1||!a&&c.indexOf(r)>-1)return!1;return!0}function b(e,t){var r=0,i,a,o,c,l,u,d,f,p;for(f=0,p=t.length;f<p&&(i=t[f],o=t[f+1],o);f++)if(a=e.indexOf(i,r),c=e.indexOf(i,a+1),r=c,d=a+i.length==c,d&&(l=i.indexOf(n.OPEN_ROUND_BRACKET)>-1?i.substring(0,i.indexOf(n.OPEN_ROUND_BRACKET)):i,u=o.indexOf(n.OPEN_ROUND_BRACKET)>-1?o.substring(0,o.indexOf(n.OPEN_ROUND_BRACKET)):o,l!=s||u!=s))return!0;return!1}function x(e){var t=0,n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],S(n)?t+=d.indexOf(n)>-1?1:0:t+=u.indexOf(n)>-1?1:0,t>1)return!1;return!0}function S(e){return a.test(e)}t.exports=p})),lI=F(((e,t)=>{var n=fF();function r(e,t,r){var i=t.value.length,a=r.value.length,o=Math.max(i,a),s=Math.min(i,a)-1,c,l,u;for(u=0;u<o;u++)if(c=t.value[u]&&t.value[u][1]||c,l=r.value[u]&&r.value[u][1]||l,!(c==n.COMMA||l==n.COMMA)&&!e(c,l,u,u<=s))return!1;return!0}t.exports=r})),uI=F(((e,t)=>{function n(e){for(var t=e.value.length-1;t>=0;t--)if(e.value[t][1]==`inherit`)return!0;return!1}t.exports=n})),dI=F(((e,t)=>{function n(e){var t=e.value[0][1],n,r;for(n=1,r=e.value.length;n<r;n++)if(e.value[n][1]!=t)return!1;return!0}t.exports=n})),fI=F(((e,t)=>{var n=iI(),r=SF();function i(e,t,i){for(var s,c,l,u=e.length-1;u>=0;u--){var d=e[u],f=n[d.name];if(!d.dynamic&&f&&f.shorthand){if(a(d,t)||o(d,t)){d.optimizable=!1;continue}d.shorthand=!0,d.dirty=!0;try{if(d.components=f.breakUp(d,n,t),f.shorthandComponents)for(c=0,l=d.components.length;c<l;c++)s=d.components[c],s.components=n[s.name].breakUp(s,n,t)}catch(e){if(e instanceof r)d.components=[],i.push(e.message);else throw e}d.components.length>0?d.multiplex=d.components[0].multiplex:d.unused=!0}}}function a(e,t){return e.value.length==1&&t.isVariable(e.value[0][1])}function o(e,t){return e.value.length>1&&e.value.filter(function(e){return t.isVariable(e[1])}).length>1}t.exports=i})),pI=F(((e,t)=>{var n=iI();function r(e){var t=n[e.name];return t&&t.shorthand?t.restore(e,n):e.value}t.exports=r})),mI=F(((e,t)=>{var n=lI(),r=uI(),i=dI(),a=fI(),o=iI(),s=DF().deep,c=pI(),l=yF(),u=xF().single,d=oI().body,f=bF();function p(e,t){var n={},r,a,s,c,l,u,d;if(!(e.length<3)){for(c=0,l=e.length;c<l;c++)if(s=e[c],r=o[s.name],!s.dynamic&&!s.unused&&!s.hack&&!s.block&&!(r&&r.singleTypeComponents&&!i(s))&&(m(e,c,n,t),r&&r.componentOf))for(u=0,d=r.componentOf.length;u<d;u++)a=r.componentOf[u],n[a]=n[a]||{},n[a][s.name]=s;m(e,c,n,t)}}function m(e,t,n,r){var i=e[t],a,s,c,l=[],u;for(a in n)if(!(i!==void 0&&a==i.name)){if(s=o[a],c=n[a],i&&h(n,a,i)){delete n[a];continue}s.components.length>Object.keys(c).length||g(c)||_(c,a,r)&&y(c)&&(b(c)?x(e,c,a,r):O(e,c,a,r),l.push(a))}for(u=l.length-1;u>=0;u--)delete n[l[u]]}function h(e,t,n){var r=o[t],i=o[n.name],a;if(`overridesShorthands`in r&&r.overridesShorthands.indexOf(n.name)>-1)return!0;if(i&&`componentOf`in i){for(a in e[t])if(i.componentOf.indexOf(a)>-1)return!0}return!1}function g(e){var t,n;for(n in e){if(t!==void 0&&e[n].important!=t)return!0;t=e[n].important}return!1}function _(e,t,r){var i=o[t],s=u([f.PROPERTY,[f.PROPERTY_NAME,t],[f.PROPERTY_VALUE,i.defaultValue]]),c,l,d,p;for(a([s],r,[]),d=0,p=i.components.length;d<p;d++)if(c=e[i.components[d]],l=o[c.name].canOverride||v,!n(l.bind(null,r),s.components[d],c))return!1;return!0}function v(e,t,n){return t===n}function y(e){var t=null,n,r,i,a,s;for(r in e)if(i=e[r],a=o[r],`restore`in a){if(l([i.all[i.position]],c),s=a.restore(i,o),n=s.length,t!==null&&n!==t)return!1;t=n}return!0}function b(e){var t,n=null,i;for(t in e){if(i=r(e[t]),n!==null&&n!==i)return!0;n=i}return!1}function x(e,t,n,r){var i=S(t,n,r),a=E(t,n,r),o=i[0],s=a[0],c=d(o).length<d(s).length,l=c?o:s,u=c?i[1]:a[1],f=c?i[2]:a[2],p=t[Object.keys(t).pop()],m=p.all,h=p.position,g,_,v,y;for(g in u.position=h,u.shorthand=!0,u.important=p.important,u.multiplex=!1,u.dirty=!0,u.all=m,u.all[h]=l[0],e.splice(h,1,u),t)_=t[g],_.unused=!0,u.multiplex=u.multiplex||_.multiplex,_.name in f&&(v=f[_.name],y=D(l,g),v.position=m.length,v.all=m,v.all.push(y),e.push(v))}function S(e,t,n){var i=[],d={},p={},m=o[t],h=[f.PROPERTY,[f.PROPERTY_NAME,t],[f.PROPERTY_VALUE,m.defaultValue]],g=u(h),_,v,y,b,x,S;for(a([g],n,[]),x=0,S=m.components.length;x<S;x++)_=e[m.components[x]],r(_)?(v=_.all[_.position].slice(0,2),Array.prototype.push.apply(v,_.value),i.push(v),y=s(_),y.value=C(e,y.name),g.components[x]=y,d[_.name]=s(_)):(y=s(_),y.all=_.all,g.components[x]=y,p[_.name]=_);return g.important=e[Object.keys(e).pop()].important,b=w(p,1),h[1].push(b),l([g],c),h=h.slice(0,2),Array.prototype.push.apply(h,g.value),i.unshift(h),[i,g,d]}function C(e,t){var n=o[t];return`oppositeTo`in n?e[n.oppositeTo].value:[[f.PROPERTY_VALUE,n.defaultValue]]}function w(e,t){var n=[],r,i,a,o;for(o in e)r=e[o],i=r.all[r.position],a=i[t][i[t].length-1],Array.prototype.push.apply(n,a);return n.sort(T)}function T(e,t){var n=e[0],r=t[0],i=e[1],a=t[1];return n<r||n===r&&i<a?-1:1}function E(e,t,n){var i=[],c={},l={},d=o[t],p=[f.PROPERTY,[f.PROPERTY_NAME,t],[f.PROPERTY_VALUE,`inherit`]],m=u(p),h,g,_,v,y,b;for(a([m],n,[]),y=0,b=d.components.length;y<b;y++)h=e[d.components[y]],r(h)?c[h.name]=h:(g=h.all[h.position].slice(0,2),Array.prototype.push.apply(g,h.value),i.push(g),l[h.name]=s(h));return _=w(c,1),p[1].push(_),v=w(c,2),p[2].push(v),i.unshift(p),[i,m,l]}function D(e,t){var n,r;for(n=0,r=e.length;n<r;n++)if(e[n][1][1]==t)return e[n]}function O(e,t,n,r){var i=o[n],c,l,d=[f.PROPERTY,[f.PROPERTY_NAME,n],[f.PROPERTY_VALUE,i.defaultValue]],p,m=k(e,t,n),h=u(d);h.shorthand=!0,h.dirty=!0,h.multiplex=!1,a([h],r,[]);for(var g=0,_=i.components.length;g<_;g++){var v=t[i.components[g]];h.components[g]=s(v),h.important=v.important,h.multiplex=h.multiplex||v.multiplex,p=v.all}for(var y in t)t[y].unused=!0;c=w(t,1),d[1].push(c),l=w(t,2),d[2].push(l),h.position=m,h.all=p,h.all[m]=d,e.splice(m,1,h)}function k(e,t,n){var r=Object.keys(t),i=t[r[0]].position,a=t[r[r.length-1]].position;return n==`border`&&A(e.slice(i,a),`border-image`)?i:a}function A(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].name==t)return!0;return!1}t.exports=p})),hI=F(((e,t)=>{function n(e){for(var t=e.value.length-1;t>=0;t--)if(e.value[t][1]==`unset`)return!0;return!1}t.exports=n})),gI=F(((e,t)=>{var n=iI();function r(e,t){var n=i(t);return a(e,n)||o(e,n)}function i(e){return function(t){return e.name===t.name}}function a(e,t){return e.components.filter(t)[0]}function o(e,t){var r,i,o,s;if(n[e.name].shorthandComponents){for(o=0,s=e.components.length;o<s;o++)if(r=e.components[o],i=a(r,t),i)return i}}t.exports=r})),_I=F(((e,t)=>{var n=iI();function r(e,t,r){return i(e,t)||!r&&!!n[e.name].shorthandComponents&&a(e,t)}function i(e,t){var r=n[e.name];return`components`in r&&r.components.indexOf(t.name)>-1}function a(e,t){return e.components.some(function(e){return i(e,t)})}t.exports=r})),vI=F(((e,t)=>{var n=fF();function r(e){return e.name==`font`?e.value[0][1].indexOf(n.INTERNAL)==-1:!0}t.exports=r})),yI=F(((e,t)=>{var n=iI();function r(e,t){return e.name in n&&`overridesShorthands`in n[e.name]&&n[e.name].overridesShorthands.indexOf(t.name)>-1}t.exports=r})),bI=F(((e,t)=>{var n=uI(),r=hI(),i=lI(),a=gI(),o=_I(),s=vI(),c=yI(),l=wF().same,u=iI(),d=DF().deep,f=pI(),p=DF().shallow,m=yF(),h=bF(),g=fF(),_=oI().property;function v(e,t,n){return t===n}function y(e,t){for(var n=0;n<e.components.length;n++){var r=e.components[n],a=u[r.name],o=a&&a.canOverride||v,s=p(r);if(s.value=[[h.PROPERTY_VALUE,a.defaultValue]],!i(o.bind(null,t),s,r))return!0}return!1}function b(e,t){t.unused=!0,T(t,O(e)),e.value=t.value}function x(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function S(e,t){t.unused=!0,e.value=t.value}function C(e,t){t.multiplex?x(e,t):e.multiplex?b(e,t):S(e,t)}function w(e,t){t.unused=!0;for(var n=0,r=e.components.length;n<r;n++)C(e.components[n],t.components[n])}function T(e,t){e.multiplex=!0,u[e.name].shorthand?E(e,t):D(e,t)}function E(e,t){var n,r,i;for(r=0,i=e.components.length;r<i;r++)n=e.components[r],n.multiplex||D(n,t)}function D(e,t){for(var n=u[e.name],r=n.intoMultiplexMode==`real`,i=n.intoMultiplexMode==`real`?e.value.slice(0):n.intoMultiplexMode==`placeholder`?n.placeholderValue:n.defaultValue,a=O(e),o,s=i.length;a<t;a++)if(e.value.push([h.PROPERTY_VALUE,g.COMMA]),Array.isArray(i))for(o=0;o<s;o++)e.value.push(r?i[o]:[h.PROPERTY_VALUE,i[o]]);else e.value.push(r?i:[h.PROPERTY_VALUE,i])}function O(e){for(var t=0,n=0,r=e.value.length;n<r;n++)e.value[n][1]==g.COMMA&&t++;return t+1}function k(e){return _([[h.PROPERTY,[h.PROPERTY_NAME,e.name]].concat(e.value)],0).length}function A(e,t,n){for(var r=0,i=t;i>=0&&(e[i].name==n&&!e[i].unused&&r++,!(r>1));i--);return r>1}function j(e,t){for(var n=0,r=e.components.length;n<r;n++)if(!ee(t.isUrl,e.components[n])&&ee(t.isFunction,e.components[n]))return!0;return!1}function ee(e,t){for(var n=0,r=t.value.length;n<r;n++)if(t.value[n][1]!=g.COMMA&&e(t.value[n][1]))return!0;return!1}function te(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var n=e.multiplex?e:t,r=e.multiplex?t:e,i,o=d(n);m([o],f);var s=d(r);m([s],f);var c=k(o)+1+k(s);return e.multiplex?(i=a(o,s),b(i,s)):(i=a(s,o),T(s,O(o)),x(i,o)),m([s],f),c<=k(s)}function ne(e){return e.name in u}function re(e,t){return!e.multiplex&&(e.name==`background`||e.name==`background-image`)&&t.multiplex&&(t.name==`background`||t.name==`background-image`)&&M(t.value)}function M(e){for(var t=ie(e),n=0,r=t.length;n<r;n++)if(t[n].length==1&&t[n][0][1]==`none`)return!0;return!1}function ie(e){for(var t=[],n=0,r=[],i=e.length;n<i;n++){var a=e[n];a[1]==g.COMMA?(t.push(r),r=[]):r.push(a)}return t.push(r),t}function ae(e,t,d,f){var p,m,h,g,_,b,x,S,E,D,k;propertyLoop:for(E=e.length-1;E>=0;E--)if(m=e[E],ne(m)&&!m.block){p=u[m.name].canOverride||v;traverseLoop:for(D=E-1;D>=0;D--)if(h=e[D],ne(h)&&!h.block&&!(h.dynamic||m.dynamic)&&!(h.unused||m.unused)&&!(h.hack&&!m.hack&&!m.important||!h.hack&&!h.important&&m.hack)&&!(h.important==m.important&&h.hack[0]!=m.hack[0])&&!(h.important==m.important&&(h.hack[0]!=m.hack[0]||h.hack[1]&&h.hack[1]!=m.hack[1]))&&!n(m)&&!re(h,m)){if(m.shorthand&&o(m,h)){if(!m.important&&h.important||!l([h],m.components)||!ee(f.isFunction,h)&&j(m,f))continue;if(!s(m)){h.unused=!0;continue}g=a(m,h),p=u[h.name].canOverride||v,i(p.bind(null,f),h,g)&&(h.unused=!0)}else if(m.shorthand&&c(m,h)){if(!m.important&&h.important||!l([h],m.components)||!ee(f.isFunction,h)&&j(m,f))continue;for(_=h.shorthand?h.components:[h],k=_.length-1;k>=0;k--)if(b=_[k],x=a(m,b),p=u[b.name].canOverride||v,!i(p.bind(null,f),h,x))continue traverseLoop;h.unused=!0}else if(t&&h.shorthand&&!m.shorthand&&o(h,m,!0)){if(m.important&&!h.important)continue;if(!m.important&&h.important){m.unused=!0;continue}if(A(e,E-1,h.name)||j(h,f)||!s(h)||r(h)||r(m))continue;if(g=a(h,m),i(p.bind(null,f),g,m)){var M=!d.properties.backgroundClipMerging&&g.name.indexOf(`background-clip`)>-1||!d.properties.backgroundOriginMerging&&g.name.indexOf(`background-origin`)>-1||!d.properties.backgroundSizeMerging&&g.name.indexOf(`background-size`)>-1,ie=u[m.name].nonMergeableValue===m.value[0][1];if(M||ie||!d.properties.merging&&y(h,f)||g.value[0][1]!=m.value[0][1]&&(n(h)||n(m))||te(h,m))continue;!h.multiplex&&m.multiplex&&T(h,O(m)),C(g,m),h.dirty=!0}}else if(t&&h.shorthand&&m.shorthand&&h.name==m.name){if(!h.multiplex&&m.multiplex)continue;if(!m.important&&h.important){m.unused=!0;continue propertyLoop}if(m.important&&!h.important){h.unused=!0;continue}if(!s(m)){h.unused=!0;continue}for(k=h.components.length-1;k>=0;k--){var ae=h.components[k],N=m.components[k];if(p=u[ae.name].canOverride||v,!i(p.bind(null,f),ae,N))continue propertyLoop}w(h,m),h.dirty=!0}else if(t&&h.shorthand&&m.shorthand&&o(h,m)){if(!h.important&&m.important||(g=a(h,m),p=u[m.name].canOverride||v,!i(p.bind(null,f),g,m)))continue;if(h.important&&!m.important){m.unused=!0;continue}if(u[m.name].restore(m,u).length>1)continue;g=a(h,m),C(g,m),m.dirty=!0}else if(h.name==m.name){if(S=!0,m.shorthand)for(k=m.components.length-1;k>=0&&S;k--)b=h.components[k],x=m.components[k],p=u[x.name].canOverride||v,S=i(p.bind(null,f),b,x);else p=u[m.name].canOverride||v,S=i(p.bind(null,f),h,m);if(h.important&&!m.important&&S){m.unused=!0;continue}if(!h.important&&m.important&&S){h.unused=!0;continue}if(!S)continue;h.unused=!0}}}}t.exports=ae})),xI=F(((e,t)=>{var n=mI(),r=bI(),i=fI(),a=pI(),o=xF().all,s=vF(),c=yF(),l=AF().OptimizationLevel;function u(e,t,d,f){var p=f.options.level[l.Two],m=o(e,p.skipProperties),h,g,_;for(i(m,f.validator,f.warnings),g=0,_=m.length;g<_;g++)h=m[g],h.block&&u(h.value[0][1],t,d,f);d&&p.mergeIntoShorthands&&n(m,f.validator),t&&p.overrideProperties&&r(m,d,f.options.compatibility,f.validator),c(m,a),s(m)}t.exports=u})),SI=F(((e,t)=>{var n=cI(),r=xI(),i=lF(),a=mF(),o=AF().OptimizationLevel,s=oI().body,c=oI().rules,l=bF();function u(e,t){for(var u=[null,[],[]],d=t.options,f=d.compatibility.selectors.adjacentSpace,p=d.level[o.One].selectorsSortingMethod,m=d.compatibility.selectors.mergeablePseudoClasses,h=d.compatibility.selectors.mergeablePseudoElements,g=d.compatibility.selectors.mergeLimit,_=d.compatibility.selectors.multiplePseudoMerging,v=0,y=e.length;v<y;v++){var b=e[v];if(b[0]!=l.RULE){u=[null,[],[]];continue}u[0]==l.RULE&&c(b[1])==c(u[1])?(Array.prototype.push.apply(u[2],b[2]),r(u[2],!0,!0,t),b[2]=[]):u[0]==l.RULE&&s(b[2])==s(u[2])&&n(c(b[1]),m,h,_)&&n(c(u[1]),m,h,_)&&u[1].length<g?(u[1]=a(u[1].concat(b[1]),!1,f,!1,t.warnings),u[1]=u.length>1?i(u[1],p):u[1],b[2]=[]):u=b}}t.exports=u})),CI=F(((e,t)=>{var n=/--.+$/;function r(e,t,n){var r,a,o,s,c,l;for(o=0,s=e.length;o<s;o++)for(r=e[o][1],c=0,l=t.length;c<l;c++)if(a=t[c][1],r==a||n&&i(r)==i(a))return!0;return!1}function i(e){return e.replace(n,``)}t.exports=r})),wI=F(((e,t)=>{var n=fF(),r={ADJACENT_SIBLING:`+`,DESCENDANT:`>`,DOT:`.`,HASH:`#`,NON_ADJACENT_SIBLING:`~`,PSEUDO:`:`},i=/[a-zA-Z]/,a=`:not(`,o=/[\s,(>~+]/;function s(e){var t=[0,0,0],a,s,l,u,d=0,f,p=!1,m=!1,h,g;for(h=0,g=e.length;h<g;h++){if(a=e[h],!s)if(a==n.SINGLE_QUOTE&&!u&&!l)l=!0;else if(a==n.SINGLE_QUOTE&&!u&&l)l=!1;else if(a==n.DOUBLE_QUOTE&&!u&&!l)u=!0;else if(a==n.DOUBLE_QUOTE&&u&&!l)u=!1;else if(l||u)continue;else d>0&&!p||(a==n.OPEN_ROUND_BRACKET?d++:a==n.CLOSE_ROUND_BRACKET&&d==1?(d--,p=!1):a==n.CLOSE_ROUND_BRACKET?d--:a==r.HASH?t[0]++:a==r.DOT||a==n.OPEN_SQUARE_BRACKET?t[1]++:a==r.PSEUDO&&!m&&!c(e,h)?(t[1]++,p=!1):a==r.PSEUDO?p=!0:(h===0||f)&&i.test(a)&&t[2]++);s=a==n.BACK_SLASH,m=a==r.PSEUDO,f=!s&&o.test(a)}return t}function c(e,t){return e.indexOf(a,t)===t}t.exports=s})),TI=F(((e,t)=>{var n=wI();function r(e,t,n){var r,a,o,s,c,l;for(o=0,s=e.length;o<s;o++)for(r=i(e[o][1],n),c=0,l=t.length;c<l;c++)if(a=i(t[c][1],n),r[0]===a[0]&&r[1]===a[1]&&r[2]===a[2])return!0;return!1}function i(e,t){var r;return e in t||(t[e]=r=n(e)),r||t[e]}t.exports=r})),EI=F(((e,t)=>{var n=CI(),r=TI(),i=/align-items|box-align|box-pack|flex|justify/,a=/^border-(top|right|bottom|left|color|style|width|radius)/;function o(e,t,n){for(var r=t.length-1;r>=0;r--)for(var i=e.length-1;i>=0;i--)if(!s(e[i],t[r],n))return!1;return!0}function s(e,t,o){var s=e[0],h=e[1],g=e[2],_=e[5],v=e[6],y=t[0],b=t[1],x=t[2],S=t[5],C=t[6];return s==`font`&&y==`line-height`||y==`font`&&s==`line-height`||i.test(s)&&i.test(y)||g==x&&l(s)==l(y)&&c(s)^c(y)||g==`border`&&a.test(x)&&(s==`border`||s==x||h!=b&&u(s,y))||x==`border`&&a.test(g)&&(y==`border`||y==g||h!=b&&u(s,y))||g==`border`&&x==`border`&&s!=y&&(d(s)&&f(y)||f(s)&&d(y))?!1:!!(g!=x||s==y&&g==x&&(h==b||p(h,b))||s!=y&&g==x&&s!=g&&y!=x||s!=y&&g==x&&h==b||C&&v&&!m(g)&&!m(x)&&!n(S,_,!1)||!r(_,S,o))}function c(e){return/^-(?:moz|webkit|ms|o)-/.test(e)}function l(e){return e.replace(/^-(?:moz|webkit|ms|o)-/,``)}function u(e,t){return e.split(`-`).pop()==t.split(`-`).pop()}function d(e){return e==`border-top`||e==`border-right`||e==`border-bottom`||e==`border-left`}function f(e){return e==`border-color`||e==`border-style`||e==`border-width`}function p(e,t){return c(e)&&c(t)&&e.split(`-`)[1]!=t.split(`-`)[2]}function m(e){return e==`font`||e==`line-height`||e==`list-style`}t.exports={canReorder:o,canReorderSingle:s}})),DI=F(((e,t)=>{var n=bF(),r=oI().rules,i=oI().value;function a(e){var t=[],s,c,l,u,d,f;if(e[0]==n.RULE)for(s=!/[.+>~]/.test(r(e[1])),d=0,f=e[2].length;d<f;d++)c=e[2][d],c[0]==n.PROPERTY&&(l=c[1][1],l.length!==0&&(u=i(c,d),t.push([l,u,o(l),e[2][d],l+`:`+u,e[1],s])));else if(e[0]==n.NESTED_BLOCK)for(d=0,f=e[2].length;d<f;d++)t=t.concat(a(e[2][d]));return t}function o(e){return e==`list-style`?e:e.indexOf(`-radius`)>0?`border-radius`:e==`border-collapse`||e==`border-spacing`||e==`border-image`?e:e.indexOf(`border-`)===0&&/^border-\w+-\w+$/.test(e)?e.match(/border-\w+/)[0]:e.indexOf(`border-`)===0&&/^border-\w+$/.test(e)?`border`:e.indexOf(`text-`)===0||e==`-chrome-`?e:e.replace(/^-\w+-/,``).match(/([a-zA-Z]+)/)[0].toLowerCase()}t.exports=a})),OI=F(((e,t)=>{var n=EI().canReorder,r=EI().canReorderSingle,i=DI(),a=CI(),o=oI().rules,s=AF().OptimizationLevel,c=bF();function l(e,t){for(var r=t.options.level[s.Two].mergeSemantically,a=t.cache.specificity,l={},d=[],f=e.length-1;f>=0;f--){var p=e[f];if(p[0]==c.NESTED_BLOCK){var m=o(p[1]),h=l[m];h||(h=[],l[m]=h),h.push(f)}}for(var g in l){var _=l[g];positionLoop:for(var v=_.length-1;v>0;v--){var y=_[v],b=e[y],x=_[v-1],S=e[x];directionLoop:for(var C=1;C>=-1;C-=2){for(var w=C==1,T=w?y+1:x-1,E=w?x:y,D=w?1:-1,O=w?b:S,k=w?S:b,A=i(O);T!=E;){var j=i(e[T]);if(T+=D,!(r&&u(A,j,a))&&!n(A,j,a))continue directionLoop}k[2]=w?O[2].concat(k[2]):k[2].concat(O[2]),O[2]=[],d.push(k);continue positionLoop}}}return d}function u(e,t,n){var i,o,s,c,l,u,d,f;for(l=0,u=e.length;l<u;l++)for(i=e[l],o=i[5],d=0,f=t.length;d<f;d++)if(s=t[d],c=s[5],a(o,c,!0)&&!r(i,s,n))return!1;return!0}t.exports=l})),kI=F(((e,t)=>{var n=cI(),r=lF(),i=mF(),a=AF().OptimizationLevel,o=oI().body,s=oI().rules,c=bF();function l(e){return/\.|\*| :/.test(e)}function u(e){var t=s(e[1]);return t.indexOf(`__`)>-1||t.indexOf(`--`)>-1}function d(e){return e.replace(/--[^ ,>+~:]+/g,``)}function f(e,t){var n=d(s(e[1]));for(var r in t){var i=t[r],a=d(s(i[1]));(a.indexOf(n)>-1||n.indexOf(a)>-1)&&delete t[r]}}function p(e,t){for(var d=t.options,p=d.level[a.Two].mergeSemantically,m=d.compatibility.selectors.adjacentSpace,h=d.level[a.One].selectorsSortingMethod,g=d.compatibility.selectors.mergeablePseudoClasses,_=d.compatibility.selectors.mergeablePseudoElements,v=d.compatibility.selectors.multiplePseudoMerging,y={},b=e.length-1;b>=0;b--){var x=e[b];if(x[0]==c.RULE){x[2].length>0&&!p&&l(s(x[1]))&&(y={}),x[2].length>0&&p&&u(x)&&f(x,y);var S=o(x[2]),C=y[S];C&&n(s(x[1]),g,_,v)&&n(s(C[1]),g,_,v)&&(x[2].length>0?(x[1]=i(C[1].concat(x[1]),!1,m,!1,t.warnings),x[1]=x[1].length>1?r(x[1],h):x[1]):x[1]=C[1].concat(x[1]),C[2]=[],y[S]=null),y[o(x[2])]=x}}}t.exports=p})),AI=F(((e,t)=>{var n=EI().canReorder,r=DI(),i=xI(),a=oI().rules,o=bF();function s(e,t){var s=t.cache.specificity,c={},l=[],u;for(u=e.length-1;u>=0;u--)if(e[u][0]==o.RULE&&e[u][2].length!==0){var d=a(e[u][1]);c[d]=[u].concat(c[d]||[]),c[d].length==2&&l.push(d)}for(u=l.length-1;u>=0;u--){var f=c[l[u]];selectorIterator:for(var p=f.length-1;p>0;p--){var m=f[p-1],h=e[m],g=f[p],_=e[g];directionIterator:for(var v=1;v>=-1;v-=2){for(var y=v==1,b=y?m+1:g-1,x=y?g:m,S=y?1:-1,C=y?h:_,w=y?_:h,T=r(C);b!=x;){var E=r(e[b]);b+=S;var D=y?n(T,E,s):n(E,T,s);if(!D&&!y)continue selectorIterator;if(!D&&y)continue directionIterator}y?(Array.prototype.push.apply(C[2],w[2]),w[2]=C[2]):Array.prototype.push.apply(w[2],C[2]),i(w[2],!0,!0,t),C[2]=[]}}}}t.exports=s})),jI=F(((e,t)=>{function n(e){for(var t=e.slice(0),r=0,i=t.length;r<i;r++)Array.isArray(t[r])&&(t[r]=n(t[r]));return t}t.exports=n})),MI=F(((e,t)=>{var n=cI(),r=xI(),i=jI(),a=bF(),o=oI().body,s=oI().rules;function c(e,t){for(var r=t.options,i=r.compatibility.selectors.mergeablePseudoClasses,o=r.compatibility.selectors.mergeablePseudoElements,c=r.compatibility.selectors.multiplePseudoMerging,f={},p=[],m=e.length-1;m>=0;m--){var h=e[m];if(h[0]==a.RULE&&h[2].length!==0)for(var g=s(h[1]),_=h[1].length>1&&n(g,i,o,c),v=l(h[1]),y=_?[g].concat(v):[g],b=0,x=y.length;b<x;b++){var S=y[b];f[S]?p.push(S):f[S]=[],f[S].push({where:m,list:v,isPartial:_&&b>0,isComplex:_&&b===0})}}u(e,p,f,r,t),d(e,f,r,t)}function l(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][1]]);return t}function u(e,t,n,r,i){function a(e,t){return l[e].isPartial&&t.length===0}function o(e,t,n,r){l[n-r-1].isPartial||(e[2]=t)}for(var s=0,c=t.length;s<c;s++){var l=n[t[s]];f(e,l,{filterOut:a,callback:o},r,i)}}function d(e,t,r,i){var a=r.compatibility.selectors.mergeablePseudoClasses,s=r.compatibility.selectors.mergeablePseudoElements,c=r.compatibility.selectors.multiplePseudoMerging,l={};function u(e){return l.data[e].where<l.intoPosition}function d(e,t,n,r){r===0&&l.reducedBodies.push(t)}allSelectors:for(var p in t){var m=t[p];if(m[0].isComplex){var h=m[m.length-1].where,g=e[h],_=[],v=n(p,a,s,c)?m[0].list:[p];l.intoPosition=h,l.reducedBodies=_;for(var y=0,b=v.length;y<b;y++){var x=t[v[y]];if(x.length<2||(l.data=x,f(e,x,{filterOut:u,callback:d},r,i),o(_[_.length-1])!=o(_[0])))continue allSelectors}g[2]=_[0]}}}function f(e,t,n,a,o){for(var s=[],c=[],l=[],u=t.length-1;u>=0;u--)if(!n.filterOut(u,s)){var d=t[u].where,f=e[d],p=i(f[2]);s=s.concat(p),c.push(p),l.push(d)}r(s,!0,!1,o);for(var m=l.length,h=s.length-1,g=m-1;g>=0;){if((g===0||s[h]&&c[g].indexOf(s[h])>-1)&&h>-1){h--;continue}var _=s.splice(h+1);n.callback(e[l[g]],_,m,g),g--}}t.exports=c})),NI=F(((e,t)=>{var n=bF(),r=oI().all,i=`@font-face`;function a(e){var t=[],a,o,s,c;for(s=0,c=e.length;s<c;s++)a=e[s],!(a[0]!=n.AT_RULE_BLOCK&&a[1][0][1]!=i)&&(o=r([a]),t.indexOf(o)>-1?a[2]=[]:t.push(o))}t.exports=a})),PI=F(((e,t)=>{var n=bF(),r=oI().all,i=oI().rules;function a(e){var t={},a,o,s,c,l;for(c=0,l=e.length;c<l;c++)o=e[c],o[0]==n.NESTED_BLOCK&&(s=i(o[1])+`%`+r(o[2]),a=t[s],a&&(a[2]=[]),t[s]=o)}t.exports=a})),FI=F(((e,t)=>{var n=bF(),r=oI().body,i=oI().rules;function a(e){for(var t={},a=[],o,s,c,l,u=0,d=e.length;u<d;u++)s=e[u],s[0]==n.RULE&&(o=i(s[1]),t[o]&&t[o].length==1?a.push(o):t[o]=t[o]||[],t[o].push(u));for(u=0,d=a.length;u<d;u++){o=a[u],l=[];for(var f=t[o].length-1;f>=0;f--)s=e[t[o][f]],c=r(s[2]),l.indexOf(c)>-1?s[2]=[]:l.push(c)}}t.exports=a})),II=F(((e,t)=>{var n=fI(),r=xF().single,i=yF(),a=bF(),o=/^(-moz-|-o-|-webkit-)?animation-name$/,s=/^(-moz-|-o-|-webkit-)?animation$/,c=/^@(-moz-|-o-|-webkit-)?keyframes /,l=/\s{0,31}!important$/,u=/^(['"]?)(.*)\1$/;function d(e){return e.replace(u,`$2`).replace(l,``)}function f(e,t){p(e,h,g,t),p(e,_,v,t),p(e,y,b,t),p(e,x,S,t)}function p(e,t,n,r){var i={},o,s,c,l,u,d;for(u=0,d=e.length;u<d;u++)t(e[u],i);if(Object.keys(i).length!==0)for(o in m(e,n,i,r),i)for(s=i[o],u=0,d=s.length;u<d;u++)c=s[u],l=c[0]==a.AT_RULE?1:2,c[l]=[]}function m(e,t,n,r){var i=t(n),o,s;for(o=0,s=e.length;o<s;o++)switch(e[o][0]){case a.RULE:i(e[o],r);break;case a.NESTED_BLOCK:m(e[o][2],t,n,r)}}function h(e,t){var n;e[0]==a.AT_RULE_BLOCK&&e[1][0][1].indexOf(`@counter-style`)===0&&(n=e[1][0][1].split(` `)[1],t[n]=t[n]||[],t[n].push(e))}function g(e){return function(t,a){var o,s,c,l;for(c=0,l=t[2].length;c<l;c++)o=t[2][c],o[1][1]==`list-style`&&(s=r(o),n([s],a.validator,a.warnings),s.components[0].value[0][1]in e&&delete e[o[2][1]],i([s])),o[1][1]==`list-style-type`&&o[2][1]in e&&delete e[o[2][1]]}}function _(e,t){var n,r,i,o;if(e[0]==a.AT_RULE_BLOCK&&e[1][0][1]==`@font-face`){for(i=0,o=e[2].length;i<o;i++)if(n=e[2][i],n[1][1]==`font-family`){r=d(n[2][1].toLowerCase()),t[r]=t[r]||[],t[r].push(e);break}}}function v(e){return function(t,a){var o,s,c,l,u,f,p,m;for(u=0,f=t[2].length;u<f;u++){if(o=t[2][u],o[1][1]==`font`){for(s=r(o),n([s],a.validator,a.warnings),c=s.components[6],p=0,m=c.value.length;p<m;p++)l=d(c.value[p][1].toLowerCase()),l in e&&delete e[l];i([s])}if(o[1][1]==`font-family`)for(p=2,m=o.length;p<m;p++)l=d(o[p][1].toLowerCase()),l in e&&delete e[l]}}}function y(e,t){var n;e[0]==a.NESTED_BLOCK&&c.test(e[1][0][1])&&(n=e[1][0][1].split(` `)[1],t[n]=t[n]||[],t[n].push(e))}function b(e){return function(t,a){var c,l,u,d,f,p,m;for(d=0,f=t[2].length;d<f;d++){if(c=t[2][d],s.test(c[1][1])){for(l=r(c),n([l],a.validator,a.warnings),u=l.components[7],p=0,m=u.value.length;p<m;p++)u.value[p][1]in e&&delete e[u.value[p][1]];i([l])}if(o.test(c[1][1]))for(p=2,m=c.length;p<m;p++)c[p][1]in e&&delete e[c[p][1]]}}}function x(e,t){var n;e[0]==a.AT_RULE&&e[1].indexOf(`@namespace`)===0&&(n=e[1].split(` `)[1],t[n]=t[n]||[],t[n].push(e))}function S(e){var t=RegExp(Object.keys(e).join(`\\||`)+`\\|`,`g`);return function(n){var r,i,a,o,s,c,l;for(o=0,s=n[1].length;o<s;o++)for(i=n[1][o],r=i[1].match(t),c=0,l=r.length;c<l;c++)a=r[c].substring(0,r[c].length-1),a in e&&delete e[a]}}t.exports=f})),LI=F(((e,t)=>{function n(e,t){return e[1]>t[1]?1:-1}function r(e){for(var t=[],r=[],i=0,a=e.length;i<a;i++){var o=e[i];r.indexOf(o[1])==-1&&(r.push(o[1]),t.push(o))}return t.sort(n)}t.exports=r})),RI=F(((e,t)=>{var n=EI().canReorderSingle,r=DI(),i=cI(),a=LI(),o=bF(),s=jI(),c=oI().body,l=oI().rules;function u(e,t){return e>t?1:-1}function d(e,t){var n=s(e);return n[5]=n[5].concat(t[5]),n}function f(e,t){var s=t.options,f=s.compatibility.selectors.mergeablePseudoClasses,p=s.compatibility.selectors.mergeablePseudoElements,m=s.compatibility.selectors.mergeLimit,h=s.compatibility.selectors.multiplePseudoMerging,g=t.cache.specificity,_={},v=[],y={},b=[],x=2,S=`%`;function C(e,t,n){for(var r=n.length-1;r>=0;r--){var i=n[r][0],a=w(t,i);if(y[a].length>1&&M(e,y[a])){T(a);break}}}function w(e,t){var n=E(t);return y[n]=y[n]||[],y[n].push([e,t]),n}function T(e){var t=e.split(S),n=[],r;for(var i in y){var a=i.split(S);for(r=a.length-1;r>=0;r--)if(t.indexOf(a[r])>-1){n.push(i);break}}for(r=n.length-1;r>=0;r--)delete y[n[r]]}function E(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(l(e[n][1]));return t.join(S)}function D(e){for(var t=[],n=[],r=e.length-1;r>=0;r--)i(l(e[r][1]),f,p,h)&&(n.unshift(e[r]),e[r][2].length>0&&t.indexOf(e[r])==-1&&t.push(e[r]));return t.length>1?n:[]}function O(e,t){var n=t[0],r=t[1],i=t[4],o=n.length+r.length+1,s=[],c=[],l=D(_[i]);if(!(l.length<2)){var u=A(l,o,1),d=u[0];if(d[1]>0)return C(e,t,u);for(var f=d[0].length-1;f>=0;f--)s=d[0][f][1].concat(s),c.unshift(d[0][f]);s=a(s),te(e,[t],s,c)}}function k(e,t){return e[1]>t[1]?1:e[1]==t[1]?0:-1}function A(e,t,n){return j(e,t,n,x-1).sort(k)}function j(e,t,n,r){var i=[[e,ee(e,t,n)]];if(e.length>2&&r>0)for(var a=e.length-1;a>=0;a--){var o=Array.prototype.slice.call(e,0);o.splice(a,1),i=i.concat(j(o,t,n,r-1))}return i}function ee(e,t,n){for(var r=0,i=e.length-1;i>=0;i--)r+=e[i][2].length>n?l(e[i][1]).length:-1;return r-(e.length-1)*t+1}function te(t,n,r,i){var a,s,l,u,d=[];for(a=i.length-1;a>=0;a--){var f=i[a];for(s=f[2].length-1;s>=0;s--){var p=f[2][s];for(l=0,u=n.length;l<u;l++){var m=n[l],h=p[1][1],g=m[0],_=m[4];if(h==g&&c([p])==_){f[2].splice(s,1);break}}}}for(a=n.length-1;a>=0;a--)d.unshift(n[a][3]);var v=[o.RULE,r,d];e.splice(t,0,v)}function ne(e,t){var n=_[t[4]];n&&n.length>1&&(re(e,t)||O(e,t))}function re(e,t){var n=[],r=[],i=t[4],a,o,s=D(_[i]);if(!(s.length<2)){movableLoop:for(var c in _){var l=_[c];for(a=s.length-1;a>=0;a--)if(l.indexOf(s[a])==-1)continue movableLoop;n.push(c)}if(n.length<2)return!1;for(a=n.length-1;a>=0;a--)for(o=v.length-1;o>=0;o--)if(v[o][4]==n[a]){r.unshift([v[o],s]);break}return M(e,r)}}function M(e,t){for(var n=0,r=[],i,o=t.length-1;o>=0;o--){i=t[o][0];var s=i[4];n+=s.length+(o>0?1:0),r.push(i)}var c=t[0][1],l=A(c,n,r.length)[0];if(l[1]>0)return!1;var u=[],d=[];for(o=l[0].length-1;o>=0;o--)u=l[0][o][1].concat(u),d.unshift(l[0][o]);for(u=a(u),te(e,r,u,d),o=r.length-1;o>=0;o--){i=r[o];var f=v.indexOf(i);delete _[i[4]],f>-1&&b.indexOf(f)==-1&&b.push(f)}return!0}function ie(e,t,n){if(e[0]!=t[0])return!1;var r=_[t[4]];return r&&r.indexOf(n)>-1}for(var ae=e.length-1;ae>=0;ae--){var N=e[ae],oe,se,P,ce,le;if(N[0]==o.RULE)oe=!0;else if(N[0]==o.NESTED_BLOCK)oe=!1;else continue;var ue=v.length,de=r(N);b=[];var fe=[];for(se=de.length-1;se>=0;se--)for(P=se-1;P>=0;P--)if(!n(de[se],de[P],g)){fe.push(se);break}for(se=de.length-1;se>=0;se--){var pe=de[se],me=!1;for(P=0;P<ue;P++){var he=v[P];b.indexOf(P)==-1&&(!n(pe,he,g)&&!ie(pe,he,N)||_[he[4]]&&_[he[4]].length===m)&&(ne(ae+1,he),b.indexOf(P)==-1&&(b.push(P),delete _[he[4]])),me||(me=pe[0]==he[0]&&pe[1]==he[1],me&&(le=P))}if(!(!oe||fe.indexOf(se)>-1)){var F=pe[4];me&&v[le][5].length+pe[5].length>m?(ne(ae+1,v[le]),v.splice(le,1),_[F]=[N],me=!1):(_[F]=_[F]||[],_[F].push(N)),me?v[le]=d(v[le],pe):v.push(pe)}}for(b=b.sort(u),se=0,ce=b.length;se<ce;se++){var ge=b[se]-se;v.splice(ge,1)}}for(var I=e[0]&&e[0][0]==o.AT_RULE&&e[0][1].indexOf(`@charset`)===0?1:0;I<e.length-1;I++){var _e=e[I][0]===o.AT_RULE&&e[I][1].indexOf(`@import`)===0,ve=e[I][0]===o.COMMENT;if(!(_e||ve))break}for(ae=0;ae<v.length;ae++)ne(I,v[ae])}t.exports=f})),zI=F(((e,t)=>{var n=SI(),r=OI(),i=kI(),a=AI(),o=MI(),s=NI(),c=PI(),l=FI(),u=II(),d=RI(),f=xI(),p=AF().OptimizationLevel,m=bF();function h(e){for(var t=0,n=e.length;t<n;t++){var r=e[t],i=!1;switch(r[0]){case m.RULE:i=r[1].length===0||r[2].length===0;break;case m.NESTED_BLOCK:h(r[2]),i=r[2].length===0;break;case m.AT_RULE:i=r[1].length===0;break;case m.AT_RULE_BLOCK:i=r[2].length===0}i&&(e.splice(t,1),t--,n--)}}function g(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i[0]==m.NESTED_BLOCK){var a=/@(-moz-|-o-|-webkit-)?keyframes/.test(i[1][0][1]);v(i[2],t,!a)}}}function _(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];switch(i[0]){case m.RULE:f(i[2],!0,!0,t);break;case m.NESTED_BLOCK:_(i[2],t)}}}function v(e,t,f){var m=t.options.level[p.Two],y=t.options.plugins.level2Block,b,x;if(g(e,t),_(e,t),m.removeDuplicateRules&&l(e,t),m.mergeAdjacentRules&&n(e,t),m.reduceNonAdjacentRules&&o(e,t),m.mergeNonAdjacentRules&&m.mergeNonAdjacentRules!=`body`&&a(e,t),m.mergeNonAdjacentRules&&m.mergeNonAdjacentRules!=`selector`&&i(e,t),m.restructureRules&&m.mergeAdjacentRules&&f&&(d(e,t),n(e,t)),m.restructureRules&&!m.mergeAdjacentRules&&f&&d(e,t),m.removeDuplicateFontRules&&s(e,t),m.removeDuplicateMediaBlocks&&c(e,t),m.removeUnusedAtRules&&u(e,t),m.mergeMedia)for(b=r(e,t),x=b.length-1;x>=0;x--)v(b[x][2],t,!1);for(x=0;x<y.length;x++)y[x](e);return m.removeEmpty&&h(e),e}t.exports=v})),BI=F(((e,t)=>{var n=`[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)`,r=`\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)`,i=`var\\(\\-\\-[^\\)]+\\)`,a=`(`+i+`|`+n+`|`+r+`)`,o=RegExp(`^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$`,`i`),s=/[0-9]/,c=RegExp(`^`+a+`$`,`i`),l=/^#(?:[0-9a-f]{4}|[0-9a-f]{8})$/i,u=/^hsl\(\s{0,31}[-.]?\d+\s{0,31},\s{0,31}\d*\.?\d+%\s{0,31},\s{0,31}\d*\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[-.]?\d+\s{0,31},\s{0,31}\d*\.?\d+%\s{0,31},\s{0,31}\d*\.?\d+%\s{0,31},\s{0,31}\.?\d+\s{0,31}\)$/,d=/^hsl\(\s{0,31}[-.]?\d+(deg)?\s{1,31}\d*\.?\d+%\s{1,31}\d*\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[-.]?\d+(deg)?\s{1,31}\d*\.?\d+%\s{1,31}\d*\.?\d+%\s{1,31}\/\s{1,31}\d*\.?\d+%?\s{0,31}\)$/,f=/^(-[a-z0-9_][a-z0-9\-_]*|[a-z_][a-z0-9\-_]*)$/i,p=/^[a-z]+$/i,m=/^-([a-z0-9]|-)*$/i,h=/^("[^"]*"|'[^']*')$/i,g=/^rgb\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[.\d]+\s{0,31}\)$/i,_=/^rgb\(\s{0,31}[\d]{1,3}\s{1,31}[\d]{1,3}\s{1,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{1,31}[\d]{1,3}\s{1,31}[\d]{1,3}\s{1,31}\/\s{1,31}[\d]*\.?[.\d]+%?\s{0,31}\)$/i,v=/\d+(s|ms)/,y=/^(cubic-bezier|steps)\([^)]+\)$/,b=[`ms`,`s`],x=/^url\([\s\S]+\)$/i,S=RegExp(`^`+i+`$`,`i`),C=/^#[0-9a-f]{8}$/i,w=/^#[0-9a-f]{4}$/i,T=/^#[0-9a-f]{6}$/i,E=/^#[0-9a-f]{3}$/i,D=`.`,O=`-`,k=`+`,A={"^":[`inherit`,`initial`,`unset`],"*-style":[`auto`,`dashed`,`dotted`,`double`,`groove`,`hidden`,`inset`,`none`,`outset`,`ridge`,`solid`],"*-timing-function":[`ease`,`ease-in`,`ease-in-out`,`ease-out`,`linear`,`step-end`,`step-start`],"animation-direction":[`alternate`,`alternate-reverse`,`normal`,`reverse`],"animation-fill-mode":[`backwards`,`both`,`forwards`,`none`],"animation-iteration-count":[`infinite`],"animation-name":[`none`],"animation-play-state":[`paused`,`running`],"background-attachment":[`fixed`,`inherit`,`local`,`scroll`],"background-clip":[`border-box`,`content-box`,`inherit`,`padding-box`,`text`],"background-origin":[`border-box`,`content-box`,`inherit`,`padding-box`],"background-position":[`bottom`,`center`,`left`,`right`,`top`],"background-repeat":[`no-repeat`,`inherit`,`repeat`,`repeat-x`,`repeat-y`,`round`,`space`],"background-size":[`auto`,`cover`,`contain`],"border-collapse":[`collapse`,`inherit`,`separate`],bottom:[`auto`],clear:[`both`,`left`,`none`,`right`],color:[`transparent`],cursor:[`all-scroll`,`auto`,`col-resize`,`crosshair`,`default`,`e-resize`,`help`,`move`,`n-resize`,`ne-resize`,`no-drop`,`not-allowed`,`nw-resize`,`pointer`,`progress`,`row-resize`,`s-resize`,`se-resize`,`sw-resize`,`text`,`vertical-text`,`w-resize`,`wait`],display:[`block`,`inline`,`inline-block`,`inline-table`,`list-item`,`none`,`table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row`,`table-row-group`],float:[`left`,`none`,`right`],left:[`auto`],font:[`caption`,`icon`,`menu`,`message-box`,`small-caption`,`status-bar`,`unset`],"font-size":[`large`,`larger`,`medium`,`small`,`smaller`,`x-large`,`x-small`,`xx-large`,`xx-small`],"font-stretch":[`condensed`,`expanded`,`extra-condensed`,`extra-expanded`,`normal`,`semi-condensed`,`semi-expanded`,`ultra-condensed`,`ultra-expanded`],"font-style":[`italic`,`normal`,`oblique`],"font-variant":[`normal`,`small-caps`],"font-weight":[`100`,`200`,`300`,`400`,`500`,`600`,`700`,`800`,`900`,`bold`,`bolder`,`lighter`,`normal`],"line-height":[`normal`],"list-style-position":[`inside`,`outside`],"list-style-type":[`armenian`,`circle`,`decimal`,`decimal-leading-zero`,`disc`,`decimal|disc`,`georgian`,`lower-alpha`,`lower-greek`,`lower-latin`,`lower-roman`,`none`,`square`,`upper-alpha`,`upper-latin`,`upper-roman`],overflow:[`auto`,`hidden`,`scroll`,`visible`],position:[`absolute`,`fixed`,`relative`,`static`],right:[`auto`],"text-align":[`center`,`justify`,`left`,`left|right`,`right`],"text-decoration":[`line-through`,`none`,`overline`,`underline`],"text-overflow":[`clip`,`ellipsis`],top:[`auto`],"vertical-align":[`baseline`,`bottom`,`middle`,`sub`,`super`,`text-bottom`,`text-top`,`top`],visibility:[`collapse`,`hidden`,`visible`],"white-space":[`normal`,`nowrap`,`pre`],width:[`inherit`,`initial`,`medium`,`thick`,`thin`]},j=[`%`,`ch`,`cm`,`em`,`ex`,`in`,`mm`,`pc`,`pt`,`px`,`rem`,`vh`,`vm`,`vmax`,`vmin`,`vw`];function ee(e){return e!=`auto`&&(P(`color`)(e)||M(e)||te(e)||ce(e))}function te(e){return ue(e)||ie(e)}function ne(e){return o.test(e)}function re(e){return c.test(e)}function M(e){return E.test(e)||w.test(e)||T.test(e)||C.test(e)}function ie(e){return u.test(e)||d.test(e)}function ae(e){return l.test(e)}function N(e){return f.test(e)}function oe(e){return h.test(e)}function se(e){return e==`none`||e==`inherit`||I(e)}function P(e){return function(t){return A[e].indexOf(t)>-1}}function ce(e){return p.test(e)}function le(e){return ve(e)==e.length}function ue(e){return g.test(e)||_.test(e)}function de(e){return m.test(e)}function fe(e){return le(e)&&parseFloat(e)>=0}function pe(e){return S.test(e)}function me(e){var t=ve(e);return t==e.length&&parseInt(e)===0||t>-1&&b.indexOf(e.slice(t+1))>-1||he(e)}function he(e){return re(e)&&v.test(e)}function F(){var e=P(`*-timing-function`);return function(t){return e(t)||y.test(t)}}function ge(e,t){var n=ve(t);return n==t.length&&parseInt(t)===0||n>-1&&e.indexOf(t.slice(n+1).toLowerCase())>-1||t==`auto`||t==`inherit`}function I(e){return x.test(e)}function _e(e){return e==`auto`||le(e)||P(`^`)(e)}function ve(e){var t=!1,n=!1,r,i,a;for(i=0,a=e.length;i<a;i++)if(r=e[i],i===0&&(r==k||r==O))n=!0;else if(i>0&&n&&(r==k||r==O))return i-1;else if(r==D&&!t)t=!0;else if(r==D&&t)return i-1;else if(s.test(r))continue;else return i-1;return i}function ye(e){var t=j.slice(0).filter(function(t){return!(t in e.units)||e.units[t]===!0});return e.customUnits.rpx&&t.push(`rpx`),{colorOpacity:e.colors.opacity,colorHexAlpha:e.colors.hexAlpha,isAnimationDirectionKeyword:P(`animation-direction`),isAnimationFillModeKeyword:P(`animation-fill-mode`),isAnimationIterationCountKeyword:P(`animation-iteration-count`),isAnimationNameKeyword:P(`animation-name`),isAnimationPlayStateKeyword:P(`animation-play-state`),isTimingFunction:F(),isBackgroundAttachmentKeyword:P(`background-attachment`),isBackgroundClipKeyword:P(`background-clip`),isBackgroundOriginKeyword:P(`background-origin`),isBackgroundPositionKeyword:P(`background-position`),isBackgroundRepeatKeyword:P(`background-repeat`),isBackgroundSizeKeyword:P(`background-size`),isColor:ee,isColorFunction:te,isDynamicUnit:ne,isFontKeyword:P(`font`),isFontSizeKeyword:P(`font-size`),isFontStretchKeyword:P(`font-stretch`),isFontStyleKeyword:P(`font-style`),isFontVariantKeyword:P(`font-variant`),isFontWeightKeyword:P(`font-weight`),isFunction:re,isGlobal:P(`^`),isHexAlphaColor:ae,isHslColor:ie,isIdentifier:N,isImage:se,isKeyword:P,isLineHeightKeyword:P(`line-height`),isListStylePositionKeyword:P(`list-style-position`),isListStyleTypeKeyword:P(`list-style-type`),isNumber:le,isPrefixed:de,isPositiveNumber:fe,isQuotedText:oe,isRgbColor:ue,isStyleKeyword:P(`*-style`),isTime:me,isUnit:ge.bind(null,t),isUrl:I,isVariable:pe,isWidth:P(`width`),isZIndex:_e}}t.exports=ye})),VI=F(((e,t)=>{var n={"*":{colors:{hexAlpha:!1,opacity:!0},customUnits:{rpx:!1},properties:{backgroundClipMerging:!0,backgroundOriginMerging:!0,backgroundSizeMerging:!0,colors:!0,ieBangHack:!1,ieFilters:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!0,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,mergeablePseudoClasses:`:active.:after.:before.:empty.:checked.:disabled.:empty.:enabled.:first-child.:first-letter.:first-line.:first-of-type.:focus.:hover.:lang.:last-child.:last-of-type.:link.:not.:nth-child.:nth-last-child.:nth-last-of-type.:nth-of-type.:only-child.:only-of-type.:root.:target.:visited`.split(`.`),mergeablePseudoElements:[`::after`,`::before`,`::first-letter`,`::first-line`],mergeLimit:8191,multiplePseudoMerging:!0},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}}};n.ie11=i(n[`*`],{properties:{ieSuffixHack:!0}}),n.ie10=i(n[`*`],{properties:{ieSuffixHack:!0}}),n.ie9=i(n[`*`],{properties:{ieFilters:!0,ieSuffixHack:!0}}),n.ie8=i(n.ie9,{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,iePrefixHack:!0,merging:!1},selectors:{mergeablePseudoClasses:[`:after`,`:before`,`:first-child`,`:first-letter`,`:focus`,`:hover`,`:visited`],mergeablePseudoElements:[]},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}),n.ie7=i(n.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[`:first-child`,`:first-letter`,`:hover`,`:visited`]}});function r(e){return i(n[`*`],a(e))}function i(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];Object.prototype.hasOwnProperty.call(t,n)&&typeof r==`object`&&!Array.isArray(r)?t[n]=i(r,t[n]||{}):t[n]=n in t?t[n]:r}return t}function a(e){if(typeof e==`object`)return e;if(!/[,+-]/.test(e))return n[e]||n[`*`];var t=e.split(`,`),r=t[0]in n?n[t.shift()]:n[`*`];return e={},t.forEach(function(t){var n=t[0]==`+`,r=t.substring(1).split(`.`),i=r[0],a=r[1];e[i]=e[i]||{},e[i][a]=n}),i(r,e)}t.exports=r})),HI=F(((e,t)=>{var n=/^http:\/\//;function r(e){return n.test(e)}t.exports=r})),UI=F(((e,t)=>{var n=/^https:\/\//;function r(e){return n.test(e)}t.exports=r})),WI=F(((e,t)=>{var n=ve(`http`),r=ve(`https`),i=ve(`url`),a=HI(),o=UI(),s=uF(),c=`http:`;function l(e,t,u,d){var f=t.protocol||t.hostname,p=!1,m=s(i.parse(e),t||{}),h;t.hostname!==void 0&&(m.protocol=t.protocol||c,m.path=m.href),h=f&&!o(f)||a(e)?n.get:r.get,h(m,function(n){var r=[],a;if(!p){if(n.statusCode<200||n.statusCode>399)return d(n.statusCode,null);if(n.statusCode>299)return a=i.resolve(e,n.headers.location),l(a,t,u,d);n.on(`data`,function(e){r.push(e.toString())}),n.on(`end`,function(){d(null,r.join(``))})}}).on(`error`,function(e){p||(p=!0,d(e.message,null))}).on(`timeout`,function(){p||(p=!0,d(`timeout`,null))}).setTimeout(u)}t.exports=l})),GI=F(((e,t)=>{var n=WI();function r(e){return e||n}t.exports=r})),KI=F(((e,t)=>{function n(e){return Array.isArray(e)?e:e===!1?[`none`]:e===void 0?[`local`]:e.split(`,`)}t.exports=n})),qI=F(((e,t)=>{var n=ve(`url`),r=uF();function i(e){return r(a(process.env.HTTP_PROXY||process.env.http_proxy),e||{})}function a(e){return e?{hostname:n.parse(e).hostname,port:parseInt(n.parse(e).port)}:{}}t.exports=i})),JI=F(((e,t)=>{var n=5e3;function r(e){return e||n}t.exports=r})),YI=F(((e,t)=>{function n(e){var t={level1Value:[],level1Property:[],level2Block:[]};return e||=[],t.level1Value=e.map(function(e){return e.level1&&e.level1.value}).filter(function(e){return e!=null}),t.level1Property=e.map(function(e){return e.level1&&e.level1.property}).filter(function(e){return e!=null}),t.level2Block=e.map(function(e){return e.level2&&e.level2.block}).filter(function(e){return e!=null}),t}t.exports=n})),XI=F(((e,t)=>{function n(e,t){return t===void 0?e===void 0?!1:!!e:!0}t.exports=n})),ZI=F(((e,t)=>{var n=ve(`path`);function r(e){return e?n.resolve(e):process.cwd()}t.exports=r})),QI=F((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),$I=F((e=>{var t=QI(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),eL=F((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y})),tL=F((e=>{var t=eL(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i})),nL=F((e=>{var t=eL();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r})),rL=F((e=>{var t=$I(),n=eL(),r=tL().ArraySet,i=nL().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a})),iL=F((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),aL=F((e=>{function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}})),oL=F((e=>{var t=eL(),n=iL(),r=tL().ArraySet,i=$I(),a=aL().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l})),sL=F((e=>{var t=rL().SourceMapGenerator,n=eL(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o})),cL=F((e=>{e.SourceMapGenerator=rL().SourceMapGenerator,e.SourceMapConsumer=oL().SourceMapConsumer,e.SourceNode=sL().SourceNode})),lL=F(((e,t)=>{var n=cL().SourceMapConsumer;function r(){var e={};return{all:i.bind(null,e),isTracking:a.bind(null,e),originalPositionFor:o.bind(null,e),track:c.bind(null,e)}}function i(e){return e}function a(e,t){return t in e}function o(e,t,n,r){for(var i=t[0],a=t[1],c=t[2],l={line:i,column:a+n},u;!u&&l.column>a;)l.column--,u=e[c].originalPositionFor(l);return!u||u.column<0?t:u.line===null&&i>1&&r>0?o(e,[i-1,a,c],n,r-1):u.line===null?t:s(u)}function s(e){return[e.line,e.column,e.source]}function c(e,t,r){e[t]=new n(r)}t.exports=r})),uL=F(((e,t)=>{var n=/^(\w+:\/\/|\/\/)/,r=/^file:\/\//;function i(e){return n.test(e)&&!r.test(e)}t.exports=i})),dL=F(((e,t)=>{var n=/^\/\//;function r(e){return!n.test(e)}t.exports=r})),fL=F(((e,t)=>{var n=ve(`path`),r=ve(`url`),i=uL(),a=dL(),o=`http:`;function s(e,t,i){var l,u,d=!t,f,p,m,h;if(i.length===0)return!1;for(t&&!a(e)&&(e=o+e),l=t?r.parse(e).host:e,u=t?e:n.resolve(e),h=0;h<i.length;h++)f=i[h],p=f[0]==`!`,m=f.substring(1),p&&t&&c(m)?d&&=!s(e,!0,[m]):p&&!t&&!c(m)?d&&=!s(e,!1,[m]):p?d&&=!0:f==`all`?d=!0:t&&f==`local`?d||=!1:t&&f==`remote`?d=!0:!t&&f==`remote`?d=!1:!t&&f==`local`||f===l||f===e||t&&u.indexOf(f)===0||!t&&u.indexOf(n.resolve(f))===0?d=!0:t==c(m)?d=!1:d&&=!0;return d}function c(e){return i(e)||r.parse(o+`//`+e).host==e}t.exports=s})),pL=F(((e,t)=>{var n=/^data:(\S*?)?(;charset=(?:(?!;charset=)[^;])+)?(;[^,]+?)?,(.+)/;function r(e){return n.exec(e)}t.exports=r})),mL=F(((e,t)=>{var n=ve(`path`);function r(e,t,r){var i=n.resolve(``),a=n.resolve(i,t),o=n.dirname(a);return e.sources=e.sources.map(function(e){return n.relative(r,n.resolve(o,e))}),e}t.exports=r})),hL=F(((e,t)=>{var n=ve(`path`),r=ve(`url`);function i(e,t){var i=n.dirname(t);return e.sources=e.sources.map(function(e){return r.resolve(i,e)}),e}t.exports=i})),gL=F(((e,t)=>{var n=/^data:(\S{0,31}?)?(;charset=(?:(?!;charset=)[^;])+)?(;[^,]+?)?,(.+)/;function r(e){return n.test(e)}t.exports=r})),_L=F(((e,t)=>{var n=ve(`fs`),r=ve(`path`),i=fL(),a=pL(),o=mL(),s=hL(),c=bF(),l=dL(),u=gL(),d=uL(),f=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function p(e,t,n){var r={callback:n,fetch:t.options.fetch,index:0,inline:t.options.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,inputSourceMapTracker:t.inputSourceMapTracker,localOnly:t.localOnly,processedTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings};return t.options.sourceMap&&e.length>0?m(r):n(e)}function m(e){var t=[],n=h(e.sourceTokens[0]),r,i,a;for(a=e.sourceTokens.length;e.index<a;e.index++)if(i=e.sourceTokens[e.index],r=h(i),r!=n&&(t=[],n=r),t.push(i),e.processedTokens.push(i),i[0]==c.COMMENT&&f.test(i[1]))return g(i[1],r,t,e);return e.callback(e.processedTokens)}function h(e){var t,n;return e[0]==c.AT_RULE||e[0]==c.COMMENT||e[0]==c.RAW?n=e[2][0]:(t=e[1][0],n=t[2][0]),n[2]}function g(e,t,n,r){return _(e,r,function(e){return e&&(r.inputSourceMapTracker.track(t,e),x(n,r.inputSourceMapTracker)),r.index++,m(r)})}function _(e,t,n){var i=f.exec(e)[1],a,c,l;return u(i)?(c=v(i),n(c)):d(i)?y(i,t,function(e){var t;e?(t=JSON.parse(e),l=s(t,i),n(l)):n(null)}):(a=r.resolve(t.rebaseTo,i),c=b(a,t),c?(l=o(c,a,t.rebaseTo),n(l)):n(null))}function v(e){var t=a(e),n=t[2]?t[2].split(/[=;]/)[2]:`us-ascii`,r=t[3]?t[3].split(`;`)[1]:`utf8`,i=r==`utf8`?global.unescape(t[4]):t[4],o=Buffer.from(i,r);return o.charset=n,JSON.parse(o.toString())}function y(e,t,n){var r=i(e,!0,t.inline),a=!l(e);if(t.localOnly)return t.warnings.push(`Cannot fetch remote resource from "`+e+`" as no callback given.`),n(null);if(a)return t.warnings.push(`Cannot fetch "`+e+`" as no protocol given.`),n(null);if(!r)return t.warnings.push(`Cannot fetch "`+e+`" as resource is not allowed.`),n(null);t.fetch(e,t.inlineRequest,t.inlineTimeout,function(r,i){if(r)return t.warnings.push(`Missing source map at "`+e+`" - `+r),n(null);n(i)})}function b(e,t){var r=i(e,!1,t.inline),a;return!n.existsSync(e)||!n.statSync(e).isFile()?(t.warnings.push(`Ignoring local source map at "`+e+`" as resource is missing.`),null):r?n.statSync(e).size?(a=n.readFileSync(e,`utf-8`),JSON.parse(a)):(t.warnings.push(`Cannot fetch "`+e+`" as resource is empty.`),null):(t.warnings.push(`Cannot fetch "`+e+`" as resource is not allowed.`),null)}function x(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)switch(n=e[r],n[0]){case c.AT_RULE:S(n,t);break;case c.AT_RULE_BLOCK:x(n[1],t),x(n[2],t);break;case c.AT_RULE_BLOCK_SCOPE:S(n,t);break;case c.NESTED_BLOCK:x(n[1],t),x(n[2],t);break;case c.NESTED_BLOCK_SCOPE:S(n,t);break;case c.COMMENT:S(n,t);break;case c.PROPERTY:x(n,t);break;case c.PROPERTY_BLOCK:x(n[1],t);break;case c.PROPERTY_NAME:S(n,t);break;case c.PROPERTY_VALUE:S(n,t);break;case c.RULE:x(n[1],t),x(n[2],t);break;case c.RULE_SCOPE:S(n,t)}return e}function S(e,t){var n=e[1],r=e[2],i=[],a,o;for(a=0,o=r.length;a<o;a++)i.push(t.originalPositionFor(r[a],n.length));e[2]=i}t.exports=p})),vL=F(((e,t)=>{var n=UF(),r=/^\(/,i=/\)$/,a=/^@import/i,o=/['"]\s{0,31}/,s=/\s{0,31}['"]/,c=/^url\(\s{0,31}/i,l=/\s{0,31}\)/i;function u(e){var t,u,d=n(e.replace(a,``).trim().replace(c,`(`).replace(l,`) `).replace(o,``).replace(s,``),` `);return t=d[0].replace(r,``).replace(i,``),u=d.slice(1).join(` `),[t,u]}t.exports=u})),yL=F(((e,t)=>{var n=ve(`fs`),r=ve(`path`),i=fL(),a=dL(),o=uL();function s(e,t){var n={callback:t,fetch:e.options.fetch,index:0,inline:e.options.inline,inlineRequest:e.options.inlineRequest,inlineTimeout:e.options.inlineTimeout,localOnly:e.localOnly,rebaseTo:e.options.rebaseTo,sourcesContent:e.sourcesContent,uriToSource:c(e.inputSourceMapTracker.all()),warnings:e.warnings};return e.options.sourceMap&&e.options.sourceMapInlineSources?l(n):t()}function c(e){var t={},n,r,i,a,o;for(i in e)for(n=e[i],a=0,o=n.sources.length;a<o;a++)r=n.sources[a],i=n.sourceContentFor(r,!0),t[r]=i;return t}function l(e){var t=Object.keys(e.uriToSource),n,r,i;for(i=t.length;e.index<i;e.index++)if(n=t[e.index],r=e.uriToSource[n],r)e.sourcesContent[n]=r;else return u(n,e);return e.callback()}function u(e,t){var n;return o(e)?d(e,t,function(n){return t.index++,t.sourcesContent[e]=n,l(t)}):(n=f(e,t),t.index++,t.sourcesContent[e]=n,l(t))}function d(e,t,n){var r=i(e,!0,t.inline),o=!a(e);if(t.localOnly)return t.warnings.push(`Cannot fetch remote resource from "`+e+`" as no callback given.`),n(null);if(o)return t.warnings.push(`Cannot fetch "`+e+`" as no protocol given.`),n(null);if(!r)return t.warnings.push(`Cannot fetch "`+e+`" as resource is not allowed.`),n(null);t.fetch(e,t.inlineRequest,t.inlineTimeout,function(r,i){r&&t.warnings.push(`Missing original source at "`+e+`" - `+r),n(i)})}function f(e,t){var a=i(e,!1,t.inline),o=r.resolve(t.rebaseTo,e);if(!n.existsSync(o)||!n.statSync(o).isFile())return t.warnings.push(`Ignoring local source map at "`+o+`" as resource is missing.`),null;if(!a)return t.warnings.push(`Cannot fetch "`+o+`" as resource is not allowed.`),null;var s=n.readFileSync(o,`utf8`);return s.charCodeAt(0)===65279&&(s=s.substring(1)),s}t.exports=s})),bL=F(((e,t)=>{var n=`/`,r=/\\/g;function i(e){return e.replace(r,n)}t.exports=i})),xL=F(((e,t)=>{function n(e,t){return(`@import `+e+` `+t).trim()}t.exports=n})),SL=F(((e,t)=>{var n=ve(`path`),r=ve(`url`),i=gL(),a=`"`,o=`'`,s=`url(`,c=`)`,l=/^[^\w\d]*\/\//,u=/^["']/,d=/["']$/,f=/[()]/,p=/^url\(/i,m=/\)$/,h=/\s/,g=process.platform==`win32`;function _(e,t){return!t||v(e)&&!x(t.toBase)||x(e)||y(e)||b(e)||i(e)?e:x(t.toBase)?r.resolve(t.toBase,e):t.absolute?w(S(e,t)):w(C(e,t))}function v(e){return n.isAbsolute(e)}function y(e){return e[0]==`#`}function b(e){return/^\w+:\w+/.test(e)}function x(e){return/^[^:]+?:\/\//.test(e)||l.test(e)}function S(e,t){return n.resolve(n.join(t.fromBase||``,e)).replace(t.toBase,``)}function C(e,t){return n.relative(t.toBase,n.join(t.fromBase||``,e))}function w(e){return g?e.replace(/\\/g,`/`):e}function T(e){return e.indexOf(o)>-1?a:e.indexOf(a)>-1||E(e)||D(e)?o:``}function E(e){return h.test(e)}function D(e){return f.test(e)}function O(e,t,n){var r=e.replace(p,``).replace(m,``).trim(),i=r.replace(u,``).replace(d,``).trim(),l=r[0]==o||r[0]==a?r[0]:T(i);return n?_(i,t):s+l+_(i,t)+l+c}t.exports=O})),CL=F(((e,t)=>{var n=/^@import/i;function r(e){return n.test(e)}t.exports=r})),wL=F(((e,t)=>{var n=vL(),r=xL(),i=SL(),a=bF(),o=CL(),s=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function c(e,t,n,r){return t?l(e,n,r):u(e,n,r)}function l(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)switch(r=e[i],r[0]){case a.AT_RULE:d(r,t,n);break;case a.AT_RULE_BLOCK:p(r[2],t,n);break;case a.COMMENT:f(r,n);break;case a.NESTED_BLOCK:l(r[2],t,n);break;case a.RULE:p(r[2],t,n);break}return e}function u(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)switch(r=e[i],r[0]){case a.AT_RULE:d(r,t,n);break}return e}function d(e,t,a){if(o(e[1])){var s=n(e[1]),c=i(s[0],a),l=s[1];e[1]=r(c,l)}}function f(e,t){var n=s.exec(e[1]);n&&n[1].indexOf(`data:`)===-1&&(e[1]=e[1].replace(n[1],i(n[1],t,!0)))}function p(e,t,n){var r,a,o,s,c,l;for(o=0,s=e.length;o<s;o++)for(r=e[o],c=2,l=r.length;c<l;c++)a=r[c][1],t.isUrl(a)&&(r[c][1]=i(a,n))}t.exports=c})),TL=F(((e,t)=>{var n=fF(),r=bF(),i=pF(),a={BLOCK:`block`,COMMENT:`comment`,DOUBLE_QUOTE:`double-quote`,RULE:`rule`,SINGLE_QUOTE:`single-quote`},o=[`@charset`,`@import`],s=[`@-moz-document`,`@document`,`@-moz-keyframes`,`@-ms-keyframes`,`@-o-keyframes`,`@-webkit-keyframes`,`@keyframes`,`@media`,`@supports`,`@container`,`@layer`],c=/\/\* clean-css ignore:end \*\/$/,l=/^\/\* clean-css ignore:start \*\//,u=[`@bottom-center`,`@bottom-left`,`@bottom-left-corner`,`@bottom-right`,`@bottom-right-corner`,`@left-bottom`,`@left-middle`,`@left-top`,`@right-bottom`,`@right-middle`,`@right-top`,`@top-center`,`@top-left`,`@top-left-corner`,`@top-right`,`@top-right-corner`],d=[`@footnote`,`@footnotes`,`@left`,`@page-float-bottom`,`@page-float-top`,`@right`],f=/^\[\s{0,31}\d+\s{0,31}\]$/,p=/([^}])\}*$/,m=/[\s(]/;function h(e,t){return g(e,t,{level:a.BLOCK,position:{source:t.source||void 0,line:1,column:0,index:0}},!1)}function g(e,t,o,s){for(var c=[],l=c,u,d,f=[],m,h,w=[],T=o.level,E=[],D=[],O=[],k=!0,A,j,ee=0,te,ne,re,M,ie,ae,N=!1,oe,se=!1,P,ce,le=!1,ue,de=!1,fe=!1,pe=!1,me=!1,he=!1,F=o.position,ge;F.index<e.length;F.index++){var I=e[F.index];if(te=T==a.SINGLE_QUOTE||T==a.DOUBLE_QUOTE,ne=I==n.SPACE||I==n.TAB,re=I==n.NEW_LINE_NIX,M=I==n.NEW_LINE_NIX&&e[F.index-1]==n.CARRIAGE_RETURN,ie=I==n.CARRIAGE_RETURN&&e[F.index+1]&&e[F.index+1]!=n.NEW_LINE_NIX,ae=!se&&T!=a.COMMENT&&!te&&I==n.ASTERISK&&e[F.index-1]==n.FORWARD_SLASH,P=!N&&!te&&I==n.FORWARD_SLASH&&e[F.index-1]==n.ASTERISK,oe=T==a.COMMENT&&P,ue=!ne&&!ie&&(I>=`A`&&I<=`Z`||I>=`a`&&I<=`z`||I>=`0`&&I<=`9`||I==`-`),fe||=T!=a.COMMENT&&!me&&de&&I===`-`&&D.length===1,de=I===`-`,ee=Math.max(ee,0),h=k?[F.line,F.column,F.source]:h,ce)D.push(I),k=!1;else if(ue)D.push(I),k=!1;else if((ne||re&&!M)&&(te||T==a.COMMENT))D.push(I),k=!1;else if(!((ne||re&&!M)&&k)){if(!oe&&T==a.COMMENT)D.push(I),k=!1;else if(!ae&&!oe&&pe)D.push(I),k=!1;else if(ae&&fe&&(T==a.BLOCK||T==a.RULE)&&D.length>1)D.push(I),k=!1,E.push(T),T=a.COMMENT;else if(ae&&(T==a.BLOCK||T==a.RULE)&&D.length>1)w.push(h),D.push(I),O.push(D.slice(0,-2)),k=!1,D=D.slice(-2),h=[F.line,F.column-1,F.source],E.push(T),T=a.COMMENT;else if(ae)E.push(T),T=a.COMMENT,D.push(I),k=!1;else if(oe&&fe)D.push(I),T=E.pop();else if(oe&&_(D))A=D.join(``).trim()+I,u=[r.COMMENT,A,[y(h,A,t)]],l.push(u),pe=!0,h=w.pop()||null,D=O.pop()||[],k=D.length===0;else if(oe&&v(D))A=D.join(``)+I,ge=A.lastIndexOf(n.FORWARD_SLASH+n.ASTERISK),j=A.substring(0,ge),u=[r.RAW,j,[y(h,j,t)]],l.push(u),j=A.substring(ge),h=[F.line,F.column-j.length+1,F.source],u=[r.COMMENT,j,[y(h,j,t)]],l.push(u),pe=!1,T=E.pop(),h=w.pop()||null,D=O.pop()||[],k=D.length===0;else if(oe)A=D.join(``).trim()+I,u=[r.COMMENT,A,[y(h,A,t)]],l.push(u),T=E.pop(),h=w.pop()||null,D=O.pop()||[],k=D.length===0;else if(P&&e[F.index+1]!=n.ASTERISK)t.warnings.push(`Unexpected '*/' at `+i([F.line,F.column,F.source])+`.`),D=[],k=!0;else if(I==n.SINGLE_QUOTE&&!te)E.push(T),T=a.SINGLE_QUOTE,D.push(I),k=!1;else if(I==n.SINGLE_QUOTE&&T==a.SINGLE_QUOTE)T=E.pop(),D.push(I),k=!1;else if(I==n.DOUBLE_QUOTE&&!te)E.push(T),T=a.DOUBLE_QUOTE,D.push(I),k=!1;else if(I==n.DOUBLE_QUOTE&&T==a.DOUBLE_QUOTE)T=E.pop(),D.push(I),k=!1;else if(I!=n.CLOSE_ROUND_BRACKET&&I!=n.OPEN_ROUND_BRACKET&&T!=a.COMMENT&&!te&&ee>0)D.push(I),k=!1;else if(I==n.OPEN_ROUND_BRACKET&&!te&&T!=a.COMMENT&&!me)D.push(I),k=!1,ee++;else if(I==n.CLOSE_ROUND_BRACKET&&!te&&T!=a.COMMENT&&!me)D.push(I),k=!1,ee--;else if(I==n.SEMICOLON&&T==a.BLOCK&&D[0]==n.AT)A=D.join(``).trim(),c.push([r.AT_RULE,A,[y(h,A,t)]]),D=[],k=!0;else if(I==n.COMMA&&T==a.BLOCK&&d)A=D.join(``).trim(),d[1].push([x(d[0]),A,[y(h,A,t,d[1].length)]]),D=[],k=!0;else if(I==n.COMMA&&T==a.BLOCK&&b(D)==r.AT_RULE)D.push(I),k=!1;else if(I==n.COMMA&&T==a.BLOCK)d=[b(D),[],[]],A=D.join(``).trim(),d[1].push([x(d[0]),A,[y(h,A,t,0)]]),D=[],k=!0;else if(I==n.OPEN_CURLY_BRACKET&&T==a.BLOCK&&d&&d[0]==r.NESTED_BLOCK)A=D.join(``).trim(),d[1].push([r.NESTED_BLOCK_SCOPE,A,[y(h,A,t)]]),c.push(d),E.push(T),F.column++,F.index++,D=[],k=!0,d[2]=g(e,t,o,!0),d=null;else if(I==n.OPEN_CURLY_BRACKET&&T==a.BLOCK&&b(D)==r.NESTED_BLOCK)A=D.join(``).trim(),d||=[r.NESTED_BLOCK,[],[]],d[1].push([r.NESTED_BLOCK_SCOPE,A,[y(h,A,t)]]),c.push(d),E.push(T),F.column++,F.index++,D=[],k=!0,fe=!1,d[2]=g(e,t,o,!0),d=null;else if(I==n.OPEN_CURLY_BRACKET&&T==a.BLOCK)A=D.join(``).trim(),d||=[b(D),[],[]],d[1].push([x(d[0]),A,[y(h,A,t,d[1].length)]]),l=d[2],c.push(d),E.push(T),T=a.RULE,D=[],k=!0;else if(I==n.OPEN_CURLY_BRACKET&&T==a.RULE&&me)f.push(d),d=[r.PROPERTY_BLOCK,[]],m.push(d),l=d[1],E.push(T),T=a.RULE,me=!1;else if(I==n.OPEN_CURLY_BRACKET&&T==a.RULE&&S(D))A=D.join(``).trim(),f.push(d),d=[r.AT_RULE_BLOCK,[],[]],d[1].push([r.AT_RULE_BLOCK_SCOPE,A,[y(h,A,t)]]),l.push(d),l=d[2],E.push(T),T=a.RULE,D=[],k=!0;else if(I==n.COLON&&T==a.RULE&&!me)A=D.join(``).trim(),m=[r.PROPERTY,[r.PROPERTY_NAME,A,[y(h,A,t)]]],l.push(m),me=!0,D=[],k=!0;else if(I==n.SEMICOLON&&T==a.RULE&&m&&f.length>0&&!k&&D[0]==n.AT)A=D.join(``).trim(),d[1].push([r.AT_RULE,A,[y(h,A,t)]]),D=[],k=!0;else if(I==n.SEMICOLON&&T==a.RULE&&m&&!k)A=D.join(``).trim(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),m=null,me=!1,D=[],k=!0,fe=!1;else if(I==n.SEMICOLON&&T==a.RULE&&m&&k&&fe&&!m[2])m.push([r.PROPERTY_VALUE,` `,[y(h,` `,t)]]),fe=!1,m=null,me=!1;else if(I==n.SEMICOLON&&T==a.RULE&&m&&k)m=null,me=!1;else if(I==n.SEMICOLON&&T==a.RULE&&!k&&D[0]==n.AT)A=D.join(``),l.push([r.AT_RULE,A,[y(h,A,t)]]),me=!1,D=[],k=!0;else if(I==n.SEMICOLON&&T==a.RULE&&he)he=!1,D=[],k=!0;else if(!(I==n.SEMICOLON&&T==a.RULE&&k))if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&m&&me&&!k&&f.length>0)A=D.join(``),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),m=null,d=f.pop(),l=d[2],T=E.pop(),me=!1,D=[],k=!0;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&m&&!k&&D[0]==n.AT&&f.length>0)A=D.join(``),d[1].push([r.AT_RULE,A,[y(h,A,t)]]),m=null,d=f.pop(),l=d[2],T=E.pop(),me=!1,D=[],k=!0;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&m&&f.length>0)m=null,d=f.pop(),l=d[2],T=E.pop(),me=!1;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&m&&!k)A=D.join(``),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),m=null,d=f.pop(),l=c,T=E.pop(),me=!1,D=[],k=!0;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&!k&&D[0]==n.AT)m=null,d=null,A=D.join(``).trim(),l.push([r.AT_RULE,A,[y(h,A,t)]]),l=c,T=E.pop(),me=!1,D=[],k=!0;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&E[E.length-1]==a.RULE)m=null,d=f.pop(),l=d[2],T=E.pop(),me=!1,he=!0,D=[],k=!0;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE&&fe&&m&&!m[2])m.push([r.PROPERTY_VALUE,` `,[y(h,` `,t)]]),fe=!1,m=null,d=null,l=c,T=E.pop(),me=!1,fe=!1;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.RULE)m=null,d=null,l=c,T=E.pop(),me=!1,fe=!1;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.BLOCK&&!s&&F.index<=e.length-1)t.warnings.push(`Unexpected '}' at `+i([F.line,F.column,F.source])+`.`),D.push(I),k=!1;else if(I==n.CLOSE_CURLY_BRACKET&&T==a.BLOCK)break;else I==n.OPEN_ROUND_BRACKET&&T==a.RULE&&me?(D.push(I),k=!1,ee++):I==n.CLOSE_ROUND_BRACKET&&T==a.RULE&&me&&ee==1?(D.push(I),k=!1,A=D.join(``).trim(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),ee--,D=[],k=!0,fe=!1):I==n.CLOSE_ROUND_BRACKET&&T==a.RULE&&me?(D.push(I),k=!1,fe=!1,ee--):I==n.FORWARD_SLASH&&e[F.index+1]!=n.ASTERISK&&T==a.RULE&&me&&!k?(A=D.join(``).trim(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),m.push([r.PROPERTY_VALUE,I,[[F.line,F.column,F.source]]]),D=[],k=!0):I==n.FORWARD_SLASH&&e[F.index+1]!=n.ASTERISK&&T==a.RULE&&me?(m.push([r.PROPERTY_VALUE,I,[[F.line,F.column,F.source]]]),D=[],k=!0):I==n.COMMA&&T==a.RULE&&me&&!k?(A=D.join(``).trim(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),m.push([r.PROPERTY_VALUE,I,[[F.line,F.column,F.source]]]),D=[],k=!0):I==n.COMMA&&T==a.RULE&&me?(m.push([r.PROPERTY_VALUE,I,[[F.line,F.column,F.source]]]),D=[],k=!0):I==n.CLOSE_SQUARE_BRACKET&&m&&m.length>1&&!k&&C(D)?(D.push(I),A=D.join(``).trim(),m[m.length-1][1]+=A,D=[],k=!0):(ne||re&&!M)&&T==a.RULE&&me&&m&&!k||M&&T==a.RULE&&me&&m&&D.length>1?(A=D.join(``).trim(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),D=[],k=!0):M&&T==a.RULE&&me?(D=[],k=!0):M&&D.length==1?(D.pop(),k=D.length===0):(!k||!ne&&!re&&!M&&!ie)&&(D.push(I),k=!1)}le=ce,ce=!le&&I==n.BACK_SLASH,N=ae,se=oe,F.line=M||re||ie?F.line+1:F.line,F.column=M||re||ie?0:F.column+1}return me&&t.warnings.push(`Missing '}' at `+i([F.line,F.column,F.source])+`.`),me&&D.length>0&&(A=D.join(``).trimRight().replace(p,`$1`).trimRight(),m.push([r.PROPERTY_VALUE,A,[y(h,A,t)]]),D=[]),D.length>0&&t.warnings.push(`Invalid character(s) '`+D.join(``)+`' at `+i(h)+`. Ignoring.`),c}function _(e){return l.test(e.join(``)+n.FORWARD_SLASH)}function v(e){return c.test(e.join(``)+n.FORWARD_SLASH)}function y(e,t,n,r){var i=e[2];return n.inputSourceMapTracker.isTracking(i)?n.inputSourceMapTracker.originalPositionFor(e,t.length,r):e}function b(e){var t=e[0]==n.AT||e[0]==n.UNDERSCORE,i=e.join(``).split(m)[0];return t&&s.indexOf(i)>-1?r.NESTED_BLOCK:t&&o.indexOf(i)>-1?r.AT_RULE:t?r.AT_RULE_BLOCK:r.RULE}function x(e){if(e==r.RULE)return r.RULE_SCOPE;if(e==r.NESTED_BLOCK)return r.NESTED_BLOCK_SCOPE;if(e==r.AT_RULE_BLOCK)return r.AT_RULE_BLOCK_SCOPE}function S(e){var t=e.join(``).trim();return u.indexOf(t)>-1||d.indexOf(t)>-1}function C(e){return f.test(e.join(``)+n.CLOSE_SQUARE_BRACKET)}t.exports=h})),EL=F(((e,t)=>{var n=ve(`fs`),r=ve(`path`),i=_L(),a=vL(),o=fL(),s=yL(),c=bL(),l=wL(),u=mL(),d=hL(),f=xL(),p=TL(),m=bF(),h=fF(),g=dL(),_=CL(),v=uL(),y=`uri:unknown`,b=`file://`;function x(e,t,n){return S(e,t,function(e){return i(e,t,function(){return s(t,function(){return n(e)})})})}function S(e,t,n){if(typeof e==`string`)return C(e,t,n);if(Buffer.isBuffer(e))return C(e.toString(),t,n);if(Array.isArray(e))return w(e,t,n);if(typeof e==`object`)return T(e,t,n)}function C(e,t,n){return t.source=void 0,t.sourcesContent[void 0]=e,t.stats.originalSize+=e.length,j(e,t,{inline:t.options.inline},n)}function w(e,t,n){return j(e.reduce(function(e,n){return typeof n==`string`?E(n,e):D(n,t,e)},[]).join(``),t,{inline:[`all`]},n)}function T(e,t,n){return j(D(e,t,[]).join(``),t,{inline:[`all`]},n)}function E(e,t){return t.push(A(O(e))),t}function D(e,t,n){var r,i,a;for(r in e)a=e[r],i=O(r),n.push(A(i)),t.sourcesContent[i]=a.styles,a.sourceMap&&k(a.sourceMap,i,t);return n}function O(e){var t=r.resolve(``),n,i,a;return v(e)?e:(n=r.isAbsolute(e)?e:r.resolve(e),i=r.relative(t,n),a=c(i),a)}function k(e,t,n){var r=typeof e==`string`?JSON.parse(e):e,i=v(t)?d(r,t):u(r,t||y,n.options.rebaseTo);n.inputSourceMapTracker.track(t,i)}function A(e){return f(`url(`+e+`)`,``)+h.SEMICOLON}function j(e,t,n,i){var a,o={};return t.source?v(t.source)?(o.fromBase=t.source,o.toBase=t.source):r.isAbsolute(t.source)?(o.fromBase=r.dirname(t.source),o.toBase=t.options.rebaseTo):(o.fromBase=r.dirname(r.resolve(t.source)),o.toBase=t.options.rebaseTo):(o.fromBase=r.resolve(``),o.toBase=t.options.rebaseTo),a=p(e,t),a=l(a,t.options.rebase,t.validator,o),ee(n.inline)?te(a,t,n,i):i(a)}function ee(e){return!(e.length==1&&e[0]==`none`)}function te(e,t,n,r){return ne({afterContent:!1,callback:r,errors:t.errors,externalContext:t,fetch:t.options.fetch,inlinedStylesheets:n.inlinedStylesheets||t.inlinedStylesheets,inline:n.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,isRemote:n.isRemote||!1,localOnly:t.localOnly,outputTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings})}function ne(e){var t,n,r;for(n=0,r=e.sourceTokens.length;n<r;n++){if(t=e.sourceTokens[n],t[0]==m.AT_RULE&&_(t[1]))return e.sourceTokens.splice(0,n),re(t,e);t[0]==m.AT_RULE||t[0]==m.COMMENT?e.outputTokens.push(t):(e.outputTokens.push(t),e.afterContent=!0)}return e.sourceTokens=[],e.callback(e.outputTokens)}function re(e,t){var n=a(e[1]),r=n[0],i=n[1],o=e[2];return v(r)?M(r,i,o,t):ie(r,i,o,t)}function M(e,t,n,r){var i=o(e,!0,r.inline),a=e,s=e in r.externalContext.sourcesContent,c=!g(e);if(r.inlinedStylesheets.indexOf(e)>-1)return r.warnings.push(`Ignoring remote @import of "`+e+`" as it has already been imported.`),r.sourceTokens=r.sourceTokens.slice(1),ne(r);if(r.localOnly&&r.afterContent)return r.warnings.push(`Ignoring remote @import of "`+e+`" as no callback given and after other content.`),r.sourceTokens=r.sourceTokens.slice(1),ne(r);if(c)return r.warnings.push(`Skipping remote @import of "`+e+`" as no protocol given.`),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1)),r.sourceTokens=r.sourceTokens.slice(1),ne(r);if(r.localOnly&&!s)return r.warnings.push(`Skipping remote @import of "`+e+`" as no callback given.`),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1)),r.sourceTokens=r.sourceTokens.slice(1),ne(r);if(!i&&r.afterContent)return r.warnings.push(`Ignoring remote @import of "`+e+`" as resource is not allowed and after other content.`),r.sourceTokens=r.sourceTokens.slice(1),ne(r);if(!i)return r.warnings.push(`Skipping remote @import of "`+e+`" as resource is not allowed.`),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1)),r.sourceTokens=r.sourceTokens.slice(1),ne(r);r.inlinedStylesheets.push(e);function l(i,o){return i?(r.errors.push(`Broken @import declaration of "`+e+`" - `+i),process.nextTick(function(){r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1)),r.sourceTokens=r.sourceTokens.slice(1),ne(r)})):(r.inline=r.externalContext.options.inline,r.isRemote=!0,r.externalContext.source=a,r.externalContext.sourcesContent[e]=o,r.externalContext.stats.originalSize+=o.length,j(o,r.externalContext,r,function(e){return e=ae(e,t,n),r.outputTokens=r.outputTokens.concat(e),r.sourceTokens=r.sourceTokens.slice(1),ne(r)}))}return s?l(null,r.externalContext.sourcesContent[e]):r.fetch(e,r.inlineRequest,r.inlineTimeout,l)}function ie(e,t,i,a){var s=e.replace(b,``),l=r.resolve(``),u=r.isAbsolute(s)?r.resolve(l,s[0]==`/`?s.substring(1):s):r.resolve(a.rebaseTo,s),d=r.relative(l,u),f,p=o(s,!1,a.inline),m=c(d),h=m in a.externalContext.sourcesContent;if(a.inlinedStylesheets.indexOf(u)>-1)a.warnings.push(`Ignoring local @import of "`+s+`" as it has already been imported.`);else if(p&&!h&&(!n.existsSync(u)||!n.statSync(u).isFile()))a.errors.push(`Ignoring local @import of "`+s+`" as resource is missing.`);else if(!p&&a.afterContent)a.warnings.push(`Ignoring local @import of "`+s+`" as resource is not allowed and after other content.`);else if(a.afterContent)a.warnings.push(`Ignoring local @import of "`+s+`" as after other content.`);else if(!p)a.warnings.push(`Skipping local @import of "`+s+`" as resource is not allowed.`),a.outputTokens=a.outputTokens.concat(a.sourceTokens.slice(0,1));else return f=h?a.externalContext.sourcesContent[m]:n.readFileSync(u,`utf-8`),f.charCodeAt(0)===65279&&(f=f.substring(1)),a.inlinedStylesheets.push(u),a.inline=a.externalContext.options.inline,a.externalContext.source=m,a.externalContext.sourcesContent[m]=f,a.externalContext.stats.originalSize+=f.length,j(f,a.externalContext,a,function(e){return e=ae(e,t,i),a.outputTokens=a.outputTokens.concat(e),a.sourceTokens=a.sourceTokens.slice(1),ne(a)});return a.sourceTokens=a.sourceTokens.slice(1),ne(a)}function ae(e,t,n){return t?[[m.NESTED_BLOCK,[[m.NESTED_BLOCK_SCOPE,`@media `+t,n]],e]]:e}t.exports=x})),DL=F(((e,t)=>{var n=aI().all;function r(e,t){var n=typeof t==`string`?t:t[1],r=e.wrap;r(e,n),a(e,n),e.output.push(n)}function i(e,t){e.column+t.length>e.format.wrapAt&&(a(e,e.format.breakWith),e.output.push(e.format.breakWith))}function a(e,t){var n=t.split(`
`);e.line+=n.length-1,e.column=n.length>1?0:e.column+n.pop().length}function o(e,t){var a={column:0,format:t.options.format,indentBy:0,indentWith:``,line:1,output:[],spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:r,wrap:t.options.format.wrapAt?i:function(){}};return n(a,e),{styles:a.output.join(``)}}t.exports=o})),OL=F(((e,t)=>{var n=cL().SourceMapGenerator,r=aI().all,i=uL(),a=process.platform==`win32`,o=/\//g,s=`$stdin`,c=`\\`;function l(e,t){var n=typeof t==`string`,r=n?t:t[1],i=n?null:t[2],a=e.wrap;a(e,r),d(e,r,i),e.output.push(r)}function u(e,t){e.column+t.length>e.format.wrapAt&&(d(e,e.format.breakWith,!1),e.output.push(e.format.breakWith))}function d(e,t,n){var r=t.split(`
`);n&&f(e,n),e.line+=r.length-1,e.column=r.length>1?0:e.column+r.pop().length}function f(e,t){for(var n=0,r=t.length;n<r;n++)p(e,t[n])}function p(e,t){var n=t[0],r=t[1],l=t[2],u=l,d=u||s;a&&u&&!i(u)&&(d=u.replace(o,c)),e.outputMap.addMapping({generated:{line:e.line,column:e.column},source:d,original:{line:n,column:r}}),e.inlineSources&&l in e.sourcesContent&&e.outputMap.setSourceContent(d,e.sourcesContent[l])}function m(e,t){var i={column:0,format:t.options.format,indentBy:0,indentWith:``,inlineSources:t.options.sourceMapInlineSources,line:1,output:[],outputMap:new n,sourcesContent:t.sourcesContent,spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:l,wrap:t.options.format.wrapAt?u:function(){}};return r(i,e),{sourceMap:i.outputMap,styles:i.output.join(``)}}t.exports=m})),kL=F(((e,t)=>{var n=sF(),r=sI(),i=zI(),a=BI(),o=VI(),s=GI(),c=dF().formatFrom,l=KI(),u=qI(),d=JI(),f=AF().OptimizationLevel,p=AF().optimizationLevelFrom,m=YI(),h=XI(),g=ZI(),_=lL(),v=EL(),y=DL(),b=OL(),x=t.exports=function(e){e||={},this.options={batch:!!e.batch,compatibility:o(e.compatibility),explicitRebaseTo:`rebaseTo`in e,fetch:s(e.fetch),format:c(e.format),inline:l(e.inline),inlineRequest:u(e.inlineRequest),inlineTimeout:d(e.inlineTimeout),level:p(e.level),plugins:m(e.plugins),rebase:h(e.rebase,e.rebaseTo),rebaseTo:g(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}};x.process=function(e,t){var n,r=t.to;return delete t.to,n=new x(Object.assign({returnPromise:!0,rebaseTo:r},t)),n.minify(e).then(function(e){return{css:e.styles}})},x.prototype.minify=function(e,t,n){var r=this.options;return r.returnPromise?new Promise(function(n,i){S(e,r,t,function(e,t){return e?i(e):n(t)})}):S(e,r,t,n)};function S(e,t,n,r){return t.batch&&Array.isArray(e)?C(e,t,n,r):t.batch&&typeof e==`object`?w(e,t,n,r):T(e,t,n,r)}function C(e,t,n,r){var i=typeof r==`function`?r:typeof n==`function`?n:null,a=[],o={},s,c,l;function u(e,t){o=Object.assign(o,t),e!==null&&(a=a.concat(e))}for(c=0,l=e.length;c<l;c++)typeof e[c]==`object`?w(e[c],t,u):(s=e[c],o[s]=T([s],t),a=a.concat(o[s].errors));return i?i(a.length>0?a:null,o):o}function w(e,t,n,r){var i=typeof r==`function`?r:typeof n==`function`?n:null,a=[],o={},s,c;for(s in e)c=e[s],o[s]=T(c.styles,t,c.sourceMap),a=a.concat(o[s].errors);return i?i(a.length>0?a:null,o):o}function T(e,t,n,r){var i=typeof n==`function`?null:n,o=typeof r==`function`?r:typeof n==`function`?n:null,s={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:_(),localOnly:!o,options:t,source:null,sourcesContent:{},validator:a(t.compatibility),warnings:[]},c;return i&&s.inputSourceMapTracker.track(void 0,i),t.rebase&&!t.explicitRebaseTo&&(c="You have set `rebase: true` without giving `rebaseTo` option, which, in this case, defaults to the current working directory. You are then warned this can lead to unexpected URL rebasing (aka here be dragons)! If you are OK with the clean-css output, then you can get rid of this warning by giving clean-css a `rebaseTo: process.cwd()` option.",s.warnings.push(c)),E(s.localOnly)(function(){return v(e,s,function(e){var t=O((s.options.sourceMap?b:y)(D(e,s),s),s);return o?o(s.errors.length>0?s.errors:null,t):t})})}function E(e){return e?function(e){return e()}:process.nextTick}function D(e,t){var a=n(e,t);return a=f.One in t.options.level?r(e,t):e,a=f.Two in t.options.level?i(e,t,!0):a,a}function O(e,t){return e.stats=k(e.styles,t),e.errors=t.errors,e.inlinedStylesheets=t.inlinedStylesheets,e.warnings=t.warnings,e}function k(e,t){var n=Date.now()-t.stats.startedAt;return delete t.stats.startedAt,t.stats.timeSpent=n,t.stats.efficiency=1-e.length/t.stats.originalSize,t.stats.minifiedSize=e.length,t.stats}})),AL=F(((e,t)=>{t.exports=kL()})),jL=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0))),ML=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0)));const NL=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),PL=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function FL(e){return e>=55296&&e<=57343||e>1114111?65533:NL.get(e)??e}var IL;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(IL||={});var LL;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(LL||={});function RL(e){return e>=IL.ZERO&&e<=IL.NINE}function zL(e){return e>=IL.UPPER_A&&e<=IL.UPPER_F||e>=IL.LOWER_A&&e<=IL.LOWER_F}function BL(e){return e>=IL.UPPER_A&&e<=IL.UPPER_Z||e>=IL.LOWER_A&&e<=IL.LOWER_Z||RL(e)}function VL(e){return e===IL.EQUALS||BL(e)}var HL;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(HL||={});var UL;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(UL||={});var WL=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=HL.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=UL.Strict}startEntity(e){this.decodeMode=e,this.state=HL.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case HL.EntityStart:return e.charCodeAt(t)===IL.NUM?(this.state=HL.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=HL.NamedEntity,this.stateNamedEntity(e,t));case HL.NumericStart:return this.stateNumericStart(e,t);case HL.NumericDecimal:return this.stateNumericDecimal(e,t);case HL.NumericHex:return this.stateNumericHex(e,t);case HL.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|32)===IL.LOWER_X?(this.state=HL.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=HL.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(RL(r)||zL(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(RL(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===IL.SEMI)this.consumed+=1;else if(this.decodeMode===UL.Strict)return 0;return this.emitCodePoint(FL(this.result),this.consumed),this.errors&&(e!==IL.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&LL.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=KL(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===UL.Attribute&&(i===0||VL(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&LL.VALUE_LENGTH)>>14,i!==0){if(a===IL.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==UL.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&LL.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~LL.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case HL.NamedEntity:return this.result!==0&&(this.decodeMode!==UL.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case HL.NumericDecimal:return this.emitNumericEntity(0,2);case HL.NumericHex:return this.emitNumericEntity(0,3);case HL.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case HL.EntityStart:return 0}}};function GL(e){let t=``,n=new WL(e,e=>t+=PL(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function KL(e,t,n,r){let i=(t&LL.BRANCH_LENGTH)>>7,a=t&LL.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}const qL=GL(jL);GL(ML);function JL(e,t=UL.Legacy){return qL(e,t)}function YL(e){return qL(e,UL.Strict)}var XL=F(((e,t)=>{t.exports={ABSOLUTE:`absolute`,PATH_RELATIVE:`pathRelative`,ROOT_RELATIVE:`rootRelative`,SHORTEST:`shortest`}})),ZL=F(((e,t)=>{var n=XL();function r(e,t){return e.auth&&!t.removeAuth&&(e.extra.relation.maximumHost||t.output===n.ABSOLUTE)?e.auth+`@`:``}function i(e,t){return e.hash?e.hash:``}function a(e,t){return e.host.full&&(e.extra.relation.maximumAuth||t.output===n.ABSOLUTE)?e.host.full:``}function o(e,t){var r=``,i=e.path.absolute.string,a=e.path.relative.string,o=m(e,t);if(e.extra.relation.maximumHost||t.output===n.ABSOLUTE||t.output===n.ROOT_RELATIVE)r=i;else if(a.length<=i.length&&t.output===n.SHORTEST||t.output===n.PATH_RELATIVE){if(r=a,r===``){var s=p(e,t)&&!!f(e,t);(e.extra.relation.maximumPath&&!o||e.extra.relation.overridesQuery&&!o&&!s)&&(r=`./`)}}else r=i;return r===`/`&&!o&&t.removeRootTrailingSlash&&(!e.extra.relation.minimumPort||t.output===n.ABSOLUTE)&&(r=``),r}function s(e,t){return e.port&&!e.extra.portIsDefault&&e.extra.relation.maximumHost?`:`+e.port:``}function c(e,t){return p(e,t)?f(e,t):``}function l(e,t){return m(e,t)?e.resource:``}function u(e,t){var r=``;return(e.extra.relation.maximumHost||t.output===n.ABSOLUTE)&&(!e.extra.relation.minimumScheme||!t.schemeRelative||t.output===n.ABSOLUTE?r+=e.scheme+`://`:r+=`//`),r}function d(e,t){var n=``;return n+=u(e,t),n+=r(e,t),n+=a(e,t),n+=s(e,t),n+=o(e,t),n+=l(e,t),n+=c(e,t),n+=i(e,t),n}function f(e,t){var n=t.removeEmptyQueries&&e.extra.relation.minimumPort;return e.query.string[n?`stripped`:`full`]}function p(e,t){return!e.extra.relation.minimumQuery||t.output===n.ABSOLUTE||t.output===n.ROOT_RELATIVE}function m(e,t){var r=t.removeDirectoryIndexes&&e.extra.resourceIsIndex,i=e.extra.relation.minimumResource&&t.output!==n.ABSOLUTE&&t.output!==n.ROOT_RELATIVE;return!!e.resource&&!i&&!r}t.exports=d})),QL=F(((e,t)=>{function n(e){if(e instanceof Object){var t=e instanceof Array?[]:{};for(var r in e)e.hasOwnProperty(r)&&(t[r]=n(e[r]));return t}return e}function r(e){return!!e&&typeof e==`object`&&e.constructor===Object}function i(e,t){if(e instanceof Object&&t instanceof Object)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}t.exports={clone:n,isPlainObject:r,shallowMerge:i}})),$L=F(((e,t)=>{var n=QL();function r(e,t){if(n.isPlainObject(e)){var r={};for(var a in t)t.hasOwnProperty(a)&&(e[a]===void 0?r[a]=t[a]:r[a]=i(e[a],t[a]));return r}else return t}function i(e,t){return t instanceof Object&&e instanceof Object?t instanceof Array&&e instanceof Array?t.concat(e):n.shallowMerge(e,t):e}t.exports=r})),eR=F(((e,t)=>{function n(e){var t=!e.scheme&&!e.auth&&!e.host.full&&!e.port,n=t&&!e.path.absolute.string,r=n&&!e.resource,i=r&&!e.query.string.full.length,a=i&&!e.hash;e.extra.hrefInfo.minimumPathOnly=t,e.extra.hrefInfo.minimumResourceOnly=n,e.extra.hrefInfo.minimumQueryOnly=r,e.extra.hrefInfo.minimumHashOnly=i,e.extra.hrefInfo.empty=a}t.exports=n})),tR=F(((e,t)=>{function n(e,t){if(t.ignore_www){var n=e.host.full;if(n){var r=n;n.indexOf(`www.`)===0&&(r=n.substr(4)),e.host.stripped=r}}}t.exports=n})),nR=F(((e,t)=>{function n(e,t){var n=!1;return t.directoryIndexes.every(function(t){return t===e?(n=!0,!1):!0}),n}function r(e,t){var r=e.path.absolute.string;if(r){var a=r.lastIndexOf(`/`);if(a>-1){if(++a<r.length){var o=r.substr(a);o!==`.`&&o!==`..`?(e.resource=o,r=r.substr(0,a)):r+=`/`}e.path.absolute.string=r,e.path.absolute.array=i(r)}else r===`.`||r===`..`?(r+=`/`,e.path.absolute.string=r,e.path.absolute.array=i(r)):(e.resource=r,e.path.absolute.string=null);e.extra.resourceIsIndex=n(e.resource,t)}}function i(e){if(e!==`/`){var t=[];return e.split(`/`).forEach(function(e){e!==``&&t.push(e)}),t}else return[]}t.exports=r})),rR=F(((e,t)=>{function n(e,t){var n=-1;for(var r in t.defaultPorts)if(r===e.scheme&&t.defaultPorts.hasOwnProperty(r)){n=t.defaultPorts[r];break}n>-1&&(n=n.toString(),e.port===null&&(e.port=n),e.extra.portIsDefault=e.port===n)}t.exports=n})),iR=F(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){e.query.string.full=i(e.query.object,!1),t.removeEmptyQueries&&(e.query.string.stripped=i(e.query.object,!0))}function i(e,t){var r=0,i=``;for(var a in e)if(a!==``&&n.call(e,a)===!0){var o=e[a];(o!==``||!t)&&(i+=++r===1?`?`:`&`,a=encodeURIComponent(a),o===``?i+=a:i+=a+`=`+encodeURIComponent(o).replace(/%20/g,`+`))}return i}t.exports=r})),aR=F(((e,t)=>{var n=ve(`url`).parse;function r(e){var t=e.protocol;return t&&t.indexOf(`:`)===t.length-1&&(t=t.substr(0,t.length-1)),e.host={full:e.hostname,stripped:null},e.path={absolute:{array:null,string:e.pathname},relative:{array:null,string:null}},e.query={object:e.query,string:{full:null,stripped:null}},e.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:e.search===`?`},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:e.slashes},e.resource=null,e.scheme=t,delete e.hostname,delete e.pathname,delete e.protocol,delete e.search,delete e.slashes,e}function i(e,t){var n=!0;return t.rejectedSchemes.every(function(t){return n=e.indexOf(t+`:`)!==0,n}),n}function a(e,t){return i(e,t)?r(n(e,!0,t.slashesDenoteHost)):{href:e,valid:!1}}t.exports=a})),oR=F(((e,t)=>{function n(e){return e.length>0?e.join(`/`)+`/`:``}function r(e){var t=[];return e.forEach(function(e){e===`..`?t.length>0&&t.splice(t.length-1,1):e!==`.`&&t.push(e)}),t}t.exports={join:n,resolveDotSegments:r}})),sR=F(((e,t)=>{var n=eR(),r=tR(),i=nR(),a=rR(),o=iR(),s=aR(),c=oR();function l(e,t,n){if(e){var r=u(e,t),i=c.resolveDotSegments(r.path.absolute.array);return r.path.absolute.array=i,r.path.absolute.string=`/`+c.join(i),r}else return n}function u(e,t){var c=s(e,t);return c.valid===!1?c:(r(c,t),a(c,t),i(c,t),o(c,t),n(c),c)}t.exports={from:l,to:u}})),cR=F(((e,t)=>{function n(e,t,n){var r=e.extra.hrefInfo.minimumPathOnly,i=e.scheme===t.scheme||!e.scheme,a=i&&(e.auth===t.auth||n.removeAuth||r),o=n.ignore_www?`stripped`:`full`,s=a&&(e.host[o]===t.host[o]||r),c=s&&(e.port===t.port||r);e.extra.relation.minimumScheme=i,e.extra.relation.minimumAuth=a,e.extra.relation.minimumHost=s,e.extra.relation.minimumPort=c,e.extra.relation.maximumScheme=!i||i&&!a,e.extra.relation.maximumAuth=!i||i&&!s,e.extra.relation.maximumHost=!i||i&&!c}function r(e,t,n){var r=e.extra.hrefInfo.minimumQueryOnly,i=e.extra.hrefInfo.minimumHashOnly,a=e.extra.hrefInfo.empty,o=e.extra.relation.minimumPort,s=e.extra.relation.minimumScheme,c=o&&e.path.absolute.string===t.path.absolute.string,l=e.resource===t.resource||!e.resource&&t.extra.resourceIsIndex||n.removeDirectoryIndexes&&e.extra.resourceIsIndex&&!t.resource,u=c&&(l||r||i||a),d=n.removeEmptyQueries?`stripped`:`full`,f=e.query.string[d],p=t.query.string[d],m=u&&!!f&&f===p||(i||a)&&!e.extra.hrefInfo.separatorOnlyQuery,h=m&&e.hash===t.hash;e.extra.relation.minimumPath=c,e.extra.relation.minimumResource=u,e.extra.relation.minimumQuery=m,e.extra.relation.minimumHash=h,e.extra.relation.maximumPort=!s||s&&!c,e.extra.relation.maximumPath=!s||s&&!u,e.extra.relation.maximumResource=!s||s&&!m,e.extra.relation.maximumQuery=!s||s&&!h,e.extra.relation.maximumHash=!s||s&&!h,e.extra.relation.overridesQuery=c&&e.extra.relation.maximumResource&&!m&&!!p}t.exports={pathOn:r,upToPath:n}})),lR=F(((e,t)=>{var n=cR(),r=QL(),i=oR();function a(e,t,i){n.upToPath(e,t,i),e.extra.relation.minimumScheme&&(e.scheme=t.scheme),e.extra.relation.minimumAuth&&(e.auth=t.auth),e.extra.relation.minimumHost&&(e.host=r.clone(t.host)),e.extra.relation.minimumPort&&s(e,t),e.extra.relation.minimumScheme&&o(e,t),n.pathOn(e,t,i),e.extra.relation.minimumResource&&c(e,t),e.extra.relation.minimumQuery&&(e.query=r.clone(t.query)),e.extra.relation.minimumHash&&(e.hash=t.hash)}function o(e,t){if(e.extra.relation.maximumHost||!e.extra.hrefInfo.minimumResourceOnly){var n=e.path.absolute.array,a=`/`;n?(e.extra.hrefInfo.minimumPathOnly&&e.path.absolute.string.indexOf(`/`)!==0&&(n=t.path.absolute.array.concat(n)),n=i.resolveDotSegments(n),a+=i.join(n)):n=[],e.path.absolute.array=n,e.path.absolute.string=a}else e.path=r.clone(t.path)}function s(e,t){e.port=t.port,e.extra.portIsDefault=t.extra.portIsDefault}function c(e,t){e.resource=t.resource,e.extra.resourceIsIndex=t.extra.resourceIsIndex}t.exports=a})),uR=F(((e,t)=>{var n=oR();function r(e,t){var n=[],r=!0,i=-1;return t.forEach(function(t,a){r&&(e[a]===t?i=a:r=!1),r||n.push(`..`)}),e.forEach(function(e,t){t>i&&n.push(e)}),n}function i(e,t,i){if(e.extra.relation.minimumScheme){var a=r(e.path.absolute.array,t.path.absolute.array);e.path.relative.array=a,e.path.relative.string=n.join(a)}}t.exports=i})),dR=F(((e,t)=>{var n=lR(),r=uR();function i(e,t,i){return n(t,e,i),r(t,e,i),t}t.exports=i})),fR=_e(F(((e,t)=>{var n=XL(),r=ZL(),i=$L(),a=QL(),o=sR(),s=dR();function c(e,t){this.options=i(t,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:[`index.html`],ignore_www:!1,output:c.SHORTEST,rejectedSchemes:[`data`,`javascript`,`mailto`],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=o.from(e,this.options,null)}c.prototype.relate=function(e,t,n){if(a.isPlainObject(t)?(n=t,t=e,e=null):t||(t=e,e=null),n=i(n,this.options),e||=n.site,e=o.from(e,n,this.from),!e||!e.href)throw Error(`from value not defined.`);if(e.extra.hrefInfo.minimumPathOnly)throw Error(`from value supplied is not absolute: `+e.href);return t=o.to(t,n),t.valid===!1?t.href:(t=s(e,t,n),t=r(t,n),t)},c.relate=function(e,t,n){return new c().relate(e,t,n)},a.shallowMerge(c,n),t.exports=c}))(),1),pR=_e(AL(),1);async function mR(e,t,n){let r=[];e.replace(t,(e,...t)=>{let i=n(e,...t);r.push(i)});let i=await Promise.all(r);return e.replace(t,()=>i.shift())}
/*!
* HTML Parser By John Resig (ejohn.org)
* Modified by Juriy "kangax" Zaytsev
* Original code by Erik Arvidsson, Mozilla Public License
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
*/
var hR=class extends Set{has(e){return super.has(e.toLowerCase())}};const gR=/([^\s"'<>/=]+)/,_R=[/=/],vR=[`"([^"]*)"+`,`'([^']*)'+`,`([^ \\t\\n\\f\\r"'\`=<>]+)`],yR=(function(){return`((?:[A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A3_][A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A30-9\\u0660-\\u0669\\u06F0-\\u06F9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE7-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\.\\-_\\u0300-\\u0345\\u0360\\u0361\\u0483-\\u0486\\u0591-\\u05A1\\u05A3-\\u05B9\\u05BB-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u064B-\\u0652\\u0670\\u06D6-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0901-\\u0903\\u093C\\u093E-\\u094D\\u0951-\\u0954\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A02\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A70\\u0A71\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B43\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B82\\u0B83\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C01-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C82\\u0C83\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D43\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F8B\\u0F90-\\u0F95\\u0F97\\u0F99-\\u0FAD\\u0FB1-\\u0FB7\\u0FB9\\u20D0-\\u20DC\\u20E1\\u302A-\\u302F\\u3099\\u309A\\xB7\\u02D0\\u02D1\\u0387\\u0640\\u0E46\\u0EC6\\u3005\\u3031-\\u3035\\u309D\\u309E\\u30FC-\\u30FE]*\\:)?[A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A3_][A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A30-9\\u0660-\\u0669\\u06F0-\\u06F9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE7-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\.\\-_\\u0300-\\u0345\\u0360\\u0361\\u0483-\\u0486\\u0591-\\u05A1\\u05A3-\\u05B9\\u05BB-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u064B-\\u0652\\u0670\\u06D6-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0901-\\u0903\\u093C\\u093E-\\u094D\\u0951-\\u0954\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A02\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A70\\u0A71\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B43\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B82\\u0B83\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C01-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C82\\u0C83\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D43\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F8B\\u0F90-\\u0F95\\u0F97\\u0F99-\\u0FAD\\u0FB1-\\u0FB7\\u0FB9\\u20D0-\\u20DC\\u20E1\\u302A-\\u302F\\u3099\\u309A\\xB7\\u02D0\\u02D1\\u0387\\u0640\\u0E46\\u0EC6\\u3005\\u3031-\\u3035\\u309D\\u309E\\u30FC-\\u30FE]*)`})(),bR=RegExp(`^<`+yR),xR=/^\s*(\/?)>/,SR=RegExp(`^<\\/`+yR+`[^>]*>`),CR=/^<!DOCTYPE\s?[^>]+>/i;let wR=!1;`x`.replace(/x(.)?/g,function(e,t){wR=t===``});const TR=new hR([`area`,`base`,`basefont`,`br`,`col`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),ER=new hR(`a.abbr.acronym.applet.b.basefont.bdo.big.br.button.cite.code.del.dfn.em.font.i.iframe.img.input.ins.kbd.label.map.noscript.object.q.s.samp.script.select.small.span.strike.strong.sub.sup.svg.textarea.tt.u.var`.split(`.`)),DR=new hR([`colgroup`,`dd`,`dt`,`li`,`option`,`p`,`td`,`tfoot`,`th`,`thead`,`tr`,`source`]),OR=new hR([`checked`,`compact`,`declare`,`defer`,`disabled`,`ismap`,`multiple`,`nohref`,`noresize`,`noshade`,`nowrap`,`readonly`,`selected`]),kR=new hR([`script`,`style`]),AR=new hR(`address.article.aside.base.blockquote.body.caption.col.colgroup.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.legend.li.menuitem.meta.ol.optgroup.option.param.rp.rt.source.style.summary.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),jR={};function MR(e){let t=gR.source+`(?:\\s*(`+NR(e)+`)[ \\t\\n\\f\\r]*(?:`+vR.join(`|`)+`))?`;if(e.customAttrSurround){let n=[];for(let r=e.customAttrSurround.length-1;r>=0;r--)n[r]=`(?:(`+e.customAttrSurround[r][0].source+`)\\s*`+t+`\\s*(`+e.customAttrSurround[r][1].source+`))`;n.push(`(?:`+t+`)`),t=`(?:`+n.join(`|`)+`)`}return RegExp(`^\\s*`+t)}function NR(e){return _R.concat(e.customAttrAssign||[]).map(function(e){return`(?:`+e.source+`)`}).join(`|`)}var PR=class{constructor(e,t){this.html=e,this.handler=t}async parse(){let e=this.html,t=this.handler,n=[],r,i=MR(t),a,o,s;for(;e;){if(a=e,!r||!kR.has(r)){let n=e.indexOf(`<`);if(n===0){if(/^<!--/.test(e)){let n=e.indexOf(`-->`);if(n>=0){t.comment&&await t.comment(e.substring(4,n)),e=e.substring(n+3),o=``;continue}}if(/^<!\[/.test(e)){let n=e.indexOf(`]>`);if(n>=0){t.comment&&await t.comment(e.substring(2,n+1),!0),e=e.substring(n+2),o=``;continue}}let r=e.match(CR);if(r){t.doctype&&t.doctype(r[0]),e=e.substring(r[0].length),o=``;continue}let i=e.match(SR);if(i){e=e.substring(i[0].length),await mR(i[0],SR,f),o=`/`+i[1].toLowerCase();continue}let a=c(e);if(a){e=a.rest,await u(a),o=a.tagName.toLowerCase();continue}t.continueOnParseError&&(n=e.indexOf(`<`,1))}let r;n>=0?(r=e.substring(0,n),e=e.substring(n)):(r=e,e=``);let i=c(e);i?s=i.tagName:(i=e.match(SR),s=i?`/`+i[1]:``),t.chars&&await t.chars(r,o,s),o=``}else{let n=r.toLowerCase(),i=jR[n]||(jR[n]=RegExp(`([\\s\\S]*?)</`+n+`[^>]*>`,`i`));e=await mR(e,i,async(e,r)=>(n!==`script`&&n!==`style`&&n!==`noscript`&&(r=r.replace(/<!--([\s\S]*?)-->/g,`$1`).replace(/<!\[CDATA\[([\s\S]*?)]]>/g,`$1`)),t.chars&&await t.chars(r),``)),await f(`</`+n+`>`,n)}if(e===a)throw Error(`Parse Error: `+e)}t.partialMarkup||await f();function c(e){let t=e.match(bR);if(t){let n={tagName:t[1],attrs:[]};e=e.slice(t[0].length);let r,a;for(;!(r=e.match(xR))&&(a=e.match(i));)e=e.slice(a[0].length),n.attrs.push(a);if(r)return n.unarySlash=r[1],n.rest=e.slice(r[0].length),n}}async function l(e){if(d(e)>=0)return await f(``,e),!0}async function u(e){let i=e.tagName,a=e.unarySlash;if(t.html5&&(r===`p`&&AR.has(i)?await f(``,r):i===`tbody`?await l(`thead`):i===`tfoot`&&(await l(`tbody`)||await l(`thead`)),i===`col`&&d(`colgroup`)<0&&(r=`colgroup`,n.push({tag:r,attrs:[]}),t.start&&await t.start(r,[],!1,``))),!t.html5&&!ER.has(i))for(;r&&ER.has(r);)await f(``,r);DR.has(i)&&r===i&&await f(``,i);let o=TR.has(i)||i===`html`&&r===`head`||!!a,s=e.attrs.map(function(e){let n,r,i,a,o,s;wR&&e[0].indexOf(`""`)===-1&&(e[3]===``&&delete e[3],e[4]===``&&delete e[4],e[5]===``&&delete e[5]);function c(t){return o=e[t],r=e[t+1],r===void 0?(r=e[t+2],r===void 0?(r=e[t+3],r===void 0&&OR.has(n)&&(r=n),``):`'`):`"`}let l=1;if(t.customAttrSurround){for(let r=0,o=t.customAttrSurround.length;r<o;r++,l+=7)if(n=e[l+1],n){s=c(l+2),i=e[l],a=e[l+6];break}}return!n&&(n=e[l])&&(s=c(l+1)),{name:n,value:r,customAssign:o||`=`,customOpen:i||``,customClose:a||``,quote:s||``}});o||(n.push({tag:i,attrs:s}),r=i,a=``),t.start&&await t.start(i,s,o,a)}function d(e){let t,r=e.toLowerCase();for(t=n.length-1;t>=0&&n[t].tag.toLowerCase()!==r;t--);return t}async function f(e,i){let a;if(a=i?d(i):0,a>=0){for(let r=n.length-1;r>=a;r--)t.end&&t.end(n[r].tag,n[r].attrs,r>a||!e);n.length=a,r=a&&n[a-1].tag}else i.toLowerCase()===`br`?t.start&&await t.start(i,[],!0,``):i.toLowerCase()===`p`&&(t.start&&await t.start(i,[],!1,``,!0),t.end&&t.end(i,[]))}}},FR=class{sort(e,t=0){for(let n=0,r=this.keys.length;n<r;n++){let r=this.keys[n],i=r.slice(1),a=e.indexOf(i,t);if(a!==-1){do a!==t&&(e.splice(a,1),e.splice(t,0,i)),t++;while((a=e.indexOf(i,t))!==-1);return this[r].sort(e,t)}}return e}},IR=class e{add(e){e.forEach(t=>{let n=`$`+t;this[n]||(this[n]=[],this[n].processed=0),this[n].push(e)})}createSorter(){let t=new FR;return t.keys=Object.keys(this).sort((e,t)=>{let n=this[e].length,r=this[t].length;return n<r?1:n>r||e<t?-1:e>t?1:0}).filter(n=>{if(this[n].processed<this[n].length){let r=n.slice(1),i=new e;return this[n].forEach(e=>{let t;for(;(t=e.indexOf(r))!==-1;)e.splice(t,1);e.forEach(e=>{this[`$`+e].processed++}),i.add(e.slice(0))}),t[n]=i.createSorter(),!0}return!1}),t}};function LR(e){return e&&e.replace(/^[ \n\r\t\f]+/,``).replace(/[ \n\r\t\f]+$/,``)}function RR(e){return e&&e.replace(/[ \n\r\t\f\xA0]+/g,function(e){return e===` `?` `:e.replace(/(^|\xA0+)[^\xA0]+/g,`$1 `)})}function zR(e,t,n,r,i){let a=``,o=``;return t.preserveLineBreaks&&(e=e.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,function(){return a=`
`,``}).replace(/[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*$/,function(){return o=`
`,``})),n&&(e=e.replace(/^[ \n\r\t\f\xA0]+/,function(e){let n=!a&&t.conservativeCollapse;return n&&e===` `?` `:e.replace(/^[^\xA0]+/,``).replace(/(\xA0+)[^\xA0]+/g,`$1 `)||(n?` `:``)})),r&&(e=e.replace(/[ \n\r\t\f\xA0]+$/,function(e){let n=!o&&t.conservativeCollapse;return n&&e===` `?` `:e.replace(/[^\xA0]+(\xA0+)/g,` $1`).replace(/[^\xA0]+$/,``)||(n?` `:``)})),i&&(e=RR(e)),a+e+o}const BR=new Set(`a.abbr.acronym.b.bdi.bdo.big.button.cite.code.del.dfn.em.font.i.ins.kbd.label.mark.math.nobr.object.q.rp.rt.rtc.ruby.s.samp.select.small.span.strike.strong.sub.sup.svg.textarea.time.tt.u.var`.split(`.`)),VR=new Set(`a.abbr.acronym.b.big.del.em.font.i.ins.kbd.mark.nobr.rp.s.samp.small.span.strike.strong.sub.sup.time.tt.u.var`.split(`.`)),HR=new Set([`comment`,`img`,`input`,`wbr`]);function UR(e,t,n,r){let i=t&&!HR.has(t);i&&!r.collapseInlineTagWhitespace&&(i=t.charAt(0)===`/`?!BR.has(t.slice(1)):!VR.has(t));let a=n&&!HR.has(n);return a&&!r.collapseInlineTagWhitespace&&(a=n.charAt(0)===`/`?!VR.has(n.slice(1)):!BR.has(n)),zR(e,r,i,a,t&&n)}function WR(e){return/^\[if\s[^\]]+]|\[endif]$/.test(e)}function GR(e,t){for(let n=0,r=t.ignoreCustomComments.length;n<r;n++)if(t.ignoreCustomComments[n].test(e))return!0;return!1}function KR(e,t){let n=t.customEventAttributes;if(n){for(let t=n.length;t--;)if(n[t].test(e))return!0;return!1}return/^on[a-z]{3,}$/.test(e)}function qR(e){return/^[^ \t\n\f\r"'`=<>]+$/.test(e)}function JR(e,t){for(let n=e.length;n--;)if(e[n].name.toLowerCase()===t)return!0;return!1}function YR(e,t,n,r){return n=n?LR(n.toLowerCase()):``,e===`script`&&t===`language`&&n===`javascript`||e===`form`&&t===`method`&&n===`get`||e===`input`&&t===`type`&&n===`text`||e===`script`&&t===`charset`&&!JR(r,`src`)||e===`a`&&t===`name`&&JR(r,`id`)||e===`area`&&t===`shape`&&n===`rect`}const XR=new Set([`text/javascript`,`text/ecmascript`,`text/jscript`,`application/javascript`,`application/x-javascript`,`application/ecmascript`,`module`]),ZR=new Set([`module`]);function QR(e=``){return e=LR(e.split(/;/,2)[0]).toLowerCase(),e===``||XR.has(e)}function $R(e=``){return e=LR(e.split(/;/,2)[0]).toLowerCase(),ZR.has(e)}function ez(e,t){if(e!==`script`)return!1;for(let e=0,n=t.length;e<n;e++)if(t[e].name.toLowerCase()===`type`)return QR(t[e].value);return!0}function tz(e=``){return e=LR(e).toLowerCase(),e===``||e===`text/css`}function nz(e,t){if(e!==`style`)return!1;for(let e=0,n=t.length;e<n;e++)if(t[e].name.toLowerCase()===`type`)return tz(t[e].value);return!0}const rz=new Set(`allowfullscreen.async.autofocus.autoplay.checked.compact.controls.declare.default.defaultchecked.defaultmuted.defaultselected.defer.disabled.enabled.formnovalidate.hidden.indeterminate.inert.ismap.itemscope.loop.multiple.muted.nohref.noresize.noshade.novalidate.nowrap.open.pauseonexit.readonly.required.reversed.scoped.seamless.selected.sortable.truespeed.typemustmatch.visible`.split(`.`)),iz=new Set([`true`,`false`]);function az(e,t){return rz.has(e)||e===`draggable`&&!iz.has(t)}function oz(e,t){return/^(?:a|area|link|base)$/.test(t)&&e===`href`||t===`img`&&/^(?:src|longdesc|usemap)$/.test(e)||t===`object`&&/^(?:classid|codebase|data|usemap)$/.test(e)||t===`q`&&e===`cite`||t===`blockquote`&&e===`cite`||(t===`ins`||t===`del`)&&e===`cite`||t===`form`&&e===`action`||t===`input`&&(e===`src`||e===`usemap`)||t===`head`&&e===`profile`||t===`script`&&(e===`src`||e===`for`)}function sz(e,t){return/^(?:a|area|object|button)$/.test(t)&&e===`tabindex`||t===`input`&&(e===`maxlength`||e===`tabindex`)||t===`select`&&(e===`size`||e===`tabindex`)||t===`textarea`&&/^(?:rows|cols|tabindex)$/.test(e)||t===`colgroup`&&e===`span`||t===`col`&&e===`span`||(t===`th`||t===`td`)&&(e===`rowspan`||e===`colspan`)}function cz(e,t,n){if(e!==`link`)return!1;for(let e=0,r=t.length;e<r;e++)if(t[e].name===`rel`&&t[e].value===n)return!0}function lz(e,t,n){return n===`media`&&(cz(e,t,`stylesheet`)||nz(e,t))}const uz=new Set([`img`,`source`]);function dz(e,t){return e===`srcset`&&uz.has(t)}async function fz(e,t,n,r,i){if(KR(t,r))return n=LR(n).replace(/^javascript:\s*/i,``),r.minifyJS(n,!0);if(t===`class`)return n=LR(n),n=r.sortClassName?r.sortClassName(n):RR(n),n;if(oz(t,e))return n=LR(n),cz(e,i,`canonical`)?n:r.minifyURLs(n);if(sz(t,e))return LR(n);if(t===`style`)return n=LR(n),n&&=(/;$/.test(n)&&!/&#?[0-9a-zA-Z]+;$/.test(n)&&(n=n.replace(/\s*;$/,`;`)),await r.minifyCSS(n,`inline`)),n;if(dz(t,e))n=LR(n).split(/\s+,\s*|\s*,\s+/).map(function(e){let t=e,n=``,i=e.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);if(i){t=t.slice(0,-i[0].length);let e=+i[1].slice(0,-1),r=i[1].slice(-1);(e!==1||r!==`x`)&&(n=` `+e+r)}return r.minifyURLs(t)+n}).join(`, `);else if(pz(e,i)&&t===`content`)n=n.replace(/\s+/g,``).replace(/[0-9]+\.[0-9]+/g,function(e){return(+e).toString()});else if(mz(e,i)&&t.toLowerCase()===`content`)return RR(n);else if(r.customAttrCollapse&&r.customAttrCollapse.test(t))n=LR(n.replace(/ ?[\n\r]+ ?/g,``).replace(/\s{2,}/g,r.conservativeCollapse?` `:``));else if(e===`script`&&t===`type`)n=LR(n.replace(/\s*;\s*/g,`;`));else if(lz(e,i,t))return n=LR(n),r.minifyCSS(n,`media`);return n}function pz(e,t){if(e!==`meta`)return!1;for(let e=0,n=t.length;e<n;e++)if(t[e].name===`name`&&t[e].value===`viewport`)return!0}function mz(e,t){if(e!==`meta`)return!1;for(let e=0,n=t.length;e<n;e++)if(t[e].name.toLowerCase()===`http-equiv`&&t[e].value.toLowerCase()===`content-security-policy`)return!0}function hz(e){return`/* clean-css ignore:start */`+e+`/* clean-css ignore:end */`}function gz(e,t){switch(t){case`inline`:return`*{`+e+`}`;case`media`:return`@media `+e+`{a{top:0}}`;default:return e}}function _z(e,t){let n;switch(t){case`inline`:n=e.match(/^\*\{([\s\S]*)\}$/);break;case`media`:n=e.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/);break}return n?n[1]:e}async function vz(e,t){return t.processConditionalComments?await mR(e,/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,async function(e,n,r,i){return n+await eB(r,t,!0)+i}):e}async function yz(e,t,n){for(let r=0,i=n.length;r<i;r++)if(n[r].name.toLowerCase()===`type`&&t.processScripts.indexOf(n[r].value)>-1)return await eB(e,t);return e}const bz=new Set([`html`,`head`,`body`,`colgroup`,`tbody`]),xz=new Set([`html`,`head`,`body`,`li`,`dt`,`dd`,`p`,`rb`,`rt`,`rtc`,`rp`,`optgroup`,`option`,`colgroup`,`caption`,`thead`,`tbody`,`tfoot`,`tr`,`td`,`th`]),Sz=new Set([`meta`,`link`,`script`,`style`,`template`,`noscript`]),Cz=new Set([`dt`,`dd`]),wz=new Set(`address.article.aside.blockquote.details.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.menu.nav.ol.p.pre.section.table.ul`.split(`.`)),Tz=new Set([`a`,`audio`,`del`,`ins`,`map`,`noscript`,`video`]),Ez=new Set([`rb`,`rt`,`rtc`,`rp`]),Dz=new Set([`rb`,`rtc`,`rp`]),Oz=new Set([`option`,`optgroup`]),kz=new Set([`tbody`,`tfoot`]),Az=new Set([`thead`,`tbody`,`tfoot`]),jz=new Set([`td`,`th`]),Mz=new Set([`html`,`head`,`body`]),Nz=new Set([`html`,`body`]),Pz=new Set([`head`,`colgroup`,`caption`]),Fz=new Set([`dt`,`thead`]),Iz=new Set(`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.content.data.datalist.dd.del.details.dfn.dialog.dir.div.dl.dt.element.em.embed.fieldset.figcaption.figure.font.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.link.listing.main.map.mark.marquee.menu.menuitem.meta.meter.multicol.nav.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.picture.plaintext.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.shadow.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.tt.u.ul.var.video.wbr.xmp`.split(`.`));function Lz(e,t){switch(e){case`html`:case`head`:return!0;case`body`:return!Sz.has(t);case`colgroup`:return t===`col`;case`tbody`:return t===`tr`}return!1}function Rz(e,t){switch(t){case`colgroup`:return e===`colgroup`;case`tbody`:return Az.has(e)}return!1}function zz(e,t){switch(e){case`html`:case`head`:case`body`:case`colgroup`:case`caption`:return!0;case`li`:case`optgroup`:case`tr`:return t===e;case`dt`:case`dd`:return Cz.has(t);case`p`:return wz.has(t);case`rb`:case`rt`:case`rp`:return Ez.has(t);case`rtc`:return Dz.has(t);case`option`:return Oz.has(t);case`thead`:case`tbody`:return kz.has(t);case`tfoot`:return t===`tbody`;case`td`:case`th`:return jz.has(t)}return!1}const Bz=RegExp(`^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$`);function Vz(e,t,n,r){return!n||/^\s*$/.test(n)?typeof r.removeEmptyAttributes==`function`?r.removeEmptyAttributes(t,e):e===`input`&&t===`value`||Bz.test(t):!1}function Hz(e,t){for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return!0;return!1}function Uz(e,t){switch(e){case`textarea`:return!1;case`audio`:case`script`:case`video`:if(Hz(`src`,t))return!1;break;case`iframe`:if(Hz(`src`,t)||Hz(`srcdoc`,t))return!1;break;case`object`:if(Hz(`data`,t))return!1;break;case`applet`:if(Hz(`code`,t))return!1;break}return!0}function Wz(e){return!/^(?:script|style|pre|textarea)$/.test(e)}function Gz(e){return!/^(?:pre|textarea)$/.test(e)}async function Kz(e,t,n,r){let i=r.name(e.name),a=e.value;if(r.decodeEntities&&a&&(a=YL(a)),!(r.removeRedundantAttributes&&YR(n,i,a,t)||r.removeScriptTypeAttributes&&n===`script`&&i===`type`&&QR(a)&&!$R(a)||r.removeStyleLinkTypeAttributes&&(n===`style`||n===`link`)&&i===`type`&&tz(a))&&(a&&=await fz(n,i,a,r,t),!(r.removeEmptyAttributes&&Vz(n,i,a,r))))return r.decodeEntities&&a&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,`&$1`)),{attr:e,name:i,value:a}}function qz(e,t,n,r,i){let a=e.name,o=e.value,s=e.attr,c=s.quote,l,u;return o!==void 0&&(!n.removeAttributeQuotes||~o.indexOf(i)||!qR(o))?(n.preventAttributesEscaping||(c=n.quoteCharacter===void 0?(o.match(/'/g)||[]).length<(o.match(/"/g)||[]).length?`'`:`"`:n.quoteCharacter===`'`?`'`:`"`,o=c===`"`?o.replace(/"/g,`"`):o.replace(/'/g,`'`)),u=c+o+c,!r&&!n.removeTagWhitespace&&(u+=` `)):u=r&&!t&&!/\/$/.test(o)?o:o+` `,o===void 0||n.collapseBooleanAttributes&&az(a.toLowerCase(),o.toLowerCase())?(l=a,r||(l+=` `)):l=a+s.customAssign+u,s.customOpen+l+s.customClose}function Jz(e){return e}function Yz(e){return Promise.resolve(e)}const Xz=e=>{let t={name:function(e){return e.toLowerCase()},canCollapseWhitespace:Wz,canTrimWhitespace:Gz,html5:!0,ignoreCustomComments:[/^!/,/^\s*#/],ignoreCustomFragments:[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/],includeAutoGeneratedTags:!0,log:Jz,minifyCSS:Yz,minifyJS:Jz,minifyURLs:Jz};return Object.keys(e).forEach(function(n){let r=e[n];if(n===`caseSensitive`)r&&(t.name=Jz);else if(n===`log`)typeof r==`function`&&(t.log=r);else if(n===`minifyCSS`&&typeof r!=`function`){if(!r)return;let e=typeof r==`object`?r:{};t.minifyCSS=async function(n,r){n=n.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(e,n,r,i,a){return n+r+t.minifyURLs(i)+r+a});let i=gz(n,r);return new Promise(a=>{new pR.default(e).minify(i,(e,i)=>{i.errors.length>0&&(i.errors.forEach(t.log),a(n)),a(_z(i.styles,r))})})}}else if(n===`minifyJS`&&typeof r!=`function`){if(!r)return;let e=typeof r==`object`?r:{};e.parse={...e.parse,bare_returns:!1},t.minifyJS=async function(n,r){let i=n.match(/^\s*<!--.*/),a=i?n.slice(i[0].length).replace(/\n\s*-->\s*$/,``):n;e.parse.bare_returns=r;try{return(await oF(a,e)).code.replace(/;$/,``)}catch(e){return t.log(e),n}}}else if(n===`minifyURLs`&&typeof r!=`function`){if(!r)return;let e=r;typeof r==`string`?e={site:r}:typeof r!=`object`&&(e={}),t.minifyURLs=function(n){try{return fR.default.relate(n,e)}catch(e){return t.log(e),n}}}else t[n]=r}),t};function Zz(e){let t;do t=Math.random().toString(36).replace(/^0\.[0-9]*/,``);while(~e.indexOf(t));return t}const Qz=new Set([`script`,`style`]);async function $z(e,t,n,r){let i=t.sortAttributes&&Object.create(null),a=t.sortClassName&&new IR;function o(e){return e.map(function(e){return t.name(e.name)})}function s(e,t){return!t||e.indexOf(t)===-1}function c(e){return s(e,n)&&s(e,r)}async function l(e){let n,r;await new PR(e,{start:function(e,s){i&&(i[e]||(i[e]=new IR),i[e].add(o(s).filter(c)));for(let i=0,o=s.length;i<o;i++){let o=s[i];a&&o.value&&t.name(o.name)===`class`?a.add(LR(o.value).split(/[ \t\n\f\r]+/).filter(c)):t.processScripts&&o.name.toLowerCase()===`type`&&(n=e,r=o.value)}},end:function(){n=``},chars:async function(e){t.processScripts&&Qz.has(n)&&t.processScripts.indexOf(r)>-1&&await l(e)}}).parse()}let u=t.log;if(t.log=Jz,t.sortAttributes=!1,t.sortClassName=!1,await l(await eB(e,t)),t.log=u,i){let e=Object.create(null);for(let t in i)e[t]=i[t].createSorter();t.sortAttributes=function(t,n){let r=e[t];if(r){let e=Object.create(null),t=o(n);t.forEach(function(t,r){(e[t]||(e[t]=[])).push(n[r])}),r.sort(t).forEach(function(t,r){n[r]=e[t].shift()})}}}if(a){let e=a.createSorter();t.sortClassName=function(t){return e.sort(t.split(/[ \n\f\r]+/)).join(` `)}}}async function eB(e,t,n){t.collapseWhitespace&&(e=zR(e,t,!0,!0));let r=[],i,a=``,o,s=``,c=[],l=[],u=[],d=``,f=``,p=[],m=[],h,g,_;e=e.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,function(n,r){if(!h){h=Zz(e);let n=RegExp(`^`+h+`([0-9]+)$`);t.ignoreCustomComments?t.ignoreCustomComments=t.ignoreCustomComments.slice():t.ignoreCustomComments=[],t.ignoreCustomComments.push(n)}let i=`<!--`+h+p.length+`-->`;return p.push(r),i});let v=t.ignoreCustomFragments.map(function(e){return e.source});if(v.length){let n=RegExp(`\\s*(?:`+v.join(`|`)+`)+\\s*`,`g`);e=e.replace(n,function(n){g||(g=Zz(e),_=RegExp(`(\\s*)`+g+`([0-9]+)`+g+`(\\s*)`,`g`),t.minifyCSS&&=(function(e){return function(t,n){t=t.replace(_,function(e,t,n){let r=m[+n];return r[1]+g+n+g+r[2]});let r=[];return new pR.default().minify(gz(t,n)).warnings.forEach(function(e){let n=_.exec(e);if(n){let e=g+n[2]+g;t=t.replace(e,hz(e)),r.push(e)}}),e(t,n).then(e=>(r.forEach(function(t){e=e.replace(hz(t),t)}),e))}})(t.minifyCSS),t.minifyJS&&=(function(e){return function(t,n){return e(t.replace(_,function(e,t,n){let r=m[+n];return r[1]+g+n+g+r[2]}),n)}})(t.minifyJS));let r=g+m.length+g;return m.push(/^(\s*)[\s\S]*?(\s*)$/.exec(n)),` `+r+` `})}(t.sortAttributes&&typeof t.sortAttributes!=`function`||t.sortClassName&&typeof t.sortClassName!=`function`)&&await $z(e,t,h,g);function y(e,n){return t.canCollapseWhitespace(e,n,Wz)}function b(e,n){return t.canTrimWhitespace(e,n,Gz)}function x(){let e=r.length-1;for(;e>0&&!/^<[^/!]/.test(r[e]);)e--;r.length=Math.max(0,e)}function S(){let e=r.length-1;for(;e>0&&!/^<\//.test(r[e]);)e--;r.length=Math.max(0,e)}function C(e,n){for(let i=null;e>=0&&b(i);e--){let a=r[e],o=a.match(/^<\/([\w:-]+)>$/);if(o)i=o[1];else if(/>$/.test(a)||(r[e]=UR(a,null,n,t)))break}}function w(e){let t=r.length-1;if(r.length>1){let e=r[r.length-1];/^(?:<!|$)/.test(e)&&e.indexOf(h)===-1&&t--}C(t,e)}return await new PR(e,{partialMarkup:n,continueOnParseError:t.continueOnParseError,customAttrAssign:t.customAttrAssign,customAttrSurround:t.customAttrSurround,html5:t.html5,start:async function(e,n,p,m,h){e.toLowerCase()===`svg`&&(t=Object.create(t),t.caseSensitive=!0,t.keepClosingSlash=!0,t.name=Jz),e=t.name(e),s=e,i=e,VR.has(e)||(a=``),o=!1,c=n;let _=t.removeOptionalTags;if(_){let t=Iz.has(e);t&&Lz(d,e)&&x(),d=``,t&&zz(f,e)&&(S(),_=!Rz(f,e)),f=``}t.collapseWhitespace&&(l.length||w(e),p||((!b(e,n)||l.length)&&l.push(e),(!y(e,n)||u.length)&&u.push(e)));let v=`<`+e,C=m&&t.keepClosingSlash;r.push(v),t.sortAttributes&&t.sortAttributes(e,n);let T=[];for(let r=n.length,i=!0;--r>=0;){let a=await Kz(n[r],n,e,t);a&&(T.unshift(qz(a,C,t,i,g)),i=!1)}T.length>0?(r.push(` `),r.push.apply(r,T)):_&&bz.has(e)&&(d=e),r.push(r.pop()+(C?`/`:``)+`>`),h&&!t.includeAutoGeneratedTags&&(x(),d=``)},end:function(e,n,c){e.toLowerCase()===`svg`&&(t=Object.getPrototypeOf(t)),e=t.name(e),t.collapseWhitespace&&(l.length?e===l[l.length-1]&&l.pop():w(`/`+e),u.length&&e===u[u.length-1]&&u.pop());let p=!1;e===s&&(s=``,p=!o),t.removeOptionalTags&&(p&&Mz.has(d)&&x(),d=``,Iz.has(e)&&f&&!Fz.has(f)&&(f!==`p`||!Tz.has(e))&&S(),f=xz.has(e)?e:``),t.removeEmptyElements&&p&&Uz(e,n)?(x(),d=``,f=``):(c&&!t.includeAutoGeneratedTags?f=``:r.push(`</`+e+`>`),i=`/`+e,BR.has(e)?p&&(a+=`|`):a=``)},chars:async function(e,n,p){if(n=n===``?`comment`:n,p=p===``?`comment`:p,t.decodeEntities&&e&&!Qz.has(s)&&(e=JL(e)),t.collapseWhitespace){if(!l.length){if(n===`comment`){let o=r[r.length-1];if(o.indexOf(h)===-1&&(o||(n=i),r.length>1&&(!o||!t.conservativeCollapse&&/ $/.test(a)))){let t=r.length-2;r[t]=r[t].replace(/\s+$/,function(t){return e=t+e,``})}}if(n)if(n===`/nobr`||n===`wbr`){if(/^\s/.test(e)){let e=r.length-1;for(;e>0&&r[e].lastIndexOf(`<`+n)!==0;)e--;C(e-1,`br`)}}else VR.has(n.charAt(0)===`/`?n.slice(1):n)&&(e=zR(e,t,/(?:^|\s)$/.test(a)));e=n||p?UR(e,n,p,t):zR(e,t,!0,!0),!e&&/\s$/.test(a)&&n&&n.charAt(0)===`/`&&C(r.length-1,p)}!u.length&&p!==`html`&&!(n&&p)&&(e=zR(e,t,!1,!1,!0))}t.processScripts&&Qz.has(s)&&(e=await yz(e,t,c)),ez(s,c)&&(e=await t.minifyJS(e)),nz(s,c)&&(e=await t.minifyCSS(e)),t.removeOptionalTags&&e&&((d===`html`||d===`body`&&!/^\s/.test(e))&&x(),d=``,(Nz.has(f)||Pz.has(f)&&!/^\s/.test(e))&&S(),f=``),i=/^\s*$/.test(e)?n:`comment`,t.decodeEntities&&e&&!Qz.has(s)&&(e=e.replace(/&((?:Iacute|aacute|uacute|plusmn|Otilde|otilde|agrave|Agrave|Yacute|yacute|Oslash|oslash|atilde|Atilde|brvbar|ccedil|Ccedil|Ograve|curren|divide|eacute|Eacute|ograve|Oacute|egrave|Egrave|Ugrave|frac12|frac14|frac34|ugrave|oacute|iacute|Ntilde|ntilde|Uacute|middot|igrave|Igrave|iquest|Aacute|cedil|laquo|micro|iexcl|Icirc|icirc|acirc|Ucirc|Ecirc|ocirc|Ocirc|ecirc|ucirc|Aring|aring|AElig|aelig|acute|pound|raquo|Acirc|times|THORN|szlig|thorn|COPY|auml|ordf|ordm|Uuml|macr|uuml|Auml|ouml|Ouml|para|nbsp|euml|quot|QUOT|Euml|yuml|cent|sect|copy|sup1|sup2|sup3|iuml|Iuml|ETH|shy|reg|not|yen|amp|AMP|REG|uml|eth|deg|gt|GT|LT|lt)(?!;)|(?:#?[0-9a-zA-Z]+;))/g,`&$1`).replace(/</g,`<`)),_&&t.collapseWhitespace&&l.length&&(e=e.replace(_,function(e,t,n){return m[+n][0]})),a+=e,e&&(o=!0),r.push(e)},comment:async function(e,n){let i=n?`<!`:`<!--`,a=n?`>`:`-->`;e=WR(e)?i+await vz(e,t)+a:t.removeComments?GR(e,t)?`<!--`+e+`-->`:``:i+e+a,t.removeOptionalTags&&e&&(d=``,f=``),r.push(e)},doctype:function(e){r.push(t.useShortDoctype?`<!doctype`+(t.removeTagWhitespace?``:` `)+`html>`:RR(e))}}).parse(),t.removeOptionalTags&&(Mz.has(d)&&x(),f&&!Fz.has(f)&&S()),t.collapseWhitespace&&w(`br`),tB(r,t,_?function(e){return e.replace(_,function(e,n,r,i){let a=m[+r][0];return t.collapseWhitespace?(n!==` `&&(a=n+a),i!==` `&&(a+=i),zR(a,{preserveLineBreaks:t.preserveLineBreaks,conservativeCollapse:!t.trimCustomFragments},/^[ \n\r\t\f]/.test(a),/[ \n\r\t\f]$/.test(a))):a})}:Jz,h?function(e){return e.replace(RegExp(`<!--`+h+`([0-9]+)-->`,`g`),function(e,t){return p[+t]})}:Jz)}function tB(e,t,n,r){let i,a=t.maxLineLength,o=t.noNewlinesBeforeTagClose;if(a){let t=``,s=[];for(;e.length;){let i=t.length,c=e[0].indexOf(`
`),l=!!e[0].match(SR),u=o&&l;c<0?t+=r(n(e.shift())):(t+=r(n(e[0].slice(0,c))),e[0]=e[0].slice(c+1)),i>0&&t.length>a&&!u?(s.push(t.slice(0,i)),t=t.slice(i)):c>=0&&(s.push(t),t=``)}t&&s.push(t),i=s.join(`
`)}else i=r(n(e.join(``)));return t.collapseWhitespace?zR(i,t,!0,!0):i}const nB=async function(e,t){let n=Date.now();t=Xz(t||{});let r=await eB(e,t);return t.log(`minified in: `+(Date.now()-n)+`ms`),r},rB=`.github,.git,.vscode,.devcontainer,.config,.cargo,.changeset,.husky,.aspect,.eslint-plugin-local,.yarn,.gemini,.ng-dev,.configurations,.tx,dist,build,out,output,target,release,node_modules,vendor,third_party,tmp,temp,cache,.cache,.tmp,.pytest_cache,.tox,.venv,.mypy_cache,.next,.svelte-kit,.turbo,.angular,.dart_tool,__pycache__,.ruff_cache,.nox,htmlcov,cover,.gradle,.m2,.sbt,.bloop,.metals,.bsp,bin,obj,TestResults,BenchmarkDotNet.Artifacts,.vendor-new,Godeps,composer.phar,.phpunit.result.cache,.bundle,.byebug_history,.rspec_status,.mvn,.aws,.gcp,fastlane,DerivedData,xcuserdata,local.properties,.navigation,captures,.externalNativeBuild,.cxx,.idea,.idea_modules,.vs,.history,coverage,.nyc_output,logs,log,.DS_Store`.split(`,`),iB=`package-lock.json,.secrets,.secret,secrets.json,secrets.yaml,secrets.yml,credentials.json,credentials.yaml,credentials.yml,auth.json,auth.yaml,auth.yml,api-keys.json,api_keys.json,service-account.json,service_account.json,private-key.pem,private_key.pem,id_rsa,id_dsa,id_ecdsa,id_ed25519,keyfile,keyfile.json,gcloud-service-key.json,firebase-adminsdk.json,google-services.json,GoogleService-Info.plist,.DS_Store,Thumbs.db,db.sqlite3,db.sqlite3-journal,.eslintcache,.stylelintcache,.node_repl_history,.yarn-integrity,celerybeat-schedule,celerybeat.pid,ThirdPartyNoticeText.txt,ThirdPartyNotices.txt,cglicenses.json,cgmanifest.json`.split(`,`),aB=`.lock,.log,.tmp,.temp,.cache,.bak,.backup,.orig,.swp,.swo,.rej,.pid,.seed,.old,.save,.temporary,.exe,.dll,.so,.dylib,.a,.lib,.o,.obj,.bin,.class,.pdb,.dSYM,.pyc,.pyo,.pyd,.jar,.war,.ear,.nar,.db,.sqlite,.sqlite3,.mdb,.accdb,.zip,.tar,.gz,.bz2,.xz,.lz,.lzma,.Z,.tgz,.rar,.7z,.deb,.rpm,.pkg,.dmg,.msi,.appx,.snap,.map,.d.ts.map,.min.js,.min.css,.key,.pem,.p12,.pfx,.crt,.cer,.der,.csr,.jks,.keystore,.truststore,.kate-swp,.gnome-desktop,.sublime-project,.sublime-workspace,.iml,.iws,.ipr,.patch,.diff,.prof,.profile,.trace,.perf,.coverage,.egg-info,.egg,.mo,.pot,.setup,.paket.template`.split(`,`);function oB(e){return rB.includes(e)}function sB(e){let t=e.split(`/`).pop()||``;for(let e of aB)if(t.endsWith(e))return!0;if(iB.includes(t))return!0;let n=e.split(`/`);for(let e of n)if(rB.includes(e))return!0;return!1}function cB(e,t){let n=e.split(`.`);if(n.length<=1||n.length===2&&n[0]===``)return t?.fallback??``;let r=n[n.length-1];return t?.lowercase?r.toLowerCase():r}const lB={commentPatterns:{"c-style":[/\/\*[\s\S]*?\*\//g,/^\s*\/\/.*$/gm,/\s+\/\/.*$/gm],hash:[/^\s*#(?!!).*$/gm,/\s+#.*$/gm],html:[/<!--[\s\S]*?-->/g],sql:[/--.*$/gm,/\/\*[\s\S]*?\*\//g],lua:[/^\s*--.*$/gm,/--\[\[[\s\S]*?\]\]/g],template:[/\{\{!--[\s\S]*?--\}\}/g,/\{\{![\s\S]*?\}\}/g,/<%#[\s\S]*?%>/g,/\{#[\s\S]*?#\}/g],haskell:[/^\s*--.*$/gm,/\s+--.*$/gm,/\{-[\s\S]*?-\}/g]},fileTypes:{js:{strategy:`terser`},jsx:{strategy:`terser`},mjs:{strategy:`terser`},cjs:{strategy:`terser`},ts:{strategy:`aggressive`,comments:`c-style`},tsx:{strategy:`aggressive`,comments:`c-style`},py:{strategy:`conservative`,comments:`hash`},yaml:{strategy:`conservative`,comments:`hash`},yml:{strategy:`conservative`,comments:`hash`},coffee:{strategy:`conservative`,comments:`hash`},nim:{strategy:`conservative`,comments:`hash`},haml:{strategy:`conservative`,comments:`hash`},slim:{strategy:`conservative`,comments:`hash`},sass:{strategy:`conservative`,comments:`c-style`},styl:{strategy:`conservative`,comments:`c-style`},html:{strategy:`aggressive`,comments:`html`},htm:{strategy:`aggressive`,comments:`html`},xml:{strategy:`aggressive`,comments:`html`},svg:{strategy:`aggressive`,comments:`html`},css:{strategy:`aggressive`,comments:`c-style`},less:{strategy:`aggressive`,comments:`c-style`},scss:{strategy:`aggressive`,comments:`c-style`},json:{strategy:`json`},go:{strategy:`aggressive`,comments:`c-style`},java:{strategy:`aggressive`,comments:`c-style`},c:{strategy:`aggressive`,comments:`c-style`},cpp:{strategy:`aggressive`,comments:`c-style`},cs:{strategy:`aggressive`,comments:`c-style`},rust:{strategy:`aggressive`,comments:`c-style`},rs:{strategy:`aggressive`,comments:`c-style`},swift:{strategy:`aggressive`,comments:`c-style`},kotlin:{strategy:`aggressive`,comments:`c-style`},scala:{strategy:`aggressive`,comments:`c-style`},dart:{strategy:`aggressive`,comments:`c-style`},php:{strategy:`aggressive`,comments:[`c-style`,`hash`]},rb:{strategy:`aggressive`,comments:`hash`},perl:{strategy:`aggressive`,comments:`hash`},sh:{strategy:`conservative`,comments:`hash`},bash:{strategy:`conservative`,comments:`hash`},sql:{strategy:`aggressive`,comments:`sql`},lua:{strategy:`aggressive`,comments:`lua`},r:{strategy:`aggressive`,comments:`hash`},hbs:{strategy:`aggressive`,comments:`template`},handlebars:{strategy:`aggressive`,comments:`template`},ejs:{strategy:`aggressive`,comments:`template`},pug:{strategy:`conservative`,comments:`c-style`},jade:{strategy:`conservative`,comments:`c-style`},mustache:{strategy:`aggressive`,comments:`template`},twig:{strategy:`aggressive`,comments:`template`},jinja:{strategy:`aggressive`,comments:`template`},jinja2:{strategy:`aggressive`,comments:`template`},erb:{strategy:`aggressive`,comments:`template`},vue:{strategy:`aggressive`,comments:`html`},svelte:{strategy:`aggressive`,comments:`html`},graphql:{strategy:`aggressive`,comments:`hash`},gql:{strategy:`aggressive`,comments:`hash`},proto:{strategy:`aggressive`,comments:`c-style`},csv:{strategy:`conservative`},toml:{strategy:`aggressive`,comments:`hash`},ini:{strategy:`aggressive`,comments:`hash`},conf:{strategy:`aggressive`,comments:`hash`},config:{strategy:`aggressive`,comments:`hash`},env:{strategy:`aggressive`,comments:`hash`},properties:{strategy:`aggressive`,comments:`hash`},tf:{strategy:`aggressive`,comments:[`hash`,`c-style`]},tfvars:{strategy:`aggressive`,comments:[`hash`,`c-style`]},pp:{strategy:`aggressive`,comments:`hash`},md:{strategy:`markdown`},markdown:{strategy:`markdown`},rst:{strategy:`conservative`,comments:`hash`},star:{strategy:`conservative`,comments:`hash`},bzl:{strategy:`conservative`,comments:`hash`},cmake:{strategy:`conservative`,comments:`hash`},pl:{strategy:`aggressive`,comments:`hash`},pm:{strategy:`aggressive`,comments:`hash`},fs:{strategy:`conservative`,comments:`c-style`},fsx:{strategy:`conservative`,comments:`c-style`},hs:{strategy:`conservative`,comments:`haskell`},lhs:{strategy:`conservative`,comments:`haskell`},elm:{strategy:`conservative`,comments:`c-style`},clj:{strategy:`aggressive`,comments:`hash`},cljs:{strategy:`aggressive`,comments:`hash`},ex:{strategy:`aggressive`,comments:`hash`},exs:{strategy:`aggressive`,comments:`hash`},erl:{strategy:`aggressive`,comments:`hash`},hrl:{strategy:`aggressive`,comments:`hash`},txt:{strategy:`general`},log:{strategy:`general`},cfg:{strategy:`aggressive`,comments:`hash`},gitignore:{strategy:`aggressive`,comments:`hash`},dockerignore:{strategy:`aggressive`,comments:`hash`}}},uB=new Set([`makefile`,`dockerfile`,`procfile`,`justfile`,`rakefile`,`gemfile`,`podfile`,`fastfile`,`vagrantfile`,`jenkinsfile`,`cakefile`,`pipfile`,`buildfile`,`capfile`,`brewfile`]),dB={lowercase:!0,fallback:`txt`};function fB(e){let t=cB(e,dB),n=(e.split(`/`).pop()||``).toLowerCase();return uB.has(n)?{strategy:`conservative`,comments:`hash`}:lB.fileTypes[t]||{strategy:`general`}}function pB(e,t){try{let n=e,r=Array.isArray(t)?t:[t];for(let e of r){let t=lB.commentPatterns[e];if(t)for(let e of t)try{n=n.replace(e,``)}catch{continue}}return n}catch{return e}}function mB(e,t){try{let n=e;return t.comments&&(n=pB(n,t.comments)),n.replace(/[ \t]+$/gm,``).replace(/\n\s*\n\s*\n+/g,`
`).trim()}catch{return e}}function hB(e,t){try{let n=e;return t.comments&&(n=pB(n,t.comments)),n.replace(/\s+/g,` `).replace(/\s*([{}:;,])\s*/g,`$1`).replace(/>\s+</g,`><`).trim()}catch{return e}}function gB(e){try{return{content:JSON.stringify(JSON.parse(e)),failed:!1}}catch{try{let t=pB(e,`c-style`);return{content:JSON.stringify(JSON.parse(t)),failed:!1}}catch{return{content:e.trim(),failed:!1}}}}function _B(e){try{return e.replace(/[ \t]+$/gm,``).replace(/\r\n/g,`
`).replace(/\n\s*\n\s*\n+/g,`
`).replace(/[ \t]{3,}/g,` `).trim()}catch{return e}}function vB(e){try{return e.replace(/<!--[\s\S]*?-->/g,``).replace(/[ \t]+$/gm,``).replace(/\r\n/g,`
`).replace(/\n\s*\n\s*\n+/g,`
`).replace(/([^\n])[ \t]{5,}([^\n])/g,`$1 $2`).replace(/\s*\|\s*/g,` | `).replace(/^(#{1,6})[ \t]+/gm,`$1 `).replace(/^(\s*)([-*+]|\d+\.)[ \t]+/gm,`$1$2 `).replace(/\n{3,}(```)/g,`
$1`).replace(/(```)\n{3,}/g,`$1
`).trim()}catch{return e}}function yB(e){try{return pB(e,`c-style`).replace(/\s+/g,` `).replace(/\s*([{}:;,])\s*/g,`$1`).trim()}catch{return e}}function bB(e){try{return pB(e,`html`).replace(/\s+/g,` `).replace(/>\s+</g,`><`).trim()}catch{return e}}function xB(e){try{return pB(e,`c-style`).replace(/\s+/g,` `).replace(/\s*([{}();,:])\s*/g,`$1`).split(`
`).map(e=>e.trim()).filter(e=>e.length>0).join(`
`)}catch{return e}}function SB(e,t){let n=fB(t),r=cB(t,dB);try{switch(n.strategy){case`terser`:return xB(e);case`json`:return gB(e).content;case`conservative`:return mB(e,n);case`markdown`:return vB(e);case`aggressive`:return[`css`,`less`,`scss`].includes(r)?yB(e):[`html`,`htm`,`xml`,`svg`].includes(r)?bB(e):hB(e,n);case`general`:default:return _B(e)}}catch{return e}}async function CB(e){try{return e.trim()?{content:(await oF(e,{compress:{drop_console:!1,drop_debugger:!1,sequences:!0,conditionals:!0,comparisons:!0,evaluate:!0,booleans:!0,loops:!1,unused:!1,dead_code:!0,side_effects:!1},mangle:!1,format:{comments:!1,beautify:!1,semicolons:!0},sourceMap:!1})).code||e,failed:!1}:{content:e,failed:!1}}catch(t){return{content:e,failed:!0,reason:`Terser minification failed: ${t instanceof Error?t.message:`Unknown error`}`}}}async function wB(e){try{let t=new pR.default({level:2,format:!1,inline:!1,rebase:!1}).minify(e);if(t.errors&&t.errors.length>0)throw Error(t.errors.join(`, `));return{content:t.styles,failed:!1}}catch(t){return{content:yB(e),failed:!1,reason:`CleanCSS fallback: ${t instanceof Error?t.message:`unknown`}`}}}async function TB(e){try{return{content:await nB(e,{collapseWhitespace:!0,removeComments:!0,removeRedundantAttributes:!0,removeScriptTypeAttributes:!0,removeStyleLinkTypeAttributes:!0,minifyCSS:!1,minifyJS:!1,caseSensitive:!1}),failed:!1}}catch(t){return{content:bB(e),failed:!1,reason:`html-minifier fallback: ${t instanceof Error?t.message:`unknown`}`}}}async function EB(e,t){try{let n=Buffer.byteLength(e,`utf8`);if(n>1048576)return{content:e,failed:!0,type:`failed`,reason:`File too large: ${(n/1024/1024).toFixed(2)}MB exceeds 1MB limit`};let r=fB(t),i=cB(t,dB);switch(r.strategy){case`terser`:{let t=await CB(e);return{content:t.content,failed:t.failed,type:t.failed?`failed`:`terser`,...t.reason&&{reason:t.reason}}}case`json`:{let t=gB(e);return{content:t.content,failed:t.failed,type:t.failed?`failed`:`json`,...t.reason&&{reason:t.reason}}}case`conservative`:return{content:mB(e,r),failed:!1,type:`conservative`};case`general`:return{content:_B(e),failed:!1,type:`general`};case`markdown`:return{content:vB(e),failed:!1,type:`markdown`};case`aggressive`:if([`css`,`less`,`scss`].includes(i)){let t=await wB(e);return{content:t.content,failed:!1,type:`aggressive`,...t.reason&&{reason:t.reason}}}if([`html`,`htm`].includes(i)){let t=await TB(e);return{content:t.content,failed:!1,type:`aggressive`,...t.reason&&{reason:t.reason}}}return{content:hB(e,r),failed:!1,type:`aggressive`}}}catch(t){return{content:e,failed:!0,type:`failed`,reason:`Unexpected minification error: ${t instanceof Error?t.message:`Unknown error`}`}}}function DB(e){let{data:t,instructions:n,isError:r}=e;return{content:[{type:`text`,text:OB({data:t,instructions:n})}],isError:!!r}}function OB(e,t){let n=vE(kB(e),{keysPriority:t||[`instructions`,`results`,`hasResultsStatusHints`,`emptyStatusHints`,`errorStatusHints`,`mainResearchGoal`,`researchGoal`,`reasoning`,`status`,`data`]});return sx(FS.sanitizeContent(n).content)}function kB(e,t={}){if(e==null||Number.isNaN(e))return;let{inFilesObject:n=!1,depth:r=0}=t;if(Array.isArray(e)){let t=e.map(e=>kB(e,{inFilesObject:n,depth:r+1})).filter(e=>e!==void 0),i=n&&r>=2;return t.length>0||i?t:void 0}if(typeof e==`object`&&e){let t={},i=!1;for(let[a,o]of Object.entries(e)){let e=(a===`files`||a===`repositories`)&&!n,s=kB(o,{inFilesObject:n||e,depth:e?0:r+1});s!==void 0&&(t[a]=s,i=!0)}return i?t:void 0}return e}function AB(e,t){return async(n,{authInfo:r,sessionId:i})=>{try{let a=FS.validateInputParameters(n);if(!a.isValid)return DB({data:{error:`Security validation failed: ${a.warnings.join(`; `)}`},isError:!0});let o=a.sanitizedParams;return Dx()&&jB(e,o),await t(a.sanitizedParams,r,i)}catch(t){return Fx(e,Mb.SECURITY_VALIDATION_FAILED.code).catch(()=>{}),DB({data:{error:`Security validation error: ${t instanceof Error?t.message:`Unknown error`}`},isError:!0})}}}function jB(e,t){let n=PB(t);if(n)for(let t of n)MB(e,t);else NB(e,t)}function MB(e,t){let n=LB(t);if(n.length===0)return;let r=FB(t);Nx(e,n,r.mainResearchGoal,r.researchGoal,r.reasoning).catch(()=>{})}function NB(e,t){let n=RB(t);if(n.length===0)return;let r=IB(t);Nx(e,n,r.mainResearchGoal,r.researchGoal,r.reasoning).catch(()=>{})}function PB(e){let t=e.queries;if(t&&Array.isArray(t)&&t.length>0)return t}function FB(e){return{...typeof e.mainResearchGoal==`string`&&e.mainResearchGoal&&{mainResearchGoal:e.mainResearchGoal},...typeof e.researchGoal==`string`&&e.researchGoal&&{researchGoal:e.researchGoal},...typeof e.reasoning==`string`&&e.reasoning&&{reasoning:e.reasoning}}}function IB(e){let t=new Set,n=new Set,r=new Set,i=e=>{typeof e.mainResearchGoal==`string`&&e.mainResearchGoal&&t.add(e.mainResearchGoal),typeof e.researchGoal==`string`&&e.researchGoal&&n.add(e.researchGoal),typeof e.reasoning==`string`&&e.reasoning&&r.add(e.reasoning)};if(e.queries&&Array.isArray(e.queries)&&e.queries.length>0)for(let t of e.queries)i(t);else i(e);return{...t.size>0&&{mainResearchGoal:Array.from(t).join(`; `)},...n.size>0&&{researchGoal:Array.from(n).join(`; `)},...r.size>0&&{reasoning:Array.from(r).join(`; `)}}}function LB(e){let t=[],n=typeof e.repository==`string`?e.repository:void 0;if(n&&n.includes(`/`))t.push(n);else{let n=typeof e.repo==`string`?e.repo:void 0,r=typeof e.owner==`string`?e.owner:void 0;r&&n?t.push(`${r}/${n}`):r&&t.push(r)}return t}function RB(e){let t=new Set;if(e.queries&&Array.isArray(e.queries)&&e.queries.length>0)for(let n of e.queries){let e=n,r=typeof e.repository==`string`?e.repository:void 0;if(r&&r.includes(`/`))t.add(r);else{let n=typeof e.repo==`string`?e.repo:void 0,r=typeof e.owner==`string`?e.owner:void 0;r&&n?t.add(`${r}/${n}`):r&&t.add(r)}}else{let n=typeof e.repository==`string`?e.repository:void 0;if(n&&n.includes(`/`))t.add(n);else{let n=typeof e.repo==`string`?e.repo:void 0,r=typeof e.owner==`string`?e.owner:void 0;r&&n?t.add(`${r}/${n}`):r&&t.add(r)}}return Array.from(t)}const zB=Zt({mainResearchGoal:U().describe(hS.mainResearchGoal),researchGoal:U().describe(hS.researchGoal),reasoning:U().describe(hS.reasoning)}),BB=Zt({researchGoal:U().optional().describe(`Goal of the search`),reasoning:U().optional().describe(`Why this approach helps reach the goal`)});function VB(e,t,n={}){let{maxQueries:r=3,descriptionPrefix:i}=n,a=i??(r===3?hS.bulkQuery(e):`Queries for ${e} (1–${r} per call). Review schema before use.`);return Zt({queries:Xt(t).min(1).max(r).describe(a)})}const HB=zB.extend({keywordsToSearch:Xt(U()).min(1).max(5).describe(CS.search.keywordsToSearch),owner:U().optional().describe(CS.scope.owner),repo:U().optional().describe(CS.scope.repo),extension:U().optional().describe(CS.filters.extension),filename:U().optional().describe(CS.filters.filename),path:U().optional().describe(CS.filters.path),match:nn([`file`,`path`]).optional().describe(CS.filters.match),limit:Jt().int().min(1).max(100).default(10).optional().describe(CS.resultLimit.limit),page:Jt().int().min(1).max(10).default(1).optional().describe(CS.pagination.page)}),UB=VB(J.GITHUB_SEARCH_CODE,HB);function WB(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:`<environment undetectable>`}function GB(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>GB.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function KB(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function qB(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const JB=Function.bind,YB=JB.bind(JB);function XB(e,t,n){let r=YB(qB,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=YB(KB,null).apply(null,i)})}function ZB(){let e=Symbol(`Singular`),t={registry:{}},n=GB.bind(null,t,e);return XB(n,t,e),n}function QB(){let e={registry:{}},t=GB.bind(null,e);return XB(t,e),t}var $B={Singular:ZB,Collection:QB},eV=`octokit-endpoint.js/0.0.0-development ${WB()}`,tV={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":eV},mediaType:{format:``}};function nV(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function rV(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function iV(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{rV(t[r])&&r in e?n[r]=iV(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function aV(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function oV(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=nV(n.headers),aV(n),aV(n.headers);let r=iV(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function sV(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var cV=/\{[^{}}]+\}/g;function lV(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,``).split(/,/)}function uV(e){let t=e.match(cV);return t?t.map(lV).reduce((e,t)=>e.concat(t),[]):[]}function dV(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function fV(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function pV(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function mV(e,t,n){return t=e===`+`||e===`#`?fV(t):pV(t),n?pV(n)+`=`+t:t}function hV(e){return e!=null}function gV(e){return e===`;`||e===`&`||e===`?`}function _V(e,t,n,r){var i=e[n],a=[];if(hV(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(mV(t,i,gV(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(hV).forEach(function(e){a.push(mV(t,e,gV(t)?n:``))}):Object.keys(i).forEach(function(e){hV(i[e])&&a.push(mV(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(hV).forEach(function(n){e.push(mV(t,n))}):Object.keys(i).forEach(function(n){hV(i[n])&&(e.push(pV(n)),e.push(mV(t,i[n].toString())))}),gV(t)?a.push(pV(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?hV(i)&&a.push(pV(n)):i===``&&(t===`&`||t===`?`)?a.push(pV(n)+`=`):i===``&&a.push(``);return a}function vV(e){return{expand:yV.bind(null,e)}}function yV(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(_V(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return fV(i)}),e===`/`?e:e.replace(/\/$/,``)}function bV(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=dV(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=uV(n);n=vV(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=dV(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[]).concat(e.mediaType.previews).map(t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=sV(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function xV(e,t,n){return bV(oV(e,t,n))}function SV(e,t){let n=oV(e,t),r=xV.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:SV.bind(null,n),merge:oV.bind(null,n),parse:bV})}var CV=SV(null,tV),wV=F(((e,t)=>{let n=function(){};n.prototype=Object.create(null);let r=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,i=/\\([\v\u0020-\u00ff])/gu,a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,o={type:``,parameters:new n};Object.freeze(o.parameters),Object.freeze(o);function s(e){if(typeof e!=`string`)throw TypeError(`argument header is required and must be a string`);let t=e.indexOf(`;`),o=t===-1?e.trim():e.slice(0,t).trim();if(a.test(o)===!1)throw TypeError(`invalid media type`);let s={type:o.toLowerCase(),parameters:new n};if(t===-1)return s;let c,l,u;for(r.lastIndex=t;l=r.exec(e);){if(l.index!==t)throw TypeError(`invalid parameter format`);t+=l[0].length,c=l[1].toLowerCase(),u=l[2],u[0]===`"`&&(u=u.slice(1,u.length-1),i.test(u)&&(u=u.replace(i,`$1`))),s.parameters[c]=u}if(t!==e.length)throw TypeError(`invalid parameter format`);return s}function c(e){if(typeof e!=`string`)return o;let t=e.indexOf(`;`),s=t===-1?e.trim():e.slice(0,t).trim();if(a.test(s)===!1)return o;let c={type:s.toLowerCase(),parameters:new n};if(t===-1)return c;let l,u,d;for(r.lastIndex=t;u=r.exec(e);){if(u.index!==t)return o;t+=u[0].length,l=u[1].toLowerCase(),d=u[2],d[0]===`"`&&(d=d.slice(1,d.length-1),i.test(d)&&(d=d.replace(i,`$1`))),c.parameters[l]=d}return t===e.length?c:o}t.exports.default={parse:s,safeParse:c},t.exports.parse=s,t.exports.safeParse=c,t.exports.defaultContentType=o}))(),TV=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/,` [REDACTED]`)})),r.url=r.url.replace(/\bclient_secret=\w+/g,`client_secret=[REDACTED]`).replace(/\baccess_token=\w+/g,`access_token=[REDACTED]`),this.request=r}},EV=`10.0.7`,DV={headers:{"user-agent":`octokit-request.js/${EV} ${WB()}`}};function OV(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var kV=()=>``;async function AV(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw Error(`fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=OV(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new TV(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new TV(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await jV(o),new TV(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await jV(o),new TV(NV(u.data),s,{response:u,request:e});return u.data=r?await jV(o):o.body,u}async function jV(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(kV);let n=(0,wV.safeParse)(t);if(MV(n)){let t=``;try{return t=await e.text(),JSON.parse(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(kV);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function MV(e){return e.type===`application/json`||e.type===`application/scim+json`}function NV(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function PV(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return AV(n.parse(r));let i=(e,t)=>AV(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:PV.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:PV.bind(null,n)})}var FV=PV(CV,DV),IV=`0.0.0-development`;function LV(e){return`Request failed due to following response errors:
`+e.errors.map(e=>` - ${e.message}`).join(`
`)}var RV=class extends Error{constructor(e,t,n){super(LV(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},zV=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],BV=[`query`,`method`,`url`],VV=/\/api\/v3\/?$/;function HV(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(BV.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>zV.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return VV.test(a)&&(i.url=a.replace(VV,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new RV(i,t,e.data)}return e.data.data})}function UV(e,t){let n=e.defaults(t);return Object.assign((e,t)=>HV(n,e,t),{defaults:UV.bind(null,n),endpoint:n.endpoint})}UV(FV,{headers:{"user-agent":`octokit-graphql.js/${IV} ${WB()}`},method:`POST`,url:`/graphql`});function WV(e){return UV(e,{method:`POST`,url:`/graphql`})}var GV=`(?:[a-zA-Z0-9_-]+)`,KV=`\\.`,qV=RegExp(`^${GV}${KV}${GV}${KV}${GV}$`),JV=qV.test.bind(qV);async function YV(e){let t=JV(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function XV(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function ZV(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=XV(e),t(i)}var QV=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(YV.bind(null,e),{hook:ZV.bind(null,e)})};const $V=`7.0.6`,eH=()=>{},tH=console.warn.bind(console),nH=console.error.bind(console);function rH(e={}){return typeof e.debug!=`function`&&(e.debug=eH),typeof e.info!=`function`&&(e.info=eH),typeof e.warn!=`function`&&(e.warn=tH),typeof e.error!=`function`&&(e.error=nH),e}const iH=`octokit-core.js/${$V} ${WB()}`;var aH=class{static VERSION=$V;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new $B.Collection,n={baseUrl:FV.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${iH}`:iH,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=FV.defaults(n),this.graphql=WV(this.request).defaults(n),this.log=rH(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=QV(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t<r.plugins.length;++t)Object.assign(this,r.plugins[t](this,e))}request;graphql;log;hook;auth},oH=`0.0.0-development`;function sH(e){if(!e.data)return{...e,data:[]};if(!((`total_count`in e.data||`total_commits`in e.data)&&!(`url`in e.data)))return e;let t=e.data.incomplete_results,n=e.data.repository_selection,r=e.data.total_count,i=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;let a=Object.keys(e.data)[0];return e.data=e.data[a],t!==void 0&&(e.data.incomplete_results=t),n!==void 0&&(e.data.repository_selection=n),e.data.total_count=r,e.data.total_commits=i,e}function cH(e,t,n){let r=typeof t==`function`?t.endpoint(n):e.request.endpoint(t,n),i=typeof t==`function`?t:e.request,a=r.method,o=r.headers,s=r.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!s)return{done:!0};try{let e=sH(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10)<e.data.total_commits&&(n.set(`page`,String(r+1)),s=t.toString())}return{value:e}}catch(e){if(e.status!==409)throw e;return s=``,{value:{status:200,headers:{},data:[]}}}}})}}function lH(e,t,n,r){return typeof n==`function`&&(r=n,n=void 0),uH(e,[],cH(e,t,n)[Symbol.asyncIterator](),r)}function uH(e,t,n,r){return n.next().then(i=>{if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:uH(e,t,n,r)})}var dH=Object.assign(lH,{iterator:cH});function fH(e){return{paginate:Object.assign(lH.bind(null,e),{iterator:cH.bind(null,e)})}}fH.VERSION=oH;var pH=(e,t)=>`The cursor at "${e.join(`,`)}" did not change its value "${t}" after a page transition. Please make sure your that your query is set up correctly.`,mH=class extends Error{constructor(e,t){super(pH(e.pathInQuery,t)),this.pageInfo=e,this.cursorValue=t,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`MissingCursorChangeError`},hH=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`MissingPageInfo`},gH=e=>Object.prototype.toString.call(e)===`[object Object]`;function _H(e){let t=vH(e,`pageInfo`);if(t.length===0)throw new hH(e);return t}var vH=(e,t,n=[])=>{for(let r of Object.keys(e)){let i=[...n,r],a=e[r];if(gH(a)){if(a.hasOwnProperty(t))return i;let e=vH(a,t,i);if(e.length>0)return e}}return[]},yH=(e,t)=>t.reduce((e,t)=>e[t],e),bH=(e,t,n)=>{let r=t[t.length-1],i=yH(e,[...t].slice(0,-1));typeof n==`function`?i[r]=n(i[r]):i[r]=n},xH=e=>{let t=_H(e);return{pathInQuery:t,pageInfo:yH(e,[...t,`pageInfo`])}},SH=e=>e.hasOwnProperty(`hasNextPage`),CH=e=>SH(e)?e.endCursor:e.startCursor,wH=e=>SH(e)?e.hasNextPage:e.hasPreviousPage,TH=e=>(t,n={})=>{let r=!0,i={...n};return{[Symbol.asyncIterator]:()=>({async next(){if(!r)return{done:!0,value:{}};let n=await e.graphql(t,i),a=xH(n),o=CH(a.pageInfo);if(r=wH(a.pageInfo),r&&o===i.cursor)throw new mH(a,o);return i={...i,cursor:o},{done:!1,value:n}}})}},EH=(e,t)=>{if(Object.keys(e).length===0)return Object.assign(e,t);let n=_H(e),r=[...n,`nodes`],i=yH(t,r);i&&bH(e,r,e=>[...e,...i]);let a=[...n,`edges`],o=yH(t,a);o&&bH(e,a,e=>[...e,...o]);let s=[...n,`pageInfo`];return bH(e,s,yH(t,s)),e},DH=e=>{let t=TH(e);return async(e,n={})=>{let r={};for await(let i of t(e,n))r=EH(r,i);return r}};function OH(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(DH(e),{iterator:TH(e)})})}}const kH=`17.0.0`;var AH={actions:{addCustomLabelsToSelfHostedRunnerForOrg:[`POST /orgs/{org}/actions/runners/{runner_id}/labels`],addCustomLabelsToSelfHostedRunnerForRepo:[`POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],addRepoAccessToSelfHostedRunnerGroupInOrg:[`PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`],addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`],addSelectedRepoToOrgVariable:[`PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`],approveWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve`],cancelWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel`],createEnvironmentVariable:[`POST /repos/{owner}/{repo}/environments/{environment_name}/variables`],createHostedRunnerForOrg:[`POST /orgs/{org}/actions/hosted-runners`],createOrUpdateEnvironmentSecret:[`PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}`],createOrgVariable:[`POST /orgs/{org}/actions/variables`],createRegistrationTokenForOrg:[`POST /orgs/{org}/actions/runners/registration-token`],createRegistrationTokenForRepo:[`POST /repos/{owner}/{repo}/actions/runners/registration-token`],createRemoveTokenForOrg:[`POST /orgs/{org}/actions/runners/remove-token`],createRemoveTokenForRepo:[`POST /repos/{owner}/{repo}/actions/runners/remove-token`],createRepoVariable:[`POST /repos/{owner}/{repo}/actions/variables`],createWorkflowDispatch:[`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`],deleteActionsCacheById:[`DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`],deleteActionsCacheByKey:[`DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}`],deleteArtifact:[`DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`],deleteCustomImageFromOrg:[`DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}`],deleteCustomImageVersionFromOrg:[`DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}`],deleteEnvironmentSecret:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],deleteEnvironmentVariable:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],deleteHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],deleteOrgSecret:[`DELETE /orgs/{org}/actions/secrets/{secret_name}`],deleteOrgVariable:[`DELETE /orgs/{org}/actions/variables/{name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}`],deleteRepoVariable:[`DELETE /repos/{owner}/{repo}/actions/variables/{name}`],deleteSelfHostedRunnerFromOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}`],deleteSelfHostedRunnerFromRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`],deleteWorkflowRun:[`DELETE /repos/{owner}/{repo}/actions/runs/{run_id}`],deleteWorkflowRunLogs:[`DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs`],disableSelectedRepositoryGithubActionsOrganization:[`DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}`],disableWorkflow:[`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable`],downloadArtifact:[`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}`],downloadJobLogsForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs`],downloadWorkflowRunAttemptLogs:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs`],downloadWorkflowRunLogs:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs`],enableSelectedRepositoryGithubActionsOrganization:[`PUT /orgs/{org}/actions/permissions/repositories/{repository_id}`],enableWorkflow:[`PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable`],forceCancelWorkflowRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel`],generateRunnerJitconfigForOrg:[`POST /orgs/{org}/actions/runners/generate-jitconfig`],generateRunnerJitconfigForRepo:[`POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig`],getActionsCacheList:[`GET /repos/{owner}/{repo}/actions/caches`],getActionsCacheUsage:[`GET /repos/{owner}/{repo}/actions/cache/usage`],getActionsCacheUsageByRepoForOrg:[`GET /orgs/{org}/actions/cache/usage-by-repository`],getActionsCacheUsageForOrg:[`GET /orgs/{org}/actions/cache/usage`],getAllowedActionsOrganization:[`GET /orgs/{org}/actions/permissions/selected-actions`],getAllowedActionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions/selected-actions`],getArtifact:[`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`],getCustomImageForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}`],getCustomImageVersionForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}`],getCustomOidcSubClaimForRepo:[`GET /repos/{owner}/{repo}/actions/oidc/customization/sub`],getEnvironmentPublicKey:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key`],getEnvironmentSecret:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}`],getEnvironmentVariable:[`GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],getGithubActionsDefaultWorkflowPermissionsOrganization:[`GET /orgs/{org}/actions/permissions/workflow`],getGithubActionsDefaultWorkflowPermissionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions/workflow`],getGithubActionsPermissionsOrganization:[`GET /orgs/{org}/actions/permissions`],getGithubActionsPermissionsRepository:[`GET /repos/{owner}/{repo}/actions/permissions`],getHostedRunnerForOrg:[`GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],getHostedRunnersGithubOwnedImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/github-owned`],getHostedRunnersLimitsForOrg:[`GET /orgs/{org}/actions/hosted-runners/limits`],getHostedRunnersMachineSpecsForOrg:[`GET /orgs/{org}/actions/hosted-runners/machine-sizes`],getHostedRunnersPartnerImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/partner`],getHostedRunnersPlatformsForOrg:[`GET /orgs/{org}/actions/hosted-runners/platforms`],getJobForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/jobs/{job_id}`],getOrgPublicKey:[`GET /orgs/{org}/actions/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/actions/secrets/{secret_name}`],getOrgVariable:[`GET /orgs/{org}/actions/variables/{name}`],getPendingDeploymentsForRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`],getRepoPermissions:[`GET /repos/{owner}/{repo}/actions/permissions`,{},{renamed:[`actions`,`getGithubActionsPermissionsRepository`]}],getRepoPublicKey:[`GET /repos/{owner}/{repo}/actions/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/actions/secrets/{secret_name}`],getRepoVariable:[`GET /repos/{owner}/{repo}/actions/variables/{name}`],getReviewsForRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals`],getSelfHostedRunnerForOrg:[`GET /orgs/{org}/actions/runners/{runner_id}`],getSelfHostedRunnerForRepo:[`GET /repos/{owner}/{repo}/actions/runners/{runner_id}`],getWorkflow:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}`],getWorkflowAccessToRepository:[`GET /repos/{owner}/{repo}/actions/permissions/access`],getWorkflowRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}`],getWorkflowRunAttempt:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}`],getWorkflowRunUsage:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing`],getWorkflowUsage:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing`],listArtifactsForRepo:[`GET /repos/{owner}/{repo}/actions/artifacts`],listCustomImageVersionsForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions`],listCustomImagesForOrg:[`GET /orgs/{org}/actions/hosted-runners/images/custom`],listEnvironmentSecrets:[`GET /repos/{owner}/{repo}/environments/{environment_name}/secrets`],listEnvironmentVariables:[`GET /repos/{owner}/{repo}/environments/{environment_name}/variables`],listGithubHostedRunnersInGroupForOrg:[`GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners`],listHostedRunnersForOrg:[`GET /orgs/{org}/actions/hosted-runners`],listJobsForWorkflowRun:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs`],listJobsForWorkflowRunAttempt:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs`],listLabelsForSelfHostedRunnerForOrg:[`GET /orgs/{org}/actions/runners/{runner_id}/labels`],listLabelsForSelfHostedRunnerForRepo:[`GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],listOrgSecrets:[`GET /orgs/{org}/actions/secrets`],listOrgVariables:[`GET /orgs/{org}/actions/variables`],listRepoOrganizationSecrets:[`GET /repos/{owner}/{repo}/actions/organization-secrets`],listRepoOrganizationVariables:[`GET /repos/{owner}/{repo}/actions/organization-variables`],listRepoSecrets:[`GET /repos/{owner}/{repo}/actions/secrets`],listRepoVariables:[`GET /repos/{owner}/{repo}/actions/variables`],listRepoWorkflows:[`GET /repos/{owner}/{repo}/actions/workflows`],listRunnerApplicationsForOrg:[`GET /orgs/{org}/actions/runners/downloads`],listRunnerApplicationsForRepo:[`GET /repos/{owner}/{repo}/actions/runners/downloads`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/actions/secrets/{secret_name}/repositories`],listSelectedReposForOrgVariable:[`GET /orgs/{org}/actions/variables/{name}/repositories`],listSelectedRepositoriesEnabledGithubActionsOrganization:[`GET /orgs/{org}/actions/permissions/repositories`],listSelfHostedRunnersForOrg:[`GET /orgs/{org}/actions/runners`],listSelfHostedRunnersForRepo:[`GET /repos/{owner}/{repo}/actions/runners`],listWorkflowRunArtifacts:[`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`],listWorkflowRuns:[`GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs`],listWorkflowRunsForRepo:[`GET /repos/{owner}/{repo}/actions/runs`],reRunJobForWorkflowRun:[`POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun`],reRunWorkflow:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun`],reRunWorkflowFailedJobs:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`],removeAllCustomLabelsFromSelfHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}/labels`],removeAllCustomLabelsFromSelfHostedRunnerForRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],removeCustomLabelFromSelfHostedRunnerForOrg:[`DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}`],removeCustomLabelFromSelfHostedRunnerForRepo:[`DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}`],removeSelectedRepoFromOrgVariable:[`DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}`],reviewCustomGatesForRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule`],reviewPendingDeploymentsForRun:[`POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`],setAllowedActionsOrganization:[`PUT /orgs/{org}/actions/permissions/selected-actions`],setAllowedActionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/selected-actions`],setCustomLabelsForSelfHostedRunnerForOrg:[`PUT /orgs/{org}/actions/runners/{runner_id}/labels`],setCustomLabelsForSelfHostedRunnerForRepo:[`PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels`],setCustomOidcSubClaimForRepo:[`PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`],setGithubActionsDefaultWorkflowPermissionsOrganization:[`PUT /orgs/{org}/actions/permissions/workflow`],setGithubActionsDefaultWorkflowPermissionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/workflow`],setGithubActionsPermissionsOrganization:[`PUT /orgs/{org}/actions/permissions`],setGithubActionsPermissionsRepository:[`PUT /repos/{owner}/{repo}/actions/permissions`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/actions/secrets/{secret_name}/repositories`],setSelectedReposForOrgVariable:[`PUT /orgs/{org}/actions/variables/{name}/repositories`],setSelectedRepositoriesEnabledGithubActionsOrganization:[`PUT /orgs/{org}/actions/permissions/repositories`],setWorkflowAccessToRepository:[`PUT /repos/{owner}/{repo}/actions/permissions/access`],updateEnvironmentVariable:[`PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}`],updateHostedRunnerForOrg:[`PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}`],updateOrgVariable:[`PATCH /orgs/{org}/actions/variables/{name}`],updateRepoVariable:[`PATCH /repos/{owner}/{repo}/actions/variables/{name}`]},activity:{checkRepoIsStarredByAuthenticatedUser:[`GET /user/starred/{owner}/{repo}`],deleteRepoSubscription:[`DELETE /repos/{owner}/{repo}/subscription`],deleteThreadSubscription:[`DELETE /notifications/threads/{thread_id}/subscription`],getFeeds:[`GET /feeds`],getRepoSubscription:[`GET /repos/{owner}/{repo}/subscription`],getThread:[`GET /notifications/threads/{thread_id}`],getThreadSubscriptionForAuthenticatedUser:[`GET /notifications/threads/{thread_id}/subscription`],listEventsForAuthenticatedUser:[`GET /users/{username}/events`],listNotificationsForAuthenticatedUser:[`GET /notifications`],listOrgEventsForAuthenticatedUser:[`GET /users/{username}/events/orgs/{org}`],listPublicEvents:[`GET /events`],listPublicEventsForRepoNetwork:[`GET /networks/{owner}/{repo}/events`],listPublicEventsForUser:[`GET /users/{username}/events/public`],listPublicOrgEvents:[`GET /orgs/{org}/events`],listReceivedEventsForUser:[`GET /users/{username}/received_events`],listReceivedPublicEventsForUser:[`GET /users/{username}/received_events/public`],listRepoEvents:[`GET /repos/{owner}/{repo}/events`],listRepoNotificationsForAuthenticatedUser:[`GET /repos/{owner}/{repo}/notifications`],listReposStarredByAuthenticatedUser:[`GET /user/starred`],listReposStarredByUser:[`GET /users/{username}/starred`],listReposWatchedByUser:[`GET /users/{username}/subscriptions`],listStargazersForRepo:[`GET /repos/{owner}/{repo}/stargazers`],listWatchedReposForAuthenticatedUser:[`GET /user/subscriptions`],listWatchersForRepo:[`GET /repos/{owner}/{repo}/subscribers`],markNotificationsAsRead:[`PUT /notifications`],markRepoNotificationsAsRead:[`PUT /repos/{owner}/{repo}/notifications`],markThreadAsDone:[`DELETE /notifications/threads/{thread_id}`],markThreadAsRead:[`PATCH /notifications/threads/{thread_id}`],setRepoSubscription:[`PUT /repos/{owner}/{repo}/subscription`],setThreadSubscription:[`PUT /notifications/threads/{thread_id}/subscription`],starRepoForAuthenticatedUser:[`PUT /user/starred/{owner}/{repo}`],unstarRepoForAuthenticatedUser:[`DELETE /user/starred/{owner}/{repo}`]},apps:{addRepoToInstallation:[`PUT /user/installations/{installation_id}/repositories/{repository_id}`,{},{renamed:[`apps`,`addRepoToInstallationForAuthenticatedUser`]}],addRepoToInstallationForAuthenticatedUser:[`PUT /user/installations/{installation_id}/repositories/{repository_id}`],checkToken:[`POST /applications/{client_id}/token`],createFromManifest:[`POST /app-manifests/{code}/conversions`],createInstallationAccessToken:[`POST /app/installations/{installation_id}/access_tokens`],deleteAuthorization:[`DELETE /applications/{client_id}/grant`],deleteInstallation:[`DELETE /app/installations/{installation_id}`],deleteToken:[`DELETE /applications/{client_id}/token`],getAuthenticated:[`GET /app`],getBySlug:[`GET /apps/{app_slug}`],getInstallation:[`GET /app/installations/{installation_id}`],getOrgInstallation:[`GET /orgs/{org}/installation`],getRepoInstallation:[`GET /repos/{owner}/{repo}/installation`],getSubscriptionPlanForAccount:[`GET /marketplace_listing/accounts/{account_id}`],getSubscriptionPlanForAccountStubbed:[`GET /marketplace_listing/stubbed/accounts/{account_id}`],getUserInstallation:[`GET /users/{username}/installation`],getWebhookConfigForApp:[`GET /app/hook/config`],getWebhookDelivery:[`GET /app/hook/deliveries/{delivery_id}`],listAccountsForPlan:[`GET /marketplace_listing/plans/{plan_id}/accounts`],listAccountsForPlanStubbed:[`GET /marketplace_listing/stubbed/plans/{plan_id}/accounts`],listInstallationReposForAuthenticatedUser:[`GET /user/installations/{installation_id}/repositories`],listInstallationRequestsForAuthenticatedApp:[`GET /app/installation-requests`],listInstallations:[`GET /app/installations`],listInstallationsForAuthenticatedUser:[`GET /user/installations`],listPlans:[`GET /marketplace_listing/plans`],listPlansStubbed:[`GET /marketplace_listing/stubbed/plans`],listReposAccessibleToInstallation:[`GET /installation/repositories`],listSubscriptionsForAuthenticatedUser:[`GET /user/marketplace_purchases`],listSubscriptionsForAuthenticatedUserStubbed:[`GET /user/marketplace_purchases/stubbed`],listWebhookDeliveries:[`GET /app/hook/deliveries`],redeliverWebhookDelivery:[`POST /app/hook/deliveries/{delivery_id}/attempts`],removeRepoFromInstallation:[`DELETE /user/installations/{installation_id}/repositories/{repository_id}`,{},{renamed:[`apps`,`removeRepoFromInstallationForAuthenticatedUser`]}],removeRepoFromInstallationForAuthenticatedUser:[`DELETE /user/installations/{installation_id}/repositories/{repository_id}`],resetToken:[`PATCH /applications/{client_id}/token`],revokeInstallationAccessToken:[`DELETE /installation/token`],scopeToken:[`POST /applications/{client_id}/token/scoped`],suspendInstallation:[`PUT /app/installations/{installation_id}/suspended`],unsuspendInstallation:[`DELETE /app/installations/{installation_id}/suspended`],updateWebhookConfigForApp:[`PATCH /app/hook/config`]},billing:{getGithubActionsBillingOrg:[`GET /orgs/{org}/settings/billing/actions`],getGithubActionsBillingUser:[`GET /users/{username}/settings/billing/actions`],getGithubBillingPremiumRequestUsageReportOrg:[`GET /organizations/{org}/settings/billing/premium_request/usage`],getGithubBillingPremiumRequestUsageReportUser:[`GET /users/{username}/settings/billing/premium_request/usage`],getGithubBillingUsageReportOrg:[`GET /organizations/{org}/settings/billing/usage`],getGithubBillingUsageReportUser:[`GET /users/{username}/settings/billing/usage`],getGithubPackagesBillingOrg:[`GET /orgs/{org}/settings/billing/packages`],getGithubPackagesBillingUser:[`GET /users/{username}/settings/billing/packages`],getSharedStorageBillingOrg:[`GET /orgs/{org}/settings/billing/shared-storage`],getSharedStorageBillingUser:[`GET /users/{username}/settings/billing/shared-storage`]},campaigns:{createCampaign:[`POST /orgs/{org}/campaigns`],deleteCampaign:[`DELETE /orgs/{org}/campaigns/{campaign_number}`],getCampaignSummary:[`GET /orgs/{org}/campaigns/{campaign_number}`],listOrgCampaigns:[`GET /orgs/{org}/campaigns`],updateCampaign:[`PATCH /orgs/{org}/campaigns/{campaign_number}`]},checks:{create:[`POST /repos/{owner}/{repo}/check-runs`],createSuite:[`POST /repos/{owner}/{repo}/check-suites`],get:[`GET /repos/{owner}/{repo}/check-runs/{check_run_id}`],getSuite:[`GET /repos/{owner}/{repo}/check-suites/{check_suite_id}`],listAnnotations:[`GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations`],listForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/check-runs`],listForSuite:[`GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs`],listSuitesForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/check-suites`],rerequestRun:[`POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`],rerequestSuite:[`POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`],setSuitesPreferences:[`PATCH /repos/{owner}/{repo}/check-suites/preferences`],update:[`PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}`]},codeScanning:{commitAutofix:[`POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits`],createAutofix:[`POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`],createVariantAnalysis:[`POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses`],deleteAnalysis:[`DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}`],deleteCodeqlDatabase:[`DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`],getAlert:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`,{},{renamedParameters:{alert_id:`alert_number`}}],getAnalysis:[`GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}`],getAutofix:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix`],getCodeqlDatabase:[`GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}`],getDefaultSetup:[`GET /repos/{owner}/{repo}/code-scanning/default-setup`],getSarif:[`GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`],getVariantAnalysis:[`GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}`],getVariantAnalysisRepoTask:[`GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}`],listAlertInstances:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`],listAlertsForOrg:[`GET /orgs/{org}/code-scanning/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/code-scanning/alerts`],listAlertsInstances:[`GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances`,{},{renamed:[`codeScanning`,`listAlertInstances`]}],listCodeqlDatabases:[`GET /repos/{owner}/{repo}/code-scanning/codeql/databases`],listRecentAnalyses:[`GET /repos/{owner}/{repo}/code-scanning/analyses`],updateAlert:[`PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}`],updateDefaultSetup:[`PATCH /repos/{owner}/{repo}/code-scanning/default-setup`],uploadSarif:[`POST /repos/{owner}/{repo}/code-scanning/sarifs`]},codeSecurity:{attachConfiguration:[`POST /orgs/{org}/code-security/configurations/{configuration_id}/attach`],attachEnterpriseConfiguration:[`POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach`],createConfiguration:[`POST /orgs/{org}/code-security/configurations`],createConfigurationForEnterprise:[`POST /enterprises/{enterprise}/code-security/configurations`],deleteConfiguration:[`DELETE /orgs/{org}/code-security/configurations/{configuration_id}`],deleteConfigurationForEnterprise:[`DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}`],detachConfiguration:[`DELETE /orgs/{org}/code-security/configurations/detach`],getConfiguration:[`GET /orgs/{org}/code-security/configurations/{configuration_id}`],getConfigurationForRepository:[`GET /repos/{owner}/{repo}/code-security-configuration`],getConfigurationsForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations`],getConfigurationsForOrg:[`GET /orgs/{org}/code-security/configurations`],getDefaultConfigurations:[`GET /orgs/{org}/code-security/configurations/defaults`],getDefaultConfigurationsForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations/defaults`],getRepositoriesForConfiguration:[`GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories`],getRepositoriesForEnterpriseConfiguration:[`GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories`],getSingleConfigurationForEnterprise:[`GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}`],setConfigurationAsDefault:[`PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults`],setConfigurationAsDefaultForEnterprise:[`PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults`],updateConfiguration:[`PATCH /orgs/{org}/code-security/configurations/{configuration_id}`],updateEnterpriseConfiguration:[`PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}`]},codesOfConduct:{getAllCodesOfConduct:[`GET /codes_of_conduct`],getConductCode:[`GET /codes_of_conduct/{key}`]},codespaces:{addRepositoryForSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`],addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`],checkPermissionsForDevcontainer:[`GET /repos/{owner}/{repo}/codespaces/permissions_check`],codespaceMachinesForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}/machines`],createForAuthenticatedUser:[`POST /user/codespaces`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],createOrUpdateSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}`],createWithPrForAuthenticatedUser:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces`],createWithRepoForAuthenticatedUser:[`POST /repos/{owner}/{repo}/codespaces`],deleteForAuthenticatedUser:[`DELETE /user/codespaces/{codespace_name}`],deleteFromOrganization:[`DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`],deleteOrgSecret:[`DELETE /orgs/{org}/codespaces/secrets/{secret_name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],deleteSecretForAuthenticatedUser:[`DELETE /user/codespaces/secrets/{secret_name}`],exportForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/exports`],getCodespacesForUserInOrg:[`GET /orgs/{org}/members/{username}/codespaces`],getExportDetailsForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}/exports/{export_id}`],getForAuthenticatedUser:[`GET /user/codespaces/{codespace_name}`],getOrgPublicKey:[`GET /orgs/{org}/codespaces/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/codespaces/secrets/{secret_name}`],getPublicKeyForAuthenticatedUser:[`GET /user/codespaces/secrets/public-key`],getRepoPublicKey:[`GET /repos/{owner}/{repo}/codespaces/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}`],getSecretForAuthenticatedUser:[`GET /user/codespaces/secrets/{secret_name}`],listDevcontainersInRepositoryForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/devcontainers`],listForAuthenticatedUser:[`GET /user/codespaces`],listInOrganization:[`GET /orgs/{org}/codespaces`,{},{renamedParameters:{org_id:`org`}}],listInRepositoryForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces`],listOrgSecrets:[`GET /orgs/{org}/codespaces/secrets`],listRepoSecrets:[`GET /repos/{owner}/{repo}/codespaces/secrets`],listRepositoriesForSecretForAuthenticatedUser:[`GET /user/codespaces/secrets/{secret_name}/repositories`],listSecretsForAuthenticatedUser:[`GET /user/codespaces/secrets`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories`],preFlightWithRepoForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/new`],publishForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/publish`],removeRepositoryForSecretForAuthenticatedUser:[`DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}`],repoMachinesForAuthenticatedUser:[`GET /repos/{owner}/{repo}/codespaces/machines`],setRepositoriesForSecretForAuthenticatedUser:[`PUT /user/codespaces/secrets/{secret_name}/repositories`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories`],startForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/start`],stopForAuthenticatedUser:[`POST /user/codespaces/{codespace_name}/stop`],stopInOrganization:[`POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`],updateForAuthenticatedUser:[`PATCH /user/codespaces/{codespace_name}`]},copilot:{addCopilotSeatsForTeams:[`POST /orgs/{org}/copilot/billing/selected_teams`],addCopilotSeatsForUsers:[`POST /orgs/{org}/copilot/billing/selected_users`],cancelCopilotSeatAssignmentForTeams:[`DELETE /orgs/{org}/copilot/billing/selected_teams`],cancelCopilotSeatAssignmentForUsers:[`DELETE /orgs/{org}/copilot/billing/selected_users`],copilotMetricsForOrganization:[`GET /orgs/{org}/copilot/metrics`],copilotMetricsForTeam:[`GET /orgs/{org}/team/{team_slug}/copilot/metrics`],getCopilotOrganizationDetails:[`GET /orgs/{org}/copilot/billing`],getCopilotSeatDetailsForUser:[`GET /orgs/{org}/members/{username}/copilot`],listCopilotSeats:[`GET /orgs/{org}/copilot/billing/seats`]},credentials:{revoke:[`POST /credentials/revoke`]},dependabot:{addSelectedRepoToOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`],createOrUpdateOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}`],createOrUpdateRepoSecret:[`PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],deleteOrgSecret:[`DELETE /orgs/{org}/dependabot/secrets/{secret_name}`],deleteRepoSecret:[`DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],getAlert:[`GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`],getOrgPublicKey:[`GET /orgs/{org}/dependabot/secrets/public-key`],getOrgSecret:[`GET /orgs/{org}/dependabot/secrets/{secret_name}`],getRepoPublicKey:[`GET /repos/{owner}/{repo}/dependabot/secrets/public-key`],getRepoSecret:[`GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}`],listAlertsForEnterprise:[`GET /enterprises/{enterprise}/dependabot/alerts`],listAlertsForOrg:[`GET /orgs/{org}/dependabot/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/dependabot/alerts`],listOrgSecrets:[`GET /orgs/{org}/dependabot/secrets`],listRepoSecrets:[`GET /repos/{owner}/{repo}/dependabot/secrets`],listSelectedReposForOrgSecret:[`GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories`],removeSelectedRepoFromOrgSecret:[`DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}`],repositoryAccessForOrg:[`GET /organizations/{org}/dependabot/repository-access`],setRepositoryAccessDefaultLevel:[`PUT /organizations/{org}/dependabot/repository-access/default-level`],setSelectedReposForOrgSecret:[`PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories`],updateAlert:[`PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}`],updateRepositoryAccessForOrg:[`PATCH /organizations/{org}/dependabot/repository-access`]},dependencyGraph:{createRepositorySnapshot:[`POST /repos/{owner}/{repo}/dependency-graph/snapshots`],diffRange:[`GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}`],exportSbom:[`GET /repos/{owner}/{repo}/dependency-graph/sbom`]},emojis:{get:[`GET /emojis`]},enterpriseTeamMemberships:{add:[`PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`],bulkAdd:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add`],bulkRemove:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove`],get:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`],list:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships`],remove:[`DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}`]},enterpriseTeamOrganizations:{add:[`PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],bulkAdd:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add`],bulkRemove:[`POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove`],delete:[`DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],getAssignment:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}`],getAssignments:[`GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations`]},enterpriseTeams:{create:[`POST /enterprises/{enterprise}/teams`],delete:[`DELETE /enterprises/{enterprise}/teams/{team_slug}`],get:[`GET /enterprises/{enterprise}/teams/{team_slug}`],list:[`GET /enterprises/{enterprise}/teams`],update:[`PATCH /enterprises/{enterprise}/teams/{team_slug}`]},gists:{checkIsStarred:[`GET /gists/{gist_id}/star`],create:[`POST /gists`],createComment:[`POST /gists/{gist_id}/comments`],delete:[`DELETE /gists/{gist_id}`],deleteComment:[`DELETE /gists/{gist_id}/comments/{comment_id}`],fork:[`POST /gists/{gist_id}/forks`],get:[`GET /gists/{gist_id}`],getComment:[`GET /gists/{gist_id}/comments/{comment_id}`],getRevision:[`GET /gists/{gist_id}/{sha}`],list:[`GET /gists`],listComments:[`GET /gists/{gist_id}/comments`],listCommits:[`GET /gists/{gist_id}/commits`],listForUser:[`GET /users/{username}/gists`],listForks:[`GET /gists/{gist_id}/forks`],listPublic:[`GET /gists/public`],listStarred:[`GET /gists/starred`],star:[`PUT /gists/{gist_id}/star`],unstar:[`DELETE /gists/{gist_id}/star`],update:[`PATCH /gists/{gist_id}`],updateComment:[`PATCH /gists/{gist_id}/comments/{comment_id}`]},git:{createBlob:[`POST /repos/{owner}/{repo}/git/blobs`],createCommit:[`POST /repos/{owner}/{repo}/git/commits`],createRef:[`POST /repos/{owner}/{repo}/git/refs`],createTag:[`POST /repos/{owner}/{repo}/git/tags`],createTree:[`POST /repos/{owner}/{repo}/git/trees`],deleteRef:[`DELETE /repos/{owner}/{repo}/git/refs/{ref}`],getBlob:[`GET /repos/{owner}/{repo}/git/blobs/{file_sha}`],getCommit:[`GET /repos/{owner}/{repo}/git/commits/{commit_sha}`],getRef:[`GET /repos/{owner}/{repo}/git/ref/{ref}`],getTag:[`GET /repos/{owner}/{repo}/git/tags/{tag_sha}`],getTree:[`GET /repos/{owner}/{repo}/git/trees/{tree_sha}`],listMatchingRefs:[`GET /repos/{owner}/{repo}/git/matching-refs/{ref}`],updateRef:[`PATCH /repos/{owner}/{repo}/git/refs/{ref}`]},gitignore:{getAllTemplates:[`GET /gitignore/templates`],getTemplate:[`GET /gitignore/templates/{name}`]},hostedCompute:{createNetworkConfigurationForOrg:[`POST /orgs/{org}/settings/network-configurations`],deleteNetworkConfigurationFromOrg:[`DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}`],getNetworkConfigurationForOrg:[`GET /orgs/{org}/settings/network-configurations/{network_configuration_id}`],getNetworkSettingsForOrg:[`GET /orgs/{org}/settings/network-settings/{network_settings_id}`],listNetworkConfigurationsForOrg:[`GET /orgs/{org}/settings/network-configurations`],updateNetworkConfigurationForOrg:[`PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}`]},interactions:{getRestrictionsForAuthenticatedUser:[`GET /user/interaction-limits`],getRestrictionsForOrg:[`GET /orgs/{org}/interaction-limits`],getRestrictionsForRepo:[`GET /repos/{owner}/{repo}/interaction-limits`],getRestrictionsForYourPublicRepos:[`GET /user/interaction-limits`,{},{renamed:[`interactions`,`getRestrictionsForAuthenticatedUser`]}],removeRestrictionsForAuthenticatedUser:[`DELETE /user/interaction-limits`],removeRestrictionsForOrg:[`DELETE /orgs/{org}/interaction-limits`],removeRestrictionsForRepo:[`DELETE /repos/{owner}/{repo}/interaction-limits`],removeRestrictionsForYourPublicRepos:[`DELETE /user/interaction-limits`,{},{renamed:[`interactions`,`removeRestrictionsForAuthenticatedUser`]}],setRestrictionsForAuthenticatedUser:[`PUT /user/interaction-limits`],setRestrictionsForOrg:[`PUT /orgs/{org}/interaction-limits`],setRestrictionsForRepo:[`PUT /repos/{owner}/{repo}/interaction-limits`],setRestrictionsForYourPublicRepos:[`PUT /user/interaction-limits`,{},{renamed:[`interactions`,`setRestrictionsForAuthenticatedUser`]}]},issues:{addAssignees:[`POST /repos/{owner}/{repo}/issues/{issue_number}/assignees`],addBlockedByDependency:[`POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by`],addLabels:[`POST /repos/{owner}/{repo}/issues/{issue_number}/labels`],addSubIssue:[`POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`],checkUserCanBeAssigned:[`GET /repos/{owner}/{repo}/assignees/{assignee}`],checkUserCanBeAssignedToIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}`],create:[`POST /repos/{owner}/{repo}/issues`],createComment:[`POST /repos/{owner}/{repo}/issues/{issue_number}/comments`],createLabel:[`POST /repos/{owner}/{repo}/labels`],createMilestone:[`POST /repos/{owner}/{repo}/milestones`],deleteComment:[`DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}`],deleteLabel:[`DELETE /repos/{owner}/{repo}/labels/{name}`],deleteMilestone:[`DELETE /repos/{owner}/{repo}/milestones/{milestone_number}`],get:[`GET /repos/{owner}/{repo}/issues/{issue_number}`],getComment:[`GET /repos/{owner}/{repo}/issues/comments/{comment_id}`],getEvent:[`GET /repos/{owner}/{repo}/issues/events/{event_id}`],getLabel:[`GET /repos/{owner}/{repo}/labels/{name}`],getMilestone:[`GET /repos/{owner}/{repo}/milestones/{milestone_number}`],getParent:[`GET /repos/{owner}/{repo}/issues/{issue_number}/parent`],list:[`GET /issues`],listAssignees:[`GET /repos/{owner}/{repo}/assignees`],listComments:[`GET /repos/{owner}/{repo}/issues/{issue_number}/comments`],listCommentsForRepo:[`GET /repos/{owner}/{repo}/issues/comments`],listDependenciesBlockedBy:[`GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by`],listDependenciesBlocking:[`GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking`],listEvents:[`GET /repos/{owner}/{repo}/issues/{issue_number}/events`],listEventsForRepo:[`GET /repos/{owner}/{repo}/issues/events`],listEventsForTimeline:[`GET /repos/{owner}/{repo}/issues/{issue_number}/timeline`],listForAuthenticatedUser:[`GET /user/issues`],listForOrg:[`GET /orgs/{org}/issues`],listForRepo:[`GET /repos/{owner}/{repo}/issues`],listLabelsForMilestone:[`GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels`],listLabelsForRepo:[`GET /repos/{owner}/{repo}/labels`],listLabelsOnIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/labels`],listMilestones:[`GET /repos/{owner}/{repo}/milestones`],listSubIssues:[`GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues`],lock:[`PUT /repos/{owner}/{repo}/issues/{issue_number}/lock`],removeAllLabels:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels`],removeAssignees:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees`],removeDependencyBlockedBy:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}`],removeLabel:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}`],removeSubIssue:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue`],reprioritizeSubIssue:[`PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`],setLabels:[`PUT /repos/{owner}/{repo}/issues/{issue_number}/labels`],unlock:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock`],update:[`PATCH /repos/{owner}/{repo}/issues/{issue_number}`],updateComment:[`PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}`],updateLabel:[`PATCH /repos/{owner}/{repo}/labels/{name}`],updateMilestone:[`PATCH /repos/{owner}/{repo}/milestones/{milestone_number}`]},licenses:{get:[`GET /licenses/{license}`],getAllCommonlyUsed:[`GET /licenses`],getForRepo:[`GET /repos/{owner}/{repo}/license`]},markdown:{render:[`POST /markdown`],renderRaw:[`POST /markdown/raw`,{headers:{"content-type":`text/plain; charset=utf-8`}}]},meta:{get:[`GET /meta`],getAllVersions:[`GET /versions`],getOctocat:[`GET /octocat`],getZen:[`GET /zen`],root:[`GET /`]},migrations:{deleteArchiveForAuthenticatedUser:[`DELETE /user/migrations/{migration_id}/archive`],deleteArchiveForOrg:[`DELETE /orgs/{org}/migrations/{migration_id}/archive`],downloadArchiveForOrg:[`GET /orgs/{org}/migrations/{migration_id}/archive`],getArchiveForAuthenticatedUser:[`GET /user/migrations/{migration_id}/archive`],getStatusForAuthenticatedUser:[`GET /user/migrations/{migration_id}`],getStatusForOrg:[`GET /orgs/{org}/migrations/{migration_id}`],listForAuthenticatedUser:[`GET /user/migrations`],listForOrg:[`GET /orgs/{org}/migrations`],listReposForAuthenticatedUser:[`GET /user/migrations/{migration_id}/repositories`],listReposForOrg:[`GET /orgs/{org}/migrations/{migration_id}/repositories`],listReposForUser:[`GET /user/migrations/{migration_id}/repositories`,{},{renamed:[`migrations`,`listReposForAuthenticatedUser`]}],startForAuthenticatedUser:[`POST /user/migrations`],startForOrg:[`POST /orgs/{org}/migrations`],unlockRepoForAuthenticatedUser:[`DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock`],unlockRepoForOrg:[`DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock`]},oidc:{getOidcCustomSubTemplateForOrg:[`GET /orgs/{org}/actions/oidc/customization/sub`],updateOidcCustomSubTemplateForOrg:[`PUT /orgs/{org}/actions/oidc/customization/sub`]},orgs:{addSecurityManagerTeam:[`PUT /orgs/{org}/security-managers/teams/{team_slug}`,{},{deprecated:`octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team`}],assignTeamToOrgRole:[`PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`],assignUserToOrgRole:[`PUT /orgs/{org}/organization-roles/users/{username}/{role_id}`],blockUser:[`PUT /orgs/{org}/blocks/{username}`],cancelInvitation:[`DELETE /orgs/{org}/invitations/{invitation_id}`],checkBlockedUser:[`GET /orgs/{org}/blocks/{username}`],checkMembershipForUser:[`GET /orgs/{org}/members/{username}`],checkPublicMembershipForUser:[`GET /orgs/{org}/public_members/{username}`],convertMemberToOutsideCollaborator:[`PUT /orgs/{org}/outside_collaborators/{username}`],createArtifactStorageRecord:[`POST /orgs/{org}/artifacts/metadata/storage-record`],createInvitation:[`POST /orgs/{org}/invitations`],createIssueType:[`POST /orgs/{org}/issue-types`],createWebhook:[`POST /orgs/{org}/hooks`],customPropertiesForOrgsCreateOrUpdateOrganizationValues:[`PATCH /organizations/{org}/org-properties/values`],customPropertiesForOrgsGetOrganizationValues:[`GET /organizations/{org}/org-properties/values`],customPropertiesForReposCreateOrUpdateOrganizationDefinition:[`PUT /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:[`PATCH /orgs/{org}/properties/schema`],customPropertiesForReposCreateOrUpdateOrganizationValues:[`PATCH /orgs/{org}/properties/values`],customPropertiesForReposDeleteOrganizationDefinition:[`DELETE /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposGetOrganizationDefinition:[`GET /orgs/{org}/properties/schema/{custom_property_name}`],customPropertiesForReposGetOrganizationDefinitions:[`GET /orgs/{org}/properties/schema`],customPropertiesForReposGetOrganizationValues:[`GET /orgs/{org}/properties/values`],delete:[`DELETE /orgs/{org}`],deleteAttestationsBulk:[`POST /orgs/{org}/attestations/delete-request`],deleteAttestationsById:[`DELETE /orgs/{org}/attestations/{attestation_id}`],deleteAttestationsBySubjectDigest:[`DELETE /orgs/{org}/attestations/digest/{subject_digest}`],deleteIssueType:[`DELETE /orgs/{org}/issue-types/{issue_type_id}`],deleteWebhook:[`DELETE /orgs/{org}/hooks/{hook_id}`],disableSelectedRepositoryImmutableReleasesOrganization:[`DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}`],enableSelectedRepositoryImmutableReleasesOrganization:[`PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}`],get:[`GET /orgs/{org}`],getImmutableReleasesSettings:[`GET /orgs/{org}/settings/immutable-releases`],getImmutableReleasesSettingsRepositories:[`GET /orgs/{org}/settings/immutable-releases/repositories`],getMembershipForAuthenticatedUser:[`GET /user/memberships/orgs/{org}`],getMembershipForUser:[`GET /orgs/{org}/memberships/{username}`],getOrgRole:[`GET /orgs/{org}/organization-roles/{role_id}`],getOrgRulesetHistory:[`GET /orgs/{org}/rulesets/{ruleset_id}/history`],getOrgRulesetVersion:[`GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}`],getWebhook:[`GET /orgs/{org}/hooks/{hook_id}`],getWebhookConfigForOrg:[`GET /orgs/{org}/hooks/{hook_id}/config`],getWebhookDelivery:[`GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}`],list:[`GET /organizations`],listAppInstallations:[`GET /orgs/{org}/installations`],listArtifactStorageRecords:[`GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records`],listAttestationRepositories:[`GET /orgs/{org}/attestations/repositories`],listAttestations:[`GET /orgs/{org}/attestations/{subject_digest}`],listAttestationsBulk:[`POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}`],listBlockedUsers:[`GET /orgs/{org}/blocks`],listFailedInvitations:[`GET /orgs/{org}/failed_invitations`],listForAuthenticatedUser:[`GET /user/orgs`],listForUser:[`GET /users/{username}/orgs`],listInvitationTeams:[`GET /orgs/{org}/invitations/{invitation_id}/teams`],listIssueTypes:[`GET /orgs/{org}/issue-types`],listMembers:[`GET /orgs/{org}/members`],listMembershipsForAuthenticatedUser:[`GET /user/memberships/orgs`],listOrgRoleTeams:[`GET /orgs/{org}/organization-roles/{role_id}/teams`],listOrgRoleUsers:[`GET /orgs/{org}/organization-roles/{role_id}/users`],listOrgRoles:[`GET /orgs/{org}/organization-roles`],listOrganizationFineGrainedPermissions:[`GET /orgs/{org}/organization-fine-grained-permissions`],listOutsideCollaborators:[`GET /orgs/{org}/outside_collaborators`],listPatGrantRepositories:[`GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories`],listPatGrantRequestRepositories:[`GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories`],listPatGrantRequests:[`GET /orgs/{org}/personal-access-token-requests`],listPatGrants:[`GET /orgs/{org}/personal-access-tokens`],listPendingInvitations:[`GET /orgs/{org}/invitations`],listPublicMembers:[`GET /orgs/{org}/public_members`],listSecurityManagerTeams:[`GET /orgs/{org}/security-managers`,{},{deprecated:`octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams`}],listWebhookDeliveries:[`GET /orgs/{org}/hooks/{hook_id}/deliveries`],listWebhooks:[`GET /orgs/{org}/hooks`],pingWebhook:[`POST /orgs/{org}/hooks/{hook_id}/pings`],redeliverWebhookDelivery:[`POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`],removeMember:[`DELETE /orgs/{org}/members/{username}`],removeMembershipForUser:[`DELETE /orgs/{org}/memberships/{username}`],removeOutsideCollaborator:[`DELETE /orgs/{org}/outside_collaborators/{username}`],removePublicMembershipForAuthenticatedUser:[`DELETE /orgs/{org}/public_members/{username}`],removeSecurityManagerTeam:[`DELETE /orgs/{org}/security-managers/teams/{team_slug}`,{},{deprecated:`octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team`}],reviewPatGrantRequest:[`POST /orgs/{org}/personal-access-token-requests/{pat_request_id}`],reviewPatGrantRequestsInBulk:[`POST /orgs/{org}/personal-access-token-requests`],revokeAllOrgRolesTeam:[`DELETE /orgs/{org}/organization-roles/teams/{team_slug}`],revokeAllOrgRolesUser:[`DELETE /orgs/{org}/organization-roles/users/{username}`],revokeOrgRoleTeam:[`DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}`],revokeOrgRoleUser:[`DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}`],setImmutableReleasesSettings:[`PUT /orgs/{org}/settings/immutable-releases`],setImmutableReleasesSettingsRepositories:[`PUT /orgs/{org}/settings/immutable-releases/repositories`],setMembershipForUser:[`PUT /orgs/{org}/memberships/{username}`],setPublicMembershipForAuthenticatedUser:[`PUT /orgs/{org}/public_members/{username}`],unblockUser:[`DELETE /orgs/{org}/blocks/{username}`],update:[`PATCH /orgs/{org}`],updateIssueType:[`PUT /orgs/{org}/issue-types/{issue_type_id}`],updateMembershipForAuthenticatedUser:[`PATCH /user/memberships/orgs/{org}`],updatePatAccess:[`POST /orgs/{org}/personal-access-tokens/{pat_id}`],updatePatAccesses:[`POST /orgs/{org}/personal-access-tokens`],updateWebhook:[`PATCH /orgs/{org}/hooks/{hook_id}`],updateWebhookConfigForOrg:[`PATCH /orgs/{org}/hooks/{hook_id}/config`]},packages:{deletePackageForAuthenticatedUser:[`DELETE /user/packages/{package_type}/{package_name}`],deletePackageForOrg:[`DELETE /orgs/{org}/packages/{package_type}/{package_name}`],deletePackageForUser:[`DELETE /users/{username}/packages/{package_type}/{package_name}`],deletePackageVersionForAuthenticatedUser:[`DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}`],deletePackageVersionForOrg:[`DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`],deletePackageVersionForUser:[`DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`],getAllPackageVersionsForAPackageOwnedByAnOrg:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions`,{},{renamed:[`packages`,`getAllPackageVersionsForPackageOwnedByOrg`]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions`,{},{renamed:[`packages`,`getAllPackageVersionsForPackageOwnedByAuthenticatedUser`]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions`],getAllPackageVersionsForPackageOwnedByOrg:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions`],getAllPackageVersionsForPackageOwnedByUser:[`GET /users/{username}/packages/{package_type}/{package_name}/versions`],getPackageForAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}`],getPackageForOrganization:[`GET /orgs/{org}/packages/{package_type}/{package_name}`],getPackageForUser:[`GET /users/{username}/packages/{package_type}/{package_name}`],getPackageVersionForAuthenticatedUser:[`GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}`],getPackageVersionForOrganization:[`GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}`],getPackageVersionForUser:[`GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}`],listDockerMigrationConflictingPackagesForAuthenticatedUser:[`GET /user/docker/conflicts`],listDockerMigrationConflictingPackagesForOrganization:[`GET /orgs/{org}/docker/conflicts`],listDockerMigrationConflictingPackagesForUser:[`GET /users/{username}/docker/conflicts`],listPackagesForAuthenticatedUser:[`GET /user/packages`],listPackagesForOrganization:[`GET /orgs/{org}/packages`],listPackagesForUser:[`GET /users/{username}/packages`],restorePackageForAuthenticatedUser:[`POST /user/packages/{package_type}/{package_name}/restore{?token}`],restorePackageForOrg:[`POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}`],restorePackageForUser:[`POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}`],restorePackageVersionForAuthenticatedUser:[`POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`],restorePackageVersionForOrg:[`POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`],restorePackageVersionForUser:[`POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore`]},privateRegistries:{createOrgPrivateRegistry:[`POST /orgs/{org}/private-registries`],deleteOrgPrivateRegistry:[`DELETE /orgs/{org}/private-registries/{secret_name}`],getOrgPrivateRegistry:[`GET /orgs/{org}/private-registries/{secret_name}`],getOrgPublicKey:[`GET /orgs/{org}/private-registries/public-key`],listOrgPrivateRegistries:[`GET /orgs/{org}/private-registries`],updateOrgPrivateRegistry:[`PATCH /orgs/{org}/private-registries/{secret_name}`]},projects:{addItemForOrg:[`POST /orgs/{org}/projectsV2/{project_number}/items`],addItemForUser:[`POST /users/{username}/projectsV2/{project_number}/items`],deleteItemForOrg:[`DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],deleteItemForUser:[`DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}`],getFieldForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}`],getFieldForUser:[`GET /users/{username}/projectsV2/{project_number}/fields/{field_id}`],getForOrg:[`GET /orgs/{org}/projectsV2/{project_number}`],getForUser:[`GET /users/{username}/projectsV2/{project_number}`],getOrgItem:[`GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],getUserItem:[`GET /users/{username}/projectsV2/{project_number}/items/{item_id}`],listFieldsForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/fields`],listFieldsForUser:[`GET /users/{username}/projectsV2/{project_number}/fields`],listForOrg:[`GET /orgs/{org}/projectsV2`],listForUser:[`GET /users/{username}/projectsV2`],listItemsForOrg:[`GET /orgs/{org}/projectsV2/{project_number}/items`],listItemsForUser:[`GET /users/{username}/projectsV2/{project_number}/items`],updateItemForOrg:[`PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}`],updateItemForUser:[`PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}`]},pulls:{checkIfMerged:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/merge`],create:[`POST /repos/{owner}/{repo}/pulls`],createReplyForReviewComment:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`],createReview:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews`],createReviewComment:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/comments`],deletePendingReview:[`DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],deleteReviewComment:[`DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}`],dismissReview:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals`],get:[`GET /repos/{owner}/{repo}/pulls/{pull_number}`],getReview:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],getReviewComment:[`GET /repos/{owner}/{repo}/pulls/comments/{comment_id}`],list:[`GET /repos/{owner}/{repo}/pulls`],listCommentsForReview:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments`],listCommits:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/commits`],listFiles:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/files`],listRequestedReviewers:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],listReviewComments:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/comments`],listReviewCommentsForRepo:[`GET /repos/{owner}/{repo}/pulls/comments`],listReviews:[`GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews`],merge:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge`],removeRequestedReviewers:[`DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],requestReviewers:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`],submitReview:[`POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events`],update:[`PATCH /repos/{owner}/{repo}/pulls/{pull_number}`],updateBranch:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch`],updateReview:[`PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}`],updateReviewComment:[`PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}`]},rateLimit:{get:[`GET /rate_limit`]},reactions:{createForCommitComment:[`POST /repos/{owner}/{repo}/comments/{comment_id}/reactions`],createForIssue:[`POST /repos/{owner}/{repo}/issues/{issue_number}/reactions`],createForIssueComment:[`POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`],createForPullRequestReviewComment:[`POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`],createForRelease:[`POST /repos/{owner}/{repo}/releases/{release_id}/reactions`],createForTeamDiscussionCommentInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`],createForTeamDiscussionInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`],deleteForCommitComment:[`DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}`],deleteForIssue:[`DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}`],deleteForIssueComment:[`DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}`],deleteForPullRequestComment:[`DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}`],deleteForRelease:[`DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}`],deleteForTeamDiscussion:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}`],deleteForTeamDiscussionComment:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}`],listForCommitComment:[`GET /repos/{owner}/{repo}/comments/{comment_id}/reactions`],listForIssue:[`GET /repos/{owner}/{repo}/issues/{issue_number}/reactions`],listForIssueComment:[`GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions`],listForPullRequestReviewComment:[`GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`],listForRelease:[`GET /repos/{owner}/{repo}/releases/{release_id}/reactions`],listForTeamDiscussionCommentInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions`],listForTeamDiscussionInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions`]},repos:{acceptInvitation:[`PATCH /user/repository_invitations/{invitation_id}`,{},{renamed:[`repos`,`acceptInvitationForAuthenticatedUser`]}],acceptInvitationForAuthenticatedUser:[`PATCH /user/repository_invitations/{invitation_id}`],addAppAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],addCollaborator:[`PUT /repos/{owner}/{repo}/collaborators/{username}`],addStatusCheckContexts:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],addTeamAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],addUserAccessRestrictions:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],cancelPagesDeployment:[`POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel`],checkAutomatedSecurityFixes:[`GET /repos/{owner}/{repo}/automated-security-fixes`],checkCollaborator:[`GET /repos/{owner}/{repo}/collaborators/{username}`],checkImmutableReleases:[`GET /repos/{owner}/{repo}/immutable-releases`],checkPrivateVulnerabilityReporting:[`GET /repos/{owner}/{repo}/private-vulnerability-reporting`],checkVulnerabilityAlerts:[`GET /repos/{owner}/{repo}/vulnerability-alerts`],codeownersErrors:[`GET /repos/{owner}/{repo}/codeowners/errors`],compareCommits:[`GET /repos/{owner}/{repo}/compare/{base}...{head}`],compareCommitsWithBasehead:[`GET /repos/{owner}/{repo}/compare/{basehead}`],createAttestation:[`POST /repos/{owner}/{repo}/attestations`],createAutolink:[`POST /repos/{owner}/{repo}/autolinks`],createCommitComment:[`POST /repos/{owner}/{repo}/commits/{commit_sha}/comments`],createCommitSignatureProtection:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],createCommitStatus:[`POST /repos/{owner}/{repo}/statuses/{sha}`],createDeployKey:[`POST /repos/{owner}/{repo}/keys`],createDeployment:[`POST /repos/{owner}/{repo}/deployments`],createDeploymentBranchPolicy:[`POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`],createDeploymentProtectionRule:[`POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`],createDeploymentStatus:[`POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`],createDispatchEvent:[`POST /repos/{owner}/{repo}/dispatches`],createForAuthenticatedUser:[`POST /user/repos`],createFork:[`POST /repos/{owner}/{repo}/forks`],createInOrg:[`POST /orgs/{org}/repos`],createOrUpdateEnvironment:[`PUT /repos/{owner}/{repo}/environments/{environment_name}`],createOrUpdateFileContents:[`PUT /repos/{owner}/{repo}/contents/{path}`],createOrgRuleset:[`POST /orgs/{org}/rulesets`],createPagesDeployment:[`POST /repos/{owner}/{repo}/pages/deployments`],createPagesSite:[`POST /repos/{owner}/{repo}/pages`],createRelease:[`POST /repos/{owner}/{repo}/releases`],createRepoRuleset:[`POST /repos/{owner}/{repo}/rulesets`],createUsingTemplate:[`POST /repos/{template_owner}/{template_repo}/generate`],createWebhook:[`POST /repos/{owner}/{repo}/hooks`],customPropertiesForReposCreateOrUpdateRepositoryValues:[`PATCH /repos/{owner}/{repo}/properties/values`],customPropertiesForReposGetRepositoryValues:[`GET /repos/{owner}/{repo}/properties/values`],declineInvitation:[`DELETE /user/repository_invitations/{invitation_id}`,{},{renamed:[`repos`,`declineInvitationForAuthenticatedUser`]}],declineInvitationForAuthenticatedUser:[`DELETE /user/repository_invitations/{invitation_id}`],delete:[`DELETE /repos/{owner}/{repo}`],deleteAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`],deleteAdminBranchProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],deleteAnEnvironment:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}`],deleteAutolink:[`DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}`],deleteBranchProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection`],deleteCommitComment:[`DELETE /repos/{owner}/{repo}/comments/{comment_id}`],deleteCommitSignatureProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],deleteDeployKey:[`DELETE /repos/{owner}/{repo}/keys/{key_id}`],deleteDeployment:[`DELETE /repos/{owner}/{repo}/deployments/{deployment_id}`],deleteDeploymentBranchPolicy:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],deleteFile:[`DELETE /repos/{owner}/{repo}/contents/{path}`],deleteInvitation:[`DELETE /repos/{owner}/{repo}/invitations/{invitation_id}`],deleteOrgRuleset:[`DELETE /orgs/{org}/rulesets/{ruleset_id}`],deletePagesSite:[`DELETE /repos/{owner}/{repo}/pages`],deletePullRequestReviewProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],deleteRelease:[`DELETE /repos/{owner}/{repo}/releases/{release_id}`],deleteReleaseAsset:[`DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}`],deleteRepoRuleset:[`DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}`],deleteWebhook:[`DELETE /repos/{owner}/{repo}/hooks/{hook_id}`],disableAutomatedSecurityFixes:[`DELETE /repos/{owner}/{repo}/automated-security-fixes`],disableDeploymentProtectionRule:[`DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`],disableImmutableReleases:[`DELETE /repos/{owner}/{repo}/immutable-releases`],disablePrivateVulnerabilityReporting:[`DELETE /repos/{owner}/{repo}/private-vulnerability-reporting`],disableVulnerabilityAlerts:[`DELETE /repos/{owner}/{repo}/vulnerability-alerts`],downloadArchive:[`GET /repos/{owner}/{repo}/zipball/{ref}`,{},{renamed:[`repos`,`downloadZipballArchive`]}],downloadTarballArchive:[`GET /repos/{owner}/{repo}/tarball/{ref}`],downloadZipballArchive:[`GET /repos/{owner}/{repo}/zipball/{ref}`],enableAutomatedSecurityFixes:[`PUT /repos/{owner}/{repo}/automated-security-fixes`],enableImmutableReleases:[`PUT /repos/{owner}/{repo}/immutable-releases`],enablePrivateVulnerabilityReporting:[`PUT /repos/{owner}/{repo}/private-vulnerability-reporting`],enableVulnerabilityAlerts:[`PUT /repos/{owner}/{repo}/vulnerability-alerts`],generateReleaseNotes:[`POST /repos/{owner}/{repo}/releases/generate-notes`],get:[`GET /repos/{owner}/{repo}`],getAccessRestrictions:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions`],getAdminBranchProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],getAllDeploymentProtectionRules:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules`],getAllEnvironments:[`GET /repos/{owner}/{repo}/environments`],getAllStatusCheckContexts:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`],getAllTopics:[`GET /repos/{owner}/{repo}/topics`],getAppsWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`],getAutolink:[`GET /repos/{owner}/{repo}/autolinks/{autolink_id}`],getBranch:[`GET /repos/{owner}/{repo}/branches/{branch}`],getBranchProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection`],getBranchRules:[`GET /repos/{owner}/{repo}/rules/branches/{branch}`],getClones:[`GET /repos/{owner}/{repo}/traffic/clones`],getCodeFrequencyStats:[`GET /repos/{owner}/{repo}/stats/code_frequency`],getCollaboratorPermissionLevel:[`GET /repos/{owner}/{repo}/collaborators/{username}/permission`],getCombinedStatusForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/status`],getCommit:[`GET /repos/{owner}/{repo}/commits/{ref}`],getCommitActivityStats:[`GET /repos/{owner}/{repo}/stats/commit_activity`],getCommitComment:[`GET /repos/{owner}/{repo}/comments/{comment_id}`],getCommitSignatureProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures`],getCommunityProfileMetrics:[`GET /repos/{owner}/{repo}/community/profile`],getContent:[`GET /repos/{owner}/{repo}/contents/{path}`],getContributorsStats:[`GET /repos/{owner}/{repo}/stats/contributors`],getCustomDeploymentProtectionRule:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}`],getDeployKey:[`GET /repos/{owner}/{repo}/keys/{key_id}`],getDeployment:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}`],getDeploymentBranchPolicy:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],getDeploymentStatus:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}`],getEnvironment:[`GET /repos/{owner}/{repo}/environments/{environment_name}`],getLatestPagesBuild:[`GET /repos/{owner}/{repo}/pages/builds/latest`],getLatestRelease:[`GET /repos/{owner}/{repo}/releases/latest`],getOrgRuleSuite:[`GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}`],getOrgRuleSuites:[`GET /orgs/{org}/rulesets/rule-suites`],getOrgRuleset:[`GET /orgs/{org}/rulesets/{ruleset_id}`],getOrgRulesets:[`GET /orgs/{org}/rulesets`],getPages:[`GET /repos/{owner}/{repo}/pages`],getPagesBuild:[`GET /repos/{owner}/{repo}/pages/builds/{build_id}`],getPagesDeployment:[`GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}`],getPagesHealthCheck:[`GET /repos/{owner}/{repo}/pages/health`],getParticipationStats:[`GET /repos/{owner}/{repo}/stats/participation`],getPullRequestReviewProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],getPunchCardStats:[`GET /repos/{owner}/{repo}/stats/punch_card`],getReadme:[`GET /repos/{owner}/{repo}/readme`],getReadmeInDirectory:[`GET /repos/{owner}/{repo}/readme/{dir}`],getRelease:[`GET /repos/{owner}/{repo}/releases/{release_id}`],getReleaseAsset:[`GET /repos/{owner}/{repo}/releases/assets/{asset_id}`],getReleaseByTag:[`GET /repos/{owner}/{repo}/releases/tags/{tag}`],getRepoRuleSuite:[`GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}`],getRepoRuleSuites:[`GET /repos/{owner}/{repo}/rulesets/rule-suites`],getRepoRuleset:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}`],getRepoRulesetHistory:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`],getRepoRulesetVersion:[`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}`],getRepoRulesets:[`GET /repos/{owner}/{repo}/rulesets`],getStatusChecksProtection:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],getTeamsWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`],getTopPaths:[`GET /repos/{owner}/{repo}/traffic/popular/paths`],getTopReferrers:[`GET /repos/{owner}/{repo}/traffic/popular/referrers`],getUsersWithAccessToProtectedBranch:[`GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`],getViews:[`GET /repos/{owner}/{repo}/traffic/views`],getWebhook:[`GET /repos/{owner}/{repo}/hooks/{hook_id}`],getWebhookConfigForRepo:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/config`],getWebhookDelivery:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}`],listActivities:[`GET /repos/{owner}/{repo}/activity`],listAttestations:[`GET /repos/{owner}/{repo}/attestations/{subject_digest}`],listAutolinks:[`GET /repos/{owner}/{repo}/autolinks`],listBranches:[`GET /repos/{owner}/{repo}/branches`],listBranchesForHeadCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head`],listCollaborators:[`GET /repos/{owner}/{repo}/collaborators`],listCommentsForCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/comments`],listCommitCommentsForRepo:[`GET /repos/{owner}/{repo}/comments`],listCommitStatusesForRef:[`GET /repos/{owner}/{repo}/commits/{ref}/statuses`],listCommits:[`GET /repos/{owner}/{repo}/commits`],listContributors:[`GET /repos/{owner}/{repo}/contributors`],listCustomDeploymentRuleIntegrations:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps`],listDeployKeys:[`GET /repos/{owner}/{repo}/keys`],listDeploymentBranchPolicies:[`GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies`],listDeploymentStatuses:[`GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses`],listDeployments:[`GET /repos/{owner}/{repo}/deployments`],listForAuthenticatedUser:[`GET /user/repos`],listForOrg:[`GET /orgs/{org}/repos`],listForUser:[`GET /users/{username}/repos`],listForks:[`GET /repos/{owner}/{repo}/forks`],listInvitations:[`GET /repos/{owner}/{repo}/invitations`],listInvitationsForAuthenticatedUser:[`GET /user/repository_invitations`],listLanguages:[`GET /repos/{owner}/{repo}/languages`],listPagesBuilds:[`GET /repos/{owner}/{repo}/pages/builds`],listPublic:[`GET /repositories`],listPullRequestsAssociatedWithCommit:[`GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls`],listReleaseAssets:[`GET /repos/{owner}/{repo}/releases/{release_id}/assets`],listReleases:[`GET /repos/{owner}/{repo}/releases`],listTags:[`GET /repos/{owner}/{repo}/tags`],listTeams:[`GET /repos/{owner}/{repo}/teams`],listWebhookDeliveries:[`GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries`],listWebhooks:[`GET /repos/{owner}/{repo}/hooks`],merge:[`POST /repos/{owner}/{repo}/merges`],mergeUpstream:[`POST /repos/{owner}/{repo}/merge-upstream`],pingWebhook:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/pings`],redeliverWebhookDelivery:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts`],removeAppAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],removeCollaborator:[`DELETE /repos/{owner}/{repo}/collaborators/{username}`],removeStatusCheckContexts:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],removeStatusCheckProtection:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],removeTeamAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],removeUserAccessRestrictions:[`DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],renameBranch:[`POST /repos/{owner}/{repo}/branches/{branch}/rename`],replaceAllTopics:[`PUT /repos/{owner}/{repo}/topics`],requestPagesBuild:[`POST /repos/{owner}/{repo}/pages/builds`],setAdminBranchProtection:[`POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`],setAppAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps`,{},{mapToData:`apps`}],setStatusCheckContexts:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts`,{},{mapToData:`contexts`}],setTeamAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams`,{},{mapToData:`teams`}],setUserAccessRestrictions:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users`,{},{mapToData:`users`}],testPushWebhook:[`POST /repos/{owner}/{repo}/hooks/{hook_id}/tests`],transfer:[`POST /repos/{owner}/{repo}/transfer`],update:[`PATCH /repos/{owner}/{repo}`],updateBranchProtection:[`PUT /repos/{owner}/{repo}/branches/{branch}/protection`],updateCommitComment:[`PATCH /repos/{owner}/{repo}/comments/{comment_id}`],updateDeploymentBranchPolicy:[`PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}`],updateInformationAboutPagesSite:[`PUT /repos/{owner}/{repo}/pages`],updateInvitation:[`PATCH /repos/{owner}/{repo}/invitations/{invitation_id}`],updateOrgRuleset:[`PUT /orgs/{org}/rulesets/{ruleset_id}`],updatePullRequestReviewProtection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews`],updateRelease:[`PATCH /repos/{owner}/{repo}/releases/{release_id}`],updateReleaseAsset:[`PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}`],updateRepoRuleset:[`PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}`],updateStatusCheckPotection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`,{},{renamed:[`repos`,`updateStatusCheckProtection`]}],updateStatusCheckProtection:[`PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks`],updateWebhook:[`PATCH /repos/{owner}/{repo}/hooks/{hook_id}`],updateWebhookConfigForRepo:[`PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config`],uploadReleaseAsset:[`POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}`,{baseUrl:`https://uploads.github.com`}]},search:{code:[`GET /search/code`],commits:[`GET /search/commits`],issuesAndPullRequests:[`GET /search/issues`],labels:[`GET /search/labels`],repos:[`GET /search/repositories`],topics:[`GET /search/topics`],users:[`GET /search/users`]},secretScanning:{createPushProtectionBypass:[`POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses`],getAlert:[`GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`],getScanHistory:[`GET /repos/{owner}/{repo}/secret-scanning/scan-history`],listAlertsForOrg:[`GET /orgs/{org}/secret-scanning/alerts`],listAlertsForRepo:[`GET /repos/{owner}/{repo}/secret-scanning/alerts`],listLocationsForAlert:[`GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations`],listOrgPatternConfigs:[`GET /orgs/{org}/secret-scanning/pattern-configurations`],updateAlert:[`PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}`],updateOrgPatternConfigs:[`PATCH /orgs/{org}/secret-scanning/pattern-configurations`]},securityAdvisories:{createFork:[`POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks`],createPrivateVulnerabilityReport:[`POST /repos/{owner}/{repo}/security-advisories/reports`],createRepositoryAdvisory:[`POST /repos/{owner}/{repo}/security-advisories`],createRepositoryAdvisoryCveRequest:[`POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve`],getGlobalAdvisory:[`GET /advisories/{ghsa_id}`],getRepositoryAdvisory:[`GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}`],listGlobalAdvisories:[`GET /advisories`],listOrgRepositoryAdvisories:[`GET /orgs/{org}/security-advisories`],listRepositoryAdvisories:[`GET /repos/{owner}/{repo}/security-advisories`],updateRepositoryAdvisory:[`PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}`]},teams:{addOrUpdateMembershipForUserInOrg:[`PUT /orgs/{org}/teams/{team_slug}/memberships/{username}`],addOrUpdateRepoPermissionsInOrg:[`PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],checkPermissionsForRepoInOrg:[`GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],create:[`POST /orgs/{org}/teams`],createDiscussionCommentInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`],createDiscussionInOrg:[`POST /orgs/{org}/teams/{team_slug}/discussions`],deleteDiscussionCommentInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],deleteDiscussionInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],deleteInOrg:[`DELETE /orgs/{org}/teams/{team_slug}`],getByName:[`GET /orgs/{org}/teams/{team_slug}`],getDiscussionCommentInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],getDiscussionInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],getMembershipForUserInOrg:[`GET /orgs/{org}/teams/{team_slug}/memberships/{username}`],list:[`GET /orgs/{org}/teams`],listChildInOrg:[`GET /orgs/{org}/teams/{team_slug}/teams`],listDiscussionCommentsInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`],listDiscussionsInOrg:[`GET /orgs/{org}/teams/{team_slug}/discussions`],listForAuthenticatedUser:[`GET /user/teams`],listMembersInOrg:[`GET /orgs/{org}/teams/{team_slug}/members`],listPendingInvitationsInOrg:[`GET /orgs/{org}/teams/{team_slug}/invitations`],listReposInOrg:[`GET /orgs/{org}/teams/{team_slug}/repos`],removeMembershipForUserInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}`],removeRepoInOrg:[`DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}`],updateDiscussionCommentInOrg:[`PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}`],updateDiscussionInOrg:[`PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}`],updateInOrg:[`PATCH /orgs/{org}/teams/{team_slug}`]},users:{addEmailForAuthenticated:[`POST /user/emails`,{},{renamed:[`users`,`addEmailForAuthenticatedUser`]}],addEmailForAuthenticatedUser:[`POST /user/emails`],addSocialAccountForAuthenticatedUser:[`POST /user/social_accounts`],block:[`PUT /user/blocks/{username}`],checkBlocked:[`GET /user/blocks/{username}`],checkFollowingForUser:[`GET /users/{username}/following/{target_user}`],checkPersonIsFollowedByAuthenticated:[`GET /user/following/{username}`],createGpgKeyForAuthenticated:[`POST /user/gpg_keys`,{},{renamed:[`users`,`createGpgKeyForAuthenticatedUser`]}],createGpgKeyForAuthenticatedUser:[`POST /user/gpg_keys`],createPublicSshKeyForAuthenticated:[`POST /user/keys`,{},{renamed:[`users`,`createPublicSshKeyForAuthenticatedUser`]}],createPublicSshKeyForAuthenticatedUser:[`POST /user/keys`],createSshSigningKeyForAuthenticatedUser:[`POST /user/ssh_signing_keys`],deleteAttestationsBulk:[`POST /users/{username}/attestations/delete-request`],deleteAttestationsById:[`DELETE /users/{username}/attestations/{attestation_id}`],deleteAttestationsBySubjectDigest:[`DELETE /users/{username}/attestations/digest/{subject_digest}`],deleteEmailForAuthenticated:[`DELETE /user/emails`,{},{renamed:[`users`,`deleteEmailForAuthenticatedUser`]}],deleteEmailForAuthenticatedUser:[`DELETE /user/emails`],deleteGpgKeyForAuthenticated:[`DELETE /user/gpg_keys/{gpg_key_id}`,{},{renamed:[`users`,`deleteGpgKeyForAuthenticatedUser`]}],deleteGpgKeyForAuthenticatedUser:[`DELETE /user/gpg_keys/{gpg_key_id}`],deletePublicSshKeyForAuthenticated:[`DELETE /user/keys/{key_id}`,{},{renamed:[`users`,`deletePublicSshKeyForAuthenticatedUser`]}],deletePublicSshKeyForAuthenticatedUser:[`DELETE /user/keys/{key_id}`],deleteSocialAccountForAuthenticatedUser:[`DELETE /user/social_accounts`],deleteSshSigningKeyForAuthenticatedUser:[`DELETE /user/ssh_signing_keys/{ssh_signing_key_id}`],follow:[`PUT /user/following/{username}`],getAuthenticated:[`GET /user`],getById:[`GET /user/{account_id}`],getByUsername:[`GET /users/{username}`],getContextForUser:[`GET /users/{username}/hovercard`],getGpgKeyForAuthenticated:[`GET /user/gpg_keys/{gpg_key_id}`,{},{renamed:[`users`,`getGpgKeyForAuthenticatedUser`]}],getGpgKeyForAuthenticatedUser:[`GET /user/gpg_keys/{gpg_key_id}`],getPublicSshKeyForAuthenticated:[`GET /user/keys/{key_id}`,{},{renamed:[`users`,`getPublicSshKeyForAuthenticatedUser`]}],getPublicSshKeyForAuthenticatedUser:[`GET /user/keys/{key_id}`],getSshSigningKeyForAuthenticatedUser:[`GET /user/ssh_signing_keys/{ssh_signing_key_id}`],list:[`GET /users`],listAttestations:[`GET /users/{username}/attestations/{subject_digest}`],listAttestationsBulk:[`POST /users/{username}/attestations/bulk-list{?per_page,before,after}`],listBlockedByAuthenticated:[`GET /user/blocks`,{},{renamed:[`users`,`listBlockedByAuthenticatedUser`]}],listBlockedByAuthenticatedUser:[`GET /user/blocks`],listEmailsForAuthenticated:[`GET /user/emails`,{},{renamed:[`users`,`listEmailsForAuthenticatedUser`]}],listEmailsForAuthenticatedUser:[`GET /user/emails`],listFollowedByAuthenticated:[`GET /user/following`,{},{renamed:[`users`,`listFollowedByAuthenticatedUser`]}],listFollowedByAuthenticatedUser:[`GET /user/following`],listFollowersForAuthenticatedUser:[`GET /user/followers`],listFollowersForUser:[`GET /users/{username}/followers`],listFollowingForUser:[`GET /users/{username}/following`],listGpgKeysForAuthenticated:[`GET /user/gpg_keys`,{},{renamed:[`users`,`listGpgKeysForAuthenticatedUser`]}],listGpgKeysForAuthenticatedUser:[`GET /user/gpg_keys`],listGpgKeysForUser:[`GET /users/{username}/gpg_keys`],listPublicEmailsForAuthenticated:[`GET /user/public_emails`,{},{renamed:[`users`,`listPublicEmailsForAuthenticatedUser`]}],listPublicEmailsForAuthenticatedUser:[`GET /user/public_emails`],listPublicKeysForUser:[`GET /users/{username}/keys`],listPublicSshKeysForAuthenticated:[`GET /user/keys`,{},{renamed:[`users`,`listPublicSshKeysForAuthenticatedUser`]}],listPublicSshKeysForAuthenticatedUser:[`GET /user/keys`],listSocialAccountsForAuthenticatedUser:[`GET /user/social_accounts`],listSocialAccountsForUser:[`GET /users/{username}/social_accounts`],listSshSigningKeysForAuthenticatedUser:[`GET /user/ssh_signing_keys`],listSshSigningKeysForUser:[`GET /users/{username}/ssh_signing_keys`],setPrimaryEmailVisibilityForAuthenticated:[`PATCH /user/email/visibility`,{},{renamed:[`users`,`setPrimaryEmailVisibilityForAuthenticatedUser`]}],setPrimaryEmailVisibilityForAuthenticatedUser:[`PATCH /user/email/visibility`],unblock:[`DELETE /user/blocks/{username}`],unfollow:[`DELETE /user/following/{username}`],updateAuthenticated:[`PATCH /user`]}};const jH=new Map;for(let[e,t]of Object.entries(AH))for(let[n,r]of Object.entries(t)){let[t,i,a]=r,[o,s]=t.split(/ /),c=Object.assign({method:o,url:s},i);jH.has(e)||jH.set(e,new Map),jH.get(e).set(n,{scope:e,methodName:n,endpointDefaults:c,decorations:a})}const MH={has({scope:e},t){return jH.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,t,n){return Object.defineProperty(e.cache,t,n),!0},deleteProperty(e,t){return delete e.cache[t],!0},ownKeys({scope:e}){return[...jH.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},r){if(n[r])return n[r];let i=jH.get(t).get(r);if(!i)return;let{endpointDefaults:a,decorations:o}=i;return o?n[r]=PH(e,t,r,a,o):n[r]=e.request.defaults(a),n[r]}};function NH(e){let t={};for(let n of jH.keys())t[n]=new Proxy({octokit:e,scope:n,cache:{}},MH);return t}function PH(e,t,n,r,i){let a=e.request.defaults(r);function o(...r){let o=a.endpoint.merge(...r);if(i.mapToData)return o=Object.assign({},o,{data:o[i.mapToData],[i.mapToData]:void 0}),a(o);if(i.renamed){let[r,a]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${r}.${a}()`)}if(i.deprecated&&e.log.warn(i.deprecated),i.renamedParameters){let o=a.endpoint.merge(...r);for(let[r,a]of Object.entries(i.renamedParameters))r in o&&(e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${n}()". Use "${a}" instead`),a in o||(o[a]=o[r]),delete o[r]);return a(o)}return a(...r)}return Object.assign(o,a)}function FH(e){return{rest:NH(e)}}FH.VERSION=kH;function IH(e){let t=NH(e);return{...t,rest:t}}IH.VERSION=kH;var LH=_e(F(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t<n;t++)if(r=e[t],r.length>0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout<e}computeCapacity(){var e,t;return{maxConcurrent:e,reservoir:t}=this.storeOptions,e!=null&&t!=null?Math.min(e-this._running,t):e==null?t??null:e-this._running}conditionsCheck(e){var t=this.computeCapacity();return t==null||e<=t}async __incrementReservoir__(e){var t;return await this.yieldLoop(),t=this.storeOptions.reservoir+=e,this.instance._drainAll(this.computeCapacity()),t}async __currentReservoir__(){return await this.yieldLoop(),this.storeOptions.reservoir}isBlocked(e){return this._unblockTime>=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n<this.status.length)return this.counts[t]--,this.counts[n]++,this._jobs[e]++;if(t!=null)return this.counts[t]--,delete this._jobs[e]}start(e){var t=0;return this._jobs[e]=t,this.counts[t]++}remove(e){var t=this._jobs[e];return t!=null&&(this.counts[t]--,delete this._jobs[e]),t!=null}jobStatus(e){return this.status[this._jobs[e]]??null}statusJobs(e){var t,n,r,i,a;if(e!=null){if(n=this.status.indexOf(e),n<0)throw new y(`status must be one of ${this.status.join(`, `)}`);for(t in r=this._jobs,i=[],r)a=r[t],a===n&&i.push(t);return i}else return Object.keys(this._jobs)}statusCounts(){return this.counts.reduce(((e,t,n)=>(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w={version:C},T=Object.freeze({version:C,default:w}),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),k,A,j,ee,te,ne=n;k=i,ee=E,j=D,te=O,A=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,ne.load(this.limiterOptions,this.defaults,this),this.Events=new k(this),this.instances={},this.Bottleneck=_e,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new ee(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...te.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r<o;r++)i=n[r],a.push(i.slice(c,-t));return a}_startAutoCleanup(){var e;return clearInterval(this.interval),typeof(e=this.interval=setInterval(async()=>{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(ne.overwrite(e,this.defaults,this),ne.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var re=A,M,ie,ae=n;ie=i,M=(function(){class e{constructor(e={}){this.options=e,ae.load(this.options,this.defaults,this),this.Events=new ie(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var N=M,oe=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),se=t(T),P,ce,le,ue,de,fe,pe,me,he,F,ge,I=[].splice;fe=10,ce=5,ge=n,pe=s,ue=m,de=v,me=oe,le=i,he=b,F=S,P=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),ge.load(t,this.instanceDefaults,this),this._queues=new pe(fe),this._scheduled={},this._states=new he([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new le(this),this._submitLock=new F(`submit`,this.Promise),this._registerLock=new F(`register`,this.Promise),i=ge.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=ge.load(t,this.redisStoreDefaults,{}),new me(this,i,r);if(this.datastore===`local`)return r=ge.load(t,this.localStoreDefaults,{}),new de(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.prototype.BottleneckError(`Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.`)}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=ge.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:fe-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=I.call(e,-1),i=ge.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=I.call(e,-1),i=ge.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new ue(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new ue(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(ge.overwrite(e,this.storeDefaults)),ge.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=le,e.version=e.prototype.version=se.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=re,e.RedisConnection=e.prototype.RedisConnection=E,e.IORedisConnection=e.prototype.IORedisConnection=D,e.Batcher=e.prototype.Batcher=N,e.prototype.jobDefaults={priority:ce,weight:1,expiration:null,id:`<no-id>`},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:`<no-id>`,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var _e=P;return _e}))}))(),1),RH=`0.0.0-development`;async function zH(e,t,n,r){if(!n.request||!n.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function BH(e,t,n,r){let i=new LH.default;return i.on(`failed`,function(t,n){let i=~~t.request.request.retries,a=~~t.request.request.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(VH.bind(null,e,t,n),r)}async function VH(e,t,n,r){let i=await n(n,r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?zH(e,t,new TV(i.data.errors[0].message,500,{request:r,response:i}),r):i}function HH(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry);return n.enabled&&(e.hook.error(`request`,zH.bind(null,n,e)),e.hook.wrap(`request`,BH.bind(null,n,e))),{retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}}}HH.VERSION=RH;var UH=`0.0.0-development`,WH=()=>Promise.resolve();function GH(e,t,n){return e.retryLimiter.schedule(KH,e,t,n)}async function KH(e,t,n){let{pathname:r}=new URL(n.url,`http://github.test`),i=qH(n.method,r),a=!i&&n.method!==`GET`&&n.method!==`HEAD`,o=n.method===`GET`&&r.startsWith(`/search/`),s=r.startsWith(`/graphql`),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=1e3*60),(a||s)&&await e.write.key(e.id).schedule(c,WH),a&&e.triggersNotification(r)&&await e.notifications.key(e.id).schedule(c,WH),o&&await e.search.key(e.id).schedule(c,WH);let l=(i?e.auth:e.global).key(e.id).schedule(c,t,n);if(s){let e=await l;if(e.data.errors!=null&&e.data.errors.some(e=>e.type===`RATE_LIMITED`))throw Object.assign(Error(`GraphQL Rate Limit Exceeded`),{response:e,data:e.data})}return l}function qH(e,t){return e===`PATCH`&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||e===`POST`&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||t===`/login/oauth/access_token`)}var JH=[`/orgs/{org}/invitations`,`/orgs/{org}/invitations/{invitation_id}`,`/orgs/{org}/teams/{team_slug}/discussions`,`/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments`,`/repos/{owner}/{repo}/collaborators/{username}`,`/repos/{owner}/{repo}/commits/{commit_sha}/comments`,`/repos/{owner}/{repo}/issues`,`/repos/{owner}/{repo}/issues/{issue_number}/comments`,`/repos/{owner}/{repo}/issues/{issue_number}/sub_issue`,`/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority`,`/repos/{owner}/{repo}/pulls`,`/repos/{owner}/{repo}/pulls/{pull_number}/comments`,`/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies`,`/repos/{owner}/{repo}/pulls/{pull_number}/merge`,`/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers`,`/repos/{owner}/{repo}/pulls/{pull_number}/reviews`,`/repos/{owner}/{repo}/releases`,`/teams/{team_id}/discussions`,`/teams/{team_id}/discussions/{discussion_number}/comments`];function YH(e){let t=`^(?:${e.map(e=>e.split(`/`).map(e=>e.startsWith(`{`)?`(?:.+?)`:e).join(`/`)).map(e=>`(?:${e})`).join(`|`)})[^/]*$`;return new RegExp(t,`i`)}var XH=YH(JH),ZH=XH.test.bind(XH),QH={},$H=function(e,t){QH.global=new e.Group({id:`octokit-global`,maxConcurrent:10,...t}),QH.auth=new e.Group({id:`octokit-auth`,maxConcurrent:1,...t}),QH.search=new e.Group({id:`octokit-search`,maxConcurrent:1,minTime:2e3,...t}),QH.write=new e.Group({id:`octokit-write`,maxConcurrent:1,minTime:1e3,...t}),QH.notifications=new e.Group({id:`octokit-notifications`,maxConcurrent:1,minTime:3e3,...t})};function eU(e,t){let{enabled:n=!0,Bottleneck:r=LH.default,id:i=`no-id`,timeout:a=1e3*60*2,connection:o}=t.throttle||{};if(!n)return{};let s={timeout:a};o!==void 0&&(s.connection=o),QH.global??$H(r,s);let c=Object.assign({clustering:o!=null,triggersNotification:ZH,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new r,id:i,...QH},t.throttle);if(typeof c.onSecondaryRateLimit!=`function`||typeof c.onRateLimit!=`function`)throw Error(`octokit/plugin-throttling error:
You must pass the onSecondaryRateLimit and onRateLimit error handlers.
See https://octokit.github.io/rest.js/#throttling
const octokit = new Octokit({
throttle: {
onSecondaryRateLimit: (retryAfter, options) => {/* ... */},
onRateLimit: (retryAfter, options) => {/* ... */}
}
})
`);let l={},u=new r.Events(l);return l.on(`secondary-limit`,c.onSecondaryRateLimit),l.on(`rate-limit`,c.onRateLimit),l.on(`error`,t=>e.log.warn(`Error in throttling-plugin limit handler`,t)),c.retryLimiter.on(`failed`,async function(t,n){let[r,i,a]=n.args,{pathname:o}=new URL(a.url,`http://github.test`);if(!(o.startsWith(`/graphql`)&&t.status!==401||t.status===403||t.status===429))return;let s=~~i.retryCount;i.retryCount=s,a.request.retryCount=s;let{wantRetry:c,retryAfter:l=0}=await(async function(){if(/\bsecondary rate\b/i.test(t.message)){let n=Number(t.response.headers[`retry-after`])||r.fallbackSecondaryRateRetryAfter;return{wantRetry:await u.trigger(`secondary-limit`,n,a,e,s),retryAfter:n}}if(t.response.headers!=null&&t.response.headers[`x-ratelimit-remaining`]===`0`||(t.response.data?.errors??[]).some(e=>e.type===`RATE_LIMITED`)){let n=new Date(~~t.response.headers[`x-ratelimit-reset`]*1e3).getTime(),r=Math.max(Math.ceil((n-Date.now())/1e3)+1,0);return{wantRetry:await u.trigger(`rate-limit`,r,a,e,s),retryAfter:r}}return{}})();if(c)return i.retryCount++,l*r.retryAfterBaseValue}),e.hook.wrap(`request`,GH.bind(null,c)),{}}eU.VERSION=UH,eU.triggersNotification=ZH;function tU(e){let t=e.clientType||`oauth-app`,n=e.baseUrl||`https://github.com`,r={clientType:t,allowSignup:e.allowSignup!==!1,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:``};if(t===`oauth-app`){let t=`scopes`in e?e.scopes:[];r.scopes=typeof t==`string`?t.split(/[,\s]+/).filter(Boolean):t}return r.url=nU(`${n}/login/oauth/authorize`,r),r}function nU(e,t){let n={allowSignup:`allow_signup`,clientId:`client_id`,login:`login`,redirectUrl:`redirect_uri`,scopes:`scope`,state:`state`},r=e;return Object.keys(n).filter(e=>t[e]!==null).filter(e=>e===`scopes`?t.clientType===`github-app`?!1:!Array.isArray(t[e])||t[e].length>0:!0).map(e=>[n[e],`${t[e]}`]).forEach(([e,t],n)=>{r+=n===0?`?`:`&`,r+=`${e}=${encodeURIComponent(t)}`}),r}function rU(e){let t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?`https://github.com`:t.baseUrl.replace(`/api/v3`,``)}async function iU(e,t,n){let r={baseUrl:rU(e),headers:{accept:`application/json`},...n},i=await e(t,r);if(`error`in i.data){let n=new TV(`${i.data.error_description} (${i.data.error}, ${i.data.error_uri})`,400,{request:e.endpoint.merge(t,r)});throw n.response=i,n}return i}function aU({request:e=FV,...t}){let n=rU(e);return tU({...t,baseUrl:n})}async function oU(e){let t=await iU(e.request||FV,`POST /login/oauth/access_token`,{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=sU(e,t.data.expires_in),n.refreshTokenExpiresAt=sU(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function sU(e,t){return new Date(e+t*1e3).toISOString()}async function cU(e){let t=e.request||FV,n={client_id:e.clientId};return`scopes`in e&&Array.isArray(e.scopes)&&(n.scope=e.scopes.join(` `)),iU(t,`POST /login/device/code`,n)}async function lU(e){let t=await iU(e.request||FV,`POST /login/oauth/access_token`,{client_id:e.clientId,device_code:e.code,grant_type:`urn:ietf:params:oauth:grant-type:device_code`}),n={clientType:e.clientType,clientId:e.clientId,token:t.data.access_token,scopes:t.data.scope.split(/\s+/).filter(Boolean)};if(`clientSecret`in e&&(n.clientSecret=e.clientSecret),e.clientType===`github-app`){if(`refresh_token`in t.data){let e=new Date(t.headers.date).getTime();n.refreshToken=t.data.refresh_token,n.expiresAt=uU(e,t.data.expires_in),n.refreshTokenExpiresAt=uU(e,t.data.refresh_token_expires_in)}delete n.scopes}return{...t,authentication:n}}function uU(e,t){return new Date(e+t*1e3).toISOString()}async function dU(e){let t=await(e.request||FV)(`POST /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:t.data.scopes};return t.data.expires_at&&(n.expiresAt=t.data.expires_at),e.clientType===`github-app`&&delete n.scopes,{...t,authentication:n}}async function fU(e){let t=await iU(e.request||FV,`POST /login/oauth/access_token`,{client_id:e.clientId,client_secret:e.clientSecret,grant_type:`refresh_token`,refresh_token:e.refreshToken}),n=new Date(t.headers.date).getTime(),r={clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.access_token,refreshToken:t.data.refresh_token,expiresAt:pU(n,t.data.expires_in),refreshTokenExpiresAt:pU(n,t.data.refresh_token_expires_in)};return{...t,authentication:r}}function pU(e,t){return new Date(e+t*1e3).toISOString()}async function mU(e){let{request:t,clientType:n,clientId:r,clientSecret:i,token:a,...o}=e,s=await(e.request||FV)(`POST /applications/{client_id}/token/scoped`,{headers:{authorization:`basic ${btoa(`${r}:${i}`)}`},client_id:r,access_token:a,...o}),c=Object.assign({clientType:n,clientId:r,clientSecret:i,token:s.data.token},s.data.expires_at?{expiresAt:s.data.expires_at}:{});return{...s,authentication:c}}async function hU(e){let t=await(e.request||FV)(`PATCH /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.data.token,scopes:t.data.scopes};return t.data.expires_at&&(n.expiresAt=t.data.expires_at),e.clientType===`github-app`&&delete n.scopes,{...t,authentication:n}}async function gU(e){return(e.request||FV)(`DELETE /applications/{client_id}/token`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function _U(e){return(e.request||FV)(`DELETE /applications/{client_id}/grant`,{headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token})}async function vU(e,t){let n=yU(e,t.auth);if(n)return n;let{data:r}=await cU({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(r);let i=await xU(t.request||e.request,e.clientId,e.clientType,r);return e.authentication=i,i}function yU(e,t){if(t.refresh===!0||!e.authentication)return!1;if(e.clientType===`github-app`)return e.authentication;let n=e.authentication;return(`scopes`in t&&t.scopes||e.scopes).join(` `)===n.scopes.join(` `)?n:!1}async function bU(e){await new Promise(t=>setTimeout(t,e*1e3))}async function xU(e,t,n,r){try{let i={clientId:t,request:e,code:r.device_code},{authentication:a}=n===`oauth-app`?await lU({...i,clientType:`oauth-app`}):await lU({...i,clientType:`github-app`});return{type:`token`,tokenType:`oauth`,...a}}catch(i){if(!i.response)throw i;let a=i.response.data.error;if(a===`authorization_pending`)return await bU(r.interval),xU(e,t,n,r);if(a===`slow_down`)return await bU(r.interval+7),xU(e,t,n,r);throw i}}async function SU(e,t){return vU(e,{auth:t})}async function CU(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);let{token:a}=await vU(e,{request:t,auth:{type:`oauth`}});return i.headers.authorization=`token ${a}`,t(i)}var wU=`0.0.0-development`;function TU(e){let t=e.request||FV.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${wU} ${WB()}`}}),{request:n=t,...r}=e,i=e.clientType===`github-app`?{...r,clientType:`github-app`,request:n}:{...r,clientType:`oauth-app`,request:n,scopes:e.scopes||[]};if(!e.clientId)throw Error(`[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)`);if(!e.onVerification)throw Error(`[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)`);return Object.assign(SU.bind(null,i),{hook:CU.bind(null,i)})}var EU=`0.0.0-development`;async function DU(e){if(`code`in e.strategyOptions){let{authentication:t}=await oU({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:`token`,tokenType:`oauth`,...t}}if(`onVerification`in e.strategyOptions){let t=await TU({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request})({type:`oauth`});return{clientSecret:e.clientSecret,...t}}if(`token`in e.strategyOptions)return{type:`token`,tokenType:`oauth`,clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw Error(`[@octokit/auth-oauth-user] Invalid strategy options`)}async function OU(e,t={}){if(e.authentication||=(e.clientType,await DU(e)),e.authentication.invalid)throw Error(`[@octokit/auth-oauth-user] Token is invalid`);let n=e.authentication;if(`expiresAt`in n&&(t.type===`refresh`||new Date(n.expiresAt)<new Date)){let{authentication:t}=await fU({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:n.refreshToken,request:e.request});e.authentication={tokenType:`oauth`,type:`token`,...t}}if(t.type===`refresh`){if(e.clientType===`oauth-app`)throw Error(`[@octokit/auth-oauth-user] OAuth Apps do not support expiring tokens`);if(!n.hasOwnProperty(`expiresAt`))throw Error(`[@octokit/auth-oauth-user] Refresh token missing`);await e.onTokenCreated?.(e.authentication,{type:t.type})}if(t.type===`check`||t.type===`reset`){let n=t.type===`check`?dU:hU;try{let{authentication:r}=await n({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request});return e.authentication={tokenType:`oauth`,type:`token`,...r},t.type===`reset`&&await e.onTokenCreated?.(e.authentication,{type:t.type}),e.authentication}catch(t){throw t.status===404&&(t.message=`[@octokit/auth-oauth-user] Token is invalid`,e.authentication.invalid=!0),t}}if(t.type===`delete`||t.type===`deleteAuthorization`){let n=t.type===`delete`?gU:_U;try{await n({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.authentication.token,request:e.request})}catch(e){if(e.status!==404)throw e}return e.authentication.invalid=!0,e.authentication}return e.authentication}var kU=/\/applications\/[^/]+\/(token|grant)s?/;function AU(e){return e&&kU.test(e)}async function jU(e,t,n,r={}){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);if(AU(i.url)){let n=btoa(`${e.clientId}:${e.clientSecret}`);return i.headers.authorization=`basic ${n}`,t(i)}let{token:a}=(e.clientType,await OU({...e,request:t}));return i.headers.authorization=`token `+a,t(i)}function MU({clientId:e,clientSecret:t,clientType:n=`oauth-app`,request:r=FV.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${EU} ${WB()}`}}),onTokenCreated:i,...a}){let o=Object.assign({clientType:n,clientId:e,clientSecret:t,onTokenCreated:i,strategyOptions:a,request:r});return Object.assign(OU.bind(null,o),{hook:jU.bind(null,o)})}MU.VERSION=EU;async function NU(e,t){if(t.type===`oauth-app`)return{type:`oauth-app`,clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,headers:{authorization:`basic ${btoa(`${e.clientId}:${e.clientSecret}`)}`}};if(`factory`in t){let{type:n,...r}={...t,...e};return t.factory(r)}let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.request,...t};return(e.clientType,await MU({...n,clientType:e.clientType}))()}async function PU(e,t,n,r){let i=t.endpoint.merge(n,r);if(/\/login\/(oauth\/access_token|device\/code)$/.test(i.url))return t(i);if(e.clientType===`github-app`&&!AU(i.url))throw Error(`[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "${i.method} ${i.url}" is not supported.`);let a=btoa(`${e.clientId}:${e.clientSecret}`);i.headers.authorization=`basic ${a}`;try{return await t(i)}catch(e){throw e.status===401&&(e.message=`[@octokit/auth-oauth-app] "${i.method} ${i.url}" does not support clientId/clientSecret basic authentication.`),e}}var FU=`0.0.0-development`;function IU(e){let t=Object.assign({request:FV.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${FU} ${WB()}`}}),clientType:`oauth-app`},e);return Object.assign(NU.bind(null,t),{hook:PU.bind(null,t)})}function LU(e){return e.includes(`-----BEGIN RSA PRIVATE KEY-----`)}function RU(e){return e.includes(`-----BEGIN OPENSSH PRIVATE KEY-----`)}function zU(e){let t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0,r=e.length;t<r;t++)n[t]=e.charCodeAt(t);return t}function BU(e){let t=e.trim().split(`
`).slice(1,-1).join(``);return zU(atob(t))}function VU(e,t){return`${WU(e)}.${WU(t)}`}function HU(e){for(var t=``,n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);return UU(btoa(t))}function UU(e){return e.replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`)}function WU(e){return UU(btoa(JSON.stringify(e)))}function GU(e){return LU(e)?ne(e).export({type:`pkcs8`,format:`pem`}):e}async function KU({privateKey:e,payload:t}){let n=GU(e);if(LU(n))throw Error(`[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats`);if(RU(n))throw Error(`[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats`);let r={name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-256`}},i={alg:`RS256`,typ:`JWT`},a=BU(n),o=await ie.importKey(`pkcs8`,a,r,!1,[`sign`]),s=VU(i,t),c=zU(s);return`${s}.${HU(await ie.sign(r.name,o,c))}`}async function qU({id:e,privateKey:t,now:n=Math.floor(Date.now()/1e3)}){let r=t.replace(/\\n/g,`
`),i=n-30,a=i+600;return{appId:e,expiration:a,token:await KU({privateKey:r,payload:{iat:i,exp:a,iss:e}})}}var JU=class{constructor(e=1e3,t=0){if(isNaN(e)||e<0)throw Error(`Invalid max value`);if(isNaN(t)||t<0)throw Error(`Invalid ttl value`);this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=t}bumpLru(e){if(this.last===e)return;let t=this.last,n=e.next,r=e.prev;this.first===e&&(this.first=n),e.next=null,e.prev=t,t.next=e,r!==null&&(r.next=n),n!==null&&(n.prev=r),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let t=this.items[e];delete this.items[e],this.size--,t.prev!==null&&(t.prev.next=t.next),t.next!==null&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}}deleteMany(e){for(var t=0;t<e.length;t++)this.delete(e[t])}evict(){if(this.size>0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let t=this.items[e];if(this.ttl>0&&t.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(t),t.value}}getMany(e){let t=[];for(var n=0;n<e.length;n++)t.push(this.get(e[n]));return t}keys(){return Object.keys(this.items)}set(e,t){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];n.value=t,n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==n&&this.bumpLru(n);return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t};this.items[e]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}};async function YU({appId:e,privateKey:t,timeDifference:n,createJwt:r}){try{if(r){let{jwt:t,expiresAt:i}=await r(e,n);return{type:`app`,token:t,appId:e,expiresAt:i}}let i={id:e,privateKey:t};n&&Object.assign(i,{now:Math.floor(Date.now()/1e3)+n});let a=await qU(i);return{type:`app`,token:a.token,appId:a.appId,expiresAt:new Date(a.expiration*1e3).toISOString()}}catch(e){throw t===`-----BEGIN RSA PRIVATE KEY-----`?Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):e}}function XU(){return new JU(15e3,1e3*60*59)}async function ZU(e,t){let n=$U(t),r=await e.get(n);if(!r)return;let[i,a,o,s,c,l]=r.split(`|`);return{token:i,createdAt:a,expiresAt:o,permissions:t.permissions||c.split(/,/).reduce((e,t)=>(/!$/.test(t)?e[t.slice(0,-1)]=`write`:e[t]=`read`,e),{}),repositoryIds:t.repositoryIds,repositoryNames:t.repositoryNames,singleFileName:l,repositorySelection:s}}async function QU(e,t,n){let r=$U(t),i=t.permissions?``:Object.keys(n.permissions).map(e=>`${e}${n.permissions[e]===`write`?`!`:``}`).join(`,`),a=[n.token,n.createdAt,n.expiresAt,n.repositorySelection,i,n.singleFileName].join(`|`);await e.set(r,a)}function $U({installationId:e,permissions:t={},repositoryIds:n=[],repositoryNames:r=[]}){let i=Object.keys(t).sort().map(e=>t[e]===`read`?e:`${e}!`).join(`,`);return[e,n.sort().join(`,`),r.join(`,`),i].filter(Boolean).join(`|`)}function eW({installationId:e,token:t,createdAt:n,expiresAt:r,repositorySelection:i,permissions:a,repositoryIds:o,repositoryNames:s,singleFileName:c}){return Object.assign({type:`token`,tokenType:`installation`,token:t,installationId:e,permissions:a,createdAt:n,expiresAt:r,repositorySelection:i},o?{repositoryIds:o}:null,s?{repositoryNames:s}:null,c?{singleFileName:c}:null)}async function tW(e,t,n){let r=Number(t.installationId||e.installationId);if(!r)throw Error(`[@octokit/auth-app] installationId option is required for installation authentication.`);if(t.factory){let{type:n,factory:r,oauthApp:i,...a}={...e,...t};return r(a)}let i=n||e.request;return rW(e,{...t,installationId:r},i)}var nW=new Map;function rW(e,t,n){let r=$U(t);if(nW.has(r))return nW.get(r);let i=iW(e,t,n).finally(()=>nW.delete(r));return nW.set(r,i),i}async function iW(e,t,n){if(!t.refresh){let n=await ZU(e.cache,t);if(n){let{token:e,createdAt:r,expiresAt:i,permissions:a,repositoryIds:o,repositoryNames:s,singleFileName:c,repositorySelection:l}=n;return eW({installationId:t.installationId,token:e,createdAt:r,expiresAt:i,permissions:a,repositorySelection:l,repositoryIds:o,repositoryNames:s,singleFileName:c})}}let r=await YU(e),i={installation_id:t.installationId,mediaType:{previews:[`machine-man`]},headers:{authorization:`bearer ${r.token}`}};t.repositoryIds&&Object.assign(i,{repository_ids:t.repositoryIds}),t.repositoryNames&&Object.assign(i,{repositories:t.repositoryNames}),t.permissions&&Object.assign(i,{permissions:t.permissions});let{data:{token:a,expires_at:o,repositories:s,permissions:c,repository_selection:l,single_file:u}}=await n(`POST /app/installations/{installation_id}/access_tokens`,i),d=c||{},f=l||`all`,p=s?s.map(e=>e.id):void 0,m=s?s.map(e=>e.name):void 0,h=new Date().toISOString(),g={token:a,createdAt:h,expiresAt:o,repositorySelection:f,permissions:d,repositoryIds:p,repositoryNames:m};u&&Object.assign(i,{singleFileName:u}),await QU(e.cache,t,g);let _={installationId:t.installationId,token:a,createdAt:h,expiresAt:o,repositorySelection:f,permissions:d,repositoryIds:p,repositoryNames:m};return u&&Object.assign(_,{singleFileName:u}),eW(_)}async function aW(e,t){switch(t.type){case`app`:return YU(e);case`oauth-app`:return e.oauthApp({type:`oauth-app`});case`installation`:return tW(e,{...t,type:`installation`});case`oauth-user`:return e.oauthApp(t);default:throw Error(`Invalid auth type: ${t.type}`)}}var oW=[`/app`,`/app/hook/config`,`/app/hook/deliveries`,`/app/hook/deliveries/{delivery_id}`,`/app/hook/deliveries/{delivery_id}/attempts`,`/app/installations`,`/app/installations/{installation_id}`,`/app/installations/{installation_id}/access_tokens`,`/app/installations/{installation_id}/suspended`,`/app/installation-requests`,`/marketplace_listing/accounts/{account_id}`,`/marketplace_listing/plan`,`/marketplace_listing/plans`,`/marketplace_listing/plans/{plan_id}/accounts`,`/marketplace_listing/stubbed/accounts/{account_id}`,`/marketplace_listing/stubbed/plan`,`/marketplace_listing/stubbed/plans`,`/marketplace_listing/stubbed/plans/{plan_id}/accounts`,`/orgs/{org}/installation`,`/repos/{owner}/{repo}/installation`,`/users/{username}/installation`];function sW(e){let t=`^(?:${e.map(e=>e.split(`/`).map(e=>e.startsWith(`{`)?`(?:.+?)`:e).join(`/`)).map(e=>`(?:${e})`).join(`|`)})$`;return new RegExp(t,`i`)}var cW=sW(oW);function lW(e){return!!e&&cW.test(e.split(`?`)[0])}var uW=5*1e3;function dW(e){return!(e.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||e.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}async function fW(e,t,n,r){let i=t.endpoint.merge(n,r),a=i.url;if(/\/login\/oauth\/access_token$/.test(a))return t(i);if(lW(a.replace(t.endpoint.DEFAULTS.baseUrl,``))){let{token:n}=await YU(e);i.headers.authorization=`bearer ${n}`;let r;try{r=await t(i)}catch(n){if(dW(n)||n.response.headers.date===void 0)throw n;let r=Math.floor((Date.parse(n.response.headers.date)-Date.parse(new Date().toString()))/1e3);e.log.warn(n.message),e.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${r} seconds. Retrying request with the difference accounted for.`);let{token:a}=await YU({...e,timeDifference:r});return i.headers.authorization=`bearer ${a}`,t(i)}return r}if(AU(a)){let n=await e.oauthApp({type:`oauth-app`});return i.headers.authorization=n.headers.authorization,t(i)}let{token:o,createdAt:s}=await tW(e,{},t.defaults({baseUrl:i.baseUrl}));return i.headers.authorization=`token ${o}`,pW(e,t,i,s)}async function pW(e,t,n,r,i=0){let a=new Date-+new Date(r);try{return await t(n)}catch(o){if(o.status!==401)throw o;if(a>=uW)throw i>0&&(o.message=`After ${i} retries within ${a/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`),o;++i;let s=i*1e3;return e.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${i}, wait: ${s/1e3}s)`),await new Promise(e=>setTimeout(e,s)),pW(e,t,n,r,i)}}var mW=`8.1.2`;function hW(e){if(!e.appId)throw Error(`[@octokit/auth-app] appId option is required`);if(!e.privateKey&&!e.createJwt)throw Error(`[@octokit/auth-app] privateKey option is required`);if(e.privateKey&&e.createJwt)throw Error(`[@octokit/auth-app] privateKey and createJwt options are mutually exclusive`);if(`installationId`in e&&!e.installationId)throw Error(`[@octokit/auth-app] installationId is set to a falsy value`);let t=e.log||{};typeof t.warn!=`function`&&(t.warn=console.warn.bind(console));let n=e.request||FV.defaults({headers:{"user-agent":`octokit-auth-app.js/${mW} ${WB()}`}}),r=Object.assign({request:n,cache:XU()},e,e.installationId?{installationId:Number(e.installationId)}:{},{log:t,oauthApp:IU({clientType:`github-app`,clientId:e.clientId||``,clientSecret:e.clientSecret||``,request:n})});return Object.assign(aW.bind(null,r),{hook:fW.bind(null,r)})}async function gW(e){return{type:`unauthenticated`,reason:e}}function _W(e){return e.status!==403||!e.response?!1:e.response.headers[`x-ratelimit-remaining`]===`0`}var vW=/\babuse\b/i;function yW(e){return e.status===403?vW.test(e.message):!1}async function bW(e,t,n,r){let i=t.endpoint.merge(n,r);return t(i).catch(t=>{throw t.status===404?(t.message=`Not found. May be due to lack of authentication. Reason: ${e}`,t):_W(t)?(t.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${e}`,t):yW(t)?(t.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${e}`,t):t.status===401?(t.message=`Unauthorized. "${i.method} ${i.url}" failed most likely due to lack of authentication. Reason: ${e}`,t):(t.status>=400&&t.status<500&&(t.message=t.message.replace(/\.?$/,`. May be caused by lack of authentication (${e}).`)),t)})}var xW=function(e){if(!e||!e.reason)throw Error(`[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth`);return Object.assign(gW.bind(null,e.reason),{hook:bW.bind(null,e.reason)})},SW=`8.0.3`;function CW(e,t,n){if(Array.isArray(t)){for(let r of t)CW(e,r,n);return}e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(n)}var wW=aH.defaults({userAgent:`octokit-oauth-app.js/${SW} ${WB()}`});async function TW(e,t){let{name:n,action:r}=t;if(e.eventHandlers[`${n}.${r}`])for(let i of e.eventHandlers[`${n}.${r}`])await i(t);if(e.eventHandlers[n])for(let r of e.eventHandlers[n])await r(t)}async function EW(e,t){return e.octokit.auth({type:`oauth-user`,...t,async factory(t){let n=new e.Octokit({authStrategy:MU,auth:t}),r=await n.auth({type:`get`});return await TW(e,{name:`token`,action:`created`,token:r.token,scopes:r.scopes,authentication:r,octokit:n}),n}})}function DW(e,t){let n={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return aU({clientType:e.clientType,...n})}async function OW(e,t){let n=await e.octokit.auth({type:`oauth-user`,...t});return await TW(e,{name:`token`,action:`created`,token:n.token,scopes:n.scopes,authentication:n,octokit:new e.Octokit({authStrategy:MU,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.token,scopes:n.scopes,refreshToken:n.refreshToken,expiresAt:n.expiresAt,refreshTokenExpiresAt:n.refreshTokenExpiresAt}})}),{authentication:n}}async function kW(e,t){let n=await dU({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(n.authentication,{type:`token`,tokenType:`oauth`}),n}async function AW(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if(e.clientType===`oauth-app`){let t=await hU({clientType:`oauth-app`,...n}),r=Object.assign(t.authentication,{type:`token`,tokenType:`oauth`});return await TW(e,{name:`token`,action:`reset`,token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:r,octokit:new e.Octokit({authStrategy:MU,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:r}}let r=await hU({clientType:`github-app`,...n}),i=Object.assign(r.authentication,{type:`token`,tokenType:`oauth`});return await TW(e,{name:`token`,action:`reset`,token:r.authentication.token,authentication:i,octokit:new e.Octokit({authStrategy:MU,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:i}}async function jW(e,t){if(e.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps`);let n=await fU({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),r=Object.assign(n.authentication,{type:`token`,tokenType:`oauth`});return await TW(e,{name:`token`,action:`refreshed`,token:n.authentication.token,authentication:r,octokit:new e.Octokit({authStrategy:MU,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:r}}async function MW(e,t){if(e.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps`);let n=await mU({clientType:`github-app`,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),r=Object.assign(n.authentication,{type:`token`,tokenType:`oauth`});return await TW(e,{name:`token`,action:`scoped`,token:n.authentication.token,authentication:r,octokit:new e.Octokit({authStrategy:MU,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:r}}async function NW(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},r=e.clientType===`oauth-app`?await gU({clientType:`oauth-app`,...n}):await gU({clientType:`github-app`,...n});return await TW(e,{name:`token`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:xW,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),r}async function PW(e,t){let n={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},r=e.clientType===`oauth-app`?await _U({clientType:`oauth-app`,...n}):await _U({clientType:`github-app`,...n});return await TW(e,{name:`token`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:xW,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),await TW(e,{name:`authorization`,action:`deleted`,token:t.token,octokit:new e.Octokit({authStrategy:xW,auth:{reason:`Handling "authorization.deleted" event. The access for the app has been revoked.`}})}),r}var FW=class{static VERSION=SW;static defaults(e){return class extends this{constructor(...t){super({...e,...t[0]})}}}constructor(e){let t=e.Octokit||wW;this.type=e.clientType||`oauth-app`;let n=new t({authStrategy:IU,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),r={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:n,eventHandlers:{}};this.on=CW.bind(null,r),this.octokit=n,this.getUserOctokit=EW.bind(null,r),this.getWebFlowAuthorizationUrl=DW.bind(null,r),this.createToken=OW.bind(null,r),this.checkToken=kW.bind(null,r),this.resetToken=AW.bind(null,r),this.refreshToken=jW.bind(null,r),this.scopeToken=MW.bind(null,r),this.deleteToken=NW.bind(null,r),this.deleteAuthorization=PW.bind(null,r)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization},IW=`6.0.0`;async function LW(e,t){if(!e||!t)throw TypeError(`[@octokit/webhooks-methods] secret & payload required for sign()`);if(typeof t!=`string`)throw TypeError(`[@octokit/webhooks-methods] payload must be a string`);let n=`sha256`;return`${n}=${te(n,e).update(t).digest(`hex`)}`}LW.VERSION=IW;async function RW(e,t,n){if(!e||!t||!n)throw TypeError(`[@octokit/webhooks-methods] secret, eventPayload & signature required`);if(typeof t!=`string`)throw TypeError(`[@octokit/webhooks-methods] eventPayload must be a string`);let r=se.from(n),i=se.from(await LW(e,t));return r.length===i.length?ae(r,i):!1}RW.VERSION=IW;async function zW(e,t,n,r){if(await RW(e,t,n))return!0;if(r!==void 0)for(let e of r){let r=await RW(e,t,n);if(r)return r}return!1}var BW=(e={})=>(typeof e.debug!=`function`&&(e.debug=()=>{}),typeof e.info!=`function`&&(e.info=()=>{}),typeof e.warn!=`function`&&(e.warn=console.warn.bind(console)),typeof e.error!=`function`&&(e.error=console.error.bind(console)),e),VW=`branch_protection_configuration,branch_protection_configuration.disabled,branch_protection_configuration.enabled,branch_protection_rule,branch_protection_rule.created,branch_protection_rule.deleted,branch_protection_rule.edited,check_run,check_run.completed,check_run.created,check_run.requested_action,check_run.rerequested,check_suite,check_suite.completed,check_suite.requested,check_suite.rerequested,code_scanning_alert,code_scanning_alert.appeared_in_branch,code_scanning_alert.closed_by_user,code_scanning_alert.created,code_scanning_alert.fixed,code_scanning_alert.reopened,code_scanning_alert.reopened_by_user,commit_comment,commit_comment.created,create,custom_property,custom_property.created,custom_property.deleted,custom_property.promote_to_enterprise,custom_property.updated,custom_property_values,custom_property_values.updated,delete,dependabot_alert,dependabot_alert.auto_dismissed,dependabot_alert.auto_reopened,dependabot_alert.created,dependabot_alert.dismissed,dependabot_alert.fixed,dependabot_alert.reintroduced,dependabot_alert.reopened,deploy_key,deploy_key.created,deploy_key.deleted,deployment,deployment.created,deployment_protection_rule,deployment_protection_rule.requested,deployment_review,deployment_review.approved,deployment_review.rejected,deployment_review.requested,deployment_status,deployment_status.created,discussion,discussion.answered,discussion.category_changed,discussion.closed,discussion.created,discussion.deleted,discussion.edited,discussion.labeled,discussion.locked,discussion.pinned,discussion.reopened,discussion.transferred,discussion.unanswered,discussion.unlabeled,discussion.unlocked,discussion.unpinned,discussion_comment,discussion_comment.created,discussion_comment.deleted,discussion_comment.edited,fork,github_app_authorization,github_app_authorization.revoked,gollum,installation,installation.created,installation.deleted,installation.new_permissions_accepted,installation.suspend,installation.unsuspend,installation_repositories,installation_repositories.added,installation_repositories.removed,installation_target,installation_target.renamed,issue_comment,issue_comment.created,issue_comment.deleted,issue_comment.edited,issue_dependencies,issue_dependencies.blocked_by_added,issue_dependencies.blocked_by_removed,issue_dependencies.blocking_added,issue_dependencies.blocking_removed,issues,issues.assigned,issues.closed,issues.deleted,issues.demilestoned,issues.edited,issues.labeled,issues.locked,issues.milestoned,issues.opened,issues.pinned,issues.reopened,issues.transferred,issues.typed,issues.unassigned,issues.unlabeled,issues.unlocked,issues.unpinned,issues.untyped,label,label.created,label.deleted,label.edited,marketplace_purchase,marketplace_purchase.cancelled,marketplace_purchase.changed,marketplace_purchase.pending_change,marketplace_purchase.pending_change_cancelled,marketplace_purchase.purchased,member,member.added,member.edited,member.removed,membership,membership.added,membership.removed,merge_group,merge_group.checks_requested,merge_group.destroyed,meta,meta.deleted,milestone,milestone.closed,milestone.created,milestone.deleted,milestone.edited,milestone.opened,org_block,org_block.blocked,org_block.unblocked,organization,organization.deleted,organization.member_added,organization.member_invited,organization.member_removed,organization.renamed,package,package.published,package.updated,page_build,personal_access_token_request,personal_access_token_request.approved,personal_access_token_request.cancelled,personal_access_token_request.created,personal_access_token_request.denied,ping,project,project.closed,project.created,project.deleted,project.edited,project.reopened,project_card,project_card.converted,project_card.created,project_card.deleted,project_card.edited,project_card.moved,project_column,project_column.created,project_column.deleted,project_column.edited,project_column.moved,projects_v2,projects_v2.closed,projects_v2.created,projects_v2.deleted,projects_v2.edited,projects_v2.reopened,projects_v2_item,projects_v2_item.archived,projects_v2_item.converted,projects_v2_item.created,projects_v2_item.deleted,projects_v2_item.edited,projects_v2_item.reordered,projects_v2_item.restored,projects_v2_status_update,projects_v2_status_update.created,projects_v2_status_update.deleted,projects_v2_status_update.edited,public,pull_request,pull_request.assigned,pull_request.auto_merge_disabled,pull_request.auto_merge_enabled,pull_request.closed,pull_request.converted_to_draft,pull_request.demilestoned,pull_request.dequeued,pull_request.edited,pull_request.enqueued,pull_request.labeled,pull_request.locked,pull_request.milestoned,pull_request.opened,pull_request.ready_for_review,pull_request.reopened,pull_request.review_request_removed,pull_request.review_requested,pull_request.synchronize,pull_request.unassigned,pull_request.unlabeled,pull_request.unlocked,pull_request_review,pull_request_review.dismissed,pull_request_review.edited,pull_request_review.submitted,pull_request_review_comment,pull_request_review_comment.created,pull_request_review_comment.deleted,pull_request_review_comment.edited,pull_request_review_thread,pull_request_review_thread.resolved,pull_request_review_thread.unresolved,push,registry_package,registry_package.published,registry_package.updated,release,release.created,release.deleted,release.edited,release.prereleased,release.published,release.released,release.unpublished,repository,repository.archived,repository.created,repository.deleted,repository.edited,repository.privatized,repository.publicized,repository.renamed,repository.transferred,repository.unarchived,repository_advisory,repository_advisory.published,repository_advisory.reported,repository_dispatch,repository_dispatch.sample.collected,repository_import,repository_ruleset,repository_ruleset.created,repository_ruleset.deleted,repository_ruleset.edited,repository_vulnerability_alert,repository_vulnerability_alert.create,repository_vulnerability_alert.dismiss,repository_vulnerability_alert.reopen,repository_vulnerability_alert.resolve,secret_scanning_alert,secret_scanning_alert.assigned,secret_scanning_alert.created,secret_scanning_alert.publicly_leaked,secret_scanning_alert.reopened,secret_scanning_alert.resolved,secret_scanning_alert.unassigned,secret_scanning_alert.validated,secret_scanning_alert_location,secret_scanning_alert_location.created,secret_scanning_scan,secret_scanning_scan.completed,security_advisory,security_advisory.published,security_advisory.updated,security_advisory.withdrawn,security_and_analysis,sponsorship,sponsorship.cancelled,sponsorship.created,sponsorship.edited,sponsorship.pending_cancellation,sponsorship.pending_tier_change,sponsorship.tier_changed,star,star.created,star.deleted,status,sub_issues,sub_issues.parent_issue_added,sub_issues.parent_issue_removed,sub_issues.sub_issue_added,sub_issues.sub_issue_removed,team,team.added_to_repository,team.created,team.deleted,team.edited,team.removed_from_repository,team_add,watch,watch.started,workflow_dispatch,workflow_job,workflow_job.completed,workflow_job.in_progress,workflow_job.queued,workflow_job.waiting,workflow_run,workflow_run.completed,workflow_run.in_progress,workflow_run.requested`.split(`,`);function HW(e,t={}){if(typeof e!=`string`)throw TypeError(`eventName must be of type string`);if(e===`*`)throw TypeError(`Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead`);if(e===`error`)throw TypeError(`Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead`);if(t.onUnknownEventName!==`ignore`&&!VW.includes(e)){if(t.onUnknownEventName!==`warn`)throw TypeError(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`);(t.log||console).warn(`"${e}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}function UW(e,t,n){e.hooks[t]||(e.hooks[t]=[]),e.hooks[t].push(n)}function WW(e,t,n){if(Array.isArray(t)){t.forEach(t=>WW(e,t,n));return}HW(t,{onUnknownEventName:`warn`,log:e.log}),UW(e,t,n)}function GW(e,t){UW(e,`*`,t)}function KW(e,t){UW(e,`error`,t)}function qW(e,t){let n;try{n=e(t)}catch(e){console.log(`FATAL: Error occurred in "error" event handler`),console.log(e)}n&&n.catch&&n.catch(e=>{console.log(`FATAL: Error occurred in "error" event handler`),console.log(e)})}function JW(e,t,n){let r=[e.hooks[n],e.hooks[`*`]];return t&&r.unshift(e.hooks[`${n}.${t}`]),[].concat(...r.filter(Boolean))}function YW(e,t){let n=e.hooks.error||[];if(t instanceof Error){let e=Object.assign(AggregateError([t],t.message),{event:t});return n.forEach(t=>qW(t,e)),Promise.reject(e)}if(!t||!t.name){let e=Error(`Event name not passed`);throw AggregateError([e],e.message)}if(!t.payload){let e=Error(`Event name not passed`);throw AggregateError([e],e.message)}let r=JW(e,`action`in t.payload?t.payload.action:null,t.name);if(r.length===0)return Promise.resolve();let i=[],a=r.map(n=>{let r=Promise.resolve(t);return e.transform&&(r=r.then(e.transform)),r.then(e=>n(e)).catch(e=>i.push(Object.assign(e,{event:t})))});return Promise.all(a).then(()=>{if(i.length===0)return;let e=AggregateError(i,i.map(e=>e.message).join(`
`));throw Object.assign(e,{event:t}),n.forEach(t=>qW(t,e)),e})}function XW(e,t,n){if(Array.isArray(t)){t.forEach(t=>XW(e,t,n));return}if(e.hooks[t]){for(let r=e.hooks[t].length-1;r>=0;r--)if(e.hooks[t][r]===n){e.hooks[t].splice(r,1);return}}}function ZW(e){let t={hooks:{},log:BW(e&&e.log)};return e&&e.transform&&(t.transform=e.transform),{on:WW.bind(null,t),onAny:GW.bind(null,t),onError:KW.bind(null,t),removeListener:XW.bind(null,t),receive:YW.bind(null,t)}}async function QW(e,t){if(!await zW(e.secret,t.payload,t.signature,e.additionalSecrets).catch(()=>!1)){let n=Error(`[@octokit/webhooks] signature does not match event payload and secret`);return n.event=t,n.status=400,e.eventHandler.receive(n)}let n;try{n=JSON.parse(t.payload)}catch(e){throw e.message=`Invalid JSON`,e.status=400,AggregateError([e],e.message)}return e.eventHandler.receive({id:t.id,name:t.name,payload:n})}var $W=new TextDecoder(`utf-8`,{fatal:!1});$W.decode.bind($W);var eG=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(e){if(!e||!e.secret)throw Error(`[@octokit/webhooks] options.secret required`);let t={eventHandler:ZW(e),secret:e.secret,additionalSecrets:e.additionalSecrets,hooks:{},log:BW(e.log)};this.sign=LW.bind(null,e.secret),this.verify=RW.bind(null,e.secret),this.on=t.eventHandler.on,this.onAny=t.eventHandler.onAny,this.onError=t.eventHandler.onError,this.removeListener=t.eventHandler.removeListener,this.receive=t.eventHandler.receive,this.verifyAndReceive=QW.bind(null,t)}},tG=`16.1.2`;function nG(e,t){return new eG({secret:t.secret,transform:async t=>{if(!(`installation`in t.payload)||typeof t.payload.installation!=`object`){let n=new e.constructor({authStrategy:xW,auth:{reason:`"installation" key missing in webhook event payload`}});return{...t,octokit:n}}let n=t.payload.installation.id,r=await e.auth({type:`installation`,installationId:n,factory(e){return new e.octokit.constructor({...e.octokitOptions,authStrategy:hW,auth:{...e,installationId:n}})}});return r.hook.before(`request`,e=>{e.headers[`x-github-delivery`]=t.id}),{...t,octokit:r}}})}async function rG(e,t){return e.octokit.auth({type:`installation`,installationId:t,factory(e){let n={...e.octokitOptions,authStrategy:hW,auth:{...e,installationId:t}};return new e.octokit.constructor(n)}})}function iG(e){return Object.assign(aG.bind(null,e),{iterator:oG.bind(null,e)})}async function aG(e,t){let n=oG(e)[Symbol.asyncIterator](),r=await n.next();for(;!r.done;)await t(r.value),r=await n.next()}function oG(e){return{async*[Symbol.asyncIterator](){let t=dH.iterator(e.octokit,`GET /app/installations`);for await(let{data:n}of t)for(let t of n)yield{octokit:await rG(e,t.id),installation:t}}}}function sG(e){return Object.assign(cG.bind(null,e),{iterator:uG.bind(null,e)})}async function cG(e,t,n){let r=uG(e,n?t:void 0)[Symbol.asyncIterator](),i=await r.next();for(;!i.done;)n?await n(i.value):await t(i.value),i=await r.next()}function lG(e,t){return{async*[Symbol.asyncIterator](){yield{octokit:await e.getInstallationOctokit(t)}}}}function uG(e,t){return{async*[Symbol.asyncIterator](){let n=t?lG(e,t.installationId):e.eachInstallation.iterator();for await(let{octokit:e}of n){let t=dH.iterator(e,`GET /installation/repositories`);for await(let{data:n}of t)for(let t of n)yield{octokit:e,repository:t}}}}}function dG(e){let t;return async function(n={}){t||=fG(e);let r=await t,i=new URL(r);return n.target_id!==void 0&&(i.pathname+=`/permissions`,i.searchParams.append(`target_id`,n.target_id.toFixed())),n.state!==void 0&&i.searchParams.append(`state`,n.state),i.href}}async function fG(e){let{data:t}=await e.octokit.request(`GET /app`);if(!t)throw Error(`[@octokit/app] unable to fetch metadata for app`);return`${t.html_url}/installations/new`}var pG=class{static VERSION=tG;static defaults(e){return class extends this{constructor(...t){super({...e,...t[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(e){let t=e.Octokit||aH,n={authStrategy:hW,auth:Object.assign({appId:e.appId,privateKey:e.privateKey},e.oauth?{clientId:e.oauth.clientId,clientSecret:e.oauth.clientSecret}:{})};`log`in e&&e.log!==void 0&&(n.log=e.log),this.octokit=new t(n),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log),e.webhooks?this.webhooks=nG(this.octokit,e.webhooks):Object.defineProperty(this,`webhooks`,{get(){throw Error(`[@octokit/app] webhooks option not set`)}}),e.oauth?this.oauth=new FW({...e.oauth,clientType:`github-app`,Octokit:t}):Object.defineProperty(this,`oauth`,{get(){throw Error(`[@octokit/app] oauth.clientId / oauth.clientSecret options are not set`)}}),this.getInstallationOctokit=rG.bind(null,this),this.eachInstallation=iG(this),this.eachRepository=sG(this),this.getInstallationUrl=dG(this)}},mG=aH.plugin(FH,fH,OH,HH,eU).defaults({userAgent:`octokit.js/0.0.0-development`,throttle:{onRateLimit:hG,onSecondaryRateLimit:gG}});function hG(e,t,n){if(n.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),t.request.retryCount===0)return n.log.info(`Retrying after ${e} seconds!`),!0}function gG(e,t,n){if(n.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),t.request.retryCount===0)return n.log.info(`Retrying after ${e} seconds!`),!0}pG.defaults({Octokit:mG}),FW.defaults({Octokit:mG});function _G(e){return _(`sha256`).update(e).digest(`hex`).substring(0,16)}const vG=mG.plugin(eU);function yG(e){return Date.now()-e.createdAt>36e5}const bG=new Map;let xG=null;const SG=()=>({onRateLimit:(e,t,n,r)=>(console.warn(`Rate limit hit for ${t.method} ${t.url}, retry ${r+1}/3 after ${e}s`),r<3&&e<60),onSecondaryRateLimit:(e,t,n,r)=>(console.warn(`Secondary rate limit hit for ${t.method} ${t.url}, retry ${r+1}/3 after ${e}s`),r<3&&e<60)});function CG(e){let t=wx(),n=t.githubApiUrl;return new vG({userAgent:`octocode-mcp/${bb}`,baseUrl:n,request:{timeout:t.timeout||3e4},throttle:SG(),...e&&{auth:e}})}async function wG(e){if(e?.token){let t=_G(e.token),n=bG.get(t);if(n&&!yG(n))return n.client;let r=CG(e.token);return bG.set(t,{client:r,createdAt:Date.now()}),r}let t=bG.get(`DEFAULT`);return t&&!yG(t)?t.client:xG||(xG=(async()=>{try{let e=CG(await Tx());return bG.set(`DEFAULT`,{client:e,createdAt:Date.now()}),e}finally{xG=null}})(),xG)}const TG={AUTH_REQUIRED:`AUTH_REQUIRED`,RATE_LIMIT_PRIMARY:`RATE_LIMIT_PRIMARY`,RATE_LIMIT_SECONDARY:`RATE_LIMIT_SECONDARY`,FORBIDDEN_PERMISSIONS:`FORBIDDEN_PERMISSIONS`,NOT_FOUND:`NOT_FOUND`,INVALID_REQUEST:`INVALID_REQUEST`,SERVER_UNAVAILABLE:`SERVER_UNAVAILABLE`,NETWORK_CONNECTION_FAILED:`NETWORK_CONNECTION_FAILED`,REQUEST_TIMEOUT:`REQUEST_TIMEOUT`,UNKNOWN:`UNKNOWN`},EG={[TG.AUTH_REQUIRED]:{message:`GitHub authentication required`,suggestion:`TELL THE USER: Refresh your GitHub token! Run 'gh auth login' OR 'gh auth refresh' OR set a new GITHUB_TOKEN/GH_TOKEN environment variable`,explanation:`API request requires authentication. GitHub APIs have different rate limits for authenticated (5000/hour) vs unauthenticated (60/hour) requests.`},[TG.RATE_LIMIT_PRIMARY]:{message:`GitHub API rate limit exceeded`,messageWithTime:(e,t)=>`GitHub API rate limit exceeded. Resets at ${e.toISOString()} (in ${t} seconds)`,messageWithoutTime:`GitHub API rate limit exceeded. Reset time unavailable - check GitHub status or try again later`,suggestion:`Set GITHUB_TOKEN for higher rate limits (5000/hour vs 60/hour)`,explanation:`Primary rate limit tracks total API calls per hour. Authenticated users get 5000 requests/hour, unauthenticated get 60 requests/hour.`},[TG.RATE_LIMIT_SECONDARY]:{message:e=>`GitHub secondary rate limit triggered. Retry after ${e} seconds`,suggestion:`Reduce request frequency to avoid abuse detection`,explanation:`Secondary rate limits prevent API abuse by limiting request frequency. Triggered by making too many requests too quickly, regardless of remaining quota.`,fallbackRetryAfter:60},[TG.FORBIDDEN_PERMISSIONS]:{message:`Access forbidden - insufficient permissions`,suggestion:`Check repository permissions or authentication`,suggestionWithScopes:e=>`Missing required scopes: ${e.join(`, `)}. Run: gh auth refresh -s ${e.join(` -s `)}`,fallbackSuggestion:`Token may not have sufficient permissions for this operation`,explanation:`GitHub tokens require specific OAuth scopes for different operations. Common scopes: repo (full repository access), read:org (organization access), gist (gist access).`},[TG.NOT_FOUND]:{message:`Repository, resource, or path not found`,explanation:`Resource not found or not accessible. Could be: incorrect path, deleted resource, private repository without access, wrong branch name.`},[TG.INVALID_REQUEST]:{message:`Invalid search query or request parameters`,suggestion:`Check search syntax and parameter values`,explanation:`Request was well-formed but contains invalid parameters. Common causes: invalid search syntax, parameters out of range, invalid filter combinations.`},[TG.SERVER_UNAVAILABLE]:{message:`GitHub API temporarily unavailable`,suggestion:`Retry the request after a short delay`,explanation:`GitHub servers are temporarily unavailable. Usually resolves quickly. Check https://www.githubstatus.com for service status.`},[TG.NETWORK_CONNECTION_FAILED]:{message:`Network connection failed`,suggestion:`Check internet connection and GitHub API status`,explanation:`Cannot establish connection to GitHub API. Check internet connectivity, DNS settings, and firewall/proxy configuration.`},[TG.REQUEST_TIMEOUT]:{message:`Request timeout`,suggestion:`Retry the request or check network connectivity`,explanation:`Request exceeded timeout limit. Could be slow network, large response size, or GitHub server delay.`},[TG.UNKNOWN]:{message:`Unknown error occurred`,explanation:`An unexpected error occurred that does not match known error patterns.`}},DG={401:TG.AUTH_REQUIRED,403:TG.FORBIDDEN_PERMISSIONS,404:TG.NOT_FOUND,422:TG.INVALID_REQUEST,502:TG.SERVER_UNAVAILABLE,503:TG.SERVER_UNAVAILABLE,504:TG.SERVER_UNAVAILABLE},OG={CONNECTION_FAILED:[`ENOTFOUND`,`ECONNREFUSED`],TIMEOUT:[`timeout`]},kG={SECONDARY:/\bsecondary rate\b/i,GRAPHQL_TYPE:`RATE_LIMITED`},AG={RESET_BUFFER_SECONDS:1,SECONDARY_FALLBACK_SECONDS:60};function jG(e){return e instanceof TV?MG(e):e instanceof Error?zG(e):{error:typeof e==`string`?e:EG[TG.UNKNOWN].message,type:`unknown`}}function MG(e){let{status:t,message:n,response:r}=e;if(t===403)return NG(n,r);let i=DG[t];return i?RG(i,t):BG(TG.UNKNOWN,{error:n||EG[TG.UNKNOWN].message,status:t})}function NG(e,t){let n=t?.headers;if(kG.SECONDARY.test(e))return PG(n);let r=n?.[`x-ratelimit-remaining`],i=LG(t);return r===`0`||i?FG(n):IG(n)}function PG(e){let t=Number(e?.[`retry-after`])||AG.SECONDARY_FALLBACK_SECONDS;return Ix({limit_type:`secondary`,retry_after_seconds:t}),BG(TG.RATE_LIMIT_SECONDARY,{error:EG[TG.RATE_LIMIT_SECONDARY].message(t),status:403,rateLimitRemaining:0,retryAfter:t,scopesSuggestion:EG[TG.RATE_LIMIT_SECONDARY].suggestion})}function FG(e){let t=e?.[`x-ratelimit-reset`],n=t?new Date(parseInt(String(t))*1e3):null,r=n?Math.max(Math.ceil((n.getTime()-Date.now())/1e3)+AG.RESET_BUFFER_SECONDS,0):void 0,i=n?EG[TG.RATE_LIMIT_PRIMARY].messageWithTime(n,r):EG[TG.RATE_LIMIT_PRIMARY].messageWithoutTime;return Ix({limit_type:`primary`,retry_after_seconds:r,rate_limit_remaining:0,rate_limit_reset_ms:n?n.getTime():void 0}),BG(TG.RATE_LIMIT_PRIMARY,{error:i,status:403,rateLimitRemaining:0,rateLimitReset:n?n.getTime():void 0,retryAfter:r,scopesSuggestion:EG[TG.RATE_LIMIT_PRIMARY].suggestion})}function IG(e){let t=e?.[`x-accepted-oauth-scopes`],n=e?.[`x-oauth-scopes`],r=EG[TG.FORBIDDEN_PERMISSIONS].suggestion;return t&&n&&(r=VG(String(t),String(n))),BG(TG.FORBIDDEN_PERMISSIONS,{error:EG[TG.FORBIDDEN_PERMISSIONS].message,status:403,scopesSuggestion:r})}function LG(e){return(e?.data?.errors)?.some(e=>e.type===kG.GRAPHQL_TYPE)??!1}function RG(e,t){let n=EG[e];return BG(e,{error:n.message,status:t,...`suggestion`in n&&{scopesSuggestion:n.suggestion}})}function zG(e){return OG.CONNECTION_FAILED.some(t=>e.message.includes(t))?{error:EG[TG.NETWORK_CONNECTION_FAILED].message,type:`network`,scopesSuggestion:EG[TG.NETWORK_CONNECTION_FAILED].suggestion}:OG.TIMEOUT.some(t=>e.message.includes(t))?{error:EG[TG.REQUEST_TIMEOUT].message,type:`network`,scopesSuggestion:EG[TG.REQUEST_TIMEOUT].suggestion}:{error:e.message,type:`unknown`}}function BG(e,t){return{type:`http`,...t}}function VG(e,t){let n=e.split(`,`).map(e=>e.trim()).filter(Boolean),r=t.split(`,`).map(e=>e.trim()).filter(Boolean),i=n.filter(e=>!r.includes(e));return i.length>0?EG[TG.FORBIDDEN_PERMISSIONS].suggestionWithScopes(i):EG[TG.FORBIDDEN_PERMISSIONS].fallbackSuggestion}function HG(e){return`user:${e}`}var UG=class{queryParts=[];addOwnerRepo(e){if(e.owner&&e.repo){let t=Array.isArray(e.owner)?e.owner:[e.owner],n=Array.isArray(e.repo)?e.repo:[e.repo];t.forEach(e=>{n.forEach(t=>{this.queryParts.push(`repo:${e}/${t}`)})})}else e.owner&&(Array.isArray(e.owner)?e.owner:[e.owner]).forEach(e=>{this.queryParts.push(HG(e))});return this}addDateFilters(e){return Object.entries({created:`created`,updated:`updated`,"author-date":`author-date`,"committer-date":`committer-date`,"merged-at":`merged`,closed:`closed`}).forEach(([t,n])=>{let r=e[t];r&&this.queryParts.push(`${n}:${r}`)}),this}addArrayFilter(e,t,n=!1){return e&&e!==null&&(Array.isArray(e)?e:[e]).forEach(e=>{let r=n?`"${e}"`:e;this.queryParts.push(`${t}:${r}`)}),this}addBooleanFilter(e,t,n){return e===!0?this.queryParts.push(t):e===!1&&this.queryParts.push(n),this}addSimpleFilter(e,t){return e!=null&&this.queryParts.push(`${t}:${e}`),this}build(){return this.queryParts.join(` `).trim()}},WG=class extends UG{addQueryTerms(e){if(Array.isArray(e.keywordsToSearch)&&e.keywordsToSearch.length>0){let t=e.keywordsToSearch.filter(e=>e&&e.trim());t.length>0&&this.queryParts.push(...t)}return this}addSearchFilters(e){return this.addSimpleFilter(e.filename,`filename`),this.addSimpleFilter(e.extension,`extension`),this.addSimpleFilter(e.path,`path`),this}addMatchFilters(e){return e.match&&(Array.isArray(e.match)?e.match:[e.match]).forEach(e=>{e===`file`?this.queryParts.push(`in:file`):e===`path`&&this.queryParts.push(`in:path`)}),this}},GG=class extends UG{addQueryTerms(e){return Array.isArray(e.keywordsToSearch)&&e.keywordsToSearch.length>0&&this.queryParts.push(...e.keywordsToSearch),this}addRepoFilters(e){return this.addArrayFilter(e.topicsToSearch,`topic`),this.addSimpleFilter(e.stars,`stars`),this.addSimpleFilter(e.size,`size`),this.addSimpleFilter(e.created,`created`),e.updated&&this.queryParts.push(`pushed:${e.updated}`),this}addMatchFilters(e){return e.match&&(Array.isArray(e.match)?e.match:[e.match]).forEach(e=>{e===`name`?this.queryParts.push(`in:name`):e===`description`?this.queryParts.push(`in:description`):e===`readme`&&this.queryParts.push(`in:readme`)}),this}addQualityFilters(){return this.queryParts.push(`is:not-archived`),this}},KG=class extends UG{addBasicFilters(e){return e.query&&e.query.trim()&&this.queryParts.push(e.query.trim()),this.queryParts.push(`is:pr`),this}addStateFilters(e){return this.addSimpleFilter(e.state,`is`),this.addBooleanFilter(e.draft,`is:draft`,`-is:draft`),this.addBooleanFilter(e.merged,`is:merged`,`is:unmerged`),this}addUserFilters(e){return this.addSimpleFilter(e.author,`author`),this.addSimpleFilter(e.assignee,`assignee`),this.addSimpleFilter(e.mentions,`mentions`),this.addSimpleFilter(e.commenter,`commenter`),this.addSimpleFilter(e.involves,`involves`),this.addSimpleFilter(e[`reviewed-by`],`reviewed-by`),this.addSimpleFilter(e[`review-requested`],`review-requested`),this}addBranchFilters(e){return this.addSimpleFilter(e.head,`head`),this.addSimpleFilter(e.base,`base`),this}addEngagementFilters(e){return this.addSimpleFilter(e.comments,`comments`),this.addSimpleFilter(e.reactions,`reactions`),this.addSimpleFilter(e.interactions,`interactions`),this}addReviewFilters(e){return this}addOrganizationFilters(e){return this.addArrayFilter(e.label,`label`,!0),this}addNegativeFilters(e){return e[`no-assignee`]&&this.queryParts.push(`no:assignee`),e[`no-label`]&&this.queryParts.push(`no:label`),e[`no-milestone`]&&this.queryParts.push(`no:milestone`),e[`no-project`]&&this.queryParts.push(`no:project`),this}addMiscFilters(e){return this.queryParts.push(`archived:false`),this}};function qG(e){return new WG().addQueryTerms(e).addSearchFilters(e).addOwnerRepo(e).addMatchFilters(e).build()}function JG(e){return new GG().addQueryTerms(e).addOwnerRepo(e).addRepoFilters(e).addMatchFilters(e).addQualityFilters().build()}function YG(e){return new KG().addBasicFilters(e).addOwnerRepo(e).addStateFilters(e).addUserFilters(e).addBranchFilters(e).addDateFilters(e).addEngagementFilters(e).addReviewFilters(e).addOrganizationFilters(e).addNegativeFilters(e).addMiscFilters(e).build()}function XG(e){return e.draft!==void 0||e.author!==void 0||e.assignee!==void 0||e.query!==void 0||e.label&&e.label.length>0||e.mentions!==void 0||e.commenter!==void 0||e.involves!==void 0||e[`reviewed-by`]!==void 0||e[`review-requested`]!==void 0||e.reactions!==void 0||e.comments!==void 0||e.interactions!==void 0||e[`no-assignee`]!==void 0||e[`no-label`]!==void 0||e[`no-milestone`]!==void 0||e[`no-project`]!==void 0||e.created!==void 0||e.updated!==void 0||e[`merged-at`]!==void 0||e.closed!==void 0||e.merged!==void 0||Array.isArray(e.owner)||Array.isArray(e.repo)}async function ZG(e,t,n){return await Jx(Gx(`gh-api-code`,{keywordsToSearch:e.keywordsToSearch,owner:e.owner,repo:e.repo,extension:e.extension,filename:e.filename,path:e.path,match:e.match,limit:e.limit,page:e.page},n),async()=>await QG(e,t),{shouldCache:e=>`data`in e&&!e.error})}async function QG(e,t){try{let n=await wG(t);if(e.keywordsToSearch&&e.keywordsToSearch.length>0&&e.keywordsToSearch.filter(e=>e&&e.trim()).length===0)return await Fx(J.GITHUB_SEARCH_CODE,kb.QUERY_EMPTY.code),{error:kb.QUERY_EMPTY.message,type:`http`,status:400};let r=qG(e);if(!r.trim())return await Fx(J.GITHUB_SEARCH_CODE,kb.QUERY_EMPTY.code),{error:kb.QUERY_EMPTY.message,type:`http`,status:400};let i=Math.min(typeof e.limit==`number`?e.limit:30,100),a=e.page||1,o={q:r,per_page:i,page:a,headers:{Accept:`application/vnd.github.v3.text-match+json`}},s=await n.rest.search.code(o),c=await $G(s),l=Math.min(c.total_count,1e3),u=Math.min(Math.ceil(l/i),10),d=a<u;return{data:{total_count:c.total_count,items:c.items,repository:c.repository,matchLocations:c.matchLocations,minified:c.minified,minificationFailed:c.minificationFailed,minificationTypes:c.minificationTypes,_researchContext:c._researchContext,pagination:{currentPage:a,totalPages:u,perPage:i,totalMatches:l,hasMore:d}},status:200,headers:s.headers}}catch(e){return jG(e)}}async function $G(e){let t=e.data.items;return eK(t,e.data.total_count)}async function eK(e,t){let n=tK(e),r=new Set,i=!1,a=[],o=new Set,s=e.filter(e=>!sB(e.path)),c={items:await Promise.all(s.map(async e=>{o.add(e.path);let t=await Promise.all((e.text_matches||[]).map(async t=>{let n=t.fragment,o=FS.sanitizeContent(n||``);n=o.content,o.hasSecrets&&r.add(`Secrets detected in ${e.path}: ${o.secretsDetected.join(`, `)}`),o.warnings.length>0&&o.warnings.forEach(t=>r.add(`${e.path}: ${t}`));let s=await EB(n||``,e.path);return n=s.content,s.failed?i=!0:s.type!==`failed`&&a.push(s.type),{context:n||``,positions:t.matches?.map(e=>Array.isArray(e.indices)&&e.indices.length>=2?[e.indices[0],e.indices[1]]:[0,0])||[]}})),n=e;return{path:e.path,matches:t,url:e.html_url,repository:{nameWithOwner:e.repository.full_name,url:e.repository.url,pushedAt:e.repository.pushed_at||void 0},...n.last_modified_at&&{lastModifiedAt:n.last_modified_at},...a.length>0&&{minificationType:Array.from(new Set(a)).join(`,`)}}})),total_count:t===void 0?s.length:t,_researchContext:{foundFiles:Array.from(o),repositoryContext:n?(()=>{let e=n.full_name.split(`/`);return e.length===2&&e[0]&&e[1]?{owner:e[0],repo:e[1],branch:n.default_branch||void 0}:void 0})():void 0}};return n&&(c.repository={name:n.full_name,url:n.url,createdAt:n.created_at||void 0,updatedAt:n.updated_at||void 0,pushedAt:n.pushed_at||void 0}),r.size>0&&(c.matchLocations=Array.from(r)),c.minified=!i,c.minificationFailed=i,a.length>0&&(c.minificationTypes=Array.from(new Set(a))),c}function tK(e){if(e.length===0)return null;let t=e[0]?.repository;return t&&e.every(e=>e.repository.full_name===t.full_name)?t:null}async function nK(e,t={}){if(!Array.isArray(e))throw Fx(`promiseUtils`,wb.PROMISES_NOT_ARRAY.code).catch(()=>{}),Error(wb.PROMISES_NOT_ARRAY.message);if(e.length===0)return[];let{timeout:n=3e4,concurrency:r=e.length,onError:i}=t;if(n<=0)throw Fx(`promiseUtils`,wb.TIMEOUT_NOT_POSITIVE.code).catch(()=>{}),Error(wb.TIMEOUT_NOT_POSITIVE.message);if(r<=0)throw Fx(`promiseUtils`,wb.CONCURRENCY_NOT_POSITIVE.code).catch(()=>{}),Error(wb.CONCURRENCY_NOT_POSITIVE.message);let a=e.map((e,t)=>typeof e==`function`?e:()=>(Fx(`promiseUtils`,jb.NOT_A_FUNCTION.code).catch(()=>{}),Promise.reject(Error(jb.NOT_A_FUNCTION.message(t)))));if(r<a.length)return iK(a,r,n,i);let o=a.map((e,t)=>rK(e,t,n,i));return(await Promise.allSettled(o)).map((e,t)=>e.status===`fulfilled`?e.value:{success:!1,error:e.reason instanceof Error?e.reason:Error(String(e.reason)),index:t})}async function rK(e,t,n,r){let i,a=()=>{i!==void 0&&(clearTimeout(i),i=void 0)};try{let r=new Promise((e,r)=>{i=setTimeout(()=>{Fx(`promiseUtils`,jb.TIMEOUT.code).catch(()=>{}),r(Error(jb.TIMEOUT.message(t,n)))},n)}),o=await Promise.race([e(),r]);return a(),{success:!0,data:o,index:t}}catch(e){a();let n=e instanceof Error?e:Error(String(e));if(r)try{r(n,t)}catch{}return{success:!1,error:n,index:t}}}async function iK(e,t,n,r){let i=Array(e.length),a=0,o=async()=>{for(;a<e.length;){let t=a++,o=e[t];if(!o){Fx(`promiseUtils`,jb.FUNCTION_UNDEFINED.code).catch(()=>{}),i[t]={success:!1,error:Error(jb.FUNCTION_UNDEFINED.message),index:t};continue}try{i[t]=await rK(o,t,n,r)}catch(e){i[t]={success:!1,error:e instanceof Error?e:Error(String(e)),index:t}}}},s=[];for(let n=0;n<Math.min(t,e.length);n++)s.push(o());return await Promise.all(s),i}async function aK(e,t,n){let{results:r,errors:i}=await sK(e,t);return oK(n,r,i,e)}function oK(e,t,n,r){let i=[`instructions`,`results`,`hasResultsStatusHints`,`emptyStatusHints`,`errorStatusHints`],a=[`id`,`status`,`data`,`mainResearchGoal`,`researchGoal`,`reasoning`],o=[...i,...a,`owner`,`repo`],s=[...new Set([...o,...e.keysPriority||[]])],c=[],l=0,u=0,d=0,f=!1,p=!1,m=!1,h=new Set,g=new Set,_=new Set;t.forEach(e=>{let t=e.result.status,n=cK(e.result),r=e.result.hints;t===`hasResults`?(f=!0,r&&Array.isArray(r)&&r.forEach(e=>h.add(e))):t===`empty`?(p=!0,r&&Array.isArray(r)&&r.forEach(e=>g.add(e))):t===`error`&&(m=!0,r&&Array.isArray(r)&&r.forEach(e=>_.add(e)));let i={id:e.queryIndex+1,status:t,data:t===`error`&&e.result.error?{error:e.result.error}:n,mainResearchGoal:e.result.mainResearchGoal||lK(e.originalQuery,`mainResearchGoal`),researchGoal:e.result.researchGoal||lK(e.originalQuery,`researchGoal`),reasoning:e.result.reasoning||lK(e.originalQuery,`reasoning`)};c.push(i),t===`hasResults`?l++:t===`empty`?u++:d++}),n.forEach(e=>{let t=r[e.queryIndex];t&&(m=!0,c.push({id:e.queryIndex+1,status:`error`,data:{error:e.error},mainResearchGoal:lK(t,`mainResearchGoal`),researchGoal:lK(t,`researchGoal`),reasoning:lK(t,`reasoning`)}),d++)});let v=f?h.size>0?[...h]:[..._S(e.toolName,`hasResults`)]:[],y=p?g.size>0?[...g]:[..._S(e.toolName,`empty`)]:[],b=m?_.size>0?[..._]:[...vS()]:[];return{content:[{type:`text`,text:OB({instructions:uK(c.length,l,u,d),results:c,hasResultsStatusHints:v,emptyStatusHints:y,errorStatusHints:b},s)}],isError:!1}}async function sK(e,t){let n=[],r=[];return!e||e.length===0||(await nK(e.map((e,n)=>()=>t(e,n).then(t=>({result:t,queryIndex:n,originalQuery:e}))),{timeout:6e4,continueOnError:!0,concurrency:3,onError:(e,t)=>{r.push({queryIndex:t,error:e.message})}})).forEach(e=>{e.success&&e.data&&n.push({result:e.data.result,queryIndex:e.data.queryIndex,originalQuery:e.data.originalQuery})}),{results:n,errors:r}}function cK(e){let t=new Set([`mainResearchGoal`,`researchGoal`,`reasoning`,`error`,`status`,`query`,`hints`]),n={};for(let[r,i]of Object.entries(e))t.has(r)||(n[r]=i);return n}function lK(e,t){let n=e[t];return typeof n==`string`?n:void 0}function uK(e,t,n,r){let i=[];t>0&&i.push(`${t} hasResults`),n>0&&i.push(`${n} empty`),r>0&&i.push(`${r} failed`);let a=[`Bulk response with ${e} results: ${i.join(`, `)}. Each result includes the status, data, and research details.`];return t>0&&a.push(`Review hasResultsStatusHints for guidance on results with data.`),n>0&&a.push(`Review emptyStatusHints for no-results scenarios.`),r>0&&a.push(`Review errorStatusHints for error recovery strategies.`),a.join(`
`)}function dK(e,t){return t===`error`?[]:_S(e,t)}function fK(e,t){return yS(e,t)}const pK={[q.LOCAL_RIPGREP]:{hasResults:(e={})=>{let t=[];return e.searchEngine===`grep`&&t.push(...fK(q.LOCAL_RIPGREP,`grepFallback`)),e.fileCount&&e.fileCount>5&&t.push(...fK(q.LOCAL_RIPGREP,`parallelTip`)),e.fileCount&&e.fileCount>1&&t.push(...fK(q.LOCAL_RIPGREP,`multipleFiles`)),t},empty:(e={})=>{let t=[];return e.searchEngine===`grep`&&t.push(...fK(q.LOCAL_RIPGREP,`grepFallbackEmpty`)),t},error:(e={})=>e.errorType===`size_limit`?[`Too many results${e.matchCount?` (${e.matchCount} matches)`:``}. Narrow pattern/scope.`,...e.path?.includes(`node_modules`)?fK(q.LOCAL_RIPGREP,`nodeModulesSearch`):[],...fK(q.LOCAL_RIPGREP,`largeResult`)]:[]},[q.LOCAL_FETCH_CONTENT]:{hasResults:(e={})=>[e.hasMoreContent?`More content available - use charOffset for pagination.`:void 0],empty:(e={})=>[],error:(e={})=>e.errorType===`size_limit`&&e.isLarge?[e.fileSize?`Large file (~${Math.round(e.fileSize*.25)}K tokens).`:void 0,...fK(q.LOCAL_FETCH_CONTENT,`largeFile`)]:e.errorType===`pattern_too_broad`?[e.tokenEstimate?`Pattern too broad (~${e.tokenEstimate.toLocaleString()} tokens).`:void 0,...fK(q.LOCAL_FETCH_CONTENT,`patternTooBroad`)]:[]},[q.LOCAL_VIEW_STRUCTURE]:{hasResults:(e={})=>{let t=[];return e.entryCount&&e.entryCount>10&&t.push(...fK(q.LOCAL_VIEW_STRUCTURE,`parallelize`)),t},empty:(e={})=>[],error:(e={})=>e.errorType===`size_limit`&&e.entryCount?[`Directory has ${e.entryCount} entries${e.tokenEstimate?` (~${e.tokenEstimate.toLocaleString()} tokens)`:``}.`,...fK(q.LOCAL_VIEW_STRUCTURE,`largeDirectory`)]:[]},[q.LOCAL_FIND_FILES]:{hasResults:(e={})=>{let t=[];return e.fileCount&&e.fileCount>3&&t.push(...fK(q.LOCAL_FIND_FILES,`batchParallel`)),e.fileCount&&e.fileCount>20&&t.push(...fK(q.LOCAL_FIND_FILES,`manyResults`)),e.hasConfigFiles&&t.push(...fK(q.LOCAL_FIND_FILES,`configFiles`)),t},empty:(e={})=>[],error:(e={})=>[]},[q.GITHUB_SEARCH_CODE]:{hasResults:(e={})=>{let t=[];return e.hasOwnerRepo?t.push(...fK(q.GITHUB_SEARCH_CODE,`singleRepo`)):t.push(...fK(q.GITHUB_SEARCH_CODE,`multiRepo`)),t},empty:(e={})=>{let t=[];return e.match===`path`?t.push(...fK(q.GITHUB_SEARCH_CODE,`pathEmpty`)):e.hasOwnerRepo||t.push(...fK(q.GITHUB_SEARCH_CODE,`crossRepoEmpty`)),t},error:(e={})=>[]},[q.GITHUB_FETCH_CONTENT]:{hasResults:(e={})=>{let t=[];return e.isLarge&&t.push(...fK(q.GITHUB_FETCH_CONTENT,`largeFile`)),t},empty:(e={})=>[],error:(e={})=>e.errorType===`size_limit`?[...fK(q.GITHUB_FETCH_CONTENT,`fileTooLarge`)]:[]},[q.GITHUB_VIEW_REPO_STRUCTURE]:{hasResults:(e={})=>{let t=[];return e.entryCount&&e.entryCount>50&&(t.push(`Large directory (${e.entryCount} entries).`),t.push(...fK(q.GITHUB_VIEW_REPO_STRUCTURE,`largeDirectory`))),t},empty:(e={})=>[],error:(e={})=>[]},[q.GITHUB_SEARCH_PULL_REQUESTS]:{hasResults:(e={})=>[],empty:(e={})=>[],error:(e={})=>[]},[q.GITHUB_SEARCH_REPOSITORIES]:{hasResults:(e={})=>[],empty:(e={})=>[],error:(e={})=>[]},[q.PACKAGE_SEARCH]:{hasResults:(e={})=>[],empty:(e={})=>[],error:(e={})=>[]},[q.LSP_GOTO_DEFINITION]:{hasResults:(e={})=>{let t=[],n=e.locationCount;return n&&n>1&&(t.push(`Found ${n} definitions.`),t.push(...fK(q.LSP_GOTO_DEFINITION,`multipleDefinitions`))),e.hasExternalPackage&&t.push(...fK(q.LSP_GOTO_DEFINITION,`externalPackage`)),e.isFallback&&t.push(...fK(q.LSP_GOTO_DEFINITION,`fallbackMode`)),t},empty:(e={})=>{let t=[],n=e.searchRadius,r=e.lineHint;return n&&t.push(`Searched ±${n} lines from lineHint=${r}. Adjust hint.`),e.symbolName&&t.push(...fK(q.LSP_GOTO_DEFINITION,`symbolNotFound`)),t},error:(e={})=>{let t=e.symbolName,n=e.lineHint,r=e.uri;return e.errorType===`symbol_not_found`?[`Symbol "${t}" not found at line ${n}.`,...fK(q.LSP_GOTO_DEFINITION,`symbolNotFound`)]:e.errorType===`file_not_found`?[`File not found: ${r}`,...fK(q.LSP_GOTO_DEFINITION,`fileNotFound`)]:e.errorType===`timeout`?[...fK(q.LSP_GOTO_DEFINITION,`timeout`)]:[]}},[q.LSP_FIND_REFERENCES]:{hasResults:(e={})=>{let t=[],n=e.locationCount,r=e.fileCount,i=e.currentPage,a=e.totalPages;return n&&n>20&&(t.push(`Found ${n} references.`),t.push(...fK(q.LSP_FIND_REFERENCES,`manyReferences`))),e.hasMultipleFiles&&(t.push(`References span ${r||`multiple`} files.`),t.push(...fK(q.LSP_FIND_REFERENCES,`multipleFiles`))),e.hasMorePages&&(t.push(`Page ${i}/${a}.`),t.push(...fK(q.LSP_FIND_REFERENCES,`pagination`))),e.isFallback&&t.push(...fK(q.LSP_FIND_REFERENCES,`fallbackMode`)),t},empty:(e={})=>{let t=[];return e.symbolName&&t.push(...fK(q.LSP_FIND_REFERENCES,`symbolNotFound`)),t},error:(e={})=>e.errorType===`symbol_not_found`?[...fK(q.LSP_FIND_REFERENCES,`symbolNotFound`)]:e.errorType===`timeout`?[...fK(q.LSP_FIND_REFERENCES,`timeout`)]:[]},[q.LSP_CALL_HIERARCHY]:{hasResults:(e={})=>{let t=[],n=e.direction,r=e.callCount,i=e.depth,a=e.currentPage,o=e.totalPages;return n===`incoming`?(t.push(`Found ${r||`multiple`} callers.`),t.push(...fK(q.LSP_CALL_HIERARCHY,`incomingResults`))):(t.push(`Found ${r||`multiple`} callees.`),t.push(...fK(q.LSP_CALL_HIERARCHY,`outgoingResults`))),i&&i>1&&(t.push(`Depth=${i} showing ${i}-level call chain.`),t.push(...fK(q.LSP_CALL_HIERARCHY,`deepChain`))),e.hasMorePages&&(t.push(`Page ${a}/${o}.`),t.push(...fK(q.LSP_CALL_HIERARCHY,`pagination`))),e.isFallback&&t.push(...fK(q.LSP_CALL_HIERARCHY,`fallbackMode`)),t},empty:(e={})=>{let t=[];return e.direction===`incoming`?t.push(...fK(q.LSP_CALL_HIERARCHY,`noCallers`)):t.push(...fK(q.LSP_CALL_HIERARCHY,`noCallees`)),t},error:(e={})=>{let t=e.depth;return e.errorType===`not_a_function`?[...fK(q.LSP_CALL_HIERARCHY,`notAFunction`)]:e.errorType===`timeout`?[`Depth=${t} caused timeout.`,...fK(q.LSP_CALL_HIERARCHY,`timeout`)]:[]}}};function mK(e){return e in pK}function hK(e,t,n){let r=pK[e]?.[t];return r?r(n||{}).filter(e=>typeof e==`string`):[]}function gK(e){return e===`search`?[`Large codebase: avoid floods.`,`Flow: localSearchCode filesOnly → add type/path filters → localGetFileContent matchString → localSearchCode links.`,`Parallelize where safe.`]:[`Large file: don't read all.`,`Flow: localGetFileContent matchString → analyze → localSearchCode usages/imports → localGetFileContent related.`,`Use charLength to paginate if needed.`,`Avoid fullContent without charLength.`]}function _K(e,t,n){let r=dK(e,t),i=mK(e)?hK(e,t,n):[],a=[...r,...i];return[...new Set(a)]}function vK(e){let t=[];if(t.push(`GitHub Octokit API Error: ${e.error}`),e.scopesSuggestion&&t.push(e.scopesSuggestion),e.rateLimitRemaining!==void 0&&e.rateLimitReset!==void 0){let n=new Date(e.rateLimitReset);t.push(`Rate limit: ${e.rateLimitRemaining} remaining, resets at ${n.toLocaleTimeString()}`)}return e.retryAfter!==void 0&&t.push(`Retry after ${e.retryAfter} seconds`),t}function yK(e){return typeof e==`object`&&!!e&&`error`in e&&typeof e.error==`string`&&(`type`in e||`status`in e||`scopesSuggestion`in e)}function bK(e,t,n={}){let{toolName:r,hintContext:i,extra:a,customHints:o,hintSourceError:s}=n,c={status:`error`,mainResearchGoal:t.mainResearchGoal,researchGoal:t.researchGoal,reasoning:t.reasoning},l=[];if(s&&l.push(...vK(s)),yK(e))c.error=e,s||l.push(...vK(e));else if(Lb(e)){if(c.error=e.message,c.errorCode=e.errorCode,r){let t=_K(r,`error`,{originalError:e.message,errorType:xK(e),...i});l.push(...t)}}else if(typeof e==`string`)c.error=e;else if(e instanceof Error){let t=Rb(e);if(c.error=t.message,c.errorCode=t.errorCode,r){let e=_K(r,`error`,{originalError:t.message,...i});l.push(...e)}}else c.error=`Unknown error occurred`;if(o&&o.length>0&&l.push(...o),a?.hints&&Array.isArray(a.hints)&&l.push(...a.hints),l.length>0&&(c.hints=l),a){let{hints:e,...t}=a;Object.assign(c,t)}return c}function xK(e){switch(e.errorCode){case`fileTooLarge`:case`outputTooLarge`:case`responseTooLarge`:case`paginationRequired`:return`size_limit`;case`fileAccessFailed`:case`fileReadFailed`:return`not_found`;case`pathValidationFailed`:return`permission`;case`patternTooBroad`:return`pattern_too_broad`;default:return}}async function SK(e,t,n){if(e)try{await e(t,n)}catch{Fx(t,Mb.EXECUTION_FAILED.code).catch(()=>{})}}function CK(e,t,n,r,i){let a=n?`hasResults`:`empty`,o={status:a,mainResearchGoal:e.mainResearchGoal,researchGoal:e.researchGoal,reasoning:e.reasoning,...t},s=_K(r,a,i?.hintContext),c=i?.extraHints||[],l=[...new Set([...s,...c])].filter(e=>e&&e.trim().length>0);return l.length>0&&(o.hints=l),o}function wK(e){return typeof e==`object`&&!!e&&`error`in e&&typeof e.error==`string`}function TK(e,t){if(!wK(e))return null;let n={error:e.error,type:e.type||`unknown`,status:e.status,scopesSuggestion:e.scopesSuggestion,rateLimitRemaining:e.rateLimitRemaining,rateLimitReset:e.rateLimitReset,retryAfter:e.retryAfter};return bK(n,t,{hintSourceError:n,customHints:e.hints||[]})}function EK(e,t,n,r){let i=e instanceof Error?e.message:`Unknown error occurred`,a=n?`${n}: ${i}`:i;return Fx(r||n||`unknown_tool`,Mb.EXECUTION_FAILED.code).catch(()=>{}),bK(a,t)}function DK(e,t){return e.registerTool(J.GITHUB_SEARCH_CODE,{description:bS[J.GITHUB_SEARCH_CODE],inputSchema:UB,annotations:{title:`GitHub Code Search`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.GITHUB_SEARCH_CODE,async(e,n,r)=>{let i=e.queries||[];return await SK(t,J.GITHUB_SEARCH_CODE,i),OK(i,n,r)}))}async function OK(e,t,n){return aK(e,async(e,r)=>{try{let r=await ZG(e,t,n),i=TK(r,e);if(i)return i;if(!(`data`in r))return EK(Error(`Invalid API response structure`),e);let a=r.data.items.map(t=>{let n=t.repository?.nameWithOwner,r={path:t.path,...n&&{repo:n},...t.lastModifiedAt&&{lastModifiedAt:t.lastModifiedAt}};return e.match===`path`?r:{...r,text_matches:t.matches.map(e=>e.context)}}),o={files:a},s=r.data._researchContext?.repositoryContext;s&&(o.repositoryContext=s);let c=r.data.pagination;c&&(o.pagination=c);let l=a.length>0,u=!!(e.owner&&e.repo),d=[];if(c){let{currentPage:e,totalPages:t,totalMatches:n,perPage:r,hasMore:i}=c,a=(e-1)*r+1,o=Math.min(e*r,n);d.push(`Page ${e}/${t} (showing ${a}-${o} of ${n} matches)`),i&&d.push(`Next: page=${e+1}`),e>1&&d.push(`Previous: page=${e-1}`),i||d.push(`Final page`),t>2&&d.push(`Jump to: page=1 (first) or page=${t} (last)`)}return CK(e,o,l,J.GITHUB_SEARCH_CODE,{hintContext:{hasOwnerRepo:u,match:e.match},extraHints:d})}catch(t){return EK(t,e)}},{toolName:J.GITHUB_SEARCH_CODE,keysPriority:[`files`,`pagination`,`repositoryContext`,`error`]})}function kK(e,t,n){return Buffer.from(e,`utf8`).slice(t,n).toString(`utf8`)}function AK(e,t){if(t===0)return 0;let n=Buffer.from(e,`utf8`),r=Math.min(t,n.length);return n.slice(0,r).toString(`utf8`).length}function jK(e,t){return Buffer.byteLength(e.substring(0,t),`utf8`)}function MK(e,t=0,n,r={}){let i=r.mode??`characters`,a=e.length,o=Buffer.byteLength(e,`utf-8`);if(n===void 0)return{paginatedContent:e,byteOffset:0,byteLength:o,totalBytes:o,nextByteOffset:void 0,charOffset:0,charLength:a,totalChars:a,nextCharOffset:void 0,hasMore:!1,estimatedTokens:Math.ceil(e.length/4),currentPage:1,totalPages:1};let s,c,l,u,d,f,p,m;if(i===`bytes`){let i=Buffer.from(e,`utf-8`);c=Math.min(t,o),l=Math.min(c+n,o),s=i.subarray(c,l).toString(`utf-8`),u=AK(e,c),d=AK(e,l),f=l<o;let a=r.actualOffset??c;p=Math.floor(a/n)+1,m=Math.ceil(o/n)}else{u=Math.min(t,a),d=Math.min(u+n,a),s=e.substring(u,d),c=jK(e,u),l=jK(e,d),f=d<a;let i=r.actualOffset??u;p=Math.floor(i/n)+1,m=Math.ceil(a/n)}return{paginatedContent:s,byteOffset:c,byteLength:l-c,totalBytes:o,nextByteOffset:f?l:void 0,charOffset:u,charLength:s.length,totalChars:a,nextCharOffset:f?d:void 0,hasMore:f,estimatedTokens:Math.ceil(s.length/4),currentPage:p,totalPages:m}}function NK(e,t=!1){return t?JSON.stringify(e,null,2):JSON.stringify(e)}function PK(e){return{currentPage:e.currentPage,totalPages:e.totalPages,hasMore:e.hasMore,byteOffset:e.byteOffset,byteLength:e.byteLength,totalBytes:e.totalBytes,charOffset:e.charOffset,charLength:e.charLength,totalChars:e.totalChars}}function FK(e,t){if(!t)return[];let n=[];return e>5e4?n.push(`🚨 CRITICAL: Response TOO LARGE (>50K tokens) - will likely exceed model context limits`,`ACTION REQUIRED: Use smaller charLength or refine query to reduce output size`):e>3e4?n.push(`⚠️ WARNING: High token usage (>30K tokens) - may approach context limits`,`RECOMMENDATION: Consider reducing charLength or using more specific queries`):e>15e3?n.push(`ℹ️ NOTICE: Moderate token usage (>15K tokens) - monitor context window usage`):e>5e3?n.push(`ℹ️ Moderate usage: Response uses ~`+e.toLocaleString()+` tokens`):n.push(`✓ Efficient query: Response uses ~`+e.toLocaleString()+` tokens`),n}function IK(e){let t=[];return e.hasMore&&e.nextCharOffset!==void 0?t.push(`📄 More available: This is page `+e.currentPage+` of `+e.totalPages,`▶ Next page: Use charOffset=`+e.nextCharOffset+` to continue`):e.charOffset>0&&!e.hasMore&&t.push(`✓ Final page: Reached end of content`),t}function LK(e,t={}){let{enableWarnings:n=!0,customHints:r=[]}=t,i=[];return i.push(...r),e.estimatedTokens&&i.push(...FK(e.estimatedTokens,n)),i.push(...IK(e)),i}function RK(e,t){if(!e.hasMore)return[`✓ Complete content retrieved (${e.totalPages} page${e.totalPages>1?`s`:``})`];let n=(e.byteOffset??0)+(e.byteLength??0),r=t.branch?`, branch="${t.branch}"`:``;return[`📄 Page ${e.currentPage}/${e.totalPages} (${(e.byteLength??0).toLocaleString()} of ${(e.totalBytes??0).toLocaleString()} bytes)`,``,`▶ TO GET NEXT PAGE:`,` Use: charOffset=${n}`,` Same params: owner="${t.owner}", repo="${t.repo}", path="${t.path}"${r}`,``,`💡 TIP: Use matchString for targeted extraction instead of paginating through entire file`]}function zK(e,t){let n=[];if(n.push(`📂 Page ${e.currentPage}/${e.totalPages} (${t.pageFiles} files, ${t.pageFolders} folders on this page)`),n.push(`📊 Total: ${t.allFiles} files, ${t.allFolders} folders (${e.totalEntries} entries)`),e.hasMore){let r=t.path?`path="${t.path}", `:``,i=t.depth&&t.depth>1?`depth=${t.depth}, `:``;n.push(``),n.push(`▶ TO GET NEXT PAGE:`),n.push(` Use: entryPageNumber=${e.currentPage+1}`),n.push(` Same params: owner="${t.owner}", repo="${t.repo}", branch="${t.branch}", ${r}${i}entriesPerPage=${e.entriesPerPage}`),n.push(``),n.push(`💡 TIP: Use githubSearchCode with path filter for targeted discovery instead of paginating through entire structure`)}else n.push(``),n.push(`✓ Complete structure retrieved (${e.totalPages} page${e.totalPages>1?`s`:``})`);return n}const BK={MAX_CHARS_BEFORE_PAGINATION:2e4,DEFAULT_PAGE_SIZE:2e4,CHARS_PER_TOKEN:4},VK=new Bx.default({stdTTL:3600,checkperiod:600,useClones:!1});async function HK(e,t,n){let r=`${t}/${n}`,i=VK.get(r);if(i!==void 0)return i;try{let i=(await e.rest.repos.get({owner:t,repo:n})).data.default_branch||`main`;return VK.set(r,i),i}catch{return`main`}}async function UK(e,t,n){let r=await Jx(Gx(`gh-api-file-content`,{owner:e.owner,repo:e.repo,path:e.path,branch:e.branch},n),async()=>await WK(e,t),{shouldCache:e=>`data`in e&&!e.error});if(!(`data`in r)||!r.data)return r;let i=r.data.branch||r.data.resolvedRef||e.branch||``,a=await qK(r.data.rawContent,e.owner,e.repo,i,e.path,e.fullContent||!1,e.startLine,e.endLine,e.matchStringContextLines??5,e.matchString);if(`error`in a)return{error:a.error||`Unknown error`,status:500,type:`unknown`};if(!e.noTimestamp)try{let n=await KK(await wG(t),e.owner,e.repo,e.path,e.branch);n&&(a.lastModified=n.lastModified,a.lastModifiedBy=n.lastModifiedBy)}catch{}return a.content?{data:GK(a,e.charOffset??0,e.charLength),status:200}:{data:a,status:200}}async function WK(e,t){try{let n=await wG(t),{owner:r,repo:i,path:a,branch:o}=e,s={owner:r,repo:i,path:a,...o&&{ref:o}},c,l=o;try{c=await n.rest.repos.getContent(s)}catch(e){if(e instanceof TV&&e.status===404&&o){let t=await HK(n,r,i);if((o===`main`||o===`master`)&&o!==t)try{c=await n.rest.repos.getContent({...s,ref:t}),l=t}catch{throw e}else{let s=jG(e),c=o===t?void 0:`Branch '${o}' not found. Default branch is '${t}'. Ask user: Do you want to get the file from '${t}' instead?`,l=await JK(n,r,i,a,o||t);if(l.length>0){let e=`Did you mean: ${l.join(`, `)}?`;s.hints=[...s.hints||[],e]}return{...s,...c&&{scopesSuggestion:c}}}}else{if(e instanceof TV&&e.status===404){let t=jG(e),s=await JK(n,r,i,a,o||`main`);if(s.length>0){let e=`Did you mean: ${s.join(`, `)}?`;t.hints=[...t.hints||[],e]}return t}throw e}}let u=c.data;if(Array.isArray(u))return await Fx(J.GITHUB_FETCH_CONTENT,Db.PATH_IS_DIRECTORY.code),{error:Db.PATH_IS_DIRECTORY.message(J.GITHUB_VIEW_REPO_STRUCTURE),type:`unknown`,status:400};if(`content`in u&&u.type===`file`){let e=u.size||0,t=300*1024;if(e>t){let n=Math.round(e/1024),r=Math.round(t/1024);return await Fx(J.GITHUB_FETCH_CONTENT,Db.FILE_TOO_LARGE.code),{error:Db.FILE_TOO_LARGE.message(n,r,J.GITHUB_SEARCH_CODE),type:`unknown`,status:413}}if(!u.content)return await Fx(J.GITHUB_FETCH_CONTENT,Db.FILE_EMPTY.code),{error:Db.FILE_EMPTY.message,type:`unknown`,status:404};let n=u.content.replace(/\s/g,``);if(!n)return await Fx(J.GITHUB_FETCH_CONTENT,Db.FILE_EMPTY.code),{error:Db.FILE_EMPTY.message,type:`unknown`,status:404};let r;try{let e=Buffer.from(n,`base64`);if(e.indexOf(0)!==-1)return await Fx(J.GITHUB_FETCH_CONTENT,Db.BINARY_FILE.code),{error:Db.BINARY_FILE.message,type:`unknown`,status:415};r=e.toString(`utf-8`)}catch{return await Fx(J.GITHUB_FETCH_CONTENT,Db.DECODE_FAILED.code),{error:Db.DECODE_FAILED.message,type:`unknown`,status:422}}return{data:{rawContent:r,branch:l||void 0,resolvedRef:l||o||`HEAD`},status:200}}return await Fx(J.GITHUB_FETCH_CONTENT,Db.UNSUPPORTED_TYPE.code),{error:Db.UNSUPPORTED_TYPE.message(u.type),type:`unknown`,status:415}}catch(e){return jG(e)}}function GK(e,t,n){let r=e.content??``,i=n??BK.MAX_CHARS_BEFORE_PAGINATION;if(Buffer.byteLength(r,`utf-8`)<=i&&t===0)return e;let a=MK(r,t,i,{mode:`bytes`}),o=PK(a),s=RK(o,{owner:e.owner??``,repo:e.repo??``,path:e.path??``,branch:e.branch});return{...e,content:a.paginatedContent,contentLength:a.paginatedContent.length,pagination:o,hints:s}}async function KK(e,t,n,r,i){try{let a=await e.rest.repos.listCommits({owner:t,repo:n,path:r,per_page:1,...i&&{sha:i}});if(a.data.length>0){let e=a.data[0],t=e?.commit?.committer?.date,n=e?.commit?.author?.name||e?.author?.login||`Unknown`;return{lastModified:t||`Unknown`,lastModifiedBy:n}}return null}catch{return null}}async function qK(e,t,n,r,i,a,o,s,c=5,l){let u=new Set,d=e.split(`
`),f=d.length,p=e,m,h,g=!1;if(a)p=e;else if(l){let e=[],a=l.toLowerCase();for(let t=0;t<d.length;t++)d[t]?.toLowerCase().includes(a)&&e.push(t+1);if(e.length===0)return{owner:t,repo:n,path:i,content:``,contentLength:0,branch:r,matchNotFound:!0,searchedFor:l,hints:[`Pattern "${l}" not found in file. Try broader search or verify path.`]};let _=e[0],v=Math.max(1,_-c),y=Math.min(f,_+c);o=v,s=y,p=d.slice(v-1,y).join(`
`),m=v,h=y,g=!0,u.add(`Found "${l}" on line ${_}${e.length>1?` (and ${e.length-1} other locations)`:``}`)}else if(o!==void 0||s!==void 0){let t=o||1,n=s||f;if(t<1||t>f)p=e;else if(n<t)p=e;else{let e=Math.max(1,t),r=Math.min(f,n),i=d.slice(e-1,r);m=e,h=r,g=!0,p=i.join(`
`),n>f&&u.add(`Requested endLine ${n} adjusted to ${f} (file end)`)}}let _=FS.sanitizeContent(p);p=_.content,_.hasSecrets&&u.add(`Secrets detected and redacted: ${_.secretsDetected.join(`, `)}`),_.warnings.length>0&&_.warnings.forEach(e=>u.add(e));let v=await EB(p,i);p=v.content;let y=v.failed,b=v.type,x=Array.from(u);return{owner:t,repo:n,path:i,contentLength:p.length,content:p,branch:r,...g&&{startLine:m,endLine:h,isPartial:g},minified:!y,minificationFailed:y,minificationType:b,...x.length>0&&{matchLocations:x}}}async function JK(e,t,n,r,i){try{let a=r.split(`/`).slice(0,-1).join(`/`),o=r.split(`/`).pop();if(!o)return[];let s=await e.rest.repos.getContent({owner:t,repo:n,path:a,ref:i});if(!Array.isArray(s.data))return[];let c=s.data,l=[],u=c.find(e=>e.name.toLowerCase()===o.toLowerCase());u&&l.push(u.path);let d=o.replace(/\.[^/.]+$/,``);return c.filter(e=>e.name===o?!1:!!e.name.startsWith(d+`.`)).forEach(e=>l.push(e.path)),Array.from(new Set(l)).slice(0,3)}catch{return[]}}const YK={ENTRIES_PER_PAGE:50,MAX_ENTRIES_PER_PAGE:200},XK=zB.extend({owner:U().min(1).max(200).describe(ES.scope.owner),repo:U().min(1).max(150).describe(ES.scope.repo),branch:U().min(1).max(255).describe(ES.scope.branch),path:U().default(``).optional().describe(ES.scope.path),depth:Jt().min(1).max(2).default(1).optional().describe(ES.range.depth),entriesPerPage:Jt().min(1).max(YK.MAX_ENTRIES_PER_PAGE).default(YK.ENTRIES_PER_PAGE).optional().describe(ES.pagination.entriesPerPage),entryPageNumber:Jt().min(1).default(1).optional().describe(ES.pagination.entryPageNumber)}),ZK=VB(J.GITHUB_VIEW_REPO_STRUCTURE,XK);function QK(e,t){let n=e._cachedItems;if(!n||n.length===0){let{_cachedItems:t,...n}=e;return n}let r=t.entriesPerPage??YK.ENTRIES_PER_PAGE,i=t.entryPageNumber??1,a=n.length,o=Math.max(1,Math.ceil(a/r)),s=(i-1)*r,c=Math.min(s+r,a),l=n.slice(s,c),u={},d=e.path===`/`?``:e.path,f=e=>{let t=e;d&&e.startsWith(d)&&(t=e.slice(d.length),t.startsWith(`/`)&&(t=t.slice(1)));let n=t.lastIndexOf(`/`);return n===-1?`.`:t.slice(0,n)},p=e=>{let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)};for(let e of l){let t=f(e.path);u[t]||(u[t]={files:[],folders:[]});let n=p(e.path);e.type===`file`?u[t].files.push(n):u[t].folders.push(n)}for(let e of Object.keys(u)){let t=u[e];t&&(t.files.sort(),t.folders.sort())}let m={},h=Object.keys(u).sort((e,t)=>e===`.`?-1:t===`.`?1:e.localeCompare(t));for(let e of h){let t=u[e];t&&(m[e]=t)}let g=l.filter(e=>e.type===`file`).length,_=l.filter(e=>e.type===`dir`).length,v=n.filter(e=>e.type===`file`).length,y=n.filter(e=>e.type===`dir`).length,b=i<o,x={currentPage:i,totalPages:o,hasMore:b,entriesPerPage:r,totalEntries:a},S=zK(x,{owner:e.owner,repo:e.repo,branch:e.branch,path:d,depth:t.depth??1,pageFiles:g,pageFolders:_,allFiles:v,allFolders:y});return{owner:e.owner,repo:e.repo,branch:e.branch,path:e.path,apiSource:e.apiSource,summary:{totalFiles:v,totalFolders:y,truncated:b,filtered:!0,originalCount:a},structure:m,pagination:x,hints:S}}async function $K(e,t,n){let r=await Jx(Gx(`gh-repo-structure-api`,{owner:e.owner,repo:e.repo,branch:e.branch,path:e.path,depth:e.depth},n),async()=>await eq({...e,entriesPerPage:void 0,entryPageNumber:void 0},t),{shouldCache:e=>!(`error`in e)});return!(`error`in r)&&r.structure?QK(r,e):r}async function eq(e,t){try{let n=await wG(t),{owner:r,repo:i,branch:a,path:o=``,depth:s=1}=e,c=o.startsWith(`/`)?o.substring(1):o,l,u=a;try{l=await n.rest.repos.getContent({owner:r,repo:i,path:c||void 0,ref:a})}catch(e){if(e instanceof TV&&e.status===404){let t=`main`;try{t=(await n.rest.repos.get({owner:r,repo:i})).data.default_branch||`main`}catch(e){let t=jG(e);return await Fx(J.GITHUB_VIEW_REPO_STRUCTURE,Ob.NOT_FOUND.code),{error:Ob.NOT_FOUND.message(r,i,t.error),status:t.status}}if(t!==a)try{l=await n.rest.repos.getContent({owner:r,repo:i,path:c||void 0,ref:t}),u=t}catch{let o=[`main`,`master`,`develop`],s=null;for(let e of o)if(!(e===a||e===t))try{l=await n.rest.repos.getContent({owner:r,repo:i,path:c||void 0,ref:e}),s=e,u=e;break}catch{}if(!s){let n=jG(e);return await Fx(J.GITHUB_VIEW_REPO_STRUCTURE,Ob.PATH_NOT_FOUND_ANY_BRANCH.code),{error:Ob.PATH_NOT_FOUND_ANY_BRANCH.message(c,r,i),status:n.status,triedBranches:[a,t,...o],defaultBranch:t}}}else{let t=jG(e);return await Fx(J.GITHUB_VIEW_REPO_STRUCTURE,Ob.PATH_NOT_FOUND.code),{error:Ob.PATH_NOT_FOUND.message(c,r,i,a),status:t.status}}}else{let t=jG(e);return await Fx(J.GITHUB_VIEW_REPO_STRUCTURE,Ob.ACCESS_FAILED.code),{error:Ob.ACCESS_FAILED.message(r,i,t.error),status:t.status,rateLimitRemaining:t.rateLimitRemaining,rateLimitReset:t.rateLimitReset}}}let d=(Array.isArray(l.data)?l.data:[l.data]).map(e=>({name:e.name,path:e.path,type:e.type,size:`size`in e?e.size:void 0,download_url:`download_url`in e?e.download_url:void 0,url:e.url,html_url:e.html_url,git_url:e.git_url,sha:e.sha})),f=d;if(s>1){let e=await tq(n,r,i,u,c,1,s);f=[...d,...e].filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)}let p=f.filter(e=>e.type===`dir`?!oB(e.name):!sB(e.path));p.sort((e,t)=>{if(e.type!==t.type)return e.type===`dir`?-1:1;let n=e.path.split(`/`).length,r=t.path.split(`/`).length;return n===r?e.path.localeCompare(t.path):n-r});let m=e.entriesPerPage??YK.ENTRIES_PER_PAGE,h=e.entryPageNumber??1,g=p.length,_=Math.max(1,Math.ceil(g/m)),v=(h-1)*m,y=Math.min(v+m,g),b=p.slice(v,y),x={},S=c||``,C=e=>{let t=e;S&&e.startsWith(S)&&(t=e.slice(S.length),t.startsWith(`/`)&&(t=t.slice(1)));let n=t.lastIndexOf(`/`);return n===-1?`.`:t.slice(0,n)},w=e=>{let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)};for(let e of b){let t=C(e.path);x[t]||(x[t]={files:[],folders:[]});let n=w(e.path);e.type===`file`?x[t].files.push(n):x[t].folders.push(n)}for(let e of Object.keys(x)){let t=x[e];t&&(t.files.sort(),t.folders.sort())}let T={},E=Object.keys(x).sort((e,t)=>e===`.`?-1:t===`.`?1:e.localeCompare(t));for(let e of E){let t=x[e];t&&(T[e]=t)}let D=b.filter(e=>e.type===`file`).length,O=b.filter(e=>e.type===`dir`).length,k=p.filter(e=>e.type===`file`).length,A=p.filter(e=>e.type===`dir`).length,j=h<_,ee={currentPage:h,totalPages:_,hasMore:j,entriesPerPage:m,totalEntries:g},te=zK(ee,{owner:r,repo:i,branch:u,path:c,depth:s,pageFiles:D,pageFolders:O,allFiles:k,allFolders:A}),ne=e.entriesPerPage===void 0&&e.entryPageNumber===void 0;return{owner:r,repo:i,branch:u,path:c||`/`,apiSource:!0,summary:{totalFiles:k,totalFolders:A,truncated:j,filtered:!0,originalCount:p.length},structure:T,pagination:ee,hints:te,...ne&&{_cachedItems:p.map(e=>({path:e.path,type:e.type}))}}}catch(e){let t=jG(e);return await Fx(J.GITHUB_VIEW_REPO_STRUCTURE,Ob.STRUCTURE_EXPLORATION_FAILED.code),{error:Ob.STRUCTURE_EXPLORATION_FAILED.message,status:t.status,rateLimitRemaining:t.rateLimitRemaining,rateLimitReset:t.rateLimitReset}}}async function tq(e,t,n,r,i,a,o,s=new Set){if(a>o||s.has(i))return[];s.add(i);try{let c=await e.rest.repos.getContent({owner:t,repo:n,path:i||void 0,ref:r}),l=(Array.isArray(c.data)?c.data:[c.data]).map(e=>({name:e.name,path:e.path,type:e.type,size:`size`in e?e.size:void 0,download_url:`download_url`in e?e.download_url:void 0,url:e.url,html_url:e.html_url,git_url:e.git_url,sha:e.sha})),u=[...l];if(a<o){let i=l.filter(e=>e.type===`dir`);for(let c=0;c<i.length;c+=3){let l=i.slice(c,c+3).map(async i=>{try{return await tq(e,t,n,r,i.path,a+1,o,s)}catch{return[]}});(await Promise.all(l)).forEach(e=>{u.push(...e)})}}return u}catch{return[]}}const nq=zB.extend({owner:U().min(1).max(200).describe(SS.scope.owner),repo:U().min(1).max(150).describe(SS.scope.repo),path:U().describe(SS.scope.path),branch:U().min(1).max(255).optional().describe(SS.scope.branch),fullContent:Yt().default(!1).describe(SS.range.fullContent),startLine:Jt().int().min(1).optional().describe(SS.range.startLine),endLine:Jt().int().min(1).optional().describe(SS.range.endLine),matchString:U().optional().describe(SS.range.matchString),matchStringContextLines:Jt().int().min(1).max(50).default(5).describe(SS.range.matchStringContextLines),charOffset:Jt().int().min(0).optional().describe(SS.pagination.charOffset),charLength:Jt().int().min(50).max(5e4).optional().describe(SS.pagination.charLength)}).superRefine((e,t)=>{e.fullContent&&(e.startLine||e.endLine||e.matchString)&&t.addIssue({code:R.custom,message:SS.validation.parameterConflict,path:[`fullContent`]}),(e.startLine&&!e.endLine||!e.startLine&&e.endLine)&&t.addIssue({code:R.custom,message:SS.validation.parameterConflict,path:[`startLine`]})}),rq=VB(J.GITHUB_FETCH_CONTENT,nq);function iq(e,t){return e.registerTool(J.GITHUB_FETCH_CONTENT,{description:bS[J.GITHUB_FETCH_CONTENT],inputSchema:rq,annotations:{title:`GitHub File Content Fetch`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.GITHUB_FETCH_CONTENT,async(e,n,r)=>{let i=e.queries||[];return await SK(t,J.GITHUB_FETCH_CONTENT,i),aq(i,n,r)}))}async function aq(e,t,n){return aK(e,async(e,r)=>{try{let r=await UK(oq(e),t,n),i=TK(r,e);if(i)return i;let a=`data`in r?r.data:r,o=sq(a),s=a,c=Array.isArray(s.hints)?s.hints:[],l=typeof s.contentLength==`number`&&s.contentLength>5e4;return CK(e,s,o,J.GITHUB_FETCH_CONTENT,{hintContext:{isLarge:l},extraHints:c})}catch(t){return EK(t,e)}},{toolName:J.GITHUB_FETCH_CONTENT,keysPriority:[`owner`,`repo`,`path`,`branch`,`contentLength`,`content`,`pagination`,`isPartial`,`startLine`,`endLine`,`lastModified`,`lastModifiedBy`,`matchLocations`,`error`]})}function oq(e){let t=!!e.fullContent;return{owner:String(e.owner),repo:String(e.repo),path:String(e.path),branch:e.branch?String(e.branch):void 0,fullContent:t,startLine:t?void 0:e.startLine,endLine:t?void 0:e.endLine,matchString:t||!e.matchString?void 0:String(e.matchString),matchStringContextLines:e.matchStringContextLines??5,charOffset:e.charOffset??0,charLength:e.charLength}}function sq(e){return!!(e&&typeof e==`object`&&`content`in e&&e.content&&String(e.content).length>0)}async function cq(e,t,n){return await Jx(Gx(`gh-api-repos`,{keywordsToSearch:e.keywordsToSearch,topicsToSearch:e.topicsToSearch,owner:e.owner,stars:e.stars,size:e.size,created:e.created,updated:e.updated,match:e.match,sort:e.sort,limit:e.limit,page:e.page},n),async()=>await lq(e,t),{shouldCache:e=>`data`in e&&!e.error})}async function lq(e,t){try{let n=await wG(t),r=JG(e);if(!r.trim())return await Fx(J.GITHUB_SEARCH_REPOSITORIES,kb.QUERY_EMPTY.code),{error:kb.QUERY_EMPTY.message,type:`http`,status:400};let i=Math.min(e.limit||30,100),a=e.page||1,o={q:r,per_page:i,page:a};e.sort&&e.sort!==`best-match`&&(o.sort=e.sort);let s=await n.rest.search.repos(o),c=s.data.items.map(e=>{let t=e.full_name.split(`/`);return{owner:t[0]||``,repo:t[1]||``,defaultBranch:e.default_branch,stars:e.stargazers_count||0,description:e.description?e.description.length>150?e.description.substring(0,150)+`...`:e.description:`No description`,url:e.html_url,createdAt:e.created_at,updatedAt:e.updated_at,pushedAt:e.pushed_at,visibility:e.visibility,...e.topics&&e.topics.length>0&&{topics:e.topics},...e.forks_count&&e.forks_count>0&&{forksCount:e.forks_count},...e.open_issues_count&&e.open_issues_count>0&&{openIssuesCount:e.open_issues_count}}}),l=Math.min(s.data.total_count,1e3),u=Math.min(Math.ceil(l/i),10);return{data:{repositories:c,pagination:{currentPage:a,totalPages:u,perPage:i,totalMatches:l,hasMore:a<u}},status:200,headers:s.headers}}catch(e){return jG(e)}}const uq=zB.extend({keywordsToSearch:Xt(U()).optional().describe(wS.search.keywordsToSearch),topicsToSearch:Xt(U()).optional().describe(wS.search.topicsToSearch),owner:U().optional().describe(wS.scope.owner),stars:U().optional().describe(wS.filters.stars),size:U().optional().describe(wS.filters.size),created:U().optional().describe(wS.filters.created),updated:U().optional().describe(wS.filters.updated),match:Xt(nn([`name`,`description`,`readme`])).optional().describe(wS.filters.match),sort:nn([`forks`,`stars`,`updated`,`best-match`]).optional().describe(wS.sorting.sort),limit:Jt().int().min(1).max(100).default(10).optional().describe(wS.resultLimit.limit),page:Jt().int().min(1).max(10).default(1).optional().describe(wS.pagination.page)}).refine(e=>e.keywordsToSearch&&e.keywordsToSearch.length>0||e.topicsToSearch&&e.topicsToSearch.length>0,{message:`At least one of 'keywordsToSearch' or 'topicsToSearch' is required`,path:[`keywordsToSearch`]}),dq=VB(J.GITHUB_SEARCH_REPOSITORIES,uq);function fq(e,t){return e.registerTool(J.GITHUB_SEARCH_REPOSITORIES,{description:bS[J.GITHUB_SEARCH_REPOSITORIES],inputSchema:dq,annotations:{title:`GitHub Repository Search`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.GITHUB_SEARCH_REPOSITORIES,async(e,n,r)=>{let i=e.queries||[];return await SK(t,J.GITHUB_SEARCH_REPOSITORIES,i),_q(i,n,r)}))}function pq(e){return!!(e.topicsToSearch&&(Array.isArray(e.topicsToSearch)?e.topicsToSearch.length>0:e.topicsToSearch))}function mq(e){return!!(e.keywordsToSearch&&e.keywordsToSearch.length>0)}function hq(e,t){return e?`${e} (${t===`topics`?`topics-based search`:`keywords-based search`})`:`${t.charAt(0).toUpperCase()+t.slice(1)}-based repository search`}function gq(e){let t=[];for(let n of e){let e=pq(n),r=mq(n);if(e&&r){let{topicsToSearch:e,keywordsToSearch:r,...i}=n;t.push({...i,reasoning:hq(n.reasoning,`topics`),topicsToSearch:e},{...i,reasoning:hq(n.reasoning,`keywords`),keywordsToSearch:r})}else t.push(n)}return t}async function _q(e,t,n){return aK(gq(e),async(e,r)=>{try{let r=await cq(e,t,n),i=TK(r,e);if(i)return i;let a=`data`in r&&r.data.repositories||[],o=`data`in r?r.data.pagination:void 0,s=[];if(o){let{currentPage:e,totalPages:t,totalMatches:n,perPage:r,hasMore:i}=o,a=(e-1)*r+1,c=Math.min(e*r,n);s.push(`Page ${e}/${t} (showing ${a}-${c} of ${n} repos)`),i&&s.push(`Next: page=${e+1}`),e>1&&s.push(`Previous: page=${e-1}`),i||s.push(`Final page`),t>2&&s.push(`Jump to: page=1 (first) or page=${t} (last)`)}let c=vq(e,a.length>0);return CK(e,{repositories:a,pagination:o},a.length>0,J.GITHUB_SEARCH_REPOSITORIES,{extraHints:[...s,...c||[]]})}catch(t){return EK(t,e)}},{toolName:J.GITHUB_SEARCH_REPOSITORIES,keysPriority:[`repositories`,`pagination`,`error`]})}function vq(e,t){let n=[],r=pq(e),i=mq(e);return r&&t?n.push(...yS(J.GITHUB_SEARCH_REPOSITORIES,`topicsHasResults`)):r&&!t?n.push(...yS(J.GITHUB_SEARCH_REPOSITORIES,`topicsEmpty`)):i&&!t&&!r&&n.push(...yS(J.GITHUB_SEARCH_REPOSITORIES,`keywordsEmpty`)),n.length>0?n:void 0}function yq(e){let t=e.split(`
`),n=[],r=0,i=0;for(let e of t){if(e.startsWith(`@@`)){let t=e.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);t&&t[1]&&t[2]&&(r=parseInt(t[1],10)-1,i=parseInt(t[2],10)-1);continue}e.startsWith(`+`)?(i++,n.push({originalLineNumber:null,newLineNumber:i,content:e,type:`addition`})):e.startsWith(`-`)?(r++,n.push({originalLineNumber:r,newLineNumber:null,content:e,type:`deletion`})):e.startsWith(`\\`)||(r++,i++,n.push({originalLineNumber:r,newLineNumber:i,content:e,type:`context`}))}return n}function bq(e,t,n){if(!e)return``;if(t===void 0&&n===void 0)return e;let r=yq(e),i=t===void 0?null:new Set(t),a=n===void 0?null:new Set(n),o=r.filter(e=>e.type===`addition`&&e.newLineNumber!==null?i===null||i.has(e.newLineNumber):e.type===`deletion`&&e.originalLineNumber!==null?a===null||a.has(e.originalLineNumber):e.type===`context`?i===null||i.size>0||a===null||a.size>0:!1);return o.length===0?``:o.map(e=>`${e.type===`addition`?`+${e.newLineNumber}`:e.type===`deletion`?`-${e.originalLineNumber}`:` ${e.newLineNumber}`}: ${e.content.substring(1)}`).join(`
`)}async function xq(e,t,n){return await Jx(Gx(`gh-api-prs`,{query:e.query,owner:e.owner,repo:e.repo,prNumber:e.prNumber,state:e.state,draft:e.draft,merged:e.merged,author:e.author,assignee:e.assignee,mentions:e.mentions,commenter:e.commenter,involves:e.involves,"reviewed-by":e[`reviewed-by`],"review-requested":e[`review-requested`],head:e.head,base:e.base,created:e.created,updated:e.updated,"merged-at":e[`merged-at`],closed:e.closed,comments:e.comments,reactions:e.reactions,interactions:e.interactions,label:e.label,"no-assignee":e[`no-assignee`],"no-label":e[`no-label`],"no-milestone":e[`no-milestone`],"no-project":e[`no-project`],match:e.match,sort:e.sort,order:e.order,limit:e.limit,page:e.page,withComments:e.withComments,withCommits:e.withCommits,type:e.type,partialContentMetadata:e.partialContentMetadata},n),async()=>await Sq(e,t,n),{shouldCache:e=>!e.error})}async function Sq(e,t,n){try{if(e.prNumber&&e.owner&&e.repo&&!Array.isArray(e.owner)&&!Array.isArray(e.repo))return await Fq(e,t);let n=await wG(t);if(!XG(e)&&e.owner&&e.repo&&!Array.isArray(e.owner)&&!Array.isArray(e.repo))return await Cq(n,e);let r=YG(e);if(!r)return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.NO_VALID_PARAMETERS.code),{pull_requests:[],total_count:0,error:kb.NO_VALID_PARAMETERS.message,hints:[`Provide search query or filters like owner/repo`]};let i=e.sort&&e.sort!==`best-match`&&e.sort!==`created`?e.sort:void 0,a=Math.min(e.limit||30,100),o=e.page||1,s=await n.rest.search.issuesAndPullRequests({q:r,sort:i,order:e.order||`desc`,per_page:a,page:o}),c=s.data.items?.filter(e=>!!e.pull_request)||[],l=(await Promise.all(c.map(async t=>await kq(t,e,n)))).map(Tq),u=Math.min(s.data.total_count,1e3),d=Math.min(Math.ceil(u/a),10),f=o<d;return{pull_requests:l,total_count:s.data.total_count,...s.data.incomplete_results&&{incomplete_results:!0},pagination:{currentPage:o,totalPages:d,perPage:a,totalMatches:u,hasMore:f}}}catch(e){let t=jG(e);return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.PULL_REQUEST_SEARCH_FAILED.code),{pull_requests:[],total_count:0,error:kb.PULL_REQUEST_SEARCH_FAILED.message(t.error),hints:[`Verify authentication and search parameters`]}}}async function Cq(e,t){try{let n=t.owner,r=t.repo,i=Math.min(t.limit||30,100),a=t.page||1,o=await e.rest.pulls.list({owner:n,repo:r,state:t.state||`open`,per_page:i,page:a,sort:t.sort===`updated`?`updated`:`created`,direction:t.order||`desc`,...t.head&&{head:t.head},...t.base&&{base:t.base}}),s=(await Promise.all(o.data.map(async n=>await Pq(n,t,e)))).map(Tq),c=o.data.length===i;return{pull_requests:s,total_count:s.length,pagination:{currentPage:a,totalPages:c?a+1:a,perPage:i,totalMatches:s.length,hasMore:c}}}catch(e){let t=jG(e);return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.PULL_REQUEST_LIST_FAILED.code),{pull_requests:[],total_count:0,error:kb.PULL_REQUEST_LIST_FAILED.message(t.error),hints:[`Verify repository access and authentication`]}}}function wq(e){let t=FS.sanitizeContent(e.title??``),n=e.body?FS.sanitizeContent(e.body):{content:void 0,warnings:[]},r=new Set([...t.warnings,...n.warnings]),i=e.state?.toLowerCase()===`closed`?`closed`:`open`;return{prData:{number:e.number,title:t.content,body:n.content,state:i,author:e.user?.login??``,labels:e.labels?.map(e=>typeof e==`string`?e:e.name??``)??[],created_at:e.created_at??``,updated_at:e.updated_at??``,closed_at:e.closed_at??null,url:e.html_url,comments:[],reactions:0,draft:e.draft??!1,head:e.head?.ref,head_sha:e.head?.sha,base:e.base?.ref,base_sha:e.base?.sha,...e.merged_at&&{merged_at:e.merged_at}},sanitizationWarnings:r}}function Tq(e){return{number:e.number,title:e.title,url:e.url,state:e.state,draft:e.draft??!1,merged:e.state===`closed`&&!!e.merged_at,created_at:e.created_at,updated_at:e.updated_at,closed_at:e.closed_at??void 0,merged_at:e.merged_at,author:e.author,head_ref:e.head||``,head_sha:e.head_sha||``,base_ref:e.base||``,base_sha:e.base_sha||``,body:e.body,comments:e.comments?.length||0,commits:e.commits?.length||0,additions:e.file_changes?.files.reduce((e,t)=>e+t.additions,0)||0,deletions:e.file_changes?.files.reduce((e,t)=>e+t.deletions,0)||0,changed_files:e.file_changes?.total_count||0,...e.file_changes&&{file_changes:e.file_changes.files?.map(e=>({filename:e.filename,status:e.status,additions:e.additions,deletions:e.deletions,patch:e.patch}))},...e.commits&&{commit_details:e.commits},...e.comments&&e.comments.length>0&&{comment_details:e.comments},...e._sanitization_warnings&&{_sanitization_warnings:e._sanitization_warnings}}}async function Eq(e,t,n,r){try{return(await e.rest.issues.listComments({owner:t,repo:n,issue_number:r})).data.map(e=>({id:String(e.id),user:e.user?.login??`unknown`,body:FS.sanitizeContent(e.body??``).content,created_at:e.created_at??``,updated_at:e.updated_at??``}))}catch{return[]}}function Dq(e){return{owner:Array.isArray(e.owner)?e.owner[0]||void 0:e.owner,repo:Array.isArray(e.repo)?e.repo[0]||void 0:e.repo}}function Oq(e,t){let n=t.type||`metadata`,r=new Map(t.partialContentMetadata?.map(e=>[e.file,e])||[]);return n===`metadata`?e.map(e=>({...e,patch:void 0})):n===`partialContent`?e.filter(e=>r.has(e.filename)).map(e=>{let t=r.get(e.filename);return{...e,patch:e.patch?bq(e.patch,t?.additions,t?.deletions):void 0}}):e}async function kq(e,t,n){let{prData:r,sanitizationWarnings:i}=wq(e);i.size>0&&(r._sanitization_warnings=Array.from(i));let a=t.type||`metadata`,o=a===`fullContent`||a===`partialContent`||a===`metadata`;if(o||e.pull_request)try{let{owner:i,repo:a}=Dq(t);if(i&&a){let s=await n.rest.pulls.get({owner:i,repo:a,pull_number:e.number});if(s.data&&(r.head=s.data.head?.ref,r.head_sha=s.data.head?.sha,r.base=s.data.base?.ref,r.base_sha=s.data.base?.sha,r.draft=s.data.draft??!1,s.data.merged_at&&(r.merged_at=s.data.merged_at),o)){let n=await Aq(i,a,e.number);n&&(n.files=Oq(n.files,t),r.file_changes=n)}}}catch(e){Fx(J.GITHUB_SEARCH_PULL_REQUESTS,String(e)),r._sanitization_warnings=[...r._sanitization_warnings||[],`Partial Data: Failed to fetch details (files): ${e instanceof Error?e.message:String(e)}`]}if(t.withComments){let{owner:i,repo:a}=Dq(t);i&&a&&(r.comments=await Eq(n,i,a,e.number))}if(t.withCommits)try{let{owner:n,repo:i}=Dq(t);if(n&&i){let a=await Nq(n,i,e.number,t);a&&(r.commits=a)}}catch(e){Fx(J.GITHUB_SEARCH_PULL_REQUESTS,String(e)),r._sanitization_warnings=[...r._sanitization_warnings||[],`Partial Data: Failed to fetch details (commits): ${e instanceof Error?e.message:String(e)}`]}return r}async function Aq(e,t,n,r){let i=await wG(r),a=[],o=1,s=!0;do{let r=await i.rest.pulls.listFiles({owner:e,repo:t,pull_number:n,per_page:100,page:o});a.push(...r.data),s=r.data.length===100,o++}while(s);return{total_count:a.length,files:a}}async function jq(e,t,n,r){return(await(await wG(r)).rest.pulls.listCommits({owner:e,repo:t,pull_number:n})).data}async function Mq(e,t,n,r){try{return(await(await wG(r)).rest.repos.getCommit({owner:e,repo:t,ref:n})).data.files||[]}catch{return null}}async function Nq(e,t,n,r,i){let a=await jq(e,t,n,i);if(!a)return null;let o=[...a].sort((e,t)=>{let n=e.commit.author?.date?new Date(e.commit.author.date).getTime():0;return(t.commit.author?.date?new Date(t.commit.author.date).getTime():0)-n});return await Promise.all(o.map(async n=>{let a=await Mq(e,t,n.sha,i),o=[];return a&&(o=Oq(a,r)),{sha:n.sha,message:n.commit.message,author:n.commit.author?.name||`unknown`,date:n.commit.author?.date||``,files:o}}))}async function Pq(e,t,n,r){let{prData:i,sanitizationWarnings:a}=wq(e);a.size>0&&(i._sanitization_warnings=Array.from(a));let o=t.type||`metadata`,s=o===`fullContent`||o===`partialContent`||o===`metadata`,c=t.owner,l=t.repo;if(s)try{let n=await Aq(c,l,e.number,r);n&&(n.files=Oq(n.files,t),i.file_changes=n)}catch(e){Fx(J.GITHUB_SEARCH_PULL_REQUESTS,String(e)),i._sanitization_warnings=[...i._sanitization_warnings||[],`Partial Data: Failed to fetch details (files): ${e instanceof Error?e.message:String(e)}`]}if(t.withComments&&(i.comments=await Eq(n,c,l,e.number)),t.withCommits)try{let n=await Nq(c,l,e.number,t,r);n&&(i.commits=n)}catch(e){Fx(J.GITHUB_SEARCH_PULL_REQUESTS,String(e)),i._sanitization_warnings=[...i._sanitization_warnings||[],`Partial Data: Failed to fetch details (commits): ${e instanceof Error?e.message:String(e)}`]}return i}async function Fq(e,t){let{owner:n,repo:r,prNumber:i}=e;if(!n||!r||!i)return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.PR_REQUIRED_PARAMS.code),{pull_requests:[],total_count:0,error:kb.PR_REQUIRED_PARAMS.message,hints:[`Provide owner, repo, and prNumber`]};if(Array.isArray(n)||Array.isArray(r))return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.PR_SINGLE_VALUES.code),{pull_requests:[],total_count:0,error:kb.PR_SINGLE_VALUES.message,hints:[`Do not use array for owner or repo when fetching by number`]};try{let a=await wG(t),o=(await a.rest.pulls.get({owner:n,repo:r,pull_number:i})).data;return{pull_requests:[Tq(await Pq(o,e,a,t))],total_count:1}}catch(e){let t=jG(e);return await Fx(J.GITHUB_SEARCH_PULL_REQUESTS,kb.PULL_REQUEST_FETCH_FAILED.code),{pull_requests:[],total_count:0,error:kb.PULL_REQUEST_FETCH_FAILED.message(i,t.error),hints:[`Verify that pull request #${i} exists in ${n}/${r}`,`Check if you have access to this repository`,`Ensure the PR number is correct`]}}}const Iq=Xt(nn([`title`,`body`,`comments`])).optional().describe(TS.filters.match),Lq=Zt({created:U().optional().describe(TS.filters.created),updated:U().optional().describe(TS.filters.updated)}),Rq=zB.extend({query:U().optional().describe(TS.search.query),owner:U().optional().describe(TS.scope.owner),repo:U().optional().describe(TS.scope.repo),prNumber:Jt().int().positive().optional().describe(TS.scope.prNumber),state:nn([`open`,`closed`]).optional().describe(TS.filters.state),assignee:U().optional().describe(TS.filters.assignee),author:U().optional().describe(TS.filters.author),commenter:U().optional().describe(TS.filters.commenter),involves:U().optional().describe(TS.filters.involves),mentions:U().optional().describe(TS.filters.mentions),"review-requested":U().optional().describe(TS.filters[`review-requested`]),"reviewed-by":U().optional().describe(TS.filters[`reviewed-by`]),label:Qt([U(),Xt(U())]).optional().describe(TS.filters.label),"no-label":Yt().optional().describe(TS.filters[`no-label`]),"no-milestone":Yt().optional().describe(TS.filters[`no-milestone`]),"no-project":Yt().optional().describe(TS.filters[`no-project`]),"no-assignee":Yt().optional().describe(TS.filters[`no-assignee`]),head:U().optional().describe(TS.filters.head),base:U().optional().describe(TS.filters.base),created:Lq.shape.created,updated:Lq.shape.updated,closed:U().optional().describe(TS.filters.closed),"merged-at":U().optional().describe(TS.filters[`merged-at`]),comments:Qt([Jt().int().min(0),U().regex(/^(>=?\d+|<=?\d+|\d+\.\.\d+|\d+)$/)]).optional().describe(TS.filters.comments),reactions:Qt([Jt().int().min(0),U().regex(/^(>=?\d+|<=?\d+|\d+\.\.\d+|\d+)$/)]).optional().describe(TS.filters.reactions),interactions:Qt([Jt().int().min(0),U().regex(/^(>=?\d+|<=?\d+|\d+\.\.\d+|\d+)$/)]).optional().describe(TS.filters.interactions),merged:Yt().optional().describe(TS.filters.merged),draft:Yt().optional().describe(TS.filters.draft),match:Iq,sort:nn([`created`,`updated`,`best-match`]).optional().describe(TS.sorting.sort),order:nn([`asc`,`desc`]).optional().default(`desc`).describe(TS.sorting.order),limit:Jt().min(1).max(10).default(5).optional().describe(TS.resultLimit.limit),page:Jt().int().min(1).max(10).default(1).optional().describe(TS.pagination.page),withComments:Yt().default(!1).optional().describe(TS.outputShaping.withComments),withCommits:Yt().default(!1).optional().describe(TS.outputShaping.withCommits),type:nn([`metadata`,`fullContent`,`partialContent`]).default(`metadata`).optional().describe(TS.outputShaping.type),partialContentMetadata:Xt(Zt({file:U(),additions:Xt(Jt()).optional(),deletions:Xt(Jt()).optional()})).optional().describe(TS.outputShaping.partialContentMetadata)}),zq=VB(J.GITHUB_SEARCH_PULL_REQUESTS,Rq),Bq={QUERY_TOO_LONG:`Query too long. Maximum 256 characters allowed.`,MISSING_PARAMS:`At least one valid search parameter, filter, or PR number is required.`};function Vq(e){return!!(e?.query&&String(e.query).length>256)}function Hq(e){return!!(e?.query?.trim()||e?.owner||e?.repo||e?.author||e?.assignee||e?.prNumber&&e?.owner&&e?.repo)}function Uq(e,t){return{...e,_validationError:t}}function Wq(e,t){return e.registerTool(J.GITHUB_SEARCH_PULL_REQUESTS,{description:bS[J.GITHUB_SEARCH_PULL_REQUESTS],inputSchema:zq,annotations:{title:`GitHub Pull Request Search`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.GITHUB_SEARCH_PULL_REQUESTS,async(e,n,r)=>{let i=e.queries||[];await SK(t,J.GITHUB_SEARCH_PULL_REQUESTS,i);let a=i.findIndex(Vq);return a!==-1&&(i=i.map((e,t)=>t===a?Uq(e,Bq.QUERY_TOO_LONG):e)),i.length>0&&!i.some(Hq)&&(i=i.map((e,t)=>t===0?Uq(e,Bq.MISSING_PARAMS):e)),Gq(i,n,r)}))}async function Gq(e,t,n){return aK(e,async(e,r)=>{try{let r=e?._validationError;if(r&&typeof r==`string`)return bK(r,e);let i=await xq(e,t,n),a=TK(i,e);if(a)return a;let o=i.pull_requests||[],s=o.length>0,c=[];if(i.pagination){let{currentPage:e,totalPages:t,totalMatches:n,hasMore:r}=i.pagination;c.push(`Page ${e}/${t} (showing ${o.length} of ${n} PRs)`),r&&c.push(`Next: page=${e+1}`),e>1&&c.push(`Previous: page=${e-1}`),r||c.push(`Final page`),t>2&&c.push(`Jump to: page=1 (first) or page=${t} (last)`)}return CK(e,{owner:e.owner,repo:e.repo,pull_requests:o,total_count:i.total_count||o.length,...i.pagination&&{pagination:i.pagination}},s,J.GITHUB_SEARCH_PULL_REQUESTS,{hintContext:{matchCount:o.length},extraHints:c})}catch(t){return EK(t,e)}},{toolName:J.GITHUB_SEARCH_PULL_REQUESTS,keysPriority:[`owner`,`repo`,`pull_requests`,`pagination`,`total_count`,`error`]})}function Kq(e,t){return e.registerTool(J.GITHUB_VIEW_REPO_STRUCTURE,{description:bS[J.GITHUB_VIEW_REPO_STRUCTURE],inputSchema:ZK,annotations:{title:`GitHub Repository Structure Explorer`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.GITHUB_VIEW_REPO_STRUCTURE,async(e,n,r)=>{let i=e.queries||[];return await SK(t,J.GITHUB_VIEW_REPO_STRUCTURE,i),Xq(i,n,r)}))}function qq(e){return{mainResearchGoal:e.mainResearchGoal,researchGoal:e.researchGoal,reasoning:e.reasoning,owner:String(e.owner),repo:String(e.repo),branch:String(e.branch),path:e.path?String(e.path):void 0,depth:typeof e.depth==`number`?e.depth:void 0,entriesPerPage:typeof e.entriesPerPage==`number`?e.entriesPerPage:void 0,entryPageNumber:typeof e.entryPageNumber==`number`?e.entryPageNumber:void 0}}function Jq(e){let t={};for(let[n,r]of Object.entries(e)){let e=r.files.filter(e=>!sB(e)),i=r.folders.filter(e=>!oB(e));(e.length>0||i.length>0)&&(t[n]={files:e,folders:i})}return t}function Yq(e,t){return{path:e.path||`/`,structure:{},...t}}async function Xq(e,t,n){return aK(e,async(e,r)=>{try{let r=qq(e),i=await $K(r,t,n),a=TK(i,e);if(a)return Yq(e,a);if(!(`structure`in i)||!i.structure)return Yq(e,EK(Error(`Invalid API response structure`),e));let o=Jq(i.structure),s=Object.keys(o).length>0,c={owner:r.owner,repo:r.repo,branch:i.branch??r.branch,path:r.path||`/`,structure:o,summary:i.summary};i.pagination&&(c.pagination=i.pagination);let l=i.hints||[],u=Object.values(o).reduce((e,t)=>e+t.files.length+t.folders.length,0);return CK(e,c,s,J.GITHUB_VIEW_REPO_STRUCTURE,{hintContext:{entryCount:u},extraHints:l})}catch(t){return Yq(e,EK(t,e,`Failed to explore repository structure`))}},{toolName:J.GITHUB_VIEW_REPO_STRUCTURE,keysPriority:[`owner`,`repo`,`branch`,`path`,`structure`,`error`]})}const Zq={name:U().min(1).describe(DS.search.name),searchLimit:Jt().int().min(1).max(10).optional().default(1).describe(DS.options.searchLimit)},Qq=$t(`ecosystem`,[zB.extend({...Zq,ecosystem:tn(`npm`).describe(DS.search.ecosystem),npmFetchMetadata:Yt().optional().default(!1).describe(DS.options.npmFetchMetadata)}),zB.extend({...Zq,ecosystem:tn(`python`).describe(DS.search.ecosystem),pythonFetchMetadata:Yt().optional().default(!1).describe(DS.options.pythonFetchMetadata)})]),$q=VB(J.PACKAGE_SEARCH,Qq);function eJ(e){return e.replace(/^git\+/,``).replace(/\.git$/,``)}function tJ(e){return e.startsWith(`@`)&&e.includes(`/`)?!0:e.includes(` `)?!1:/^[a-z0-9][a-z0-9._-]*$/i.test(e)}function nJ(e,t=!1){let n=null;e.repository&&(typeof e.repository==`string`?n=eJ(e.repository):e.repository.url&&(n=eJ(e.repository.url)));let r;if(e.time){let t=(e.version?e.time[e.version]:void 0)||e.time.modified;t&&(r=t)}let i={repoUrl:n,path:e.name,version:e.version||`latest`,mainEntry:e.main||null,typeDefinitions:e.types||e.typings||null,lastPublished:r};return t&&(e.license&&(i.license=typeof e.license==`string`?e.license:e.license.type),e.author&&(typeof e.author==`string`?i.author=e.author:e.author.name&&(i.author=e.author.name)),e.description&&(i.description=e.description),e.keywords&&e.keywords.length>0&&(i.keywords=e.keywords),e.homepage&&(i.homepage=e.homepage),e.engines&&Object.keys(e.engines).length>0&&(i.engines=e.engines),e.dependencies&&Object.keys(e.dependencies).length>0&&(i.dependencies=e.dependencies),e.peerDependencies&&Object.keys(e.peerDependencies).length>0&&(i.peerDependencies=e.peerDependencies)),i}async function rJ(e,t=!1){try{let n=await ny(`view`,[e,`--json`]);if(n.error||n.exitCode!==0)return null;let r=n.stdout.trim();if(!r||r===`undefined`)return null;let i;try{let e=JSON.parse(r);if(i=Array.isArray(e)?e[0]:e,!i)return null}catch{return null}return nJ(i,t)}catch{return null}}async function iJ(e,t){let n=await rJ(e,t);return n?{packages:[n],ecosystem:`npm`,totalFound:1}:{packages:[],ecosystem:`npm`,totalFound:0}}async function aJ(e,t,n){try{let r=await ny(`search`,[e,`--json`,`--searchlimit=${t}`]);if(r.error)return{error:`NPM search failed: ${r.error.message}`,hints:[`Ensure npm is installed and available in PATH`,`Check package name for typos`]};if(r.exitCode!==0)return{error:`NPM search failed: ${r.stderr?.trim()||`Unknown error`}`,hints:[`Check package name for typos`,`Try searching with a simpler term`]};let i;try{let e=r.stdout.trim();if(!e||e===`[]`)return{packages:[],ecosystem:`npm`,totalFound:0};i=JSON.parse(e)}catch{return{error:`Failed to parse npm search output`,hints:[`Try a different search term`,`Check npm CLI version`]}}if(!Array.isArray(i))return{error:`Invalid npm search response format`,hints:[`Try a different search term`]};i=i.slice(0,t);let a=await Promise.all(i.map(async e=>{if(n){let t=await rJ(e.name,!0);if(t)return t}return{repoUrl:e.links?.repository?eJ(e.links.repository):null,path:e.name,version:e.version,mainEntry:null,typeDefinitions:null}}));return{packages:a,ecosystem:`npm`,totalFound:a.length}}catch(e){return{error:`NPM search failed: ${e instanceof Error?e.message:String(e)}`,hints:[`Check package name for typos`,`Try searching with a simpler term`,`Ensure npm is installed`]}}}async function oJ(e,t,n){return Jx(Gx(`npm-search`,{name:e,limit:t,metadata:n}),async()=>t===1&&tJ(e)?iJ(e,n):aJ(e,t,n),{shouldCache:e=>!(`error`in e)})}async function sJ(e){try{let t=await ny(`view`,[e,`deprecated`,`--json`]);if(t.error||t.exitCode!==0)return null;let n=t.stdout.trim();if(!n||n===`undefined`||n===``)return{deprecated:!1};try{let e=JSON.parse(n);return{deprecated:!0,message:typeof e==`string`?e:`This package is deprecated`}}catch{return{deprecated:!0,message:n}}}catch{return null}}async function cJ(e,t){let n=[e.toLowerCase().replace(/_/g,`-`),e.toLowerCase(),e,e.replace(/-/g,`_`).toLowerCase()],r=[...new Set(n)];for(let n of r)try{let r=encodeURIComponent(n),i=(await qv.get(`https://pypi.org/pypi/${r}/json`,{timeout:15e3,headers:{Accept:`application/json`,"User-Agent":`octocode-mcp/8.0.0`},validateStatus:e=>e===200})).data;if(!i.info)continue;let a=i.info,o=null;if(a.project_urls){let e=[`source`,`repository`,`homepage`,`source code`,`github`,`gitlab`],t=Object.keys(a.project_urls);for(let n of e){let e=t.find(e=>e.toLowerCase()===n);if(e){let t=a.project_urls[e];if(t&&(t.includes(`github`)||t.includes(`gitlab`)||t.includes(`bitbucket`))){o=t;break}}}}if(!o&&a.home_page){let e=a.home_page;(e.includes(`github`)||e.includes(`gitlab`)||e.includes(`bitbucket`))&&(o=e)}if(!t)return{packages:[{name:a.name||e,repository:o}],ecosystem:`python`,totalFound:1};let s=[];a.keywords&&(typeof a.keywords==`string`?s=a.keywords.split(/[,\s]+/).filter(e=>e.trim()):Array.isArray(a.keywords)&&(s=a.keywords)),s=s.slice(0,10);let c=a.summary||a.description||null;c&&c.length>200&&(c=c.substring(0,200)+`...`);let l,u=i.releases;if(u&&a.version&&u[a.version]){let e=u[a.version];if(Array.isArray(e)&&e.length>0){let t=e[0]?.upload_time;t&&(l=t)}}return{packages:[{name:a.name||e,version:a.version||`latest`,description:c,keywords:s,repository:o,homepage:a.home_page||void 0,author:a.author||void 0,license:a.license||void 0,lastPublished:l}],ecosystem:`python`,totalFound:1}}catch(e){if(qv.isAxiosError(e)&&e.response?.status===404)continue;throw e}return{packages:[],ecosystem:`python`,totalFound:0}}async function lJ(e,t){return Jx(Gx(`pypi-search`,{name:e,metadata:t}),async()=>cJ(e,t),{shouldCache:e=>!(`error`in e)})}async function uJ(e){let t=e.ecosystem===`npm`?e.npmFetchMetadata??!1:e.pythonFetchMetadata??!1,n=e.searchLimit??1;return e.ecosystem===`npm`?await oJ(e.name,n,t):lJ(e.name,t)}async function dJ(e,t){return await ty(1e4)?e.registerTool(J.PACKAGE_SEARCH,{description:bS[J.PACKAGE_SEARCH],inputSchema:$q,annotations:{title:`Package Search`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!0}},AB(J.PACKAGE_SEARCH,async(e,n,r)=>{let i=e.queries||[];return await SK(t,J.PACKAGE_SEARCH,i),gJ(i)})):null}function fJ(e){return`error`in e}function pJ(e){return`path`in e?e.path:e.name}function mJ(e){return`repoUrl`in e?e.repoUrl:e.repository}function hJ(e){if(!e||!e.includes(`github.com`))return{};let t=e.match(/github\.com\/([^/]+)\/([^/]+)/);return t&&t[1]&&t[2]?{owner:t[1],repo:t[2].replace(/\.git$/,``).replace(/\/$/,``)}:{}}async function gJ(e){return aK(e,async(e,t)=>{try{let t=await uJ(e);if(fJ(t))return bK(t.error,e);let n={packages:t.packages.map(e=>{let{owner:t,repo:n}=hJ(mJ(e));return t&&n?{...e,owner:t,repo:n}:e}),totalFound:t.totalFound},r=n.packages.length>0,i=null;r&&e.ecosystem===`npm`&&n.packages[0]&&(i=await sJ(pJ(n.packages[0])));let a=r?_J(n,e.ecosystem,i):vJ(e);return CK(e,n,r,J.PACKAGE_SEARCH,{extraHints:a})}catch(t){return EK(t,e)}},{toolName:J.PACKAGE_SEARCH,keysPriority:[`packages`,`totalFound`,`error`]})}function _J(e,t,n){let r=[],i=e.packages[0];if(!i)return r;let a=pJ(i),o=mJ(i);if(n?.deprecated){let e=n.message||`This package is deprecated`;r.push(`DEPRECATED: ${a} - ${e}`)}if(o?.includes(`github.com`)){let e=o.match(/github\.com\/([^/]+)\/([^/]+)/);if(e&&e[1]&&e[2]){let t=e[1],n=e[2].replace(/\.git$/,``).replace(/\/$/,``);r.push(`Explore: githubViewRepoStructure(owner="${t}", repo="${n}")`)}}return r.push(t===`npm`?`Install: npm install ${a}`:`Install: pip install ${a}`),r}function vJ(e){let t=[],n=e.name;t.push(`No ${e.ecosystem} packages found for '${n}'`);let r=yJ(n,e.ecosystem);r.length>0&&t.push(`Try: ${r.join(`, `)}`);let i=e.ecosystem===`npm`?`https://npmjs.com/search?q=${encodeURIComponent(n)}`:`https://pypi.org/search/?q=${encodeURIComponent(n)}`;return t.push(`Browse: ${i}`),t}function yJ(e,t){let n=[];if(e.includes(`-`)&&(n.push(e.replace(/-/g,`_`)),n.push(e.replace(/-/g,``))),e.includes(`_`)&&n.push(e.replace(/_/g,`-`)),e.startsWith(`@`)){let t=e.split(`/`).pop();t&&n.push(t)}return t===`npm`&&!e.endsWith(`js`)&&n.push(e+`js`),t===`python`&&!e.startsWith(`py`)&&n.push(`py`+e),[...new Set(n)].filter(t=>t!==e).slice(0,3)}var bJ=class{command;args=[];constructor(e){this.command=e}addFlag(e){return this.args.push(e),this}prependArg(e){return this.args.unshift(e),this}addOption(e,t){return this.args.push(e,String(t)),this}addArg(e){return this.args.push(e),this}build(){return{command:this.command,args:[...this.args]}}reset(){return this.args=[],this}getArgs(){return[...this.args]}};const xJ={COMMAND_TIMEOUT:3e4,MAX_OUTPUT_SIZE:10*1024*1024,MAX_RESULTS:100,CONTEXT_LINES:5,MAX_OUTPUT_CHARS:2e3},SJ={MCP_MAX_TOKENS:25e3,CHARS_PER_TOKEN:4,DEFAULT_CHAR_LENGTH:1e4,RECOMMENDED_CHAR_LENGTH:1e4,MAX_FETCH_CONTENT_CHARS:5e4,MAX_OUTPUT_SIZE_BYTES:10*1024*1024,LARGE_FILE_THRESHOLD_KB:100,MAX_ENTRIES_BEFORE_PAGINATION:100,MAX_FILES_DEFAULT:1e3,DEFAULT_ENTRIES_PER_PAGE:20,MAX_ENTRIES_PER_PAGE:20,MAX_LIST_ITEMS_DETAILED:100,MAX_LIST_ITEMS_SIMPLE:200,MAX_ARCHIVE_ENTRIES_PER_PAGE:100,MAX_DIR_ENTRIES_PER_PAGE:100,MAX_DIR_ENTRIES_TREE:1e3,DEFAULT_EXEC_TIMEOUT_MS:3e4,DEFAULT_MAX_MATCHES_PER_FILE:3,DEFAULT_CONTEXT_LINES:5,DEFAULT_MATCH_CONTENT_LENGTH:200,MAX_MATCH_CONTENT_LENGTH:800,DEFAULT_MATCHES_PER_PAGE:10,MAX_MATCHES_PER_PAGE:100,DEFAULT_FILES_PER_PAGE:10,MAX_FILES_PER_PAGE:20,MAX_RIPGREP_DIRECTORY_SIZE_MB:100,MAX_FILE_COUNT_FOR_SEARCH:1e3,ESTIMATED_AVG_FILE_SIZE_BYTES:50*1024,BINARY_MAX_BYTES:10*1024,BINARY_DEFAULT_HEX_LINES:20,BINARY_DEFAULT_MIN_STRING_LENGTH:6,MAX_ARCHIVE_FILES:1e3,DEFAULT_ARCHIVE_MAX_FILES:200,GLOBAL_MEMORY_LIMIT_BYTES:100*1024*1024,PER_OPERATION_MEMORY_LIMIT_BYTES:10*1024*1024,MEMORY_RESERVATION_TIMEOUT_MS:300*1e3,TOKEN_CRITICAL_THRESHOLD:5e4,TOKEN_HIGH_THRESHOLD:25e3,TOKEN_MODERATE_THRESHOLD:1e4,TOKEN_NOTICE_THRESHOLD:2500};var CJ=class extends bJ{constructor(){super(`rg`)}simple(e,t){return this.addFlag(`-n`),this.addFlag(`--column`),this.addFlag(`-S`),this.addOption(`--color`,`never`),this.addOption(`--sort`,`path`),this.addArg(e),this.addArg(t),this}smartCase(){return this.addFlag(`-S`),this}filesOnly(){return this.addFlag(`-l`),this}context(e){return this.addOption(`-C`,e),this}include(e){return this.addOption(`-g`,e),this}exclude(e){return this.addOption(`-g`,`!${e}`),this}excludeDir(e){return this.addOption(`-g`,`!${e}/`),this}type(e){return this.addOption(`-t`,e),this}fixedString(){return this.addFlag(`-F`),this}perlRegex(){return this.addFlag(`-P`),this}maxMatches(e){return this.addOption(`-m`,e),this}fromQuery(e){if(e.fixedString?this.addFlag(`-F`):e.perlRegex&&this.addFlag(`-P`),e.caseSensitive?this.addFlag(`-s`):e.caseInsensitive?this.addFlag(`-i`):e.smartCase!==!1&&this.addFlag(`-S`),e.noUnicode&&this.addFlag(`--no-unicode`),e.encoding&&this.addOption(`-E`,e.encoding),e.wholeWord&&this.addFlag(`-w`),e.invertMatch&&this.addFlag(`-v`),e.binaryFiles&&(e.binaryFiles===`text`?this.addFlag(`-a`):e.binaryFiles===`binary`&&this.addFlag(`--binary`)),e.followSymlinks&&this.addFlag(`-L`),e.contextLines!==void 0&&e.contextLines>0?this.addOption(`-C`,e.contextLines):(e.beforeContext!==void 0&&e.beforeContext>0&&this.addOption(`-B`,e.beforeContext),e.afterContext!==void 0&&e.afterContext>0&&this.addOption(`-A`,e.afterContext)),this.addFlag(`-n`),this.addFlag(`--column`),e.filesOnly?this.addFlag(`-l`):e.filesWithoutMatch?this.addFlag(`--files-without-match`):e.countMatches?this.addFlag(`--count-matches`):e.count&&this.addFlag(`-c`),e.maxMatchesPerFile!==void 0)this.addOption(`-m`,e.maxMatchesPerFile);else if(!e.filesOnly&&!e.count&&!e.countMatches){let t=e.matchesPerPage&&Number.isFinite(e.matchesPerPage)?e.matchesPerPage:SJ.DEFAULT_MATCHES_PER_PAGE;this.addOption(`-m`,t)}if(e.type&&this.addOption(`-t`,e.type),e.include&&e.include.length>0){let t=this._consolidateGlobs(e.include);for(let e of t)this.addOption(`-g`,e)}if(e.exclude&&e.exclude.length>0)for(let t of e.exclude)this.addOption(`-g`,`!${t}`);if(e.excludeDir&&e.excludeDir.length>0)for(let t of e.excludeDir)this.addOption(`-g`,`!${t}/`);e.noIgnore&&this.addFlag(`--no-ignore`),e.hidden&&this.addFlag(`--hidden`),e.multiline&&(this.addFlag(`-U`),e.multilineDotall&&this.addFlag(`--multiline-dotall`)),this.addFlag(`--json`),e.threads!==void 0&&this.addOption(`-j`,e.threads),e.mmap===!1&&this.addFlag(`--no-mmap`),e.includeStats&&this.addFlag(`--stats`);let t=e.sort||`path`;return e.sortReverse?(this.clearSortOption(),this.addOption(`--sortr`,t)):(this.clearSortrOption(),this.addOption(`--sort`,t)),this.addOption(`--color`,`never`),e.noMessages&&this.addFlag(`--no-messages`),e.lineRegexp&&this.addFlag(`-x`),e.passthru&&this.addFlag(`--passthru`),e.debug&&this.addFlag(`--debug`),this.addArg(e.pattern),this.addArg(e.path),this}_consolidateGlobs(e){let t=/^\*\.([a-zA-Z0-9]+)$/,n=[],r=[];for(let i of e){let e=i.match(t);e&&e[1]?n.push(e[1]):r.push(i)}let i=[];return n.length>1?i.push(`*.{${n.join(`,`)}}`):n.length===1&&i.push(`*.${n[0]}`),i.push(...r),i}clearSortOption(){let e=this.args.indexOf(`--sort`);e!==-1&&e<this.args.length-1&&this.args.splice(e,2)}clearSortrOption(){let e=this.args.indexOf(`--sortr`);e!==-1&&e<this.args.length-1&&this.args.splice(e,2)}};const wJ={ts:[`ts`,`tsx`],js:[`js`,`jsx`,`mjs`,`cjs`],py:[`py`,`pyi`],rust:[`rs`],go:[`go`],java:[`java`],cpp:[`cpp`,`cc`,`cxx`,`hpp`,`h`],c:[`c`,`h`],css:[`css`,`scss`,`sass`,`less`],html:[`html`,`htm`],json:[`json`],yaml:[`yaml`,`yml`],md:[`md`,`markdown`],xml:[`xml`],sh:[`sh`,`bash`,`zsh`],rb:[`rb`],php:[`php`],swift:[`swift`],kt:[`kt`,`kts`],scala:[`scala`],sql:[`sql`],vim:[`vim`],lua:[`lua`],r:[`r`,`R`],dockerfile:[`Dockerfile`],make:[`Makefile`,`makefile`,`mk`]};function TJ(e){return{smartCase:e.smartCase===!0,multiline:e.multiline===!0,countMatches:e.countMatches===!0,jsonOutput:e.jsonOutput===!0,sortOptions:e.sort!==void 0&&e.sort!==`path`,threads:e.threads!==void 0,mmap:e.mmap!==void 0,stats:e.includeStats===!0,gitignore:!e.noIgnore}}function EJ(e){let t=[],n=TJ(e);return n.smartCase&&t.push(`smartCase not supported by grep - using case-insensitive search (-i)`),n.multiline&&t.push(`multiline patterns not supported by grep - feature disabled`),n.countMatches&&t.push(`countMatches not supported by grep - using line count (-c) instead`),n.sortOptions&&t.push(`sort="${e.sort}" not supported by grep - results will be in file order`),n.gitignore&&t.push(`grep does not respect .gitignore - all files will be searched`),n.stats&&t.push(`includeStats not supported by grep - stats will not be available`),t}var DJ=class extends bJ{constructor(){super(`grep`)}simple(e,t){return this.addFlag(`-r`),this.addFlag(`-n`),this.addFlag(`-H`),this.addFlag(`-I`),this.addOption(`--color`,`never`),this.addArg(e),this.addArg(t),this}caseInsensitive(){return this.addFlag(`-i`),this}filesOnly(){return this.addFlag(`-l`),this}context(e){return this.addOption(`-C`,e),this}include(e){return this.addOption(`--include`,e),this}exclude(e){return this.addOption(`--exclude`,e),this}excludeDir(e){return this.addOption(`--exclude-dir`,e),this}fixedString(){return this.addFlag(`-F`),this}fromQuery(e){if(this.addFlag(`-r`),e.fixedString?this.addFlag(`-F`):e.perlRegex&&this.addFlag(`-E`),(e.caseInsensitive||e.smartCase)&&this.addFlag(`-i`),e.wholeWord&&this.addFlag(`-w`),e.invertMatch&&this.addFlag(`-v`),e.contextLines!==void 0&&e.contextLines>0?this.addOption(`-C`,e.contextLines):(e.beforeContext!==void 0&&e.beforeContext>0&&this.addOption(`-B`,e.beforeContext),e.afterContext!==void 0&&e.afterContext>0&&this.addOption(`-A`,e.afterContext)),this.addFlag(`-n`),e.filesOnly?this.addFlag(`-l`):e.filesWithoutMatch?this.addFlag(`-L`):(e.count||e.countMatches)&&this.addFlag(`-c`),e.type){let t=wJ[e.type];if(t)for(let e of t)this.addOption(`--include`,`*.${e}`);else this.addOption(`--include`,`*.${e.type}`)}if(e.include&&e.include.length>0)for(let t of e.include)this.addOption(`--include`,t);if(e.exclude&&e.exclude.length>0)for(let t of e.exclude)this.addOption(`--exclude`,t);if(e.excludeDir&&e.excludeDir.length>0)for(let t of e.excludeDir)this.addOption(`--exclude-dir`,t);return e.binaryFiles?e.binaryFiles===`text`?this.addFlag(`-a`):e.binaryFiles===`without-match`&&this.addFlag(`-I`):this.addFlag(`-I`),this.addOption(`--color`,`never`),this.addFlag(`-H`),e.lineRegexp&&this.addFlag(`-x`),this.addArg(e.pattern),this.addArg(e.path),this}};const OJ=bS[J.LOCAL_RIPGREP],kJ=BB.extend({pattern:U().min(1).describe(OS.search.pattern),path:U().describe(OS.search.path),mode:nn([`discovery`,`paginated`,`detailed`]).optional().describe(OS.search.mode),fixedString:Yt().optional().describe(OS.options.fixedString),perlRegex:Yt().optional().describe(OS.options.perlRegex),smartCase:Yt().optional().default(!0).describe(OS.options.smartCase),caseInsensitive:Yt().optional().describe(OS.options.caseInsensitive),caseSensitive:Yt().optional().describe(OS.options.caseSensitive),wholeWord:Yt().optional().describe(OS.options.wholeWord),invertMatch:Yt().optional().describe(OS.options.invertMatch),type:U().optional().describe(OS.filters.type),include:Xt(U()).optional().describe(OS.filters.include),exclude:Xt(U()).optional().describe(OS.filters.exclude),excludeDir:Xt(U()).optional().describe(OS.filters.excludeDir),noIgnore:Yt().optional().describe(OS.filters.noIgnore),hidden:Yt().optional().describe(OS.filters.hidden),followSymlinks:Yt().optional().describe(OS.filters.followSymlinks),filesOnly:Yt().optional().describe(OS.output.filesOnly),filesWithoutMatch:Yt().optional().describe(OS.output.filesWithoutMatch),count:Yt().optional().describe(OS.output.count),countMatches:Yt().optional().describe(OS.output.countMatches),contextLines:Jt().int().min(0).max(50).optional().describe(OS.context.contextLines),beforeContext:Jt().int().min(0).max(50).optional().describe(OS.context.beforeContext),afterContext:Jt().int().min(0).max(50).optional().describe(OS.context.afterContext),matchContentLength:Jt().int().min(1).max(800).optional().default(200).describe(OS.context.matchContentLength),lineNumbers:Yt().optional().default(!0).describe(OS.context.lineNumbers),column:Yt().optional().describe(OS.context.column),maxMatchesPerFile:Jt().int().min(1).max(100).optional().describe(OS.pagination.maxMatchesPerFile),maxFiles:Jt().int().min(1).max(1e3).optional().describe(OS.pagination.maxFiles),filesPerPage:Jt().int().min(1).max(20).optional().default(10).describe(OS.pagination.filesPerPage),filePageNumber:Jt().int().min(1).optional().default(1).describe(OS.pagination.filePageNumber),matchesPerPage:Jt().int().min(1).max(100).optional().default(10).describe(OS.pagination.matchesPerPage),multiline:Yt().optional().describe(OS.options.multiline),multilineDotall:Yt().optional().describe(OS.options.multilineDotall),binaryFiles:nn([`text`,`without-match`,`binary`]).optional().default(`without-match`).describe(OS.filters.binaryFiles),includeStats:Yt().optional().default(!0).describe(OS.output.includeStats),jsonOutput:Yt().optional().describe(OS.output.jsonOutput),vimgrepFormat:Yt().optional().describe(OS.output.vimgrepFormat),includeDistribution:Yt().optional().default(!0).describe(OS.output.includeDistribution),threads:Jt().int().min(1).max(32).optional().describe(OS.advanced.threads),mmap:Yt().optional().describe(OS.advanced.mmap),noUnicode:Yt().optional().describe(OS.advanced.noUnicode),encoding:U().optional().describe(OS.advanced.encoding),sort:nn([`path`,`modified`,`accessed`,`created`]).optional().default(`path`).describe(OS.advanced.sort),sortReverse:Yt().optional().describe(OS.advanced.sortReverse),noMessages:Yt().optional().describe(OS.advanced.noMessages),lineRegexp:Yt().optional().describe(OS.advanced.lineRegexp),passthru:Yt().optional().describe(OS.advanced.passthru),debug:Yt().optional().describe(OS.advanced.debug),showFileLastModified:Yt().default(!1).describe(OS.advanced.showFileLastModified)}),AJ=VB(J.LOCAL_RIPGREP,kJ,{maxQueries:5});function jJ(e){if(!e.mode)return e;let t={};switch(e.mode){case`discovery`:t.filesOnly=!0,t.smartCase=!0;break;case`paginated`:t.filesPerPage=10,t.matchesPerPage=10,t.smartCase=!0;break;case`detailed`:t.contextLines=3,t.filesPerPage=10,t.matchesPerPage=20,t.smartCase=!0;break}return{...t,...e}}function MJ(e){let t=[],n=[];if(e.fixedString&&e.perlRegex&&n.push(`fixedString and perlRegex are mutually exclusive. Choose one.`),e.filesOnly&&e.count&&t.push(`filesOnly and count are mutually exclusive. Using filesOnly.`),e.filesOnly&&e.filesWithoutMatch&&n.push(`filesOnly and filesWithoutMatch are mutually exclusive. Choose one.`),e.passthru&&e.filesOnly&&n.push(`passthru and filesOnly are mutually exclusive.`),e.passthru&&t.push(`passthru prints ALL lines from matched files. This can produce very large output. Consider using context lines instead.`),e.lineRegexp&&e.wholeWord&&t.push(`lineRegexp and wholeWord both specified. lineRegexp takes precedence.`),e.invertMatch&&!e.filesWithoutMatch&&t.push(`invertMatch inverts at LINE level (shows non-matching lines). Files in results may still contain the pattern on other lines. For FILE-level inversion (files without ANY matches), use filesWithoutMatch=true instead.`),[e.caseInsensitive,e.caseSensitive,e.smartCase].filter(Boolean).length>1&&t.push(`Multiple case sensitivity modes specified. Priority: caseSensitive > caseInsensitive > smartCase`),e.contextLines&&e.contextLines>2||e.beforeContext&&e.beforeContext>2||e.afterContext&&e.afterContext>2){let n=e.matchContentLength||200;t.push(`Context lines enabled (${e.contextLines||e.beforeContext||e.afterContext} lines). Match values will include context and be truncated to ${n} chars. Use matchesPerPage for pagination.`)}if(e.multiline&&t.push(`Multiline mode is memory-intensive and slower. Entire files are loaded into memory. Only use when pattern genuinely spans multiple lines.`),e.perlRegex&&!e.noUnicode&&e.multiline&&t.push(`PERFORMANCE TIP: For fastest PCRE2 multiline searches on ASCII codebases, consider using noUnicode=true (2-3x faster).`),!e.filesOnly&&!e.count&&!e.maxMatchesPerFile&&!e.matchesPerPage&&t.push(`No output limiting specified. Consider setting maxMatchesPerFile (default: 3) to control output size.`),e.include&&e.include.length>1){let n=e.include.every(e=>e.match(/^\*\.[a-zA-Z0-9]+$/)),r=e.include[0];if(n&&r&&!r.includes(`{`)){let n=e.include.map(e=>e.replace(`*.`,``)).join(`,`);t.push(`TIP: Consolidate globs for better performance: include=["*.{${n}}"] instead of separate globs.`)}}if(e.include&&!e.type){let n=e.include[0]?.match(/^\*\.([a-z]+)$/)?.[1];n&&[`ts`,`js`,`py`,`rust`,`go`,`java`,`cpp`,`c`].includes(n)&&t.push(`TIP: Use type="${n}" instead of include glob for cleaner syntax.`)}return{isValid:n.length===0,warnings:t,errors:n}}const NJ=[/^\.git$/,/^\.git\//,/\/\.git$/,/\/\.git\//,/^\.ssh$/,/^\.ssh\//,/\/\.ssh$/,/\/\.ssh\//,/^\.aws$/,/^\.aws\//,/\/\.aws$/,/\/\.aws\//,/^\.docker$/,/^\.docker\//,/\/\.docker$/,/\/\.docker\//,/^\.config\/gcloud$/,/^\.config\/gcloud\//,/\/\.config\/gcloud$/,/\/\.config\/gcloud\//,/^\.azure$/,/^\.azure\//,/\/\.azure$/,/\/\.azure\//,/^\.kube$/,/^\.kube\//,/\/\.kube$/,/\/\.kube\//,/^\.terraform$/,/^\.terraform\//,/\/\.terraform$/,/\/\.terraform\//,/^secrets$/,/^secrets\//,/\/secrets$/,/\/secrets\//,/^private$/,/^private\//,/\/private$/,/\/private\//,/^\.password-store$/,/^\.password-store\//,/\/\.password-store$/,/\/\.password-store\//,/\.mozilla\/firefox\//,/\.config\/chromium\//,/\.config\/google-chrome\//,/Library\/Application Support\/Google\/Chrome\//,/Library\/Application Support\/Firefox\//,/Library\/Keychains\//,/^\.thunderbird$/,/^\.thunderbird\//,/\/\.thunderbird$/,/\/\.thunderbird\//,/^\.evolution$/,/^\.evolution\//,/\/\.evolution$/,/\/\.evolution\//,/^\.vagrant$/,/^\.vagrant\//,/\/\.vagrant$/,/\/\.vagrant\//,/^\.minikube$/,/^\.minikube\//,/\/\.minikube$/,/\/\.minikube\//,/^\.bitcoin$/,/^\.bitcoin\//,/\/\.bitcoin$/,/\/\.bitcoin\//,/^\.ethereum$/,/^\.ethereum\//,/\/\.ethereum$/,/\/\.ethereum\//,/^\.electrum$/,/^\.electrum\//,/\/\.electrum$/,/\/\.electrum\//],PJ=[/^\.env$/,/^\.env\.local$/,/^\.env\.development$/,/^\.env\.production$/,/^\.env\.test$/,/^\.env\..+$/,/\.env$/,/\.env\.local$/,/\.env\..+$/,/^\.npmrc$/,/^\.pypirc$/,/^\.netrc$/,/^\.dockercfg$/,/^\.docker\/config\.json$/,/^credentials$/,/^\.credentials$/,/^\.aws\/credentials$/,/^\.aws\/config$/,/^\.ssh\/.*$/,/^id_rsa$/,/^id_dsa$/,/^id_ecdsa$/,/^id_ed25519$/,/^id_rsa\.pub$/,/^id_dsa\.pub$/,/^id_ecdsa\.pub$/,/^id_ed25519\.pub$/,/^known_hosts$/,/^authorized_keys$/,/.*_rsa$/,/.*_dsa$/,/.*_ecdsa$/,/.*_ed25519$/,/^private.*\.key$/,/^private.*\.pem$/,/^.*[-_]private[-_].*\.key$/,/^.*[-_]private[-_].*\.pem$/,/[-_]private\.key$/,/[-_]private\.pem$/,/^.*\.private\.key$/,/^.*\.private\.pem$/,/\.pem$/,/\.key$/,/\.crt$/,/\.cer$/,/\.keystore$/,/\.p12$/,/\.pfx$/,/\.jks$/,/\.ppk$/,/^service[-_]account.*\.json$/,/^.*-service[-_]account.*\.json$/,/^application[-_]default[-_]credentials\.json$/,/^gcloud[-_]credentials\.json$/,/^kubeconfig$/,/^\.kube\/config$/,/^k8s[-_]config$/,/^terraform\.tfstate$/,/^terraform\.tfstate\.backup$/,/^terraform\.tfvars$/,/^\.terraform\.lock\.hcl$/,/^\.pgpass$/,/^\.my\.cnf$/,/^\.psqlrc$/,/^secrets\.yml$/,/^master\.key$/,/^config\/master\.key$/,/^wp-config\.php$/,/^google-services\.json$/,/^GoogleService-Info\.plist$/,/^keystore\.properties$/,/\.mobileprovision$/,/\.provisionprofile$/,/^\.token$/,/^token\.txt$/,/^access_token$/,/^refresh_token$/,/^bearer_token$/,/^auth_token$/,/^client_secret.*\.json$/,/^oauth2.*\.json$/,/^\.password$/,/^password\.txt$/,/^passwords\.txt$/,/^\.secret$/,/^secret\.txt$/,/^secrets\.txt$/,/^apikey\.txt$/,/^api_key\.txt$/,/^api-key\.txt$/,/^\.git-credentials$/,/^git-credentials$/,/^\.htpasswd$/,/^auth\.json$/,/^\.ftpconfig$/,/^ftpconfig\.json$/,/^_netrc$/,/^\.bash_history$/,/^\.zsh_history$/,/^\.sh_history$/,/^\.history$/,/^\.mysql_history$/,/^\.psql_history$/,/^\.sqlite_history$/,/^\.pip\/pip\.conf$/,/^credentials\.xml$/,/^secrets\/.*\.xml$/,/^shadow$/,/^shadow\.bak$/,/^gshadow$/,/^\.muttrc$/,/^\.mailrc$/,/^\.ircrc$/,/^\.s3cfg$/,/^s3cfg$/,/^\.slack-token$/,/^slack[-_]token$/,/^\.github[-_]token$/,/^github[-_]token$/,/^\.netrc\.heroku$/,/^\.circleci\/local[-_]config\.yml$/,/^vault[-_]pass.*\.txt$/,/^\.vault[-_]pass.*$/,/^\.npm[-_]token$/,/^settings\.xml$/,/^\.m2\/settings\.xml$/,/^gradle\.properties$/,/^\.gradle\/gradle\.properties$/,/^\.subversion\/auth\/.*$/,/^Login Data$/,/^Cookies$/,/\/Login Data$/,/\/Cookies$/,/\/logins\.json$/,/\/key[34]\.db$/,/\.mozilla\/firefox\/.*\/logins\.json$/,/\.mozilla\/firefox\/.*\/key[34]\.db$/,/\.config\/chromium\/.*\/Login Data$/,/\.config\/google-chrome\/.*\/Login Data$/,/\.kdbx$/,/\.kdb$/,/^1Password\.sqlite$/,/^1Password.*\.sqlite$/,/\.agilekeychain\//,/\.opvault\//,/^password-store$/,/^passwords\.kdbx$/,/^keepass\.kdbx$/,/^wallet\.dat$/,/^default_wallet$/,/^\.bitcoin\/wallet\.dat$/,/^\.ethereum\/keystore\/.*$/,/^\.electrum\/wallets\/.*$/,/\/keystore\/UTC--.*$/,/^dump\.rdb$/,/^mongodb\.dump$/,/\.bson$/,/\.dump$/,/^\.idea\/dataSources\.xml$/,/^\.idea\/webServers\.xml$/,/^\.idea\/deployment\.xml$/,/^\.vagrant\/machines\/.*\/private_key$/,/^\.vagrant\.d\/insecure_private_key$/,/^cookies\.txt$/,/^\.cookies$/,/^session$/,/^sessionid$/,/^\.wget-hsts$/,/^core$/,/^core\.\d+$/,/\.core$/,/\.dmp$/,/\.mdmp$/,/^Credentials$/,/^NTUSER\.DAT$/,/^SAM$/,/\.keychain$/,/\.keychain-db$/,/\.csr$/,/^oauth[-_]token.*$/,/^bearer[-_]token.*$/,/^jwt[-_]token.*$/,/^\.token\..*$/,/^api[-_]keys?\..*$/,/^\.redis_history$/,/^\.mongo_history$/,/^\.dbshell$/,/^docker-compose\.override\.yml$/,/^docker-compose\..*\.yml$/,/^\.gcp[-_]credentials\.json$/,/^\.azure[-_]credentials$/,/^\.do[-_]token$/,/^\.linode[-_]token$/,/^\.msmtprc$/,/^\.fetchmailrc$/,/^wireguard\.conf$/,/^wg[0-9]+\.conf$/,/\.ovpn$/,/^PASSWORDS\.md$/,/^SECRETS\.md$/,/^CREDENTIALS\.md$/,/^ACCESS\.md$/,/^\.env\.dusk\..*$/,/\.asc$/,/\.gpg$/,/^\.ssh\/config$/,/\.rdp$/,/^credentials\.db$/,/^credentials\.sqlite$/,/\.postman_environment\.json$/,/^\.ruby-env$/,/^\.rbenv-vars$/,/^\.python-env$/,/^\.node-env$/,/^\.rsync[-_]password$/,/^rsync[-_]password$/];function FJ(e){if(!e||e.trim()===``)return!0;let t=e.replace(/\\/g,`/`),n=t.split(`/`);for(let e of n)if(NJ.some(t=>t.test(e)))return!0;return!!NJ.some(e=>e.test(t))}function IJ(e){if(!e||e.trim()===``)return!0;let t=e.replace(/\\/g,`/`),n=t.split(`/`).pop()||``;return!!(PJ.some(e=>e.test(n))||PJ.some(e=>e.test(t)))}function LJ(e){return FJ(e)||IJ(e)}const RJ=new class{allowedRoots;constructor(e){let t=typeof e==`string`?{workspaceRoot:e}:e||{},n=t.workspaceRoot?this.expandTilde(t.workspaceRoot):process.cwd();if(this.allowedRoots=[o.resolve(n)],t.includeHomeDir!==!1){let e=b.homedir();e&&!this.allowedRoots.includes(e)&&this.allowedRoots.push(e)}if(t.additionalRoots)for(let e of t.additionalRoots)this.addAllowedRoot(e);let r=process.env.ALLOWED_PATHS;if(r){let e=r.split(`,`).map(e=>e.trim()).filter(e=>e.length>0);for(let t of e)this.addAllowedRoot(t)}}expandTilde(e){return e.startsWith(`~`)?o.join(b.homedir(),e.slice(1)):e}addAllowedRoot(e){let t=this.expandTilde(e),n=o.resolve(t);this.allowedRoots.includes(n)||this.allowedRoots.push(n)}validate(e){if(!e||e.trim()===``)return{isValid:!1,error:`Path cannot be empty`};let t=this.expandTilde(e),n=o.resolve(t);if(!this.allowedRoots.some(e=>n===e?!0:n.startsWith(e+o.sep)))return{isValid:!1,error:`Path '${e}' is outside allowed directories. Allowed roots: ${this.allowedRoots.join(`, `)}`};if(LJ(n))return{isValid:!1,error:`Path '${e}' is in an ignored directory or matches an ignored pattern`};try{let e=f.realpathSync(n);return this.allowedRoots.some(t=>e===t||e.startsWith(t+o.sep))?LJ(e)?{isValid:!1,error:`Symlink target '${e}' is in an ignored directory or matches an ignored pattern`}:{isValid:!0,sanitizedPath:e}:{isValid:!1,error:`Symlink target '${e}' is outside allowed directories`}}catch(t){if(t instanceof Error){let r=t;if(r.code===`ENOENT`)return{isValid:!0,sanitizedPath:n};if(r.code===`EACCES`)return{isValid:!1,error:`Permission denied accessing path: ${e}`};if(r.code===`ELOOP`)return{isValid:!1,error:`Symlink loop detected at path: ${e}`};if(r.code===`ENAMETOOLONG`)return{isValid:!1,error:`Path name too long: ${e}`}}return{isValid:!1,error:`Unexpected error validating path: ${e}`}}}async exists(e){let t=this.validate(e);if(!t.isValid||!t.sanitizedPath)return!1;try{return await f.promises.access(t.sanitizedPath,f.constants.R_OK),!0}catch{return!1}}async getType(e){let t=this.validate(e);if(!t.isValid||!t.sanitizedPath)return null;try{let e=await f.promises.lstat(t.sanitizedPath);return e.isFile()?`file`:e.isDirectory()?`directory`:e.isSymbolicLink()?`symlink`:null}catch{return null}}getAllowedRoots(){return[...this.allowedRoots]}};function zJ(e,t,n,r){let i=[],a=t?.includes(`outside allowed`),o=t?.includes(`Permission denied`),s=t?.includes(`Symlink`)||t?.includes(`symlink`),c=t?.includes(`ENOENT`)||t?.includes(`not found`);return i.push(`Current working directory (CWD): ${n}`),e!==r&&i.push(`Path resolved to: ${r}`),a?(i.push(``),i.push(`🔧 Fix: Use an absolute path within the workspace:`),i.push(` Instead of: path="${e}"`),i.push(` Try: path="${n}" (workspace root)`),i.push(` Or: path="/absolute/path/to/your/target" (full absolute path)`)):o?(i.push(``),i.push(`🔒 Permission denied - check file/directory permissions`)):s?(i.push(``),i.push(`🔗 Symlink issue - the target may be outside allowed directories`)):c&&(i.push(``),i.push(`📁 Path not found - verify the path exists`),i.push(` Use absolute path to avoid CWD ambiguity: path="${n}/..."`)),i.push(``),i.push(`💡 TIP: Relative paths resolve from CWD, which may differ from your workspace.`),i.push(` Always prefer absolute paths for reliable results.`),i}function BJ(e,t){let n=process.cwd(),r=o.resolve(e.path),i=RJ.validate(e.path);if(!i.isValid){let a=zb.pathValidationFailed(e.path,i.error),o=zJ(e.path,i.error,n,r);return{isValid:!1,errorResult:bK(a,e,{toolName:t,hintContext:{errorType:`permission`,path:e.path,originalError:i.error},extra:{cwd:n,resolvedPath:r},customHints:o})}}return{isValid:!0,sanitizedPath:i.sanitizedPath}}function VJ(e,t,n={}){let{threshold:r=100,itemType:i=`item`,detailed:a=!1}=n;return t?{shouldBlock:!1}:e>r?{shouldBlock:!0,errorCode:zb.outputTooLarge(e,r).errorCode,hints:[`Found ${e} ${i}${e===1?``:`s`} - exceeds safe limit of ${r}`,`Use charLength to paginate through results`,a?`Detailed results increase size - consider using charLength for pagination`:`Consider using charLength to paginate large result sets`]}:{shouldBlock:!1}}function HJ(e,t){let n=e.trim().split(`
`).filter(Boolean),r=new Map,i={};for(let e of n)if(e.trim()&&e.trim().startsWith(`{`))try{let t=JSON.parse(e);if(t.type===`match`){let e=t.data.path.text,n=t.data.lines.text,i=t.data.line_number,a=t.data.absolute_offset;r.has(e)||r.set(e,{rawMatches:[],contexts:new Map});let o=t.data.submatches[0],s=o?.start??0,c=o?o.end-o.start:n.length,l=r.get(e);l&&l.rawMatches.push({lineText:n,lineNumber:i,absoluteOffset:a,column:s,matchLength:c})}else if(t.type===`context`){let e=t.data.path.text,n=t.data.line_number,i=t.data.lines.text;r.has(e)||r.set(e,{rawMatches:[],contexts:new Map});let a=r.get(e);a&&a.contexts.set(n,i)}else t.type===`summary`&&(i={matchCount:t.data.stats.matches,matchedLines:t.data.stats.matched_lines,filesMatched:t.data.stats.searches_with_match,filesSearched:t.data.stats.searches,bytesSearched:t.data.stats.bytes_searched,searchTime:t.data.stats.elapsed.human})}catch{}let a=t.beforeContext??t.contextLines??0,o=t.afterContext??t.contextLines??0,s=t.matchContentLength||SJ.DEFAULT_MATCH_CONTENT_LENGTH;return{files:Array.from(r.entries()).map(([e,t])=>{let n=t.rawMatches.map(e=>{let n=[];for(let r=a;r>0;r--){let i=t.contexts.get(e.lineNumber-r);i&&n.push(i)}n.push(e.lineText);for(let r=1;r<=o;r++){let i=t.contexts.get(e.lineNumber+r);i&&n.push(i)}let r=n.join(`
`),i=[...r];return i.length>s&&(r=i.slice(0,s-3).join(``)+`...`),{value:r,location:{byteOffset:e.absoluteOffset,byteLength:e.matchLength,charOffset:e.absoluteOffset,charLength:e.matchLength},line:e.lineNumber,column:e.column}});return{path:e,matchCount:n.length,matches:n}}),stats:i}}function UJ(e,t){let n=e.trim().split(`
`).filter(Boolean),r=new Map;if(t.filesOnly)for(let e of n){let t=e.trim();t&&!r.has(t)&&r.set(t,[])}else for(let e of n){let t=e.match(/^(.+?):(\d+):(.*)$/);if(t){let[,e,n,i]=t,a=e,o=i,s=parseInt(n,10);r.has(a)||r.set(a,[]);let c=r.get(a);c&&c.push({lineText:o,lineNumber:s,column:0})}else if(e.includes(`:`)){let t=e.indexOf(`:`),n=e.substring(0,t),i=e.substring(t+1);if(n&&!n.includes(`\0`)){r.has(n)||r.set(n,[]);let e=r.get(n);e&&e.push({lineText:i,lineNumber:0,column:0})}}}let i=t.matchContentLength||SJ.DEFAULT_MATCH_CONTENT_LENGTH;return Array.from(r.entries()).map(([e,t])=>{let n=t.map(e=>{let t=e.lineText,n=[...t];return n.length>i&&(t=n.slice(0,i-3).join(``)+`...`),{value:t,location:{byteOffset:0,byteLength:0,charOffset:0,charLength:t.length},line:e.lineNumber,column:e.column}});return{path:e,matchCount:n.length,matches:n}})}function WJ(e){return e.registerTool(J.LOCAL_RIPGREP,{description:OJ,inputSchema:AJ,annotations:{title:`Local Ripgrep Search`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await GJ(e),{toolName:J.LOCAL_RIPGREP}))}async function GJ(e){let t=jJ(e);try{return(await my(`rg`)).available?await KJ(t):(await my(`grep`)).available?t.multiline?bK(Error(`multiline patterns require ripgrep (rg). Install ripgrep or remove multiline option.`),t,{toolName:J.LOCAL_RIPGREP}):await qJ(t):bK(zb.commandNotAvailable(`rg or grep`,`${hy(`rg`)} Alternatively, ensure grep is in PATH.`),t,{toolName:J.LOCAL_RIPGREP})}catch(e){return(e instanceof Error?e.message:String(e)).includes(`Output size limit exceeded`)?{status:`error`,errorCode:Nb.OUTPUT_TOO_LARGE,path:t.path,searchEngine:`rg`,researchGoal:t.researchGoal,reasoning:t.reasoning,hints:[`Output exceeded 10MB - your pattern matched too broadly. Think about why results exploded:`,`Is the pattern too generic? Make it specific to target what you actually need`,`Searching everything? Add type filters or path restrictions to focus scope`,`For node_modules: Target specific packages rather than searching the entire directory`,`Need file names only? FIND_FILES searches metadata without reading content`,`Strategy: Start with filesOnly=true to see what matched, then narrow before reading content`]}:bK(e,t,{toolName:J.LOCAL_RIPGREP})}}async function KJ(e){let t=MJ(e);if(!t.isValid)return bK(Error(`Query validation failed: ${t.errors.join(`, `)}`),e,{toolName:J.LOCAL_RIPGREP,extra:{warnings:t.warnings}});let n=BJ(e,J.LOCAL_RIPGREP);if(!n.isValid)return{...n.errorResult,warnings:t.warnings};e.path=n.sanitizedPath;let r=await XJ(e.path),i=[];r.isLarge&&!e.filesOnly&&(i.push(`Large directory detected (~${Math.round(r.estimatedSizeMB)}MB, ~${r.estimatedFileCount} files). Consider chunking workflow for better performance.`),i.push(...gK(`search`)));let{command:a,args:o}=new CJ().fromQuery(e).build(),s=await dy(a,o);if(s.stderr?.includes(`timeout`)||s.code===null){let t=SJ.DEFAULT_EXEC_TIMEOUT_MS;return{status:`error`,errorCode:Nb.COMMAND_TIMEOUT,path:e.path,searchEngine:`rg`,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Search timed out after ${t/1e3} seconds.`,`Try a more specific path or add type/include filters to narrow the search.`,`Use filesOnly=true for faster discovery.`,`Consider excluding large directories with excludeDir.`,...i]}}if(s.code===1||s.success&&!s.stdout.trim())return{status:`empty`,path:e.path,searchEngine:`rg`,warnings:[...t.warnings,...i],researchGoal:e.researchGoal,reasoning:e.reasoning,hints:_K(J.LOCAL_RIPGREP,`empty`)};if(!s.success)return bK(Error(`Ripgrep failed (exit code ${s.code}): ${s.stderr}`),e,{toolName:J.LOCAL_RIPGREP});let{files:c,stats:l}=HJ(s.stdout,e);return JJ(c,e,`rg`,[...t.warnings,...i],l)}async function qJ(e){let t=EJ(e);t.unshift(`Using grep fallback (ripgrep not available). Some features may be limited.`);let n=MJ(e);if(!n.isValid)return bK(Error(`Query validation failed: ${n.errors.join(`, `)}`),e,{toolName:J.LOCAL_RIPGREP,extra:{warnings:[...t,...n.warnings]}});let r=BJ(e,J.LOCAL_RIPGREP);if(!r.isValid)return{...r.errorResult,warnings:[...t,...n.warnings]};e.path=r.sanitizedPath;let i=await XJ(e.path),a=[];i.isLarge&&!e.filesOnly&&(a.push(`Large directory detected (~${Math.round(i.estimatedSizeMB)}MB, ~${i.estimatedFileCount} files). Consider chunking workflow for better performance.`),a.push(...gK(`search`)));let{command:o,args:s}=new DJ().fromQuery(e).build(),c=await dy(o,s);if(c.stderr?.includes(`timeout`)||c.code===null){let t=SJ.DEFAULT_EXEC_TIMEOUT_MS;return{status:`error`,errorCode:Nb.COMMAND_TIMEOUT,path:e.path,searchEngine:`grep`,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Search timed out after ${t/1e3} seconds.`,`Try a more specific path or add type/include filters to narrow the search.`,`Use filesOnly=true for faster discovery.`,`Consider excluding large directories with excludeDir.`,...a]}}return c.code===1||c.success&&!c.stdout.trim()?{status:`empty`,path:e.path,searchEngine:`grep`,warnings:[...t,...n.warnings,...a],researchGoal:e.researchGoal,reasoning:e.reasoning,hints:_K(J.LOCAL_RIPGREP,`empty`)}:c.success?JJ(UJ(c.stdout,e),e,`grep`,[...t,...n.warnings,...a]):bK(Error(`Grep failed (exit code ${c.code}): ${c.stderr}`),e,{toolName:J.LOCAL_RIPGREP})}async function JJ(e,t,n,r,i){let a=n===`rg`?await QJ(e):e,o=await Promise.all(a.map(async e=>{let n={...e};return t.showFileLastModified&&(n.modified=await ZJ(e.path)),n}));o.sort((e,n)=>t.showFileLastModified&&e.modified&&n.modified?new Date(n.modified).getTime()-new Date(e.modified).getTime():e.path.localeCompare(n.path));let s=o,c=!1;t.maxFiles&&o.length>t.maxFiles&&(s=o.slice(0,t.maxFiles),c=!0);let l=s.length,u=s.reduce((e,t)=>e+t.matchCount,0),d=t.filesOnly?i?.matchCount??l:u,f=t.filesPerPage||SJ.DEFAULT_FILES_PER_PAGE,p=t.filePageNumber||1,m=Math.ceil(l/f),h=(p-1)*f,g=Math.min(h+f,l),_=s.slice(h,g),v=t.matchesPerPage||SJ.DEFAULT_MATCHES_PER_PAGE,y=_.map(e=>{let n=e.matches.length,r=Math.ceil(n/v),i=t.filesOnly?[]:e.matches.slice(0,v),a={path:e.path,matchCount:n,matches:i,pagination:!t.filesOnly&&n>v?{currentPage:1,totalPages:r,matchesPerPage:v,totalMatches:n,hasMore:r>1}:void 0};return t.showFileLastModified&&e.modified&&(a.modified=e.modified),a}),b=[`File page ${p}/${m} (showing ${y.length} of ${l})`,`Total: ${d} matches across ${l} files`,p<m?`Next: filePageNumber=${p+1}`:`Final page`];c&&b.push(`Results limited to ${t.maxFiles} files (found ${o.length} matching)`);let x=y.filter(e=>e.pagination?.hasMore);x.length>0&&b.push(`Note: ${x.length} file(s) have more matches - use matchesPerPage to see more`);let S=YJ(y,t,d);return{status:`hasResults`,files:y,cwd:process.cwd(),totalMatches:d,totalFiles:l,path:t.path,searchEngine:n,pagination:{currentPage:p,totalPages:m,filesPerPage:f,totalFiles:l,hasMore:p<m},warnings:r,researchGoal:t.researchGoal,reasoning:t.reasoning,hints:[...b,...S,..._K(J.LOCAL_RIPGREP,`hasResults`)]}}function YJ(e,t,n){let r=[];if((n>100||e.length>20)&&(r.push(``,`Large result set - refine search:`),!t.type&&!t.include&&r.push(` - Narrow by file type: type="ts" or include=["*.{ts,tsx}"]`),t.excludeDir?.length||r.push(` - Exclude directories: excludeDir=["test", "vendor", "generated"]`),t.pattern.length<5&&r.push(` - Use more specific pattern (current pattern is very short)`)),n>0&&n<=100&&r.push(``,`Good result size - manageable for analysis`),n>0){let e=t.matchContentLength||SJ.DEFAULT_MATCH_CONTENT_LENGTH;r.push(``,`Integration:`,` - location.byteOffset/byteLength: raw byte offsets from ripgrep (use with Buffer operations)`,` - location.charOffset/charLength: character indices for JavaScript strings`,` - Match values truncated to ${e} chars (configurable via matchContentLength: 1-800)`,` - Line/column numbers provided for human reference`)}return r}async function XJ(e){try{let t=0,n=0,r=await p.readdir(e,{withFileTypes:!0});for(let i of r)if(i.isFile())try{let r=await p.stat(c(e,i.name));n+=r.size,t++}catch{}else if(i.isDirectory()&&!i.name.startsWith(`.`))try{let r=(await p.readdir(c(e,i.name),{withFileTypes:!0})).filter(e=>e.isFile());t+=r.length,n+=r.length*SJ.ESTIMATED_AVG_FILE_SIZE_BYTES}catch{}let i=n/(1024*1024),a=i>SJ.MAX_RIPGREP_DIRECTORY_SIZE_MB||t>SJ.MAX_FILE_COUNT_FOR_SEARCH;return{estimatedSizeMB:i,estimatedFileCount:t,isLarge:a}}catch{return{estimatedSizeMB:0,estimatedFileCount:0,isLarge:!1}}}async function ZJ(e){try{return(await p.stat(e)).mtime.toISOString()}catch{return}}async function QJ(e){return Promise.all(e.map(async e=>{if(!e.matches||e.matches.length===0)return e;try{let t=await p.readFile(e.path,`utf8`),n=e.matches.map(e=>{let n=AK(t,e.location.byteOffset),r=kK(t,e.location.byteOffset,e.location.byteOffset+e.location.byteLength);return{...e,location:{...e.location,charOffset:n,charLength:r.length}}});return{...e,matches:n}}catch{return e}}))}var $J=class extends bJ{constructor(){super(`ls`)}fromQuery(e){if(this.addFlag(`--color=never`),process.platform===`linux`&&this.addFlag(`--quoting-style=literal`),e.details&&(this.addFlag(`-l`),process.platform===`linux`&&this.addFlag(`--time-style=long-iso`)),e.hidden&&this.addFlag(`-a`),e.humanReadable&&this.addFlag(`-h`),e.recursive&&this.addFlag(`-R`),e.reverse&&this.addFlag(`-r`),e.sortBy)switch(e.sortBy){case`size`:this.addFlag(`-S`);break;case`time`:this.addFlag(`-t`);break;case`extension`:this.addFlag(`-X`);break;case`name`:default:break}return(!e.sortBy||e.sortBy===`name`)&&process.platform===`linux`&&this.addFlag(`--group-directories-first`),e.details||this.addFlag(`-1`),this.addArg(e.path),this}simple(e){return this.addArg(e),this}detailed(){return this.addFlag(`-l`),this}all(){return this.addFlag(`-a`),this}humanReadable(){return this.addFlag(`-h`),this}recursive(){return this.addFlag(`-R`),this}sortBySize(){return this.addFlag(`-S`),this}sortByTime(){return this.addFlag(`-t`),this}reverse(){return this.addFlag(`-r`),this}path(e){return this.addArg(e),this}};function eY(e){return e===0?`0.0B`:e<1024?`${e}.0B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)}MB`:e<1024*1024*1024*1024?`${(e/(1024*1024*1024)).toFixed(1)}GB`:`${(e/(1024*1024*1024*1024)).toFixed(1)}TB`}function tY(e){let t=e.trim();if(/^\d+$/.test(t))return parseInt(t,10);let n=t.match(/^(\d+(?:\.\d+)?)(B|KB|MB|GB|TB)$/i);if(n&&n[1]&&n[2]){let e=parseFloat(n[1]);switch(n[2].toUpperCase()){case`B`:return Math.round(e);case`KB`:return Math.round(e*1024);case`MB`:return Math.round(e*1024*1024);case`GB`:return Math.round(e*1024*1024*1024);case`TB`:return Math.round(e*1024*1024*1024*1024)}}let r=t.match(/^(\d+(?:\.\d+)?)([KMGT])$/i);if(!r||!r[1]||!r[2])throw Error(`Invalid size format: ${e}`);let i=parseFloat(r[1]);switch(r[2].toUpperCase()){case`K`:return Math.round(i*1024);case`M`:return Math.round(i*1024*1024);case`G`:return Math.round(i*1024*1024*1024);default:return Math.round(i*1024*1024*1024*1024)}}const nY=bS[J.LOCAL_VIEW_STRUCTURE],rY=BB.extend({path:U().describe(jS.scope.path),details:Yt().default(!1).describe(jS.options.details),hidden:Yt().default(!1).describe(jS.filters.hidden),humanReadable:Yt().default(!0).describe(jS.options.humanReadable),sortBy:nn([`name`,`size`,`time`,`extension`]).optional().default(`time`).describe(jS.sorting.sortBy),reverse:Yt().optional().describe(jS.sorting.reverse),entriesPerPage:Jt().int().min(1).max(20).optional().default(20).describe(jS.pagination.entriesPerPage),entryPageNumber:Jt().int().min(1).optional().default(1).describe(jS.pagination.entryPageNumber),pattern:U().optional().describe(jS.filters.pattern),directoriesOnly:Yt().optional().describe(jS.filters.directoriesOnly),filesOnly:Yt().optional().describe(jS.filters.filesOnly),extension:U().optional().describe(jS.filters.extension),extensions:Xt(U()).optional().describe(jS.filters.extensions),depth:Jt().min(1).max(5).optional().describe(jS.options.depth),recursive:Yt().optional().describe(jS.options.recursive),limit:Jt().min(1).max(1e4).optional().describe(jS.pagination.limit),summary:Yt().default(!0).describe(jS.options.summary),charOffset:Jt().min(0).optional().describe(jS.pagination.charOffset),charLength:Jt().min(1).max(1e4).optional().describe(jS.pagination.charLength),showFileLastModified:Yt().default(!1).describe(jS.options.showFileLastModified)}),iY=VB(J.LOCAL_VIEW_STRUCTURE,rY,{maxQueries:5});function aY(e){return e.registerTool(J.LOCAL_VIEW_STRUCTURE,{description:nY,inputSchema:iY,annotations:{title:`Local View Structure`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await cY(e),{toolName:J.LOCAL_VIEW_STRUCTURE}))}function oY(e,t){let n=e;if(t.pattern){let e=t.pattern;if(e.includes(`*`)||e.includes(`?`)||e.includes(`[`)){let t=e.replace(/[.+^${}()|[\]\\*?]/g,`\\$&`);t=t.replace(/\\\*/g,`.*`).replace(/\\\?/g,`.`).replace(/\\\[!/g,`[^`).replace(/\\\[/g,`[`).replace(/\\\]/g,`]`);try{let e=RegExp(`^${t}$`,`i`);n=n.filter(t=>{let n=t.name.includes(`/`)?t.name.split(`/`).pop():t.name;return e.test(n)})}catch{n=n.filter(t=>(t.name.includes(`/`)?t.name.split(`/`).pop():t.name).includes(e))}}else n=n.filter(t=>(t.name.includes(`/`)?t.name.split(`/`).pop():t.name).includes(e))}if(t.extension&&(n=n.filter(e=>e.extension===t.extension)),t.extensions&&t.extensions.length>0){let e=t.extensions;n=n.filter(t=>t.extension&&e.includes(t.extension))}return t.directoriesOnly&&(n=n.filter(e=>e.type===`directory`)),t.filesOnly&&(n=n.filter(e=>e.type===`file`)),n}function sY(e,t=0){let n=` `.repeat(t),r=e.type===`directory`?`[DIR] `:e.type===`symlink`?`[LINK]`:`[FILE]`,i=e.type===`directory`?`${e.name}/`:e.name;if(e.type===`file`&&e.size){let t=e.extension?` .${e.extension}`:``;return`${n}${r} ${i} (${e.size})${t}`}else return`${n}${r} ${i}`}async function cY(e){try{let t=BJ(e,J.LOCAL_VIEW_STRUCTURE);if(!t.isValid)return t.errorResult;if(e.depth||e.recursive)return await dY(e,t.sanitizedPath,e.showFileLastModified);if(!(await my(`ls`)).available)return bK(zb.commandNotAvailable(`ls`,hy(`ls`)),e,{toolName:J.LOCAL_VIEW_STRUCTURE});let{command:n,args:r}=new $J().fromQuery(e).build(),i=await dy(n,r);if(!i.success){let t=i.stderr?.trim();return{status:`error`,errorCode:zb.commandExecutionFailed(`ls`,Error(t||`Unknown error`),t).errorCode,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[t?`Error: ${t}`:`ls command failed`,..._K(q.LOCAL_VIEW_STRUCTURE,`error`)]}}let a=oY(e.details?uY(i.stdout,e.showFileLastModified):await lY(i.stdout,t.sanitizedPath,e.showFileLastModified),e);e.limit&&(a=a.slice(0,e.limit));let o=a.length,s=a.filter(e=>e.type===`file`).length,c=a.filter(e=>e.type===`directory`).length,l=0;for(let e of a)e.type===`file`&&e.size&&(l+=tY(e.size));let u=l,d=e.entriesPerPage||SJ.DEFAULT_ENTRIES_PER_PAGE,f=e.entryPageNumber||1,p=Math.ceil(o/d),m=(f-1)*d,h=Math.min(m+d,o),g=a.slice(m,h),_={currentPage:f,totalPages:p,entriesPerPage:d,totalEntries:o,hasMore:f<p};if(!e.charLength&&o>SJ.MAX_ENTRIES_BEFORE_PAGINATION&&!e.entriesPerPage){let t=o*(e.details?150:30);return{status:`error`,errorCode:zb.outputTooLarge(t,SJ.RECOMMENDED_CHAR_LENGTH).errorCode,path:e.path,totalFiles:s,totalDirectories:c,totalSize:u,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Directory contains ${o} entries - overwhelming to view all at once`,`Use entriesPerPage to paginate through results (sorted by modification time, most recent first)`,`Why pagination helps: Lets you focus on relevant files first, reduces token usage, easier to navigate`]}}let v=g.map(e=>sY(e,0)).join(`
`),y=null;e.charLength&&(y=MK(v,e.charOffset??0,e.charLength),v=y.paginatedContent);let b=o>0?`hasResults`:`empty`,x=[`Page ${f}/${p} (showing ${g.length} of ${o})`,`Total: ${s} files, ${c} directories`,_.hasMore?`Next: entryPageNumber=${f+1}`:`Final page`],S={currentPage:_.currentPage,totalPages:_.totalPages,entriesPerPage:_.entriesPerPage,totalEntries:_.totalEntries,hasMore:_.hasMore,...y&&{charOffset:y.charOffset,charLength:y.charLength,totalChars:y.totalChars}};return{status:b,path:e.path,cwd:process.cwd(),structuredOutput:v,totalFiles:s,totalDirectories:c,totalSize:u,pagination:S,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[...x,..._K(q.LOCAL_VIEW_STRUCTURE,b),...y?LK(y,{toolName:q.LOCAL_VIEW_STRUCTURE}):[]]}}catch(t){return{status:`error`,errorCode:zb.toolExecutionFailed(`LOCAL_VIEW_STRUCTURE`,t instanceof Error?t:void 0).errorCode,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:_K(q.LOCAL_VIEW_STRUCTURE,`error`)}}}async function lY(e,t,n=!1){let r=e.split(`
`).filter(e=>e.trim()).map(async e=>{let r=o.join(t,e);try{let t=await f.promises.lstat(r),i={name:e,type:t.isDirectory()?`directory`:t.isSymbolicLink()?`symlink`:`file`,size:eY(t.size),extension:cB(e)};return n&&(i.modified=t.mtime.toISOString()),i}catch{return{name:e,type:`file`,extension:cB(e)}}});return await Promise.all(r)}function uY(e,t=!1){let n=e.split(`
`).filter(e=>e.trim()),r=[];for(let e of n){if(e.startsWith(`total `))continue;let n=e.match(/^([\w-]+[@+]?)\s+\d+\s+\w+\s+\w+\s+([\d.]+[KMGT]?)\s+(\w+\s+\d+\s+[\d:]+)\s+(.+)$/);if(n&&n[1]&&n[2]&&n[3]&&n[4]){let e=n[1],i=n[2],a=n[3],o=n[4],s=0;s=/^\d+$/.test(i)?parseInt(i,10):tY(i);let c=`file`;e.startsWith(`d`)?c=`directory`:e.startsWith(`l`)&&(c=`symlink`);let l={name:o,type:c,size:eY(s),permissions:e,extension:cB(o)};t&&(l.modified=a),r.push(l)}}return r}async function dY(e,t,n=!1){let r=[];await fY(t,t,0,e.depth||(e.recursive?5:2),r,e.limit?e.limit*2:1e4,e.hidden,n);let i=oY(r,e);e.sortBy&&(i=i.sort((t,r)=>{let i=0;switch(e.sortBy){case`size`:i=(t.size?tY(t.size):0)-(r.size?tY(r.size):0);break;case`time`:i=n&&t.modified&&r.modified?t.modified.localeCompare(r.modified):t.name.localeCompare(r.name);break;case`extension`:i=(t.extension||``).localeCompare(r.extension||``);break;case`name`:default:i=t.name.localeCompare(r.name);break}return e.reverse?-i:i})),e.limit&&(i=i.slice(0,e.limit));let a=i.filter(e=>e.type===`file`).length,s=i.filter(e=>e.type===`directory`).length,c=0;for(let e of i)e.type===`file`&&e.size&&(c+=tY(e.size));let l=c,u=i.length,d=e.entriesPerPage||SJ.DEFAULT_ENTRIES_PER_PAGE,f=e.entryPageNumber||1,p=Math.ceil(u/d),m=(f-1)*d,h=Math.min(m+d,u),g=i.slice(m,h),_={currentPage:f,totalPages:p,entriesPerPage:d,totalEntries:u,hasMore:f<p};if(!e.charLength&&u>SJ.MAX_ENTRIES_BEFORE_PAGINATION&&!e.entriesPerPage){let t=u*150;return{status:`error`,errorCode:zb.outputTooLarge(t,SJ.RECOMMENDED_CHAR_LENGTH).errorCode,path:e.path,totalFiles:a,totalDirectories:s,totalSize:l,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Recursive listing found ${u} entries - too much to process at once`,`Options: Use entriesPerPage to paginate through results, or limit to reduce scope`,`Alternative: Start with depth=1 to get overview, then drill into specific subdirectories`,`Why this matters: Large trees overwhelm context and make it hard to find what you need`]}}let v=g.map(e=>sY(e,e.depth??e.name.split(o.sep).length-1)).join(`
`),y=null;e.charLength&&(y=MK(v,e.charOffset??0,e.charLength),v=y.paginatedContent);let b=u>0?`hasResults`:`empty`,x=_K(q.LOCAL_VIEW_STRUCTURE,b),S=[`Page ${f}/${p} (showing ${g.length} of ${u})`,`Total: ${a} files, ${s} directories`,_.hasMore?`Next: entryPageNumber=${f+1}`:`Final page`],C=y?LK(y,{toolName:q.LOCAL_VIEW_STRUCTURE}):[],w={currentPage:_.currentPage,totalPages:_.totalPages,entriesPerPage:_.entriesPerPage,totalEntries:_.totalEntries,hasMore:_.hasMore,...y&&{charOffset:y.charOffset,charLength:y.charLength,totalChars:y.totalChars}};return{status:b,path:e.path,structuredOutput:v,totalFiles:a,totalDirectories:s,totalSize:l,pagination:w,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[...x,...S,...C]}}async function fY(e,t,n,r,i,a=1e4,s=!1,c=!1){if(!(n>=r)&&!(i.length>=a))try{let l=await f.promises.readdir(t);for(let u of l){if(!s&&u.startsWith(`.`))continue;let l=o.join(t,u),d=o.relative(e,l);try{let t=await f.promises.lstat(l),o=`file`;t.isDirectory()?o=`directory`:t.isSymbolicLink()&&(o=`symlink`);let p={name:d,type:o,size:eY(t.size),extension:cB(u),depth:n};c&&(p.modified=t.mtime.toISOString()),i.push(p),o===`directory`&&await fY(e,l,n+1,r,i,a,s,c)}catch{}}}catch{}}var pY=class extends bJ{isMacOS;isLinux;isWindows;constructor(){super(`find`),this.isMacOS=process.platform===`darwin`,this.isLinux=process.platform===`linux`,this.isWindows=process.platform===`win32`}fromQuery(e){if(this.isWindows)throw Error(`Windows is not supported for localFindFiles. Use localViewStructure or localSearchCode instead.`);return this.isMacOS&&e.regex&&this.addFlag(`-E`),this.addArg(e.path),this.isLinux&&this.addFlag(`-O3`),e.maxDepth!==void 0&&this.addOption(`-maxdepth`,e.maxDepth),e.minDepth!==void 0&&this.addOption(`-mindepth`,e.minDepth),e.excludeDir&&e.excludeDir.length>0&&(this.buildExcludeDirPrune(e.excludeDir),this.addArg(`-o`)),this.addFilters(e),this.addArg(`-print0`),this}buildExcludeDirPrune(e){this.addArg(`(`),e.forEach((e,t)=>{t>0&&this.addArg(`-o`),this.addArg(`-path`),this.addArg(`*/${e}`),this.addArg(`-o`),this.addArg(`-path`),this.addArg(`*/${e}/*`)}),this.addArg(`)`),this.addArg(`-prune`)}addFilters(e){if(e.type&&this.addOption(`-type`,e.type),e.names&&e.names.length>0?e.names.length===1?this.addOption(`-name`,e.names[0]):(this.addArg(`(`),e.names.forEach((e,t)=>{t>0&&this.addArg(`-o`),this.addOption(`-name`,e)}),this.addArg(`)`)):e.name&&this.addOption(`-name`,e.name),e.iname&&this.addOption(`-iname`,e.iname),e.pathPattern&&this.addOption(`-path`,e.pathPattern),e.regex&&(this.isLinux&&e.regexType&&this.addOption(`-regextype`,e.regexType),this.addOption(`-regex`,e.regex)),e.empty&&this.addFlag(`-empty`),e.sizeGreater&&this.addOption(`-size`,`+${e.sizeGreater}`),e.sizeLess&&this.addOption(`-size`,`-${e.sizeLess}`),e.modifiedWithin){let t=this.parseTimeString(e.modifiedWithin);this.addOption(t.unit,`-${t.value}`)}if(e.modifiedBefore){let t=this.parseTimeString(e.modifiedBefore);this.addOption(t.unit,`+${t.value}`)}if(e.accessedWithin){let t=this.parseTimeStringAccess(e.accessedWithin);this.addOption(t.unit,`-${t.value}`)}e.permissions&&this.addOption(`-perm`,e.permissions),e.executable&&(this.isLinux?this.addFlag(`-executable`):this.addOption(`-perm`,`+111`)),e.readable&&(this.isLinux?this.addFlag(`-readable`):this.addOption(`-perm`,`+444`)),e.writable&&(this.isLinux?this.addFlag(`-writable`):this.addOption(`-perm`,`+222`))}simple(e,t){return this.addArg(e),this.addOption(`-name`,t),this}type(e){return this.addOption(`-type`,e),this}name(e){return this.addOption(`-name`,e),this}iname(e){return this.addOption(`-iname`,e),this}maxDepth(e){return this.addOption(`-maxdepth`,e),this}minDepth(e){return this.addOption(`-mindepth`,e),this}size(e){return this.addOption(`-size`,e),this}mtime(e){return this.addOption(`-mtime`,e),this}path(e){return this.addArg(e),this}parseTimeString(e){let t=e.match(/^(\d+)([hdwm])$/);if(!t||!t[1]||!t[2])return{value:0,unit:`-mtime`};let n=parseInt(t[1],10);switch(t[2]){case`h`:return{value:n*60,unit:`-mmin`};case`d`:return{value:n,unit:`-mtime`};case`w`:return{value:n*7,unit:`-mtime`};case`m`:return{value:n*30,unit:`-mtime`};default:return{value:n,unit:`-mtime`}}}parseTimeStringAccess(e){let t=e.match(/^(\d+)([hdwm])$/);if(!t||!t[1]||!t[2])return{value:0,unit:`-atime`};let n=parseInt(t[1],10);switch(t[2]){case`h`:return{value:n*60,unit:`-amin`};case`d`:return{value:n,unit:`-atime`};case`w`:return{value:n*7,unit:`-atime`};case`m`:return{value:n*30,unit:`-atime`};default:return{value:n,unit:`-atime`}}}};const mY=bS[J.LOCAL_FIND_FILES],hY=BB.extend({path:U().describe(AS.scope.path),maxDepth:Jt().min(1).max(10).optional().describe(AS.options.maxDepth),minDepth:Jt().min(0).max(10).optional().describe(AS.options.minDepth),name:U().optional().describe(AS.filters.name),iname:U().optional().describe(AS.filters.iname),names:Xt(U()).optional().describe(AS.filters.names),pathPattern:U().optional().describe(AS.filters.pathPattern),regex:U().optional().describe(AS.filters.regex),regexType:nn([`posix-egrep`,`posix-extended`,`posix-basic`]).optional().describe(AS.filters.regexType),type:nn([`f`,`d`,`l`,`b`,`c`,`p`,`s`]).optional().describe(AS.filters.type),empty:Yt().optional().describe(AS.filters.empty),modifiedWithin:U().optional().describe(AS.time.modifiedWithin),modifiedBefore:U().optional().describe(AS.time.modifiedBefore),accessedWithin:U().optional().describe(AS.time.accessedWithin),sizeGreater:U().optional().describe(AS.size.sizeGreater),sizeLess:U().optional().describe(AS.size.sizeLess),permissions:U().optional().describe(AS.options.permissions),executable:Yt().optional().describe(AS.filters.executable),readable:Yt().optional().describe(AS.filters.readable),writable:Yt().optional().describe(AS.filters.writable),excludeDir:Xt(U()).optional().describe(AS.filters.excludeDir),limit:Jt().min(1).max(1e4).optional().describe(AS.pagination.limit),details:Yt().default(!0).describe(AS.options.details),filesPerPage:Jt().int().min(1).max(20).optional().default(20).describe(AS.pagination.filesPerPage),filePageNumber:Jt().int().min(1).optional().default(1).describe(AS.pagination.filePageNumber),charOffset:Jt().min(0).optional().describe(AS.pagination.charOffset),charLength:Jt().min(1).max(1e4).optional().describe(AS.pagination.charLength),showFileLastModified:Yt().default(!0).describe(AS.options.showFileLastModified)}),gY=VB(J.LOCAL_FIND_FILES,hY,{maxQueries:5});function _Y(e){return e.registerTool(J.LOCAL_FIND_FILES,{description:mY,inputSchema:gY,annotations:{title:`Local Find Files`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await vY(e),{toolName:J.LOCAL_FIND_FILES}))}async function vY(e){let t=e.details??!0,n=e.showFileLastModified??!1;try{if(!(await my(`find`)).available)return bK(zb.commandNotAvailable(`find`,hy(`find`)),e,{toolName:J.LOCAL_FIND_FILES});let r=BJ(e,J.LOCAL_FIND_FILES);if(!r.isValid)return r.errorResult;let{command:i,args:a}=new pY().fromQuery(e).build(),o=await dy(i,a);if(!o.success){let t=o.stderr?.trim();return bK(zb.commandExecutionFailed(`find`,Error(t||`Unknown error`),t),e,{toolName:J.LOCAL_FIND_FILES,extra:{stderr:t}})}let s=o.stdout.split(`\0`).filter(e=>e.trim()).map(e=>e.trim()),c=e.limit||1e3;s=s.slice(0,c);let l=await yY(s,n);t&&await Promise.all(l.map(async e=>{if(e.size===void 0||!e.permissions||n&&!e.modified)try{let t=await f.promises.lstat(e.path);e.size===void 0&&(e.size=t.size),e.permissions||=t.mode.toString(8).slice(-3),n&&!e.modified&&(e.modified=t.mtime.toISOString())}catch{}})),l.sort((e,t)=>n&&e.modified&&t.modified?new Date(t.modified).getTime()-new Date(e.modified).getTime():e.path.localeCompare(t.path));let u=l.map(e=>{let r={path:e.path,type:e.type};return t&&(e.size!==void 0&&(r.size=e.size),e.permissions&&(r.permissions=e.permissions)),n&&e.modified&&(r.modified=e.modified),r}),d=u.length,p=e.filesPerPage||20,m=e.filePageNumber||1,h=Math.ceil(d/p),g=(m-1)*p,_=Math.min(g+p,d),v=u.slice(g,_),y=VJ(v.length,!!e.charLength,{threshold:100,itemType:`file`,detailed:t});if(y.shouldBlock)return{status:`error`,errorCode:y.errorCode,totalFiles:d,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:y.hints};let b=v,x=null;if(e.charLength){let t=NK(v,!1).length,n=e.charOffset??0,r=e.charLength,i=n+r;if(n>=t)b=[],x={paginatedContent:`[]`,charOffset:n,charLength:0,totalChars:t,hasMore:!1,estimatedTokens:0,currentPage:Math.floor(n/r)+1,totalPages:Math.ceil(t/r),actualOffset:n,actualLength:0};else{let e=[],a=1;for(let t=0;t<v.length;t++){let r=JSON.stringify(v[t]).length,o=a,s=o+r;if(o<i&&s>n&&e.push(v[t]),a+=r+1,a>=i)break}b=e;let o=NK(b,!1),s=a<t;x={paginatedContent:o,charOffset:n,charLength:o.length,totalChars:t,hasMore:s,nextCharOffset:s?a:void 0,estimatedTokens:Math.ceil(o.length/4),currentPage:Math.floor(n/r)+1,totalPages:Math.ceil(t/r),actualOffset:n,actualLength:o.length}}}let S=d>0?`hasResults`:`empty`,C=[`Page ${m}/${h} (showing ${b.length} of ${d})`,m<h?`Next: filePageNumber=${m+1}`:`Final page`,n?`Sorted by modification time (most recent first)`:`Sorted by path`],w=/\.(config|rc|env|json|ya?ml|toml|ini)$|^(\..*rc|config\.|\.env)/i,T=b.some(e=>w.test(e.path.split(`/`).pop()||``));return{status:S,files:b,cwd:process.cwd(),totalFiles:d,pagination:{currentPage:m,totalPages:h,filesPerPage:p,totalFiles:d,hasMore:m<h},...x&&{charPagination:PK(x)},researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[...C,..._K(J.LOCAL_FIND_FILES,S,{fileCount:d,hasConfigFiles:T}),...x?LK(x,{toolName:J.LOCAL_FIND_FILES}):[]]}}catch(t){return bK(t,e,{toolName:J.LOCAL_FIND_FILES})}}async function yY(e,t=!1){let n=Array(e.length),r=async r=>{let i=e[r];try{let e=await f.promises.lstat(i),a=`file`;e.isDirectory()?a=`directory`:e.isSymbolicLink()&&(a=`symlink`);let o={path:i,type:a,size:e.size,permissions:e.mode.toString(8).slice(-3)};t&&(o.modified=e.mtime.toISOString()),n[r]=o}catch{n[r]={path:i,type:`file`}}},i=0,a=()=>{let t=i;return i+=1,t<e.length?t:-1},o=async()=>{for(let e=a();e!==-1;e=a())await r(e)},s=Array.from({length:Math.min(24,e.length)},()=>o());return await Promise.all(s),n}const bY=bS[J.LOCAL_FETCH_CONTENT],xY=BB.extend({path:U().min(1).describe(kS.scope.path),fullContent:Yt().default(!1).describe(kS.options.fullContent),startLine:Jt().int().min(1).optional().describe(kS.range?.startLine??`Start line (1-indexed). Use with endLine for line range extraction.`),endLine:Jt().int().min(1).optional().describe(kS.range?.endLine??`End line (1-indexed, inclusive). Use with startLine for line range extraction.`),matchString:U().optional().describe(kS.options.matchString),matchStringContextLines:Jt().int().min(1).max(50).default(5).describe(kS.options.matchStringContextLines),matchStringIsRegex:Yt().optional().default(!1).describe(kS.options.matchStringIsRegex),matchStringCaseSensitive:Yt().optional().default(!1).describe(kS.options.matchStringCaseSensitive),charOffset:Jt().min(0).optional().describe(kS.pagination.charOffset),charLength:Jt().min(1).max(1e4).optional().describe(kS.pagination.charLength)}).superRefine((e,t)=>{(e.startLine!==void 0&&e.endLine===void 0||e.startLine===void 0&&e.endLine!==void 0)&&t.addIssue({code:R.custom,message:`startLine and endLine must be used together`,path:[`startLine`]}),e.startLine!==void 0&&e.endLine!==void 0&&e.startLine>e.endLine&&t.addIssue({code:R.custom,message:`startLine must be less than or equal to endLine`,path:[`startLine`]}),(e.startLine!==void 0||e.endLine!==void 0)&&e.matchString!==void 0&&t.addIssue({code:R.custom,message:`Cannot use startLine/endLine with matchString - choose one extraction method`,path:[`startLine`]}),(e.startLine!==void 0||e.endLine!==void 0)&&e.fullContent===!0&&t.addIssue({code:R.custom,message:`Cannot use startLine/endLine with fullContent - line extraction is partial by definition`,path:[`fullContent`]})}),SY=VB(J.LOCAL_FETCH_CONTENT,xY,{maxQueries:5});function CY(e){return e.registerTool(J.LOCAL_FETCH_CONTENT,{description:bY,inputSchema:SY,annotations:{title:`Local Fetch Content`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await TY(e),{toolName:J.LOCAL_FETCH_CONTENT}))}function wY(e,t){try{let n=SB(e,t);return n.length<e.length?n:e}catch{return e}}async function TY(e){try{let t=BJ(e,J.LOCAL_FETCH_CONTENT);if(!t.isValid)return t.errorResult;let n=t.sanitizedPath,r;try{r=await ce(n)}catch(t){return bK(zb.fileAccessFailed(e.path,t instanceof Error?t:void 0),e,{toolName:J.LOCAL_FETCH_CONTENT,extra:{path:e.path,resolvedPath:n}})}let i=r.size/1024;if(i>SJ.LARGE_FILE_THRESHOLD_KB&&!e.charLength&&!e.matchString)return bK(zb.fileTooLarge(e.path,i,SJ.LARGE_FILE_THRESHOLD_KB),e,{toolName:J.LOCAL_FETCH_CONTENT,extra:{path:e.path},customHints:[`Best approach: Use matchString to extract specific functions/classes you actually need`,`Alternative: Use charLength for pagination if you need to browse through the file systematically`,`Why matchString works better: Gets only relevant sections, faster, and uses fewer tokens`,`Critical: fullContent without charLength will fail on large files - always specify a reading strategy`]});let a;try{a=await P(n,`utf-8`)}catch(t){return bK(zb.fileReadFailed(e.path,t instanceof Error?t:void 0),e,{toolName:J.LOCAL_FETCH_CONTENT,extra:{path:e.path}})}let o=a.split(`
`),s=o.length,c,l=!1,u,d,f,p=[];if(e.matchString){let t=EY(o,e.matchString,e.matchStringContextLines??5,e.matchStringIsRegex??!1,e.matchStringCaseSensitive??!1,50);if(t.lines.length===0){let t=[`Searched ${s} line${s===1?``:`s`} - no matches found`];return e.matchStringIsRegex?t.push(`TIP: Regex matches per-line only (not multiline). Verify pattern exists on a single line.`):t.push(`TIP: Try matchStringIsRegex=true for pattern matching (e.g., "export.*function")`),e.matchStringCaseSensitive&&t.push(`TIP: Case-sensitive mode active - try matchStringCaseSensitive=false`),t.push(`TIP: Verify file contains expected content or try simpler pattern`),{status:`empty`,path:e.path,errorCode:Nb.NO_MATCHES,totalLines:s,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(J.LOCAL_FETCH_CONTENT,`empty`),``,...t]}}if(c=t.lines.join(`
`),c=wY(c,e.path),t.matchRanges.length>0){let e=t.matchRanges[0],n=t.matchRanges[t.matchRanges.length-1];e&&n&&(u=e.start,d=n.end,f=t.matchRanges)}if(t.matchCount>50)return{status:`hasResults`,path:e.path,cwd:process.cwd(),content:c,contentLength:c.length,isPartial:!0,totalLines:s,...u!==void 0&&{startLine:u,endLine:d,matchRanges:f},researchGoal:e.researchGoal,reasoning:e.reasoning,warnings:[`Pattern matched ${t.matchCount} lines. Truncated to first 50 matches.`],hints:[`Pattern matched ${t.matchCount} lines - likely too generic`,`Make the pattern more specific to target only what you need`,`TIP: Use charLength to paginate if you need all matches`]};if(!e.charLength&&c.length>xJ.MAX_OUTPUT_CHARS){let n=MK(c,0,SJ.RECOMMENDED_CHAR_LENGTH);return{status:`hasResults`,path:e.path,cwd:process.cwd(),content:n.paginatedContent,contentLength:n.paginatedContent.length,isPartial:!0,totalLines:s,...u!==void 0&&{startLine:u,endLine:d,matchRanges:f},pagination:PK(n),researchGoal:e.researchGoal,reasoning:e.reasoning,warnings:[`Auto-paginated: ${t.matchCount} matches exceeded display limit`],hints:[..._K(J.LOCAL_FETCH_CONTENT,`hasResults`),...LK(n,{toolName:J.LOCAL_FETCH_CONTENT})]}}l=!0}else if(e.startLine!==void 0&&e.endLine!==void 0){let t=Math.max(1,e.startLine),n=Math.min(e.endLine,s);if(t>s)return{status:`empty`,path:e.path,totalLines:s,errorCode:Nb.NO_MATCHES,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(J.LOCAL_FETCH_CONTENT,`empty`),`Requested startLine ${e.startLine} exceeds file length (${s} lines)`,`Use startLine=1 to ${s} for valid range`]};c=o.slice(t-1,n).join(`
`),u=t,d=n,l=!0,e.endLine>s&&p.push(`Requested endLine ${e.endLine} adjusted to ${s} (file end)`),c=wY(c,e.path)}else c=a,l=!1,c=wY(c,e.path);if(!c||c.trim().length===0)return{status:`empty`,path:e.path,totalLines:s,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:_K(J.LOCAL_FETCH_CONTENT,`empty`)};let m=e.charLength,h=!1;!e.charLength&&c.length>xJ.MAX_OUTPUT_CHARS&&(m=SJ.RECOMMENDED_CHAR_LENGTH,h=!0,p.push(`Auto-paginated: Content (${c.length} chars) exceeds ${xJ.MAX_OUTPUT_CHARS} char limit`));let g=MK(c,e.charOffset??0,m),_=_K(J.LOCAL_FETCH_CONTENT,`hasResults`),v=m||h?LK(g,{toolName:J.LOCAL_FETCH_CONTENT}):[];return{status:`hasResults`,path:e.path,cwd:process.cwd(),content:g.paginatedContent,contentLength:g.paginatedContent.length,isPartial:l,totalLines:s,...u!==void 0&&d!==void 0&&{startLine:u,endLine:d,...f===void 0&&{extractedLines:d-u+1},...f!==void 0&&{matchRanges:f}},...(m||h)&&{pagination:PK(g)},researchGoal:e.researchGoal,reasoning:e.reasoning,...p.length>0&&{warnings:p},hints:[..._,...v]}}catch(t){return bK(t,e,{toolName:J.LOCAL_FETCH_CONTENT,extra:{path:e.path}})}}function EY(e,t,n,r=!1,i=!1,a){let o=[],s=null;if(r)try{let e=i?``:`i`;s=new RegExp(t,e)}catch(e){throw Error(`Invalid regex pattern: ${e instanceof Error?e.message:String(e)}`)}let c=i?t:t.toLowerCase();e.forEach((e,n)=>{(r&&s?s.test(e):i?e.includes(t):e.toLowerCase().includes(c))&&o.push(n+1)});let l=o.length;if(l===0)return{lines:[],matchRanges:[],matchCount:0};let u=a?o.slice(0,a):o,d=[],f=u[0];if(f===void 0)return{lines:[],matchRanges:[],matchCount:0};let p={start:Math.max(1,f-n),end:Math.min(e.length,f+n)};for(let t=1;t<u.length;t++){let r=u[t];if(r===void 0)continue;let i=Math.max(1,r-n),a=Math.min(e.length,r+n);i<=p.end+1?p.end=Math.max(p.end,a):(d.push({...p}),p={start:i,end:a})}d.push(p);let m=[];return d.forEach((t,n)=>{if(n>0){let e=d[n-1];if(e){let n=t.start-e.end-1;n>0&&(m.push(``),m.push(`... [${n} lines omitted] ...`),m.push(``))}}m.push(...e.slice(t.start-1,t.end))}),{lines:m,matchRanges:d,matchCount:l}}const DY=bS[q.LSP_GOTO_DEFINITION],OY=BB.extend({uri:U().min(1).describe(MS.scope.uri),symbolName:U().min(1).max(255).describe(MS.scope.symbolName),lineHint:Jt().int().min(1).describe(MS.scope.lineHint),orderHint:Jt().int().min(0).default(0).describe(MS.options.orderHint),contextLines:Jt().int().min(0).max(20).default(5).describe(MS.options.contextLines)}),kY=VB(q.LSP_GOTO_DEFINITION,OY,{maxQueries:5});var AY=class extends Error{symbolName;lineHint;reason;searchRadius;constructor(e,t,n,r=2){super(`Could not find symbol '${e}' at or near line ${t}. ${n}`),this.name=`SymbolResolutionError`,this.symbolName=e,this.lineHint=t,this.reason=n,this.searchRadius=r}},jY=class{lineSearchRadius;constructor(e){this.lineSearchRadius=e?.lineSearchRadius??2}async resolvePosition(e,t){let n=await p.readFile(e,`utf-8`);return this.resolvePositionFromContent(n,t)}resolvePositionFromContent(e,t){let n=e.split(/\r?\n/),r=t.lineHint-1,i=t.orderHint??0;if(r<0||r>=n.length)throw new AY(t.symbolName,t.lineHint,`Line ${t.lineHint} is out of range (file has ${n.length} lines)`,this.lineSearchRadius);let a=n[r];if(a!==void 0){let e=this.findSymbolInLine(a,t.symbolName,i);if(e!==null)return{position:{line:r,character:e},foundAtLine:t.lineHint,lineOffset:0,lineContent:a}}for(let e=1;e<=this.lineSearchRadius;e++)for(let a of[-e,e]){let e=r+a;if(e>=0&&e<n.length){let r=n[e];if(r!==void 0){let n=this.findSymbolInLine(r,t.symbolName,i);if(n!==null)return{position:{line:e,character:n},foundAtLine:e+1,lineOffset:a,lineContent:r}}}}throw new AY(t.symbolName,t.lineHint,`Symbol not found in target line or within ±${this.lineSearchRadius} lines. Verify the exact symbol name and line number.`,this.lineSearchRadius)}findSymbolInLine(e,t,n){let r=0,i=0;for(;r<e.length;){let a=e.indexOf(t,r);if(a===-1)return null;let o=a===0||!this.isIdentifierChar(e[a-1]),s=a+t.length>=e.length||!this.isIdentifierChar(e[a+t.length]);if(o&&s){if(i===n)return a;i++}r=a+1}return null}isIdentifierChar(e){return/[a-zA-Z0-9_$]/.test(e)}extractContext(e,t,n){let r=e.split(/\r?\n/),i=Math.max(1,t-n),a=Math.min(r.length,t+n);return{content:r.slice(i-1,a).join(`
`),startLine:i,endLine:a}}};new jY({lineSearchRadius:2});var MY;(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var c=r.lastIndexOf(`/`);if(c!==r.length-1){c===-1?(r=``,i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}var r={resolve:function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},normalize:function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},isAbsolute:function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return`.`;for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var c=n.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>l&&(e.charCodeAt(i+d)===47?u=d:d===0&&(u=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;f===47&&(u=d)}var p=``;for(d=i+u+1;d<=a;++d)d!==a&&e.charCodeAt(d)!==47||(p.length===0?p+=`..`:p+=`/..`);return p.length>0?p+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(l===47){if(!o){i=r+1;break}}else c===-1&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=c))}return i===a?a=c:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c!==47)i===-1&&(a=!1,i=s+1),c===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r}(0,e)},parse:function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if((i=e.charCodeAt(u))!==47)c===-1&&(l=!1,c=u+1),i===46?o===-1?o=u:d!==1&&(d=1):o!==-1&&(d=-1);else if(!l){s=u+1;break}return o===-1||c===-1||d===0||d===1&&o===c-1&&o===s+1?c!==-1&&(n.base=n.name=s===0&&a?e.slice(1,c):e.slice(s,c)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(s,o),n.base=e.slice(s,c)),n.ext=e.slice(o,c)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>u,Utils:()=>C}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function c(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}let l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=function(e,t){return e||t?e:`file`}(e,a),this.authority=t||``,this.path=function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t}(this.scheme,n||``),this.query=r||``,this.fragment=i||``,c(this,a))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new f(t,n,r,i,a)}static parse(e,t=!1){let n=l.exec(e);return n?new f(n[2]||``,b(n[4]||``),b(n[5]||``),b(n[7]||``),b(n[9]||``),t):new f(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new f(`file`,t,e,``,``)}static from(e){let t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return c(t,!0),t}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{let t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}let d=i?1:void 0;class f extends u{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=g(this,!1),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||=_(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let p={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function m(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=p[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function h(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=p[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function g(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}function _(e,t){let n=t?h:m,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:m(c,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}let y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function b(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var x=n(975);let S=x.posix||x;var C;(function(e){e.joinPath=function(e,...t){return e.with({path:S.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=S.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=S.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return S.basename(e.path)},e.extname=function(e){return S.extname(e.path)}})(C||={}),MY=r})();const{URI:NY,Utils:PY}=MY;var FY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}e.string=n;function r(e){return typeof e==`number`||e instanceof Number}e.number=r;function i(e){return e instanceof Error}e.error=i;function a(e){return typeof e==`function`}e.func=a;function o(e){return Array.isArray(e)}e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}e.stringArray=s})),IY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;let t=FY();var n;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(n||(e.ErrorCodes=n={})),e.ResponseError=class e extends Error{constructor(r,i,a){super(i),this.code=t.number(r)?r:n.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var r=class e{constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=r,r.auto=new r(`auto`),r.byPosition=new r(`byPosition`),r.byName=new r(`byName`);var i=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return r.auto}};e.AbstractMessageSignature=i,e.RequestType0=class extends i{constructor(e){super(e,0)}},e.RequestType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends i{constructor(e){super(e,2)}},e.RequestType3=class extends i{constructor(e){super(e,3)}},e.RequestType4=class extends i{constructor(e){super(e,4)}},e.RequestType5=class extends i{constructor(e){super(e,5)}},e.RequestType6=class extends i{constructor(e){super(e,6)}},e.RequestType7=class extends i{constructor(e){super(e,7)}},e.RequestType8=class extends i{constructor(e){super(e,8)}},e.RequestType9=class extends i{constructor(e){super(e,9)}},e.NotificationType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends i{constructor(e){super(e,0)}},e.NotificationType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends i{constructor(e){super(e,2)}},e.NotificationType3=class extends i{constructor(e){super(e,3)}},e.NotificationType4=class extends i{constructor(e){super(e,4)}},e.NotificationType5=class extends i{constructor(e){super(e,5)}},e.NotificationType6=class extends i{constructor(e){super(e,6)}},e.NotificationType7=class extends i{constructor(e){super(e,7)}},e.NotificationType8=class extends i{constructor(e){super(e,8)}},e.NotificationType9=class extends i{constructor(e){super(e,9)}};var a;(function(e){function n(e){let n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))}e.isRequest=n;function r(e){let n=e;return n&&t.string(n.method)&&e.id===void 0}e.isNotification=r;function i(e){let n=e;return n&&(n.result!==void 0||!!n.error)&&(t.string(n.id)||t.number(n.id)||n.id===null)}e.isResponse=i})(a||(e.Message=a={}))})),LY=F((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var n;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(n||(e.Touch=n={}));var r=class{constructor(){this[t]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==n.First&&t!==n.Last)){if(t===n.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=r,e.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}})),RY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}e.create=t})(t||(e.Disposable=t={}))})),zY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t;function n(){if(t===void 0)throw Error(`No runtime abstraction layer installed`);return t}(function(e){function n(e){if(e===void 0)throw Error(`No runtime abstraction layer provided`);t=e}e.install=n})(n||={}),e.default=n})),BY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Emitter=e.Event=void 0;let t=zY();var n;(function(e){let t={dispose(){}};e.None=function(){return t}})(n||(e.Event=n={}));var r=class{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r<i;r++)if(this._callbacks[r]===e)if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else n=!0;if(n)throw Error(`When adding a listener with a context, you should remove it with the same context`)}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,o=r.length;a<o;a++)try{n.push(r[a].apply(i[a],e))}catch(e){(0,t.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},i=class e{constructor(e){this._options=e}get event(){return this._event||=(t,n,i)=>{this._callbacks||=new r,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=i,i._noop=function(){}})),VY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;let t=zY(),n=FY(),r=BY();var i;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None});function t(t){let r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(i||(e.CancellationToken=i={}));let a=Object.freeze(function(e,n){let r=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){r.dispose()}}});var o=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||=new r.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{get token(){return this._token||=new o,this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=i.None}}})),HY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;let t=VY();var n;(function(e){e.Continue=0,e.Cancelled=1})(n||={}),e.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var r=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},i=class{constructor(e){this.token=new r(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{constructor(){this.kind=`request`}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new t.CancellationTokenSource:new i(n)}}})),UY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Semaphore=void 0;let t=zY();e.Semaphore=class{constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}})),WY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;let t=zY(),n=FY(),r=BY(),i=UY();var a;(function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}e.is=t})(a||(e.MessageReader=a={}));var o=class{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=o;var s;(function(e){function n(e){let n,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)n=e??`utf-8`;else{if(n=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,t.default)().applicationJson.decoder,o.set(a.name,a)),{charset:n,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}e.fromOptions=n})(s||={}),e.ReadableStreamMessageReader=class extends o{constructor(e,n){super(),this.readable=e,this.options=s.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}})),GY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;let t=zY(),n=FY(),r=UY(),i=BY();var a;(function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}e.is=t})(a||(e.MessageWriter=a={}));var o=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=o;var s;(function(e){function n(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}e.fromOptions=n})(s||={}),e.WriteableStreamMessageWriter=class extends o{constructor(e,t){super(),this.writable=e,this.options=s.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(`Content-Length: `,t.byteLength.toString(),`\r
`),n.push(`\r
`),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}})),KY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractMessageBuffer=void 0,e.AbstractMessageBuffer=class{constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,n=0,r=0,i=0;row:for(;n<this._chunks.length;){let e=this._chunks[n];r=0;column:for(;r<e.length;){switch(e[r]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,r++;break row;default:t=0}break;default:t=0}r++}i+=e.byteLength,n++}if(t!==4)return;let a=this._read(i+r),o=new Map,s=this.toString(a,`ascii`).split(`\r
`);if(s.length<2)return o;for(let t=0;t<s.length-2;t++){let n=s[t],r=n.indexOf(`:`);if(r===-1)throw Error(`Message header must separate key and value using ':'\n${n}`);let i=n.substr(0,r),a=n.substr(r+1).trim();o.set(e?i.toLowerCase():i,a)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}})),qY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;let t=zY(),n=FY(),r=IY(),i=LY(),a=BY(),o=VY();var s;(function(e){e.type=new r.NotificationType(`$/cancelRequest`)})(s||={});var c;(function(e){function t(e){return typeof e==`string`||typeof e==`number`}e.is=t})(c||(e.ProgressToken=c={}));var l;(function(e){e.type=new r.NotificationType(`$/progress`)})(l||={}),e.ProgressType=class{constructor(){}};var u;(function(e){function t(e){return n.func(e)}e.is=t})(u||={}),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var d;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(d||(e.Trace=d={}));var f;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(f||(e.TraceValues=f={})),(function(e){function t(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}e.toString=r})(d||(e.Trace=d={}));var p;(function(e){e.Text=`text`,e.JSON=`json`})(p||(e.TraceFormat=p={})),(function(e){function t(t){return n.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}e.fromString=t})(p||(e.TraceFormat=p={}));var m;(function(e){e.type=new r.NotificationType(`$/setTrace`)})(m||(e.SetTraceNotification=m={}));var h;(function(e){e.type=new r.NotificationType(`$/logTrace`)})(h||(e.LogTraceNotification=h={}));var g;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(g||(e.ConnectionErrors=g={}));var _=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=_;var v;(function(e){function t(e){let t=e;return t&&n.func(t.cancelUndispatched)}e.is=t})(v||(e.ConnectionStrategy=v={}));var y;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(y||(e.IdCancellationReceiverStrategy=y={}));var b;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(b||(e.RequestCancellationReceiverStrategy=b={}));var x;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new o.CancellationTokenSource}});function t(e){return y.is(e)||b.is(e)}e.is=t})(x||(e.CancellationReceiverStrategy=x={}));var S;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(s.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}e.is=t})(S||(e.CancellationSenderStrategy=S={}));var C;(function(e){e.Message=Object.freeze({receiver:x.Message,sender:S.Message});function t(e){let t=e;return t&&x.is(t.receiver)&&S.is(t.sender)}e.is=t})(C||(e.CancellationStrategy=C={}));var w;(function(e){function t(e){let t=e;return t&&n.func(t.handleMessage)}e.is=t})(w||(e.MessageStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&(C.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||w.is(t.messageStrategy))}e.is=t})(T||(e.ConnectionOptions=T={}));var E;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(E||={});function D(f,v,b,x){let S=b===void 0?e.NullLogger:b,T=0,D=0,O=0,k,A=new Map,j,ee=new Map,te=new Map,ne,re=new i.LinkedMap,M=new Map,ie=new Set,ae=new Map,N=d.Off,oe=p.Text,se,P=E.New,ce=new a.Emitter,le=new a.Emitter,ue=new a.Emitter,de=new a.Emitter,fe=new a.Emitter,pe=x&&x.cancellationStrategy?x.cancellationStrategy:C.Message;function me(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}function he(e){return e===null?`res-unknown-`+(++O).toString():`res-`+e.toString()}function F(){return`not-`+(++D).toString()}function ge(e,t){r.Message.isRequest(t)?e.set(me(t.id),t):r.Message.isResponse(t)?e.set(he(t.id),t):e.set(F(),t)}function I(e){}function _e(){return P===E.Listening}function ve(){return P===E.Closed}function ye(){return P===E.Disposed}function be(){(P===E.New||P===E.Listening)&&(P=E.Closed,le.fire(void 0))}function L(e){ce.fire([e,void 0,void 0])}function xe(e){ce.fire(e)}f.onClose(be),f.onError(L),v.onClose(be),v.onError(xe);function R(){ne||re.size===0||(ne=(0,t.default)().timer.setImmediate(()=>{ne=void 0,Ce()}))}function Se(e){r.Message.isRequest(e)?Te(e):r.Message.isNotification(e)?z(e):r.Message.isResponse(e)?Ee(e):De(e)}function Ce(){if(re.size===0)return;let e=re.shift();try{let t=x?.messageStrategy;w.is(t)?t.handleMessage(e,Se):Se(e)}finally{R()}}let we=e=>{try{if(r.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=me(t),i=re.get(n);if(r.Message.isRequest(i)){let r=x?.connectionStrategy,a=r&&r.cancelUndispatched?r.cancelUndispatched(i,I):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){re.delete(n),ae.delete(t),a.id=i.id,je(a,e.method,Date.now()),v.write(a).catch(()=>S.error(`Sending response for canceled message failed.`));return}}let a=ae.get(t);if(a!==void 0){a.cancel(),Ne(e);return}else ie.add(t)}ge(re,e)}finally{R()}};function Te(e){if(ye())return;function t(t,n,i){let a={jsonrpc:`2.0`,id:e.id};t instanceof r.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,je(a,n,i),v.write(a).catch(()=>S.error(`Sending response failed.`))}function i(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};je(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}function a(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};je(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}Me(e);let o=A.get(e.method),s,c;o&&(s=o.type,c=o.handler);let l=Date.now();if(c||k){let o=e.id??String(Date.now()),u=y.is(pe.receiver)?pe.receiver.createCancellationTokenSource(o):pe.receiver.createCancellationTokenSource(e);e.id!==null&&ie.has(e.id)&&u.cancel(),e.id!==null&&ae.set(o,u);try{let d;if(c)if(e.params===void 0){if(s!==void 0&&s.numberOfParams!==0){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,l);return}d=c(u.token)}else if(Array.isArray(e.params)){if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byName){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);return}d=c(...e.params,u.token)}else{if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byPosition){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);return}d=c(e.params,u.token)}else k&&(d=k(e.method,e.params,u.token));let f=d;d?f.then?f.then(n=>{ae.delete(o),t(n,e.method,l)},t=>{ae.delete(o),t instanceof r.ResponseError?i(t,e.method,l):t&&n.string(t.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}):(ae.delete(o),t(d,e.method,l)):(ae.delete(o),a(d,e.method,l))}catch(a){ae.delete(o),a instanceof r.ResponseError?t(a,e.method,l):a&&n.string(a.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${a.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else i(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}function Ee(e){if(!ye())if(e.id===null)e.error?S.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):S.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=M.get(t);if(Pe(e,n),n!==void 0){M.delete(t);try{if(e.error){let t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?S.error(`Response handler '${n.method}' failed with message: ${e.message}`):S.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function z(e){if(ye())return;let t,n;if(e.method===s.type.method){let t=e.params.id;ie.delete(t),Ne(e);return}else{let r=ee.get(e.method);r&&(n=r.handler,t=r.type)}if(n||j)try{if(Ne(e),n)if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let i=e.params;e.method===l.type.method&&i.length===2&&c.is(i[0])?n({token:i[0],value:i[1]}):(t!==void 0&&(t.parameterStructures===r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),n(...i))}else t!==void 0&&t.parameterStructures===r.ParameterStructures.byPosition&&S.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else j&&j(e.method,e.params)}catch(t){t.message?S.error(`Notification handler '${e.method}' failed with message: ${t.message}`):S.error(`Notification handler '${e.method}' failed unexpectedly.`)}else ue.fire(e)}function De(e){if(!e){S.error(`Received empty message.`);return}S.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t.id,n=M.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}function Oe(e){if(e!=null)switch(N){case d.Verbose:return JSON.stringify(e,null,4);case d.Compact:return JSON.stringify(e);default:return}}function ke(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&e.params&&(t=`Params: ${Oe(e.params)}\n\n`),se.log(`Sending request '${e.method} - (${e.id})'.`,t)}else B(`send-request`,e)}function Ae(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&(t=e.params?`Params: ${Oe(e.params)}\n\n`:`No parameters provided.
`),se.log(`Sending notification '${e.method}'.`,t)}else B(`send-notification`,e)}function je(e,t,n){if(!(N===d.Off||!se))if(oe===p.Text){let r;(N===d.Verbose||N===d.Compact)&&(e.error&&e.error.data?r=`Error data: ${Oe(e.error.data)}\n\n`:e.result?r=`Result: ${Oe(e.result)}\n\n`:e.error===void 0&&(r=`No result returned.
`)),se.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else B(`send-response`,e)}function Me(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&e.params&&(t=`Params: ${Oe(e.params)}\n\n`),se.log(`Received request '${e.method} - (${e.id})'.`,t)}else B(`receive-request`,e)}function Ne(e){if(!(N===d.Off||!se||e.method===h.type.method))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&(t=e.params?`Params: ${Oe(e.params)}\n\n`:`No parameters provided.
`),se.log(`Received notification '${e.method}'.`,t)}else B(`receive-notification`,e)}function Pe(e,t){if(!(N===d.Off||!se))if(oe===p.Text){let n;if((N===d.Verbose||N===d.Compact)&&(e.error&&e.error.data?n=`Error data: ${Oe(e.error.data)}\n\n`:e.result?n=`Result: ${Oe(e.result)}\n\n`:e.error===void 0&&(n=`No result returned.
`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;se.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else se.log(`Received response ${e.id} without active response promise.`,n)}else B(`receive-response`,e)}function B(e,t){if(!se||N===d.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};se.log(n)}function Fe(){if(ve())throw new _(g.Closed,`Connection is closed.`);if(ye())throw new _(g.Disposed,`Connection is disposed.`)}function Ie(){if(_e())throw new _(g.AlreadyListening,`Connection is already listening`)}function Le(){if(!_e())throw Error(`Call listen() first.`)}function Re(e){return e===void 0?null:e}function ze(e){if(e!==null)return e}function Be(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}function Ve(e,t){switch(e){case r.ParameterStructures.auto:return Be(t)?ze(t):[Re(t)];case r.ParameterStructures.byName:if(!Be(t))throw Error(`Received parameters by name but param is not an object literal.`);return ze(t);case r.ParameterStructures.byPosition:return[Re(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function He(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ve(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<r;e++)n.push(Re(t[e]));if(t.length<r)for(let e=t.length;e<r;e++)n.push(null);break}return n}let V={sendNotification:(e,...t)=>{Fe();let i,a;if(n.string(e)){i=e;let n=t[0],o=0,s=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(o=1,s=n);let c=t.length,l=c-o;switch(l){case 0:a=void 0;break;case 1:a=Ve(s,t[o]);break;default:if(s===r.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,c).map(e=>Re(e));break}}else{let n=t;i=e.method,a=He(e,n)}let o={jsonrpc:`2.0`,method:i,params:a};return Ae(o),v.write(o).catch(e=>{throw S.error(`Sending notification failed.`),e})},onNotification:(e,t)=>{Fe();let r;return n.func(e)?j=e:t&&(n.string(e)?(r=e,ee.set(e,{type:void 0,handler:t})):(r=e.method,ee.set(e.method,{type:e,handler:t}))),{dispose:()=>{r===void 0?j=void 0:ee.delete(r)}}},onProgress:(e,t,n)=>{if(te.has(t))throw Error(`Progress handler for token ${t} already registered`);return te.set(t,n),{dispose:()=>{te.delete(t)}}},sendProgress:(e,t,n)=>V.sendNotification(l.type,{token:t,value:n}),onUnhandledProgress:de.event,sendRequest:(e,...t)=>{Fe(),Le();let i,a,s;if(n.string(e)){i=e;let n=t[0],c=t[t.length-1],l=0,u=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(l=1,u=n);let d=t.length;o.CancellationToken.is(c)&&(--d,s=c);let f=d-l;switch(f){case 0:a=void 0;break;case 1:a=Ve(u,t[l]);break;default:if(u===r.ParameterStructures.byName)throw Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(l,d).map(e=>Re(e));break}}else{let n=t;i=e.method,a=He(e,n);let r=e.numberOfParams;s=o.CancellationToken.is(n[r])?n[r]:void 0}let c=T++,l;s&&(l=s.onCancellationRequested(()=>{let e=pe.sender.sendCancellation(V,c);return e===void 0?(S.log(`Received no promise from cancellation strategy when cancelling id ${c}`),Promise.resolve()):e.catch(()=>{S.log(`Sending cancellation messages for id ${c} failed`)})}));let u={jsonrpc:`2.0`,id:c,method:i,params:a};return ke(u),typeof pe.sender.enableCancellation==`function`&&pe.sender.enableCancellation(u),new Promise(async(e,t)=>{let n={method:i,timerStart:Date.now(),resolve:t=>{e(t),pe.sender.cleanup(c),l?.dispose()},reject:e=>{t(e),pe.sender.cleanup(c),l?.dispose()}};try{M.set(c,n),await v.write(u)}catch(e){throw M.delete(c),n.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),S.error(`Sending request failed.`),e}})},onRequest:(e,t)=>{Fe();let r=null;return u.is(e)?(r=void 0,k=e):n.string(e)?(r=null,t!==void 0&&(r=e,A.set(e,{handler:t,type:void 0}))):t!==void 0&&(r=e.method,A.set(e.method,{type:e,handler:t})),{dispose:()=>{r!==null&&(r===void 0?k=void 0:A.delete(r))}}},hasPendingResponse:()=>M.size>0,trace:async(e,t,r)=>{let i=!1,a=p.Text;r!==void 0&&(n.boolean(r)?i=r:(i=r.sendNotification||!1,a=r.traceFormat||p.Text)),N=e,oe=a,se=N===d.Off?void 0:t,i&&!ve()&&!ye()&&await V.sendNotification(m.type,{value:d.toString(e)})},onError:ce.event,onClose:le.event,onUnhandledNotification:ue.event,onDispose:fe.event,end:()=>{v.end()},dispose:()=>{if(ye())return;P=E.Disposed,fe.fire(void 0);let e=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of M.values())t.reject(e);M=new Map,ae=new Map,ie=new Set,re=new i.LinkedMap,n.func(v.dispose)&&v.dispose(),n.func(f.dispose)&&f.dispose()},listen:()=>{Fe(),Ie(),P=E.Listening,f.listen(we)},inspect:()=>{(0,t.default)().console.log(`inspect`)}};return V.onNotification(h.type,e=>{if(N===d.Off||!se)return;let t=N===d.Verbose||N===d.Compact;se.log(e.message,t?e.verbose:void 0)}),V.onNotification(l.type,e=>{let t=te.get(e.token);t?t(e.value):de.fire(e)}),V}e.createMessageConnection=D})),JY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;let t=IY();Object.defineProperty(e,`Message`,{enumerable:!0,get:function(){return t.Message}}),Object.defineProperty(e,`RequestType`,{enumerable:!0,get:function(){return t.RequestType}}),Object.defineProperty(e,`RequestType0`,{enumerable:!0,get:function(){return t.RequestType0}}),Object.defineProperty(e,`RequestType1`,{enumerable:!0,get:function(){return t.RequestType1}}),Object.defineProperty(e,`RequestType2`,{enumerable:!0,get:function(){return t.RequestType2}}),Object.defineProperty(e,`RequestType3`,{enumerable:!0,get:function(){return t.RequestType3}}),Object.defineProperty(e,`RequestType4`,{enumerable:!0,get:function(){return t.RequestType4}}),Object.defineProperty(e,`RequestType5`,{enumerable:!0,get:function(){return t.RequestType5}}),Object.defineProperty(e,`RequestType6`,{enumerable:!0,get:function(){return t.RequestType6}}),Object.defineProperty(e,`RequestType7`,{enumerable:!0,get:function(){return t.RequestType7}}),Object.defineProperty(e,`RequestType8`,{enumerable:!0,get:function(){return t.RequestType8}}),Object.defineProperty(e,`RequestType9`,{enumerable:!0,get:function(){return t.RequestType9}}),Object.defineProperty(e,`ResponseError`,{enumerable:!0,get:function(){return t.ResponseError}}),Object.defineProperty(e,`ErrorCodes`,{enumerable:!0,get:function(){return t.ErrorCodes}}),Object.defineProperty(e,`NotificationType`,{enumerable:!0,get:function(){return t.NotificationType}}),Object.defineProperty(e,`NotificationType0`,{enumerable:!0,get:function(){return t.NotificationType0}}),Object.defineProperty(e,`NotificationType1`,{enumerable:!0,get:function(){return t.NotificationType1}}),Object.defineProperty(e,`NotificationType2`,{enumerable:!0,get:function(){return t.NotificationType2}}),Object.defineProperty(e,`NotificationType3`,{enumerable:!0,get:function(){return t.NotificationType3}}),Object.defineProperty(e,`NotificationType4`,{enumerable:!0,get:function(){return t.NotificationType4}}),Object.defineProperty(e,`NotificationType5`,{enumerable:!0,get:function(){return t.NotificationType5}}),Object.defineProperty(e,`NotificationType6`,{enumerable:!0,get:function(){return t.NotificationType6}}),Object.defineProperty(e,`NotificationType7`,{enumerable:!0,get:function(){return t.NotificationType7}}),Object.defineProperty(e,`NotificationType8`,{enumerable:!0,get:function(){return t.NotificationType8}}),Object.defineProperty(e,`NotificationType9`,{enumerable:!0,get:function(){return t.NotificationType9}}),Object.defineProperty(e,`ParameterStructures`,{enumerable:!0,get:function(){return t.ParameterStructures}});let n=LY();Object.defineProperty(e,`LinkedMap`,{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(e,`LRUCache`,{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(e,`Touch`,{enumerable:!0,get:function(){return n.Touch}});let r=RY();Object.defineProperty(e,`Disposable`,{enumerable:!0,get:function(){return r.Disposable}});let i=BY();Object.defineProperty(e,`Event`,{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(e,`Emitter`,{enumerable:!0,get:function(){return i.Emitter}});let a=VY();Object.defineProperty(e,`CancellationTokenSource`,{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(e,`CancellationToken`,{enumerable:!0,get:function(){return a.CancellationToken}});let o=HY();Object.defineProperty(e,`SharedArraySenderStrategy`,{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(e,`SharedArrayReceiverStrategy`,{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});let s=WY();Object.defineProperty(e,`MessageReader`,{enumerable:!0,get:function(){return s.MessageReader}}),Object.defineProperty(e,`AbstractMessageReader`,{enumerable:!0,get:function(){return s.AbstractMessageReader}}),Object.defineProperty(e,`ReadableStreamMessageReader`,{enumerable:!0,get:function(){return s.ReadableStreamMessageReader}});let c=GY();Object.defineProperty(e,`MessageWriter`,{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(e,`AbstractMessageWriter`,{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(e,`WriteableStreamMessageWriter`,{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});let l=KY();Object.defineProperty(e,`AbstractMessageBuffer`,{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});let u=qY();Object.defineProperty(e,`ConnectionStrategy`,{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(e,`ConnectionOptions`,{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(e,`NullLogger`,{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(e,`createMessageConnection`,{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(e,`ProgressToken`,{enumerable:!0,get:function(){return u.ProgressToken}}),Object.defineProperty(e,`ProgressType`,{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(e,`Trace`,{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(e,`TraceValues`,{enumerable:!0,get:function(){return u.TraceValues}}),Object.defineProperty(e,`TraceFormat`,{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(e,`SetTraceNotification`,{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(e,`LogTraceNotification`,{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(e,`ConnectionErrors`,{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(e,`ConnectionError`,{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(e,`CancellationReceiverStrategy`,{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(e,`CancellationSenderStrategy`,{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(e,`CancellationStrategy`,{enumerable:!0,get:function(){return u.CancellationStrategy}}),Object.defineProperty(e,`MessageStrategy`,{enumerable:!0,get:function(){return u.MessageStrategy}}),e.RAL=zY().default})),YY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ve(`util`),n=JY();var r=class e extends n.AbstractMessageBuffer{constructor(e=`utf-8`){super(e)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,n){return e instanceof Buffer?e.toString(n):new t.TextDecoder(n).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};r.emptyBuffer=Buffer.allocUnsafe(0);var i=class{constructor(e){this.stream=e}onClose(e){return this.stream.on(`close`,e),n.Disposable.create(()=>this.stream.off(`close`,e))}onError(e){return this.stream.on(`error`,e),n.Disposable.create(()=>this.stream.off(`error`,e))}onEnd(e){return this.stream.on(`end`,e),n.Disposable.create(()=>this.stream.off(`end`,e))}onData(e){return this.stream.on(`data`,e),n.Disposable.create(()=>this.stream.off(`data`,e))}},a=class{constructor(e){this.stream=e}onClose(e){return this.stream.on(`close`,e),n.Disposable.create(()=>this.stream.off(`close`,e))}onError(e){return this.stream.on(`error`,e),n.Disposable.create(()=>this.stream.off(`error`,e))}onEnd(e){return this.stream.on(`end`,e),n.Disposable.create(()=>this.stream.off(`end`,e))}write(e,t){return new Promise((n,r)=>{let i=e=>{e==null?n():r(e)};typeof e==`string`?this.stream.write(e,t,i):this.stream.write(e,i)})}end(){this.stream.end()}};let o=Object.freeze({messageBuffer:Object.freeze({create:e=>new r(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:`application/json`,decode:(e,n)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(n.charset))):Promise.resolve(JSON.parse(new t.TextDecoder(n.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new i(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function s(){return o}(function(e){function t(){n.RAL.install(o)}e.install=t})(s||={}),e.default=s})),XY=F((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.createServerSocketTransport=e.createClientSocketTransport=e.createServerPipeTransport=e.createClientPipeTransport=e.generateRandomPipeName=e.StreamMessageWriter=e.StreamMessageReader=e.SocketMessageWriter=e.SocketMessageReader=e.PortMessageWriter=e.PortMessageReader=e.IPCMessageWriter=e.IPCMessageReader=void 0;let r=YY();r.default.install();let i=ve(`path`),a=ve(`os`),o=ve(`crypto`),s=ve(`net`),c=JY();n(JY(),e),e.IPCMessageReader=class extends c.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on(`error`,e=>this.fireError(e)),t.on(`close`,()=>this.fireClose())}listen(e){return this.process.on(`message`,e),c.Disposable.create(()=>this.process.off(`message`,e))}},e.IPCMessageWriter=class extends c.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on(`error`,e=>this.fireError(e)),t.on(`close`,()=>this.fireClose)}write(e){try{return typeof this.process.send==`function`&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}},e.PortMessageReader=class extends c.AbstractMessageReader{constructor(e){super(),this.onData=new c.Emitter,e.on(`close`,()=>this.fireClose),e.on(`error`,e=>this.fireError(e)),e.on(`message`,e=>{this.onData.fire(e)})}listen(e){return this.onData.event(e)}},e.PortMessageWriter=class extends c.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on(`close`,()=>this.fireClose()),e.on(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};var l=class extends c.ReadableStreamMessageReader{constructor(e,t=`utf-8`){super((0,r.default)().stream.asReadableStream(e),t)}};e.SocketMessageReader=l;var u=class extends c.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};e.SocketMessageWriter=u;var d=class extends c.ReadableStreamMessageReader{constructor(e,t){super((0,r.default)().stream.asReadableStream(e),t)}};e.StreamMessageReader=d;var f=class extends c.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t)}};e.StreamMessageWriter=f;let p=process.env.XDG_RUNTIME_DIR,m=new Map([[`linux`,107],[`darwin`,103]]);function h(){let e=(0,o.randomBytes)(21).toString(`hex`);if(process.platform===`win32`)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=p?i.join(p,`vscode-ipc-${e}.sock`):i.join(a.tmpdir(),`vscode-${e}.sock`);let n=m.get(process.platform);return n!==void 0&&t.length>n&&(0,r.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t}e.generateRandomPipeName=h;function g(e,t=`utf-8`){let n,r=new Promise((e,t)=>{n=e});return new Promise((i,a)=>{let o=(0,s.createServer)(e=>{o.close(),n([new l(e,t),new u(e,t)])});o.on(`error`,a),o.listen(e,()=>{o.removeListener(`error`,a),i({onConnected:()=>r})})})}e.createClientPipeTransport=g;function _(e,t=`utf-8`){let n=(0,s.createConnection)(e);return[new l(n,t),new u(n,t)]}e.createServerPipeTransport=_;function v(e,t=`utf-8`){let n,r=new Promise((e,t)=>{n=e});return new Promise((i,a)=>{let o=(0,s.createServer)(e=>{o.close(),n([new l(e,t),new u(e,t)])});o.on(`error`,a),o.listen(e,`127.0.0.1`,()=>{o.removeListener(`error`,a),i({onConnected:()=>r})})})}e.createClientSocketTransport=v;function y(e,t=`utf-8`){let n=(0,s.createConnection)(e,`127.0.0.1`);return[new l(n,t),new u(n,t)]}e.createServerSocketTransport=y;function b(e){let t=e;return t.read!==void 0&&t.addListener!==void 0}function x(e){let t=e;return t.write!==void 0&&t.addListener!==void 0}function S(e,t,n,r){n||=c.NullLogger;let i=b(e)?new d(e):e,a=x(t)?new f(t):t;return c.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,c.createMessageConnection)(i,a,n,r)}e.createMessageConnection=S})),ZY=F(((e,t)=>{t.exports=XY()})),QY=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}e.string=n;function r(e){return typeof e==`number`||e instanceof Number}e.number=r;function i(e){return e instanceof Error}e.error=i;function a(e){return typeof e==`function`}e.func=a;function o(e){return Array.isArray(e)}e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}e.stringArray=s})),$Y=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;let t=QY();var n;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(n||(e.ErrorCodes=n={})),e.ResponseError=class e extends Error{constructor(r,i,a){super(i),this.code=t.number(r)?r:n.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var r=class e{constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=r,r.auto=new r(`auto`),r.byPosition=new r(`byPosition`),r.byName=new r(`byName`);var i=class{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return r.auto}};e.AbstractMessageSignature=i,e.RequestType0=class extends i{constructor(e){super(e,0)}},e.RequestType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends i{constructor(e){super(e,2)}},e.RequestType3=class extends i{constructor(e){super(e,3)}},e.RequestType4=class extends i{constructor(e){super(e,4)}},e.RequestType5=class extends i{constructor(e){super(e,5)}},e.RequestType6=class extends i{constructor(e){super(e,6)}},e.RequestType7=class extends i{constructor(e){super(e,7)}},e.RequestType8=class extends i{constructor(e){super(e,8)}},e.RequestType9=class extends i{constructor(e){super(e,9)}},e.NotificationType=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends i{constructor(e){super(e,0)}},e.NotificationType1=class extends i{constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends i{constructor(e){super(e,2)}},e.NotificationType3=class extends i{constructor(e){super(e,3)}},e.NotificationType4=class extends i{constructor(e){super(e,4)}},e.NotificationType5=class extends i{constructor(e){super(e,5)}},e.NotificationType6=class extends i{constructor(e){super(e,6)}},e.NotificationType7=class extends i{constructor(e){super(e,7)}},e.NotificationType8=class extends i{constructor(e){super(e,8)}},e.NotificationType9=class extends i{constructor(e){super(e,9)}};var a;(function(e){function n(e){let n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))}e.isRequest=n;function r(e){let n=e;return n&&t.string(n.method)&&e.id===void 0}e.isNotification=r;function i(e){let n=e;return n&&(n.result!==void 0||!!n.error)&&(t.string(n.id)||t.number(n.id)||n.id===null)}e.isResponse=i})(a||(e.Message=a={}))})),eX=F((e=>{var t;Object.defineProperty(e,`__esModule`,{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var n;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(n||(e.Touch=n={}));var r=class{constructor(){this[t]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}else return{value:void 0,done:!0}}};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==n.First&&t!==n.Last)){if(t===n.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=r,e.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}})),tX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}e.create=t})(t||(e.Disposable=t={}))})),nX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t;function n(){if(t===void 0)throw Error(`No runtime abstraction layer installed`);return t}(function(e){function n(e){if(e===void 0)throw Error(`No runtime abstraction layer provided`);t=e}e.install=n})(n||={}),e.default=n})),rX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Emitter=e.Event=void 0;let t=nX();var n;(function(e){let t={dispose(){}};e.None=function(){return t}})(n||(e.Event=n={}));var r=class{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r<i;r++)if(this._callbacks[r]===e)if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else n=!0;if(n)throw Error(`When adding a listener with a context, you should remove it with the same context`)}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,o=r.length;a<o;a++)try{n.push(r[a].apply(i[a],e))}catch(e){(0,t.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},i=class e{constructor(e){this._options=e}get event(){return this._event||=(t,n,i)=>{this._callbacks||=new r,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=i,i._noop=function(){}})),iX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;let t=nX(),n=QY(),r=rX();var i;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None});function t(t){let r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(i||(e.CancellationToken=i={}));let a=Object.freeze(function(e,n){let r=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){r.dispose()}}});var o=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||=new r.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{get token(){return this._token||=new o,this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=i.None}}})),aX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;let t=iX();var n;(function(e){e.Continue=0,e.Cancelled=1})(n||={}),e.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var r=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},i=class{constructor(e){this.token=new r(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{constructor(){this.kind=`request`}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new t.CancellationTokenSource:new i(n)}}})),oX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Semaphore=void 0;let t=nX();e.Semaphore=class{constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}})),sX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;let t=nX(),n=QY(),r=rX(),i=oX();var a;(function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}e.is=t})(a||(e.MessageReader=a={}));var o=class{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=o;var s;(function(e){function n(e){let n,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)n=e??`utf-8`;else{if(n=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,t.default)().applicationJson.decoder,o.set(a.name,a)),{charset:n,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}e.fromOptions=n})(s||={}),e.ReadableStreamMessageReader=class extends o{constructor(e,n){super(),this.readable=e,this.options=s.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}})),cX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;let t=nX(),n=QY(),r=oX(),i=rX();var a;(function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}e.is=t})(a||(e.MessageWriter=a={}));var o=class{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=o;var s;(function(e){function n(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}e.fromOptions=n})(s||={}),e.WriteableStreamMessageWriter=class extends o{constructor(e,t){super(),this.writable=e,this.options=s.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(`Content-Length: `,t.byteLength.toString(),`\r
`),n.push(`\r
`),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}})),lX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AbstractMessageBuffer=void 0,e.AbstractMessageBuffer=class{constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let t=0,n=0,r=0,i=0;row:for(;n<this._chunks.length;){let e=this._chunks[n];r=0;column:for(;r<e.length;){switch(e[r]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,r++;break row;default:t=0}break;default:t=0}r++}i+=e.byteLength,n++}if(t!==4)return;let a=this._read(i+r),o=new Map,s=this.toString(a,`ascii`).split(`\r
`);if(s.length<2)return o;for(let t=0;t<s.length-2;t++){let n=s[t],r=n.indexOf(`:`);if(r===-1)throw Error(`Message header must separate key and value using ':'\n${n}`);let i=n.substr(0,r),a=n.substr(r+1).trim();o.set(e?i.toLowerCase():i,a)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}})),uX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;let t=nX(),n=QY(),r=$Y(),i=eX(),a=rX(),o=iX();var s;(function(e){e.type=new r.NotificationType(`$/cancelRequest`)})(s||={});var c;(function(e){function t(e){return typeof e==`string`||typeof e==`number`}e.is=t})(c||(e.ProgressToken=c={}));var l;(function(e){e.type=new r.NotificationType(`$/progress`)})(l||={}),e.ProgressType=class{constructor(){}};var u;(function(e){function t(e){return n.func(e)}e.is=t})(u||={}),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var d;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(d||(e.Trace=d={}));var f;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(f||(e.TraceValues=f={})),(function(e){function t(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}e.toString=r})(d||(e.Trace=d={}));var p;(function(e){e.Text=`text`,e.JSON=`json`})(p||(e.TraceFormat=p={})),(function(e){function t(t){return n.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}e.fromString=t})(p||(e.TraceFormat=p={}));var m;(function(e){e.type=new r.NotificationType(`$/setTrace`)})(m||(e.SetTraceNotification=m={}));var h;(function(e){e.type=new r.NotificationType(`$/logTrace`)})(h||(e.LogTraceNotification=h={}));var g;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(g||(e.ConnectionErrors=g={}));var _=class e extends Error{constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=_;var v;(function(e){function t(e){let t=e;return t&&n.func(t.cancelUndispatched)}e.is=t})(v||(e.ConnectionStrategy=v={}));var y;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(y||(e.IdCancellationReceiverStrategy=y={}));var b;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}e.is=t})(b||(e.RequestCancellationReceiverStrategy=b={}));var x;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new o.CancellationTokenSource}});function t(e){return y.is(e)||b.is(e)}e.is=t})(x||(e.CancellationReceiverStrategy=x={}));var S;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(s.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}e.is=t})(S||(e.CancellationSenderStrategy=S={}));var C;(function(e){e.Message=Object.freeze({receiver:x.Message,sender:S.Message});function t(e){let t=e;return t&&x.is(t.receiver)&&S.is(t.sender)}e.is=t})(C||(e.CancellationStrategy=C={}));var w;(function(e){function t(e){let t=e;return t&&n.func(t.handleMessage)}e.is=t})(w||(e.MessageStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&(C.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||w.is(t.messageStrategy))}e.is=t})(T||(e.ConnectionOptions=T={}));var E;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(E||={});function D(f,v,b,x){let S=b===void 0?e.NullLogger:b,T=0,D=0,O=0,k,A=new Map,j,ee=new Map,te=new Map,ne,re=new i.LinkedMap,M=new Map,ie=new Set,ae=new Map,N=d.Off,oe=p.Text,se,P=E.New,ce=new a.Emitter,le=new a.Emitter,ue=new a.Emitter,de=new a.Emitter,fe=new a.Emitter,pe=x&&x.cancellationStrategy?x.cancellationStrategy:C.Message;function me(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}function he(e){return e===null?`res-unknown-`+(++O).toString():`res-`+e.toString()}function F(){return`not-`+(++D).toString()}function ge(e,t){r.Message.isRequest(t)?e.set(me(t.id),t):r.Message.isResponse(t)?e.set(he(t.id),t):e.set(F(),t)}function I(e){}function _e(){return P===E.Listening}function ve(){return P===E.Closed}function ye(){return P===E.Disposed}function be(){(P===E.New||P===E.Listening)&&(P=E.Closed,le.fire(void 0))}function L(e){ce.fire([e,void 0,void 0])}function xe(e){ce.fire(e)}f.onClose(be),f.onError(L),v.onClose(be),v.onError(xe);function R(){ne||re.size===0||(ne=(0,t.default)().timer.setImmediate(()=>{ne=void 0,Ce()}))}function Se(e){r.Message.isRequest(e)?Te(e):r.Message.isNotification(e)?z(e):r.Message.isResponse(e)?Ee(e):De(e)}function Ce(){if(re.size===0)return;let e=re.shift();try{let t=x?.messageStrategy;w.is(t)?t.handleMessage(e,Se):Se(e)}finally{R()}}let we=e=>{try{if(r.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=me(t),i=re.get(n);if(r.Message.isRequest(i)){let r=x?.connectionStrategy,a=r&&r.cancelUndispatched?r.cancelUndispatched(i,I):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){re.delete(n),ae.delete(t),a.id=i.id,je(a,e.method,Date.now()),v.write(a).catch(()=>S.error(`Sending response for canceled message failed.`));return}}let a=ae.get(t);if(a!==void 0){a.cancel(),Ne(e);return}else ie.add(t)}ge(re,e)}finally{R()}};function Te(e){if(ye())return;function t(t,n,i){let a={jsonrpc:`2.0`,id:e.id};t instanceof r.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,je(a,n,i),v.write(a).catch(()=>S.error(`Sending response failed.`))}function i(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};je(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}function a(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};je(i,n,r),v.write(i).catch(()=>S.error(`Sending response failed.`))}Me(e);let o=A.get(e.method),s,c;o&&(s=o.type,c=o.handler);let l=Date.now();if(c||k){let o=e.id??String(Date.now()),u=y.is(pe.receiver)?pe.receiver.createCancellationTokenSource(o):pe.receiver.createCancellationTokenSource(e);e.id!==null&&ie.has(e.id)&&u.cancel(),e.id!==null&&ae.set(o,u);try{let d;if(c)if(e.params===void 0){if(s!==void 0&&s.numberOfParams!==0){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,l);return}d=c(u.token)}else if(Array.isArray(e.params)){if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byName){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);return}d=c(...e.params,u.token)}else{if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byPosition){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);return}d=c(e.params,u.token)}else k&&(d=k(e.method,e.params,u.token));let f=d;d?f.then?f.then(n=>{ae.delete(o),t(n,e.method,l)},t=>{ae.delete(o),t instanceof r.ResponseError?i(t,e.method,l):t&&n.string(t.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}):(ae.delete(o),t(d,e.method,l)):(ae.delete(o),a(d,e.method,l))}catch(a){ae.delete(o),a instanceof r.ResponseError?t(a,e.method,l):a&&n.string(a.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${a.message}`),e.method,l):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else i(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}function Ee(e){if(!ye())if(e.id===null)e.error?S.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):S.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=M.get(t);if(Pe(e,n),n!==void 0){M.delete(t);try{if(e.error){let t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?S.error(`Response handler '${n.method}' failed with message: ${e.message}`):S.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function z(e){if(ye())return;let t,n;if(e.method===s.type.method){let t=e.params.id;ie.delete(t),Ne(e);return}else{let r=ee.get(e.method);r&&(n=r.handler,t=r.type)}if(n||j)try{if(Ne(e),n)if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let i=e.params;e.method===l.type.method&&i.length===2&&c.is(i[0])?n({token:i[0],value:i[1]}):(t!==void 0&&(t.parameterStructures===r.ParameterStructures.byName&&S.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),n(...i))}else t!==void 0&&t.parameterStructures===r.ParameterStructures.byPosition&&S.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else j&&j(e.method,e.params)}catch(t){t.message?S.error(`Notification handler '${e.method}' failed with message: ${t.message}`):S.error(`Notification handler '${e.method}' failed unexpectedly.`)}else ue.fire(e)}function De(e){if(!e){S.error(`Received empty message.`);return}S.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t.id,n=M.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}function Oe(e){if(e!=null)switch(N){case d.Verbose:return JSON.stringify(e,null,4);case d.Compact:return JSON.stringify(e);default:return}}function ke(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&e.params&&(t=`Params: ${Oe(e.params)}\n\n`),se.log(`Sending request '${e.method} - (${e.id})'.`,t)}else B(`send-request`,e)}function Ae(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&(t=e.params?`Params: ${Oe(e.params)}\n\n`:`No parameters provided.
`),se.log(`Sending notification '${e.method}'.`,t)}else B(`send-notification`,e)}function je(e,t,n){if(!(N===d.Off||!se))if(oe===p.Text){let r;(N===d.Verbose||N===d.Compact)&&(e.error&&e.error.data?r=`Error data: ${Oe(e.error.data)}\n\n`:e.result?r=`Result: ${Oe(e.result)}\n\n`:e.error===void 0&&(r=`No result returned.
`)),se.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else B(`send-response`,e)}function Me(e){if(!(N===d.Off||!se))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&e.params&&(t=`Params: ${Oe(e.params)}\n\n`),se.log(`Received request '${e.method} - (${e.id})'.`,t)}else B(`receive-request`,e)}function Ne(e){if(!(N===d.Off||!se||e.method===h.type.method))if(oe===p.Text){let t;(N===d.Verbose||N===d.Compact)&&(t=e.params?`Params: ${Oe(e.params)}\n\n`:`No parameters provided.
`),se.log(`Received notification '${e.method}'.`,t)}else B(`receive-notification`,e)}function Pe(e,t){if(!(N===d.Off||!se))if(oe===p.Text){let n;if((N===d.Verbose||N===d.Compact)&&(e.error&&e.error.data?n=`Error data: ${Oe(e.error.data)}\n\n`:e.result?n=`Result: ${Oe(e.result)}\n\n`:e.error===void 0&&(n=`No result returned.
`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;se.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else se.log(`Received response ${e.id} without active response promise.`,n)}else B(`receive-response`,e)}function B(e,t){if(!se||N===d.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};se.log(n)}function Fe(){if(ve())throw new _(g.Closed,`Connection is closed.`);if(ye())throw new _(g.Disposed,`Connection is disposed.`)}function Ie(){if(_e())throw new _(g.AlreadyListening,`Connection is already listening`)}function Le(){if(!_e())throw Error(`Call listen() first.`)}function Re(e){return e===void 0?null:e}function ze(e){if(e!==null)return e}function Be(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}function Ve(e,t){switch(e){case r.ParameterStructures.auto:return Be(t)?ze(t):[Re(t)];case r.ParameterStructures.byName:if(!Be(t))throw Error(`Received parameters by name but param is not an object literal.`);return ze(t);case r.ParameterStructures.byPosition:return[Re(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function He(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ve(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<r;e++)n.push(Re(t[e]));if(t.length<r)for(let e=t.length;e<r;e++)n.push(null);break}return n}let V={sendNotification:(e,...t)=>{Fe();let i,a;if(n.string(e)){i=e;let n=t[0],o=0,s=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(o=1,s=n);let c=t.length,l=c-o;switch(l){case 0:a=void 0;break;case 1:a=Ve(s,t[o]);break;default:if(s===r.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,c).map(e=>Re(e));break}}else{let n=t;i=e.method,a=He(e,n)}let o={jsonrpc:`2.0`,method:i,params:a};return Ae(o),v.write(o).catch(e=>{throw S.error(`Sending notification failed.`),e})},onNotification:(e,t)=>{Fe();let r;return n.func(e)?j=e:t&&(n.string(e)?(r=e,ee.set(e,{type:void 0,handler:t})):(r=e.method,ee.set(e.method,{type:e,handler:t}))),{dispose:()=>{r===void 0?j=void 0:ee.delete(r)}}},onProgress:(e,t,n)=>{if(te.has(t))throw Error(`Progress handler for token ${t} already registered`);return te.set(t,n),{dispose:()=>{te.delete(t)}}},sendProgress:(e,t,n)=>V.sendNotification(l.type,{token:t,value:n}),onUnhandledProgress:de.event,sendRequest:(e,...t)=>{Fe(),Le();let i,a,s;if(n.string(e)){i=e;let n=t[0],c=t[t.length-1],l=0,u=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(l=1,u=n);let d=t.length;o.CancellationToken.is(c)&&(--d,s=c);let f=d-l;switch(f){case 0:a=void 0;break;case 1:a=Ve(u,t[l]);break;default:if(u===r.ParameterStructures.byName)throw Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(l,d).map(e=>Re(e));break}}else{let n=t;i=e.method,a=He(e,n);let r=e.numberOfParams;s=o.CancellationToken.is(n[r])?n[r]:void 0}let c=T++,l;s&&(l=s.onCancellationRequested(()=>{let e=pe.sender.sendCancellation(V,c);return e===void 0?(S.log(`Received no promise from cancellation strategy when cancelling id ${c}`),Promise.resolve()):e.catch(()=>{S.log(`Sending cancellation messages for id ${c} failed`)})}));let u={jsonrpc:`2.0`,id:c,method:i,params:a};return ke(u),typeof pe.sender.enableCancellation==`function`&&pe.sender.enableCancellation(u),new Promise(async(e,t)=>{let n={method:i,timerStart:Date.now(),resolve:t=>{e(t),pe.sender.cleanup(c),l?.dispose()},reject:e=>{t(e),pe.sender.cleanup(c),l?.dispose()}};try{await v.write(u),M.set(c,n)}catch(e){throw S.error(`Sending request failed.`),n.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),e}})},onRequest:(e,t)=>{Fe();let r=null;return u.is(e)?(r=void 0,k=e):n.string(e)?(r=null,t!==void 0&&(r=e,A.set(e,{handler:t,type:void 0}))):t!==void 0&&(r=e.method,A.set(e.method,{type:e,handler:t})),{dispose:()=>{r!==null&&(r===void 0?k=void 0:A.delete(r))}}},hasPendingResponse:()=>M.size>0,trace:async(e,t,r)=>{let i=!1,a=p.Text;r!==void 0&&(n.boolean(r)?i=r:(i=r.sendNotification||!1,a=r.traceFormat||p.Text)),N=e,oe=a,se=N===d.Off?void 0:t,i&&!ve()&&!ye()&&await V.sendNotification(m.type,{value:d.toString(e)})},onError:ce.event,onClose:le.event,onUnhandledNotification:ue.event,onDispose:fe.event,end:()=>{v.end()},dispose:()=>{if(ye())return;P=E.Disposed,fe.fire(void 0);let e=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of M.values())t.reject(e);M=new Map,ae=new Map,ie=new Set,re=new i.LinkedMap,n.func(v.dispose)&&v.dispose(),n.func(f.dispose)&&f.dispose()},listen:()=>{Fe(),Ie(),P=E.Listening,f.listen(we)},inspect:()=>{(0,t.default)().console.log(`inspect`)}};return V.onNotification(h.type,e=>{if(N===d.Off||!se)return;let t=N===d.Verbose||N===d.Compact;se.log(e.message,t?e.verbose:void 0)}),V.onNotification(l.type,e=>{let t=te.get(e.token);t?t(e.value):de.fire(e)}),V}e.createMessageConnection=D})),dX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;let t=$Y();Object.defineProperty(e,`Message`,{enumerable:!0,get:function(){return t.Message}}),Object.defineProperty(e,`RequestType`,{enumerable:!0,get:function(){return t.RequestType}}),Object.defineProperty(e,`RequestType0`,{enumerable:!0,get:function(){return t.RequestType0}}),Object.defineProperty(e,`RequestType1`,{enumerable:!0,get:function(){return t.RequestType1}}),Object.defineProperty(e,`RequestType2`,{enumerable:!0,get:function(){return t.RequestType2}}),Object.defineProperty(e,`RequestType3`,{enumerable:!0,get:function(){return t.RequestType3}}),Object.defineProperty(e,`RequestType4`,{enumerable:!0,get:function(){return t.RequestType4}}),Object.defineProperty(e,`RequestType5`,{enumerable:!0,get:function(){return t.RequestType5}}),Object.defineProperty(e,`RequestType6`,{enumerable:!0,get:function(){return t.RequestType6}}),Object.defineProperty(e,`RequestType7`,{enumerable:!0,get:function(){return t.RequestType7}}),Object.defineProperty(e,`RequestType8`,{enumerable:!0,get:function(){return t.RequestType8}}),Object.defineProperty(e,`RequestType9`,{enumerable:!0,get:function(){return t.RequestType9}}),Object.defineProperty(e,`ResponseError`,{enumerable:!0,get:function(){return t.ResponseError}}),Object.defineProperty(e,`ErrorCodes`,{enumerable:!0,get:function(){return t.ErrorCodes}}),Object.defineProperty(e,`NotificationType`,{enumerable:!0,get:function(){return t.NotificationType}}),Object.defineProperty(e,`NotificationType0`,{enumerable:!0,get:function(){return t.NotificationType0}}),Object.defineProperty(e,`NotificationType1`,{enumerable:!0,get:function(){return t.NotificationType1}}),Object.defineProperty(e,`NotificationType2`,{enumerable:!0,get:function(){return t.NotificationType2}}),Object.defineProperty(e,`NotificationType3`,{enumerable:!0,get:function(){return t.NotificationType3}}),Object.defineProperty(e,`NotificationType4`,{enumerable:!0,get:function(){return t.NotificationType4}}),Object.defineProperty(e,`NotificationType5`,{enumerable:!0,get:function(){return t.NotificationType5}}),Object.defineProperty(e,`NotificationType6`,{enumerable:!0,get:function(){return t.NotificationType6}}),Object.defineProperty(e,`NotificationType7`,{enumerable:!0,get:function(){return t.NotificationType7}}),Object.defineProperty(e,`NotificationType8`,{enumerable:!0,get:function(){return t.NotificationType8}}),Object.defineProperty(e,`NotificationType9`,{enumerable:!0,get:function(){return t.NotificationType9}}),Object.defineProperty(e,`ParameterStructures`,{enumerable:!0,get:function(){return t.ParameterStructures}});let n=eX();Object.defineProperty(e,`LinkedMap`,{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(e,`LRUCache`,{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(e,`Touch`,{enumerable:!0,get:function(){return n.Touch}});let r=tX();Object.defineProperty(e,`Disposable`,{enumerable:!0,get:function(){return r.Disposable}});let i=rX();Object.defineProperty(e,`Event`,{enumerable:!0,get:function(){return i.Event}}),Object.defineProperty(e,`Emitter`,{enumerable:!0,get:function(){return i.Emitter}});let a=iX();Object.defineProperty(e,`CancellationTokenSource`,{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(e,`CancellationToken`,{enumerable:!0,get:function(){return a.CancellationToken}});let o=aX();Object.defineProperty(e,`SharedArraySenderStrategy`,{enumerable:!0,get:function(){return o.SharedArraySenderStrategy}}),Object.defineProperty(e,`SharedArrayReceiverStrategy`,{enumerable:!0,get:function(){return o.SharedArrayReceiverStrategy}});let s=sX();Object.defineProperty(e,`MessageReader`,{enumerable:!0,get:function(){return s.MessageReader}}),Object.defineProperty(e,`AbstractMessageReader`,{enumerable:!0,get:function(){return s.AbstractMessageReader}}),Object.defineProperty(e,`ReadableStreamMessageReader`,{enumerable:!0,get:function(){return s.ReadableStreamMessageReader}});let c=cX();Object.defineProperty(e,`MessageWriter`,{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(e,`AbstractMessageWriter`,{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(e,`WriteableStreamMessageWriter`,{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});let l=lX();Object.defineProperty(e,`AbstractMessageBuffer`,{enumerable:!0,get:function(){return l.AbstractMessageBuffer}});let u=uX();Object.defineProperty(e,`ConnectionStrategy`,{enumerable:!0,get:function(){return u.ConnectionStrategy}}),Object.defineProperty(e,`ConnectionOptions`,{enumerable:!0,get:function(){return u.ConnectionOptions}}),Object.defineProperty(e,`NullLogger`,{enumerable:!0,get:function(){return u.NullLogger}}),Object.defineProperty(e,`createMessageConnection`,{enumerable:!0,get:function(){return u.createMessageConnection}}),Object.defineProperty(e,`ProgressToken`,{enumerable:!0,get:function(){return u.ProgressToken}}),Object.defineProperty(e,`ProgressType`,{enumerable:!0,get:function(){return u.ProgressType}}),Object.defineProperty(e,`Trace`,{enumerable:!0,get:function(){return u.Trace}}),Object.defineProperty(e,`TraceValues`,{enumerable:!0,get:function(){return u.TraceValues}}),Object.defineProperty(e,`TraceFormat`,{enumerable:!0,get:function(){return u.TraceFormat}}),Object.defineProperty(e,`SetTraceNotification`,{enumerable:!0,get:function(){return u.SetTraceNotification}}),Object.defineProperty(e,`LogTraceNotification`,{enumerable:!0,get:function(){return u.LogTraceNotification}}),Object.defineProperty(e,`ConnectionErrors`,{enumerable:!0,get:function(){return u.ConnectionErrors}}),Object.defineProperty(e,`ConnectionError`,{enumerable:!0,get:function(){return u.ConnectionError}}),Object.defineProperty(e,`CancellationReceiverStrategy`,{enumerable:!0,get:function(){return u.CancellationReceiverStrategy}}),Object.defineProperty(e,`CancellationSenderStrategy`,{enumerable:!0,get:function(){return u.CancellationSenderStrategy}}),Object.defineProperty(e,`CancellationStrategy`,{enumerable:!0,get:function(){return u.CancellationStrategy}}),Object.defineProperty(e,`MessageStrategy`,{enumerable:!0,get:function(){return u.MessageStrategy}}),e.RAL=nX().default})),fX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0});let t=ve(`util`),n=dX();var r=class e extends n.AbstractMessageBuffer{constructor(e=`utf-8`){super(e)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,n){return e instanceof Buffer?e.toString(n):new t.TextDecoder(n).decode(e)}asNative(e,t){return t===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}};r.emptyBuffer=Buffer.allocUnsafe(0);var i=class{constructor(e){this.stream=e}onClose(e){return this.stream.on(`close`,e),n.Disposable.create(()=>this.stream.off(`close`,e))}onError(e){return this.stream.on(`error`,e),n.Disposable.create(()=>this.stream.off(`error`,e))}onEnd(e){return this.stream.on(`end`,e),n.Disposable.create(()=>this.stream.off(`end`,e))}onData(e){return this.stream.on(`data`,e),n.Disposable.create(()=>this.stream.off(`data`,e))}},a=class{constructor(e){this.stream=e}onClose(e){return this.stream.on(`close`,e),n.Disposable.create(()=>this.stream.off(`close`,e))}onError(e){return this.stream.on(`error`,e),n.Disposable.create(()=>this.stream.off(`error`,e))}onEnd(e){return this.stream.on(`end`,e),n.Disposable.create(()=>this.stream.off(`end`,e))}write(e,t){return new Promise((n,r)=>{let i=e=>{e==null?n():r(e)};typeof e==`string`?this.stream.write(e,t,i):this.stream.write(e,i)})}end(){this.stream.end()}};let o=Object.freeze({messageBuffer:Object.freeze({create:e=>new r(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:`application/json`,decode:(e,n)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(n.charset))):Promise.resolve(JSON.parse(new t.TextDecoder(n.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new i(e),asWritableStream:e=>new a(e)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(e,...t){let n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:()=>clearInterval(r)}}})});function s(){return o}(function(e){function t(){n.RAL.install(o)}e.install=t})(s||={}),e.default=s})),pX=F((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.createMessageConnection=e.createServerSocketTransport=e.createClientSocketTransport=e.createServerPipeTransport=e.createClientPipeTransport=e.generateRandomPipeName=e.StreamMessageWriter=e.StreamMessageReader=e.SocketMessageWriter=e.SocketMessageReader=e.PortMessageWriter=e.PortMessageReader=e.IPCMessageWriter=e.IPCMessageReader=void 0;let r=fX();r.default.install();let i=ve(`path`),a=ve(`os`),o=ve(`crypto`),s=ve(`net`),c=dX();n(dX(),e),e.IPCMessageReader=class extends c.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on(`error`,e=>this.fireError(e)),t.on(`close`,()=>this.fireClose())}listen(e){return this.process.on(`message`,e),c.Disposable.create(()=>this.process.off(`message`,e))}},e.IPCMessageWriter=class extends c.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on(`error`,e=>this.fireError(e)),t.on(`close`,()=>this.fireClose)}write(e){try{return typeof this.process.send==`function`&&this.process.send(e,void 0,void 0,t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0}),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}},e.PortMessageReader=class extends c.AbstractMessageReader{constructor(e){super(),this.onData=new c.Emitter,e.on(`close`,()=>this.fireClose),e.on(`error`,e=>this.fireError(e)),e.on(`message`,e=>{this.onData.fire(e)})}listen(e){return this.onData.event(e)}},e.PortMessageWriter=class extends c.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on(`close`,()=>this.fireClose()),e.on(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};var l=class extends c.ReadableStreamMessageReader{constructor(e,t=`utf-8`){super((0,r.default)().stream.asReadableStream(e),t)}};e.SocketMessageReader=l;var u=class extends c.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};e.SocketMessageWriter=u;var d=class extends c.ReadableStreamMessageReader{constructor(e,t){super((0,r.default)().stream.asReadableStream(e),t)}};e.StreamMessageReader=d;var f=class extends c.WriteableStreamMessageWriter{constructor(e,t){super((0,r.default)().stream.asWritableStream(e),t)}};e.StreamMessageWriter=f;let p=process.env.XDG_RUNTIME_DIR,m=new Map([[`linux`,107],[`darwin`,103]]);function h(){let e=(0,o.randomBytes)(21).toString(`hex`);if(process.platform===`win32`)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=p?i.join(p,`vscode-ipc-${e}.sock`):i.join(a.tmpdir(),`vscode-${e}.sock`);let n=m.get(process.platform);return n!==void 0&&t.length>n&&(0,r.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t}e.generateRandomPipeName=h;function g(e,t=`utf-8`){let n,r=new Promise((e,t)=>{n=e});return new Promise((i,a)=>{let o=(0,s.createServer)(e=>{o.close(),n([new l(e,t),new u(e,t)])});o.on(`error`,a),o.listen(e,()=>{o.removeListener(`error`,a),i({onConnected:()=>r})})})}e.createClientPipeTransport=g;function _(e,t=`utf-8`){let n=(0,s.createConnection)(e);return[new l(n,t),new u(n,t)]}e.createServerPipeTransport=_;function v(e,t=`utf-8`){let n,r=new Promise((e,t)=>{n=e});return new Promise((i,a)=>{let o=(0,s.createServer)(e=>{o.close(),n([new l(e,t),new u(e,t)])});o.on(`error`,a),o.listen(e,`127.0.0.1`,()=>{o.removeListener(`error`,a),i({onConnected:()=>r})})})}e.createClientSocketTransport=v;function y(e,t=`utf-8`){let n=(0,s.createConnection)(e,`127.0.0.1`);return[new l(n,t),new u(n,t)]}e.createServerSocketTransport=y;function b(e){let t=e;return t.read!==void 0&&t.addListener!==void 0}function x(e){let t=e;return t.write!==void 0&&t.addListener!==void 0}function S(e,t,n,r){n||=c.NullLogger;let i=b(e)?new d(e):e,a=x(t)?new f(t):t;return c.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,c.createMessageConnection)(i,a,n,r)}e.createMessageConnection=S})),mX=F(((e,t)=>{t.exports=pX()})),hX=F(((e,t)=>{(function(n){if(typeof t==`object`&&typeof t.exports==`object`){var r=n(ve,e);r!==void 0&&(t.exports=r)}else typeof define==`function`&&define.amd&&define([`require`,`exports`],n)})(function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.TextDocument=t.EOL=t.WorkspaceFolder=t.InlineCompletionContext=t.SelectedCompletionInfo=t.InlineCompletionTriggerKind=t.InlineCompletionList=t.InlineCompletionItem=t.StringValue=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=t.URI=t.DocumentUri=void 0;var n;(function(e){function t(e){return typeof e==`string`}e.is=t})(n||(t.DocumentUri=n={}));var r;(function(e){function t(e){return typeof e==`string`}e.is=t})(r||(t.URI=r={}));var i;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(i||(t.integer=i={}));var a;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(a||(t.uinteger=a={}));var o;(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.MAX_VALUE),{line:e,character:t}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&V.uinteger(t.line)&&V.uinteger(t.character)}e.is=n})(o||(t.Position=o={}));var s;(function(e){function t(e,t,n,r){if(V.uinteger(e)&&V.uinteger(t)&&V.uinteger(n)&&V.uinteger(r))return{start:o.create(e,t),end:o.create(n,r)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&o.is(t.start)&&o.is(t.end)}e.is=n})(s||(t.Range=s={}));var c;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&s.is(t.range)&&(V.string(t.uri)||V.undefined(t.uri))}e.is=n})(c||(t.Location=c={}));var l;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&s.is(t.targetRange)&&V.string(t.targetUri)&&s.is(t.targetSelectionRange)&&(s.is(t.originSelectionRange)||V.undefined(t.originSelectionRange))}e.is=n})(l||(t.LocationLink=l={}));var u;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&V.numberRange(t.red,0,1)&&V.numberRange(t.green,0,1)&&V.numberRange(t.blue,0,1)&&V.numberRange(t.alpha,0,1)}e.is=n})(u||(t.Color=u={}));var d;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&s.is(t.range)&&u.is(t.color)}e.is=n})(d||(t.ColorInformation=d={}));var f;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.undefined(t.textEdit)||x.is(t))&&(V.undefined(t.additionalTextEdits)||V.typedArray(t.additionalTextEdits,x.is))}e.is=n})(f||(t.ColorPresentation=f={}));var p;(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(p||(t.FoldingRangeKind=p={}));var m;(function(e){function t(e,t,n,r,i,a){var o={startLine:e,endLine:t};return V.defined(n)&&(o.startCharacter=n),V.defined(r)&&(o.endCharacter=r),V.defined(i)&&(o.kind=i),V.defined(a)&&(o.collapsedText=a),o}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&V.uinteger(t.startLine)&&V.uinteger(t.startLine)&&(V.undefined(t.startCharacter)||V.uinteger(t.startCharacter))&&(V.undefined(t.endCharacter)||V.uinteger(t.endCharacter))&&(V.undefined(t.kind)||V.string(t.kind))}e.is=n})(m||(t.FoldingRange=m={}));var h;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&c.is(t.location)&&V.string(t.message)}e.is=n})(h||(t.DiagnosticRelatedInformation=h={}));var g;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(g||(t.DiagnosticSeverity=g={}));var _;(function(e){e.Unnecessary=1,e.Deprecated=2})(_||(t.DiagnosticTag=_={}));var v;(function(e){function t(e){var t=e;return V.objectLiteral(t)&&V.string(t.href)}e.is=t})(v||(t.CodeDescription=v={}));var y;(function(e){function t(e,t,n,r,i,a){var o={range:e,message:t};return V.defined(n)&&(o.severity=n),V.defined(r)&&(o.code=r),V.defined(i)&&(o.source=i),V.defined(a)&&(o.relatedInformation=a),o}e.create=t;function n(e){var t=e;return V.defined(t)&&s.is(t.range)&&V.string(t.message)&&(V.number(t.severity)||V.undefined(t.severity))&&(V.integer(t.code)||V.string(t.code)||V.undefined(t.code))&&(V.undefined(t.codeDescription)||V.string(t.codeDescription?.href))&&(V.string(t.source)||V.undefined(t.source))&&(V.undefined(t.relatedInformation)||V.typedArray(t.relatedInformation,h.is))}e.is=n})(y||(t.Diagnostic=y={}));var b;(function(e){function t(e,t){var n=[...arguments].slice(2),r={title:e,command:t};return V.defined(n)&&n.length>0&&(r.arguments=n),r}e.create=t;function n(e){var t=e;return V.defined(t)&&V.string(t.title)&&V.string(t.command)}e.is=n})(b||(t.Command=b={}));var x;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:``}}e.del=r;function i(e){var t=e;return V.objectLiteral(t)&&V.string(t.newText)&&s.is(t.range)}e.is=i})(x||(t.TextEdit=x={}));var S;(function(e){function t(e,t,n){var r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&V.string(t.label)&&(V.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=n})(S||(t.ChangeAnnotation=S={}));var C;(function(e){function t(e){var t=e;return V.string(t)}e.is=t})(C||(t.ChangeAnnotationIdentifier=C={}));var w;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}e.del=r;function i(e){var t=e;return x.is(t)&&(S.is(t.annotationId)||C.is(t.annotationId))}e.is=i})(w||(t.AnnotatedTextEdit=w={}));var T;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&ne.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(T||(t.TextDocumentEdit=T={}));var E;(function(e){function t(e,t,n){var r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){var t=e;return t&&t.kind===`create`&&V.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||C.is(t.annotationId))}e.is=n})(E||(t.CreateFile=E={}));var D;(function(e){function t(e,t,n,r){var i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}e.create=t;function n(e){var t=e;return t&&t.kind===`rename`&&V.string(t.oldUri)&&V.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||V.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||V.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||C.is(t.annotationId))}e.is=n})(D||(t.RenameFile=D={}));var O;(function(e){function t(e,t,n){var r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}e.create=t;function n(e){var t=e;return t&&t.kind===`delete`&&V.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||V.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||V.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||C.is(t.annotationId))}e.is=n})(O||(t.DeleteFile=O={}));var k;(function(e){function t(e){var t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return V.string(e.kind)?E.is(e)||D.is(e)||O.is(e):T.is(e)}))}e.is=t})(k||(t.WorkspaceEdit=k={}));var A=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(n===void 0?r=x.insert(e,t):C.is(n)?(i=n,r=w.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.insert(e,t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.replace=function(e,t,n){var r,i;if(n===void 0?r=x.replace(e,t):C.is(n)?(i=n,r=w.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=w.replace(e,t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.delete=function(e,t){var n,r;if(t===void 0?n=x.del(e):C.is(t)?(r=t,n=w.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=w.del(e,r)),this.edits.push(n),r!==void 0)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)},e}(),j=function(){function e(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,`size`,{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(C.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();t.WorkspaceChange=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new j(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(T.is(e)){var n=new A(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach(function(n){var r=new A(e.changes[n]);t._textEditChanges[n]=r}))}return Object.defineProperty(e.prototype,`edit`,{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ne.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);var t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){var r=[],i={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(i),n=new A(r,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);var n=this._textEditChanges[e];if(!n){var r=[];this._workspaceEdit.changes[e]=r,n=new A(r),this._textEditChanges[e]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new j,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);var r;S.is(t)||C.is(t)?r=t:n=t;var i,a;if(r===void 0?i=E.create(e,n):(a=C.is(r)?r:this._changeAnnotations.manage(r),i=E.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);var i;S.is(n)||C.is(n)?i=n:r=n;var a,o;if(i===void 0?a=D.create(e,t,r):(o=C.is(i)?i:this._changeAnnotations.manage(i),a=D.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);var r;S.is(t)||C.is(t)?r=t:n=t;var i,a;if(r===void 0?i=O.create(e,n):(a=C.is(r)?r:this._changeAnnotations.manage(r),i=O.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a},e}();var ee;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){var t=e;return V.defined(t)&&V.string(t.uri)}e.is=n})(ee||(t.TextDocumentIdentifier=ee={}));var te;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&V.string(t.uri)&&V.integer(t.version)}e.is=n})(te||(t.VersionedTextDocumentIdentifier=te={}));var ne;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&V.string(t.uri)&&(t.version===null||V.integer(t.version))}e.is=n})(ne||(t.OptionalVersionedTextDocumentIdentifier=ne={}));var re;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){var t=e;return V.defined(t)&&V.string(t.uri)&&V.string(t.languageId)&&V.integer(t.version)&&V.string(t.text)}e.is=n})(re||(t.TextDocumentItem=re={}));var M;(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(M||(t.MarkupKind=M={}));var ie;(function(e){function t(e){var t=e;return V.objectLiteral(e)&&M.is(t.kind)&&V.string(t.value)}e.is=t})(ie||(t.MarkupContent=ie={}));var ae;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(ae||(t.CompletionItemKind=ae={}));var N;(function(e){e.PlainText=1,e.Snippet=2})(N||(t.InsertTextFormat=N={}));var oe;(function(e){e.Deprecated=1})(oe||(t.CompletionItemTag=oe={}));var se;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){var t=e;return t&&V.string(t.newText)&&s.is(t.insert)&&s.is(t.replace)}e.is=n})(se||(t.InsertReplaceEdit=se={}));var P;(function(e){e.asIs=1,e.adjustIndentation=2})(P||(t.InsertTextMode=P={}));var ce;(function(e){function t(e){var t=e;return t&&(V.string(t.detail)||t.detail===void 0)&&(V.string(t.description)||t.description===void 0)}e.is=t})(ce||(t.CompletionItemLabelDetails=ce={}));var le;(function(e){function t(e){return{label:e}}e.create=t})(le||(t.CompletionItem=le={}));var ue;(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}e.create=t})(ue||(t.CompletionList=ue={}));var de;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}e.fromPlainText=t;function n(e){var t=e;return V.string(t)||V.objectLiteral(t)&&V.string(t.language)&&V.string(t.value)}e.is=n})(de||(t.MarkedString=de={}));var fe;(function(e){function t(e){var t=e;return!!t&&V.objectLiteral(t)&&(ie.is(t.contents)||de.is(t.contents)||V.typedArray(t.contents,de.is))&&(e.range===void 0||s.is(e.range))}e.is=t})(fe||(t.Hover=fe={}));var pe;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(pe||(t.ParameterInformation=pe={}));var me;(function(e){function t(e,t){var n=[...arguments].slice(2),r={label:e};return V.defined(t)&&(r.documentation=t),V.defined(n)?r.parameters=n:r.parameters=[],r}e.create=t})(me||(t.SignatureInformation=me={}));var he;(function(e){e.Text=1,e.Read=2,e.Write=3})(he||(t.DocumentHighlightKind=he={}));var F;(function(e){function t(e,t){var n={range:e};return V.number(t)&&(n.kind=t),n}e.create=t})(F||(t.DocumentHighlight=F={}));var ge;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ge||(t.SymbolKind=ge={}));var I;(function(e){e.Deprecated=1})(I||(t.SymbolTag=I={}));var _e;(function(e){function t(e,t,n,r,i){var a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}e.create=t})(_e||(t.SymbolInformation=_e={}));var ve;(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}e.create=t})(ve||(t.WorkspaceSymbol=ve={}));var ye;(function(e){function t(e,t,n,r,i,a){var o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}e.create=t;function n(e){var t=e;return t&&V.string(t.name)&&V.number(t.kind)&&s.is(t.range)&&s.is(t.selectionRange)&&(t.detail===void 0||V.string(t.detail))&&(t.deprecated===void 0||V.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=n})(ye||(t.DocumentSymbol=ye={}));var be;(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(be||(t.CodeActionKind=be={}));var L;(function(e){e.Invoked=1,e.Automatic=2})(L||(t.CodeActionTriggerKind=L={}));var xe;(function(e){function t(e,t,n){var r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}e.create=t;function n(e){var t=e;return V.defined(t)&&V.typedArray(t.diagnostics,y.is)&&(t.only===void 0||V.typedArray(t.only,V.string))&&(t.triggerKind===void 0||t.triggerKind===L.Invoked||t.triggerKind===L.Automatic)}e.is=n})(xe||(t.CodeActionContext=xe={}));var R;(function(e){function t(e,t,n){var r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):b.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}e.create=t;function n(e){var t=e;return t&&V.string(t.title)&&(t.diagnostics===void 0||V.typedArray(t.diagnostics,y.is))&&(t.kind===void 0||V.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||b.is(t.command))&&(t.isPreferred===void 0||V.boolean(t.isPreferred))&&(t.edit===void 0||k.is(t.edit))}e.is=n})(R||(t.CodeAction=R={}));var Se;(function(e){function t(e,t){var n={range:e};return V.defined(t)&&(n.data=t),n}e.create=t;function n(e){var t=e;return V.defined(t)&&s.is(t.range)&&(V.undefined(t.command)||b.is(t.command))}e.is=n})(Se||(t.CodeLens=Se={}));var Ce;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&V.uinteger(t.tabSize)&&V.boolean(t.insertSpaces)}e.is=n})(Ce||(t.FormattingOptions=Ce={}));var we;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){var t=e;return V.defined(t)&&s.is(t.range)&&(V.undefined(t.target)||V.string(t.target))}e.is=n})(we||(t.DocumentLink=we={}));var Te;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){var n=t;return V.objectLiteral(n)&&s.is(n.range)&&(n.parent===void 0||e.is(n.parent))}e.is=n})(Te||(t.SelectionRange=Te={}));var Ee;(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(Ee||(t.SemanticTokenTypes=Ee={}));var z;(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(z||(t.SemanticTokenModifiers=z={}));var De;(function(e){function t(e){var t=e;return V.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}e.is=t})(De||(t.SemanticTokens=De={}));var Oe;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){var t=e;return t!=null&&s.is(t.range)&&V.string(t.text)}e.is=n})(Oe||(t.InlineValueText=Oe={}));var ke;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){var t=e;return t!=null&&s.is(t.range)&&V.boolean(t.caseSensitiveLookup)&&(V.string(t.variableName)||t.variableName===void 0)}e.is=n})(ke||(t.InlineValueVariableLookup=ke={}));var Ae;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){var t=e;return t!=null&&s.is(t.range)&&(V.string(t.expression)||t.expression===void 0)}e.is=n})(Ae||(t.InlineValueEvaluatableExpression=Ae={}));var je;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){var t=e;return V.defined(t)&&s.is(e.stoppedLocation)}e.is=n})(je||(t.InlineValueContext=je={}));var Me;(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(Me||(t.InlayHintKind=Me={}));var Ne;(function(e){function t(e){return{value:e}}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&(t.tooltip===void 0||V.string(t.tooltip)||ie.is(t.tooltip))&&(t.location===void 0||c.is(t.location))&&(t.command===void 0||b.is(t.command))}e.is=n})(Ne||(t.InlayHintLabelPart=Ne={}));var Pe;(function(e){function t(e,t,n){var r={position:e,label:t};return n!==void 0&&(r.kind=n),r}e.create=t;function n(e){var t=e;return V.objectLiteral(t)&&o.is(t.position)&&(V.string(t.label)||V.typedArray(t.label,Ne.is))&&(t.kind===void 0||Me.is(t.kind))&&t.textEdits===void 0||V.typedArray(t.textEdits,x.is)&&(t.tooltip===void 0||V.string(t.tooltip)||ie.is(t.tooltip))&&(t.paddingLeft===void 0||V.boolean(t.paddingLeft))&&(t.paddingRight===void 0||V.boolean(t.paddingRight))}e.is=n})(Pe||(t.InlayHint=Pe={}));var B;(function(e){function t(e){return{kind:`snippet`,value:e}}e.createSnippet=t})(B||(t.StringValue=B={}));var Fe;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(Fe||(t.InlineCompletionItem=Fe={}));var Ie;(function(e){function t(e){return{items:e}}e.create=t})(Ie||(t.InlineCompletionList=Ie={}));var Le;(function(e){e.Invoked=0,e.Automatic=1})(Le||(t.InlineCompletionTriggerKind=Le={}));var Re;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(Re||(t.SelectedCompletionInfo=Re={}));var ze;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(ze||(t.InlineCompletionContext=ze={}));var Be;(function(e){function t(e){var t=e;return V.objectLiteral(t)&&r.is(t.uri)&&V.string(t.name)}e.is=t})(Be||(t.WorkspaceFolder=Be={})),t.EOL=[`
`,`\r
`,`\r`];var Ve;(function(e){function t(e,t,n,r){return new He(e,t,n,r)}e.create=t;function n(e){var t=e;return!!(V.defined(t)&&V.string(t.uri)&&(V.undefined(t.languageId)||V.string(t.languageId))&&V.uinteger(t.lineCount)&&V.func(t.getText)&&V.func(t.positionAt)&&V.func(t.offsetAt))}e.is=n;function r(e,t){for(var n=e.getText(),r=i(t,function(e,t){var n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length,o=r.length-1;o>=0;o--){var s=r[o],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=a)n=n.substring(0,c)+s.newText+n.substring(l,n.length);else throw Error(`Overlapping edit`);a=c}return n}e.applyEdits=r;function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);for(var o=0,s=0,c=0;o<r.length&&s<a.length;)t(r[o],a[s])<=0?e[c++]=r[o++]:e[c++]=a[s++];for(;o<r.length;)e[c++]=r[o++];for(;s<a.length;)e[c++]=a[s++];return e}})(Ve||(t.TextDocument=Ve={}));var He=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,`uri`,{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`languageId`,{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`version`,{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&=(e.push(r),!1);var i=t.charAt(r);n=i===`\r`||i===`
`,i===`\r`&&r+1<t.length&&t.charAt(r+1)===`
`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return o.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var a=n-1;return o.create(a,e-t[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,`lineCount`,{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),V;(function(e){var t=Object.prototype.toString;function n(e){return e!==void 0}e.defined=n;function r(e){return e===void 0}e.undefined=r;function i(e){return e===!0||e===!1}e.boolean=i;function a(e){return t.call(e)===`[object String]`}e.string=a;function o(e){return t.call(e)===`[object Number]`}e.number=o;function s(e,n,r){return t.call(e)===`[object Number]`&&n<=e&&e<=r}e.numberRange=s;function c(e){return t.call(e)===`[object Number]`&&-2147483648<=e&&e<=2147483647}e.integer=c;function l(e){return t.call(e)===`[object Number]`&&0<=e&&e<=2147483647}e.uinteger=l;function u(e){return t.call(e)===`[object Function]`}e.func=u;function d(e){return typeof e==`object`&&!!e}e.objectLiteral=d;function f(e,t){return Array.isArray(e)&&e.every(t)}e.typedArray=f})(V||={})})})),gX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;let t=pX();var n;(function(e){e.clientToServer=`clientToServer`,e.serverToClient=`serverToClient`,e.both=`both`})(n||(e.MessageDirection=n={})),e.RegistrationType=class{constructor(e){this.method=e}},e.ProtocolRequestType0=class extends t.RequestType0{constructor(e){super(e)}},e.ProtocolRequestType=class extends t.RequestType{constructor(e){super(e,t.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends t.NotificationType0{constructor(e){super(e)}},e.ProtocolNotificationType=class extends t.NotificationType{constructor(e){super(e,t.ParameterStructures.byName)}}})),_X=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}e.string=n;function r(e){return typeof e==`number`||e instanceof Number}e.number=r;function i(e){return e instanceof Error}e.error=i;function a(e){return typeof e==`function`}e.func=a;function o(e){return Array.isArray(e)}e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}e.stringArray=s;function c(e,t){return Array.isArray(e)&&e.every(t)}e.typedArray=c;function l(e){return typeof e==`object`&&!!e}e.objectLiteral=l})),vX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ImplementationRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ImplementationRequest=n={}))})),yX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeDefinitionRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeDefinitionRequest=n={}))})),bX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;let t=gX();var n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))})),xX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ConfigurationRequest=void 0;let t=gX();var n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ConfigurationRequest=n={}))})),SX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.ColorPresentationRequest=r={}))})),CX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.FoldingRangeRefreshRequest=r={}))})),wX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DeclarationRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DeclarationRequest=n={}))})),TX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SelectionRangeRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.SelectionRangeRequest=n={}))})),EX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;let t=pX(),n=gX();var r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))})),DX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))})),OX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;let t=gX();var n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(s||(e.SemanticTokensRefreshRequest=s={}))})),kX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ShowDocumentRequest=void 0;let t=gX();var n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ShowDocumentRequest=n={}))})),AX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LinkedEditingRangeRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.LinkedEditingRangeRequest=n={}))})),jX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;let t=gX();var n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(s||(e.DidDeleteFilesNotification=s={}));var c;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(c||(e.WillDeleteFilesRequest=c={}))})),MX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;let t=gX();var n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.MonikerRequest=i={}))})),NX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))})),PX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.InlineValueRefreshRequest=r={}))})),FX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(i||(e.InlayHintRefreshRequest=i={}))})),IX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;let t=pX(),n=_X(),r=gX();var i;(function(e){function t(e){let t=e;return t&&n.boolean(t.retriggerRequest)}e.is=t})(i||(e.DiagnosticServerCancellationData=i={}));var a;(function(e){e.Full=`full`,e.Unchanged=`unchanged`})(a||(e.DocumentDiagnosticReportKind=a={}));var o;(function(e){e.method=`textDocument/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var s;(function(e){e.method=`workspace/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(s||(e.WorkspaceDiagnosticRequest=s={}));var c;(function(e){e.method=`workspace/diagnostic/refresh`,e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType0(e.method)})(c||(e.DiagnosticRefreshRequest=c={}))})),LX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;let t=hX(),n=_X(),r=gX();var i;(function(e){e.Markup=1,e.Code=2;function t(e){return e===1||e===2}e.is=t})(i||(e.NotebookCellKind=i={}));var a;(function(e){function r(e,t){let n={executionOrder:e};return(t===!0||t===!1)&&(n.success=t),n}e.create=r;function i(e){let r=e;return n.objectLiteral(r)&&t.uinteger.is(r.executionOrder)&&(r.success===void 0||n.boolean(r.success))}e.is=i;function a(e,t){return e===t?!0:e==null||t==null?!1:e.executionOrder===t.executionOrder&&e.success===t.success}e.equals=a})(a||(e.ExecutionSummary=a={}));var o;(function(e){function r(e,t){return{kind:e,document:t}}e.create=r;function o(e){let r=e;return n.objectLiteral(r)&&i.is(r.kind)&&t.DocumentUri.is(r.document)&&(r.metadata===void 0||n.objectLiteral(r.metadata))}e.is=o;function s(e,t){let n=new Set;return e.document!==t.document&&n.add(`document`),e.kind!==t.kind&&n.add(`kind`),e.executionSummary!==t.executionSummary&&n.add(`executionSummary`),(e.metadata!==void 0||t.metadata!==void 0)&&!c(e.metadata,t.metadata)&&n.add(`metadata`),(e.executionSummary!==void 0||t.executionSummary!==void 0)&&!a.equals(e.executionSummary,t.executionSummary)&&n.add(`executionSummary`),n}e.diff=s;function c(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;let r=Array.isArray(e),i=Array.isArray(t);if(r!==i)return!1;if(r&&i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1}if(n.objectLiteral(e)&&n.objectLiteral(t)){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length||(n.sort(),r.sort(),!c(n,r)))return!1;for(let r=0;r<n.length;r++){let i=n[r];if(!c(e[i],t[i]))return!1}}return!0}})(o||(e.NotebookCell=o={}));var s;(function(e){function r(e,t,n,r){return{uri:e,notebookType:t,version:n,cells:r}}e.create=r;function i(e){let r=e;return n.objectLiteral(r)&&n.string(r.uri)&&t.integer.is(r.version)&&n.typedArray(r.cells,o.is)}e.is=i})(s||(e.NotebookDocument=s={}));var c;(function(e){e.method=`notebookDocument/sync`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.RegistrationType(e.method)})(c||(e.NotebookDocumentSyncRegistrationType=c={}));var l;(function(e){e.method=`notebookDocument/didOpen`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method),e.registrationMethod=c.method})(l||(e.DidOpenNotebookDocumentNotification=l={}));var u;(function(e){function r(e){let r=e;return n.objectLiteral(r)&&t.uinteger.is(r.start)&&t.uinteger.is(r.deleteCount)&&(r.cells===void 0||n.typedArray(r.cells,o.is))}e.is=r;function i(e,t,n){let r={start:e,deleteCount:t};return n!==void 0&&(r.cells=n),r}e.create=i})(u||(e.NotebookCellArrayChange=u={}));var d;(function(e){e.method=`notebookDocument/didChange`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method),e.registrationMethod=c.method})(d||(e.DidChangeNotebookDocumentNotification=d={}));var f;(function(e){e.method=`notebookDocument/didSave`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method),e.registrationMethod=c.method})(f||(e.DidSaveNotebookDocumentNotification=f={}));var p;(function(e){e.method=`notebookDocument/didClose`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method),e.registrationMethod=c.method})(p||(e.DidCloseNotebookDocumentNotification=p={}))})),RX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.InlineCompletionRequest=void 0;let t=gX();var n;(function(e){e.method=`textDocument/inlineCompletion`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineCompletionRequest=n={}))})),zX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;let t=gX(),n=hX(),r=_X(),i=vX();Object.defineProperty(e,`ImplementationRequest`,{enumerable:!0,get:function(){return i.ImplementationRequest}});let a=yX();Object.defineProperty(e,`TypeDefinitionRequest`,{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});let o=bX();Object.defineProperty(e,`WorkspaceFoldersRequest`,{enumerable:!0,get:function(){return o.WorkspaceFoldersRequest}}),Object.defineProperty(e,`DidChangeWorkspaceFoldersNotification`,{enumerable:!0,get:function(){return o.DidChangeWorkspaceFoldersNotification}});let s=xX();Object.defineProperty(e,`ConfigurationRequest`,{enumerable:!0,get:function(){return s.ConfigurationRequest}});let c=SX();Object.defineProperty(e,`DocumentColorRequest`,{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(e,`ColorPresentationRequest`,{enumerable:!0,get:function(){return c.ColorPresentationRequest}});let l=CX();Object.defineProperty(e,`FoldingRangeRequest`,{enumerable:!0,get:function(){return l.FoldingRangeRequest}}),Object.defineProperty(e,`FoldingRangeRefreshRequest`,{enumerable:!0,get:function(){return l.FoldingRangeRefreshRequest}});let u=wX();Object.defineProperty(e,`DeclarationRequest`,{enumerable:!0,get:function(){return u.DeclarationRequest}});let d=TX();Object.defineProperty(e,`SelectionRangeRequest`,{enumerable:!0,get:function(){return d.SelectionRangeRequest}});let f=EX();Object.defineProperty(e,`WorkDoneProgress`,{enumerable:!0,get:function(){return f.WorkDoneProgress}}),Object.defineProperty(e,`WorkDoneProgressCreateRequest`,{enumerable:!0,get:function(){return f.WorkDoneProgressCreateRequest}}),Object.defineProperty(e,`WorkDoneProgressCancelNotification`,{enumerable:!0,get:function(){return f.WorkDoneProgressCancelNotification}});let p=DX();Object.defineProperty(e,`CallHierarchyIncomingCallsRequest`,{enumerable:!0,get:function(){return p.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(e,`CallHierarchyOutgoingCallsRequest`,{enumerable:!0,get:function(){return p.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(e,`CallHierarchyPrepareRequest`,{enumerable:!0,get:function(){return p.CallHierarchyPrepareRequest}});let m=OX();Object.defineProperty(e,`TokenFormat`,{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(e,`SemanticTokensRequest`,{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(e,`SemanticTokensDeltaRequest`,{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(e,`SemanticTokensRangeRequest`,{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(e,`SemanticTokensRefreshRequest`,{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(e,`SemanticTokensRegistrationType`,{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});let h=kX();Object.defineProperty(e,`ShowDocumentRequest`,{enumerable:!0,get:function(){return h.ShowDocumentRequest}});let g=AX();Object.defineProperty(e,`LinkedEditingRangeRequest`,{enumerable:!0,get:function(){return g.LinkedEditingRangeRequest}});let _=jX();Object.defineProperty(e,`FileOperationPatternKind`,{enumerable:!0,get:function(){return _.FileOperationPatternKind}}),Object.defineProperty(e,`DidCreateFilesNotification`,{enumerable:!0,get:function(){return _.DidCreateFilesNotification}}),Object.defineProperty(e,`WillCreateFilesRequest`,{enumerable:!0,get:function(){return _.WillCreateFilesRequest}}),Object.defineProperty(e,`DidRenameFilesNotification`,{enumerable:!0,get:function(){return _.DidRenameFilesNotification}}),Object.defineProperty(e,`WillRenameFilesRequest`,{enumerable:!0,get:function(){return _.WillRenameFilesRequest}}),Object.defineProperty(e,`DidDeleteFilesNotification`,{enumerable:!0,get:function(){return _.DidDeleteFilesNotification}}),Object.defineProperty(e,`WillDeleteFilesRequest`,{enumerable:!0,get:function(){return _.WillDeleteFilesRequest}});let v=MX();Object.defineProperty(e,`UniquenessLevel`,{enumerable:!0,get:function(){return v.UniquenessLevel}}),Object.defineProperty(e,`MonikerKind`,{enumerable:!0,get:function(){return v.MonikerKind}}),Object.defineProperty(e,`MonikerRequest`,{enumerable:!0,get:function(){return v.MonikerRequest}});let y=NX();Object.defineProperty(e,`TypeHierarchyPrepareRequest`,{enumerable:!0,get:function(){return y.TypeHierarchyPrepareRequest}}),Object.defineProperty(e,`TypeHierarchySubtypesRequest`,{enumerable:!0,get:function(){return y.TypeHierarchySubtypesRequest}}),Object.defineProperty(e,`TypeHierarchySupertypesRequest`,{enumerable:!0,get:function(){return y.TypeHierarchySupertypesRequest}});let b=PX();Object.defineProperty(e,`InlineValueRequest`,{enumerable:!0,get:function(){return b.InlineValueRequest}}),Object.defineProperty(e,`InlineValueRefreshRequest`,{enumerable:!0,get:function(){return b.InlineValueRefreshRequest}});let x=FX();Object.defineProperty(e,`InlayHintRequest`,{enumerable:!0,get:function(){return x.InlayHintRequest}}),Object.defineProperty(e,`InlayHintResolveRequest`,{enumerable:!0,get:function(){return x.InlayHintResolveRequest}}),Object.defineProperty(e,`InlayHintRefreshRequest`,{enumerable:!0,get:function(){return x.InlayHintRefreshRequest}});let S=IX();Object.defineProperty(e,`DiagnosticServerCancellationData`,{enumerable:!0,get:function(){return S.DiagnosticServerCancellationData}}),Object.defineProperty(e,`DocumentDiagnosticReportKind`,{enumerable:!0,get:function(){return S.DocumentDiagnosticReportKind}}),Object.defineProperty(e,`DocumentDiagnosticRequest`,{enumerable:!0,get:function(){return S.DocumentDiagnosticRequest}}),Object.defineProperty(e,`WorkspaceDiagnosticRequest`,{enumerable:!0,get:function(){return S.WorkspaceDiagnosticRequest}}),Object.defineProperty(e,`DiagnosticRefreshRequest`,{enumerable:!0,get:function(){return S.DiagnosticRefreshRequest}});let C=LX();Object.defineProperty(e,`NotebookCellKind`,{enumerable:!0,get:function(){return C.NotebookCellKind}}),Object.defineProperty(e,`ExecutionSummary`,{enumerable:!0,get:function(){return C.ExecutionSummary}}),Object.defineProperty(e,`NotebookCell`,{enumerable:!0,get:function(){return C.NotebookCell}}),Object.defineProperty(e,`NotebookDocument`,{enumerable:!0,get:function(){return C.NotebookDocument}}),Object.defineProperty(e,`NotebookDocumentSyncRegistrationType`,{enumerable:!0,get:function(){return C.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(e,`DidOpenNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidOpenNotebookDocumentNotification}}),Object.defineProperty(e,`NotebookCellArrayChange`,{enumerable:!0,get:function(){return C.NotebookCellArrayChange}}),Object.defineProperty(e,`DidChangeNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidChangeNotebookDocumentNotification}}),Object.defineProperty(e,`DidSaveNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidSaveNotebookDocumentNotification}}),Object.defineProperty(e,`DidCloseNotebookDocumentNotification`,{enumerable:!0,get:function(){return C.DidCloseNotebookDocumentNotification}});let w=RX();Object.defineProperty(e,`InlineCompletionRequest`,{enumerable:!0,get:function(){return w.InlineCompletionRequest}});var T;(function(e){function t(e){let t=e;return r.string(t)||r.string(t.language)||r.string(t.scheme)||r.string(t.pattern)}e.is=t})(T||(e.TextDocumentFilter=T={}));var E;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(r.string(t.notebookType)||r.string(t.scheme)||r.string(t.pattern))}e.is=t})(E||(e.NotebookDocumentFilter=E={}));var D;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(r.string(t.notebook)||E.is(t.notebook))&&(t.language===void 0||r.string(t.language))}e.is=t})(D||(e.NotebookCellTextDocumentFilter=D={}));var O;(function(e){function t(e){if(!Array.isArray(e))return!1;for(let t of e)if(!r.string(t)&&!T.is(t)&&!D.is(t))return!1;return!0}e.is=t})(O||(e.DocumentSelector=O={}));var k;(function(e){e.method=`client/registerCapability`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(k||(e.RegistrationRequest=k={}));var A;(function(e){e.method=`client/unregisterCapability`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(A||(e.UnregistrationRequest=A={}));var j;(function(e){e.Create=`create`,e.Rename=`rename`,e.Delete=`delete`})(j||(e.ResourceOperationKind=j={}));var ee;(function(e){e.Abort=`abort`,e.Transactional=`transactional`,e.TextOnlyTransactional=`textOnlyTransactional`,e.Undo=`undo`})(ee||(e.FailureHandlingKind=ee={}));var te;(function(e){e.UTF8=`utf-8`,e.UTF16=`utf-16`,e.UTF32=`utf-32`})(te||(e.PositionEncodingKind=te={}));var ne;(function(e){function t(e){let t=e;return t&&r.string(t.id)&&t.id.length>0}e.hasId=t})(ne||(e.StaticRegistrationOptions=ne={}));var re;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||O.is(t.documentSelector))}e.is=t})(re||(e.TextDocumentRegistrationOptions=re={}));var M;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(t.workDoneProgress===void 0||r.boolean(t.workDoneProgress))}e.is=t;function n(e){let t=e;return t&&r.boolean(t.workDoneProgress)}e.hasWorkDoneProgress=n})(M||(e.WorkDoneProgressOptions=M={}));var ie;(function(e){e.method=`initialize`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ie||(e.InitializeRequest=ie={}));var ae;(function(e){e.unknownProtocolVersion=1})(ae||(e.InitializeErrorCodes=ae={}));var N;(function(e){e.method=`initialized`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(N||(e.InitializedNotification=N={}));var oe;(function(e){e.method=`shutdown`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType0(e.method)})(oe||(e.ShutdownRequest=oe={}));var se;(function(e){e.method=`exit`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType0(e.method)})(se||(e.ExitNotification=se={}));var P;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(P||(e.DidChangeConfigurationNotification=P={}));var ce;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(ce||(e.MessageType=ce={}));var le;(function(e){e.method=`window/showMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(le||(e.ShowMessageNotification=le={}));var ue;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(ue||(e.ShowMessageRequest=ue={}));var de;(function(e){e.method=`window/logMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(de||(e.LogMessageNotification=de={}));var fe;(function(e){e.method=`telemetry/event`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(fe||(e.TelemetryEventNotification=fe={}));var pe;(function(e){e.None=0,e.Full=1,e.Incremental=2})(pe||(e.TextDocumentSyncKind=pe={}));var me;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(me||(e.DidOpenTextDocumentNotification=me={}));var he;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}e.isFull=n})(he||(e.TextDocumentContentChangeEvent=he={}));var F;(function(e){e.method=`textDocument/didChange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(F||(e.DidChangeTextDocumentNotification=F={}));var ge;(function(e){e.method=`textDocument/didClose`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ge||(e.DidCloseTextDocumentNotification=ge={}));var I;(function(e){e.method=`textDocument/didSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(I||(e.DidSaveTextDocumentNotification=I={}));var _e;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(_e||(e.TextDocumentSaveReason=_e={}));var ve;(function(e){e.method=`textDocument/willSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ve||(e.WillSaveTextDocumentNotification=ve={}));var ye;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ye||(e.WillSaveTextDocumentWaitUntilRequest=ye={}));var be;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(be||(e.DidChangeWatchedFilesNotification=be={}));var L;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(L||(e.FileChangeType=L={}));var xe;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(n.URI.is(t.baseUri)||n.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)}e.is=t})(xe||(e.RelativePattern=xe={}));var R;(function(e){e.Create=1,e.Change=2,e.Delete=4})(R||(e.WatchKind=R={}));var Se;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(Se||(e.PublishDiagnosticsNotification=Se={}));var Ce;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Ce||(e.CompletionTriggerKind=Ce={}));var we;(function(e){e.method=`textDocument/completion`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(we||(e.CompletionRequest=we={}));var Te;(function(e){e.method=`completionItem/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Te||(e.CompletionResolveRequest=Te={}));var Ee;(function(e){e.method=`textDocument/hover`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ee||(e.HoverRequest=Ee={}));var z;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(z||(e.SignatureHelpTriggerKind=z={}));var De;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(De||(e.SignatureHelpRequest=De={}));var Oe;(function(e){e.method=`textDocument/definition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Oe||(e.DefinitionRequest=Oe={}));var ke;(function(e){e.method=`textDocument/references`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ke||(e.ReferencesRequest=ke={}));var Ae;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ae||(e.DocumentHighlightRequest=Ae={}));var je;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(je||(e.DocumentSymbolRequest=je={}));var Me;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Me||(e.CodeActionRequest=Me={}));var Ne;(function(e){e.method=`codeAction/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ne||(e.CodeActionResolveRequest=Ne={}));var Pe;(function(e){e.method=`workspace/symbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Pe||(e.WorkspaceSymbolRequest=Pe={}));var B;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(B||(e.WorkspaceSymbolResolveRequest=B={}));var Fe;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Fe||(e.CodeLensRequest=Fe={}));var Ie;(function(e){e.method=`codeLens/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ie||(e.CodeLensResolveRequest=Ie={}));var Le;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(Le||(e.CodeLensRefreshRequest=Le={}));var Re;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Re||(e.DocumentLinkRequest=Re={}));var ze;(function(e){e.method=`documentLink/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ze||(e.DocumentLinkResolveRequest=ze={}));var Be;(function(e){e.method=`textDocument/formatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Be||(e.DocumentFormattingRequest=Be={}));var Ve;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ve||(e.DocumentRangeFormattingRequest=Ve={}));var He;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(He||(e.DocumentRangesFormattingRequest=He={}));var V;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(V||(e.DocumentOnTypeFormattingRequest=V={}));var Ue;(function(e){e.Identifier=1})(Ue||(e.PrepareSupportDefaultBehavior=Ue={}));var We;(function(e){e.method=`textDocument/rename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(We||(e.RenameRequest=We={}));var Ge;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ge||(e.PrepareRenameRequest=Ge={}));var Ke;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ke||(e.ExecuteCommandRequest=Ke={}));var qe;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(`workspace/applyEdit`)})(qe||(e.ApplyWorkspaceEditRequest=qe={}))})),BX=F((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createProtocolConnection=void 0;let t=pX();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}e.createProtocolConnection=n})),VX=F((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(pX(),e),n(hX(),e),n(gX(),e),n(zX(),e);var r=BX();Object.defineProperty(e,`createProtocolConnection`,{enumerable:!0,get:function(){return r.createProtocolConnection}});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))})),HX=F((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.createProtocolConnection=void 0;let r=mX();n(mX(),e),n(VX(),e);function i(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)}e.createProtocolConnection=i})),UX=ZY(),WX=HX();const GX=le(import.meta.url);function KX(e,t){let n=a.isAbsolute(e)?e:a.resolve(t,e);if(!a.isAbsolute(e)&&!a.normalize(n).startsWith(t))return{isValid:!1,error:`LSP server path escapes base directory: ${e}`};let r;try{r=m(n)}catch(e){let t=e;return t.code===`ENOENT`?{isValid:!1,error:`LSP server binary not found: ${n}`}:t.code===`ELOOP`?{isValid:!1,error:`Symlink loop detected in LSP server path: ${n}`}:{isValid:!1,error:`Cannot resolve LSP server path: ${n}`}}try{if(!h(r).isFile())return{isValid:!1,error:`LSP server path is not a file: ${r}`}}catch{return{isValid:!1,error:`Cannot stat LSP server binary: ${r}`}}return{isValid:!0,resolvedPath:r}}let qX=null;async function JX(e){if(qX!==null)return qX;let t=[];process.env.OCTOCODE_LSP_CONFIG&&t.push(process.env.OCTOCODE_LSP_CONFIG),e&&t.push(a.join(e,`.octocode`,`lsp-servers.json`)),t.push(a.join(y.homedir(),`.octocode`,`lsp-servers.json`));for(let e of t)try{let t=await p.readFile(e,`utf-8`),n=JSON.parse(t);if(n.languageServers)return qX=n.languageServers,qX}catch{}return qX={},qX}const YX={".ts":{command:`typescript-language-server`,args:[`--stdio`],languageId:`typescript`,envVar:`OCTOCODE_TS_SERVER_PATH`},".tsx":{command:`typescript-language-server`,args:[`--stdio`],languageId:`typescriptreact`,envVar:`OCTOCODE_TS_SERVER_PATH`},".js":{command:`typescript-language-server`,args:[`--stdio`],languageId:`javascript`,envVar:`OCTOCODE_TS_SERVER_PATH`},".jsx":{command:`typescript-language-server`,args:[`--stdio`],languageId:`javascriptreact`,envVar:`OCTOCODE_TS_SERVER_PATH`},".mjs":{command:`typescript-language-server`,args:[`--stdio`],languageId:`javascript`,envVar:`OCTOCODE_TS_SERVER_PATH`},".cjs":{command:`typescript-language-server`,args:[`--stdio`],languageId:`javascript`,envVar:`OCTOCODE_TS_SERVER_PATH`},".py":{command:`pylsp`,args:[],languageId:`python`,envVar:`OCTOCODE_PYTHON_SERVER_PATH`},".pyi":{command:`pylsp`,args:[],languageId:`python`,envVar:`OCTOCODE_PYTHON_SERVER_PATH`},".go":{command:`gopls`,args:[`serve`],languageId:`go`,envVar:`OCTOCODE_GO_SERVER_PATH`},".rs":{command:`rust-analyzer`,args:[],languageId:`rust`,envVar:`OCTOCODE_RUST_SERVER_PATH`},".java":{command:`jdtls`,args:[],languageId:`java`,envVar:`OCTOCODE_JAVA_SERVER_PATH`},".kt":{command:`kotlin-language-server`,args:[],languageId:`kotlin`,envVar:`OCTOCODE_KOTLIN_SERVER_PATH`},".kts":{command:`kotlin-language-server`,args:[],languageId:`kotlin`,envVar:`OCTOCODE_KOTLIN_SERVER_PATH`},".c":{command:`clangd`,args:[],languageId:`c`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".h":{command:`clangd`,args:[],languageId:`c`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".cpp":{command:`clangd`,args:[],languageId:`cpp`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".hpp":{command:`clangd`,args:[],languageId:`cpp`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".cc":{command:`clangd`,args:[],languageId:`cpp`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".cxx":{command:`clangd`,args:[],languageId:`cpp`,envVar:`OCTOCODE_CLANGD_SERVER_PATH`},".cs":{command:`csharp-ls`,args:[],languageId:`csharp`,envVar:`OCTOCODE_CSHARP_SERVER_PATH`},".rb":{command:`solargraph`,args:[`stdio`],languageId:`ruby`,envVar:`OCTOCODE_RUBY_SERVER_PATH`},".php":{command:`intelephense`,args:[`--stdio`],languageId:`php`,envVar:`OCTOCODE_PHP_SERVER_PATH`},".swift":{command:`sourcekit-lsp`,args:[],languageId:`swift`,envVar:`OCTOCODE_SWIFT_SERVER_PATH`},".dart":{command:`dart`,args:[`language-server`,`--client-id=octocode`],languageId:`dart`,envVar:`OCTOCODE_DART_SERVER_PATH`},".lua":{command:`lua-language-server`,args:[],languageId:`lua`,envVar:`OCTOCODE_LUA_SERVER_PATH`},".zig":{command:`zls`,args:[],languageId:`zig`,envVar:`OCTOCODE_ZIG_SERVER_PATH`},".ex":{command:`elixir-ls`,args:[],languageId:`elixir`,envVar:`OCTOCODE_ELIXIR_SERVER_PATH`},".exs":{command:`elixir-ls`,args:[],languageId:`elixir`,envVar:`OCTOCODE_ELIXIR_SERVER_PATH`},".scala":{command:`metals`,args:[],languageId:`scala`,envVar:`OCTOCODE_SCALA_SERVER_PATH`},".sc":{command:`metals`,args:[],languageId:`scala`,envVar:`OCTOCODE_SCALA_SERVER_PATH`},".hs":{command:`haskell-language-server-wrapper`,args:[`--lsp`],languageId:`haskell`,envVar:`OCTOCODE_HASKELL_SERVER_PATH`},".ml":{command:`ocamllsp`,args:[],languageId:`ocaml`,envVar:`OCTOCODE_OCAML_SERVER_PATH`},".mli":{command:`ocamllsp`,args:[],languageId:`ocaml`,envVar:`OCTOCODE_OCAML_SERVER_PATH`},".clj":{command:`clojure-lsp`,args:[],languageId:`clojure`,envVar:`OCTOCODE_CLOJURE_SERVER_PATH`},".cljs":{command:`clojure-lsp`,args:[],languageId:`clojure`,envVar:`OCTOCODE_CLOJURE_SERVER_PATH`},".cljc":{command:`clojure-lsp`,args:[],languageId:`clojure`,envVar:`OCTOCODE_CLOJURE_SERVER_PATH`},".vue":{command:`vue-language-server`,args:[`--stdio`],languageId:`vue`,envVar:`OCTOCODE_VUE_SERVER_PATH`},".svelte":{command:`svelteserver`,args:[`--stdio`],languageId:`svelte`,envVar:`OCTOCODE_SVELTE_SERVER_PATH`},".yaml":{command:`yaml-language-server`,args:[`--stdio`],languageId:`yaml`,envVar:`OCTOCODE_YAML_SERVER_PATH`},".yml":{command:`yaml-language-server`,args:[`--stdio`],languageId:`yaml`,envVar:`OCTOCODE_YAML_SERVER_PATH`},".toml":{command:`taplo`,args:[`lsp`,`stdio`],languageId:`toml`,envVar:`OCTOCODE_TOML_SERVER_PATH`},".json":{command:`vscode-json-language-server`,args:[`--stdio`],languageId:`json`,envVar:`OCTOCODE_JSON_SERVER_PATH`},".jsonc":{command:`vscode-json-language-server`,args:[`--stdio`],languageId:`jsonc`,envVar:`OCTOCODE_JSON_SERVER_PATH`},".html":{command:`vscode-html-language-server`,args:[`--stdio`],languageId:`html`,envVar:`OCTOCODE_HTML_SERVER_PATH`},".css":{command:`vscode-css-language-server`,args:[`--stdio`],languageId:`css`,envVar:`OCTOCODE_CSS_SERVER_PATH`},".scss":{command:`vscode-css-language-server`,args:[`--stdio`],languageId:`scss`,envVar:`OCTOCODE_CSS_SERVER_PATH`},".less":{command:`vscode-css-language-server`,args:[`--stdio`],languageId:`less`,envVar:`OCTOCODE_CSS_SERVER_PATH`},".sh":{command:`bash-language-server`,args:[`start`],languageId:`shellscript`,envVar:`OCTOCODE_BASH_SERVER_PATH`},".bash":{command:`bash-language-server`,args:[`start`],languageId:`shellscript`,envVar:`OCTOCODE_BASH_SERVER_PATH`},".zsh":{command:`bash-language-server`,args:[`start`],languageId:`shellscript`,envVar:`OCTOCODE_BASH_SERVER_PATH`},".sql":{command:`sql-language-server`,args:[`up`,`--method`,`stdio`],languageId:`sql`,envVar:`OCTOCODE_SQL_SERVER_PATH`},".graphql":{command:`graphql-lsp`,args:[`server`,`-m`,`stream`],languageId:`graphql`,envVar:`OCTOCODE_GRAPHQL_SERVER_PATH`},".gql":{command:`graphql-lsp`,args:[`server`,`-m`,`stream`],languageId:`graphql`,envVar:`OCTOCODE_GRAPHQL_SERVER_PATH`},".tf":{command:`terraform-ls`,args:[`serve`],languageId:`terraform`,envVar:`OCTOCODE_TERRAFORM_SERVER_PATH`}};function XX(e){if(process.env[e.envVar])return{command:process.env[e.envVar],args:e.args};if(e.command===`typescript-language-server`)try{let t=GX.resolve(`typescript-language-server/package.json`),n=GX(t),r=a.dirname(t),i=n.bin?.[`typescript-language-server`];if(!i||typeof i!=`string`)return console.debug(`Invalid bin entry in typescript-language-server package.json`),{command:e.command,args:e.args};let o=KX(a.join(r,i),r);return o.isValid?{command:process.execPath,args:[o.resolvedPath,...e.args]}:(console.error(`LSP server path validation failed: ${o.error}`),{command:e.command,args:e.args})}catch(e){console.debug(`Could not resolve bundled typescript-language-server:`,e)}return{command:e.command,args:e.args}}function ZX(e){return YX[a.extname(e).toLowerCase()]?.languageId??`plaintext`}async function QX(e,t){let n=a.extname(e).toLowerCase(),r=(await JX(t))[n];if(r)return{command:r.command,args:r.args??[],workspaceRoot:t,languageId:r.languageId};let i=YX[n];if(!i)return null;let{command:o,args:s}=XX(i);return{command:o,args:s,workspaceRoot:t,languageId:i.languageId}}function $X(e){switch(e){case WX.SymbolKind.Function:return`function`;case WX.SymbolKind.Method:return`method`;case WX.SymbolKind.Class:return`class`;case WX.SymbolKind.Interface:return`interface`;case WX.SymbolKind.Variable:return`variable`;case WX.SymbolKind.Constant:return`constant`;case WX.SymbolKind.Property:return`property`;case WX.SymbolKind.Enum:return`enum`;case WX.SymbolKind.Module:return`module`;case WX.SymbolKind.Namespace:return`namespace`;case WX.SymbolKind.TypeParameter:return`type`;default:return`unknown`}}function eZ(e){if(e.startsWith(`file://`))return e;let t=a.resolve(e);return NY.file(t).toString()}function tZ(e){return e.startsWith(`file://`)?NY.parse(e).fsPath:e}var nZ=class{process=null;connection=null;initialized=!1;openFiles=new Map;config;initializeResult=null;constructor(e){this.config=e}async start(){if(this.process)throw Error(`LSP client already started`);if(this.process=C(this.config.command,this.config.args??[],{cwd:this.config.workspaceRoot,stdio:[`pipe`,`pipe`,`pipe`],env:process.env}),!this.process.stdin||!this.process.stdout)throw Error(`Failed to create language server process pipes`);this.connection=(0,UX.createMessageConnection)(new UX.StreamMessageReader(this.process.stdout),new UX.StreamMessageWriter(this.process.stdin)),this.connection.listen(),this.process.on(`error`,e=>{console.error(`LSP process error:`,e)}),this.process.stderr?.on(`data`,e=>{console.debug(`LSP stderr:`,e.toString())}),await this.initialize()}async initialize(){if(!this.connection)throw Error(`Connection not established`);let e={processId:process.pid,rootUri:eZ(this.config.workspaceRoot),capabilities:{textDocument:{synchronization:{dynamicRegistration:!0,willSave:!1,willSaveWaitUntil:!1,didSave:!0},definition:{dynamicRegistration:!0,linkSupport:!0},references:{dynamicRegistration:!0},callHierarchy:{dynamicRegistration:!0},publishDiagnostics:{relatedInformation:!0}},workspace:{workspaceFolders:!0,configuration:!0}},workspaceFolders:[{uri:eZ(this.config.workspaceRoot),name:a.basename(this.config.workspaceRoot)}]};this.initializeResult=await this.connection.sendRequest(`initialize`,e),await this.connection.sendNotification(`initialized`,{}),this.initialized=!0}async openDocument(e){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);let t=eZ(e);if(this.openFiles.has(t))return;let n=await p.readFile(e,`utf-8`),r={textDocument:{uri:t,languageId:this.config.languageId??ZX(e),version:1,text:n}};await this.connection.sendNotification(`textDocument/didOpen`,r),this.openFiles.set(t,1)}async closeDocument(e){if(!this.connection||!this.initialized)return;let t=eZ(e);if(!this.openFiles.has(t))return;let n={textDocument:{uri:t}};await this.connection.sendNotification(`textDocument/didClose`,n),this.openFiles.delete(t)}async gotoDefinition(e,t){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);await this.openDocument(e);let n={textDocument:{uri:eZ(e)},position:{line:t.line,character:t.character}},r=await this.connection.sendRequest(`textDocument/definition`,n);return this.locationsToSnippets(r)}async findReferences(e,t,n=!0){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);await this.openDocument(e);let r={textDocument:{uri:eZ(e)},position:{line:t.line,character:t.character},context:{includeDeclaration:n}},i=await this.connection.sendRequest(`textDocument/references`,r);return this.locationsToSnippets(i)}async prepareCallHierarchy(e,t){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);await this.openDocument(e);let n={textDocument:{uri:eZ(e)},position:{line:t.line,character:t.character}},r=await this.connection.sendRequest(`textDocument/prepareCallHierarchy`,n);return!r||!Array.isArray(r)?[]:r.map(e=>this.convertCallHierarchyItem(e))}async getIncomingCalls(e){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);let t={item:this.toProtocolCallHierarchyItem(e)},n=await this.connection.sendRequest(`callHierarchy/incomingCalls`,t);return!n||!Array.isArray(n)?[]:n.map(e=>({from:this.convertCallHierarchyItem(e.from),fromRanges:e.fromRanges.map(e=>({start:{line:e.start.line,character:e.start.character},end:{line:e.end.line,character:e.end.character}}))}))}async getOutgoingCalls(e){if(!this.connection||!this.initialized)throw Error(`LSP client not initialized`);let t={item:this.toProtocolCallHierarchyItem(e)},n=await this.connection.sendRequest(`callHierarchy/outgoingCalls`,t);return!n||!Array.isArray(n)?[]:n.map(e=>({to:this.convertCallHierarchyItem(e.to),fromRanges:e.fromRanges.map(e=>({start:{line:e.start.line,character:e.start.character},end:{line:e.end.line,character:e.end.character}}))}))}async locationsToSnippets(e){if(!e)return[];let t=Array.isArray(e)?e:[e],n=[];for(let e of t){let t=`targetUri`in e?e.targetUri:e.uri,r=`targetRange`in e?e.targetRange:e.range,i=tZ(t),a=``;try{let e=(await p.readFile(i,`utf-8`)).split(/\r?\n/),t=r.start.line,n=r.end.line;a=e.slice(t,n+1).map((e,n)=>`${t+n+1}\t${e}`).join(`
`)}catch{a=`[Could not read file: ${i}]`}n.push({uri:i,range:{start:{line:r.start.line,character:r.start.character},end:{line:r.end.line,character:r.end.character}},content:a,displayRange:{startLine:r.start.line+1,endLine:r.end.line+1}})}return n}convertCallHierarchyItem(e){return{name:e.name,kind:$X(e.kind),uri:tZ(e.uri),range:{start:{line:e.range.start.line,character:e.range.start.character},end:{line:e.range.end.line,character:e.range.end.character}},selectionRange:{start:{line:e.selectionRange.start.line,character:e.selectionRange.start.character},end:{line:e.selectionRange.end.line,character:e.selectionRange.end.character}},displayRange:{startLine:e.range.start.line+1,endLine:e.range.end.line+1}}}toProtocolCallHierarchyItem(e){return{name:e.name,kind:WX.SymbolKind.Function,uri:eZ(e.uri),range:{start:{line:e.range.start.line,character:e.range.start.character},end:{line:e.range.end.line,character:e.range.end.character}},selectionRange:{start:{line:e.selectionRange.start.line,character:e.selectionRange.start.character},end:{line:e.selectionRange.end.line,character:e.selectionRange.end.character}}}}hasCapability(e){return this.initializeResult?.capabilities?!!this.initializeResult.capabilities[e]:!1}async stop(){if(this.connection)try{for(let e of Array.from(this.openFiles.keys())){let t=tZ(e);await this.closeDocument(t)}await this.connection.sendRequest(`shutdown`),await this.connection.sendNotification(`exit`)}catch{}finally{this.connection.dispose(),this.connection=null,this.process?.kill(),this.process=null,this.initialized=!1}}};const rZ=new Map;async function iZ(e,t){let n=await QX(t,e);if(!n)return null;let r=`${n.command}:${e}`,i=rZ.get(r);if(i)return i;i=new nZ(n);try{return await i.start(),rZ.set(r,i),i}catch(e){return console.error(`Failed to start LSP client:`,e),null}}async function aZ(e){let t=process.platform===`win32`,n=t?`where`:`which`;return new Promise(r=>{let i=C(n,[e],{stdio:`ignore`,shell:t}),a=setTimeout(()=>{i.kill(),r(!1)},5e3);i.on(`close`,e=>{clearTimeout(a),r(e===0)}),i.on(`error`,()=>{clearTimeout(a),r(!1)})})}async function oZ(e,t){let n=a.extname(e).toLowerCase(),r=(await JX(t))[n],i;if(r)i=r.command;else{let e=YX[n];if(!e)return!1;i=XX(e).command}if(i===process.execPath)return!0;if(a.isAbsolute(i))try{return await p.access(i),!0}catch{return!1}return aZ(i)}const sZ=q.LSP_GOTO_DEFINITION;function cZ(e){return e.registerTool(`lspGotoDefinition`,{description:DY,inputSchema:kY,annotations:{title:`Go To Definition`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await lZ(e),{toolName:sZ}))}async function lZ(e){try{let t=BJ({...e,path:e.uri},sZ);if(!t.isValid)return t.errorResult;let n=t.sanitizedPath,r;try{r=await P(n,`utf-8`)}catch(t){return bK(t,e,{toolName:sZ,extra:{uri:e.uri,resolvedPath:n},customHints:[`Could not read file: ${e.uri}`,`Verify the file exists and is accessible`]})}let i=new jY({lineSearchRadius:2}),a;try{a=i.resolvePositionFromContent(r,{symbolName:e.symbolName,lineHint:e.lineHint,orderHint:e.orderHint??0})}catch(t){if(t instanceof AY)return{status:`empty`,error:t.message,errorType:`symbol_not_found`,searchRadius:t.searchRadius,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(sZ,`empty`),`Symbol "${e.symbolName}" not found at or near line ${e.lineHint}`,`Searched lines ${Math.max(1,e.lineHint-t.searchRadius)} to ${e.lineHint+t.searchRadius}`,`Verify the exact symbol name (case-sensitive, no partial matches)`,`Adjust lineHint if the symbol moved due to code changes`]};throw t}let o=process.env.WORKSPACE_ROOT||process.cwd();if(await oZ(n))try{let t=await uZ(n,o,a.position,e,r);if(t)return t}catch(e){console.debug(`LSP lookup failed, using fallback:`,e)}return dZ(e,n,r,i,a)}catch(t){return bK(t,e,{toolName:sZ,extra:{uri:e.uri,symbolName:e.symbolName,lineHint:e.lineHint}})}}async function uZ(e,t,n,r,i){let a=await iZ(t,e);if(!a)return null;let o=await a.gotoDefinition(e,n);if(!o||o.length===0)return{status:`empty`,error:`No definition found by language server`,errorType:`symbol_not_found`,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(sZ,`empty`),`Language server could not find definition`,`Symbol may be a built-in or from external library`,`Try packageSearch to find library source code`]};let s=r.contextLines??5,c=[];for(let e of o)try{let t=(await P(e.uri,`utf-8`)).split(/\r?\n/),n=Math.max(0,e.range.start.line-s),r=Math.min(t.length-1,e.range.end.line+s),i=t.slice(n,r+1).map((t,r)=>{let i=n+r+1;return`${i>e.range.start.line&&i<=e.range.end.line+1?`>`:` `}${String(i).padStart(4,` `)}| ${t}`}).join(`
`);c.push({...e,content:i,displayRange:{startLine:n+1,endLine:r+1}})}catch{c.push(e)}return{status:`hasResults`,locations:c,resolvedPosition:n,searchRadius:2,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(sZ,`hasResults`),`Found ${o.length} definition(s) via Language Server`,o.length>1?`Multiple definitions - check overloads or re-exports`:void 0,`Use lspFindReferences to find all usages`,`Use lspCallHierarchy to trace call graph`].filter(Boolean)}}function dZ(e,t,n,r,i){let a=e.contextLines??5,o=r.extractContext(n,i.foundAtLine,a),s=fZ(o.content,o.startLine,i.foundAtLine);return{status:`hasResults`,locations:[{uri:t,range:{start:i.position,end:{line:i.position.line,character:i.position.character+e.symbolName.length}},content:s,displayRange:{startLine:o.startLine,endLine:o.endLine}}],resolvedPosition:i.position,searchRadius:2,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(sZ,`hasResults`),`Note: Using text-based resolution (language server not available)`,`Install typescript-language-server for semantic definition lookup`,i.foundAtLine===e.lineHint?void 0:`Symbol found at line ${i.foundAtLine} (hint was ${e.lineHint})`,`Use lspFindReferences to find all usages`].filter(Boolean)}}function fZ(e,t,n){let r=e.split(`
`),i=t+r.length-1,a=String(i).length;return r.map((e,r)=>{let i=t+r,o=String(i).padStart(a,` `);return`${i===n?`>`:` `}${o}| ${e}`}).join(`
`)}const pZ=bS[q.LSP_FIND_REFERENCES],mZ=BB.extend({uri:U().min(1).describe(NS.scope.uri),symbolName:U().min(1).max(255).describe(NS.scope.symbolName),lineHint:Jt().int().min(1).describe(NS.scope.lineHint),orderHint:Jt().int().min(0).optional().default(0).describe(NS.options.orderHint),includeDeclaration:Yt().optional().default(!0).describe(NS.options.includeDeclaration),contextLines:Jt().int().min(0).max(10).optional().default(2).describe(NS.options.contextLines),referencesPerPage:Jt().int().min(1).max(50).optional().default(20).describe(NS.pagination.referencesPerPage),page:Jt().int().min(1).optional().default(1).describe(NS.pagination.page)}),hZ=VB(q.LSP_FIND_REFERENCES,mZ,{maxQueries:5}),gZ=async()=>{let{exec:e}=await import(`child_process`),{promisify:t}=await import(`util`);return t(e)},_Z=q.LSP_FIND_REFERENCES;function vZ(e){return e.registerTool(`lspFindReferences`,{description:pZ,inputSchema:hZ,annotations:{title:`Find References`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await yZ(e),{toolName:_Z}))}async function yZ(e){try{let t=BJ({...e,path:e.uri},_Z);if(!t.isValid)return t.errorResult;let n=t.sanitizedPath;try{await ce(n)}catch(t){return bK(zb.fileAccessFailed(e.uri,t instanceof Error?t:void 0),e,{toolName:_Z,extra:{uri:e.uri,resolvedPath:n}})}let r;try{r=await P(n,`utf-8`)}catch(t){return bK(zb.fileReadFailed(e.uri,t instanceof Error?t:void 0),e,{toolName:_Z,extra:{uri:e.uri}})}let i=new jY({lineSearchRadius:2}),a;try{a=i.resolvePositionFromContent(r,{symbolName:e.symbolName,lineHint:e.lineHint,orderHint:e.orderHint??0})}catch(t){if(t instanceof AY)return{status:`empty`,error:t.message,errorType:`symbol_not_found`,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Symbol '${e.symbolName}' not found at or near line ${e.lineHint}`,`Searched +/-${t.searchRadius} lines from line ${e.lineHint}`,`Verify the exact symbol name (case-sensitive, no partial matches)`,`Use localGetFileContent to check the file content around that line`,`TIP: Use localSearchCode to find the correct line number first`]};throw t}let o=process.env.WORKSPACE_ROOT||CZ(n);if(await oZ(n))try{let t=await bZ(n,o,a.position,e);if(t)return t}catch(e){console.debug(`LSP reference lookup failed, using fallback:`,e)}return await SZ(n,o,e)}catch(t){return bK(t,e,{toolName:_Z,extra:{uri:e.uri,symbolName:e.symbolName}})}}async function bZ(e,t,n,r){let i=await iZ(t,e);if(!i)return null;let a=r.includeDeclaration??!0,o=await i.findReferences(e,n,a);if(!o||o.length===0)return{status:`empty`,totalReferences:0,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(_Z,`empty`),`Language server found no references`,`Symbol may be unused or only referenced dynamically`,`Try localSearchCode for text-based search as fallback`]};let s=r.contextLines??2,c=[];for(let i of o){let a=await xZ(i,t,s,e,n,r.symbolName);c.push(a)}let l=r.referencesPerPage??20,u=r.page??1,d=c.length,f=Math.ceil(d/l),p=(u-1)*l,m=Math.min(p+l,d),h=c.slice(p,m),g=new Set(h.map(e=>e.uri)),_=g.size>1,v={currentPage:u,totalPages:f,totalResults:d,hasMore:u<f,resultsPerPage:l},y=[..._K(_Z,`hasResults`),`Found ${d} reference(s) via Language Server`];return v.hasMore&&y.push(`Showing page ${u} of ${f}. Use page=${u+1} for more.`),_&&y.push(`References span ${g.size} files.`),{status:`hasResults`,locations:h,pagination:v,totalReferences:d,hasMultipleFiles:_,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:y}}async function xZ(e,t,n,r,i,o){let s=e.content,c=e.range.start.line+1,l=e.range.end.line+1,u=e.uri===r&&e.range.start.line===i.line&&e.range.start.character===i.character;if(n>0)try{let t=(await P(e.uri,`utf-8`)).split(/\r?\n/),r=Math.max(0,e.range.start.line-n),i=Math.min(t.length-1,e.range.end.line+n);s=t.slice(r,i+1).map((t,n)=>{let i=r+n+1;return`${i===e.range.start.line+1?`>`:` `}${String(i).padStart(4,` `)}| ${t}`}).join(`
`),c=r+1,l=i+1}catch{}return{uri:a.relative(t,e.uri)||e.uri,range:e.range,content:s,isDefinition:u,symbolKind:u?`function`:void 0,displayRange:{startLine:c,endLine:l}}}async function SZ(e,t,n){let r=await wZ(t,n.symbolName,e,n.contextLines??2),i=r;n.includeDeclaration||(i=r.filter(e=>!e.isDefinition));let a=n.referencesPerPage??20,o=n.page??1,s=i.length,c=Math.ceil(s/a),l=(o-1)*a,u=Math.min(l+a,s),d=i.slice(l,u);if(d.length===0)return{status:`empty`,totalReferences:0,researchGoal:n.researchGoal,reasoning:n.reasoning,hints:[..._K(_Z,`empty`),`No references found for '${n.symbolName}'`,`Note: Using text-based search (language server not available)`,`Install typescript-language-server for semantic reference finding`]};let f=new Set(d.map(e=>e.uri)).size>1,p={currentPage:o,totalPages:c,totalResults:s,hasMore:o<c,resultsPerPage:a},m=[..._K(_Z,`hasResults`),`Found ${s} reference(s) using text search`,`Note: Using text-based search (language server not available)`,`Install typescript-language-server for semantic reference finding`];return p.hasMore&&m.push(`Showing page ${o} of ${c}. Use page=${o+1} for more.`),{status:`hasResults`,locations:d,pagination:p,totalReferences:s,hasMultipleFiles:f,researchGoal:n.researchGoal,reasoning:n.reasoning,hints:m}}function CZ(e){let t=a.dirname(e),n=[`package.json`,`tsconfig.json`,`.git`,`Cargo.toml`,`go.mod`,`pyproject.toml`];for(let e=0;e<10;e++){for(let e of n)try{let n=a.join(t,e);return ve(`fs`).accessSync(n),t}catch{}let e=a.dirname(t);if(e===t)break;t=e}return a.dirname(e)}async function wZ(e,t,n,r){let i=[],o=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),s=[`--json`,`--line-number`,`--column`,`-w`,`--type-add`,`code:*.{ts,tsx,js,jsx,mjs,cjs,py,go,rs,java,c,cpp,h,hpp,cs,rb,php}`,`-t`,`code`,o,e];try{let{stdout:c}=await(await gZ())(`rg ${s.map(e=>`'${e}'`).join(` `)}`,{maxBuffer:10*1024*1024,timeout:3e4}),l=c.trim().split(`
`).filter(Boolean);for(let s of l)try{let c=JSON.parse(s);if(c.type===`match`){let s=c.data,l=s.path.text,u=s.line_number,d=s.lines.text.replace(/\n$/,``),f=RegExp(`\\b${o}\\b`,`g`),p;for(;(p=f.exec(d))!==null;){let o=p.index,s=l===n&&EZ(d,t),c={start:{line:u-1,character:o},end:{line:u-1,character:o+t.length}},f=d,m=u,h=u;if(r>0)try{let e=(await P(l,`utf-8`)).split(`
`),t=Math.max(0,u-1-r),n=Math.min(e.length,u+r);f=e.slice(t,n).join(`
`),m=t+1,h=n}catch{}let g=a.relative(e,l);i.push({uri:g,range:c,content:f,isDefinition:s,displayRange:{startLine:m,endLine:h}})}}}catch{}}catch(i){if(i.code!==1)return await TZ(e,t,n,r)}return i.sort((e,t)=>e.isDefinition&&!t.isDefinition?-1:!e.isDefinition&&t.isDefinition?1:e.uri===t.uri?e.range.start.line-t.range.start.line:e.uri.localeCompare(t.uri)),i}async function TZ(e,t,n,r){let i=[],o=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),s=[`ts`,`tsx`,`js`,`jsx`,`py`,`go`,`rs`,`java`,`c`,`cpp`,`h`].map(e=>`--include="*.${e}"`).join(` `);try{let{stdout:c}=await(await gZ())(`grep -rn -w ${s} '${o}' '${e}' 2>/dev/null || true`,{maxBuffer:10*1024*1024,timeout:3e4}),l=c.trim().split(`
`).filter(Boolean);for(let s of l){let c=s.indexOf(`:`);if(c===-1)continue;let l=s.substring(0,c),u=s.substring(c+1),d=u.indexOf(`:`);if(d===-1)continue;let f=parseInt(u.substring(0,d),10),p=u.substring(d+1);if(isNaN(f))continue;let m=RegExp(`\\b${o}\\b`,`g`),h;for(;(h=m.exec(p))!==null;){let o=h.index,s=l===n&&EZ(p,t),c={start:{line:f-1,character:o},end:{line:f-1,character:o+t.length}},u=p,d=f,m=f;if(r>0)try{let e=(await P(l,`utf-8`)).split(`
`),t=Math.max(0,f-1-r),n=Math.min(e.length,f+r);u=e.slice(t,n).join(`
`),d=t+1,m=n}catch{}let g=a.relative(e,l);i.push({uri:g,range:c,content:u,isDefinition:s,displayRange:{startLine:d,endLine:m}})}}}catch{}return i.sort((e,t)=>e.isDefinition&&!t.isDefinition?-1:!e.isDefinition&&t.isDefinition?1:e.uri===t.uri?e.range.start.line-t.range.start.line:e.uri.localeCompare(t.uri)),i}function EZ(e,t){let n=e.trim();return[RegExp(`^(export\\s+)?(const|let|var|function|class|interface|type|enum)\\s+${t}\\b`),RegExp(`^(export\\s+)?async\\s+function\\s+${t}\\b`),RegExp(`^(export\\s+)?default\\s+(function|class)\\s+${t}\\b`),RegExp(`^(public|private|protected|static|async|readonly)?\\s*${t}\\s*[(:=]`),RegExp(`^(def|class|async\\s+def)\\s+${t}\\b`),RegExp(`^${t}\\s*=`),RegExp(`^func\\s+(\\([^)]+\\)\\s+)?${t}\\b`),RegExp(`^(var|const|type)\\s+${t}\\b`),RegExp(`^(pub\\s+)?(fn|struct|enum|trait|type|const|static)\\s+${t}\\b`)].some(e=>e.test(n))}const DZ=bS[q.LSP_CALL_HIERARCHY],OZ=BB.extend({uri:U().min(1).describe(PS.scope.uri),symbolName:U().min(1).max(255).describe(PS.scope.symbolName),lineHint:Jt().int().min(1).describe(PS.scope.lineHint),orderHint:Jt().int().min(0).optional().default(0).describe(PS.options.orderHint),direction:nn([`incoming`,`outgoing`]).describe(PS.options.direction),depth:Jt().int().min(1).max(3).optional().default(1).describe(PS.options.depth),contextLines:Jt().int().min(0).max(10).optional().default(2).describe(PS.options.contextLines),callsPerPage:Jt().int().min(1).max(30).optional().default(15).describe(PS.pagination.callsPerPage),page:Jt().int().min(1).optional().default(1).describe(PS.pagination.page)}),kZ=VB(q.LSP_CALL_HIERARCHY,OZ,{maxQueries:3}),AZ=q.LSP_CALL_HIERARCHY;function jZ(e){return`${e.uri}:${e.range.start.line}:${e.name}`}function MZ(e){return e.registerTool(`lspCallHierarchy`,{description:DZ,inputSchema:kZ,annotations:{title:`Call Hierarchy`,readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},async e=>aK(e.queries||[],async e=>await NZ(e),{toolName:AZ}))}async function NZ(e){try{let t=BJ({path:e.uri,...e},AZ);if(!t.isValid)return t.errorResult;let n=t.sanitizedPath,r;try{r=await P(n,`utf-8`)}catch(t){return bK(zb.fileAccessFailed(e.uri,t instanceof Error?t:void 0),e,{toolName:AZ,extra:{path:e.uri}})}let i=new jY({lineSearchRadius:2}),a;try{a=i.resolvePositionFromContent(r,{symbolName:e.symbolName,lineHint:e.lineHint,orderHint:e.orderHint??0})}catch(t){if(t instanceof AY)return{status:`empty`,errorType:`symbol_not_found`,error:t.message,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(AZ,`empty`),`Symbol '${e.symbolName}' not found at line ${e.lineHint}`,`Verify the exact function name (case-sensitive)`,`Check the line number is correct`,`Use localSearchCode to find the function first`]};throw t}let o=process.env.WORKSPACE_ROOT||process.cwd();if(await oZ(n))try{let t=await PZ(n,o,a.position,e,r);if(t)return t}catch(e){console.debug(`LSP call hierarchy failed, using fallback:`,e)}return await LZ(e,n,r,a.foundAtLine,i)}catch(t){return bK(t,e,{toolName:AZ,extra:{uri:e.uri}})}}async function PZ(e,t,n,r,i){let a=await iZ(t,e);if(!a)return null;let o=await a.prepareCallHierarchy(e,n);if(!o||o.length===0)return{status:`empty`,error:`No callable symbol found at position`,errorType:`symbol_not_found`,direction:r.direction,depth:r.depth??1,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(AZ,`empty`),`Language server could not identify a callable symbol`,`Ensure the position is on a function/method name`,`Try adjusting lineHint to the exact function declaration line`]};let s=o[0],c=await BZ(s,i,r.contextLines??2),l=r.depth??1,u=new Set;if(u.add(jZ(s)),r.direction===`incoming`){let e=await FZ(a,s,l,u,r.contextLines??2);if(e.length===0)return{status:`empty`,item:c,direction:`incoming`,depth:l,incomingCalls:[],researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(AZ,`empty`),`No callers found for '${r.symbolName}' via Language Server`,`The function may not be called directly in the workspace`,`Check if it is called via alias or dynamic invocation`,`Try lspFindReferences for broader usage search`]};let{paginatedItems:t,pagination:n}=UZ(e,r.callsPerPage??15,r.page??1);return{status:`hasResults`,item:c,direction:`incoming`,depth:l,incomingCalls:t,pagination:n,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(AZ,`hasResults`),`Found ${e.length} caller(s) via Language Server (depth ${l})`,`Use lspGotoDefinition to navigate to each caller`]}}else{let e=await IZ(a,s,l,u,r.contextLines??2);if(e.length===0)return{status:`empty`,item:c,direction:`outgoing`,depth:l,outgoingCalls:[],researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(AZ,`empty`),`No callees found in '${r.symbolName}' via Language Server`,`The function may only contain primitive operations`,`Check if calls use dynamic invocation patterns`]};let{paginatedItems:t,pagination:n}=UZ(e,r.callsPerPage??15,r.page??1);return{status:`hasResults`,item:c,direction:`outgoing`,depth:l,outgoingCalls:t,pagination:n,researchGoal:r.researchGoal,reasoning:r.reasoning,hints:[..._K(AZ,`hasResults`),`Found ${e.length} callee(s) via Language Server (depth ${l})`,`Use lspGotoDefinition to navigate to each callee`]}}}async function FZ(e,t,n,r,i){if(n<=0||!e)return[];let a=await VZ(await e.getIncomingCalls(t),i);if(n===1)return a;let o=[...a];for(let t of a){let a=jZ(t.from);if(r.has(a))continue;r.add(a);let s=await FZ(e,t.from,n-1,r,i);o.push(...s)}return o}async function IZ(e,t,n,r,i){if(n<=0||!e)return[];let a=await HZ(await e.getOutgoingCalls(t),i);if(n===1)return a;let o=[...a];for(let t of a){let a=jZ(t.to);if(r.has(a))continue;r.add(a);let s=await IZ(e,t.to,n-1,r,i);o.push(...s)}return o}async function LZ(e,t,n,r,i){let a=n.split(/\r?\n/),o=JZ(e.symbolName,t,r,a,e.contextLines??2);return e.direction===`incoming`?await RZ(e,t,o,e.depth??1,e.callsPerPage??15,e.page??1,e.contextLines??2):await zZ(e,t,n,o,r,e.depth??1,e.callsPerPage??15,e.page??1,e.contextLines??2)}async function RZ(e,t,n,r,i,a,o){let s=process.cwd(),c=e.symbolName,l=`\\b${$Z(c)}\\s*\\(`,u=await my(`rg`),d=[];try{d=u.available?await WZ(s,l,t,o):await GZ(s,l,t,o)}catch(t){return{status:`error`,error:`Search failed: ${t instanceof Error?t.message:String(t)}`,item:n,direction:`incoming`,depth:r,researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Note: Using text-based search (language server not available)`,`Search for callers failed`,`Try using localSearchCode to find calls manually`,`Pattern: ${c}(`]}}let f=d.filter(e=>!(e.filePath===t&&e.lineNumber===n.displayRange?.startLine));if(f.length===0)return{status:`empty`,item:n,direction:`incoming`,depth:r,incomingCalls:[],researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(AZ,`empty`),`Note: Using text-based search (language server not available)`,`No callers found for '${c}'`,`The function may not be called directly`,`Check if it is called via alias or dynamic invocation`,`Install typescript-language-server for semantic call hierarchy`]};let p=f.length,m=Math.ceil(p/i),h=(a-1)*i,g=f.slice(h,h+i);return{status:`hasResults`,item:n,direction:`incoming`,depth:r,incomingCalls:await Promise.all(g.map(async e=>({from:await YZ(e,o),fromRanges:[{start:{line:e.lineNumber-1,character:e.column},end:{line:e.lineNumber-1,character:e.column+c.length}}]}))),pagination:{currentPage:a,totalPages:m,totalResults:p,hasMore:a<m,resultsPerPage:i},researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(AZ,`hasResults`),`Note: Using text-based search (language server not available)`,`Install typescript-language-server for semantic call hierarchy`]}}async function zZ(e,t,n,r,i,a,o,s,c){let l=XZ(n.split(/\r?\n/),i-1);if(!l)return{status:`empty`,item:r,direction:`outgoing`,depth:a,outgoingCalls:[],researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[`Note: Using text-based analysis (language server not available)`,`Could not extract function body`,`The function may have unusual syntax`,`Try using localGetFileContent to read the function manually`,`Install typescript-language-server for semantic call hierarchy`]};let u=/\b([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\(/g,d=new Map,f=new Set([`if`,`for`,`while`,`switch`,`catch`,`function`,`return`,`throw`,`new`,`typeof`,`instanceof`,`void`,`delete`,`await`,`async`,`class`,`extends`,`super`,`this`,`import`,`export`,`from`,`as`,`default`,`const`,`let`,`var`,`Array`,`Object`,`String`,`Number`,`Boolean`,`Symbol`,`BigInt`,`Math`,`Date`,`JSON`,`console`,`Promise`,`Error`,`RegExp`,`Map`,`Set`,`WeakMap`,`WeakSet`,`parseInt`,`parseFloat`,`isNaN`,`isFinite`,`encodeURI`,`decodeURI`,`encodeURIComponent`,`decodeURIComponent`,e.symbolName]);for(let e=0;e<l.lines.length;e++){let t=l.lines[e];if(!t)continue;let n;for(;(n=u.exec(t))!==null;){let t=n[1];!t||f.has(t)||(d.has(t)||d.set(t,[]),d.get(t).push({line:l.startLine+e+1,column:n.index}))}}let p=Array.from(d.entries());if(p.length===0)return{status:`empty`,item:r,direction:`outgoing`,depth:a,outgoingCalls:[],researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(AZ,`empty`),`Note: Using text-based analysis (language server not available)`,`No function calls found in '${e.symbolName}'`,`The function may only contain primitive operations`,`Install typescript-language-server for semantic call hierarchy`]};let m=p.length,h=Math.ceil(m/o),g=(s-1)*o;return{status:`hasResults`,item:r,direction:`outgoing`,depth:a,outgoingCalls:p.slice(g,g+o).map(([e,n])=>{let r=n[0];return{to:{name:e,kind:`function`,uri:t,range:QZ(r.line-1,r.column,e.length),selectionRange:QZ(r.line-1,r.column,e.length),displayRange:{startLine:r.line,endLine:r.line}},fromRanges:n.map(t=>QZ(t.line-1,t.column,e.length))}}),pagination:{currentPage:s,totalPages:h,totalResults:m,hasMore:s<h,resultsPerPage:o},researchGoal:e.researchGoal,reasoning:e.reasoning,hints:[..._K(AZ,`hasResults`),`Note: Using text-based analysis (language server not available)`,`Use lspGotoDefinition to find where each callee is defined`,`Install typescript-language-server for semantic call hierarchy`]}}async function BZ(e,t,n){let r=t.split(/\r?\n/),i=Math.max(0,e.range.start.line-n),a=Math.min(r.length-1,e.range.end.line+n),o=r.slice(i,a+1).map((t,n)=>{let r=i+n+1;return`${r>e.range.start.line&&r<=e.range.end.line+1?`>`:` `}${String(r).padStart(4,` `)}| ${t}`}).join(`
`);return{...e,content:o,displayRange:{startLine:i+1,endLine:a+1}}}async function VZ(e,t){let n=[];for(let r of e)try{let e=await P(r.from.uri,`utf-8`),i=await BZ(r.from,e,t);n.push({...r,from:i})}catch{n.push(r)}return n}async function HZ(e,t){let n=[];for(let r of e)try{let e=await P(r.to.uri,`utf-8`),i=await BZ(r.to,e,t);n.push({...r,to:i})}catch{n.push(r)}return n}function UZ(e,t,n){let r=e.length,i=Math.ceil(r/t),a=(n-1)*t;return{paginatedItems:e.slice(a,a+t),pagination:{currentPage:n,totalPages:i,totalResults:r,hasMore:n<i,resultsPerPage:t}}}async function WZ(e,t,n,r){let i=await dy(`rg`,[`--json`,`--line-number`,`--column`,`-e`,t,`--type`,`ts`,`--type`,`js`,`--type`,`tsx`,`--type`,`jsx`,`--type-add`,`tsx:*.tsx`,`--type-add`,`jsx:*.jsx`,`-C`,String(r),e],{cwd:e,timeout:3e4});if(!i.success&&i.code!==1)throw Error(i.stderr||`ripgrep search failed`);return KZ(i.stdout)}async function GZ(e,t,n,r){let i=await dy(`grep`,[`-r`,`-n`,`-E`,`--include=*.ts`,`--include=*.js`,`--include=*.tsx`,`--include=*.jsx`,t,e],{cwd:e,timeout:3e4});if(!i.success&&i.code!==1)throw Error(i.stderr||`grep search failed`);return qZ(i.stdout)}function KZ(e){let t=[],n=e.split(`
`).filter(e=>e.trim());for(let e of n)try{let n=JSON.parse(e);if(n.type===`match`&&n.data){let e=n.data;t.push({filePath:e.path?.text||``,lineNumber:e.line_number||0,column:e.submatches?.[0]?.start||0,lineContent:e.lines?.text||``})}}catch{}return t}function qZ(e){let t=[],n=e.split(`
`).filter(e=>e.trim());for(let e of n){let n=e.match(/^(.+?):(\d+):(.*)$/);if(n){let[,e,r,i]=n;t.push({filePath:e||``,lineNumber:parseInt(r||`0`,10),column:0,lineContent:i||``})}}return t}function JZ(e,t,n,r,i){let a=Math.max(0,n-1-i),o=Math.min(r.length-1,n-1+i),s=r.slice(a,o+1).join(`
`),c=r[n-1]||``,l=c.indexOf(e);return{name:e,kind:ZZ(c),uri:t,range:{start:{line:a,character:0},end:{line:o,character:r[o]?.length||0}},selectionRange:{start:{line:n-1,character:Math.max(0,l)},end:{line:n-1,character:Math.max(0,l)+e.length}},content:s,displayRange:{startLine:a+1,endLine:o+1}}}async function YZ(e,t){let n=`unknown`,r=e.lineContent;try{let i=(await P(e.filePath,`utf-8`)).split(/\r?\n/);for(let t=e.lineNumber-1;t>=0&&t>=e.lineNumber-20;t--){let e=i[t];if(!e)continue;let r=e.match(/(?:function\s+([a-zA-Z_$][a-zA-Z0-9_$]*)|(?:const|let|var)\s+([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=\s*(?:async\s+)?(?:function|\(|[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>)|([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\([^)]*\)\s*\{|([a-zA-Z_$][a-zA-Z0-9_$]*)\s*=\s*async\s*\()/);if(r){n=r[1]||r[2]||r[3]||r[4]||`unknown`;break}let a=e.match(/(?:async\s+)?([a-zA-Z_$][a-zA-Z0-9_$]*)\s*\([^)]*\)\s*[:{]/);if(a&&a[1]){n=a[1];break}}let a=Math.max(0,e.lineNumber-1-t),o=Math.min(i.length-1,e.lineNumber-1+t);r=i.slice(a,o+1).join(`
`)}catch{}return{name:n,kind:`function`,uri:e.filePath,range:QZ(e.lineNumber-1,0,e.lineContent.length),selectionRange:QZ(e.lineNumber-1,e.column,10),content:r,displayRange:{startLine:e.lineNumber,endLine:e.lineNumber}}}function XZ(e,t){let n=0,r=!1,i=t,a=[];for(let o=t;o<Math.min(e.length,t+5);o++){let t=e[o];if(!t)continue;let s=t.indexOf(`{`);if(s!==-1){r=!0,i=o,n=1;for(let e=s+1;e<t.length;e++)t[e]===`{`&&n++,t[e]===`}`&&n--;a.push(t.slice(s+1));break}}if(!r)return null;for(let t=i+1;t<e.length&&n>0;t++){let r=e[t];if(!r){a.push(``);continue}for(let e of r)e===`{`&&n++,e===`}`&&n--;if(n>0)a.push(r);else{let e=r.lastIndexOf(`}`);e>0&&a.push(r.slice(0,e))}}return{lines:a,startLine:i,endLine:i+a.length}}function ZZ(e){return/\bclass\b/.test(e)?`class`:/\binterface\b/.test(e)?`interface`:/\btype\b/.test(e)?`type`:/\bconst\b/.test(e)&&!/=.*(?:function|\(.*\)\s*=>)/.test(e)?`constant`:/\b(?:let|var)\b/.test(e)&&!/=.*(?:function|\(.*\)\s*=>)/.test(e)?`variable`:/\benum\b/.test(e)?`enum`:/\bnamespace\b/.test(e)?`namespace`:/\bmodule\b/.test(e)?`module`:`function`}function QZ(e,t,n){return{start:{line:e,character:t},end:{line:e,character:t+n}}}function $Z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}const eQ=e=>bS[e],tQ=[{name:J.GITHUB_SEARCH_CODE,description:eQ(J.GITHUB_SEARCH_CODE),isDefault:!0,isLocal:!1,type:`search`,fn:DK},{name:J.GITHUB_FETCH_CONTENT,description:eQ(J.GITHUB_FETCH_CONTENT),isDefault:!0,isLocal:!1,type:`content`,fn:iq},{name:J.GITHUB_VIEW_REPO_STRUCTURE,description:eQ(J.GITHUB_VIEW_REPO_STRUCTURE),isDefault:!0,isLocal:!1,type:`content`,fn:Kq},{name:J.GITHUB_SEARCH_REPOSITORIES,description:eQ(J.GITHUB_SEARCH_REPOSITORIES),isDefault:!0,isLocal:!1,type:`search`,fn:fq},{name:J.GITHUB_SEARCH_PULL_REQUESTS,description:eQ(J.GITHUB_SEARCH_PULL_REQUESTS),isDefault:!0,isLocal:!1,type:`history`,fn:Wq},{name:J.PACKAGE_SEARCH,description:eQ(J.PACKAGE_SEARCH),isDefault:!0,isLocal:!1,type:`search`,fn:dJ},{name:J.LOCAL_RIPGREP,description:eQ(J.LOCAL_RIPGREP),isDefault:!0,isLocal:!0,type:`search`,fn:WJ},{name:J.LOCAL_VIEW_STRUCTURE,description:eQ(J.LOCAL_VIEW_STRUCTURE),isDefault:!0,isLocal:!0,type:`content`,fn:aY},{name:J.LOCAL_FIND_FILES,description:eQ(J.LOCAL_FIND_FILES),isDefault:!0,isLocal:!0,type:`search`,fn:_Y},{name:J.LOCAL_FETCH_CONTENT,description:eQ(J.LOCAL_FETCH_CONTENT),isDefault:!0,isLocal:!0,type:`content`,fn:CY},{name:J.LSP_GOTO_DEFINITION,description:eQ(J.LSP_GOTO_DEFINITION),isDefault:!0,isLocal:!0,type:`content`,fn:cZ},{name:J.LSP_FIND_REFERENCES,description:eQ(J.LSP_FIND_REFERENCES),isDefault:!0,isLocal:!0,type:`search`,fn:vZ},{name:J.LSP_CALL_HIERARCHY,description:eQ(J.LSP_CALL_HIERARCHY),isDefault:!0,isLocal:!0,type:`content`,fn:MZ}];async function nQ(e,t){let n=Ex(),r=rQ();r.toolsToRun.length>0&&(r.enableTools.length>0||r.disableTools.length>0)&&process.stderr.write(`Warning: TOOLS_TO_RUN cannot be used together with ENABLE_TOOLS/DISABLE_TOOLS. Using TOOLS_TO_RUN exclusively.
`);let i=0,a=[];for(let o of tQ)if(iQ(o,n,r)){try{if(!gS(o.name)){await Fx(o.name,Eb.INVALID_FORMAT.code);continue}}catch{await Fx(o.name,Eb.INVALID_API_RESPONSE.code);continue}try{await o.fn(e,t)!==null&&i++}catch{a.push(o.name)}}return{successCount:i,failedTools:a}}function rQ(){let e=wx();return{toolsToRun:e.toolsToRun||[],enableTools:e.enableTools||[],disableTools:e.disableTools||[]}}function iQ(e,t,n){if(e.isLocal&&!t)return!1;let{toolsToRun:r,enableTools:i,disableTools:a}=n;return r.length>0?r.includes(e.name):a.includes(e.name)?!1:i.includes(e.name)||e.isDefault}const aQ={name:`${yb}_${bb}`,title:`Octocode MCP`,version:bb};async function oQ(){let e=!1,t=null,n=null;try{await Sx();let r=await mS(),i=Ax(),a=new Ip(aQ,{capabilities:{prompts:{},resources:{},tools:{},logging:{}},instructions:r.instructions});n=Zx(a,`server`),await n.info(`Server starting`,{sessionId:i.getSessionId()}),await sQ(a,r),Lx(a,r),await n.info(`Prompts ready`),await n.info(`Resources ready`);let o=new Yp;await a.connect(o),await n.info(`Server ready`,{pid:process.pid,sessionId:i.getSessionId()}),Mx().catch(()=>{}),process.stdout.uncork(),process.stderr.uncork();let s=async r=>{if(!e){e=!0;try{n&&await n.info(`Shutting down`,{signal:r}),t&&=(clearTimeout(t),null),t=setTimeout(()=>{process.exit(1)},5e3),Yx(),Cx();try{await a.close()}catch{}t&&=(clearTimeout(t),null),n&&await n.info(`Shutdown complete`),process.exit(0)}catch{t&&=(clearTimeout(t),null),process.exit(1)}}};process.once(`SIGINT`,()=>s(`SIGINT`)),process.once(`SIGTERM`,()=>s(`SIGTERM`)),process.stdin.once(`close`,()=>{s(`STDIN_CLOSE`)}),process.once(`uncaughtException`,e=>{n&&n.error(`Uncaught exception`,{error:e.message}),Fx(`startup`,Ab.UNCAUGHT_EXCEPTION.code).catch(()=>{}),s(`UNCAUGHT_EXCEPTION`)}),process.once(`unhandledRejection`,e=>{n&&n.error(`Unhandled rejection`,{reason:String(e)}),Fx(`startup`,Ab.UNHANDLED_REJECTION.code).catch(()=>{}),s(`UNHANDLED_REJECTION`)}),process.stdin.resume()}catch(e){n&&await n.error(`Startup failed`,{error:String(e)}),await Fx(`startup`,Ab.STARTUP_FAILED.code),process.exit(1)}}async function sQ(e,t){let n=Qx.getLogger(e,`tools`);await Tx()?await n.info(`GitHub token ready`):(await n.warning(`No GitHub token - limited functionality`),process.stderr.write(`⚠️ No GitHub token available - some features may be limited
`));let{successCount:r}=await nQ(e);if(await n.info(`Tools registered`,{count:r}),r===0){await Fx(`startup`,Ab.NO_TOOLS_REGISTERED.code);let e=Error(Ab.NO_TOOLS_REGISTERED.message);throw await n.error(`Tool registration failed`),e}}oQ().catch(e=>{let t=e instanceof Error?e.message:String(e||`Unknown error`);process.stderr.write(`❌ Startup failed: ${t}\n`),process.exit(1)});export{sQ as registerAllTools};