@powerlines/plugin-react 0.1.107 → 0.1.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,30 +1,30 @@
1
- import{t as e}from"./chunk-CF6LXmkI.mjs";import{t}from"./react-optimized-C8ZBC6OY.mjs";import"./components-MTvNCZDU.mjs";import"./plugin-G4qbpIjB.mjs";import"./runtime-cDYyRPa0.mjs";import"./types-C5ggNT4K.mjs";import{transformAsync as n}from"@babel/core";import{LogLevelLabel as r}from"@storm-software/config-tools/types";import{findFileExtension as i,findFileExtensionSafe as a}from"@stryke/path/file-path-fns";import{isParentPath as o}from"@stryke/path/is-parent-path";import{isSetObject as s}from"@stryke/type-checks/is-set-object";import c from"defu";import{isFunction as l}from"@stryke/type-checks/is-function";import"@stryke/type-checks/is-object";import{isSetString as u}from"@stryke/type-checks/is-set-string";import d from"chalk";import ee from"@babel/generator";import"@babel/parser";import{declare as te}from"@babel/helper-plugin-utils";import"@storm-software/config-tools/logger";import"@storm-software/config-tools/utilities/colors";import"@stryke/helpers/noop";import{kebabCase as ne}from"@stryke/string-format/kebab-case";import{titleCase as f}from"@stryke/string-format/title-case";import*as re from"@babel/types";import{isString as ie}from"@stryke/type-checks/is-string";import{toArray as p}from"@stryke/convert/to-array";import{isDirectory as ae}from"@stryke/fs/is-file";import{listFiles as oe}from"@stryke/fs/list-files";import{appendPath as se}from"@stryke/path/append";import{isAbsolutePath as ce}from"@stryke/path/is-type";import{joinPaths as m}from"@stryke/path/join-paths";import{replacePath as le}from"@stryke/path/replace";import{defineGenerator as ue,loadConfig as de,resolveConfig as fe,transform as pe}from"automd";import{loadConfig as me}from"c12";import he from"markdown-toc";import{parseTypeDefinition as ge}from"@stryke/convert/parse-type-definition";import{ENV_PREFIXES as _e}from"@stryke/env/types";import{existsSync as ve}from"@stryke/fs/exists";import{createDirectory as ye}from"@stryke/fs/helpers";import{joinPaths as be}from"@stryke/path/join";import{constantCase as xe}from"@stryke/string-format/constant-case";import{isInteger as Se,isSetObject as Ce,isString as we,isUndefined as Te}from"@stryke/type-checks";import*as h from"@stryke/capnp";import{getUniqueBy as Ee}from"@stryke/helpers/get-unique";import{StormJSON as De}from"@stryke/json/storm-json";import{isNull as Oe}from"@stryke/type-checks/is-null";import{isUndefined as ke}from"@stryke/type-checks/is-undefined";import{readFileBuffer as Ae,readFileBufferSync as je,writeFileBuffer as Me}from"@stryke/fs/buffer";import{existsSync as Ne}from"node:fs";import{resolvePackage as Pe}from"@stryke/fs/resolve";import{isEmptyObject as Fe}from"@stryke/type-checks/is-empty-object";import{build as Ie}from"esbuild";import{omit as Le}from"@stryke/helpers/omit";import{camelCase as g}from"@stryke/string-format/camel-case";import"@stryke/hash/murmurhash";import Re,{DiagnosticCategory as ze}from"typescript";import{For as Be,Show as Ve,code as _,computed as He,createResource as Ue,splitProps as We}from"@alloy-js/core";import{ClassDeclaration as Ge,ClassMethod as Ke,ElseIfClause as qe,FunctionDeclaration as Je,IfStatement as Ye,NewExpression as Xe,TypeDeclaration as Ze,VarDeclaration as Qe}from"@alloy-js/typescript";import{usePowerlines as $e}from"@powerlines/alloy/core/contexts/context";import{refkey as et}from"@powerlines/alloy/helpers/refkey";import{BuiltinFile as tt}from"@powerlines/alloy/typescript/components/builtin-file";import{TSDoc as v,TSDocExample as nt,TSDocLink as rt,TSDocParam as it,TSDocRemarks as y,TSDocReturns as at,TSDocThrows as ot}from"@powerlines/alloy/typescript/components/tsdoc";import{TypeScriptInterface as st}from"@powerlines/alloy/typescript/components/typescript-interface";import{TypescriptObject as ct}from"@powerlines/alloy/typescript/components/typescript-object";import{loadEnv as lt,loadEnvFile as ut}from"@stryke/env/load-env";import{Fragment as b,jsx as x,jsxs as S}from"@alloy-js/core/jsx-runtime";import"@alloy-js/markdown";import"@powerlines/alloy/markdown/components/markdown-file";import"@powerlines/alloy/markdown/components/markdown-table";import dt from"@vitejs/plugin-react";import"@stryke/fs/json";var C={};import*as ft from"@deepkit/type";e(C,ft);function pt(e){return u(e)?e:Array.isArray(e)&&e.length>0?pt(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function mt(e,t){return!!(pt(t)&&e.some(e=>Array.isArray(e)&&pt(e[0])===pt(t)))}function ht(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?l(t[0])?t[0](e):t[0]:l(t)?t(e):t}catch{return t[0]}}function gt(e,t,n,i){if(Array.isArray(i)&&i.length>0&&i[0]){if(i.length>2&&i[2]&&l(i[2])&&!i[2](t,n)){e.log(r.TRACE,`Skipping filtered Babel plugin ${d.bold.cyanBright(pt(i)||`unnamed`)} for ${n}`);return}return i.length>2?[ht(e,i),i[1],i[2]]:[ht(e,i),i[1],null]}return[ht(e,i),{},null]}let _t=ee;`default`in _t&&(_t=_t.default);const vt=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#D8B4FE`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`,`#8B5CF6`],yt=(e,t)=>(n,...r)=>e(n,` ${d.inverse.hex(vt[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%vt.length]||vt[0])(` ${f(t)} `)} ${r.join(` `)} `);function bt(e,t){let n=n=>te((i,a,o)=>{i.cache.using(()=>n.meta.checksum),i.assertVersion(`^7.0.0-0`);let s=yt(n.log,e);s(r.TRACE,`Initializing the ${d.bold.cyanBright(e)} Babel plugin`);let c=t({log:s,name:e,api:i,options:a,context:n,dirname:o});return c.name=e,s(r.TRACE,`Completed initialization of the ${d.bold.cyanBright(e)} Babel plugin`),c});return n.$$name=e,n}function xt(e,t){wt(e.scope.getProgramParent().path,t)}function St(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function Ct(e){let t=new Map;return e.traverse({ImportDeclaration(e){St(e)&&t.set(e.node.source.value,e)}}),t}function wt(e,t){Ct(e).get(t.module)||e.unshiftContainer(`body`,re.importDeclaration([re.importSpecifier(re.identifier(t.name||t.imported),re.identifier(t.imported))],re.stringLiteral(t.module)))}var Tt=(e={})=>({name:`babel`,config(){if(s(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=c(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,s){if(o(s,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(r.TRACE,`Skipping Babel transformation for: ${s}`),{code:t,id:s};this.log(r.TRACE,`Babel transforming file: ${s}`);let l=this.config.transform.babel.plugins.map(e=>gt(this,t,s,e)).filter((e,t,n)=>e&&!mt(n,e)),u=this.config.transform.babel.presets.map(e=>gt(this,t,s,e)).filter((e,t,n)=>e&&!mt(n,e));if(Array.isArray(l)&&l.length===0&&Array.isArray(u)&&u.length===0)return{code:t,id:s};[`ts`,`cts`,`mts`,`tsx`].includes(a(s))&&!mt(l,`@babel/plugin-syntax-typescript`)&&!mt(u,`@babel/preset-typescript`)&&l.unshift([`@babel/plugin-syntax-typescript`,{isTSX:i(s)===`.tsx`}]);let d=await n(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:s,plugins:l.map(t=>Array.isArray(t)&&t.length>=2?[t[0],c(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:u.map(t=>Array.isArray(t)&&t.length>=2?[t[0],c(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!d?.code)throw Error(`Powerlines - Babel plugin failed to compile ${s}`);return{code:d.code,id:s}}}),Et=(e={})=>({name:`automd`,async config(){let t=await de(m(this.workspaceConfig.workspaceRoot,this.config.projectRoot),e);return(!t.prefix||!Array.isArray(t.prefix))&&(t.prefix=p(t.prefix??[])),t.prefix.includes(`automd`)||t.prefix.push(`automd`),t.prefix.includes(`powerlines`)||t.prefix.push(`powerlines`),{automd:c(t??{},{configFile:e.configFile,allowIssues:!0,dir:this.config.projectRoot,watch:!1,input:`README.md`,toc:{maxDepth:6,bullets:`-`}})}},async configResolved(){if(this.config.framework&&!p(this.config.automd.prefix).includes(this.config.framework)&&(this.config.automd.prefix=p(this.config.automd.prefix).concat(this.config.framework)),this.config.automd.configFile){let{config:e}=await me({cwd:this.config.automd.dir,configFile:this.config.automd.configFile,defaults:{ignore:[`**/node_modules`,`**/dist`,`**/.*`],dir:this.config.automd.dir}});this.config.automd=fe(c(this.config.automd,{...e,prefix:p(e.prefix??[])}))}this.config.automd.input=(await Promise.all(p(this.config.automd.input).map(async e=>e.includes(`*`)?oe(ce(e)?e:se(e,this.config.projectRoot),{ignore:this.config.automd.ignore}):ce(e)?e:se(e,this.config.projectRoot)))).flat(),this.config.automd.output&&!ce(this.config.automd.output)&&(this.config.automd.output=se(this.config.automd.output,this.config.projectRoot)),this.config.automd.generators??={},this.config.automd.toc!==!1&&(this.config.automd.generators.toc??={name:`toc`,generate:e=>{let t=this.config.automd.toc??{};return{contents:he(e.block.md,{...t,maxdepth:t.maxDepth,first1:t.firstH1}).content}}})},async docs(){await Promise.all(p(this.config.automd.input).map(async e=>{let t=await this.fs.read(e);if(t){let n=await pe(t,this.config.automd);if(n.hasIssues&&this.config.automd.allowIssues===!1)throw Error(`AutoMD found issues in file "${e}". Please resolve the issues or set \`allowIssues\` to true in the plugin configuration to ignore them.`);n.hasChanged&&await this.fs.write(se(this.config.automd.output?ae(this.config.automd.output)?le(e,this.config.automd.output):this.config.automd.output:e,this.config.projectRoot),n.contents)}}))}});const w={PUBLIC:0,PROTECTED:1,PRIVATE:2};var T=class extends h.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new h.ObjectSize(8,4)};_adoptAlias(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownAlias(){return h.utils.disown(this.alias)}get alias(){return h.utils.getList(0,h.TextList,this)}_hasAlias(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initAlias(e){return h.utils.initList(0,h.TextList,e,this)}set alias(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}get title(){return h.utils.getText(1,this)}set title(e){h.utils.setText(1,e,this)}get hidden(){return h.utils.getBit(0,this)}set hidden(e){h.utils.setBit(0,e,this)}get readonly(){return h.utils.getBit(1,this)}set readonly(e){h.utils.setBit(1,e,this)}get ignore(){return h.utils.getBit(2,this)}set ignore(e){h.utils.setBit(2,e,this)}get internal(){return h.utils.getBit(3,this)}set internal(e){h.utils.setBit(3,e,this)}_adoptPermission(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownPermission(){return h.utils.disown(this.permission)}get permission(){return h.utils.getList(2,h.TextList,this)}_hasPermission(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initPermission(e){return h.utils.initList(2,h.TextList,e,this)}set permission(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}get domain(){return h.utils.getText(3,this)}set domain(e){h.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const Dt={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Ot=class extends h.Struct{static UNDEFINED=Dt.UNDEFINED;static BOOLEAN=Dt.BOOLEAN;static INTEGER=Dt.INTEGER;static FLOAT=Dt.FLOAT;static STRING=Dt.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new h.ObjectSize(16,1)};get _isUndefined(){return h.utils.getUint16(0,this)===0}set undefined(e){h.utils.setUint16(0,0,this)}get boolean(){return h.utils.testWhich(`boolean`,h.utils.getUint16(0,this),1,this),h.utils.getBit(16,this)}get _isBoolean(){return h.utils.getUint16(0,this)===1}set boolean(e){h.utils.setUint16(0,1,this),h.utils.setBit(16,e,this)}get integer(){return h.utils.testWhich(`integer`,h.utils.getUint16(0,this),2,this),h.utils.getInt32(4,this)}get _isInteger(){return h.utils.getUint16(0,this)===2}set integer(e){h.utils.setUint16(0,2,this),h.utils.setInt32(4,e,this)}get float(){return h.utils.testWhich(`float`,h.utils.getUint16(0,this),3,this),h.utils.getFloat64(8,this)}get _isFloat(){return h.utils.getUint16(0,this)===3}set float(e){h.utils.setUint16(0,3,this),h.utils.setFloat64(8,e,this)}get string(){return h.utils.testWhich(`string`,h.utils.getUint16(0,this),4,this),h.utils.getText(0,this)}get _isString(){return h.utils.getUint16(0,this)===4}set string(e){h.utils.setUint16(0,4,this),h.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return h.utils.getUint16(0,this)}},E=class extends h.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new h.ObjectSize(16,1)};get value(){return h.utils.getAs(Ot,this)}_initValue(){return h.utils.getAs(Ot,this)}toString(){return`DefaultValueReflection_`+super.toString()}},D=class extends h.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new h.ObjectSize(8,0)};get id(){return h.utils.getUint32(0,this)}set id(e){h.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},O=class extends h.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new h.ObjectSize(0,2)};_adoptContainer(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownContainer(){return h.utils.disown(this.container)}get container(){return h.utils.getStruct(0,D,this)}_hasContainer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initContainer(){return h.utils.initStructAt(0,D,this)}set container(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIndex(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownIndex(){return h.utils.disown(this.index)}get index(){return h.utils.getStruct(1,D,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initIndex(){return h.utils.initStructAt(1,D,this)}set index(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},kt=class extends h.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new h.ObjectSize(0,2)};_adoptNames(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownNames(){return h.utils.disown(this.names)}get names(){return h.utils.getList(0,h.TextList,this)}_hasNames(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initNames(e){return h.utils.initList(0,h.TextList,e,this)}set names(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}get options(){return h.utils.getText(1,this)}set options(e){h.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},At=class e extends h.Struct{static EntityIndexOptions=kt;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new h.ObjectSize(8,5)};static _Indexes;get name(){return h.utils.getText(0,this)}set name(e){h.utils.setText(0,e,this)}get description(){return h.utils.getText(1,this)}set description(e){h.utils.setText(1,e,this)}get collection(){return h.utils.getText(2,this)}set collection(e){h.utils.setText(2,e,this)}get database(){return h.utils.getText(3,this)}set database(e){h.utils.setText(3,e,this)}get singleTableInheritance(){return h.utils.getBit(0,this)}set singleTableInheritance(e){h.utils.setBit(0,e,this)}_adoptIndexes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownIndexes(){return h.utils.disown(this.indexes)}get indexes(){return h.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initIndexes(t){return h.utils.initList(4,e._Indexes,t,this)}set indexes(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},k=class e extends h.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(5,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},A=class e extends h.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new h.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get globalObject(){return h.utils.getBit(16,this)}set globalObject(e){h.utils.setBit(16,e,this)}get classType(){return h.utils.getText(5,this)}set classType(e){h.utils.setText(5,e,this)}_adoptExtendsArguments(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownExtendsArguments(){return h.utils.disown(this.extendsArguments)}get extendsArguments(){return h.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initExtendsArguments(t){return h.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptArguments(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownArguments(){return h.utils.disown(this.arguments)}get arguments(){return h.utils.getList(7,e._Arguments,this)}_hasArguments(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initArguments(t){return h.utils.initList(7,e._Arguments,t,this)}set arguments(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptSuperClass(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownSuperClass(){return h.utils.disown(this.superClass)}get superClass(){return h.utils.getStruct(8,D,this)}_hasSuperClass(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initSuperClass(){return h.utils.initStructAt(8,D,this)}set superClass(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(9,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(9,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(9,this))}_initTypes(t){return h.utils.initList(9,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(9,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(10,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(10,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(10,this))}_initTags(){return h.utils.initStructAt(10,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},j=class e extends h.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(5,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}get visibility(){return h.utils.getUint16(2,this)}set visibility(e){h.utils.setUint16(2,e,this)}get readonly(){return h.utils.getBit(32,this)}set readonly(e){h.utils.setBit(32,e,this)}get optional(){return h.utils.getBit(33,this)}set optional(e){h.utils.setBit(33,e,this)}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(6,E,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,E,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},jt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(6,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initParameters(t){return h.utils.initList(6,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(7,D,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,D,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Mt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new h.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}get description(){return h.utils.getText(6,this)}set description(e){h.utils.setText(6,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(7,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(8,E,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initDefault(){return h.utils.initStructAt(8,E,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},M=class e extends h.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(6,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initParameters(t){return h.utils.initList(6,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(7,D,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,D,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Nt=class e extends h.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new h.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},Pt=class extends h.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new h.ObjectSize(0,2)};get name(){return h.utils.getText(0,this)}set name(e){h.utils.setText(0,e,this)}get value(){return h.utils.getText(1,this)}set value(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},N=class e extends h.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptEnumEntries(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownEnumEntries(){return h.utils.disown(this.enumEntries)}get enumEntries(){return h.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initEnumEntries(t){return h.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptValues(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownValues(){return h.utils.disown(this.values)}get values(){return h.utils.getList(5,h.TextList,this)}_hasValues(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initValues(e){return h.utils.initList(5,h.TextList,e,this)}set values(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}_adoptIndexType(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownIndexType(){return h.utils.disown(this.indexType)}get indexType(){return h.utils.getStruct(6,D,this)}_hasIndexType(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initIndexType(){return h.utils.initStructAt(6,D,this)}set indexType(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},Ft=class e extends h.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},It=class e extends h.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},Lt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(5,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Rt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptIndex(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownIndex(){return h.utils.disown(this.index)}get index(){return h.utils.getStruct(4,D,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initIndex(){return h.utils.initStructAt(4,D,this)}set index(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(5,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},zt=class e extends h.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new h.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}get readonly(){return h.utils.getBit(17,this)}set readonly(e){h.utils.setBit(17,e,this)}get description(){return h.utils.getText(5,this)}set description(e){h.utils.setText(5,e,this)}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(6,E,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,E,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(7,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(8,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initTags(){return h.utils.initStructAt(8,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Bt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(5,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initParameters(t){return h.utils.initList(5,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(6,D,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initReturn(){return h.utils.initStructAt(6,D,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,T,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,T,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Vt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},Ht=class e extends h.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new h.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},Ut=class e extends h.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},Wt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Gt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,D,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,D,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Kt=class e extends h.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptOrigin(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownOrigin(){return h.utils.disown(this.origin)}get origin(){return h.utils.getStruct(4,D,this)}_hasOrigin(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initOrigin(){return h.utils.initStructAt(4,D,this)}set origin(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},qt=class extends h.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get name(){return h.utils.getText(1,this)}set name(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},Jt=class extends h.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get value(){return h.utils.getText(1,this)}set value(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},Yt=class extends h.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get regex(){return h.utils.getText(1,this)}set regex(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}};const P={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var Xt=class extends h.Struct{static SYMBOL=P.SYMBOL;static STRING=P.STRING;static NUMBER=P.NUMBER;static BOOLEAN=P.BOOLEAN;static BIGINT=P.BIGINT;static REGEX=P.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new h.ObjectSize(16,5)};_adoptSymbol(e){h.utils.setUint16(2,0,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownSymbol(){return h.utils.disown(this.symbol)}get symbol(){return h.utils.testWhich(`symbol`,h.utils.getUint16(2,this),0,this),h.utils.getStruct(4,qt,this)}_hasSymbol(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initSymbol(){return h.utils.setUint16(2,0,this),h.utils.initStructAt(4,qt,this)}get _isSymbol(){return h.utils.getUint16(2,this)===0}set symbol(e){h.utils.setUint16(2,0,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}get string(){return h.utils.testWhich(`string`,h.utils.getUint16(2,this),1,this),h.utils.getText(4,this)}get _isString(){return h.utils.getUint16(2,this)===1}set string(e){h.utils.setUint16(2,1,this),h.utils.setText(4,e,this)}get number(){return h.utils.testWhich(`number`,h.utils.getUint16(2,this),2,this),h.utils.getFloat64(8,this)}get _isNumber(){return h.utils.getUint16(2,this)===2}set number(e){h.utils.setUint16(2,2,this),h.utils.setFloat64(8,e,this)}get boolean(){return h.utils.testWhich(`boolean`,h.utils.getUint16(2,this),3,this),h.utils.getBit(64,this)}get _isBoolean(){return h.utils.getUint16(2,this)===3}set boolean(e){h.utils.setUint16(2,3,this),h.utils.setBit(64,e,this)}_adoptBigint(e){h.utils.setUint16(2,4,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownBigint(){return h.utils.disown(this.bigint)}get bigint(){return h.utils.testWhich(`bigint`,h.utils.getUint16(2,this),4,this),h.utils.getStruct(4,Jt,this)}_hasBigint(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initBigint(){return h.utils.setUint16(2,4,this),h.utils.initStructAt(4,Jt,this)}get _isBigint(){return h.utils.getUint16(2,this)===4}set bigint(e){h.utils.setUint16(2,4,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptRegex(e){h.utils.setUint16(2,5,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownRegex(){return h.utils.disown(this.regex)}get regex(){return h.utils.testWhich(`regex`,h.utils.getUint16(2,this),5,this),h.utils.getStruct(4,Yt,this)}_hasRegex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initRegex(){return h.utils.setUint16(2,5,this),h.utils.initStructAt(4,Yt,this)}get _isRegex(){return h.utils.getUint16(2,this)===5}set regex(e){h.utils.setUint16(2,5,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return h.utils.getUint16(2,this)}},Zt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new h.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get literal(){return h.utils.getAs(Xt,this)}_initLiteral(){return h.utils.getAs(Xt,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Qt=class e extends h.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},$t=class extends h.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new h.ObjectSize(8,1)};get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const F={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var en=class extends h.Struct{static SIMPLE=F.SIMPLE;static LITERAL=F.LITERAL;static TEMPLATE_LITERAL=F.TEMPLATE_LITERAL;static PARAMETER=F.PARAMETER;static FUNCTION=F.FUNCTION;static METHOD=F.METHOD;static PROPERTY=F.PROPERTY;static PROMISE=F.PROMISE;static CLASS_TYPE=F.CLASS_TYPE;static ENUM=F.ENUM;static UNION=F.UNION;static INTERSECTION=F.INTERSECTION;static ARRAY=F.ARRAY;static OBJECT_LITERAL=F.OBJECT_LITERAL;static INDEX_SIGNATURE=F.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=F.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=F.METHOD_SIGNATURE;static TYPE_PARAMETER=F.TYPE_PARAMETER;static INFER=F.INFER;static TUPLE=F.TUPLE;static TUPLE_MEMBER=F.TUPLE_MEMBER;static REST=F.REST;static OTHER=F.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new h.ObjectSize(8,1)};_adoptSimple(e){h.utils.setUint16(0,0,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownSimple(){return h.utils.disown(this.simple)}get simple(){return h.utils.testWhich(`simple`,h.utils.getUint16(0,this),0,this),h.utils.getStruct(0,Kt,this)}_hasSimple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initSimple(){return h.utils.setUint16(0,0,this),h.utils.initStructAt(0,Kt,this)}get _isSimple(){return h.utils.getUint16(0,this)===0}set simple(e){h.utils.setUint16(0,0,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptLiteral(e){h.utils.setUint16(0,1,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownLiteral(){return h.utils.disown(this.literal)}get literal(){return h.utils.testWhich(`literal`,h.utils.getUint16(0,this),1,this),h.utils.getStruct(0,Zt,this)}_hasLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initLiteral(){return h.utils.setUint16(0,1,this),h.utils.initStructAt(0,Zt,this)}get _isLiteral(){return h.utils.getUint16(0,this)===1}set literal(e){h.utils.setUint16(0,1,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTemplateLiteral(e){h.utils.setUint16(0,2,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTemplateLiteral(){return h.utils.disown(this.templateLiteral)}get templateLiteral(){return h.utils.testWhich(`templateLiteral`,h.utils.getUint16(0,this),2,this),h.utils.getStruct(0,Qt,this)}_hasTemplateLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTemplateLiteral(){return h.utils.setUint16(0,2,this),h.utils.initStructAt(0,Qt,this)}get _isTemplateLiteral(){return h.utils.getUint16(0,this)===2}set templateLiteral(e){h.utils.setUint16(0,2,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptParameter(e){h.utils.setUint16(0,3,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownParameter(){return h.utils.disown(this.parameter)}get parameter(){return h.utils.testWhich(`parameter`,h.utils.getUint16(0,this),3,this),h.utils.getStruct(0,j,this)}_hasParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initParameter(){return h.utils.setUint16(0,3,this),h.utils.initStructAt(0,j,this)}get _isParameter(){return h.utils.getUint16(0,this)===3}set parameter(e){h.utils.setUint16(0,3,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptFunction(e){h.utils.setUint16(0,4,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownFunction(){return h.utils.disown(this.function)}get function(){return h.utils.testWhich(`function`,h.utils.getUint16(0,this),4,this),h.utils.getStruct(0,M,this)}_hasFunction(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initFunction(){return h.utils.setUint16(0,4,this),h.utils.initStructAt(0,M,this)}get _isFunction(){return h.utils.getUint16(0,this)===4}set function(e){h.utils.setUint16(0,4,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptMethod(e){h.utils.setUint16(0,5,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownMethod(){return h.utils.disown(this.method)}get method(){return h.utils.testWhich(`method`,h.utils.getUint16(0,this),5,this),h.utils.getStruct(0,jt,this)}_hasMethod(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethod(){return h.utils.setUint16(0,5,this),h.utils.initStructAt(0,jt,this)}get _isMethod(){return h.utils.getUint16(0,this)===5}set method(e){h.utils.setUint16(0,5,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptProperty(e){h.utils.setUint16(0,6,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownProperty(){return h.utils.disown(this.property)}get property(){return h.utils.testWhich(`property`,h.utils.getUint16(0,this),6,this),h.utils.getStruct(0,Mt,this)}_hasProperty(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initProperty(){return h.utils.setUint16(0,6,this),h.utils.initStructAt(0,Mt,this)}get _isProperty(){return h.utils.getUint16(0,this)===6}set property(e){h.utils.setUint16(0,6,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptPromise(e){h.utils.setUint16(0,7,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownPromise(){return h.utils.disown(this.promise)}get promise(){return h.utils.testWhich(`promise`,h.utils.getUint16(0,this),7,this),h.utils.getStruct(0,Nt,this)}_hasPromise(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPromise(){return h.utils.setUint16(0,7,this),h.utils.initStructAt(0,Nt,this)}get _isPromise(){return h.utils.getUint16(0,this)===7}set promise(e){h.utils.setUint16(0,7,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptClassType(e){h.utils.setUint16(0,8,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownClassType(){return h.utils.disown(this.classType)}get classType(){return h.utils.testWhich(`classType`,h.utils.getUint16(0,this),8,this),h.utils.getStruct(0,A,this)}_hasClassType(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initClassType(){return h.utils.setUint16(0,8,this),h.utils.initStructAt(0,A,this)}get _isClassType(){return h.utils.getUint16(0,this)===8}set classType(e){h.utils.setUint16(0,8,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptEnum(e){h.utils.setUint16(0,9,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownEnum(){return h.utils.disown(this.enum)}get enum(){return h.utils.testWhich(`enum`,h.utils.getUint16(0,this),9,this),h.utils.getStruct(0,N,this)}_hasEnum(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initEnum(){return h.utils.setUint16(0,9,this),h.utils.initStructAt(0,N,this)}get _isEnum(){return h.utils.getUint16(0,this)===9}set enum(e){h.utils.setUint16(0,9,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptUnion(e){h.utils.setUint16(0,10,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownUnion(){return h.utils.disown(this.union)}get union(){return h.utils.testWhich(`union`,h.utils.getUint16(0,this),10,this),h.utils.getStruct(0,Ft,this)}_hasUnion(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initUnion(){return h.utils.setUint16(0,10,this),h.utils.initStructAt(0,Ft,this)}get _isUnion(){return h.utils.getUint16(0,this)===10}set union(e){h.utils.setUint16(0,10,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIntersection(e){h.utils.setUint16(0,11,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownIntersection(){return h.utils.disown(this.intersection)}get intersection(){return h.utils.testWhich(`intersection`,h.utils.getUint16(0,this),11,this),h.utils.getStruct(0,It,this)}_hasIntersection(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIntersection(){return h.utils.setUint16(0,11,this),h.utils.initStructAt(0,It,this)}get _isIntersection(){return h.utils.getUint16(0,this)===11}set intersection(e){h.utils.setUint16(0,11,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptArray(e){h.utils.setUint16(0,12,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownArray(){return h.utils.disown(this.array)}get array(){return h.utils.testWhich(`array`,h.utils.getUint16(0,this),12,this),h.utils.getStruct(0,Lt,this)}_hasArray(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initArray(){return h.utils.setUint16(0,12,this),h.utils.initStructAt(0,Lt,this)}get _isArray(){return h.utils.getUint16(0,this)===12}set array(e){h.utils.setUint16(0,12,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptObjectLiteral(e){h.utils.setUint16(0,13,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownObjectLiteral(){return h.utils.disown(this.objectLiteral)}get objectLiteral(){return h.utils.testWhich(`objectLiteral`,h.utils.getUint16(0,this),13,this),h.utils.getStruct(0,k,this)}_hasObjectLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initObjectLiteral(){return h.utils.setUint16(0,13,this),h.utils.initStructAt(0,k,this)}get _isObjectLiteral(){return h.utils.getUint16(0,this)===13}set objectLiteral(e){h.utils.setUint16(0,13,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIndexSignature(e){h.utils.setUint16(0,14,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownIndexSignature(){return h.utils.disown(this.indexSignature)}get indexSignature(){return h.utils.testWhich(`indexSignature`,h.utils.getUint16(0,this),14,this),h.utils.getStruct(0,Rt,this)}_hasIndexSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIndexSignature(){return h.utils.setUint16(0,14,this),h.utils.initStructAt(0,Rt,this)}get _isIndexSignature(){return h.utils.getUint16(0,this)===14}set indexSignature(e){h.utils.setUint16(0,14,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptPropertySignature(e){h.utils.setUint16(0,15,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownPropertySignature(){return h.utils.disown(this.propertySignature)}get propertySignature(){return h.utils.testWhich(`propertySignature`,h.utils.getUint16(0,this),15,this),h.utils.getStruct(0,zt,this)}_hasPropertySignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPropertySignature(){return h.utils.setUint16(0,15,this),h.utils.initStructAt(0,zt,this)}get _isPropertySignature(){return h.utils.getUint16(0,this)===15}set propertySignature(e){h.utils.setUint16(0,15,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptMethodSignature(e){h.utils.setUint16(0,16,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownMethodSignature(){return h.utils.disown(this.methodSignature)}get methodSignature(){return h.utils.testWhich(`methodSignature`,h.utils.getUint16(0,this),16,this),h.utils.getStruct(0,Bt,this)}_hasMethodSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethodSignature(){return h.utils.setUint16(0,16,this),h.utils.initStructAt(0,Bt,this)}get _isMethodSignature(){return h.utils.getUint16(0,this)===16}set methodSignature(e){h.utils.setUint16(0,16,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTypeParameter(e){h.utils.setUint16(0,17,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTypeParameter(){return h.utils.disown(this.typeParameter)}get typeParameter(){return h.utils.testWhich(`typeParameter`,h.utils.getUint16(0,this),17,this),h.utils.getStruct(0,Vt,this)}_hasTypeParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypeParameter(){return h.utils.setUint16(0,17,this),h.utils.initStructAt(0,Vt,this)}get _isTypeParameter(){return h.utils.getUint16(0,this)===17}set typeParameter(e){h.utils.setUint16(0,17,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptInfer(e){h.utils.setUint16(0,18,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownInfer(){return h.utils.disown(this.infer)}get infer(){return h.utils.testWhich(`infer`,h.utils.getUint16(0,this),18,this),h.utils.getStruct(0,Ht,this)}_hasInfer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initInfer(){return h.utils.setUint16(0,18,this),h.utils.initStructAt(0,Ht,this)}get _isInfer(){return h.utils.getUint16(0,this)===18}set infer(e){h.utils.setUint16(0,18,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTuple(e){h.utils.setUint16(0,19,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTuple(){return h.utils.disown(this.tuple)}get tuple(){return h.utils.testWhich(`tuple`,h.utils.getUint16(0,this),19,this),h.utils.getStruct(0,Wt,this)}_hasTuple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTuple(){return h.utils.setUint16(0,19,this),h.utils.initStructAt(0,Wt,this)}get _isTuple(){return h.utils.getUint16(0,this)===19}set tuple(e){h.utils.setUint16(0,19,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTupleMember(e){h.utils.setUint16(0,20,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTupleMember(){return h.utils.disown(this.tupleMember)}get tupleMember(){return h.utils.testWhich(`tupleMember`,h.utils.getUint16(0,this),20,this),h.utils.getStruct(0,Ut,this)}_hasTupleMember(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTupleMember(){return h.utils.setUint16(0,20,this),h.utils.initStructAt(0,Ut,this)}get _isTupleMember(){return h.utils.getUint16(0,this)===20}set tupleMember(e){h.utils.setUint16(0,20,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptRest(e){h.utils.setUint16(0,21,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownRest(){return h.utils.disown(this.rest)}get rest(){return h.utils.testWhich(`rest`,h.utils.getUint16(0,this),21,this),h.utils.getStruct(0,Gt,this)}_hasRest(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initRest(){return h.utils.setUint16(0,21,this),h.utils.initStructAt(0,Gt,this)}get _isRest(){return h.utils.getUint16(0,this)===21}set rest(e){h.utils.setUint16(0,21,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptOther(e){h.utils.setUint16(0,22,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownOther(){return h.utils.disown(this.other)}get other(){return h.utils.testWhich(`other`,h.utils.getUint16(0,this),22,this),h.utils.getStruct(0,$t,this)}_hasOther(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initOther(){return h.utils.setUint16(0,22,this),h.utils.initStructAt(0,$t,this)}get _isOther(){return h.utils.getUint16(0,this)===22}set other(e){h.utils.setUint16(0,22,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return h.utils.getUint16(0,this)}},tn=class extends h.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new h.ObjectSize(8,1)};get type(){return h.utils.getAs(en,this)}_initType(){return h.utils.getAs(en,this)}toString(){return`SerializedType_`+super.toString()}},nn=class e extends h.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new h.ObjectSize(0,1)};static _Types;_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(0,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypes(t){return h.utils.initList(0,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};At._Indexes=h.CompositeList(kt),k._TypeArguments=h.CompositeList(D),k._Decorators=h.CompositeList(D),k._Types=h.CompositeList(D),A._TypeArguments=h.CompositeList(D),A._Decorators=h.CompositeList(D),A._ExtendsArguments=h.CompositeList(D),A._Arguments=h.CompositeList(D),A._Types=h.CompositeList(D),j._TypeArguments=h.CompositeList(D),j._Decorators=h.CompositeList(D),jt._TypeArguments=h.CompositeList(D),jt._Decorators=h.CompositeList(D),jt._Parameters=h.CompositeList(j),Mt._TypeArguments=h.CompositeList(D),Mt._Decorators=h.CompositeList(D),M._TypeArguments=h.CompositeList(D),M._Decorators=h.CompositeList(D),M._Parameters=h.CompositeList(j),Nt._TypeArguments=h.CompositeList(D),Nt._Decorators=h.CompositeList(D),N._TypeArguments=h.CompositeList(D),N._Decorators=h.CompositeList(D),N._EnumEntries=h.CompositeList(Pt),Ft._TypeArguments=h.CompositeList(D),Ft._Decorators=h.CompositeList(D),Ft._Types=h.CompositeList(D),It._TypeArguments=h.CompositeList(D),It._Decorators=h.CompositeList(D),It._Types=h.CompositeList(D),Lt._TypeArguments=h.CompositeList(D),Lt._Decorators=h.CompositeList(D),Rt._TypeArguments=h.CompositeList(D),Rt._Decorators=h.CompositeList(D),zt._TypeArguments=h.CompositeList(D),zt._Decorators=h.CompositeList(D),Bt._TypeArguments=h.CompositeList(D),Bt._Decorators=h.CompositeList(D),Bt._Parameters=h.CompositeList(j),Vt._TypeArguments=h.CompositeList(D),Vt._Decorators=h.CompositeList(D),Ht._TypeArguments=h.CompositeList(D),Ht._Decorators=h.CompositeList(D),Ut._TypeArguments=h.CompositeList(D),Ut._Decorators=h.CompositeList(D),Wt._TypeArguments=h.CompositeList(D),Wt._Decorators=h.CompositeList(D),Wt._Types=h.CompositeList(Ut),Gt._TypeArguments=h.CompositeList(D),Gt._Decorators=h.CompositeList(D),Kt._TypeArguments=h.CompositeList(D),Kt._Decorators=h.CompositeList(D),Zt._TypeArguments=h.CompositeList(D),Zt._Decorators=h.CompositeList(D),Qt._TypeArguments=h.CompositeList(D),Qt._Decorators=h.CompositeList(D),Qt._Types=h.CompositeList(D),nn._Types=h.CompositeList(tn);function rn(e,t){if(!e||!Array.isArray(e)||e.length===0)throw Error(`Invalid serialized type provided for conversion.`);if(e.length!==t.length)throw Error(`Mismatch in length of serialized types: expected ${t.length}, got ${e.length}.`);return e.filter(e=>Ce(e)&&!Te(e.kind)).forEach((e,n)=>{on(e,t.get(n)._initType())}),t}function an(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=sn(e.type);t.push(n)}),t}function I(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function L(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function R(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function z(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function on(e,t){return e.kind===C.ReflectionKind.objectLiteral?Hn(e,t._initObjectLiteral()):e.kind===C.ReflectionKind.class?Bn(e,t._initClassType()):e.kind===C.ReflectionKind.parameter?Wn(e,t._initParameter()):e.kind===C.ReflectionKind.function?In(e,t._initFunction()):e.kind===C.ReflectionKind.method?Ln(e,t._initMethod()):e.kind===C.ReflectionKind.infer?Pn(e,t._initInfer()):e.kind===C.ReflectionKind.union?Mn(e,t._initUnion()):e.kind===C.ReflectionKind.array?An(e,t._initArray()):e.kind===C.ReflectionKind.intersection?On(e,t._initIntersection()):e.kind===C.ReflectionKind.enum?En(e,t._initEnum()):e.kind===C.ReflectionKind.property?wn(e,t._initProperty()):e.kind===C.ReflectionKind.tuple?Sn(e,t._initTuple()):e.kind===C.ReflectionKind.tupleMember?bn(e,t._initTupleMember()):e.kind===C.ReflectionKind.propertySignature?yn(e,t._initPropertySignature()):e.kind===C.ReflectionKind.methodSignature?hn(e,t._initMethodSignature()):e.kind===C.ReflectionKind.literal?pn(e,t._initLiteral()):e.kind===C.ReflectionKind.never||e.kind===C.ReflectionKind.any||e.kind===C.ReflectionKind.unknown||e.kind===C.ReflectionKind.void||e.kind===C.ReflectionKind.object||e.kind===C.ReflectionKind.string||e.kind===C.ReflectionKind.number||e.kind===C.ReflectionKind.boolean||e.kind===C.ReflectionKind.symbol||e.kind===C.ReflectionKind.bigint||e.kind===C.ReflectionKind.null||e.kind===C.ReflectionKind.undefined||e.kind===C.ReflectionKind.regexp?dn(e,t._initSimple()):un(e,t._initOther()),t}function sn(e){if(e._isObjectLiteral)return Un(e.objectLiteral);if(e._isClassType)return Vn(e.classType);if(e._isParameter)return Gn(e.parameter);if(e._isFunction)return Rn(e.function);if(e._isInfer)return Fn(e.infer);if(e._isMethod)return zn(e.method);if(e._isUnion)return Nn(e.union);if(e._isArray)return jn(e.array);if(e._isIntersection)return kn(e.intersection);if(e._isEnum)return Dn(e.enum);if(e._isProperty)return Tn(e.property);if(e._isTuple)return Cn(e.tuple);if(e._isTupleMember)return xn(e.tupleMember);if(e._isPropertySignature)return gn(e.propertySignature);if(e._isMethodSignature)return mn(e.methodSignature);if(e._isLiteral)return fn(e.literal);if(e._isSimple)return ln(e.simple);if(e._isOther)return cn(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function cn(e){return{kind:e.kind,typeName:e.typeName||void 0}}function ln(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function un(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function dn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function fn(e){return{kind:C.ReflectionKind.literal,literal:e.literal._isString?e.literal.string:e.literal._isNumber?e.literal.number:e.literal._isBoolean?e.literal.boolean:e.literal._isBigint?{type:`bigint`,value:e.literal.bigint.value}:e.literal._isSymbol?{type:`symbol`,name:e.literal.symbol.name}:{type:`regex`,regex:e.literal.regex.regex},typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function pn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function mn(e){return{kind:C.ReflectionKind.methodSignature,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>Gn(e)):[],return:e.return.id,tags:L(e)}}function hn(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function gn(e){return{kind:C.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:vn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function _n(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?Se(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function vn(e){if(e.value!==void 0){if(e.value._isBoolean)return e.value.boolean;if(e.value._isInteger)return e.value.integer;if(e.value._isFloat)return e.value.float;if(e.value._isString)return e.value.string}}function yn(e,t){if(t.kind=e.kind,t.name=String(e.name)||``,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,e.default!==void 0){let n=t._initDefault();_n(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function bn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function xn(e){return{kind:C.ReflectionKind.tupleMember,type:e.type.id,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function Sn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{bn(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Cn(e){return{kind:C.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>xn(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function wn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===C.ReflectionVisibility.public?w.PUBLIC:e.visibility===C.ReflectionVisibility.protected?w.PROTECTED:w.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();_n(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Tn(e){return{kind:C.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:vn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===w.PUBLIC?C.ReflectionVisibility.public:e.visibility===w.PROTECTED?C.ReflectionVisibility.protected:C.ReflectionVisibility.private,abstract:e.abstract?!0:void 0,name:e.name,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function En(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&I(t._initTags(),e.tags),t}function Dn(e){return{kind:C.ReflectionKind.enum,typeName:e.typeName||void 0,indexType:e.indexType.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,values:e._hasValues()?e.values.map(e=>e):[],enum:e._hasEnumEntries()?Object.entries(e.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:z(e),tags:L(e)}}function On(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function kn(e){return{kind:C.ReflectionKind.intersection,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function An(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function jn(e){return{kind:C.ReflectionKind.array,typeName:e.typeName||void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Mn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Nn(e){return{kind:C.ReflectionKind.union,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function Pn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Fn(e){return{kind:C.ReflectionKind.infer,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function In(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{Wn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Ln(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,t.abstract=e.abstract??!1,t.visibility=e.visibility===C.ReflectionVisibility.public?w.PUBLIC:e.visibility===C.ReflectionVisibility.protected?w.PROTECTED:w.PRIVATE,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{Wn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Rn(e){return{kind:C.ReflectionKind.function,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>Gn(e)):[],return:e.return.id,indexAccessOrigin:z(e),tags:L(e)}}function zn(e){return{kind:C.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===w.PUBLIC?C.ReflectionVisibility.public:e.visibility===w.PROTECTED?C.ReflectionVisibility.protected:C.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>Gn(e)):[]}}function Bn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Vn(e){return{kind:C.ReflectionKind.class,typeName:e.typeName||void 0,classType:e.classType,globalObject:e.globalObject?!0:void 0,arguments:e._hasArguments()?e.arguments.map(e=>e.id):void 0,extendsArguments:e._hasExtendsArguments()?e.extendsArguments.map(e=>e.id):void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,superClass:e._hasSuperClass()?e.superClass.id:void 0,indexAccessOrigin:z(e),tags:L(e)}}function Hn(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Un(e){return{kind:C.ReflectionKind.objectLiteral,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Wn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.name=e.name||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===C.ReflectionVisibility.public?w.PUBLIC:e.visibility===C.ReflectionVisibility.protected?w.PROTECTED:w.PRIVATE,e.default!==void 0){let n=t._initDefault();_n(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Gn(e){return{kind:C.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:vn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===w.PUBLIC?C.ReflectionVisibility.public:e.visibility===w.PROTECTED?C.ReflectionVisibility.protected:C.ReflectionVisibility.private,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}var Kn=Object.defineProperty,B=(e,t)=>Kn(e,`name`,{value:t,configurable:!0}),V=class extends h.Struct{static{B(this,`TagsReflection`)}static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new h.ObjectSize(8,4)};_adoptAlias(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownAlias(){return h.utils.disown(this.alias)}get alias(){return h.utils.getList(0,h.TextList,this)}_hasAlias(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initAlias(e){return h.utils.initList(0,h.TextList,e,this)}set alias(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}get title(){return h.utils.getText(1,this)}set title(e){h.utils.setText(1,e,this)}get hidden(){return h.utils.getBit(0,this)}set hidden(e){h.utils.setBit(0,e,this)}get readonly(){return h.utils.getBit(1,this)}set readonly(e){h.utils.setBit(1,e,this)}get ignore(){return h.utils.getBit(2,this)}set ignore(e){h.utils.setBit(2,e,this)}get internal(){return h.utils.getBit(3,this)}set internal(e){h.utils.setBit(3,e,this)}_adoptPermission(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownPermission(){return h.utils.disown(this.permission)}get permission(){return h.utils.getList(2,h.TextList,this)}_hasPermission(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initPermission(e){return h.utils.initList(2,h.TextList,e,this)}set permission(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}get domain(){return h.utils.getText(3,this)}set domain(e){h.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}},qn={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},Jn=class extends h.Struct{static{B(this,`DefaultValueReflection_Value`)}static UNDEFINED=qn.UNDEFINED;static BOOLEAN=qn.BOOLEAN;static INTEGER=qn.INTEGER;static FLOAT=qn.FLOAT;static STRING=qn.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new h.ObjectSize(16,1)};get _isUndefined(){return h.utils.getUint16(0,this)===0}set undefined(e){h.utils.setUint16(0,0,this)}get boolean(){return h.utils.testWhich(`boolean`,h.utils.getUint16(0,this),1,this),h.utils.getBit(16,this)}get _isBoolean(){return h.utils.getUint16(0,this)===1}set boolean(e){h.utils.setUint16(0,1,this),h.utils.setBit(16,e,this)}get integer(){return h.utils.testWhich(`integer`,h.utils.getUint16(0,this),2,this),h.utils.getInt32(4,this)}get _isInteger(){return h.utils.getUint16(0,this)===2}set integer(e){h.utils.setUint16(0,2,this),h.utils.setInt32(4,e,this)}get float(){return h.utils.testWhich(`float`,h.utils.getUint16(0,this),3,this),h.utils.getFloat64(8,this)}get _isFloat(){return h.utils.getUint16(0,this)===3}set float(e){h.utils.setUint16(0,3,this),h.utils.setFloat64(8,e,this)}get string(){return h.utils.testWhich(`string`,h.utils.getUint16(0,this),4,this),h.utils.getText(0,this)}get _isString(){return h.utils.getUint16(0,this)===4}set string(e){h.utils.setUint16(0,4,this),h.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return h.utils.getUint16(0,this)}},H=class extends h.Struct{static{B(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new h.ObjectSize(16,1)};get value(){return h.utils.getAs(Jn,this)}_initValue(){return h.utils.getAs(Jn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},U=class extends h.Struct{static{B(this,`SerializedTypeReference`)}static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new h.ObjectSize(8,0)};get id(){return h.utils.getUint32(0,this)}set id(e){h.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},W=class extends h.Struct{static{B(this,`IndexAccessOrigin`)}static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new h.ObjectSize(0,2)};_adoptContainer(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownContainer(){return h.utils.disown(this.container)}get container(){return h.utils.getStruct(0,U,this)}_hasContainer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initContainer(){return h.utils.initStructAt(0,U,this)}set container(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIndex(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownIndex(){return h.utils.disown(this.index)}get index(){return h.utils.getStruct(1,U,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initIndex(){return h.utils.initStructAt(1,U,this)}set index(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Yn=class extends h.Struct{static{B(this,`EntityOptions_EntityIndexOptions`)}static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new h.ObjectSize(0,2)};_adoptNames(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownNames(){return h.utils.disown(this.names)}get names(){return h.utils.getList(0,h.TextList,this)}_hasNames(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initNames(e){return h.utils.initList(0,h.TextList,e,this)}set names(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}get options(){return h.utils.getText(1,this)}set options(e){h.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},Xn=class e extends h.Struct{static{B(this,`EntityOptions`)}static EntityIndexOptions=Yn;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new h.ObjectSize(8,5)};static _Indexes;get name(){return h.utils.getText(0,this)}set name(e){h.utils.setText(0,e,this)}get description(){return h.utils.getText(1,this)}set description(e){h.utils.setText(1,e,this)}get collection(){return h.utils.getText(2,this)}set collection(e){h.utils.setText(2,e,this)}get database(){return h.utils.getText(3,this)}set database(e){h.utils.setText(3,e,this)}get singleTableInheritance(){return h.utils.getBit(0,this)}set singleTableInheritance(e){h.utils.setBit(0,e,this)}_adoptIndexes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownIndexes(){return h.utils.disown(this.indexes)}get indexes(){return h.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initIndexes(t){return h.utils.initList(4,e._Indexes,t,this)}set indexes(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},Zn=class e extends h.Struct{static{B(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(5,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},G=class e extends h.Struct{static{B(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new h.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get globalObject(){return h.utils.getBit(16,this)}set globalObject(e){h.utils.setBit(16,e,this)}get classType(){return h.utils.getText(5,this)}set classType(e){h.utils.setText(5,e,this)}_adoptExtendsArguments(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownExtendsArguments(){return h.utils.disown(this.extendsArguments)}get extendsArguments(){return h.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initExtendsArguments(t){return h.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptArguments(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownArguments(){return h.utils.disown(this.arguments)}get arguments(){return h.utils.getList(7,e._Arguments,this)}_hasArguments(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initArguments(t){return h.utils.initList(7,e._Arguments,t,this)}set arguments(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptSuperClass(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownSuperClass(){return h.utils.disown(this.superClass)}get superClass(){return h.utils.getStruct(8,U,this)}_hasSuperClass(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initSuperClass(){return h.utils.initStructAt(8,U,this)}set superClass(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(9,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(9,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(9,this))}_initTypes(t){return h.utils.initList(9,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(9,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(10,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(10,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(10,this))}_initTags(){return h.utils.initStructAt(10,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},K=class e extends h.Struct{static{B(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(5,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}get visibility(){return h.utils.getUint16(2,this)}set visibility(e){h.utils.setUint16(2,e,this)}get readonly(){return h.utils.getBit(32,this)}set readonly(e){h.utils.setBit(32,e,this)}get optional(){return h.utils.getBit(33,this)}set optional(e){h.utils.setBit(33,e,this)}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(6,H,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,H,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Qn=class e extends h.Struct{static{B(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(6,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initParameters(t){return h.utils.initList(6,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(7,U,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,U,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},$n=class e extends h.Struct{static{B(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new h.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}get description(){return h.utils.getText(6,this)}set description(e){h.utils.setText(6,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(7,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(8,H,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initDefault(){return h.utils.initStructAt(8,H,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},er=class e extends h.Struct{static{B(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}get optional(){return h.utils.getBit(17,this)}set optional(e){h.utils.setBit(17,e,this)}get readonly(){return h.utils.getBit(18,this)}set readonly(e){h.utils.setBit(18,e,this)}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(4,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get kind(){return h.utils.getUint16(4,this)}set kind(e){h.utils.setUint16(4,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(6,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initParameters(t){return h.utils.initList(6,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(7,U,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,U,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},tr=class e extends h.Struct{static{B(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new h.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get visibility(){return h.utils.getUint16(0,this)}set visibility(e){h.utils.setUint16(0,e,this)}get abstract(){return h.utils.getBit(16,this)}set abstract(e){h.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},nr=class extends h.Struct{static{B(this,`SerializedTypeEnumEntry`)}static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new h.ObjectSize(0,2)};get name(){return h.utils.getText(0,this)}set name(e){h.utils.setText(0,e,this)}get value(){return h.utils.getText(1,this)}set value(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},rr=class e extends h.Struct{static{B(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptEnumEntries(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownEnumEntries(){return h.utils.disown(this.enumEntries)}get enumEntries(){return h.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initEnumEntries(t){return h.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptValues(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownValues(){return h.utils.disown(this.values)}get values(){return h.utils.getList(5,h.TextList,this)}_hasValues(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initValues(e){return h.utils.initList(5,h.TextList,e,this)}set values(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}_adoptIndexType(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownIndexType(){return h.utils.disown(this.indexType)}get indexType(){return h.utils.getStruct(6,U,this)}_hasIndexType(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initIndexType(){return h.utils.initStructAt(6,U,this)}set indexType(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},ir=class e extends h.Struct{static{B(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},ar=class e extends h.Struct{static{B(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},or=class e extends h.Struct{static{B(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(5,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},sr=class e extends h.Struct{static{B(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptIndex(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownIndex(){return h.utils.disown(this.index)}get index(){return h.utils.getStruct(4,U,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initIndex(){return h.utils.initStructAt(4,U,this)}set index(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(5,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},cr=class e extends h.Struct{static{B(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new h.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}get readonly(){return h.utils.getBit(17,this)}set readonly(e){h.utils.setBit(17,e,this)}get description(){return h.utils.getText(5,this)}set description(e){h.utils.setText(5,e,this)}_adoptDefault(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownDefault(){return h.utils.disown(this.default)}get default(){return h.utils.getStruct(6,H,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,H,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(7,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(8,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(8,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initTags(){return h.utils.initStructAt(8,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},lr=class e extends h.Struct{static{B(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new h.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}_adoptParameters(e){h.utils.adopt(e,h.utils.getPointer(5,this))}_disownParameters(){return h.utils.disown(this.parameters)}get parameters(){return h.utils.getList(5,e._Parameters,this)}_hasParameters(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initParameters(t){return h.utils.initList(5,e._Parameters,t,this)}set parameters(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}_adoptReturn(e){h.utils.adopt(e,h.utils.getPointer(6,this))}_disownReturn(){return h.utils.disown(this.return)}get return(){return h.utils.getStruct(6,U,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initReturn(){return h.utils.initStructAt(6,U,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(6,this))}_adoptTags(e){h.utils.adopt(e,h.utils.getPointer(7,this))}_disownTags(){return h.utils.disown(this.tags)}get tags(){return h.utils.getStruct(7,V,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,V,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},ur=class e extends h.Struct{static{B(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get name(){return h.utils.getText(4,this)}set name(e){h.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},dr=class e extends h.Struct{static{B(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new h.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},q=class e extends h.Struct{static{B(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new h.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}get optional(){return h.utils.getBit(16,this)}set optional(e){h.utils.setBit(16,e,this)}get name(){return h.utils.getText(5,this)}set name(e){h.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},fr=class e extends h.Struct{static{B(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},pr=class e extends h.Struct{static{B(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptType(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownType(){return h.utils.disown(this.type)}get type(){return h.utils.getStruct(4,U,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,U,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},mr=class e extends h.Struct{static{B(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptOrigin(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownOrigin(){return h.utils.disown(this.origin)}get origin(){return h.utils.getStruct(4,U,this)}_hasOrigin(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initOrigin(){return h.utils.initStructAt(4,U,this)}set origin(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},hr=class extends h.Struct{static{B(this,`SerializedTypeLiteralSymbol`)}static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get name(){return h.utils.getText(1,this)}set name(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},gr=class extends h.Struct{static{B(this,`SerializedTypeLiteralBigInt`)}static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get value(){return h.utils.getText(1,this)}set value(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},_r=class extends h.Struct{static{B(this,`SerializedTypeLiteralRegex`)}static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new h.ObjectSize(0,2)};get type(){return h.utils.getText(0,this)}set type(e){h.utils.setText(0,e,this)}get regex(){return h.utils.getText(1,this)}set regex(e){h.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}},J={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},vr=class extends h.Struct{static{B(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=J.SYMBOL;static STRING=J.STRING;static NUMBER=J.NUMBER;static BOOLEAN=J.BOOLEAN;static BIGINT=J.BIGINT;static REGEX=J.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new h.ObjectSize(16,5)};_adoptSymbol(e){h.utils.setUint16(2,0,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownSymbol(){return h.utils.disown(this.symbol)}get symbol(){return h.utils.testWhich(`symbol`,h.utils.getUint16(2,this),0,this),h.utils.getStruct(4,hr,this)}_hasSymbol(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initSymbol(){return h.utils.setUint16(2,0,this),h.utils.initStructAt(4,hr,this)}get _isSymbol(){return h.utils.getUint16(2,this)===0}set symbol(e){h.utils.setUint16(2,0,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}get string(){return h.utils.testWhich(`string`,h.utils.getUint16(2,this),1,this),h.utils.getText(4,this)}get _isString(){return h.utils.getUint16(2,this)===1}set string(e){h.utils.setUint16(2,1,this),h.utils.setText(4,e,this)}get number(){return h.utils.testWhich(`number`,h.utils.getUint16(2,this),2,this),h.utils.getFloat64(8,this)}get _isNumber(){return h.utils.getUint16(2,this)===2}set number(e){h.utils.setUint16(2,2,this),h.utils.setFloat64(8,e,this)}get boolean(){return h.utils.testWhich(`boolean`,h.utils.getUint16(2,this),3,this),h.utils.getBit(64,this)}get _isBoolean(){return h.utils.getUint16(2,this)===3}set boolean(e){h.utils.setUint16(2,3,this),h.utils.setBit(64,e,this)}_adoptBigint(e){h.utils.setUint16(2,4,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownBigint(){return h.utils.disown(this.bigint)}get bigint(){return h.utils.testWhich(`bigint`,h.utils.getUint16(2,this),4,this),h.utils.getStruct(4,gr,this)}_hasBigint(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initBigint(){return h.utils.setUint16(2,4,this),h.utils.initStructAt(4,gr,this)}get _isBigint(){return h.utils.getUint16(2,this)===4}set bigint(e){h.utils.setUint16(2,4,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}_adoptRegex(e){h.utils.setUint16(2,5,this),h.utils.adopt(e,h.utils.getPointer(4,this))}_disownRegex(){return h.utils.disown(this.regex)}get regex(){return h.utils.testWhich(`regex`,h.utils.getUint16(2,this),5,this),h.utils.getStruct(4,_r,this)}_hasRegex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initRegex(){return h.utils.setUint16(2,5,this),h.utils.initStructAt(4,_r,this)}get _isRegex(){return h.utils.getUint16(2,this)===5}set regex(e){h.utils.setUint16(2,5,this),h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return h.utils.getUint16(2,this)}},yr=class e extends h.Struct{static{B(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new h.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}get literal(){return h.utils.getAs(vr,this)}_initLiteral(){return h.utils.getAs(vr,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},br=class e extends h.Struct{static{B(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new h.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}_adoptTypeArguments(e){h.utils.adopt(e,h.utils.getPointer(1,this))}_disownTypeArguments(){return h.utils.disown(this.typeArguments)}get typeArguments(){return h.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initTypeArguments(t){return h.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){h.utils.adopt(e,h.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return h.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return h.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){h.utils.copyFrom(e,h.utils.getPointer(2,this))}_adoptDecorators(e){h.utils.adopt(e,h.utils.getPointer(3,this))}_disownDecorators(){return h.utils.disown(this.decorators)}get decorators(){return h.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!h.utils.isNull(h.utils.getPointer(3,this))}_initDecorators(t){return h.utils.initList(3,e._Decorators,t,this)}set decorators(e){h.utils.copyFrom(e,h.utils.getPointer(3,this))}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(4,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(4,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTypes(t){return h.utils.initList(4,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},xr=class extends h.Struct{static{B(this,`SerializedTypeOther`)}static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new h.ObjectSize(8,1)};get typeName(){return h.utils.getText(0,this)}set typeName(e){h.utils.setText(0,e,this)}get kind(){return h.utils.getUint16(0,this)}set kind(e){h.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}},Y={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22},Sr=class extends h.Struct{static{B(this,`SerializedType_Type`)}static SIMPLE=Y.SIMPLE;static LITERAL=Y.LITERAL;static TEMPLATE_LITERAL=Y.TEMPLATE_LITERAL;static PARAMETER=Y.PARAMETER;static FUNCTION=Y.FUNCTION;static METHOD=Y.METHOD;static PROPERTY=Y.PROPERTY;static PROMISE=Y.PROMISE;static CLASS_TYPE=Y.CLASS_TYPE;static ENUM=Y.ENUM;static UNION=Y.UNION;static INTERSECTION=Y.INTERSECTION;static ARRAY=Y.ARRAY;static OBJECT_LITERAL=Y.OBJECT_LITERAL;static INDEX_SIGNATURE=Y.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=Y.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=Y.METHOD_SIGNATURE;static TYPE_PARAMETER=Y.TYPE_PARAMETER;static INFER=Y.INFER;static TUPLE=Y.TUPLE;static TUPLE_MEMBER=Y.TUPLE_MEMBER;static REST=Y.REST;static OTHER=Y.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new h.ObjectSize(8,1)};_adoptSimple(e){h.utils.setUint16(0,0,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownSimple(){return h.utils.disown(this.simple)}get simple(){return h.utils.testWhich(`simple`,h.utils.getUint16(0,this),0,this),h.utils.getStruct(0,mr,this)}_hasSimple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initSimple(){return h.utils.setUint16(0,0,this),h.utils.initStructAt(0,mr,this)}get _isSimple(){return h.utils.getUint16(0,this)===0}set simple(e){h.utils.setUint16(0,0,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptLiteral(e){h.utils.setUint16(0,1,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownLiteral(){return h.utils.disown(this.literal)}get literal(){return h.utils.testWhich(`literal`,h.utils.getUint16(0,this),1,this),h.utils.getStruct(0,yr,this)}_hasLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initLiteral(){return h.utils.setUint16(0,1,this),h.utils.initStructAt(0,yr,this)}get _isLiteral(){return h.utils.getUint16(0,this)===1}set literal(e){h.utils.setUint16(0,1,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTemplateLiteral(e){h.utils.setUint16(0,2,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTemplateLiteral(){return h.utils.disown(this.templateLiteral)}get templateLiteral(){return h.utils.testWhich(`templateLiteral`,h.utils.getUint16(0,this),2,this),h.utils.getStruct(0,br,this)}_hasTemplateLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTemplateLiteral(){return h.utils.setUint16(0,2,this),h.utils.initStructAt(0,br,this)}get _isTemplateLiteral(){return h.utils.getUint16(0,this)===2}set templateLiteral(e){h.utils.setUint16(0,2,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptParameter(e){h.utils.setUint16(0,3,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownParameter(){return h.utils.disown(this.parameter)}get parameter(){return h.utils.testWhich(`parameter`,h.utils.getUint16(0,this),3,this),h.utils.getStruct(0,K,this)}_hasParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initParameter(){return h.utils.setUint16(0,3,this),h.utils.initStructAt(0,K,this)}get _isParameter(){return h.utils.getUint16(0,this)===3}set parameter(e){h.utils.setUint16(0,3,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptFunction(e){h.utils.setUint16(0,4,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownFunction(){return h.utils.disown(this.function)}get function(){return h.utils.testWhich(`function`,h.utils.getUint16(0,this),4,this),h.utils.getStruct(0,er,this)}_hasFunction(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initFunction(){return h.utils.setUint16(0,4,this),h.utils.initStructAt(0,er,this)}get _isFunction(){return h.utils.getUint16(0,this)===4}set function(e){h.utils.setUint16(0,4,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptMethod(e){h.utils.setUint16(0,5,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownMethod(){return h.utils.disown(this.method)}get method(){return h.utils.testWhich(`method`,h.utils.getUint16(0,this),5,this),h.utils.getStruct(0,Qn,this)}_hasMethod(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethod(){return h.utils.setUint16(0,5,this),h.utils.initStructAt(0,Qn,this)}get _isMethod(){return h.utils.getUint16(0,this)===5}set method(e){h.utils.setUint16(0,5,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptProperty(e){h.utils.setUint16(0,6,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownProperty(){return h.utils.disown(this.property)}get property(){return h.utils.testWhich(`property`,h.utils.getUint16(0,this),6,this),h.utils.getStruct(0,$n,this)}_hasProperty(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initProperty(){return h.utils.setUint16(0,6,this),h.utils.initStructAt(0,$n,this)}get _isProperty(){return h.utils.getUint16(0,this)===6}set property(e){h.utils.setUint16(0,6,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptPromise(e){h.utils.setUint16(0,7,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownPromise(){return h.utils.disown(this.promise)}get promise(){return h.utils.testWhich(`promise`,h.utils.getUint16(0,this),7,this),h.utils.getStruct(0,tr,this)}_hasPromise(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPromise(){return h.utils.setUint16(0,7,this),h.utils.initStructAt(0,tr,this)}get _isPromise(){return h.utils.getUint16(0,this)===7}set promise(e){h.utils.setUint16(0,7,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptClassType(e){h.utils.setUint16(0,8,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownClassType(){return h.utils.disown(this.classType)}get classType(){return h.utils.testWhich(`classType`,h.utils.getUint16(0,this),8,this),h.utils.getStruct(0,G,this)}_hasClassType(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initClassType(){return h.utils.setUint16(0,8,this),h.utils.initStructAt(0,G,this)}get _isClassType(){return h.utils.getUint16(0,this)===8}set classType(e){h.utils.setUint16(0,8,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptEnum(e){h.utils.setUint16(0,9,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownEnum(){return h.utils.disown(this.enum)}get enum(){return h.utils.testWhich(`enum`,h.utils.getUint16(0,this),9,this),h.utils.getStruct(0,rr,this)}_hasEnum(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initEnum(){return h.utils.setUint16(0,9,this),h.utils.initStructAt(0,rr,this)}get _isEnum(){return h.utils.getUint16(0,this)===9}set enum(e){h.utils.setUint16(0,9,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptUnion(e){h.utils.setUint16(0,10,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownUnion(){return h.utils.disown(this.union)}get union(){return h.utils.testWhich(`union`,h.utils.getUint16(0,this),10,this),h.utils.getStruct(0,ir,this)}_hasUnion(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initUnion(){return h.utils.setUint16(0,10,this),h.utils.initStructAt(0,ir,this)}get _isUnion(){return h.utils.getUint16(0,this)===10}set union(e){h.utils.setUint16(0,10,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIntersection(e){h.utils.setUint16(0,11,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownIntersection(){return h.utils.disown(this.intersection)}get intersection(){return h.utils.testWhich(`intersection`,h.utils.getUint16(0,this),11,this),h.utils.getStruct(0,ar,this)}_hasIntersection(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIntersection(){return h.utils.setUint16(0,11,this),h.utils.initStructAt(0,ar,this)}get _isIntersection(){return h.utils.getUint16(0,this)===11}set intersection(e){h.utils.setUint16(0,11,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptArray(e){h.utils.setUint16(0,12,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownArray(){return h.utils.disown(this.array)}get array(){return h.utils.testWhich(`array`,h.utils.getUint16(0,this),12,this),h.utils.getStruct(0,or,this)}_hasArray(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initArray(){return h.utils.setUint16(0,12,this),h.utils.initStructAt(0,or,this)}get _isArray(){return h.utils.getUint16(0,this)===12}set array(e){h.utils.setUint16(0,12,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptObjectLiteral(e){h.utils.setUint16(0,13,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownObjectLiteral(){return h.utils.disown(this.objectLiteral)}get objectLiteral(){return h.utils.testWhich(`objectLiteral`,h.utils.getUint16(0,this),13,this),h.utils.getStruct(0,Zn,this)}_hasObjectLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initObjectLiteral(){return h.utils.setUint16(0,13,this),h.utils.initStructAt(0,Zn,this)}get _isObjectLiteral(){return h.utils.getUint16(0,this)===13}set objectLiteral(e){h.utils.setUint16(0,13,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptIndexSignature(e){h.utils.setUint16(0,14,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownIndexSignature(){return h.utils.disown(this.indexSignature)}get indexSignature(){return h.utils.testWhich(`indexSignature`,h.utils.getUint16(0,this),14,this),h.utils.getStruct(0,sr,this)}_hasIndexSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIndexSignature(){return h.utils.setUint16(0,14,this),h.utils.initStructAt(0,sr,this)}get _isIndexSignature(){return h.utils.getUint16(0,this)===14}set indexSignature(e){h.utils.setUint16(0,14,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptPropertySignature(e){h.utils.setUint16(0,15,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownPropertySignature(){return h.utils.disown(this.propertySignature)}get propertySignature(){return h.utils.testWhich(`propertySignature`,h.utils.getUint16(0,this),15,this),h.utils.getStruct(0,cr,this)}_hasPropertySignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPropertySignature(){return h.utils.setUint16(0,15,this),h.utils.initStructAt(0,cr,this)}get _isPropertySignature(){return h.utils.getUint16(0,this)===15}set propertySignature(e){h.utils.setUint16(0,15,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptMethodSignature(e){h.utils.setUint16(0,16,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownMethodSignature(){return h.utils.disown(this.methodSignature)}get methodSignature(){return h.utils.testWhich(`methodSignature`,h.utils.getUint16(0,this),16,this),h.utils.getStruct(0,lr,this)}_hasMethodSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethodSignature(){return h.utils.setUint16(0,16,this),h.utils.initStructAt(0,lr,this)}get _isMethodSignature(){return h.utils.getUint16(0,this)===16}set methodSignature(e){h.utils.setUint16(0,16,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTypeParameter(e){h.utils.setUint16(0,17,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTypeParameter(){return h.utils.disown(this.typeParameter)}get typeParameter(){return h.utils.testWhich(`typeParameter`,h.utils.getUint16(0,this),17,this),h.utils.getStruct(0,ur,this)}_hasTypeParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypeParameter(){return h.utils.setUint16(0,17,this),h.utils.initStructAt(0,ur,this)}get _isTypeParameter(){return h.utils.getUint16(0,this)===17}set typeParameter(e){h.utils.setUint16(0,17,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptInfer(e){h.utils.setUint16(0,18,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownInfer(){return h.utils.disown(this.infer)}get infer(){return h.utils.testWhich(`infer`,h.utils.getUint16(0,this),18,this),h.utils.getStruct(0,dr,this)}_hasInfer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initInfer(){return h.utils.setUint16(0,18,this),h.utils.initStructAt(0,dr,this)}get _isInfer(){return h.utils.getUint16(0,this)===18}set infer(e){h.utils.setUint16(0,18,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTuple(e){h.utils.setUint16(0,19,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTuple(){return h.utils.disown(this.tuple)}get tuple(){return h.utils.testWhich(`tuple`,h.utils.getUint16(0,this),19,this),h.utils.getStruct(0,fr,this)}_hasTuple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTuple(){return h.utils.setUint16(0,19,this),h.utils.initStructAt(0,fr,this)}get _isTuple(){return h.utils.getUint16(0,this)===19}set tuple(e){h.utils.setUint16(0,19,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptTupleMember(e){h.utils.setUint16(0,20,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTupleMember(){return h.utils.disown(this.tupleMember)}get tupleMember(){return h.utils.testWhich(`tupleMember`,h.utils.getUint16(0,this),20,this),h.utils.getStruct(0,q,this)}_hasTupleMember(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTupleMember(){return h.utils.setUint16(0,20,this),h.utils.initStructAt(0,q,this)}get _isTupleMember(){return h.utils.getUint16(0,this)===20}set tupleMember(e){h.utils.setUint16(0,20,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptRest(e){h.utils.setUint16(0,21,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownRest(){return h.utils.disown(this.rest)}get rest(){return h.utils.testWhich(`rest`,h.utils.getUint16(0,this),21,this),h.utils.getStruct(0,pr,this)}_hasRest(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initRest(){return h.utils.setUint16(0,21,this),h.utils.initStructAt(0,pr,this)}get _isRest(){return h.utils.getUint16(0,this)===21}set rest(e){h.utils.setUint16(0,21,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}_adoptOther(e){h.utils.setUint16(0,22,this),h.utils.adopt(e,h.utils.getPointer(0,this))}_disownOther(){return h.utils.disown(this.other)}get other(){return h.utils.testWhich(`other`,h.utils.getUint16(0,this),22,this),h.utils.getStruct(0,xr,this)}_hasOther(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initOther(){return h.utils.setUint16(0,22,this),h.utils.initStructAt(0,xr,this)}get _isOther(){return h.utils.getUint16(0,this)===22}set other(e){h.utils.setUint16(0,22,this),h.utils.copyFrom(e,h.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return h.utils.getUint16(0,this)}},Cr=class extends h.Struct{static{B(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new h.ObjectSize(8,1)};get type(){return h.utils.getAs(Sr,this)}_initType(){return h.utils.getAs(Sr,this)}toString(){return`SerializedType_`+super.toString()}},X=class e extends h.Struct{static{B(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new h.ObjectSize(0,1)};static _Types;_adoptTypes(e){h.utils.adopt(e,h.utils.getPointer(0,this))}_disownTypes(){return h.utils.disown(this.types)}get types(){return h.utils.getList(0,e._Types,this)}_hasTypes(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypes(t){return h.utils.initList(0,e._Types,t,this)}set types(e){h.utils.copyFrom(e,h.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};Xn._Indexes=h.CompositeList(Yn),Zn._TypeArguments=h.CompositeList(U),Zn._Decorators=h.CompositeList(U),Zn._Types=h.CompositeList(U),G._TypeArguments=h.CompositeList(U),G._Decorators=h.CompositeList(U),G._ExtendsArguments=h.CompositeList(U),G._Arguments=h.CompositeList(U),G._Types=h.CompositeList(U),K._TypeArguments=h.CompositeList(U),K._Decorators=h.CompositeList(U),Qn._TypeArguments=h.CompositeList(U),Qn._Decorators=h.CompositeList(U),Qn._Parameters=h.CompositeList(K),$n._TypeArguments=h.CompositeList(U),$n._Decorators=h.CompositeList(U),er._TypeArguments=h.CompositeList(U),er._Decorators=h.CompositeList(U),er._Parameters=h.CompositeList(K),tr._TypeArguments=h.CompositeList(U),tr._Decorators=h.CompositeList(U),rr._TypeArguments=h.CompositeList(U),rr._Decorators=h.CompositeList(U),rr._EnumEntries=h.CompositeList(nr),ir._TypeArguments=h.CompositeList(U),ir._Decorators=h.CompositeList(U),ir._Types=h.CompositeList(U),ar._TypeArguments=h.CompositeList(U),ar._Decorators=h.CompositeList(U),ar._Types=h.CompositeList(U),or._TypeArguments=h.CompositeList(U),or._Decorators=h.CompositeList(U),sr._TypeArguments=h.CompositeList(U),sr._Decorators=h.CompositeList(U),cr._TypeArguments=h.CompositeList(U),cr._Decorators=h.CompositeList(U),lr._TypeArguments=h.CompositeList(U),lr._Decorators=h.CompositeList(U),lr._Parameters=h.CompositeList(K),ur._TypeArguments=h.CompositeList(U),ur._Decorators=h.CompositeList(U),dr._TypeArguments=h.CompositeList(U),dr._Decorators=h.CompositeList(U),q._TypeArguments=h.CompositeList(U),q._Decorators=h.CompositeList(U),fr._TypeArguments=h.CompositeList(U),fr._Decorators=h.CompositeList(U),fr._Types=h.CompositeList(q),pr._TypeArguments=h.CompositeList(U),pr._Decorators=h.CompositeList(U),mr._TypeArguments=h.CompositeList(U),mr._Decorators=h.CompositeList(U),yr._TypeArguments=h.CompositeList(U),yr._Decorators=h.CompositeList(U),br._TypeArguments=h.CompositeList(U),br._Decorators=h.CompositeList(U),br._Types=h.CompositeList(U),X._Types=h.CompositeList(Cr);function wr(e,t){return Er(e.type,t??e.getDefaultValue())}function Tr(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function Er(e,t){return ke(t)?`undefined`:Oe(t)?`null`:e.kind===C.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===C.ReflectionKind.string||e.kind===C.ReflectionKind.literal&&ie(e.literal)?Tr(t):e.kind===C.ReflectionKind.enum?Dr(e).kind===C.ReflectionKind.string?Tr(t):`${String(t)}`:e.kind===C.ReflectionKind.union?kr(e)?Tr(t):`${String(t)}`:e.kind===C.ReflectionKind.array?Tr(De.stringify(t)):e.kind===C.ReflectionKind.object||e.kind===C.ReflectionKind.objectLiteral?De.stringify(t):e.kind===C.ReflectionKind.property||e.kind===C.ReflectionKind.parameter?Er(e.type,t):String(t)}function Dr(e){if(e.kind!==C.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=Ee(e.values.filter(e=>e!=null),e=>ie(e)?{kind:C.ReflectionKind.string}:{kind:C.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&ie(t[0])?{kind:C.ReflectionKind.string}:{kind:C.ReflectionKind.number}}function Or(e){if(e.kind===C.ReflectionKind.union&&e.types.length>0)return Ee(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function kr(e){return Or(e).some(e=>e.kind===C.ReflectionKind.string||e.kind===C.ReflectionKind.literal&&ie(e.literal))}function Ar(e){return m(e.dataPath,`reflections`)}const jr={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function Mr(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync(m(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if(g(e)!==e){if(t.length===1)return`
2
- import ${g(e)} from "${t[0]}";
3
- export { ${g(e)} as "${e}" }`;if(t.length>1)return`
4
- import ${t[1]===`*`?`* as ${g(e)}`:`{ ${t[1]} as ${g(e)} }`} from "${t[0]}";
5
- export { ${g(e)} as "${e}" }`}else if(t.length===1)return`
1
+ import{t as e}from"./chunk-CF6LXmkI.mjs";import{t}from"./react-optimized-DPBN2hOh.mjs";import"./components-MTvNCZDU.mjs";import"./plugin-G4qbpIjB.mjs";import"./runtime-cDYyRPa0.mjs";import"./types-C5ggNT4K.mjs";import{createComponent as n,createIntrinsic as r,memo as i,mergeProps as a}from"@alloy-js/core/jsx-runtime";import{transformAsync as o}from"@babel/core";import{LogLevelLabel as s}from"@storm-software/config-tools/types";import{findFileExtension as c,findFileExtensionSafe as ee}from"@stryke/path/file-path-fns";import{isParentPath as l}from"@stryke/path/is-parent-path";import{isSetObject as te}from"@stryke/type-checks/is-set-object";import u from"defu";import{isFunction as ne}from"@stryke/type-checks/is-function";import"@stryke/type-checks/is-object";import{isSetString as re}from"@stryke/type-checks/is-set-string";import ie from"chalk";import ae from"@babel/generator";import"@babel/parser";import{declare as oe}from"@babel/helper-plugin-utils";import"@storm-software/config-tools/logger";import"@storm-software/config-tools/utilities/colors";import"@stryke/helpers/noop";import{kebabCase as se}from"@stryke/string-format/kebab-case";import{titleCase as d}from"@stryke/string-format/title-case";import*as ce from"@babel/types";import{isString as f}from"@stryke/type-checks/is-string";import{toArray as p}from"@stryke/convert/to-array";import{isDirectory as le}from"@stryke/fs/is-file";import{listFiles as ue}from"@stryke/fs/list-files";import{appendPath as de}from"@stryke/path/append";import{isAbsolutePath as fe}from"@stryke/path/is-type";import{joinPaths as m}from"@stryke/path/join-paths";import{replacePath as pe}from"@stryke/path/replace";import{defineGenerator as me,loadConfig as he,resolveConfig as ge,transform as _e}from"automd";import{loadConfig as ve}from"c12";import ye from"markdown-toc";import{parseTypeDefinition as be}from"@stryke/convert/parse-type-definition";import{ENV_PREFIXES as xe}from"@stryke/env/types";import{existsSync as h}from"@stryke/fs/exists";import{createDirectory as Se}from"@stryke/fs/helpers";import{joinPaths as Ce}from"@stryke/path/join";import{constantCase as we}from"@stryke/string-format/constant-case";import{isInteger as Te,isSetObject as Ee,isString as De,isUndefined as Oe}from"@stryke/type-checks";import*as g from"@stryke/capnp";import{getUniqueBy as ke}from"@stryke/helpers/get-unique";import{StormJSON as Ae}from"@stryke/json/storm-json";import{isNull as je}from"@stryke/type-checks/is-null";import{isUndefined as Me}from"@stryke/type-checks/is-undefined";import{readFileBuffer as Ne,readFileBufferSync as Pe,writeFileBuffer as Fe}from"@stryke/fs/buffer";import{existsSync as Ie}from"node:fs";import{resolvePackage as Le}from"@stryke/fs/resolve";import{isEmptyObject as Re}from"@stryke/type-checks/is-empty-object";import{build as ze}from"esbuild";import{omit as Be}from"@stryke/helpers/omit";import{camelCase as _}from"@stryke/string-format/camel-case";import"@stryke/hash/murmurhash";import Ve,{DiagnosticCategory as He}from"typescript";import{For as Ue,Show as We,code as v,computed as Ge,createResource as Ke,splitProps as qe}from"@alloy-js/core";import{ClassDeclaration as Je,ClassMethod as Ye,ElseIfClause as Xe,FunctionDeclaration as Ze,IfStatement as Qe,NewExpression as $e,TypeDeclaration as et,VarDeclaration as tt}from"@alloy-js/typescript";import{usePowerlines as nt}from"@powerlines/alloy/core/contexts/context";import{refkey as rt}from"@powerlines/alloy/helpers/refkey";import{BuiltinFile as it}from"@powerlines/alloy/typescript/components/builtin-file";import{TSDoc as y,TSDocExample as at,TSDocLink as ot,TSDocParam as st,TSDocRemarks as b,TSDocReturns as ct,TSDocThrows as lt}from"@powerlines/alloy/typescript/components/tsdoc";import{TypeScriptInterface as ut}from"@powerlines/alloy/typescript/components/typescript-interface";import{TypescriptObject as dt}from"@powerlines/alloy/typescript/components/typescript-object";import{loadEnv as ft,loadEnvFile as pt}from"@stryke/env/load-env";import"@alloy-js/markdown";import"@powerlines/alloy/markdown/components/markdown-file";import"@powerlines/alloy/markdown/components/markdown-table";import mt from"@vitejs/plugin-react";import"@stryke/fs/json";var x={};import*as ht from"@deepkit/type";e(x,ht);function S(e){return re(e)?e:Array.isArray(e)&&e.length>0?S(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function gt(e,t){return!!(S(t)&&e.some(e=>Array.isArray(e)&&S(e[0])===S(t)))}function _t(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?ne(t[0])?t[0](e):t[0]:ne(t)?t(e):t}catch{return t[0]}}function vt(e,t,n,r){if(Array.isArray(r)&&r.length>0&&r[0]){if(r.length>2&&r[2]&&ne(r[2])&&!r[2](t,n)){e.log(s.TRACE,`Skipping filtered Babel plugin ${ie.bold.cyanBright(S(r)||`unnamed`)} for ${n}`);return}return r.length>2?[_t(e,r),r[1],r[2]]:[_t(e,r),r[1],null]}return[_t(e,r),{},null]}let yt=ae;`default`in yt&&(yt=yt.default);const bt=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#D8B4FE`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`,`#8B5CF6`],xt=(e,t)=>(n,...r)=>e(n,` ${ie.inverse.hex(bt[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%bt.length]||bt[0])(` ${d(t)} `)} ${r.join(` `)} `);function St(e,t){let n=n=>oe((r,i,a)=>{r.cache.using(()=>n.meta.checksum),r.assertVersion(`^7.0.0-0`);let o=xt(n.log,e);o(s.TRACE,`Initializing the ${ie.bold.cyanBright(e)} Babel plugin`);let c=t({log:o,name:e,api:r,options:i,context:n,dirname:a});return c.name=e,o(s.TRACE,`Completed initialization of the ${ie.bold.cyanBright(e)} Babel plugin`),c});return n.$$name=e,n}function Ct(e,t){Et(e.scope.getProgramParent().path,t)}function wt(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function Tt(e){let t=new Map;return e.traverse({ImportDeclaration(e){wt(e)&&t.set(e.node.source.value,e)}}),t}function Et(e,t){Tt(e).get(t.module)||e.unshiftContainer(`body`,ce.importDeclaration([ce.importSpecifier(ce.identifier(t.name||t.imported),ce.identifier(t.imported))],ce.stringLiteral(t.module)))}var Dt=(e={})=>({name:`babel`,config(){if(te(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=u(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if(l(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(s.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(s.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>vt(this,t,n,e)).filter((e,t,n)=>e&&!gt(n,e)),i=this.config.transform.babel.presets.map(e=>vt(this,t,n,e)).filter((e,t,n)=>e&&!gt(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(i)&&i.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes(ee(n))&&!gt(r,`@babel/plugin-syntax-typescript`)&&!gt(i,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:c(n)===`.tsx`}]);let a=await o(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],u(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:i.map(t=>Array.isArray(t)&&t.length>=2?[t[0],u(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!a?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:a.code,id:n}}}),Ot=(e={})=>({name:`automd`,async config(){let t=await he(m(this.workspaceConfig.workspaceRoot,this.config.projectRoot),e);return(!t.prefix||!Array.isArray(t.prefix))&&(t.prefix=p(t.prefix??[])),t.prefix.includes(`automd`)||t.prefix.push(`automd`),t.prefix.includes(`powerlines`)||t.prefix.push(`powerlines`),{automd:u(t??{},{configFile:e.configFile,allowIssues:!0,dir:this.config.projectRoot,watch:!1,input:`README.md`,toc:{maxDepth:6,bullets:`-`}})}},async configResolved(){if(this.config.framework&&!p(this.config.automd.prefix).includes(this.config.framework)&&(this.config.automd.prefix=p(this.config.automd.prefix).concat(this.config.framework)),this.config.automd.configFile){let{config:e}=await ve({cwd:this.config.automd.dir,configFile:this.config.automd.configFile,defaults:{ignore:[`**/node_modules`,`**/dist`,`**/.*`],dir:this.config.automd.dir}});this.config.automd=ge(u(this.config.automd,{...e,prefix:p(e.prefix??[])}))}this.config.automd.input=(await Promise.all(p(this.config.automd.input).map(async e=>e.includes(`*`)?ue(fe(e)?e:de(e,this.config.projectRoot),{ignore:this.config.automd.ignore}):fe(e)?e:de(e,this.config.projectRoot)))).flat(),this.config.automd.output&&!fe(this.config.automd.output)&&(this.config.automd.output=de(this.config.automd.output,this.config.projectRoot)),this.config.automd.generators??={},this.config.automd.toc!==!1&&(this.config.automd.generators.toc??={name:`toc`,generate:e=>{let t=this.config.automd.toc??{};return{contents:ye(e.block.md,{...t,maxdepth:t.maxDepth,first1:t.firstH1}).content}}})},async docs(){await Promise.all(p(this.config.automd.input).map(async e=>{let t=await this.fs.read(e);if(t){let n=await _e(t,this.config.automd);if(n.hasIssues&&this.config.automd.allowIssues===!1)throw Error(`AutoMD found issues in file "${e}". Please resolve the issues or set \`allowIssues\` to true in the plugin configuration to ignore them.`);n.hasChanged&&await this.fs.write(de(this.config.automd.output?le(this.config.automd.output)?pe(e,this.config.automd.output):this.config.automd.output:e,this.config.projectRoot),n.contents)}}))}});const C={PUBLIC:0,PROTECTED:1,PRIVATE:2};var w=class extends g.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new g.ObjectSize(8,4)};_adoptAlias(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownAlias(){return g.utils.disown(this.alias)}get alias(){return g.utils.getList(0,g.TextList,this)}_hasAlias(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initAlias(e){return g.utils.initList(0,g.TextList,e,this)}set alias(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}get title(){return g.utils.getText(1,this)}set title(e){g.utils.setText(1,e,this)}get hidden(){return g.utils.getBit(0,this)}set hidden(e){g.utils.setBit(0,e,this)}get readonly(){return g.utils.getBit(1,this)}set readonly(e){g.utils.setBit(1,e,this)}get ignore(){return g.utils.getBit(2,this)}set ignore(e){g.utils.setBit(2,e,this)}get internal(){return g.utils.getBit(3,this)}set internal(e){g.utils.setBit(3,e,this)}_adoptPermission(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownPermission(){return g.utils.disown(this.permission)}get permission(){return g.utils.getList(2,g.TextList,this)}_hasPermission(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initPermission(e){return g.utils.initList(2,g.TextList,e,this)}set permission(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}get domain(){return g.utils.getText(3,this)}set domain(e){g.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const T={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var kt=class extends g.Struct{static UNDEFINED=T.UNDEFINED;static BOOLEAN=T.BOOLEAN;static INTEGER=T.INTEGER;static FLOAT=T.FLOAT;static STRING=T.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new g.ObjectSize(16,1)};get _isUndefined(){return g.utils.getUint16(0,this)===0}set undefined(e){g.utils.setUint16(0,0,this)}get boolean(){return g.utils.testWhich(`boolean`,g.utils.getUint16(0,this),1,this),g.utils.getBit(16,this)}get _isBoolean(){return g.utils.getUint16(0,this)===1}set boolean(e){g.utils.setUint16(0,1,this),g.utils.setBit(16,e,this)}get integer(){return g.utils.testWhich(`integer`,g.utils.getUint16(0,this),2,this),g.utils.getInt32(4,this)}get _isInteger(){return g.utils.getUint16(0,this)===2}set integer(e){g.utils.setUint16(0,2,this),g.utils.setInt32(4,e,this)}get float(){return g.utils.testWhich(`float`,g.utils.getUint16(0,this),3,this),g.utils.getFloat64(8,this)}get _isFloat(){return g.utils.getUint16(0,this)===3}set float(e){g.utils.setUint16(0,3,this),g.utils.setFloat64(8,e,this)}get string(){return g.utils.testWhich(`string`,g.utils.getUint16(0,this),4,this),g.utils.getText(0,this)}get _isString(){return g.utils.getUint16(0,this)===4}set string(e){g.utils.setUint16(0,4,this),g.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return g.utils.getUint16(0,this)}},E=class extends g.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new g.ObjectSize(16,1)};get value(){return g.utils.getAs(kt,this)}_initValue(){return g.utils.getAs(kt,this)}toString(){return`DefaultValueReflection_`+super.toString()}},D=class extends g.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new g.ObjectSize(8,0)};get id(){return g.utils.getUint32(0,this)}set id(e){g.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},O=class extends g.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new g.ObjectSize(0,2)};_adoptContainer(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownContainer(){return g.utils.disown(this.container)}get container(){return g.utils.getStruct(0,D,this)}_hasContainer(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initContainer(){return g.utils.initStructAt(0,D,this)}set container(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIndex(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownIndex(){return g.utils.disown(this.index)}get index(){return g.utils.getStruct(1,D,this)}_hasIndex(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initIndex(){return g.utils.initStructAt(1,D,this)}set index(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},At=class extends g.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new g.ObjectSize(0,2)};_adoptNames(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownNames(){return g.utils.disown(this.names)}get names(){return g.utils.getList(0,g.TextList,this)}_hasNames(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initNames(e){return g.utils.initList(0,g.TextList,e,this)}set names(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}get options(){return g.utils.getText(1,this)}set options(e){g.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},jt=class e extends g.Struct{static EntityIndexOptions=At;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new g.ObjectSize(8,5)};get name(){return g.utils.getText(0,this)}set name(e){g.utils.setText(0,e,this)}get description(){return g.utils.getText(1,this)}set description(e){g.utils.setText(1,e,this)}get collection(){return g.utils.getText(2,this)}set collection(e){g.utils.setText(2,e,this)}get database(){return g.utils.getText(3,this)}set database(e){g.utils.setText(3,e,this)}get singleTableInheritance(){return g.utils.getBit(0,this)}set singleTableInheritance(e){g.utils.setBit(0,e,this)}_adoptIndexes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownIndexes(){return g.utils.disown(this.indexes)}get indexes(){return g.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initIndexes(t){return g.utils.initList(4,e._Indexes,t,this)}set indexes(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},Mt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new g.ObjectSize(8,6)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(5,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initTags(){return g.utils.initStructAt(5,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},k=class e extends g.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new g.ObjectSize(8,11)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get globalObject(){return g.utils.getBit(16,this)}set globalObject(e){g.utils.setBit(16,e,this)}get classType(){return g.utils.getText(5,this)}set classType(e){g.utils.setText(5,e,this)}_adoptExtendsArguments(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownExtendsArguments(){return g.utils.disown(this.extendsArguments)}get extendsArguments(){return g.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initExtendsArguments(t){return g.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptArguments(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownArguments(){return g.utils.disown(this.arguments)}get arguments(){return g.utils.getList(7,e._Arguments,this)}_hasArguments(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initArguments(t){return g.utils.initList(7,e._Arguments,t,this)}set arguments(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptSuperClass(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownSuperClass(){return g.utils.disown(this.superClass)}get superClass(){return g.utils.getStruct(8,D,this)}_hasSuperClass(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initSuperClass(){return g.utils.initStructAt(8,D,this)}set superClass(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(9,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(9,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(9,this))}_initTypes(t){return g.utils.initList(9,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(9,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(10,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(10,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(10,this))}_initTags(){return g.utils.initStructAt(10,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},A=class e extends g.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new g.ObjectSize(8,8)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(5,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initType(){return g.utils.initStructAt(5,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}get visibility(){return g.utils.getUint16(2,this)}set visibility(e){g.utils.setUint16(2,e,this)}get readonly(){return g.utils.getBit(32,this)}set readonly(e){g.utils.setBit(32,e,this)}get optional(){return g.utils.getBit(33,this)}set optional(e){g.utils.setBit(33,e,this)}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(6,E,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initDefault(){return g.utils.initStructAt(6,E,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Nt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new g.ObjectSize(8,8)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(6,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initParameters(t){return g.utils.initList(6,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(7,D,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initReturn(){return g.utils.initStructAt(7,D,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Pt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new g.ObjectSize(8,9)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}get description(){return g.utils.getText(6,this)}set description(e){g.utils.setText(6,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(7,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initType(){return g.utils.initStructAt(7,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(8,E,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initDefault(){return g.utils.initStructAt(8,E,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},Ft=class e extends g.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new g.ObjectSize(8,8)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(6,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initParameters(t){return g.utils.initList(6,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(7,D,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initReturn(){return g.utils.initStructAt(7,D,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},It=class e extends g.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new g.ObjectSize(8,4)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},Lt=class extends g.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new g.ObjectSize(0,2)};get name(){return g.utils.getText(0,this)}set name(e){g.utils.setText(0,e,this)}get value(){return g.utils.getText(1,this)}set value(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},Rt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new g.ObjectSize(8,8)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptEnumEntries(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownEnumEntries(){return g.utils.disown(this.enumEntries)}get enumEntries(){return g.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initEnumEntries(t){return g.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptValues(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownValues(){return g.utils.disown(this.values)}get values(){return g.utils.getList(5,g.TextList,this)}_hasValues(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initValues(e){return g.utils.initList(5,g.TextList,e,this)}set values(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}_adoptIndexType(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownIndexType(){return g.utils.disown(this.indexType)}get indexType(){return g.utils.getStruct(6,D,this)}_hasIndexType(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initIndexType(){return g.utils.initStructAt(6,D,this)}set indexType(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},zt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},Bt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},Vt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new g.ObjectSize(8,6)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(5,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initTags(){return g.utils.initStructAt(5,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Ht=class e extends g.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new g.ObjectSize(8,6)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptIndex(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownIndex(){return g.utils.disown(this.index)}get index(){return g.utils.getStruct(4,D,this)}_hasIndex(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initIndex(){return g.utils.initStructAt(4,D,this)}set index(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(5,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initType(){return g.utils.initStructAt(5,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},Ut=class e extends g.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new g.ObjectSize(8,9)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}get readonly(){return g.utils.getBit(17,this)}set readonly(e){g.utils.setBit(17,e,this)}get description(){return g.utils.getText(5,this)}set description(e){g.utils.setText(5,e,this)}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(6,E,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initDefault(){return g.utils.initStructAt(6,E,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(7,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initType(){return g.utils.initStructAt(7,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(8,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initTags(){return g.utils.initStructAt(8,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Wt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new g.ObjectSize(8,8)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(5,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initParameters(t){return g.utils.initList(5,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(6,D,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initReturn(){return g.utils.initStructAt(6,D,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,w,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,w,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Gt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},Kt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new g.ObjectSize(8,4)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},qt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new g.ObjectSize(8,6)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},j=class e extends g.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Jt=class e extends g.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,D,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,D,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Yt=class e extends g.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptOrigin(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownOrigin(){return g.utils.disown(this.origin)}get origin(){return g.utils.getStruct(4,D,this)}_hasOrigin(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initOrigin(){return g.utils.initStructAt(4,D,this)}set origin(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Xt=class extends g.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get name(){return g.utils.getText(1,this)}set name(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},Zt=class extends g.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get value(){return g.utils.getText(1,this)}set value(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},Qt=class extends g.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get regex(){return g.utils.getText(1,this)}set regex(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}};const M={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var $t=class extends g.Struct{static SYMBOL=M.SYMBOL;static STRING=M.STRING;static NUMBER=M.NUMBER;static BOOLEAN=M.BOOLEAN;static BIGINT=M.BIGINT;static REGEX=M.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new g.ObjectSize(16,5)};_adoptSymbol(e){g.utils.setUint16(2,0,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownSymbol(){return g.utils.disown(this.symbol)}get symbol(){return g.utils.testWhich(`symbol`,g.utils.getUint16(2,this),0,this),g.utils.getStruct(4,Xt,this)}_hasSymbol(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initSymbol(){return g.utils.setUint16(2,0,this),g.utils.initStructAt(4,Xt,this)}get _isSymbol(){return g.utils.getUint16(2,this)===0}set symbol(e){g.utils.setUint16(2,0,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}get string(){return g.utils.testWhich(`string`,g.utils.getUint16(2,this),1,this),g.utils.getText(4,this)}get _isString(){return g.utils.getUint16(2,this)===1}set string(e){g.utils.setUint16(2,1,this),g.utils.setText(4,e,this)}get number(){return g.utils.testWhich(`number`,g.utils.getUint16(2,this),2,this),g.utils.getFloat64(8,this)}get _isNumber(){return g.utils.getUint16(2,this)===2}set number(e){g.utils.setUint16(2,2,this),g.utils.setFloat64(8,e,this)}get boolean(){return g.utils.testWhich(`boolean`,g.utils.getUint16(2,this),3,this),g.utils.getBit(64,this)}get _isBoolean(){return g.utils.getUint16(2,this)===3}set boolean(e){g.utils.setUint16(2,3,this),g.utils.setBit(64,e,this)}_adoptBigint(e){g.utils.setUint16(2,4,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownBigint(){return g.utils.disown(this.bigint)}get bigint(){return g.utils.testWhich(`bigint`,g.utils.getUint16(2,this),4,this),g.utils.getStruct(4,Zt,this)}_hasBigint(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initBigint(){return g.utils.setUint16(2,4,this),g.utils.initStructAt(4,Zt,this)}get _isBigint(){return g.utils.getUint16(2,this)===4}set bigint(e){g.utils.setUint16(2,4,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptRegex(e){g.utils.setUint16(2,5,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownRegex(){return g.utils.disown(this.regex)}get regex(){return g.utils.testWhich(`regex`,g.utils.getUint16(2,this),5,this),g.utils.getStruct(4,Qt,this)}_hasRegex(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initRegex(){return g.utils.setUint16(2,5,this),g.utils.initStructAt(4,Qt,this)}get _isRegex(){return g.utils.getUint16(2,this)===5}set regex(e){g.utils.setUint16(2,5,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return g.utils.getUint16(2,this)}},en=class e extends g.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new g.ObjectSize(16,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get literal(){return g.utils.getAs($t,this)}_initLiteral(){return g.utils.getAs($t,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},N=class e extends g.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new g.ObjectSize(8,5)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,O,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,O,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},tn=class extends g.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new g.ObjectSize(8,1)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const P={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var nn=class extends g.Struct{static SIMPLE=P.SIMPLE;static LITERAL=P.LITERAL;static TEMPLATE_LITERAL=P.TEMPLATE_LITERAL;static PARAMETER=P.PARAMETER;static FUNCTION=P.FUNCTION;static METHOD=P.METHOD;static PROPERTY=P.PROPERTY;static PROMISE=P.PROMISE;static CLASS_TYPE=P.CLASS_TYPE;static ENUM=P.ENUM;static UNION=P.UNION;static INTERSECTION=P.INTERSECTION;static ARRAY=P.ARRAY;static OBJECT_LITERAL=P.OBJECT_LITERAL;static INDEX_SIGNATURE=P.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=P.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=P.METHOD_SIGNATURE;static TYPE_PARAMETER=P.TYPE_PARAMETER;static INFER=P.INFER;static TUPLE=P.TUPLE;static TUPLE_MEMBER=P.TUPLE_MEMBER;static REST=P.REST;static OTHER=P.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new g.ObjectSize(8,1)};_adoptSimple(e){g.utils.setUint16(0,0,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownSimple(){return g.utils.disown(this.simple)}get simple(){return g.utils.testWhich(`simple`,g.utils.getUint16(0,this),0,this),g.utils.getStruct(0,Yt,this)}_hasSimple(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initSimple(){return g.utils.setUint16(0,0,this),g.utils.initStructAt(0,Yt,this)}get _isSimple(){return g.utils.getUint16(0,this)===0}set simple(e){g.utils.setUint16(0,0,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptLiteral(e){g.utils.setUint16(0,1,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownLiteral(){return g.utils.disown(this.literal)}get literal(){return g.utils.testWhich(`literal`,g.utils.getUint16(0,this),1,this),g.utils.getStruct(0,en,this)}_hasLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initLiteral(){return g.utils.setUint16(0,1,this),g.utils.initStructAt(0,en,this)}get _isLiteral(){return g.utils.getUint16(0,this)===1}set literal(e){g.utils.setUint16(0,1,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTemplateLiteral(e){g.utils.setUint16(0,2,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTemplateLiteral(){return g.utils.disown(this.templateLiteral)}get templateLiteral(){return g.utils.testWhich(`templateLiteral`,g.utils.getUint16(0,this),2,this),g.utils.getStruct(0,N,this)}_hasTemplateLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTemplateLiteral(){return g.utils.setUint16(0,2,this),g.utils.initStructAt(0,N,this)}get _isTemplateLiteral(){return g.utils.getUint16(0,this)===2}set templateLiteral(e){g.utils.setUint16(0,2,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptParameter(e){g.utils.setUint16(0,3,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownParameter(){return g.utils.disown(this.parameter)}get parameter(){return g.utils.testWhich(`parameter`,g.utils.getUint16(0,this),3,this),g.utils.getStruct(0,A,this)}_hasParameter(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initParameter(){return g.utils.setUint16(0,3,this),g.utils.initStructAt(0,A,this)}get _isParameter(){return g.utils.getUint16(0,this)===3}set parameter(e){g.utils.setUint16(0,3,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptFunction(e){g.utils.setUint16(0,4,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownFunction(){return g.utils.disown(this.function)}get function(){return g.utils.testWhich(`function`,g.utils.getUint16(0,this),4,this),g.utils.getStruct(0,Ft,this)}_hasFunction(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initFunction(){return g.utils.setUint16(0,4,this),g.utils.initStructAt(0,Ft,this)}get _isFunction(){return g.utils.getUint16(0,this)===4}set function(e){g.utils.setUint16(0,4,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptMethod(e){g.utils.setUint16(0,5,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownMethod(){return g.utils.disown(this.method)}get method(){return g.utils.testWhich(`method`,g.utils.getUint16(0,this),5,this),g.utils.getStruct(0,Nt,this)}_hasMethod(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initMethod(){return g.utils.setUint16(0,5,this),g.utils.initStructAt(0,Nt,this)}get _isMethod(){return g.utils.getUint16(0,this)===5}set method(e){g.utils.setUint16(0,5,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptProperty(e){g.utils.setUint16(0,6,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownProperty(){return g.utils.disown(this.property)}get property(){return g.utils.testWhich(`property`,g.utils.getUint16(0,this),6,this),g.utils.getStruct(0,Pt,this)}_hasProperty(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initProperty(){return g.utils.setUint16(0,6,this),g.utils.initStructAt(0,Pt,this)}get _isProperty(){return g.utils.getUint16(0,this)===6}set property(e){g.utils.setUint16(0,6,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptPromise(e){g.utils.setUint16(0,7,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownPromise(){return g.utils.disown(this.promise)}get promise(){return g.utils.testWhich(`promise`,g.utils.getUint16(0,this),7,this),g.utils.getStruct(0,It,this)}_hasPromise(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initPromise(){return g.utils.setUint16(0,7,this),g.utils.initStructAt(0,It,this)}get _isPromise(){return g.utils.getUint16(0,this)===7}set promise(e){g.utils.setUint16(0,7,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptClassType(e){g.utils.setUint16(0,8,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownClassType(){return g.utils.disown(this.classType)}get classType(){return g.utils.testWhich(`classType`,g.utils.getUint16(0,this),8,this),g.utils.getStruct(0,k,this)}_hasClassType(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initClassType(){return g.utils.setUint16(0,8,this),g.utils.initStructAt(0,k,this)}get _isClassType(){return g.utils.getUint16(0,this)===8}set classType(e){g.utils.setUint16(0,8,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptEnum(e){g.utils.setUint16(0,9,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownEnum(){return g.utils.disown(this.enum)}get enum(){return g.utils.testWhich(`enum`,g.utils.getUint16(0,this),9,this),g.utils.getStruct(0,Rt,this)}_hasEnum(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initEnum(){return g.utils.setUint16(0,9,this),g.utils.initStructAt(0,Rt,this)}get _isEnum(){return g.utils.getUint16(0,this)===9}set enum(e){g.utils.setUint16(0,9,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptUnion(e){g.utils.setUint16(0,10,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownUnion(){return g.utils.disown(this.union)}get union(){return g.utils.testWhich(`union`,g.utils.getUint16(0,this),10,this),g.utils.getStruct(0,zt,this)}_hasUnion(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initUnion(){return g.utils.setUint16(0,10,this),g.utils.initStructAt(0,zt,this)}get _isUnion(){return g.utils.getUint16(0,this)===10}set union(e){g.utils.setUint16(0,10,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIntersection(e){g.utils.setUint16(0,11,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownIntersection(){return g.utils.disown(this.intersection)}get intersection(){return g.utils.testWhich(`intersection`,g.utils.getUint16(0,this),11,this),g.utils.getStruct(0,Bt,this)}_hasIntersection(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initIntersection(){return g.utils.setUint16(0,11,this),g.utils.initStructAt(0,Bt,this)}get _isIntersection(){return g.utils.getUint16(0,this)===11}set intersection(e){g.utils.setUint16(0,11,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptArray(e){g.utils.setUint16(0,12,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownArray(){return g.utils.disown(this.array)}get array(){return g.utils.testWhich(`array`,g.utils.getUint16(0,this),12,this),g.utils.getStruct(0,Vt,this)}_hasArray(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initArray(){return g.utils.setUint16(0,12,this),g.utils.initStructAt(0,Vt,this)}get _isArray(){return g.utils.getUint16(0,this)===12}set array(e){g.utils.setUint16(0,12,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptObjectLiteral(e){g.utils.setUint16(0,13,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownObjectLiteral(){return g.utils.disown(this.objectLiteral)}get objectLiteral(){return g.utils.testWhich(`objectLiteral`,g.utils.getUint16(0,this),13,this),g.utils.getStruct(0,Mt,this)}_hasObjectLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initObjectLiteral(){return g.utils.setUint16(0,13,this),g.utils.initStructAt(0,Mt,this)}get _isObjectLiteral(){return g.utils.getUint16(0,this)===13}set objectLiteral(e){g.utils.setUint16(0,13,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIndexSignature(e){g.utils.setUint16(0,14,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownIndexSignature(){return g.utils.disown(this.indexSignature)}get indexSignature(){return g.utils.testWhich(`indexSignature`,g.utils.getUint16(0,this),14,this),g.utils.getStruct(0,Ht,this)}_hasIndexSignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initIndexSignature(){return g.utils.setUint16(0,14,this),g.utils.initStructAt(0,Ht,this)}get _isIndexSignature(){return g.utils.getUint16(0,this)===14}set indexSignature(e){g.utils.setUint16(0,14,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptPropertySignature(e){g.utils.setUint16(0,15,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownPropertySignature(){return g.utils.disown(this.propertySignature)}get propertySignature(){return g.utils.testWhich(`propertySignature`,g.utils.getUint16(0,this),15,this),g.utils.getStruct(0,Ut,this)}_hasPropertySignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initPropertySignature(){return g.utils.setUint16(0,15,this),g.utils.initStructAt(0,Ut,this)}get _isPropertySignature(){return g.utils.getUint16(0,this)===15}set propertySignature(e){g.utils.setUint16(0,15,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptMethodSignature(e){g.utils.setUint16(0,16,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownMethodSignature(){return g.utils.disown(this.methodSignature)}get methodSignature(){return g.utils.testWhich(`methodSignature`,g.utils.getUint16(0,this),16,this),g.utils.getStruct(0,Wt,this)}_hasMethodSignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initMethodSignature(){return g.utils.setUint16(0,16,this),g.utils.initStructAt(0,Wt,this)}get _isMethodSignature(){return g.utils.getUint16(0,this)===16}set methodSignature(e){g.utils.setUint16(0,16,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTypeParameter(e){g.utils.setUint16(0,17,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTypeParameter(){return g.utils.disown(this.typeParameter)}get typeParameter(){return g.utils.testWhich(`typeParameter`,g.utils.getUint16(0,this),17,this),g.utils.getStruct(0,Gt,this)}_hasTypeParameter(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTypeParameter(){return g.utils.setUint16(0,17,this),g.utils.initStructAt(0,Gt,this)}get _isTypeParameter(){return g.utils.getUint16(0,this)===17}set typeParameter(e){g.utils.setUint16(0,17,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptInfer(e){g.utils.setUint16(0,18,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownInfer(){return g.utils.disown(this.infer)}get infer(){return g.utils.testWhich(`infer`,g.utils.getUint16(0,this),18,this),g.utils.getStruct(0,Kt,this)}_hasInfer(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initInfer(){return g.utils.setUint16(0,18,this),g.utils.initStructAt(0,Kt,this)}get _isInfer(){return g.utils.getUint16(0,this)===18}set infer(e){g.utils.setUint16(0,18,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTuple(e){g.utils.setUint16(0,19,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTuple(){return g.utils.disown(this.tuple)}get tuple(){return g.utils.testWhich(`tuple`,g.utils.getUint16(0,this),19,this),g.utils.getStruct(0,j,this)}_hasTuple(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTuple(){return g.utils.setUint16(0,19,this),g.utils.initStructAt(0,j,this)}get _isTuple(){return g.utils.getUint16(0,this)===19}set tuple(e){g.utils.setUint16(0,19,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTupleMember(e){g.utils.setUint16(0,20,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTupleMember(){return g.utils.disown(this.tupleMember)}get tupleMember(){return g.utils.testWhich(`tupleMember`,g.utils.getUint16(0,this),20,this),g.utils.getStruct(0,qt,this)}_hasTupleMember(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTupleMember(){return g.utils.setUint16(0,20,this),g.utils.initStructAt(0,qt,this)}get _isTupleMember(){return g.utils.getUint16(0,this)===20}set tupleMember(e){g.utils.setUint16(0,20,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptRest(e){g.utils.setUint16(0,21,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownRest(){return g.utils.disown(this.rest)}get rest(){return g.utils.testWhich(`rest`,g.utils.getUint16(0,this),21,this),g.utils.getStruct(0,Jt,this)}_hasRest(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initRest(){return g.utils.setUint16(0,21,this),g.utils.initStructAt(0,Jt,this)}get _isRest(){return g.utils.getUint16(0,this)===21}set rest(e){g.utils.setUint16(0,21,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptOther(e){g.utils.setUint16(0,22,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownOther(){return g.utils.disown(this.other)}get other(){return g.utils.testWhich(`other`,g.utils.getUint16(0,this),22,this),g.utils.getStruct(0,tn,this)}_hasOther(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initOther(){return g.utils.setUint16(0,22,this),g.utils.initStructAt(0,tn,this)}get _isOther(){return g.utils.getUint16(0,this)===22}set other(e){g.utils.setUint16(0,22,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return g.utils.getUint16(0,this)}},rn=class extends g.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new g.ObjectSize(8,1)};get type(){return g.utils.getAs(nn,this)}_initType(){return g.utils.getAs(nn,this)}toString(){return`SerializedType_`+super.toString()}},an=class e extends g.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new g.ObjectSize(0,1)};_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(0,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTypes(t){return g.utils.initList(0,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};jt._Indexes=g.CompositeList(At),Mt._TypeArguments=g.CompositeList(D),Mt._Decorators=g.CompositeList(D),Mt._Types=g.CompositeList(D),k._TypeArguments=g.CompositeList(D),k._Decorators=g.CompositeList(D),k._ExtendsArguments=g.CompositeList(D),k._Arguments=g.CompositeList(D),k._Types=g.CompositeList(D),A._TypeArguments=g.CompositeList(D),A._Decorators=g.CompositeList(D),Nt._TypeArguments=g.CompositeList(D),Nt._Decorators=g.CompositeList(D),Nt._Parameters=g.CompositeList(A),Pt._TypeArguments=g.CompositeList(D),Pt._Decorators=g.CompositeList(D),Ft._TypeArguments=g.CompositeList(D),Ft._Decorators=g.CompositeList(D),Ft._Parameters=g.CompositeList(A),It._TypeArguments=g.CompositeList(D),It._Decorators=g.CompositeList(D),Rt._TypeArguments=g.CompositeList(D),Rt._Decorators=g.CompositeList(D),Rt._EnumEntries=g.CompositeList(Lt),zt._TypeArguments=g.CompositeList(D),zt._Decorators=g.CompositeList(D),zt._Types=g.CompositeList(D),Bt._TypeArguments=g.CompositeList(D),Bt._Decorators=g.CompositeList(D),Bt._Types=g.CompositeList(D),Vt._TypeArguments=g.CompositeList(D),Vt._Decorators=g.CompositeList(D),Ht._TypeArguments=g.CompositeList(D),Ht._Decorators=g.CompositeList(D),Ut._TypeArguments=g.CompositeList(D),Ut._Decorators=g.CompositeList(D),Wt._TypeArguments=g.CompositeList(D),Wt._Decorators=g.CompositeList(D),Wt._Parameters=g.CompositeList(A),Gt._TypeArguments=g.CompositeList(D),Gt._Decorators=g.CompositeList(D),Kt._TypeArguments=g.CompositeList(D),Kt._Decorators=g.CompositeList(D),qt._TypeArguments=g.CompositeList(D),qt._Decorators=g.CompositeList(D),j._TypeArguments=g.CompositeList(D),j._Decorators=g.CompositeList(D),j._Types=g.CompositeList(qt),Jt._TypeArguments=g.CompositeList(D),Jt._Decorators=g.CompositeList(D),Yt._TypeArguments=g.CompositeList(D),Yt._Decorators=g.CompositeList(D),en._TypeArguments=g.CompositeList(D),en._Decorators=g.CompositeList(D),N._TypeArguments=g.CompositeList(D),N._Decorators=g.CompositeList(D),N._Types=g.CompositeList(D),an._Types=g.CompositeList(rn);function on(e,t){if(!e||!Array.isArray(e)||e.length===0)throw Error(`Invalid serialized type provided for conversion.`);if(e.length!==t.length)throw Error(`Mismatch in length of serialized types: expected ${t.length}, got ${e.length}.`);return e.filter(e=>Ee(e)&&!Oe(e.kind)).forEach((e,n)=>{cn(e,t.get(n)._initType())}),t}function sn(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=ln(e.type);t.push(n)}),t}function F(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function I(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function L(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function R(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function cn(e,t){return e.kind===x.ReflectionKind.objectLiteral?Wn(e,t._initObjectLiteral()):e.kind===x.ReflectionKind.class?Hn(e,t._initClassType()):e.kind===x.ReflectionKind.parameter?Kn(e,t._initParameter()):e.kind===x.ReflectionKind.function?Rn(e,t._initFunction()):e.kind===x.ReflectionKind.method?zn(e,t._initMethod()):e.kind===x.ReflectionKind.infer?In(e,t._initInfer()):e.kind===x.ReflectionKind.union?Pn(e,t._initUnion()):e.kind===x.ReflectionKind.array?Mn(e,t._initArray()):e.kind===x.ReflectionKind.intersection?An(e,t._initIntersection()):e.kind===x.ReflectionKind.enum?On(e,t._initEnum()):e.kind===x.ReflectionKind.property?En(e,t._initProperty()):e.kind===x.ReflectionKind.tuple?wn(e,t._initTuple()):e.kind===x.ReflectionKind.tupleMember?Sn(e,t._initTupleMember()):e.kind===x.ReflectionKind.propertySignature?xn(e,t._initPropertySignature()):e.kind===x.ReflectionKind.methodSignature?_n(e,t._initMethodSignature()):e.kind===x.ReflectionKind.literal?hn(e,t._initLiteral()):e.kind===x.ReflectionKind.never||e.kind===x.ReflectionKind.any||e.kind===x.ReflectionKind.unknown||e.kind===x.ReflectionKind.void||e.kind===x.ReflectionKind.object||e.kind===x.ReflectionKind.string||e.kind===x.ReflectionKind.number||e.kind===x.ReflectionKind.boolean||e.kind===x.ReflectionKind.symbol||e.kind===x.ReflectionKind.bigint||e.kind===x.ReflectionKind.null||e.kind===x.ReflectionKind.undefined||e.kind===x.ReflectionKind.regexp?pn(e,t._initSimple()):fn(e,t._initOther()),t}function ln(e){if(e._isObjectLiteral)return Gn(e.objectLiteral);if(e._isClassType)return Un(e.classType);if(e._isParameter)return qn(e.parameter);if(e._isFunction)return Bn(e.function);if(e._isInfer)return Ln(e.infer);if(e._isMethod)return Vn(e.method);if(e._isUnion)return Fn(e.union);if(e._isArray)return Nn(e.array);if(e._isIntersection)return jn(e.intersection);if(e._isEnum)return kn(e.enum);if(e._isProperty)return Dn(e.property);if(e._isTuple)return Tn(e.tuple);if(e._isTupleMember)return Cn(e.tupleMember);if(e._isPropertySignature)return vn(e.propertySignature);if(e._isMethodSignature)return gn(e.methodSignature);if(e._isLiteral)return mn(e.literal);if(e._isSimple)return dn(e.simple);if(e._isOther)return un(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function un(e){return{kind:e.kind,typeName:e.typeName||void 0}}function dn(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function fn(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function pn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function mn(e){return{kind:x.ReflectionKind.literal,literal:e.literal._isString?e.literal.string:e.literal._isNumber?e.literal.number:e.literal._isBoolean?e.literal.boolean:e.literal._isBigint?{type:`bigint`,value:e.literal.bigint.value}:e.literal._isSymbol?{type:`symbol`,name:e.literal.symbol.name}:{type:`regex`,regex:e.literal.regex.regex},typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function hn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function gn(e){return{kind:x.ReflectionKind.methodSignature,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>qn(e)):[],return:e.return.id,tags:I(e)}}function _n(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function vn(e){return{kind:x.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:bn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e),tags:I(e)}}function yn(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?Te(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function bn(e){if(e.value!==void 0){if(e.value._isBoolean)return e.value.boolean;if(e.value._isInteger)return e.value.integer;if(e.value._isFloat)return e.value.float;if(e.value._isString)return e.value.string}}function xn(e,t){if(t.kind=e.kind,t.name=String(e.name)||``,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,e.default!==void 0){let n=t._initDefault();yn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Sn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Cn(e){return{kind:x.ReflectionKind.tupleMember,type:e.type.id,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function wn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Sn(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Tn(e){return{kind:x.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>Cn(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function En(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===x.ReflectionVisibility.public?C.PUBLIC:e.visibility===x.ReflectionVisibility.protected?C.PROTECTED:C.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();yn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Dn(e){return{kind:x.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:bn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===C.PUBLIC?x.ReflectionVisibility.public:e.visibility===C.PROTECTED?x.ReflectionVisibility.protected:x.ReflectionVisibility.private,abstract:e.abstract?!0:void 0,name:e.name,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e),tags:I(e)}}function On(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&F(t._initTags(),e.tags),t}function kn(e){return{kind:x.ReflectionKind.enum,typeName:e.typeName||void 0,indexType:e.indexType.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,values:e._hasValues()?e.values.map(e=>e):[],enum:e._hasEnumEntries()?Object.entries(e.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:R(e),tags:I(e)}}function An(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function jn(e){return{kind:x.ReflectionKind.intersection,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function Mn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Nn(e){return{kind:x.ReflectionKind.array,typeName:e.typeName||void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e),tags:I(e)}}function Pn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Fn(e){return{kind:x.ReflectionKind.union,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function In(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Ln(e){return{kind:x.ReflectionKind.infer,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)}}function Rn(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{Kn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function zn(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,t.abstract=e.abstract??!1,t.visibility=e.visibility===x.ReflectionVisibility.public?C.PUBLIC:e.visibility===x.ReflectionVisibility.protected?C.PROTECTED:C.PRIVATE,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{Kn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Bn(e){return{kind:x.ReflectionKind.function,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>qn(e)):[],return:e.return.id,indexAccessOrigin:R(e),tags:I(e)}}function Vn(e){return{kind:x.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===C.PUBLIC?x.ReflectionVisibility.public:e.visibility===C.PROTECTED?x.ReflectionVisibility.protected:x.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>qn(e)):[]}}function Hn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Un(e){return{kind:x.ReflectionKind.class,typeName:e.typeName||void 0,classType:e.classType,globalObject:e.globalObject?!0:void 0,arguments:e._hasArguments()?e.arguments.map(e=>e.id):void 0,extendsArguments:e._hasExtendsArguments()?e.extendsArguments.map(e=>e.id):void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,superClass:e._hasSuperClass()?e.superClass.id:void 0,indexAccessOrigin:R(e),tags:I(e)}}function Wn(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Gn(e){return{kind:x.ReflectionKind.objectLiteral,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e),tags:I(e)}}function Kn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.name=e.name||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===x.ReflectionVisibility.public?C.PUBLIC:e.visibility===x.ReflectionVisibility.protected?C.PROTECTED:C.PRIVATE,e.default!==void 0){let n=t._initDefault();yn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function qn(e){return{kind:x.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:bn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===C.PUBLIC?x.ReflectionVisibility.public:e.visibility===C.PROTECTED?x.ReflectionVisibility.protected:x.ReflectionVisibility.private,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e),tags:I(e)}}var Jn=Object.defineProperty,z=(e,t)=>Jn(e,`name`,{value:t,configurable:!0}),B=class extends g.Struct{static{z(this,`TagsReflection`)}static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new g.ObjectSize(8,4)};_adoptAlias(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownAlias(){return g.utils.disown(this.alias)}get alias(){return g.utils.getList(0,g.TextList,this)}_hasAlias(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initAlias(e){return g.utils.initList(0,g.TextList,e,this)}set alias(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}get title(){return g.utils.getText(1,this)}set title(e){g.utils.setText(1,e,this)}get hidden(){return g.utils.getBit(0,this)}set hidden(e){g.utils.setBit(0,e,this)}get readonly(){return g.utils.getBit(1,this)}set readonly(e){g.utils.setBit(1,e,this)}get ignore(){return g.utils.getBit(2,this)}set ignore(e){g.utils.setBit(2,e,this)}get internal(){return g.utils.getBit(3,this)}set internal(e){g.utils.setBit(3,e,this)}_adoptPermission(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownPermission(){return g.utils.disown(this.permission)}get permission(){return g.utils.getList(2,g.TextList,this)}_hasPermission(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initPermission(e){return g.utils.initList(2,g.TextList,e,this)}set permission(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}get domain(){return g.utils.getText(3,this)}set domain(e){g.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}},V={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},Yn=class extends g.Struct{static{z(this,`DefaultValueReflection_Value`)}static UNDEFINED=V.UNDEFINED;static BOOLEAN=V.BOOLEAN;static INTEGER=V.INTEGER;static FLOAT=V.FLOAT;static STRING=V.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new g.ObjectSize(16,1)};get _isUndefined(){return g.utils.getUint16(0,this)===0}set undefined(e){g.utils.setUint16(0,0,this)}get boolean(){return g.utils.testWhich(`boolean`,g.utils.getUint16(0,this),1,this),g.utils.getBit(16,this)}get _isBoolean(){return g.utils.getUint16(0,this)===1}set boolean(e){g.utils.setUint16(0,1,this),g.utils.setBit(16,e,this)}get integer(){return g.utils.testWhich(`integer`,g.utils.getUint16(0,this),2,this),g.utils.getInt32(4,this)}get _isInteger(){return g.utils.getUint16(0,this)===2}set integer(e){g.utils.setUint16(0,2,this),g.utils.setInt32(4,e,this)}get float(){return g.utils.testWhich(`float`,g.utils.getUint16(0,this),3,this),g.utils.getFloat64(8,this)}get _isFloat(){return g.utils.getUint16(0,this)===3}set float(e){g.utils.setUint16(0,3,this),g.utils.setFloat64(8,e,this)}get string(){return g.utils.testWhich(`string`,g.utils.getUint16(0,this),4,this),g.utils.getText(0,this)}get _isString(){return g.utils.getUint16(0,this)===4}set string(e){g.utils.setUint16(0,4,this),g.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return g.utils.getUint16(0,this)}},H=class extends g.Struct{static{z(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new g.ObjectSize(16,1)};get value(){return g.utils.getAs(Yn,this)}_initValue(){return g.utils.getAs(Yn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},U=class extends g.Struct{static{z(this,`SerializedTypeReference`)}static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new g.ObjectSize(8,0)};get id(){return g.utils.getUint32(0,this)}set id(e){g.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},W=class extends g.Struct{static{z(this,`IndexAccessOrigin`)}static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new g.ObjectSize(0,2)};_adoptContainer(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownContainer(){return g.utils.disown(this.container)}get container(){return g.utils.getStruct(0,U,this)}_hasContainer(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initContainer(){return g.utils.initStructAt(0,U,this)}set container(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIndex(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownIndex(){return g.utils.disown(this.index)}get index(){return g.utils.getStruct(1,U,this)}_hasIndex(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initIndex(){return g.utils.initStructAt(1,U,this)}set index(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Xn=class extends g.Struct{static{z(this,`EntityOptions_EntityIndexOptions`)}static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new g.ObjectSize(0,2)};_adoptNames(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownNames(){return g.utils.disown(this.names)}get names(){return g.utils.getList(0,g.TextList,this)}_hasNames(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initNames(e){return g.utils.initList(0,g.TextList,e,this)}set names(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}get options(){return g.utils.getText(1,this)}set options(e){g.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},Zn=class e extends g.Struct{static{z(this,`EntityOptions`)}static EntityIndexOptions=Xn;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new g.ObjectSize(8,5)};static _Indexes;get name(){return g.utils.getText(0,this)}set name(e){g.utils.setText(0,e,this)}get description(){return g.utils.getText(1,this)}set description(e){g.utils.setText(1,e,this)}get collection(){return g.utils.getText(2,this)}set collection(e){g.utils.setText(2,e,this)}get database(){return g.utils.getText(3,this)}set database(e){g.utils.setText(3,e,this)}get singleTableInheritance(){return g.utils.getBit(0,this)}set singleTableInheritance(e){g.utils.setBit(0,e,this)}_adoptIndexes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownIndexes(){return g.utils.disown(this.indexes)}get indexes(){return g.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initIndexes(t){return g.utils.initList(4,e._Indexes,t,this)}set indexes(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},G=class e extends g.Struct{static{z(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new g.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(5,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initTags(){return g.utils.initStructAt(5,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},K=class e extends g.Struct{static{z(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new g.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get globalObject(){return g.utils.getBit(16,this)}set globalObject(e){g.utils.setBit(16,e,this)}get classType(){return g.utils.getText(5,this)}set classType(e){g.utils.setText(5,e,this)}_adoptExtendsArguments(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownExtendsArguments(){return g.utils.disown(this.extendsArguments)}get extendsArguments(){return g.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initExtendsArguments(t){return g.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptArguments(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownArguments(){return g.utils.disown(this.arguments)}get arguments(){return g.utils.getList(7,e._Arguments,this)}_hasArguments(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initArguments(t){return g.utils.initList(7,e._Arguments,t,this)}set arguments(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptSuperClass(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownSuperClass(){return g.utils.disown(this.superClass)}get superClass(){return g.utils.getStruct(8,U,this)}_hasSuperClass(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initSuperClass(){return g.utils.initStructAt(8,U,this)}set superClass(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(9,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(9,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(9,this))}_initTypes(t){return g.utils.initList(9,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(9,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(10,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(10,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(10,this))}_initTags(){return g.utils.initStructAt(10,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},q=class e extends g.Struct{static{z(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new g.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(5,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initType(){return g.utils.initStructAt(5,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}get visibility(){return g.utils.getUint16(2,this)}set visibility(e){g.utils.setUint16(2,e,this)}get readonly(){return g.utils.getBit(32,this)}set readonly(e){g.utils.setBit(32,e,this)}get optional(){return g.utils.getBit(33,this)}set optional(e){g.utils.setBit(33,e,this)}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(6,H,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initDefault(){return g.utils.initStructAt(6,H,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Qn=class e extends g.Struct{static{z(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new g.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(6,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initParameters(t){return g.utils.initList(6,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(7,U,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initReturn(){return g.utils.initStructAt(7,U,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},$n=class e extends g.Struct{static{z(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new g.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}get description(){return g.utils.getText(6,this)}set description(e){g.utils.setText(6,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(7,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initType(){return g.utils.initStructAt(7,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(8,H,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initDefault(){return g.utils.initStructAt(8,H,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},er=class e extends g.Struct{static{z(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new g.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}get optional(){return g.utils.getBit(17,this)}set optional(e){g.utils.setBit(17,e,this)}get readonly(){return g.utils.getBit(18,this)}set readonly(e){g.utils.setBit(18,e,this)}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(4,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTags(){return g.utils.initStructAt(4,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get kind(){return g.utils.getUint16(4,this)}set kind(e){g.utils.setUint16(4,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(6,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initParameters(t){return g.utils.initList(6,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(7,U,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initReturn(){return g.utils.initStructAt(7,U,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},tr=class e extends g.Struct{static{z(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new g.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get visibility(){return g.utils.getUint16(0,this)}set visibility(e){g.utils.setUint16(0,e,this)}get abstract(){return g.utils.getBit(16,this)}set abstract(e){g.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},nr=class extends g.Struct{static{z(this,`SerializedTypeEnumEntry`)}static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new g.ObjectSize(0,2)};get name(){return g.utils.getText(0,this)}set name(e){g.utils.setText(0,e,this)}get value(){return g.utils.getText(1,this)}set value(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},rr=class e extends g.Struct{static{z(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new g.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptEnumEntries(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownEnumEntries(){return g.utils.disown(this.enumEntries)}get enumEntries(){return g.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initEnumEntries(t){return g.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptValues(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownValues(){return g.utils.disown(this.values)}get values(){return g.utils.getList(5,g.TextList,this)}_hasValues(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initValues(e){return g.utils.initList(5,g.TextList,e,this)}set values(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}_adoptIndexType(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownIndexType(){return g.utils.disown(this.indexType)}get indexType(){return g.utils.getStruct(6,U,this)}_hasIndexType(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initIndexType(){return g.utils.initStructAt(6,U,this)}set indexType(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},ir=class e extends g.Struct{static{z(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},ar=class e extends g.Struct{static{z(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},or=class e extends g.Struct{static{z(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new g.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(5,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initTags(){return g.utils.initStructAt(5,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},sr=class e extends g.Struct{static{z(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new g.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptIndex(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownIndex(){return g.utils.disown(this.index)}get index(){return g.utils.getStruct(4,U,this)}_hasIndex(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initIndex(){return g.utils.initStructAt(4,U,this)}set index(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(5,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initType(){return g.utils.initStructAt(5,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},cr=class e extends g.Struct{static{z(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new g.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}get readonly(){return g.utils.getBit(17,this)}set readonly(e){g.utils.setBit(17,e,this)}get description(){return g.utils.getText(5,this)}set description(e){g.utils.setText(5,e,this)}_adoptDefault(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownDefault(){return g.utils.disown(this.default)}get default(){return g.utils.getStruct(6,H,this)}_hasDefault(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initDefault(){return g.utils.initStructAt(6,H,this)}set default(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(7,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initType(){return g.utils.initStructAt(7,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(8,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(8,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(8,this))}_initTags(){return g.utils.initStructAt(8,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},lr=class e extends g.Struct{static{z(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new g.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}_adoptParameters(e){g.utils.adopt(e,g.utils.getPointer(5,this))}_disownParameters(){return g.utils.disown(this.parameters)}get parameters(){return g.utils.getList(5,e._Parameters,this)}_hasParameters(){return!g.utils.isNull(g.utils.getPointer(5,this))}_initParameters(t){return g.utils.initList(5,e._Parameters,t,this)}set parameters(e){g.utils.copyFrom(e,g.utils.getPointer(5,this))}_adoptReturn(e){g.utils.adopt(e,g.utils.getPointer(6,this))}_disownReturn(){return g.utils.disown(this.return)}get return(){return g.utils.getStruct(6,U,this)}_hasReturn(){return!g.utils.isNull(g.utils.getPointer(6,this))}_initReturn(){return g.utils.initStructAt(6,U,this)}set return(e){g.utils.copyFrom(e,g.utils.getPointer(6,this))}_adoptTags(e){g.utils.adopt(e,g.utils.getPointer(7,this))}_disownTags(){return g.utils.disown(this.tags)}get tags(){return g.utils.getStruct(7,B,this)}_hasTags(){return!g.utils.isNull(g.utils.getPointer(7,this))}_initTags(){return g.utils.initStructAt(7,B,this)}set tags(e){g.utils.copyFrom(e,g.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},ur=class e extends g.Struct{static{z(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get name(){return g.utils.getText(4,this)}set name(e){g.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},dr=class e extends g.Struct{static{z(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new g.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},fr=class e extends g.Struct{static{z(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new g.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}get optional(){return g.utils.getBit(16,this)}set optional(e){g.utils.setBit(16,e,this)}get name(){return g.utils.getText(5,this)}set name(e){g.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},pr=class e extends g.Struct{static{z(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},mr=class e extends g.Struct{static{z(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptType(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownType(){return g.utils.disown(this.type)}get type(){return g.utils.getStruct(4,U,this)}_hasType(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initType(){return g.utils.initStructAt(4,U,this)}set type(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},hr=class e extends g.Struct{static{z(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptOrigin(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownOrigin(){return g.utils.disown(this.origin)}get origin(){return g.utils.getStruct(4,U,this)}_hasOrigin(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initOrigin(){return g.utils.initStructAt(4,U,this)}set origin(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},gr=class extends g.Struct{static{z(this,`SerializedTypeLiteralSymbol`)}static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get name(){return g.utils.getText(1,this)}set name(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},_r=class extends g.Struct{static{z(this,`SerializedTypeLiteralBigInt`)}static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get value(){return g.utils.getText(1,this)}set value(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},vr=class extends g.Struct{static{z(this,`SerializedTypeLiteralRegex`)}static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new g.ObjectSize(0,2)};get type(){return g.utils.getText(0,this)}set type(e){g.utils.setText(0,e,this)}get regex(){return g.utils.getText(1,this)}set regex(e){g.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}},J={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},yr=class extends g.Struct{static{z(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=J.SYMBOL;static STRING=J.STRING;static NUMBER=J.NUMBER;static BOOLEAN=J.BOOLEAN;static BIGINT=J.BIGINT;static REGEX=J.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new g.ObjectSize(16,5)};_adoptSymbol(e){g.utils.setUint16(2,0,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownSymbol(){return g.utils.disown(this.symbol)}get symbol(){return g.utils.testWhich(`symbol`,g.utils.getUint16(2,this),0,this),g.utils.getStruct(4,gr,this)}_hasSymbol(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initSymbol(){return g.utils.setUint16(2,0,this),g.utils.initStructAt(4,gr,this)}get _isSymbol(){return g.utils.getUint16(2,this)===0}set symbol(e){g.utils.setUint16(2,0,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}get string(){return g.utils.testWhich(`string`,g.utils.getUint16(2,this),1,this),g.utils.getText(4,this)}get _isString(){return g.utils.getUint16(2,this)===1}set string(e){g.utils.setUint16(2,1,this),g.utils.setText(4,e,this)}get number(){return g.utils.testWhich(`number`,g.utils.getUint16(2,this),2,this),g.utils.getFloat64(8,this)}get _isNumber(){return g.utils.getUint16(2,this)===2}set number(e){g.utils.setUint16(2,2,this),g.utils.setFloat64(8,e,this)}get boolean(){return g.utils.testWhich(`boolean`,g.utils.getUint16(2,this),3,this),g.utils.getBit(64,this)}get _isBoolean(){return g.utils.getUint16(2,this)===3}set boolean(e){g.utils.setUint16(2,3,this),g.utils.setBit(64,e,this)}_adoptBigint(e){g.utils.setUint16(2,4,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownBigint(){return g.utils.disown(this.bigint)}get bigint(){return g.utils.testWhich(`bigint`,g.utils.getUint16(2,this),4,this),g.utils.getStruct(4,_r,this)}_hasBigint(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initBigint(){return g.utils.setUint16(2,4,this),g.utils.initStructAt(4,_r,this)}get _isBigint(){return g.utils.getUint16(2,this)===4}set bigint(e){g.utils.setUint16(2,4,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}_adoptRegex(e){g.utils.setUint16(2,5,this),g.utils.adopt(e,g.utils.getPointer(4,this))}_disownRegex(){return g.utils.disown(this.regex)}get regex(){return g.utils.testWhich(`regex`,g.utils.getUint16(2,this),5,this),g.utils.getStruct(4,vr,this)}_hasRegex(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initRegex(){return g.utils.setUint16(2,5,this),g.utils.initStructAt(4,vr,this)}get _isRegex(){return g.utils.getUint16(2,this)===5}set regex(e){g.utils.setUint16(2,5,this),g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return g.utils.getUint16(2,this)}},br=class e extends g.Struct{static{z(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new g.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}get literal(){return g.utils.getAs(yr,this)}_initLiteral(){return g.utils.getAs(yr,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},xr=class e extends g.Struct{static{z(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new g.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}_adoptTypeArguments(e){g.utils.adopt(e,g.utils.getPointer(1,this))}_disownTypeArguments(){return g.utils.disown(this.typeArguments)}get typeArguments(){return g.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!g.utils.isNull(g.utils.getPointer(1,this))}_initTypeArguments(t){return g.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){g.utils.copyFrom(e,g.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){g.utils.adopt(e,g.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return g.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return g.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!g.utils.isNull(g.utils.getPointer(2,this))}_initIndexAccessOrigin(){return g.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){g.utils.copyFrom(e,g.utils.getPointer(2,this))}_adoptDecorators(e){g.utils.adopt(e,g.utils.getPointer(3,this))}_disownDecorators(){return g.utils.disown(this.decorators)}get decorators(){return g.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!g.utils.isNull(g.utils.getPointer(3,this))}_initDecorators(t){return g.utils.initList(3,e._Decorators,t,this)}set decorators(e){g.utils.copyFrom(e,g.utils.getPointer(3,this))}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(4,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(4,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(4,this))}_initTypes(t){return g.utils.initList(4,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Sr=class extends g.Struct{static{z(this,`SerializedTypeOther`)}static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new g.ObjectSize(8,1)};get typeName(){return g.utils.getText(0,this)}set typeName(e){g.utils.setText(0,e,this)}get kind(){return g.utils.getUint16(0,this)}set kind(e){g.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}},Y={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22},Cr=class extends g.Struct{static{z(this,`SerializedType_Type`)}static SIMPLE=Y.SIMPLE;static LITERAL=Y.LITERAL;static TEMPLATE_LITERAL=Y.TEMPLATE_LITERAL;static PARAMETER=Y.PARAMETER;static FUNCTION=Y.FUNCTION;static METHOD=Y.METHOD;static PROPERTY=Y.PROPERTY;static PROMISE=Y.PROMISE;static CLASS_TYPE=Y.CLASS_TYPE;static ENUM=Y.ENUM;static UNION=Y.UNION;static INTERSECTION=Y.INTERSECTION;static ARRAY=Y.ARRAY;static OBJECT_LITERAL=Y.OBJECT_LITERAL;static INDEX_SIGNATURE=Y.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=Y.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=Y.METHOD_SIGNATURE;static TYPE_PARAMETER=Y.TYPE_PARAMETER;static INFER=Y.INFER;static TUPLE=Y.TUPLE;static TUPLE_MEMBER=Y.TUPLE_MEMBER;static REST=Y.REST;static OTHER=Y.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new g.ObjectSize(8,1)};_adoptSimple(e){g.utils.setUint16(0,0,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownSimple(){return g.utils.disown(this.simple)}get simple(){return g.utils.testWhich(`simple`,g.utils.getUint16(0,this),0,this),g.utils.getStruct(0,hr,this)}_hasSimple(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initSimple(){return g.utils.setUint16(0,0,this),g.utils.initStructAt(0,hr,this)}get _isSimple(){return g.utils.getUint16(0,this)===0}set simple(e){g.utils.setUint16(0,0,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptLiteral(e){g.utils.setUint16(0,1,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownLiteral(){return g.utils.disown(this.literal)}get literal(){return g.utils.testWhich(`literal`,g.utils.getUint16(0,this),1,this),g.utils.getStruct(0,br,this)}_hasLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initLiteral(){return g.utils.setUint16(0,1,this),g.utils.initStructAt(0,br,this)}get _isLiteral(){return g.utils.getUint16(0,this)===1}set literal(e){g.utils.setUint16(0,1,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTemplateLiteral(e){g.utils.setUint16(0,2,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTemplateLiteral(){return g.utils.disown(this.templateLiteral)}get templateLiteral(){return g.utils.testWhich(`templateLiteral`,g.utils.getUint16(0,this),2,this),g.utils.getStruct(0,xr,this)}_hasTemplateLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTemplateLiteral(){return g.utils.setUint16(0,2,this),g.utils.initStructAt(0,xr,this)}get _isTemplateLiteral(){return g.utils.getUint16(0,this)===2}set templateLiteral(e){g.utils.setUint16(0,2,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptParameter(e){g.utils.setUint16(0,3,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownParameter(){return g.utils.disown(this.parameter)}get parameter(){return g.utils.testWhich(`parameter`,g.utils.getUint16(0,this),3,this),g.utils.getStruct(0,q,this)}_hasParameter(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initParameter(){return g.utils.setUint16(0,3,this),g.utils.initStructAt(0,q,this)}get _isParameter(){return g.utils.getUint16(0,this)===3}set parameter(e){g.utils.setUint16(0,3,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptFunction(e){g.utils.setUint16(0,4,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownFunction(){return g.utils.disown(this.function)}get function(){return g.utils.testWhich(`function`,g.utils.getUint16(0,this),4,this),g.utils.getStruct(0,er,this)}_hasFunction(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initFunction(){return g.utils.setUint16(0,4,this),g.utils.initStructAt(0,er,this)}get _isFunction(){return g.utils.getUint16(0,this)===4}set function(e){g.utils.setUint16(0,4,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptMethod(e){g.utils.setUint16(0,5,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownMethod(){return g.utils.disown(this.method)}get method(){return g.utils.testWhich(`method`,g.utils.getUint16(0,this),5,this),g.utils.getStruct(0,Qn,this)}_hasMethod(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initMethod(){return g.utils.setUint16(0,5,this),g.utils.initStructAt(0,Qn,this)}get _isMethod(){return g.utils.getUint16(0,this)===5}set method(e){g.utils.setUint16(0,5,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptProperty(e){g.utils.setUint16(0,6,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownProperty(){return g.utils.disown(this.property)}get property(){return g.utils.testWhich(`property`,g.utils.getUint16(0,this),6,this),g.utils.getStruct(0,$n,this)}_hasProperty(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initProperty(){return g.utils.setUint16(0,6,this),g.utils.initStructAt(0,$n,this)}get _isProperty(){return g.utils.getUint16(0,this)===6}set property(e){g.utils.setUint16(0,6,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptPromise(e){g.utils.setUint16(0,7,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownPromise(){return g.utils.disown(this.promise)}get promise(){return g.utils.testWhich(`promise`,g.utils.getUint16(0,this),7,this),g.utils.getStruct(0,tr,this)}_hasPromise(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initPromise(){return g.utils.setUint16(0,7,this),g.utils.initStructAt(0,tr,this)}get _isPromise(){return g.utils.getUint16(0,this)===7}set promise(e){g.utils.setUint16(0,7,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptClassType(e){g.utils.setUint16(0,8,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownClassType(){return g.utils.disown(this.classType)}get classType(){return g.utils.testWhich(`classType`,g.utils.getUint16(0,this),8,this),g.utils.getStruct(0,K,this)}_hasClassType(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initClassType(){return g.utils.setUint16(0,8,this),g.utils.initStructAt(0,K,this)}get _isClassType(){return g.utils.getUint16(0,this)===8}set classType(e){g.utils.setUint16(0,8,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptEnum(e){g.utils.setUint16(0,9,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownEnum(){return g.utils.disown(this.enum)}get enum(){return g.utils.testWhich(`enum`,g.utils.getUint16(0,this),9,this),g.utils.getStruct(0,rr,this)}_hasEnum(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initEnum(){return g.utils.setUint16(0,9,this),g.utils.initStructAt(0,rr,this)}get _isEnum(){return g.utils.getUint16(0,this)===9}set enum(e){g.utils.setUint16(0,9,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptUnion(e){g.utils.setUint16(0,10,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownUnion(){return g.utils.disown(this.union)}get union(){return g.utils.testWhich(`union`,g.utils.getUint16(0,this),10,this),g.utils.getStruct(0,ir,this)}_hasUnion(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initUnion(){return g.utils.setUint16(0,10,this),g.utils.initStructAt(0,ir,this)}get _isUnion(){return g.utils.getUint16(0,this)===10}set union(e){g.utils.setUint16(0,10,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIntersection(e){g.utils.setUint16(0,11,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownIntersection(){return g.utils.disown(this.intersection)}get intersection(){return g.utils.testWhich(`intersection`,g.utils.getUint16(0,this),11,this),g.utils.getStruct(0,ar,this)}_hasIntersection(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initIntersection(){return g.utils.setUint16(0,11,this),g.utils.initStructAt(0,ar,this)}get _isIntersection(){return g.utils.getUint16(0,this)===11}set intersection(e){g.utils.setUint16(0,11,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptArray(e){g.utils.setUint16(0,12,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownArray(){return g.utils.disown(this.array)}get array(){return g.utils.testWhich(`array`,g.utils.getUint16(0,this),12,this),g.utils.getStruct(0,or,this)}_hasArray(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initArray(){return g.utils.setUint16(0,12,this),g.utils.initStructAt(0,or,this)}get _isArray(){return g.utils.getUint16(0,this)===12}set array(e){g.utils.setUint16(0,12,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptObjectLiteral(e){g.utils.setUint16(0,13,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownObjectLiteral(){return g.utils.disown(this.objectLiteral)}get objectLiteral(){return g.utils.testWhich(`objectLiteral`,g.utils.getUint16(0,this),13,this),g.utils.getStruct(0,G,this)}_hasObjectLiteral(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initObjectLiteral(){return g.utils.setUint16(0,13,this),g.utils.initStructAt(0,G,this)}get _isObjectLiteral(){return g.utils.getUint16(0,this)===13}set objectLiteral(e){g.utils.setUint16(0,13,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptIndexSignature(e){g.utils.setUint16(0,14,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownIndexSignature(){return g.utils.disown(this.indexSignature)}get indexSignature(){return g.utils.testWhich(`indexSignature`,g.utils.getUint16(0,this),14,this),g.utils.getStruct(0,sr,this)}_hasIndexSignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initIndexSignature(){return g.utils.setUint16(0,14,this),g.utils.initStructAt(0,sr,this)}get _isIndexSignature(){return g.utils.getUint16(0,this)===14}set indexSignature(e){g.utils.setUint16(0,14,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptPropertySignature(e){g.utils.setUint16(0,15,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownPropertySignature(){return g.utils.disown(this.propertySignature)}get propertySignature(){return g.utils.testWhich(`propertySignature`,g.utils.getUint16(0,this),15,this),g.utils.getStruct(0,cr,this)}_hasPropertySignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initPropertySignature(){return g.utils.setUint16(0,15,this),g.utils.initStructAt(0,cr,this)}get _isPropertySignature(){return g.utils.getUint16(0,this)===15}set propertySignature(e){g.utils.setUint16(0,15,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptMethodSignature(e){g.utils.setUint16(0,16,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownMethodSignature(){return g.utils.disown(this.methodSignature)}get methodSignature(){return g.utils.testWhich(`methodSignature`,g.utils.getUint16(0,this),16,this),g.utils.getStruct(0,lr,this)}_hasMethodSignature(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initMethodSignature(){return g.utils.setUint16(0,16,this),g.utils.initStructAt(0,lr,this)}get _isMethodSignature(){return g.utils.getUint16(0,this)===16}set methodSignature(e){g.utils.setUint16(0,16,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTypeParameter(e){g.utils.setUint16(0,17,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTypeParameter(){return g.utils.disown(this.typeParameter)}get typeParameter(){return g.utils.testWhich(`typeParameter`,g.utils.getUint16(0,this),17,this),g.utils.getStruct(0,ur,this)}_hasTypeParameter(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTypeParameter(){return g.utils.setUint16(0,17,this),g.utils.initStructAt(0,ur,this)}get _isTypeParameter(){return g.utils.getUint16(0,this)===17}set typeParameter(e){g.utils.setUint16(0,17,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptInfer(e){g.utils.setUint16(0,18,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownInfer(){return g.utils.disown(this.infer)}get infer(){return g.utils.testWhich(`infer`,g.utils.getUint16(0,this),18,this),g.utils.getStruct(0,dr,this)}_hasInfer(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initInfer(){return g.utils.setUint16(0,18,this),g.utils.initStructAt(0,dr,this)}get _isInfer(){return g.utils.getUint16(0,this)===18}set infer(e){g.utils.setUint16(0,18,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTuple(e){g.utils.setUint16(0,19,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTuple(){return g.utils.disown(this.tuple)}get tuple(){return g.utils.testWhich(`tuple`,g.utils.getUint16(0,this),19,this),g.utils.getStruct(0,pr,this)}_hasTuple(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTuple(){return g.utils.setUint16(0,19,this),g.utils.initStructAt(0,pr,this)}get _isTuple(){return g.utils.getUint16(0,this)===19}set tuple(e){g.utils.setUint16(0,19,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptTupleMember(e){g.utils.setUint16(0,20,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTupleMember(){return g.utils.disown(this.tupleMember)}get tupleMember(){return g.utils.testWhich(`tupleMember`,g.utils.getUint16(0,this),20,this),g.utils.getStruct(0,fr,this)}_hasTupleMember(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTupleMember(){return g.utils.setUint16(0,20,this),g.utils.initStructAt(0,fr,this)}get _isTupleMember(){return g.utils.getUint16(0,this)===20}set tupleMember(e){g.utils.setUint16(0,20,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptRest(e){g.utils.setUint16(0,21,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownRest(){return g.utils.disown(this.rest)}get rest(){return g.utils.testWhich(`rest`,g.utils.getUint16(0,this),21,this),g.utils.getStruct(0,mr,this)}_hasRest(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initRest(){return g.utils.setUint16(0,21,this),g.utils.initStructAt(0,mr,this)}get _isRest(){return g.utils.getUint16(0,this)===21}set rest(e){g.utils.setUint16(0,21,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}_adoptOther(e){g.utils.setUint16(0,22,this),g.utils.adopt(e,g.utils.getPointer(0,this))}_disownOther(){return g.utils.disown(this.other)}get other(){return g.utils.testWhich(`other`,g.utils.getUint16(0,this),22,this),g.utils.getStruct(0,Sr,this)}_hasOther(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initOther(){return g.utils.setUint16(0,22,this),g.utils.initStructAt(0,Sr,this)}get _isOther(){return g.utils.getUint16(0,this)===22}set other(e){g.utils.setUint16(0,22,this),g.utils.copyFrom(e,g.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return g.utils.getUint16(0,this)}},wr=class extends g.Struct{static{z(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new g.ObjectSize(8,1)};get type(){return g.utils.getAs(Cr,this)}_initType(){return g.utils.getAs(Cr,this)}toString(){return`SerializedType_`+super.toString()}},X=class e extends g.Struct{static{z(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new g.ObjectSize(0,1)};static _Types;_adoptTypes(e){g.utils.adopt(e,g.utils.getPointer(0,this))}_disownTypes(){return g.utils.disown(this.types)}get types(){return g.utils.getList(0,e._Types,this)}_hasTypes(){return!g.utils.isNull(g.utils.getPointer(0,this))}_initTypes(t){return g.utils.initList(0,e._Types,t,this)}set types(e){g.utils.copyFrom(e,g.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};Zn._Indexes=g.CompositeList(Xn),G._TypeArguments=g.CompositeList(U),G._Decorators=g.CompositeList(U),G._Types=g.CompositeList(U),K._TypeArguments=g.CompositeList(U),K._Decorators=g.CompositeList(U),K._ExtendsArguments=g.CompositeList(U),K._Arguments=g.CompositeList(U),K._Types=g.CompositeList(U),q._TypeArguments=g.CompositeList(U),q._Decorators=g.CompositeList(U),Qn._TypeArguments=g.CompositeList(U),Qn._Decorators=g.CompositeList(U),Qn._Parameters=g.CompositeList(q),$n._TypeArguments=g.CompositeList(U),$n._Decorators=g.CompositeList(U),er._TypeArguments=g.CompositeList(U),er._Decorators=g.CompositeList(U),er._Parameters=g.CompositeList(q),tr._TypeArguments=g.CompositeList(U),tr._Decorators=g.CompositeList(U),rr._TypeArguments=g.CompositeList(U),rr._Decorators=g.CompositeList(U),rr._EnumEntries=g.CompositeList(nr),ir._TypeArguments=g.CompositeList(U),ir._Decorators=g.CompositeList(U),ir._Types=g.CompositeList(U),ar._TypeArguments=g.CompositeList(U),ar._Decorators=g.CompositeList(U),ar._Types=g.CompositeList(U),or._TypeArguments=g.CompositeList(U),or._Decorators=g.CompositeList(U),sr._TypeArguments=g.CompositeList(U),sr._Decorators=g.CompositeList(U),cr._TypeArguments=g.CompositeList(U),cr._Decorators=g.CompositeList(U),lr._TypeArguments=g.CompositeList(U),lr._Decorators=g.CompositeList(U),lr._Parameters=g.CompositeList(q),ur._TypeArguments=g.CompositeList(U),ur._Decorators=g.CompositeList(U),dr._TypeArguments=g.CompositeList(U),dr._Decorators=g.CompositeList(U),fr._TypeArguments=g.CompositeList(U),fr._Decorators=g.CompositeList(U),pr._TypeArguments=g.CompositeList(U),pr._Decorators=g.CompositeList(U),pr._Types=g.CompositeList(fr),mr._TypeArguments=g.CompositeList(U),mr._Decorators=g.CompositeList(U),hr._TypeArguments=g.CompositeList(U),hr._Decorators=g.CompositeList(U),br._TypeArguments=g.CompositeList(U),br._Decorators=g.CompositeList(U),xr._TypeArguments=g.CompositeList(U),xr._Decorators=g.CompositeList(U),xr._Types=g.CompositeList(U),X._Types=g.CompositeList(wr);function Tr(e,t){return Dr(e.type,t??e.getDefaultValue())}function Er(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function Dr(e,t){return Me(t)?`undefined`:je(t)?`null`:e.kind===x.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===x.ReflectionKind.string||e.kind===x.ReflectionKind.literal&&f(e.literal)?Er(t):e.kind===x.ReflectionKind.enum?Or(e).kind===x.ReflectionKind.string?Er(t):`${String(t)}`:e.kind===x.ReflectionKind.union?Ar(e)?Er(t):`${String(t)}`:e.kind===x.ReflectionKind.array?Er(Ae.stringify(t)):e.kind===x.ReflectionKind.object||e.kind===x.ReflectionKind.objectLiteral?Ae.stringify(t):e.kind===x.ReflectionKind.property||e.kind===x.ReflectionKind.parameter?Dr(e.type,t):String(t)}function Or(e){if(e.kind!==x.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=ke(e.values.filter(e=>e!=null),e=>f(e)?{kind:x.ReflectionKind.string}:{kind:x.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&f(t[0])?{kind:x.ReflectionKind.string}:{kind:x.ReflectionKind.number}}function kr(e){if(e.kind===x.ReflectionKind.union&&e.types.length>0)return ke(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function Ar(e){return kr(e).some(e=>e.kind===x.ReflectionKind.string||e.kind===x.ReflectionKind.literal&&f(e.literal))}function jr(e){return m(e.dataPath,`reflections`)}const Mr={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function Nr(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync(m(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if(_(e)!==e){if(t.length===1)return`
2
+ import ${_(e)} from "${t[0]}";
3
+ export { ${_(e)} as "${e}" }`;if(t.length>1)return`
4
+ import ${t[1]===`*`?`* as ${_(e)}`:`{ ${t[1]} as ${_(e)} }`} from "${t[0]}";
5
+ export { ${_(e)} as "${e}" }`}else if(t.length===1)return`
6
6
  import ${e} from "${t[0]}";
7
7
  export { ${e} };`;else if(t.length>1)return`
8
8
  import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
9
- export { ${e} };`}else if(g(e)!==e)return`
10
- import ${g(e)} from "${t[0]}";
11
- export { ${g(e)} as "${e}" }`;else return`
9
+ export { ${e} };`}else if(_(e)!==e)return`
10
+ import ${_(e)} from "${t[0]}";
11
+ export { ${_(e)} as "${e}" }`;else return`
12
12
  import ${e} from "${t}";
13
13
  export { ${e} };`;return``}).join(`
14
- `)),c({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[m(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?Le(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?Le(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},jr)}async function Nr(e,t,n={}){let i=await e.fs.resolve(t);if(!i||!e.fs.existsSync(i))throw Error(`Module not found: "${t}". Please check the path and try again.`);let a=await Ie({...Mr(e),entryPoints:[i],write:!1,sourcemap:!1,splitting:!1,treeShaking:!1,bundle:!0,...n});if(a.errors.length>0)throw Error(`Failed to transpile ${t}: ${a.errors.map(e=>e.text).join(`, `)}`);if(a.warnings.length>0&&e.log(r.WARN,`Warnings while transpiling ${t}: ${a.warnings.map(e=>e.text).join(`, `)}`),!a.outputFiles||a.outputFiles.filter(Boolean).length===0)throw Error(`No output files generated for ${t}. Please check the configuration and try again.`);return a.outputFiles.filter(Boolean)[0]}async function Pr(e,t,n={}){let r;r=u(t)?ge(t):t;let i=await Nr(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),o=r.name;return o||=`default`,a[o]??a[`__Ω${o}`]}var Z={};import*as Fr from"@deepkit/type-compiler";e(Z,Fr);import*as Ir from"@deepkit/type-compiler/compiler";e(Z,Ir);import*as Lr from"@deepkit/type-compiler/config";e(Z,Lr);let Rr=!1;const zr=new Z.Cache;function Br(e,t={}){return function(n){return Rr||=!0,zr.tick(),new Z.ReflectionTransformer(n,zr).withReflection(c(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function Vr(e,t={}){return function(n){return new Z.DeclarationTransformer(n,zr).withReflection(c(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function Hr(e,t,n){let r=Br(e),i=Vr(e);return Re.transpileModule(t,{compilerOptions:{...e.tsconfig.options},fileName:n,transformers:{before:[r],after:[i]}})}const Ur=(e,t={})=>({name:`powerlines:deepkit`,setup(n){n.onLoad({filter:/\.(m|c)?tsx?$/,...t},async t=>{let n=await e.fs.read(t.path);if(!n)return null;if(t.pluginData?.isReflected)return{contents:n,loader:`ts`,pluginData:{isReflected:!0}};let r=Hr(e,n,t.path);if(r.diagnostics&&r.diagnostics.length>0)if(r.diagnostics.some(e=>e.category===ze.Error)){let n=`Deepkit Type reflection transpilation errors: ${t.path} \n ${r.diagnostics.filter(e=>e.category===ze.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${we(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
15
- `)}`;throw e.error(n),Error(n)}else r.diagnostics.some(e=>e.category===ze.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${t.path} \n ${r.diagnostics.filter(e=>e.category===ze.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${we(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
16
- `)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${t.path} \n ${r.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${we(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
17
- `)}`);return{contents:r.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});async function Wr(e,t,n={}){return(0,C.reflect)(await Pr(e,t,c(n,{plugins:[Ur(e)]})))}function Gr(e,t){return Yr(e,{type:(0,C.merge)(t.map(e=>e.type))})}function Kr(e,t){return Xr(e,{type:(0,C.merge)(t.map(e=>e.type))})}var qr=class{APP_NAME;APP_VERSION;BUILD_ID;BUILD_TIMESTAMP;BUILD_CHECKSUM;RELEASE_ID;RELEASE_TAG;ORGANIZATION;PLATFORM=`neutral`;MODE=`production`;ENVIRONMENT;DEBUG=!1;TEST=!1;MINIMAL=!1;NO_COLOR=!1;FORCE_COLOR=!1;FORCE_HYPERLINK=!1;STACKTRACE=!1;INCLUDE_ERROR_DATA=!1;ERROR_URL;DEFAULT_TIMEZONE;DEFAULT_LOCALE;CI=!1},Jr=class{ENCRYPTION_KEY};function Yr(e,t={}){let n=t.superReflection??new C.ReflectionClass({kind:C.ReflectionKind.class,description:`The base environment configuration definition for the ${f(e.config.name)} project.`,classType:qr,types:[],implements:[{kind:C.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${f(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new C.ReflectionClass(t.type??{kind:C.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${f(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function Xr(e,t={}){let n=t.superReflection??new C.ReflectionClass({kind:C.ReflectionKind.class,description:`The base secrets configuration definition for the ${f(e.config.name)} project.`,classType:Jr,types:[],implements:[{kind:C.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${f(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new C.ReflectionClass(t.type??{kind:C.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${f(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function Zr(e,t,n){let r;t&&(r=(0,C.resolveClassType)(await Wr(e,{file:o(t,e.workspaceConfig.workspaceRoot)?t:m(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await Wr(e,await ei(e));return Gr(e,[await Q(e,`env`),r,(0,C.resolveClassType)(i)].filter(Boolean))}async function Qr(e,t,n){let r;t&&(r=(0,C.resolveClassType)(await Wr(e,{file:o(t,e.workspaceConfig.workspaceRoot)?t:m(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await Wr(e,await ti(e));return Kr(e,[await ai(e),r,(0,C.resolveClassType)(i)].filter(Boolean))}async function $r(e){return Pe(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,m(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function ei(e){return{file:await $r(e),name:`EnvInterface`}}async function ti(e){return{file:await $r(e),name:`SecretsInterface`}}function ni(e,t=`env`){return m(Ar(e),`env`,`${t}-types.bin`)}async function Q(e,t=`env`){let n=ni(e,t);if(!Ne(n)){if(!e.env.types.env||Fe(e.env.types.env)){let n=Yr(e),r=new h.Message;n.messageRoot=r.initRoot(X),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await ri(e,e.env.types.env,t)}return e.env.types.env}let r=await Ae(n),i=new h.Message(r,!1).getRoot(X),a=(0,C.resolveClassType)((0,C.deserializeType)(an(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function ri(e,t,n=`env`){let r=t.serializeType(),i=new h.Message;rn(r,i.initRoot(X)._initTypes(r.length)),await Me(ni(e,n),i.toArrayBuffer())}function $(e,t){return m(Ar(e),`env`,`${t}.bin`)}async function ii(e){let t=$(e,`env`);if(!Ne(t)){if(e.env.types.env||(e.env.types.env=await Q(e,`env`)),!e.env.used.env||Fe(e.env.used.env)){let t=Yr(e,{type:{kind:C.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.env});t.name=`Env`;let n=new h.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await oi(e,e.env.used.env,`env`)}return e.env.used.env}let n=await Ae(t),r=new h.Message(n,!1).getRoot(X),i=(0,C.resolveClassType)((0,C.deserializeType)(an(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function ai(e){let t=$(e,`secrets`);if(!Ne(t)){if(e.env.types.secrets||(e.env.types.secrets=await Q(e,`secrets`)),!e.env.used.secrets||Fe(e.env.used.secrets)){let t=Yr(e,{type:{kind:C.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.secrets});t.name=`Secrets`;let n=new h.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await oi(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await Ae(t),r=new h.Message(n,!1).getRoot(X),i=(0,C.resolveClassType)((0,C.deserializeType)(an(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function oi(e,t,n=`env`){let r=t.serializeType(),i=new h.Message;rn(r,i.initRoot(X)._initTypes(r.length)),await Me($(e,n),i.toArrayBuffer())}const si=bt(`env`,({log:e,context:t})=>{function n(n,i,a=!1){let o=t.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(n.name){let s=t.config.env.prefix.find(e=>n.name&&n.name.startsWith(e)&&(t.env.types.env?.hasProperty(n.name.replace(`${e}_`,``))||o.some(t=>t.getAlias().includes(n.name.replace(`${e}_`,``))))),c=n.name;if(s&&(c=n.name.replace(`${s}_`,``)),e(r.TRACE,`Environment variable ${c} found in ${i.filename||`unknown file`}.`),t.env.types.env?.hasProperty(c)||o.some(e=>e.getAlias().includes(c))){let e=t.env.types.env.hasProperty(c)?t.env.types.env.getProperty(c):o.find(e=>e.getAlias().includes(c));if(!e||e.isIgnored())return;if(t.env.used.env.hasProperty(c)||t.env.used.env.addProperty(e.property),t.config.env.inject&&a){let n=t.env.parsed?.[c];if(n===void 0){let e=t.config.env.prefix.find(e=>t.env.parsed[`${e.replace(/_$/g,``)}_${c}`]);e&&(n=t.env.parsed[`${e.replace(/_$/g,``)}_${c}`])}if(n??=e.getDefaultValue(),e.isValueRequired()&&n===void 0)throw Error(`Environment variable \`${c}\` is not defined in the .env configuration files`);return wr(e,n)}}else throw Error(`The "${c}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${i.filename?i.filename:`unknown`}.
14
+ `)),u({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[m(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?Be(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?Be(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},Mr)}async function Pr(e,t,n={}){let r=await e.fs.resolve(t);if(!r||!e.fs.existsSync(r))throw Error(`Module not found: "${t}". Please check the path and try again.`);let i=await ze({...Nr(e),entryPoints:[r],write:!1,sourcemap:!1,splitting:!1,treeShaking:!1,bundle:!0,...n});if(i.errors.length>0)throw Error(`Failed to transpile ${t}: ${i.errors.map(e=>e.text).join(`, `)}`);if(i.warnings.length>0&&e.log(s.WARN,`Warnings while transpiling ${t}: ${i.warnings.map(e=>e.text).join(`, `)}`),!i.outputFiles||i.outputFiles.filter(Boolean).length===0)throw Error(`No output files generated for ${t}. Please check the configuration and try again.`);return i.outputFiles.filter(Boolean)[0]}async function Fr(e,t,n={}){let r;r=re(t)?be(t):t;let i=await Pr(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),o=r.name;return o||=`default`,a[o]??a[`__Ω${o}`]}var Z={};import*as Ir from"@deepkit/type-compiler";e(Z,Ir);import*as Lr from"@deepkit/type-compiler/compiler";e(Z,Lr);import*as Rr from"@deepkit/type-compiler/config";e(Z,Rr);let zr=!1;const Br=new Z.Cache;function Vr(e,t={}){return function(n){return zr||=!0,Br.tick(),new Z.ReflectionTransformer(n,Br).withReflection(u(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function Hr(e,t={}){return function(n){return new Z.DeclarationTransformer(n,Br).withReflection(u(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function Ur(e,t,n){let r=Vr(e),i=Hr(e);return Ve.transpileModule(t,{compilerOptions:{...e.tsconfig.options},fileName:n,transformers:{before:[r],after:[i]}})}const Wr=(e,t={})=>({name:`powerlines:deepkit`,setup(n){n.onLoad({filter:/\.(m|c)?tsx?$/,...t},async t=>{let n=await e.fs.read(t.path);if(!n)return null;if(t.pluginData?.isReflected)return{contents:n,loader:`ts`,pluginData:{isReflected:!0}};let r=Ur(e,n,t.path);if(r.diagnostics&&r.diagnostics.length>0)if(r.diagnostics.some(e=>e.category===He.Error)){let n=`Deepkit Type reflection transpilation errors: ${t.path} \n ${r.diagnostics.filter(e=>e.category===He.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${De(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
15
+ `)}`;throw e.error(n),Error(n)}else r.diagnostics.some(e=>e.category===He.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${t.path} \n ${r.diagnostics.filter(e=>e.category===He.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${De(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
16
+ `)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${t.path} \n ${r.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${De(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
17
+ `)}`);return{contents:r.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});async function Gr(e,t,n={}){return(0,x.reflect)(await Fr(e,t,u(n,{plugins:[Wr(e)]})))}function Kr(e,t){return Xr(e,{type:(0,x.merge)(t.map(e=>e.type))})}function qr(e,t){return Zr(e,{type:(0,x.merge)(t.map(e=>e.type))})}var Jr=class{PLATFORM=`neutral`;MODE=`production`;DEBUG=!1;TEST=!1;MINIMAL=!1;NO_COLOR=!1;FORCE_COLOR=!1;FORCE_HYPERLINK=!1;STACKTRACE=!1;INCLUDE_ERROR_DATA=!1;CI=!1},Yr=class{};function Xr(e,t={}){let n=t.superReflection??new x.ReflectionClass({kind:x.ReflectionKind.class,description:`The base environment configuration definition for the ${d(e.config.name)} project.`,classType:Jr,types:[],implements:[{kind:x.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${d(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new x.ReflectionClass(t.type??{kind:x.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${d(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function Zr(e,t={}){let n=t.superReflection??new x.ReflectionClass({kind:x.ReflectionKind.class,description:`The base secrets configuration definition for the ${d(e.config.name)} project.`,classType:Yr,types:[],implements:[{kind:x.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${d(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new x.ReflectionClass(t.type??{kind:x.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${d(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function Qr(e,t,n){let r;t&&(r=(0,x.resolveClassType)(await Gr(e,{file:l(t,e.workspaceConfig.workspaceRoot)?t:m(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await Gr(e,await ti(e));return Kr(e,[await Q(e,`env`),r,(0,x.resolveClassType)(i)].filter(Boolean))}async function $r(e,t,n){let r;t&&(r=(0,x.resolveClassType)(await Gr(e,{file:l(t,e.workspaceConfig.workspaceRoot)?t:m(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await Gr(e,await ni(e));return qr(e,[await oi(e),r,(0,x.resolveClassType)(i)].filter(Boolean))}async function ei(e){return Le(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,m(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function ti(e){return{file:await ei(e),name:`EnvInterface`}}async function ni(e){return{file:await ei(e),name:`SecretsInterface`}}function ri(e,t=`env`){return m(jr(e),`env`,`${t}-types.bin`)}async function Q(e,t=`env`){let n=ri(e,t);if(!Ie(n)){if(!e.env.types.env||Re(e.env.types.env)){let n=Xr(e),r=new g.Message;n.messageRoot=r.initRoot(X),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await ii(e,e.env.types.env,t)}return e.env.types.env}let r=await Ne(n),i=new g.Message(r,!1).getRoot(X),a=(0,x.resolveClassType)((0,x.deserializeType)(sn(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function ii(e,t,n=`env`){let r=t.serializeType(),i=new g.Message;on(r,i.initRoot(X)._initTypes(r.length)),await Fe(ri(e,n),i.toArrayBuffer())}function $(e,t){return m(jr(e),`env`,`${t}.bin`)}async function ai(e){let t=$(e,`env`);if(!Ie(t)){if(e.env.types.env||(e.env.types.env=await Q(e,`env`)),!e.env.used.env||Re(e.env.used.env)){let t=Xr(e,{type:{kind:x.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.env});t.name=`Env`;let n=new g.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await si(e,e.env.used.env,`env`)}return e.env.used.env}let n=await Ne(t),r=new g.Message(n,!1).getRoot(X),i=(0,x.resolveClassType)((0,x.deserializeType)(sn(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function oi(e){let t=$(e,`secrets`);if(!Ie(t)){if(e.env.types.secrets||(e.env.types.secrets=await Q(e,`secrets`)),!e.env.used.secrets||Re(e.env.used.secrets)){let t=Xr(e,{type:{kind:x.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.secrets});t.name=`Secrets`;let n=new g.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await si(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await Ne(t),r=new g.Message(n,!1).getRoot(X),i=(0,x.resolveClassType)((0,x.deserializeType)(sn(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function si(e,t,n=`env`){let r=t.serializeType(),i=new g.Message;on(r,i.initRoot(X)._initTypes(r.length)),await Fe($(e,n),i.toArrayBuffer())}const ci=St(`env`,({log:e,context:t})=>{function n(n,r,i=!1){let a=t.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(n.name){let o=t.config.env.prefix.find(e=>n.name&&n.name.startsWith(e)&&(t.env.types.env?.hasProperty(n.name.replace(`${e}_`,``))||a.some(t=>t.getAlias().includes(n.name.replace(`${e}_`,``))))),c=n.name;if(o&&(c=n.name.replace(`${o}_`,``)),e(s.TRACE,`Environment variable ${c} found in ${r.filename||`unknown file`}.`),t.env.types.env?.hasProperty(c)||a.some(e=>e.getAlias().includes(c))){let e=t.env.types.env.hasProperty(c)?t.env.types.env.getProperty(c):a.find(e=>e.getAlias().includes(c));if(!e||e.isIgnored())return;if(t.env.used.env.hasProperty(c)||t.env.used.env.addProperty(e.property),t.config.env.inject&&i){let n=t.env.parsed?.[c];if(n===void 0){let e=t.config.env.prefix.find(e=>t.env.parsed[`${e.replace(/_$/g,``)}_${c}`]);e&&(n=t.env.parsed[`${e.replace(/_$/g,``)}_${c}`])}if(n??=e.getDefaultValue(),e.isValueRequired()&&n===void 0)throw Error(`Environment variable \`${c}\` is not defined in the .env configuration files`);return Tr(e,n)}}else throw Error(`The "${c}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${r.filename?r.filename:`unknown`}.
18
18
 
19
- The following environment configuration names are defined in the \`env\` type definition: \n${t.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${o.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${o?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
19
+ The following environment configuration names are defined in the \`env\` type definition: \n${t.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${a.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${a?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
20
20
  `)} \n\nUsing the following env prefix: \n${t.config.env.prefix.map(e=>` - ${e}`).join(`
21
- `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`)}}return{visitor:{MemberExpression(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`$storm`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),xt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isCallExpression({callee:{name:`useStorm`,type:`Identifier`}})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),xt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),xt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),xt(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(r.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=C.ReflectionClass.from({kind:C.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),i=$(t,`env`);i&&Ne(i)&&(e(r.TRACE,`Environment reflection file found at ${i}, reading existing reflection.`),n=(0,C.resolveClassType)((0,C.deserializeType)(an(new h.Message(je(i),!1).getRoot(X).types)))),e(r.TRACE,`Adding new variables to env reflection at ${i}.`),n.getProperties().filter(e=>e.getNameAsString()&&!t.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{t.env.used.env.addProperty({...e,name:e.getNameAsString(),description:e.getDescription()??`The ${e.getNameAsString()} variable.`,default:e.getDefaultValue(),optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,visibility:e.getVisibility(),type:e.getType(),tags:e.getTags()})})}}});function ci(e){if(ie(e)){let t=_e.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),e.toUpperCase());for(;t.startsWith(`_`);)t=t.slice(1);return t}return Object.keys(e).reduce((t,n)=>{let r=ci(n);return r&&(t[r]=e[n]),t},{})}async function li(e,t,n){let r=await lt(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>ut(e,n)));for(let e of t)r=c(e,r)}return ci(r)}async function ui(e,t,n,r,i,a){let[o,s]=await Promise.all([li(e,n,t),me({cwd:t,name:`storm`,envName:n,defaults:{NAME:i.name?.replace(`@${a.namespace}/`,``),MODE:n,ORG:a.organization},globalRc:!0,packageJson:!0,dotenv:!0,jitiOptions:{fsCache:m(r,`jiti`),moduleCache:!0}})]);return c(o,s.config,a)}function di(e,t){return c({APP_NAME:ne(e.config.name||e.packageJson.name?.replace(`/${e.workspaceConfig.namespace}`,``)),APP_VERSION:e.packageJson.version,BUILD_ID:e.meta.buildId,BUILD_TIMESTAMP:new Date(e.meta.timestamp).toISOString(),BUILD_CHECKSUM:e.meta.checksum,RELEASE_ID:e.meta.releaseId,RELEASE_TAG:`${ne(e.config.name)}@${e.packageJson.version}`,DEFAULT_LOCALE:e.workspaceConfig.locale,DEFAULT_TIMEZONE:e.workspaceConfig.timezone,LOG_LEVEL:e.config.logLevel,ERROR_URL:e.workspaceConfig.error?.url,ORGANIZATION:u(e.workspaceConfig.organization)?e.workspaceConfig.organization:e.workspaceConfig.organization?.name,PLATFORM:e.config.build.platform,MODE:e.workspaceConfig.mode,DEBUG:e.workspaceConfig.mode===`development`,STACKTRACE:e.workspaceConfig.mode===`development`,ENVIRONMENT:e.environment},s(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function fi(e,t){let[n,r,i]=await Promise.all([ui(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),ui(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),ui(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return c(di(e,process.env),n,r,i)}function pi(e){let t=He(()=>e&&di(e,process.env));return Ue(async()=>{if(!e)return new C.ReflectionClass({kind:C.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Q(e,`env`);return n.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{n.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||f(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(t.value?.[e.getNameAsString()]??e.getAlias().reduce((e,n)=>e??t.value?.[n],void 0)??e.getDefaultValue())}),n})}function mi(e){let[{defaultValue:t,reflection:n}]=We(e,[`defaultValue`,`reflection`]),r=$e();return S(b,{children:[x(st,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:t,reflection:n,export:!0}),x(`hbr`,{}),x(`hbr`,{}),x(Ze,{name:`Env`,export:!0,children:_` {
22
- [Key in keyof EnvBase as Key ${r?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
21
+ `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`)}}return{visitor:{MemberExpression(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`$storm`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Ct(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isCallExpression({callee:{name:`useStorm`,type:`Identifier`}})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Ct(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Ct(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Ct(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(s.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=x.ReflectionClass.from({kind:x.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),r=$(t,`env`);r&&Ie(r)&&(e(s.TRACE,`Environment reflection file found at ${r}, reading existing reflection.`),n=(0,x.resolveClassType)((0,x.deserializeType)(sn(new g.Message(Pe(r),!1).getRoot(X).types)))),e(s.TRACE,`Adding new variables to env reflection at ${r}.`),n.getProperties().filter(e=>e.getNameAsString()&&!t.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{t.env.used.env.addProperty({...e,name:e.getNameAsString(),description:e.getDescription()??`The ${e.getNameAsString()} variable.`,default:e.getDefaultValue(),optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,visibility:e.getVisibility(),type:e.getType(),tags:e.getTags()})})}}});function li(e){if(f(e)){let t=xe.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),e.toUpperCase());for(;t.startsWith(`_`);)t=t.slice(1);return t}return Object.keys(e).reduce((t,n)=>{let r=li(n);return r&&(t[r]=e[n]),t},{})}async function ui(e,t,n){let r=await ft(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>pt(e,n)));for(let e of t)r=u(e,r)}return li(r)}async function di(e,t,n,r,i,a){let[o,s]=await Promise.all([ui(e,n,t),ve({cwd:t,name:`storm`,envName:n,defaults:{NAME:i.name?.replace(`@${a.namespace}/`,``),MODE:n,ORG:a.organization},globalRc:!0,packageJson:!0,dotenv:!0,jitiOptions:{fsCache:m(r,`jiti`),moduleCache:!0}})]);return u(o,s.config,a)}function fi(e,t){return u({APP_NAME:se(e.config.name||e.packageJson.name?.replace(`/${e.workspaceConfig.namespace}`,``)),APP_VERSION:e.packageJson.version,BUILD_ID:e.meta.buildId,BUILD_TIMESTAMP:new Date(e.meta.timestamp).toISOString(),BUILD_CHECKSUM:e.meta.checksum,RELEASE_ID:e.meta.releaseId,RELEASE_TAG:`${se(e.config.name)}@${e.packageJson.version}`,DEFAULT_LOCALE:e.workspaceConfig.locale,DEFAULT_TIMEZONE:e.workspaceConfig.timezone,LOG_LEVEL:e.config.logLevel,ERROR_URL:e.workspaceConfig.error?.url,ORGANIZATION:re(e.workspaceConfig.organization)?e.workspaceConfig.organization:e.workspaceConfig.organization?.name,PLATFORM:e.config.build.platform,MODE:e.workspaceConfig.mode,DEBUG:e.workspaceConfig.mode===`development`,STACKTRACE:e.workspaceConfig.mode===`development`,ENVIRONMENT:e.environment},te(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function pi(e,t){let[n,r,i]=await Promise.all([di(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),di(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),di(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return u(fi(e,process.env),n,r,i)}function mi(e){let t=Ge(()=>e&&fi(e,process.env));return Ke(async()=>{if(!e)return new x.ReflectionClass({kind:x.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Q(e,`env`);return n.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{n.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||d(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(t.value?.[e.getNameAsString()]??e.getAlias().reduce((e,n)=>e??t.value?.[n],void 0)??e.getDefaultValue())}),n})}function hi(e){let[{defaultValue:t,reflection:i}]=qe(e,[`defaultValue`,`reflection`]),a=nt();return[n(ut,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:t,reflection:i,export:!0}),r(`hbr`,{}),r(`hbr`,{}),n(et,{name:`Env`,export:!0,get children(){return v` {
22
+ [Key in keyof EnvBase as Key ${a?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
23
23
  }
24
- `})]})}function hi(e){let[{context:t,name:n}]=We(e,[`context`,`name`]);return t?_`propertyName === "${n}" || propertyName.replace(/^(${t.config.env.prefix.sort((e,t)=>e.startsWith(t)?-1:t.startsWith(e)?1:e.localeCompare(t)).map(e=>`${e.replace(/_$/,``)}_`).join(`|`)})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${n.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function gi(e){let[{context:t,property:n,index:r}]=We(e,[`context`,`property`,`index`]);return t?x(b,{children:x(r===0?Ye:qe,{condition:S(b,{children:[x(hi,{name:n.getNameAsString(),context:t}),S(Ve,{when:n.getAlias()&&n.getAlias().length>0,children:[_` || `,x(Be,{each:n.getAlias(),joiner:_` || `,children:e=>x(hi,{name:e,context:t})})]})]}),children:_`return target["${n.getNameAsString()}"];`})}):null}function _i(e){let[{context:t,property:n,index:r}]=We(e,[`context`,`property`,`index`]);return t?x(b,{children:x(r===0?Ye:qe,{condition:S(b,{children:[x(hi,{name:n.getNameAsString(),context:t}),S(Ve,{when:n.getAlias()&&n.getAlias().length>0,children:[_` || `,x(Be,{each:n.getAlias(),joiner:_` || `,children:e=>x(hi,{name:e,context:t})})]})]}),children:_`
25
- target["${n.getNameAsString()}"] = newValue;
24
+ `}})]}function gi(e){let[{context:t,name:n}]=qe(e,[`context`,`name`]);return t?v`propertyName === "${n}" || propertyName.replace(/^(${t.config.env.prefix.sort((e,t)=>e.startsWith(t)?-1:t.startsWith(e)?1:e.localeCompare(t)).map(e=>`${e.replace(/_$/,``)}_`).join(`|`)})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${n.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function _i(e){let[{context:t,property:r,index:a}]=qe(e,[`context`,`property`,`index`]);return t?[n(a===0?Qe:Xe,{get condition(){return[n(gi,{get name(){return r.getNameAsString()},context:t}),n(We,{get when(){return i(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[v` || `,n(Ue,{get each(){return r.getAlias()},joiner:v` || `,children:e=>n(gi,{name:e,context:t})})]}})]},get children(){return v`return target["${r.getNameAsString()}"];`}})]:null}function vi(e){let[{context:t,property:r,index:a}]=qe(e,[`context`,`property`,`index`]);return t?[n(a===0?Qe:Xe,{get condition(){return[n(gi,{get name(){return r.getNameAsString()},context:t}),n(We,{get when(){return i(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[v` || `,n(Ue,{get each(){return r.getAlias()},joiner:v` || `,children:e=>n(gi,{name:e,context:t})})]}})]},get children(){return v`
25
+ target["${r.getNameAsString()}"] = newValue;
26
26
  return true;
27
- `})}):null}const vi=et(`createEnv`),yi=et(`env`),bi=et(`EnvSerializer`);function xi(e){let[{defaultConfig:t},n]=We(e,[`defaultConfig`]),r=$e(),i=He(()=>r&&di(r,process.env)),a=pi(r),o=He(()=>new C.ReflectionClass({kind:C.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${f(r?.config?.name)} project.`,types:[]},a.data??void 0)),s=He(()=>a.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),l=He(()=>a.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return S(tt,{...n,id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,imports:c({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},n.imports??{}),children:[S(Ve,{when:!Oe(a.data),children:[x(mi,{defaultValue:i.value,reflection:a.data}),x(`hbr`,{}),x(`hbr`,{})]}),x(ct,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:i,reflection:o,export:!0,const:!0}),x(`hbr`,{}),x(`hbr`,{}),S(v,{heading:`The environment configuration serializer for the Powerlines application.`,children:[x(rt,{children:`https://deepkit.io/docs/serialization/serializers`}),x(rt,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),x(y,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}),x(Ge,{refkey:bi,name:`EnvSerializer`,extends:`Serializer`,export:!0,children:x(Ke,{name:`constructor`,public:!0,children:_`
27
+ `}})]:null}const yi=rt(`createEnv`),bi=rt(`env`),xi=rt(`EnvSerializer`);function Si(e){let[{defaultConfig:t},i]=qe(e,[`defaultConfig`]),o=nt(),s=Ge(()=>o&&fi(o,process.env)),c=mi(o),ee=Ge(()=>new x.ReflectionClass({kind:x.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${d(o?.config?.name)} project.`,types:[]},c.data??void 0)),l=Ge(()=>c.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),te=Ge(()=>c.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return n(it,a(i,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return u({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},i.imports??{})},get children(){return[n(We,{get when(){return!je(c.data)},get children(){return[n(hi,{get defaultValue(){return s.value},get reflection(){return c.data}}),r(`hbr`,{}),r(`hbr`,{})]}}),n(dt,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:s,reflection:ee,export:!0,const:!0}),r(`hbr`,{}),r(`hbr`,{}),n(y,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[n(ot,{children:`https://deepkit.io/docs/serialization/serializers`}),n(ot,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),n(b,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),n(Je,{refkey:xi,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return n(Ye,{name:`constructor`,public:!0,children:v`
28
28
  super("env");
29
29
 
30
30
  this.deserializeRegistry.register(
@@ -35,26 +35,26 @@ export { ${e} };`;return``}).join(`
35
35
  );
36
36
  }
37
37
  );
38
- `})}),x(`hbr`,{}),x(`hbr`,{}),S(v,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,children:[x(rt,{children:`https://deepkit.io/docs/serialization/serializers`}),x(rt,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),x(y,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}),x(Qe,{name:`envSerializer`,export:!1,const:!0,initializer:x(Xe,{args:[],target:`EnvSerializer`})}),x(`hbr`,{}),x(`hbr`,{}),S(v,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,children:[x(y,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),x(nt,{children:`const json = serializeEnv(env);`}),x(ot,{children:`ValidationError when serialization or validation fails.`})]}),x(Qe,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),x(`hbr`,{}),x(`hbr`,{}),S(v,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,children:[x(y,{children:`Types that are already correct will be used as-is.`}),x(nt,{children:`const env = deserializeEnv(json);`}),x(ot,{children:`ValidationError when deserialization fails.`})]}),x(Qe,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),x(`hbr`,{}),x(`hbr`,{}),S(v,{heading:`Initializes the Powerlines environment configuration module.`,children:[x(y,{children:`This function initializes the Powerlines environment configuration object.`}),x(it,{name:`environmentConfig`,children:`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}),x(at,{children:`The initialized Powerlines configuration object.`})]}),x(Ve,{when:!!r?.entryPath,children:S(Je,{refkey:vi,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,children:[_`
38
+ `})}}),r(`hbr`,{}),r(`hbr`,{}),n(y,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[n(ot,{children:`https://deepkit.io/docs/serialization/serializers`}),n(ot,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),n(b,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),n(tt,{name:`envSerializer`,export:!1,const:!0,get initializer(){return n($e,{args:[],target:`EnvSerializer`})}}),r(`hbr`,{}),r(`hbr`,{}),n(y,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[n(b,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),n(at,{children:`const json = serializeEnv(env);`}),n(lt,{children:`ValidationError when serialization or validation fails.`})]}}),n(tt,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),r(`hbr`,{}),r(`hbr`,{}),n(y,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[n(b,{children:`Types that are already correct will be used as-is.`}),n(at,{children:`const env = deserializeEnv(json);`}),n(lt,{children:`ValidationError when deserialization fails.`})]}}),n(tt,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),r(`hbr`,{}),r(`hbr`,{}),n(y,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[n(b,{children:`This function initializes the Powerlines environment configuration object.`}),n(st,{name:`environmentConfig`,children:`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}),n(ct,{children:`The initialized Powerlines configuration object.`})]}}),n(We,{get when(){return!!o?.entryPath},get children(){return n(Ze,{refkey:yi,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[v`
39
39
  return new Proxy<Env>(
40
40
  deserializeEnv({
41
41
  ...initialEnv,
42
42
  ...environmentConfig
43
43
  }) as Env,
44
44
  {
45
- get: (target: EnvBase, propertyName: string) => { `,x(`hbr`,{}),x(Be,{each:s,children:(e,t)=>x(gi,{index:t,context:r,property:e})}),_`
45
+ get: (target: EnvBase, propertyName: string) => { `,r(`hbr`,{}),n(Ue,{each:l,children:(e,t)=>n(_i,{index:t,context:o,property:e})}),v`
46
46
  return undefined;
47
- }, `,x(`hbr`,{}),x(`hbr`,{}),_` set: (target: EnvBase, propertyName: string, newValue: any) => { `,x(`hbr`,{}),x(Be,{each:l,ender:_` else `,children:(e,t)=>x(_i,{index:t,context:r,property:e})}),x(`hbr`,{}),_`return false;
47
+ }, `,r(`hbr`,{}),r(`hbr`,{}),v` set: (target: EnvBase, propertyName: string, newValue: any) => { `,r(`hbr`,{}),n(Ue,{each:te,ender:v` else `,children:(e,t)=>n(vi,{index:t,context:o,property:e})}),r(`hbr`,{}),v`return false;
48
48
  }
49
49
  }
50
50
  );
51
- `]})}),x(`hbr`,{}),x(`hbr`,{}),x(`hbr`,{}),x(Qe,{refkey:yi,name:`env`,type:`Env`,export:!0,const:!0,initializer:S(b,{children:[_`createEnv(`,t||`{}`,_` as Partial<Env>)`]})})]})}const Si=e=>ue({name:`env`,async generate(){let t=m(e.config.projectRoot,`docs`,`generated`,`env.md`);return e.fs.existsSync(t)?{contents:await e.fs.read(t)||``}:{contents:``}}});var Ci=(e={})=>[Tt(e.babel),{name:`env`,async config(){this.log(r.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:c(e,{types:{},prefix:[]}),transform:{babel:{plugins:[si]}}};if(t.env.types)t.env.types=ge(t.env.types);else{this.log(r.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await ei(this);t.env.types=ge(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=ge(t.env.secrets);else{let e=await ti(this);t.env.secrets=ge(`${e.file}#${e.name}`)}return t.env.prefix=p(t.env.prefix??[]).reduce((e,t)=>{let n=xe(t);return e.includes(n)||e.push(n),e},[..._e,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(r.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=c({parsed:await fi(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&ve(ni(this,`env`)))this.log(r.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await Q(this,`env`),ve($(this,`env`))&&(this.env.used.env=await ii(this)),ve(ni(this,`secrets`))&&(this.env.types.secrets=await Q(this,`secrets`)),ve($(this,`secrets`))&&(this.env.used.secrets=await ai(this));else{if(this.env.types.env=await Zr(this,this.config.env.types?.file?o(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:be(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw Error(`Failed to find the environment configuration type reflection in the context.`);if(await ri(this,this.env.types.env,`env`),this.env.types.secrets=await Qr(this,this.config.env.secrets?.file?o(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:be(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw Error(`Failed to find the secrets configuration type reflection in the context.`);await ri(this,this.env.types.secrets,`secrets`),this.log(r.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await fi(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new C.ReflectionClass({kind:C.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.env),await oi(this,this.env.used.env,`env`),this.env.types.secrets&&(await ri(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new C.ReflectionClass({kind:C.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.secrets),await oi(this,this.env.used.secrets,`secrets`))}},async prepare(){return this.log(r.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),this.render(x(xi,{defaultConfig:this.config.env.defaultConfig}))},async docs(){this.log(r.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=be(this.config.projectRoot,`docs`,`generated`);ve(e)||await ye(e);let t=await Q(this,`env`),n=be(e,`env.md`);this.log(r.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by ${f(this.config.framework)||`Powerlines`} -->
51
+ `]}})}}),r(`hbr`,{}),r(`hbr`,{}),r(`hbr`,{}),n(tt,{refkey:bi,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[v`createEnv(`,t||`{}`,v` as Partial<Env>)`]}})]}}))}const Ci=e=>me({name:`env`,async generate(){let t=m(e.config.projectRoot,`docs`,`generated`,`env.md`);return e.fs.existsSync(t)?{contents:await e.fs.read(t)||``}:{contents:``}}});var wi=(e={})=>[Dt(e.babel),{name:`env`,async config(){this.log(s.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:u(e,{types:{},prefix:[]}),transform:{babel:{plugins:[ci]}}};if(t.env.types)t.env.types=be(t.env.types);else{this.log(s.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await ti(this);t.env.types=be(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=be(t.env.secrets);else{let e=await ni(this);t.env.secrets=be(`${e.file}#${e.name}`)}return t.env.prefix=p(t.env.prefix??[]).reduce((e,t)=>{let n=we(t);return e.includes(n)||e.push(n),e},[...xe,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(s.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=u({parsed:await pi(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&h(ri(this,`env`)))this.log(s.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await Q(this,`env`),h($(this,`env`))&&(this.env.used.env=await ai(this)),h(ri(this,`secrets`))&&(this.env.types.secrets=await Q(this,`secrets`)),h($(this,`secrets`))&&(this.env.used.secrets=await oi(this));else{if(this.env.types.env=await Qr(this,this.config.env.types?.file?l(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:Ce(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw Error(`Failed to find the environment configuration type reflection in the context.`);if(await ii(this,this.env.types.env,`env`),this.env.types.secrets=await $r(this,this.config.env.secrets?.file?l(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:Ce(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw Error(`Failed to find the secrets configuration type reflection in the context.`);await ii(this,this.env.types.secrets,`secrets`),this.log(s.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await pi(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new x.ReflectionClass({kind:x.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.env),await si(this,this.env.used.env,`env`),this.env.types.secrets&&(await ii(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new x.ReflectionClass({kind:x.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.secrets),await si(this,this.env.used.secrets,`secrets`))}},async prepare(){let e=this;return this.log(s.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),this.render(n(Si,{get defaultConfig(){return e.config.env.defaultConfig}}))},async docs(){this.log(s.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=Ce(this.config.projectRoot,`docs`,`generated`);h(e)||await Se(e);let t=await Q(this,`env`),n=Ce(e,`env.md`);this.log(s.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by ${d(this.config.framework)||`Powerlines`} -->
52
52
 
53
53
  Below is a list of environment variables used by the [${this.packageJson.name}](https://www.npmjs.com/package/${this.packageJson.name}) package. These values can be updated in the \`.env\` file in the root of the project. The variables in the list below are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.
54
54
 
55
55
  | Name | Description | Type | Default Value | Required |
56
56
  | ---- | ----------- | ---- | ------------- | :------: |
57
57
  ${t.getProperties().filter(e=>e.getNameAsString()!==`__POWERLINES_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(e=>`| ${e.getNameAsString().trim()} | ${(e.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
58
- `,``)??``).trim()} | ${(0,C.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
58
+ `,``)??``).trim()} | ${(0,x.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
59
59
  `)}
60
- `)},async buildEnd(){let e=$(this,`env`);this.log(r.TRACE,`Writing env reflection types to ${e}.`),await oi(this,this.env.used.env,`env`)}},{name:`env:automd-generator`,config(){return{automd:c(e.automd??{},{generators:{env:Si(this)}})}}},{name:`env:vite`,vite:{configResolved(){return{envPrefix:this.config?.env?.prefix}}}},Et(e.automd)];function wi(e,t,n=[`.ts`,`.tsx`,`.d.ts`]){return t.find(t=>e?.toString().toLowerCase()===t?.toString().toLowerCase()||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}`||`./${e?.toString().toLowerCase()}`===t?.toString().toLowerCase()||n.some(n=>`${e?.toString().toLowerCase()}${n}`===t?.toString().toLowerCase()||`${e?.toString().toLowerCase()}${n}`==`./${t?.toString().toLowerCase()}`||`${t?.toString().toLowerCase()}${n}`==`./${e?.toString().toLowerCase()}`||e?.toString().toLowerCase()===`${t?.toString().toLowerCase()}${n}`||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}${n}`||t?.toString().toLowerCase()===`./${e?.toString().toLowerCase()}${n}`))}function Ti(e,t){return wi(e,t)!==void 0}const Ei=(e={})=>[Tt(e.babel),Ci(e.env),{name:`react`,config(){return c({react:e},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:`automatic`,jsxImportSource:`react`,compiler:{target:`19`,compilationMode:`infer`,gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:`isOptimizationEnabled`},enableReanimatedCheck:!0,logger:{logEvent:(e,t)=>{this.log(t.kind===`CompileSuccess`?r.SUCCESS:t.kind===`AutoDepsEligible`||t.kind===`AutoDepsDecorations`?r.INFO:t.kind===`CompileSkip`||t.kind===`CompileDiagnostic`?r.DEBUG:t.kind===`Timing`?r.TRACE:r.ERROR,`(${e}) ${t.kind===`CompileSuccess`?`React Compiler Success`:t.kind===`AutoDepsEligible`?`React AutoDeps Eligible - ${t.depArrayLoc.identifierName||`No identifier`}`:t.kind===`AutoDepsDecorations`?`React AutoDeps Decorations - ${t.decorations.filter(e=>e.identifierName).map(e=>e.identifierName).join(`, `)}`:t.kind===`CompileSkip`?`React Compile Skip - ${t.reason}`:t.kind===`CompileDiagnostic`?`React Compile Diagnostic - (Category: ${t.detail.category}) ${t.detail.reason}${t.detail.description?`\n${t.detail.description}`:``}`:t.kind===`Timing`?`React ${t.measurement.entryType} Timing (${t.measurement.name}) - ${t.measurement.duration}ms`:`React Compiler Error - ${t.fnLoc?.identifierName||`unknown location`}`}`)}}}}})},configResolved(){if(this.dependencies.react=`^19.2.3`,this.dependencies[`react-dom`]=`^19.2.3`,this.devDependencies[`@types/react`]=`^19.2.3`,this.devDependencies[`@types/react-dom`]=`^19.2.3`,this.config.react.compiler!==!1&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push([`babel-plugin-react-compiler`,this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.module??=`esnext`,this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource===`react`?this.tsconfig.tsconfigJson.compilerOptions.jsx??=`react-jsx`:this.tsconfig.tsconfigJson.compilerOptions.jsx??=`preserve`,this.environment.consumer===`client`&&(Ti(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),Ti(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),Ti(`esnext`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`ESNext`),this.tsconfig.options.resolveJsonModule!==!0&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=!0),this.config.build.variant===`vite`){this.tsconfig.tsconfigJson.compilerOptions.types??=[],Ti(`vite/client`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`vite/client`);let e=this.config.build;e.build??={},e.build.target=`chrome95`,e.plugins??=[],e.plugins.unshift(dt({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}))}this.env?.types?.env&&!this.env.types.env.hasProperty(`DISABLE_REACT_COMPILER`)&&this.env.types.env.addProperty({name:`DISABLE_REACT_COMPILER`,optional:!0,readonly:!0,description:`Disables the React compiler optimizations.`,visibility:C.ReflectionVisibility.public,type:{kind:C.ReflectionKind.boolean},default:!1})},async prepare(){return this.render(x(t,{override:this.config.react.compiler===!1?!1:void 0}))}}];var Di=Ei;export{t as ReactOptimizedBuiltin,Di as default,Ei as plugin};
60
+ `)},async buildEnd(){let e=$(this,`env`);this.log(s.TRACE,`Writing env reflection types to ${e}.`),await si(this,this.env.used.env,`env`)}},{name:`env:automd-generator`,config(){return{automd:u(e.automd??{},{generators:{env:Ci(this)}})}}},{name:`env:vite`,vite:{configResolved(){return{envPrefix:this.config?.env?.prefix}}}},Ot(e.automd)];function Ti(e,t,n=[`.ts`,`.tsx`,`.d.ts`]){return t.find(t=>e?.toString().toLowerCase()===t?.toString().toLowerCase()||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}`||`./${e?.toString().toLowerCase()}`===t?.toString().toLowerCase()||n.some(n=>`${e?.toString().toLowerCase()}${n}`===t?.toString().toLowerCase()||`${e?.toString().toLowerCase()}${n}`==`./${t?.toString().toLowerCase()}`||`${t?.toString().toLowerCase()}${n}`==`./${e?.toString().toLowerCase()}`||e?.toString().toLowerCase()===`${t?.toString().toLowerCase()}${n}`||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}${n}`||t?.toString().toLowerCase()===`./${e?.toString().toLowerCase()}${n}`))}function Ei(e,t){return Ti(e,t)!==void 0}const Di=(e={})=>[Dt(e.babel),wi(e.env),{name:`react`,config(){return u({react:e},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:`automatic`,jsxImportSource:`react`,compiler:{target:`19`,compilationMode:`infer`,gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:`isOptimizationEnabled`},enableReanimatedCheck:!0,logger:{logEvent:(e,t)=>{this.log(t.kind===`CompileSuccess`?s.SUCCESS:t.kind===`AutoDepsEligible`||t.kind===`AutoDepsDecorations`?s.INFO:t.kind===`CompileSkip`||t.kind===`CompileDiagnostic`?s.DEBUG:t.kind===`Timing`?s.TRACE:s.ERROR,`(${e}) ${t.kind===`CompileSuccess`?`React Compiler Success`:t.kind===`AutoDepsEligible`?`React AutoDeps Eligible - ${t.depArrayLoc.identifierName||`No identifier`}`:t.kind===`AutoDepsDecorations`?`React AutoDeps Decorations - ${t.decorations.filter(e=>e.identifierName).map(e=>e.identifierName).join(`, `)}`:t.kind===`CompileSkip`?`React Compile Skip - ${t.reason}`:t.kind===`CompileDiagnostic`?`React Compile Diagnostic - (Category: ${t.detail.category}) ${t.detail.reason}${t.detail.description?`\n${t.detail.description}`:``}`:t.kind===`Timing`?`React ${t.measurement.entryType} Timing (${t.measurement.name}) - ${t.measurement.duration}ms`:`React Compiler Error - ${t.fnLoc?.identifierName||`unknown location`}`}`)}}}}})},configResolved(){if(this.dependencies.react=`^19.2.3`,this.dependencies[`react-dom`]=`^19.2.3`,this.devDependencies[`@types/react`]=`^19.2.3`,this.devDependencies[`@types/react-dom`]=`^19.2.3`,this.config.react.compiler!==!1&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push([`babel-plugin-react-compiler`,this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.module??=`esnext`,this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource===`react`?this.tsconfig.tsconfigJson.compilerOptions.jsx??=`react-jsx`:this.tsconfig.tsconfigJson.compilerOptions.jsx??=`preserve`,this.environment.consumer===`client`&&(Ei(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),Ei(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),Ei(`esnext`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`ESNext`),this.tsconfig.options.resolveJsonModule!==!0&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=!0),this.config.build.variant===`vite`){this.tsconfig.tsconfigJson.compilerOptions.types??=[],Ei(`vite/client`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`vite/client`);let e=this.config.build;e.build??={},e.build.target=`chrome95`,e.plugins??=[],e.plugins.unshift(mt({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}))}this.env?.types?.env&&!this.env.types.env.hasProperty(`DISABLE_REACT_COMPILER`)&&this.env.types.env.addProperty({name:`DISABLE_REACT_COMPILER`,optional:!0,readonly:!0,description:`Disables the React compiler optimizations.`,visibility:x.ReflectionVisibility.public,type:{kind:x.ReflectionKind.boolean},default:!1})},async prepare(){let e=this;return this.render(n(t,{get override(){return e.config.react.compiler===!1?!1:void 0}}))}}];var Oi=Di;export{t as ReactOptimizedBuiltin,Oi as default,Di as plugin};