@powerlines/plugin-react 0.1.108 → 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/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/react-optimized.cjs +1 -1
- package/dist/components/react-optimized.mjs +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +24 -24
- package/dist/{plugin-CCWbVJ0P.d.mts → plugin-CoU4RMKg.d.mts} +2 -2
- package/dist/react-optimized-AthekqzJ.cjs +1 -0
- package/dist/react-optimized-DPBN2hOh.mjs +1 -0
- package/dist/{runtime-CbWds61u.d.mts → runtime-Do9xjHUb.d.mts} +0 -1
- package/dist/{runtime-CKyYLoHU.d.mts → runtime-IEYS5R9b.d.mts} +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/runtime.d.mts +2 -2
- package/package.json +11 -11
- package/dist/react-optimized-Btf0j0ZP.cjs +0 -1
- package/dist/react-optimized-C8ZBC6OY.mjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./react-optimized-Btf0j0ZP.cjs`);require(`./components-BWLXb7a2.cjs`),require(`./plugin-pBKbb5K9.cjs`),require(`./runtime-Bp9G0scd.cjs`),require(`./types-a8gm_IaQ.cjs`);let t=require(`@babel/core`),n=require(`@storm-software/config-tools/types`),r=require(`@stryke/path/file-path-fns`),i=require(`@stryke/path/is-parent-path`),a=require(`@stryke/type-checks/is-set-object`),o=require(`defu`);o=e.r(o);let s=require(`@stryke/type-checks/is-function`);require(`@stryke/type-checks/is-object`);let c=require(`@stryke/type-checks/is-set-string`),l=require(`chalk`);l=e.r(l);let ee=require(`@babel/generator`);ee=e.r(ee),require(`@babel/parser`);let te=require(`@babel/helper-plugin-utils`);require(`@storm-software/config-tools/logger`),require(`@storm-software/config-tools/utilities/colors`),require(`@stryke/helpers/noop`);let ne=require(`@stryke/string-format/kebab-case`),u=require(`@stryke/string-format/title-case`),d=require(`@babel/types`);d=e.r(d);let re=require(`@stryke/type-checks/is-string`),f=require(`@stryke/convert/to-array`),ie=require(`@stryke/fs/is-file`),ae=require(`@stryke/fs/list-files`),oe=require(`@stryke/path/append`),se=require(`@stryke/path/is-type`),p=require(`@stryke/path/join-paths`),ce=require(`@stryke/path/replace`),le=require(`automd`),ue=require(`c12`),de=require(`markdown-toc`);de=e.r(de);let fe=require(`@stryke/convert/parse-type-definition`),pe=require(`@stryke/env/types`),me=require(`@stryke/fs/exists`),he=require(`@stryke/fs/helpers`),ge=require(`@stryke/path/join`),_e=require(`@stryke/string-format/constant-case`),m=require(`@stryke/type-checks`),h=require(`@stryke/capnp`);h=e.r(h);let ve=require(`@stryke/helpers/get-unique`),ye=require(`@stryke/json/storm-json`),be=require(`@stryke/type-checks/is-null`),xe=require(`@stryke/type-checks/is-undefined`),g=require(`@stryke/fs/buffer`),Se=require(`node:fs`),Ce=require(`@stryke/fs/resolve`),we=require(`@stryke/type-checks/is-empty-object`),Te=require(`esbuild`),Ee=require(`@stryke/helpers/omit`),_=require(`@stryke/string-format/camel-case`);require(`@stryke/hash/murmurhash`);let v=require(`typescript`);v=e.r(v);let y=require(`@alloy-js/core`),b=require(`@alloy-js/typescript`),De=require(`@powerlines/alloy/core/contexts/context`),Oe=require(`@powerlines/alloy/helpers/refkey`),ke=require(`@powerlines/alloy/typescript/components/builtin-file`),x=require(`@powerlines/alloy/typescript/components/tsdoc`),Ae=require(`@powerlines/alloy/typescript/components/typescript-interface`),je=require(`@powerlines/alloy/typescript/components/typescript-object`),Me=require(`@stryke/env/load-env`),S=require(`@alloy-js/core/jsx-runtime`);require(`@alloy-js/markdown`),require(`@powerlines/alloy/markdown/components/markdown-file`),require(`@powerlines/alloy/markdown/components/markdown-table`);let Ne=require(`@vitejs/plugin-react`);Ne=e.r(Ne),require(`@stryke/fs/json`);var C={};e.n(C,require(`@deepkit/type`));function Pe(e){return(0,c.isSetString)(e)?e:Array.isArray(e)&&e.length>0?Pe(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function Fe(e,t){return!!(Pe(t)&&e.some(e=>Array.isArray(e)&&Pe(e[0])===Pe(t)))}function Ie(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?(0,s.isFunction)(t[0])?t[0](e):t[0]:(0,s.isFunction)(t)?t(e):t}catch{return t[0]}}function Le(e,t,r,i){if(Array.isArray(i)&&i.length>0&&i[0]){if(i.length>2&&i[2]&&(0,s.isFunction)(i[2])&&!i[2](t,r)){e.log(n.LogLevelLabel.TRACE,`Skipping filtered Babel plugin ${l.default.bold.cyanBright(Pe(i)||`unnamed`)} for ${r}`);return}return i.length>2?[Ie(e,i),i[1],i[2]]:[Ie(e,i),i[1],null]}return[Ie(e,i),{},null]}let Re=ee.default;`default`in Re&&(Re=Re.default);const ze=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#D8B4FE`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`,`#8B5CF6`],Be=(e,t)=>(n,...r)=>e(n,` ${l.default.inverse.hex(ze[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%ze.length]||ze[0])(` ${(0,u.titleCase)(t)} `)} ${r.join(` `)} `);function Ve(e,t){let r=r=>(0,te.declare)((i,a,o)=>{i.cache.using(()=>r.meta.checksum),i.assertVersion(`^7.0.0-0`);let s=Be(r.log,e);s(n.LogLevelLabel.TRACE,`Initializing the ${l.default.bold.cyanBright(e)} Babel plugin`);let c=t({log:s,name:e,api:i,options:a,context:r,dirname:o});return c.name=e,s(n.LogLevelLabel.TRACE,`Completed initialization of the ${l.default.bold.cyanBright(e)} Babel plugin`),c});return r.$$name=e,r}function He(e,t){Ge(e.scope.getProgramParent().path,t)}function Ue(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function We(e){let t=new Map;return e.traverse({ImportDeclaration(e){Ue(e)&&t.set(e.node.source.value,e)}}),t}function Ge(e,t){We(e).get(t.module)||e.unshiftContainer(`body`,d.importDeclaration([d.importSpecifier(d.identifier(t.name||t.imported),d.identifier(t.imported))],d.stringLiteral(t.module)))}const Ke=(e={})=>({name:`babel`,config(){if((0,a.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,o.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(a,s){if((0,i.isParentPath)(s,this.powerlinesPath)||a.includes(`/* @storm-ignore */`)||a.includes(`/* @storm-disable */`))return this.log(n.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${s}`),{code:a,id:s};this.log(n.LogLevelLabel.TRACE,`Babel transforming file: ${s}`);let c=this.config.transform.babel.plugins.map(e=>Le(this,a,s,e)).filter((e,t,n)=>e&&!Fe(n,e)),l=this.config.transform.babel.presets.map(e=>Le(this,a,s,e)).filter((e,t,n)=>e&&!Fe(n,e));if(Array.isArray(c)&&c.length===0&&Array.isArray(l)&&l.length===0)return{code:a,id:s};[`ts`,`cts`,`mts`,`tsx`].includes((0,r.findFileExtensionSafe)(s))&&!Fe(c,`@babel/plugin-syntax-typescript`)&&!Fe(l,`@babel/preset-typescript`)&&c.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,r.findFileExtension)(s)===`.tsx`}]);let ee=await(0,t.transformAsync)(a,{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:c.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,o.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:l.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,o.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!ee?.code)throw Error(`Powerlines - Babel plugin failed to compile ${s}`);return{code:ee.code,id:s}}});var qe=Ke;const Je=(e={})=>({name:`automd`,async config(){let t=await(0,le.loadConfig)((0,p.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot),e);return(!t.prefix||!Array.isArray(t.prefix))&&(t.prefix=(0,f.toArray)(t.prefix??[])),t.prefix.includes(`automd`)||t.prefix.push(`automd`),t.prefix.includes(`powerlines`)||t.prefix.push(`powerlines`),{automd:(0,o.default)(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&&!(0,f.toArray)(this.config.automd.prefix).includes(this.config.framework)&&(this.config.automd.prefix=(0,f.toArray)(this.config.automd.prefix).concat(this.config.framework)),this.config.automd.configFile){let{config:e}=await(0,ue.loadConfig)({cwd:this.config.automd.dir,configFile:this.config.automd.configFile,defaults:{ignore:[`**/node_modules`,`**/dist`,`**/.*`],dir:this.config.automd.dir}});this.config.automd=(0,le.resolveConfig)((0,o.default)(this.config.automd,{...e,prefix:(0,f.toArray)(e.prefix??[])}))}this.config.automd.input=(await Promise.all((0,f.toArray)(this.config.automd.input).map(async e=>e.includes(`*`)?(0,ae.listFiles)((0,se.isAbsolutePath)(e)?e:(0,oe.appendPath)(e,this.config.projectRoot),{ignore:this.config.automd.ignore}):(0,se.isAbsolutePath)(e)?e:(0,oe.appendPath)(e,this.config.projectRoot)))).flat(),this.config.automd.output&&!(0,se.isAbsolutePath)(this.config.automd.output)&&(this.config.automd.output=(0,oe.appendPath)(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:(0,de.default)(e.block.md,{...t,maxdepth:t.maxDepth,first1:t.firstH1}).content}}})},async docs(){await Promise.all((0,f.toArray)(this.config.automd.input).map(async e=>{let t=await this.fs.read(e);if(t){let n=await(0,le.transform)(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((0,oe.appendPath)(this.config.automd.output?(0,ie.isDirectory)(this.config.automd.output)?(0,ce.replacePath)(e,this.config.automd.output):this.config.automd.output:e,this.config.projectRoot),n.contents)}}))}});var Ye=Je;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 Xe={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Ze=class extends h.Struct{static UNDEFINED=Xe.UNDEFINED;static BOOLEAN=Xe.BOOLEAN;static INTEGER=Xe.INTEGER;static FLOAT=Xe.FLOAT;static STRING=Xe.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(Ze,this)}_initValue(){return h.utils.getAs(Ze,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()}},Qe=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()}},$e=class e extends h.Struct{static EntityIndexOptions=Qe;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()}},et=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()}},k=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()}},A=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()}},j=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()}},tt=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()}},nt=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()}},rt=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()}},it=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()}},at=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()}},ot=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()}},st=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()}},ct=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()}},lt=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()}},ut=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()}},dt=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()}},ft=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()}},pt=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()}},mt=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()}},ht=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()}},_t=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()}},vt=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()}},yt=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()}},bt=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 M={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var xt=class extends h.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 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,vt,this)}_hasSymbol(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initSymbol(){return h.utils.setUint16(2,0,this),h.utils.initStructAt(4,vt,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,yt,this)}_hasBigint(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initBigint(){return h.utils.setUint16(2,4,this),h.utils.initStructAt(4,yt,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,bt,this)}_hasRegex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initRegex(){return h.utils.setUint16(2,5,this),h.utils.initStructAt(4,bt,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)}},St=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()}},Ct=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()}},wt=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 N={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 Tt=class extends h.Struct{static SIMPLE=N.SIMPLE;static LITERAL=N.LITERAL;static TEMPLATE_LITERAL=N.TEMPLATE_LITERAL;static PARAMETER=N.PARAMETER;static FUNCTION=N.FUNCTION;static METHOD=N.METHOD;static PROPERTY=N.PROPERTY;static PROMISE=N.PROMISE;static CLASS_TYPE=N.CLASS_TYPE;static ENUM=N.ENUM;static UNION=N.UNION;static INTERSECTION=N.INTERSECTION;static ARRAY=N.ARRAY;static OBJECT_LITERAL=N.OBJECT_LITERAL;static INDEX_SIGNATURE=N.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=N.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=N.METHOD_SIGNATURE;static TYPE_PARAMETER=N.TYPE_PARAMETER;static INFER=N.INFER;static TUPLE=N.TUPLE;static TUPLE_MEMBER=N.TUPLE_MEMBER;static REST=N.REST;static OTHER=N.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,_t,this)}_hasSimple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initSimple(){return h.utils.setUint16(0,0,this),h.utils.initStructAt(0,_t,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,St,this)}_hasLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initLiteral(){return h.utils.setUint16(0,1,this),h.utils.initStructAt(0,St,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,Ct,this)}_hasTemplateLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTemplateLiteral(){return h.utils.setUint16(0,2,this),h.utils.initStructAt(0,Ct,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,A,this)}_hasParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initParameter(){return h.utils.setUint16(0,3,this),h.utils.initStructAt(0,A,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,nt,this)}_hasFunction(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initFunction(){return h.utils.setUint16(0,4,this),h.utils.initStructAt(0,nt,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,j,this)}_hasMethod(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethod(){return h.utils.setUint16(0,5,this),h.utils.initStructAt(0,j,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,tt,this)}_hasProperty(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initProperty(){return h.utils.setUint16(0,6,this),h.utils.initStructAt(0,tt,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,rt,this)}_hasPromise(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPromise(){return h.utils.setUint16(0,7,this),h.utils.initStructAt(0,rt,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,k,this)}_hasClassType(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initClassType(){return h.utils.setUint16(0,8,this),h.utils.initStructAt(0,k,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,at,this)}_hasEnum(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initEnum(){return h.utils.setUint16(0,9,this),h.utils.initStructAt(0,at,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,ot,this)}_hasUnion(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initUnion(){return h.utils.setUint16(0,10,this),h.utils.initStructAt(0,ot,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,st,this)}_hasIntersection(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIntersection(){return h.utils.setUint16(0,11,this),h.utils.initStructAt(0,st,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,ct,this)}_hasArray(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initArray(){return h.utils.setUint16(0,12,this),h.utils.initStructAt(0,ct,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,et,this)}_hasObjectLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initObjectLiteral(){return h.utils.setUint16(0,13,this),h.utils.initStructAt(0,et,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,lt,this)}_hasIndexSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIndexSignature(){return h.utils.setUint16(0,14,this),h.utils.initStructAt(0,lt,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,ut,this)}_hasPropertySignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPropertySignature(){return h.utils.setUint16(0,15,this),h.utils.initStructAt(0,ut,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,dt,this)}_hasMethodSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethodSignature(){return h.utils.setUint16(0,16,this),h.utils.initStructAt(0,dt,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,ft,this)}_hasTypeParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypeParameter(){return h.utils.setUint16(0,17,this),h.utils.initStructAt(0,ft,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,pt,this)}_hasInfer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initInfer(){return h.utils.setUint16(0,18,this),h.utils.initStructAt(0,pt,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,ht,this)}_hasTuple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTuple(){return h.utils.setUint16(0,19,this),h.utils.initStructAt(0,ht,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,mt,this)}_hasTupleMember(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTupleMember(){return h.utils.setUint16(0,20,this),h.utils.initStructAt(0,mt,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,wt,this)}_hasOther(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initOther(){return h.utils.setUint16(0,22,this),h.utils.initStructAt(0,wt,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)}},Et=class extends h.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new h.ObjectSize(8,1)};get type(){return h.utils.getAs(Tt,this)}_initType(){return h.utils.getAs(Tt,this)}toString(){return`SerializedType_`+super.toString()}},Dt=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()}};$e._Indexes=h.CompositeList(Qe),et._TypeArguments=h.CompositeList(D),et._Decorators=h.CompositeList(D),et._Types=h.CompositeList(D),k._TypeArguments=h.CompositeList(D),k._Decorators=h.CompositeList(D),k._ExtendsArguments=h.CompositeList(D),k._Arguments=h.CompositeList(D),k._Types=h.CompositeList(D),A._TypeArguments=h.CompositeList(D),A._Decorators=h.CompositeList(D),j._TypeArguments=h.CompositeList(D),j._Decorators=h.CompositeList(D),j._Parameters=h.CompositeList(A),tt._TypeArguments=h.CompositeList(D),tt._Decorators=h.CompositeList(D),nt._TypeArguments=h.CompositeList(D),nt._Decorators=h.CompositeList(D),nt._Parameters=h.CompositeList(A),rt._TypeArguments=h.CompositeList(D),rt._Decorators=h.CompositeList(D),at._TypeArguments=h.CompositeList(D),at._Decorators=h.CompositeList(D),at._EnumEntries=h.CompositeList(it),ot._TypeArguments=h.CompositeList(D),ot._Decorators=h.CompositeList(D),ot._Types=h.CompositeList(D),st._TypeArguments=h.CompositeList(D),st._Decorators=h.CompositeList(D),st._Types=h.CompositeList(D),ct._TypeArguments=h.CompositeList(D),ct._Decorators=h.CompositeList(D),lt._TypeArguments=h.CompositeList(D),lt._Decorators=h.CompositeList(D),ut._TypeArguments=h.CompositeList(D),ut._Decorators=h.CompositeList(D),dt._TypeArguments=h.CompositeList(D),dt._Decorators=h.CompositeList(D),dt._Parameters=h.CompositeList(A),ft._TypeArguments=h.CompositeList(D),ft._Decorators=h.CompositeList(D),pt._TypeArguments=h.CompositeList(D),pt._Decorators=h.CompositeList(D),mt._TypeArguments=h.CompositeList(D),mt._Decorators=h.CompositeList(D),ht._TypeArguments=h.CompositeList(D),ht._Decorators=h.CompositeList(D),ht._Types=h.CompositeList(mt),gt._TypeArguments=h.CompositeList(D),gt._Decorators=h.CompositeList(D),_t._TypeArguments=h.CompositeList(D),_t._Decorators=h.CompositeList(D),St._TypeArguments=h.CompositeList(D),St._Decorators=h.CompositeList(D),Ct._TypeArguments=h.CompositeList(D),Ct._Decorators=h.CompositeList(D),Ct._Types=h.CompositeList(D),Dt._Types=h.CompositeList(Et);function Ot(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=>(0,m.isSetObject)(e)&&!(0,m.isUndefined)(e.kind)).forEach((e,n)=>{At(e,t.get(n)._initType())}),t}function kt(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=jt(e.type);t.push(n)}),t}function P(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 F(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 I(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function L(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function At(e,t){return e.kind===C.ReflectionKind.objectLiteral?pn(e,t._initObjectLiteral()):e.kind===C.ReflectionKind.class?dn(e,t._initClassType()):e.kind===C.ReflectionKind.parameter?hn(e,t._initParameter()):e.kind===C.ReflectionKind.function?sn(e,t._initFunction()):e.kind===C.ReflectionKind.method?cn(e,t._initMethod()):e.kind===C.ReflectionKind.infer?an(e,t._initInfer()):e.kind===C.ReflectionKind.union?nn(e,t._initUnion()):e.kind===C.ReflectionKind.array?en(e,t._initArray()):e.kind===C.ReflectionKind.intersection?Qt(e,t._initIntersection()):e.kind===C.ReflectionKind.enum?Xt(e,t._initEnum()):e.kind===C.ReflectionKind.property?Jt(e,t._initProperty()):e.kind===C.ReflectionKind.tuple?Kt(e,t._initTuple()):e.kind===C.ReflectionKind.tupleMember?Wt(e,t._initTupleMember()):e.kind===C.ReflectionKind.propertySignature?Ut(e,t._initPropertySignature()):e.kind===C.ReflectionKind.methodSignature?zt(e,t._initMethodSignature()):e.kind===C.ReflectionKind.literal?Lt(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?Ft(e,t._initSimple()):Pt(e,t._initOther()),t}function jt(e){if(e._isObjectLiteral)return mn(e.objectLiteral);if(e._isClassType)return fn(e.classType);if(e._isParameter)return gn(e.parameter);if(e._isFunction)return ln(e.function);if(e._isInfer)return on(e.infer);if(e._isMethod)return un(e.method);if(e._isUnion)return rn(e.union);if(e._isArray)return tn(e.array);if(e._isIntersection)return $t(e.intersection);if(e._isEnum)return Zt(e.enum);if(e._isProperty)return Yt(e.property);if(e._isTuple)return qt(e.tuple);if(e._isTupleMember)return Gt(e.tupleMember);if(e._isPropertySignature)return Bt(e.propertySignature);if(e._isMethodSignature)return Rt(e.methodSignature);if(e._isLiteral)return It(e.literal);if(e._isSimple)return Nt(e.simple);if(e._isOther)return Mt(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Mt(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Nt(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:L(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function Pt(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function Ft(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function It(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:L(e)}}function Lt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Rt(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:F(e)}}function zt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Bt(e){return{kind:C.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:Ht(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:L(e),tags:F(e)}}function Vt(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?(0,m.isInteger)(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function Ht(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 Ut(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();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Wt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Gt(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:L(e)}}function Kt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Wt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function qt(e){return{kind:C.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>Gt(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:L(e)}}function Jt(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();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Yt(e){return{kind:C.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:Ht(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:L(e),tags:F(e)}}function Xt(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&&I(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&&P(t._initTags(),e.tags),t}function Zt(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:L(e),tags:F(e)}}function Qt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function $t(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:L(e)}}function en(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function tn(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:L(e),tags:F(e)}}function nn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function rn(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:L(e)}}function an(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function on(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:L(e)}}function sn(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)=>{hn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function cn(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)=>{hn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function ln(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:L(e),tags:F(e)}}function un(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 dn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function fn(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:L(e),tags:F(e)}}function pn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function mn(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:L(e),tags:F(e)}}function hn(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();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function gn(e){return{kind:C.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:Ht(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:L(e),tags:F(e)}}var _n=Object.defineProperty,R=(e,t)=>_n(e,`name`,{value:t,configurable:!0}),z=class extends h.Struct{static{R(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()}},B={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},vn=class extends h.Struct{static{R(this,`DefaultValueReflection_Value`)}static UNDEFINED=B.UNDEFINED;static BOOLEAN=B.BOOLEAN;static INTEGER=B.INTEGER;static FLOAT=B.FLOAT;static STRING=B.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)}},V=class extends h.Struct{static{R(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new h.ObjectSize(16,1)};get value(){return h.utils.getAs(vn,this)}_initValue(){return h.utils.getAs(vn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},H=class extends h.Struct{static{R(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()}},U=class extends h.Struct{static{R(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,H,this)}_hasContainer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initContainer(){return h.utils.initStructAt(0,H,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,H,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(1,this))}_initIndex(){return h.utils.initStructAt(1,H,this)}set index(e){h.utils.copyFrom(e,h.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},yn=class extends h.Struct{static{R(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()}},bn=class e extends h.Struct{static{R(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()}},xn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},W=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasSuperClass(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initSuperClass(){return h.utils.initStructAt(8,H,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(10,this))}_initTags(){return h.utils.initStructAt(10,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},G=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,H,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,V,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,V,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Sn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,z,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,H,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,H,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Cn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,z,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,H,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,V,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initDefault(){return h.utils.initStructAt(8,V,this)}set default(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},wn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initTags(){return h.utils.initStructAt(4,z,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,H,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initReturn(){return h.utils.initStructAt(7,H,this)}set return(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Tn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},En=class extends h.Struct{static{R(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()}},Dn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasIndexType(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initIndexType(){return h.utils.initStructAt(6,H,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},On=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},kn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},An=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,H,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initTags(){return h.utils.initStructAt(5,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},jn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasIndex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initIndex(){return h.utils.initStructAt(4,H,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(5,this))}_initType(){return h.utils.initStructAt(5,H,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},Mn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,V,this)}_hasDefault(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initDefault(){return h.utils.initStructAt(6,V,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initType(){return h.utils.initStructAt(7,H,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(8,this))}_initTags(){return h.utils.initStructAt(8,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Nn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasReturn(){return!h.utils.isNull(h.utils.getPointer(6,this))}_initReturn(){return h.utils.initStructAt(6,H,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,z,this)}_hasTags(){return!h.utils.isNull(h.utils.getPointer(7,this))}_initTags(){return h.utils.initStructAt(7,z,this)}set tags(e){h.utils.copyFrom(e,h.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Pn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},Fn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},In=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,H,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()}},K=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},Ln=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasType(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initType(){return h.utils.initStructAt(4,H,this)}set type(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Rn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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,H,this)}_hasOrigin(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initOrigin(){return h.utils.initStructAt(4,H,this)}set origin(e){h.utils.copyFrom(e,h.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},zn=class extends h.Struct{static{R(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()}},Bn=class extends h.Struct{static{R(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()}},Vn=class extends h.Struct{static{R(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()}},q={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},Hn=class extends h.Struct{static{R(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=q.SYMBOL;static STRING=q.STRING;static NUMBER=q.NUMBER;static BOOLEAN=q.BOOLEAN;static BIGINT=q.BIGINT;static REGEX=q.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,zn,this)}_hasSymbol(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initSymbol(){return h.utils.setUint16(2,0,this),h.utils.initStructAt(4,zn,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,Bn,this)}_hasBigint(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initBigint(){return h.utils.setUint16(2,4,this),h.utils.initStructAt(4,Bn,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,Vn,this)}_hasRegex(){return!h.utils.isNull(h.utils.getPointer(4,this))}_initRegex(){return h.utils.setUint16(2,5,this),h.utils.initStructAt(4,Vn,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)}},Un=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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(Hn,this)}_initLiteral(){return h.utils.getAs(Hn,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Wn=class e extends h.Struct{static{R(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,U,this)}_hasIndexAccessOrigin(){return!h.utils.isNull(h.utils.getPointer(2,this))}_initIndexAccessOrigin(){return h.utils.initStructAt(2,U,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()}},Gn=class extends h.Struct{static{R(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()}},J={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},Kn=class extends h.Struct{static{R(this,`SerializedType_Type`)}static SIMPLE=J.SIMPLE;static LITERAL=J.LITERAL;static TEMPLATE_LITERAL=J.TEMPLATE_LITERAL;static PARAMETER=J.PARAMETER;static FUNCTION=J.FUNCTION;static METHOD=J.METHOD;static PROPERTY=J.PROPERTY;static PROMISE=J.PROMISE;static CLASS_TYPE=J.CLASS_TYPE;static ENUM=J.ENUM;static UNION=J.UNION;static INTERSECTION=J.INTERSECTION;static ARRAY=J.ARRAY;static OBJECT_LITERAL=J.OBJECT_LITERAL;static INDEX_SIGNATURE=J.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=J.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=J.METHOD_SIGNATURE;static TYPE_PARAMETER=J.TYPE_PARAMETER;static INFER=J.INFER;static TUPLE=J.TUPLE;static TUPLE_MEMBER=J.TUPLE_MEMBER;static REST=J.REST;static OTHER=J.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,Rn,this)}_hasSimple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initSimple(){return h.utils.setUint16(0,0,this),h.utils.initStructAt(0,Rn,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,Un,this)}_hasLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initLiteral(){return h.utils.setUint16(0,1,this),h.utils.initStructAt(0,Un,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,Wn,this)}_hasTemplateLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTemplateLiteral(){return h.utils.setUint16(0,2,this),h.utils.initStructAt(0,Wn,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,G,this)}_hasParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initParameter(){return h.utils.setUint16(0,3,this),h.utils.initStructAt(0,G,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,wn,this)}_hasFunction(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initFunction(){return h.utils.setUint16(0,4,this),h.utils.initStructAt(0,wn,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,Sn,this)}_hasMethod(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethod(){return h.utils.setUint16(0,5,this),h.utils.initStructAt(0,Sn,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,Cn,this)}_hasProperty(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initProperty(){return h.utils.setUint16(0,6,this),h.utils.initStructAt(0,Cn,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,Tn,this)}_hasPromise(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPromise(){return h.utils.setUint16(0,7,this),h.utils.initStructAt(0,Tn,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,W,this)}_hasClassType(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initClassType(){return h.utils.setUint16(0,8,this),h.utils.initStructAt(0,W,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,Dn,this)}_hasEnum(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initEnum(){return h.utils.setUint16(0,9,this),h.utils.initStructAt(0,Dn,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,On,this)}_hasUnion(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initUnion(){return h.utils.setUint16(0,10,this),h.utils.initStructAt(0,On,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,kn,this)}_hasIntersection(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIntersection(){return h.utils.setUint16(0,11,this),h.utils.initStructAt(0,kn,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,An,this)}_hasArray(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initArray(){return h.utils.setUint16(0,12,this),h.utils.initStructAt(0,An,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,xn,this)}_hasObjectLiteral(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initObjectLiteral(){return h.utils.setUint16(0,13,this),h.utils.initStructAt(0,xn,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,jn,this)}_hasIndexSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initIndexSignature(){return h.utils.setUint16(0,14,this),h.utils.initStructAt(0,jn,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,Mn,this)}_hasPropertySignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initPropertySignature(){return h.utils.setUint16(0,15,this),h.utils.initStructAt(0,Mn,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,Nn,this)}_hasMethodSignature(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initMethodSignature(){return h.utils.setUint16(0,16,this),h.utils.initStructAt(0,Nn,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,Pn,this)}_hasTypeParameter(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTypeParameter(){return h.utils.setUint16(0,17,this),h.utils.initStructAt(0,Pn,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,Fn,this)}_hasInfer(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initInfer(){return h.utils.setUint16(0,18,this),h.utils.initStructAt(0,Fn,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,K,this)}_hasTuple(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTuple(){return h.utils.setUint16(0,19,this),h.utils.initStructAt(0,K,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,In,this)}_hasTupleMember(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initTupleMember(){return h.utils.setUint16(0,20,this),h.utils.initStructAt(0,In,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,Ln,this)}_hasRest(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initRest(){return h.utils.setUint16(0,21,this),h.utils.initStructAt(0,Ln,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,Gn,this)}_hasOther(){return!h.utils.isNull(h.utils.getPointer(0,this))}_initOther(){return h.utils.setUint16(0,22,this),h.utils.initStructAt(0,Gn,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)}},qn=class extends h.Struct{static{R(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new h.ObjectSize(8,1)};get type(){return h.utils.getAs(Kn,this)}_initType(){return h.utils.getAs(Kn,this)}toString(){return`SerializedType_`+super.toString()}},Y=class e extends h.Struct{static{R(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()}};bn._Indexes=h.CompositeList(yn),xn._TypeArguments=h.CompositeList(H),xn._Decorators=h.CompositeList(H),xn._Types=h.CompositeList(H),W._TypeArguments=h.CompositeList(H),W._Decorators=h.CompositeList(H),W._ExtendsArguments=h.CompositeList(H),W._Arguments=h.CompositeList(H),W._Types=h.CompositeList(H),G._TypeArguments=h.CompositeList(H),G._Decorators=h.CompositeList(H),Sn._TypeArguments=h.CompositeList(H),Sn._Decorators=h.CompositeList(H),Sn._Parameters=h.CompositeList(G),Cn._TypeArguments=h.CompositeList(H),Cn._Decorators=h.CompositeList(H),wn._TypeArguments=h.CompositeList(H),wn._Decorators=h.CompositeList(H),wn._Parameters=h.CompositeList(G),Tn._TypeArguments=h.CompositeList(H),Tn._Decorators=h.CompositeList(H),Dn._TypeArguments=h.CompositeList(H),Dn._Decorators=h.CompositeList(H),Dn._EnumEntries=h.CompositeList(En),On._TypeArguments=h.CompositeList(H),On._Decorators=h.CompositeList(H),On._Types=h.CompositeList(H),kn._TypeArguments=h.CompositeList(H),kn._Decorators=h.CompositeList(H),kn._Types=h.CompositeList(H),An._TypeArguments=h.CompositeList(H),An._Decorators=h.CompositeList(H),jn._TypeArguments=h.CompositeList(H),jn._Decorators=h.CompositeList(H),Mn._TypeArguments=h.CompositeList(H),Mn._Decorators=h.CompositeList(H),Nn._TypeArguments=h.CompositeList(H),Nn._Decorators=h.CompositeList(H),Nn._Parameters=h.CompositeList(G),Pn._TypeArguments=h.CompositeList(H),Pn._Decorators=h.CompositeList(H),Fn._TypeArguments=h.CompositeList(H),Fn._Decorators=h.CompositeList(H),In._TypeArguments=h.CompositeList(H),In._Decorators=h.CompositeList(H),K._TypeArguments=h.CompositeList(H),K._Decorators=h.CompositeList(H),K._Types=h.CompositeList(In),Ln._TypeArguments=h.CompositeList(H),Ln._Decorators=h.CompositeList(H),Rn._TypeArguments=h.CompositeList(H),Rn._Decorators=h.CompositeList(H),Un._TypeArguments=h.CompositeList(H),Un._Decorators=h.CompositeList(H),Wn._TypeArguments=h.CompositeList(H),Wn._Decorators=h.CompositeList(H),Wn._Types=h.CompositeList(H),Y._Types=h.CompositeList(qn);function Jn(e,t){return Xn(e.type,t??e.getDefaultValue())}function Yn(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function Xn(e,t){return(0,xe.isUndefined)(t)?`undefined`:(0,be.isNull)(t)?`null`:e.kind===C.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===C.ReflectionKind.string||e.kind===C.ReflectionKind.literal&&(0,re.isString)(e.literal)?Yn(t):e.kind===C.ReflectionKind.enum?Zn(e).kind===C.ReflectionKind.string?Yn(t):`${String(t)}`:e.kind===C.ReflectionKind.union?$n(e)?Yn(t):`${String(t)}`:e.kind===C.ReflectionKind.array?Yn(ye.StormJSON.stringify(t)):e.kind===C.ReflectionKind.object||e.kind===C.ReflectionKind.objectLiteral?ye.StormJSON.stringify(t):e.kind===C.ReflectionKind.property||e.kind===C.ReflectionKind.parameter?Xn(e.type,t):String(t)}function Zn(e){if(e.kind!==C.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=(0,ve.getUniqueBy)(e.values.filter(e=>e!=null),e=>(0,re.isString)(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]&&(0,re.isString)(t[0])?{kind:C.ReflectionKind.string}:{kind:C.ReflectionKind.number}}function Qn(e){if(e.kind===C.ReflectionKind.union&&e.types.length>0)return(0,ve.getUniqueBy)(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function $n(e){return Qn(e).some(e=>e.kind===C.ReflectionKind.string||e.kind===C.ReflectionKind.literal&&(0,re.isString)(e.literal))}function er(e){return(0,p.joinPaths)(e.dataPath,`reflections`)}const tr={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((0,p.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if((0,_.camelCase)(e)!==e){if(t.length===1)return`
|
|
2
|
-
import ${(0,
|
|
3
|
-
export { ${(0,
|
|
4
|
-
import ${t[1]===`*`?`* as ${(0,
|
|
5
|
-
export { ${(0,
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./react-optimized-AthekqzJ.cjs`);require(`./components-BWLXb7a2.cjs`),require(`./plugin-pBKbb5K9.cjs`),require(`./runtime-Bp9G0scd.cjs`),require(`./types-a8gm_IaQ.cjs`);let t=require(`@alloy-js/core/jsx-runtime`),n=require(`@babel/core`),r=require(`@storm-software/config-tools/types`),i=require(`@stryke/path/file-path-fns`),a=require(`@stryke/path/is-parent-path`),o=require(`@stryke/type-checks/is-set-object`),s=require(`defu`);s=e.r(s);let c=require(`@stryke/type-checks/is-function`);require(`@stryke/type-checks/is-object`);let l=require(`@stryke/type-checks/is-set-string`),u=require(`chalk`);u=e.r(u);let ee=require(`@babel/generator`);ee=e.r(ee),require(`@babel/parser`);let te=require(`@babel/helper-plugin-utils`);require(`@storm-software/config-tools/logger`),require(`@storm-software/config-tools/utilities/colors`),require(`@stryke/helpers/noop`);let ne=require(`@stryke/string-format/kebab-case`),d=require(`@stryke/string-format/title-case`),f=require(`@babel/types`);f=e.r(f);let p=require(`@stryke/type-checks/is-string`),m=require(`@stryke/convert/to-array`),re=require(`@stryke/fs/is-file`),ie=require(`@stryke/fs/list-files`),ae=require(`@stryke/path/append`),oe=require(`@stryke/path/is-type`),h=require(`@stryke/path/join-paths`),se=require(`@stryke/path/replace`),ce=require(`automd`),le=require(`c12`),ue=require(`markdown-toc`);ue=e.r(ue);let de=require(`@stryke/convert/parse-type-definition`),fe=require(`@stryke/env/types`),pe=require(`@stryke/fs/exists`),me=require(`@stryke/fs/helpers`),he=require(`@stryke/path/join`),ge=require(`@stryke/string-format/constant-case`),g=require(`@stryke/type-checks`),_=require(`@stryke/capnp`);_=e.r(_);let _e=require(`@stryke/helpers/get-unique`),ve=require(`@stryke/json/storm-json`),ye=require(`@stryke/type-checks/is-null`),be=require(`@stryke/type-checks/is-undefined`),v=require(`@stryke/fs/buffer`),xe=require(`node:fs`),Se=require(`@stryke/fs/resolve`),Ce=require(`@stryke/type-checks/is-empty-object`),we=require(`esbuild`),Te=require(`@stryke/helpers/omit`),y=require(`@stryke/string-format/camel-case`);require(`@stryke/hash/murmurhash`);let b=require(`typescript`);b=e.r(b);let x=require(`@alloy-js/core`),S=require(`@alloy-js/typescript`),Ee=require(`@powerlines/alloy/core/contexts/context`),De=require(`@powerlines/alloy/helpers/refkey`),Oe=require(`@powerlines/alloy/typescript/components/builtin-file`),C=require(`@powerlines/alloy/typescript/components/tsdoc`),ke=require(`@powerlines/alloy/typescript/components/typescript-interface`),Ae=require(`@powerlines/alloy/typescript/components/typescript-object`),je=require(`@stryke/env/load-env`);require(`@alloy-js/markdown`),require(`@powerlines/alloy/markdown/components/markdown-file`),require(`@powerlines/alloy/markdown/components/markdown-table`);let Me=require(`@vitejs/plugin-react`);Me=e.r(Me),require(`@stryke/fs/json`);var w={};e.n(w,require(`@deepkit/type`));function Ne(e){return(0,l.isSetString)(e)?e:Array.isArray(e)&&e.length>0?Ne(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function Pe(e,t){return!!(Ne(t)&&e.some(e=>Array.isArray(e)&&Ne(e[0])===Ne(t)))}function Fe(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?(0,c.isFunction)(t[0])?t[0](e):t[0]:(0,c.isFunction)(t)?t(e):t}catch{return t[0]}}function Ie(e,t,n,i){if(Array.isArray(i)&&i.length>0&&i[0]){if(i.length>2&&i[2]&&(0,c.isFunction)(i[2])&&!i[2](t,n)){e.log(r.LogLevelLabel.TRACE,`Skipping filtered Babel plugin ${u.default.bold.cyanBright(Ne(i)||`unnamed`)} for ${n}`);return}return i.length>2?[Fe(e,i),i[1],i[2]]:[Fe(e,i),i[1],null]}return[Fe(e,i),{},null]}let Le=ee.default;`default`in Le&&(Le=Le.default);const Re=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#D8B4FE`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`,`#8B5CF6`],ze=(e,t)=>(n,...r)=>e(n,` ${u.default.inverse.hex(Re[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%Re.length]||Re[0])(` ${(0,d.titleCase)(t)} `)} ${r.join(` `)} `);function Be(e,t){let n=n=>(0,te.declare)((i,a,o)=>{i.cache.using(()=>n.meta.checksum),i.assertVersion(`^7.0.0-0`);let s=ze(n.log,e);s(r.LogLevelLabel.TRACE,`Initializing the ${u.default.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.LogLevelLabel.TRACE,`Completed initialization of the ${u.default.bold.cyanBright(e)} Babel plugin`),c});return n.$$name=e,n}function Ve(e,t){We(e.scope.getProgramParent().path,t)}function He(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function Ue(e){let t=new Map;return e.traverse({ImportDeclaration(e){He(e)&&t.set(e.node.source.value,e)}}),t}function We(e,t){Ue(e).get(t.module)||e.unshiftContainer(`body`,f.importDeclaration([f.importSpecifier(f.identifier(t.name||t.imported),f.identifier(t.imported))],f.stringLiteral(t.module)))}const Ge=(e={})=>({name:`babel`,config(){if((0,o.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,s.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,o){if((0,a.isParentPath)(o,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(r.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${o}`),{code:t,id:o};this.log(r.LogLevelLabel.TRACE,`Babel transforming file: ${o}`);let c=this.config.transform.babel.plugins.map(e=>Ie(this,t,o,e)).filter((e,t,n)=>e&&!Pe(n,e)),l=this.config.transform.babel.presets.map(e=>Ie(this,t,o,e)).filter((e,t,n)=>e&&!Pe(n,e));if(Array.isArray(c)&&c.length===0&&Array.isArray(l)&&l.length===0)return{code:t,id:o};[`ts`,`cts`,`mts`,`tsx`].includes((0,i.findFileExtensionSafe)(o))&&!Pe(c,`@babel/plugin-syntax-typescript`)&&!Pe(l,`@babel/preset-typescript`)&&c.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,i.findFileExtension)(o)===`.tsx`}]);let u=await(0,n.transformAsync)(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:o,plugins:c.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,s.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:l.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,s.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!u?.code)throw Error(`Powerlines - Babel plugin failed to compile ${o}`);return{code:u.code,id:o}}});var Ke=Ge;const qe=(e={})=>({name:`automd`,async config(){let t=await(0,ce.loadConfig)((0,h.joinPaths)(this.workspaceConfig.workspaceRoot,this.config.projectRoot),e);return(!t.prefix||!Array.isArray(t.prefix))&&(t.prefix=(0,m.toArray)(t.prefix??[])),t.prefix.includes(`automd`)||t.prefix.push(`automd`),t.prefix.includes(`powerlines`)||t.prefix.push(`powerlines`),{automd:(0,s.default)(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&&!(0,m.toArray)(this.config.automd.prefix).includes(this.config.framework)&&(this.config.automd.prefix=(0,m.toArray)(this.config.automd.prefix).concat(this.config.framework)),this.config.automd.configFile){let{config:e}=await(0,le.loadConfig)({cwd:this.config.automd.dir,configFile:this.config.automd.configFile,defaults:{ignore:[`**/node_modules`,`**/dist`,`**/.*`],dir:this.config.automd.dir}});this.config.automd=(0,ce.resolveConfig)((0,s.default)(this.config.automd,{...e,prefix:(0,m.toArray)(e.prefix??[])}))}this.config.automd.input=(await Promise.all((0,m.toArray)(this.config.automd.input).map(async e=>e.includes(`*`)?(0,ie.listFiles)((0,oe.isAbsolutePath)(e)?e:(0,ae.appendPath)(e,this.config.projectRoot),{ignore:this.config.automd.ignore}):(0,oe.isAbsolutePath)(e)?e:(0,ae.appendPath)(e,this.config.projectRoot)))).flat(),this.config.automd.output&&!(0,oe.isAbsolutePath)(this.config.automd.output)&&(this.config.automd.output=(0,ae.appendPath)(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:(0,ue.default)(e.block.md,{...t,maxdepth:t.maxDepth,first1:t.firstH1}).content}}})},async docs(){await Promise.all((0,m.toArray)(this.config.automd.input).map(async e=>{let t=await this.fs.read(e);if(t){let n=await(0,ce.transform)(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((0,ae.appendPath)(this.config.automd.output?(0,re.isDirectory)(this.config.automd.output)?(0,se.replacePath)(e,this.config.automd.output):this.config.automd.output:e,this.config.projectRoot),n.contents)}}))}});var Je=qe;const T={PUBLIC:0,PROTECTED:1,PRIVATE:2};var E=class extends _.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new _.ObjectSize(8,4)};_adoptAlias(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownAlias(){return _.utils.disown(this.alias)}get alias(){return _.utils.getList(0,_.TextList,this)}_hasAlias(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initAlias(e){return _.utils.initList(0,_.TextList,e,this)}set alias(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}get title(){return _.utils.getText(1,this)}set title(e){_.utils.setText(1,e,this)}get hidden(){return _.utils.getBit(0,this)}set hidden(e){_.utils.setBit(0,e,this)}get readonly(){return _.utils.getBit(1,this)}set readonly(e){_.utils.setBit(1,e,this)}get ignore(){return _.utils.getBit(2,this)}set ignore(e){_.utils.setBit(2,e,this)}get internal(){return _.utils.getBit(3,this)}set internal(e){_.utils.setBit(3,e,this)}_adoptPermission(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownPermission(){return _.utils.disown(this.permission)}get permission(){return _.utils.getList(2,_.TextList,this)}_hasPermission(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initPermission(e){return _.utils.initList(2,_.TextList,e,this)}set permission(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}get domain(){return _.utils.getText(3,this)}set domain(e){_.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const Ye={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Xe=class extends _.Struct{static UNDEFINED=Ye.UNDEFINED;static BOOLEAN=Ye.BOOLEAN;static INTEGER=Ye.INTEGER;static FLOAT=Ye.FLOAT;static STRING=Ye.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new _.ObjectSize(16,1)};get _isUndefined(){return _.utils.getUint16(0,this)===0}set undefined(e){_.utils.setUint16(0,0,this)}get boolean(){return _.utils.testWhich(`boolean`,_.utils.getUint16(0,this),1,this),_.utils.getBit(16,this)}get _isBoolean(){return _.utils.getUint16(0,this)===1}set boolean(e){_.utils.setUint16(0,1,this),_.utils.setBit(16,e,this)}get integer(){return _.utils.testWhich(`integer`,_.utils.getUint16(0,this),2,this),_.utils.getInt32(4,this)}get _isInteger(){return _.utils.getUint16(0,this)===2}set integer(e){_.utils.setUint16(0,2,this),_.utils.setInt32(4,e,this)}get float(){return _.utils.testWhich(`float`,_.utils.getUint16(0,this),3,this),_.utils.getFloat64(8,this)}get _isFloat(){return _.utils.getUint16(0,this)===3}set float(e){_.utils.setUint16(0,3,this),_.utils.setFloat64(8,e,this)}get string(){return _.utils.testWhich(`string`,_.utils.getUint16(0,this),4,this),_.utils.getText(0,this)}get _isString(){return _.utils.getUint16(0,this)===4}set string(e){_.utils.setUint16(0,4,this),_.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return _.utils.getUint16(0,this)}},D=class extends _.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new _.ObjectSize(16,1)};get value(){return _.utils.getAs(Xe,this)}_initValue(){return _.utils.getAs(Xe,this)}toString(){return`DefaultValueReflection_`+super.toString()}},O=class extends _.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new _.ObjectSize(8,0)};get id(){return _.utils.getUint32(0,this)}set id(e){_.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},k=class extends _.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new _.ObjectSize(0,2)};_adoptContainer(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownContainer(){return _.utils.disown(this.container)}get container(){return _.utils.getStruct(0,O,this)}_hasContainer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initContainer(){return _.utils.initStructAt(0,O,this)}set container(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIndex(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownIndex(){return _.utils.disown(this.index)}get index(){return _.utils.getStruct(1,O,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initIndex(){return _.utils.initStructAt(1,O,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Ze=class extends _.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new _.ObjectSize(0,2)};_adoptNames(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownNames(){return _.utils.disown(this.names)}get names(){return _.utils.getList(0,_.TextList,this)}_hasNames(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initNames(e){return _.utils.initList(0,_.TextList,e,this)}set names(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}get options(){return _.utils.getText(1,this)}set options(e){_.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},Qe=class e extends _.Struct{static EntityIndexOptions=Ze;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new _.ObjectSize(8,5)};get name(){return _.utils.getText(0,this)}set name(e){_.utils.setText(0,e,this)}get description(){return _.utils.getText(1,this)}set description(e){_.utils.setText(1,e,this)}get collection(){return _.utils.getText(2,this)}set collection(e){_.utils.setText(2,e,this)}get database(){return _.utils.getText(3,this)}set database(e){_.utils.setText(3,e,this)}get singleTableInheritance(){return _.utils.getBit(0,this)}set singleTableInheritance(e){_.utils.setBit(0,e,this)}_adoptIndexes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownIndexes(){return _.utils.disown(this.indexes)}get indexes(){return _.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndexes(t){return _.utils.initList(4,e._Indexes,t,this)}set indexes(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},$e=class e extends _.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new _.ObjectSize(8,6)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(5,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},A=class e extends _.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new _.ObjectSize(8,11)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get globalObject(){return _.utils.getBit(16,this)}set globalObject(e){_.utils.setBit(16,e,this)}get classType(){return _.utils.getText(5,this)}set classType(e){_.utils.setText(5,e,this)}_adoptExtendsArguments(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownExtendsArguments(){return _.utils.disown(this.extendsArguments)}get extendsArguments(){return _.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initExtendsArguments(t){return _.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptArguments(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownArguments(){return _.utils.disown(this.arguments)}get arguments(){return _.utils.getList(7,e._Arguments,this)}_hasArguments(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initArguments(t){return _.utils.initList(7,e._Arguments,t,this)}set arguments(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptSuperClass(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownSuperClass(){return _.utils.disown(this.superClass)}get superClass(){return _.utils.getStruct(8,O,this)}_hasSuperClass(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initSuperClass(){return _.utils.initStructAt(8,O,this)}set superClass(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(9,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(9,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(9,this))}_initTypes(t){return _.utils.initList(9,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(9,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(10,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(10,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(10,this))}_initTags(){return _.utils.initStructAt(10,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},j=class e extends _.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new _.ObjectSize(8,8)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(5,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}get visibility(){return _.utils.getUint16(2,this)}set visibility(e){_.utils.setUint16(2,e,this)}get readonly(){return _.utils.getBit(32,this)}set readonly(e){_.utils.setBit(32,e,this)}get optional(){return _.utils.getBit(33,this)}set optional(e){_.utils.setBit(33,e,this)}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(6,D,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,D,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},et=class e extends _.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new _.ObjectSize(8,8)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(6,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initParameters(t){return _.utils.initList(6,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(7,O,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,O,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},tt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new _.ObjectSize(8,9)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}get description(){return _.utils.getText(6,this)}set description(e){_.utils.setText(6,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(7,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(8,D,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initDefault(){return _.utils.initStructAt(8,D,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},nt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new _.ObjectSize(8,8)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(6,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initParameters(t){return _.utils.initList(6,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(7,O,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,O,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},rt=class e extends _.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new _.ObjectSize(8,4)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},it=class extends _.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new _.ObjectSize(0,2)};get name(){return _.utils.getText(0,this)}set name(e){_.utils.setText(0,e,this)}get value(){return _.utils.getText(1,this)}set value(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},at=class e extends _.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new _.ObjectSize(8,8)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptEnumEntries(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownEnumEntries(){return _.utils.disown(this.enumEntries)}get enumEntries(){return _.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initEnumEntries(t){return _.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptValues(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownValues(){return _.utils.disown(this.values)}get values(){return _.utils.getList(5,_.TextList,this)}_hasValues(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initValues(e){return _.utils.initList(5,_.TextList,e,this)}set values(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}_adoptIndexType(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownIndexType(){return _.utils.disown(this.indexType)}get indexType(){return _.utils.getStruct(6,O,this)}_hasIndexType(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initIndexType(){return _.utils.initStructAt(6,O,this)}set indexType(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},ot=class e extends _.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},st=class e extends _.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},ct=class e extends _.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new _.ObjectSize(8,6)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(5,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},lt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new _.ObjectSize(8,6)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptIndex(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownIndex(){return _.utils.disown(this.index)}get index(){return _.utils.getStruct(4,O,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndex(){return _.utils.initStructAt(4,O,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(5,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},ut=class e extends _.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new _.ObjectSize(8,9)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}get readonly(){return _.utils.getBit(17,this)}set readonly(e){_.utils.setBit(17,e,this)}get description(){return _.utils.getText(5,this)}set description(e){_.utils.setText(5,e,this)}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(6,D,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,D,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(7,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(8,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initTags(){return _.utils.initStructAt(8,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},dt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new _.ObjectSize(8,8)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(5,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initParameters(t){return _.utils.initList(5,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(6,O,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initReturn(){return _.utils.initStructAt(6,O,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,E,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,E,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},ft=class e extends _.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},pt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new _.ObjectSize(8,4)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},mt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new _.ObjectSize(8,6)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},ht=class e extends _.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},gt=class e extends _.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,O,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,O,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},_t=class e extends _.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptOrigin(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownOrigin(){return _.utils.disown(this.origin)}get origin(){return _.utils.getStruct(4,O,this)}_hasOrigin(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initOrigin(){return _.utils.initStructAt(4,O,this)}set origin(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},vt=class extends _.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get name(){return _.utils.getText(1,this)}set name(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},yt=class extends _.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get value(){return _.utils.getText(1,this)}set value(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},bt=class extends _.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get regex(){return _.utils.getText(1,this)}set regex(e){_.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 xt=class extends _.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 _.ObjectSize(16,5)};_adoptSymbol(e){_.utils.setUint16(2,0,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownSymbol(){return _.utils.disown(this.symbol)}get symbol(){return _.utils.testWhich(`symbol`,_.utils.getUint16(2,this),0,this),_.utils.getStruct(4,vt,this)}_hasSymbol(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initSymbol(){return _.utils.setUint16(2,0,this),_.utils.initStructAt(4,vt,this)}get _isSymbol(){return _.utils.getUint16(2,this)===0}set symbol(e){_.utils.setUint16(2,0,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}get string(){return _.utils.testWhich(`string`,_.utils.getUint16(2,this),1,this),_.utils.getText(4,this)}get _isString(){return _.utils.getUint16(2,this)===1}set string(e){_.utils.setUint16(2,1,this),_.utils.setText(4,e,this)}get number(){return _.utils.testWhich(`number`,_.utils.getUint16(2,this),2,this),_.utils.getFloat64(8,this)}get _isNumber(){return _.utils.getUint16(2,this)===2}set number(e){_.utils.setUint16(2,2,this),_.utils.setFloat64(8,e,this)}get boolean(){return _.utils.testWhich(`boolean`,_.utils.getUint16(2,this),3,this),_.utils.getBit(64,this)}get _isBoolean(){return _.utils.getUint16(2,this)===3}set boolean(e){_.utils.setUint16(2,3,this),_.utils.setBit(64,e,this)}_adoptBigint(e){_.utils.setUint16(2,4,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownBigint(){return _.utils.disown(this.bigint)}get bigint(){return _.utils.testWhich(`bigint`,_.utils.getUint16(2,this),4,this),_.utils.getStruct(4,yt,this)}_hasBigint(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initBigint(){return _.utils.setUint16(2,4,this),_.utils.initStructAt(4,yt,this)}get _isBigint(){return _.utils.getUint16(2,this)===4}set bigint(e){_.utils.setUint16(2,4,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptRegex(e){_.utils.setUint16(2,5,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownRegex(){return _.utils.disown(this.regex)}get regex(){return _.utils.testWhich(`regex`,_.utils.getUint16(2,this),5,this),_.utils.getStruct(4,bt,this)}_hasRegex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initRegex(){return _.utils.setUint16(2,5,this),_.utils.initStructAt(4,bt,this)}get _isRegex(){return _.utils.getUint16(2,this)===5}set regex(e){_.utils.setUint16(2,5,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return _.utils.getUint16(2,this)}},St=class e extends _.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new _.ObjectSize(16,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get literal(){return _.utils.getAs(xt,this)}_initLiteral(){return _.utils.getAs(xt,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Ct=class e extends _.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new _.ObjectSize(8,5)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,k,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,k,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},wt=class extends _.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new _.ObjectSize(8,1)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const N={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 Tt=class extends _.Struct{static SIMPLE=N.SIMPLE;static LITERAL=N.LITERAL;static TEMPLATE_LITERAL=N.TEMPLATE_LITERAL;static PARAMETER=N.PARAMETER;static FUNCTION=N.FUNCTION;static METHOD=N.METHOD;static PROPERTY=N.PROPERTY;static PROMISE=N.PROMISE;static CLASS_TYPE=N.CLASS_TYPE;static ENUM=N.ENUM;static UNION=N.UNION;static INTERSECTION=N.INTERSECTION;static ARRAY=N.ARRAY;static OBJECT_LITERAL=N.OBJECT_LITERAL;static INDEX_SIGNATURE=N.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=N.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=N.METHOD_SIGNATURE;static TYPE_PARAMETER=N.TYPE_PARAMETER;static INFER=N.INFER;static TUPLE=N.TUPLE;static TUPLE_MEMBER=N.TUPLE_MEMBER;static REST=N.REST;static OTHER=N.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new _.ObjectSize(8,1)};_adoptSimple(e){_.utils.setUint16(0,0,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownSimple(){return _.utils.disown(this.simple)}get simple(){return _.utils.testWhich(`simple`,_.utils.getUint16(0,this),0,this),_.utils.getStruct(0,_t,this)}_hasSimple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initSimple(){return _.utils.setUint16(0,0,this),_.utils.initStructAt(0,_t,this)}get _isSimple(){return _.utils.getUint16(0,this)===0}set simple(e){_.utils.setUint16(0,0,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptLiteral(e){_.utils.setUint16(0,1,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownLiteral(){return _.utils.disown(this.literal)}get literal(){return _.utils.testWhich(`literal`,_.utils.getUint16(0,this),1,this),_.utils.getStruct(0,St,this)}_hasLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initLiteral(){return _.utils.setUint16(0,1,this),_.utils.initStructAt(0,St,this)}get _isLiteral(){return _.utils.getUint16(0,this)===1}set literal(e){_.utils.setUint16(0,1,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTemplateLiteral(e){_.utils.setUint16(0,2,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTemplateLiteral(){return _.utils.disown(this.templateLiteral)}get templateLiteral(){return _.utils.testWhich(`templateLiteral`,_.utils.getUint16(0,this),2,this),_.utils.getStruct(0,Ct,this)}_hasTemplateLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTemplateLiteral(){return _.utils.setUint16(0,2,this),_.utils.initStructAt(0,Ct,this)}get _isTemplateLiteral(){return _.utils.getUint16(0,this)===2}set templateLiteral(e){_.utils.setUint16(0,2,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptParameter(e){_.utils.setUint16(0,3,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownParameter(){return _.utils.disown(this.parameter)}get parameter(){return _.utils.testWhich(`parameter`,_.utils.getUint16(0,this),3,this),_.utils.getStruct(0,j,this)}_hasParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initParameter(){return _.utils.setUint16(0,3,this),_.utils.initStructAt(0,j,this)}get _isParameter(){return _.utils.getUint16(0,this)===3}set parameter(e){_.utils.setUint16(0,3,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptFunction(e){_.utils.setUint16(0,4,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownFunction(){return _.utils.disown(this.function)}get function(){return _.utils.testWhich(`function`,_.utils.getUint16(0,this),4,this),_.utils.getStruct(0,nt,this)}_hasFunction(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initFunction(){return _.utils.setUint16(0,4,this),_.utils.initStructAt(0,nt,this)}get _isFunction(){return _.utils.getUint16(0,this)===4}set function(e){_.utils.setUint16(0,4,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptMethod(e){_.utils.setUint16(0,5,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownMethod(){return _.utils.disown(this.method)}get method(){return _.utils.testWhich(`method`,_.utils.getUint16(0,this),5,this),_.utils.getStruct(0,et,this)}_hasMethod(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethod(){return _.utils.setUint16(0,5,this),_.utils.initStructAt(0,et,this)}get _isMethod(){return _.utils.getUint16(0,this)===5}set method(e){_.utils.setUint16(0,5,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptProperty(e){_.utils.setUint16(0,6,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownProperty(){return _.utils.disown(this.property)}get property(){return _.utils.testWhich(`property`,_.utils.getUint16(0,this),6,this),_.utils.getStruct(0,tt,this)}_hasProperty(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initProperty(){return _.utils.setUint16(0,6,this),_.utils.initStructAt(0,tt,this)}get _isProperty(){return _.utils.getUint16(0,this)===6}set property(e){_.utils.setUint16(0,6,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptPromise(e){_.utils.setUint16(0,7,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownPromise(){return _.utils.disown(this.promise)}get promise(){return _.utils.testWhich(`promise`,_.utils.getUint16(0,this),7,this),_.utils.getStruct(0,rt,this)}_hasPromise(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPromise(){return _.utils.setUint16(0,7,this),_.utils.initStructAt(0,rt,this)}get _isPromise(){return _.utils.getUint16(0,this)===7}set promise(e){_.utils.setUint16(0,7,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptClassType(e){_.utils.setUint16(0,8,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownClassType(){return _.utils.disown(this.classType)}get classType(){return _.utils.testWhich(`classType`,_.utils.getUint16(0,this),8,this),_.utils.getStruct(0,A,this)}_hasClassType(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initClassType(){return _.utils.setUint16(0,8,this),_.utils.initStructAt(0,A,this)}get _isClassType(){return _.utils.getUint16(0,this)===8}set classType(e){_.utils.setUint16(0,8,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptEnum(e){_.utils.setUint16(0,9,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownEnum(){return _.utils.disown(this.enum)}get enum(){return _.utils.testWhich(`enum`,_.utils.getUint16(0,this),9,this),_.utils.getStruct(0,at,this)}_hasEnum(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initEnum(){return _.utils.setUint16(0,9,this),_.utils.initStructAt(0,at,this)}get _isEnum(){return _.utils.getUint16(0,this)===9}set enum(e){_.utils.setUint16(0,9,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptUnion(e){_.utils.setUint16(0,10,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownUnion(){return _.utils.disown(this.union)}get union(){return _.utils.testWhich(`union`,_.utils.getUint16(0,this),10,this),_.utils.getStruct(0,ot,this)}_hasUnion(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initUnion(){return _.utils.setUint16(0,10,this),_.utils.initStructAt(0,ot,this)}get _isUnion(){return _.utils.getUint16(0,this)===10}set union(e){_.utils.setUint16(0,10,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIntersection(e){_.utils.setUint16(0,11,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownIntersection(){return _.utils.disown(this.intersection)}get intersection(){return _.utils.testWhich(`intersection`,_.utils.getUint16(0,this),11,this),_.utils.getStruct(0,st,this)}_hasIntersection(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIntersection(){return _.utils.setUint16(0,11,this),_.utils.initStructAt(0,st,this)}get _isIntersection(){return _.utils.getUint16(0,this)===11}set intersection(e){_.utils.setUint16(0,11,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptArray(e){_.utils.setUint16(0,12,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownArray(){return _.utils.disown(this.array)}get array(){return _.utils.testWhich(`array`,_.utils.getUint16(0,this),12,this),_.utils.getStruct(0,ct,this)}_hasArray(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initArray(){return _.utils.setUint16(0,12,this),_.utils.initStructAt(0,ct,this)}get _isArray(){return _.utils.getUint16(0,this)===12}set array(e){_.utils.setUint16(0,12,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptObjectLiteral(e){_.utils.setUint16(0,13,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownObjectLiteral(){return _.utils.disown(this.objectLiteral)}get objectLiteral(){return _.utils.testWhich(`objectLiteral`,_.utils.getUint16(0,this),13,this),_.utils.getStruct(0,$e,this)}_hasObjectLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initObjectLiteral(){return _.utils.setUint16(0,13,this),_.utils.initStructAt(0,$e,this)}get _isObjectLiteral(){return _.utils.getUint16(0,this)===13}set objectLiteral(e){_.utils.setUint16(0,13,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIndexSignature(e){_.utils.setUint16(0,14,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownIndexSignature(){return _.utils.disown(this.indexSignature)}get indexSignature(){return _.utils.testWhich(`indexSignature`,_.utils.getUint16(0,this),14,this),_.utils.getStruct(0,lt,this)}_hasIndexSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIndexSignature(){return _.utils.setUint16(0,14,this),_.utils.initStructAt(0,lt,this)}get _isIndexSignature(){return _.utils.getUint16(0,this)===14}set indexSignature(e){_.utils.setUint16(0,14,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptPropertySignature(e){_.utils.setUint16(0,15,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownPropertySignature(){return _.utils.disown(this.propertySignature)}get propertySignature(){return _.utils.testWhich(`propertySignature`,_.utils.getUint16(0,this),15,this),_.utils.getStruct(0,ut,this)}_hasPropertySignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPropertySignature(){return _.utils.setUint16(0,15,this),_.utils.initStructAt(0,ut,this)}get _isPropertySignature(){return _.utils.getUint16(0,this)===15}set propertySignature(e){_.utils.setUint16(0,15,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptMethodSignature(e){_.utils.setUint16(0,16,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownMethodSignature(){return _.utils.disown(this.methodSignature)}get methodSignature(){return _.utils.testWhich(`methodSignature`,_.utils.getUint16(0,this),16,this),_.utils.getStruct(0,dt,this)}_hasMethodSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethodSignature(){return _.utils.setUint16(0,16,this),_.utils.initStructAt(0,dt,this)}get _isMethodSignature(){return _.utils.getUint16(0,this)===16}set methodSignature(e){_.utils.setUint16(0,16,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTypeParameter(e){_.utils.setUint16(0,17,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTypeParameter(){return _.utils.disown(this.typeParameter)}get typeParameter(){return _.utils.testWhich(`typeParameter`,_.utils.getUint16(0,this),17,this),_.utils.getStruct(0,ft,this)}_hasTypeParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypeParameter(){return _.utils.setUint16(0,17,this),_.utils.initStructAt(0,ft,this)}get _isTypeParameter(){return _.utils.getUint16(0,this)===17}set typeParameter(e){_.utils.setUint16(0,17,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptInfer(e){_.utils.setUint16(0,18,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownInfer(){return _.utils.disown(this.infer)}get infer(){return _.utils.testWhich(`infer`,_.utils.getUint16(0,this),18,this),_.utils.getStruct(0,pt,this)}_hasInfer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initInfer(){return _.utils.setUint16(0,18,this),_.utils.initStructAt(0,pt,this)}get _isInfer(){return _.utils.getUint16(0,this)===18}set infer(e){_.utils.setUint16(0,18,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTuple(e){_.utils.setUint16(0,19,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTuple(){return _.utils.disown(this.tuple)}get tuple(){return _.utils.testWhich(`tuple`,_.utils.getUint16(0,this),19,this),_.utils.getStruct(0,ht,this)}_hasTuple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTuple(){return _.utils.setUint16(0,19,this),_.utils.initStructAt(0,ht,this)}get _isTuple(){return _.utils.getUint16(0,this)===19}set tuple(e){_.utils.setUint16(0,19,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTupleMember(e){_.utils.setUint16(0,20,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTupleMember(){return _.utils.disown(this.tupleMember)}get tupleMember(){return _.utils.testWhich(`tupleMember`,_.utils.getUint16(0,this),20,this),_.utils.getStruct(0,mt,this)}_hasTupleMember(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTupleMember(){return _.utils.setUint16(0,20,this),_.utils.initStructAt(0,mt,this)}get _isTupleMember(){return _.utils.getUint16(0,this)===20}set tupleMember(e){_.utils.setUint16(0,20,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptRest(e){_.utils.setUint16(0,21,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownRest(){return _.utils.disown(this.rest)}get rest(){return _.utils.testWhich(`rest`,_.utils.getUint16(0,this),21,this),_.utils.getStruct(0,gt,this)}_hasRest(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initRest(){return _.utils.setUint16(0,21,this),_.utils.initStructAt(0,gt,this)}get _isRest(){return _.utils.getUint16(0,this)===21}set rest(e){_.utils.setUint16(0,21,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptOther(e){_.utils.setUint16(0,22,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownOther(){return _.utils.disown(this.other)}get other(){return _.utils.testWhich(`other`,_.utils.getUint16(0,this),22,this),_.utils.getStruct(0,wt,this)}_hasOther(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initOther(){return _.utils.setUint16(0,22,this),_.utils.initStructAt(0,wt,this)}get _isOther(){return _.utils.getUint16(0,this)===22}set other(e){_.utils.setUint16(0,22,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return _.utils.getUint16(0,this)}},Et=class extends _.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new _.ObjectSize(8,1)};get type(){return _.utils.getAs(Tt,this)}_initType(){return _.utils.getAs(Tt,this)}toString(){return`SerializedType_`+super.toString()}},Dt=class e extends _.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new _.ObjectSize(0,1)};_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(0,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypes(t){return _.utils.initList(0,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};Qe._Indexes=_.CompositeList(Ze),$e._TypeArguments=_.CompositeList(O),$e._Decorators=_.CompositeList(O),$e._Types=_.CompositeList(O),A._TypeArguments=_.CompositeList(O),A._Decorators=_.CompositeList(O),A._ExtendsArguments=_.CompositeList(O),A._Arguments=_.CompositeList(O),A._Types=_.CompositeList(O),j._TypeArguments=_.CompositeList(O),j._Decorators=_.CompositeList(O),et._TypeArguments=_.CompositeList(O),et._Decorators=_.CompositeList(O),et._Parameters=_.CompositeList(j),tt._TypeArguments=_.CompositeList(O),tt._Decorators=_.CompositeList(O),nt._TypeArguments=_.CompositeList(O),nt._Decorators=_.CompositeList(O),nt._Parameters=_.CompositeList(j),rt._TypeArguments=_.CompositeList(O),rt._Decorators=_.CompositeList(O),at._TypeArguments=_.CompositeList(O),at._Decorators=_.CompositeList(O),at._EnumEntries=_.CompositeList(it),ot._TypeArguments=_.CompositeList(O),ot._Decorators=_.CompositeList(O),ot._Types=_.CompositeList(O),st._TypeArguments=_.CompositeList(O),st._Decorators=_.CompositeList(O),st._Types=_.CompositeList(O),ct._TypeArguments=_.CompositeList(O),ct._Decorators=_.CompositeList(O),lt._TypeArguments=_.CompositeList(O),lt._Decorators=_.CompositeList(O),ut._TypeArguments=_.CompositeList(O),ut._Decorators=_.CompositeList(O),dt._TypeArguments=_.CompositeList(O),dt._Decorators=_.CompositeList(O),dt._Parameters=_.CompositeList(j),ft._TypeArguments=_.CompositeList(O),ft._Decorators=_.CompositeList(O),pt._TypeArguments=_.CompositeList(O),pt._Decorators=_.CompositeList(O),mt._TypeArguments=_.CompositeList(O),mt._Decorators=_.CompositeList(O),ht._TypeArguments=_.CompositeList(O),ht._Decorators=_.CompositeList(O),ht._Types=_.CompositeList(mt),gt._TypeArguments=_.CompositeList(O),gt._Decorators=_.CompositeList(O),_t._TypeArguments=_.CompositeList(O),_t._Decorators=_.CompositeList(O),St._TypeArguments=_.CompositeList(O),St._Decorators=_.CompositeList(O),Ct._TypeArguments=_.CompositeList(O),Ct._Decorators=_.CompositeList(O),Ct._Types=_.CompositeList(O),Dt._Types=_.CompositeList(Et);function Ot(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=>(0,g.isSetObject)(e)&&!(0,g.isUndefined)(e.kind)).forEach((e,n)=>{At(e,t.get(n)._initType())}),t}function kt(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=jt(e.type);t.push(n)}),t}function P(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 F(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 I(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function L(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function At(e,t){return e.kind===w.ReflectionKind.objectLiteral?pn(e,t._initObjectLiteral()):e.kind===w.ReflectionKind.class?dn(e,t._initClassType()):e.kind===w.ReflectionKind.parameter?hn(e,t._initParameter()):e.kind===w.ReflectionKind.function?sn(e,t._initFunction()):e.kind===w.ReflectionKind.method?cn(e,t._initMethod()):e.kind===w.ReflectionKind.infer?an(e,t._initInfer()):e.kind===w.ReflectionKind.union?nn(e,t._initUnion()):e.kind===w.ReflectionKind.array?en(e,t._initArray()):e.kind===w.ReflectionKind.intersection?Qt(e,t._initIntersection()):e.kind===w.ReflectionKind.enum?Xt(e,t._initEnum()):e.kind===w.ReflectionKind.property?Jt(e,t._initProperty()):e.kind===w.ReflectionKind.tuple?Kt(e,t._initTuple()):e.kind===w.ReflectionKind.tupleMember?Wt(e,t._initTupleMember()):e.kind===w.ReflectionKind.propertySignature?Ut(e,t._initPropertySignature()):e.kind===w.ReflectionKind.methodSignature?zt(e,t._initMethodSignature()):e.kind===w.ReflectionKind.literal?Lt(e,t._initLiteral()):e.kind===w.ReflectionKind.never||e.kind===w.ReflectionKind.any||e.kind===w.ReflectionKind.unknown||e.kind===w.ReflectionKind.void||e.kind===w.ReflectionKind.object||e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.number||e.kind===w.ReflectionKind.boolean||e.kind===w.ReflectionKind.symbol||e.kind===w.ReflectionKind.bigint||e.kind===w.ReflectionKind.null||e.kind===w.ReflectionKind.undefined||e.kind===w.ReflectionKind.regexp?Ft(e,t._initSimple()):Pt(e,t._initOther()),t}function jt(e){if(e._isObjectLiteral)return mn(e.objectLiteral);if(e._isClassType)return fn(e.classType);if(e._isParameter)return gn(e.parameter);if(e._isFunction)return ln(e.function);if(e._isInfer)return on(e.infer);if(e._isMethod)return un(e.method);if(e._isUnion)return rn(e.union);if(e._isArray)return tn(e.array);if(e._isIntersection)return $t(e.intersection);if(e._isEnum)return Zt(e.enum);if(e._isProperty)return Yt(e.property);if(e._isTuple)return qt(e.tuple);if(e._isTupleMember)return Gt(e.tupleMember);if(e._isPropertySignature)return Bt(e.propertySignature);if(e._isMethodSignature)return Rt(e.methodSignature);if(e._isLiteral)return It(e.literal);if(e._isSimple)return Nt(e.simple);if(e._isOther)return Mt(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Mt(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Nt(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:L(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function Pt(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function Ft(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function It(e){return{kind:w.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:L(e)}}function Lt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Rt(e){return{kind:w.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:F(e)}}function zt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Bt(e){return{kind:w.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:Ht(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:L(e),tags:F(e)}}function Vt(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?(0,g.isInteger)(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function Ht(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 Ut(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();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Wt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Gt(e){return{kind:w.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:L(e)}}function Kt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Wt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function qt(e){return{kind:w.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>Gt(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:L(e)}}function Jt(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===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function Yt(e){return{kind:w.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:Ht(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.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:L(e),tags:F(e)}}function Xt(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&&I(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&&P(t._initTags(),e.tags),t}function Zt(e){return{kind:w.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:L(e),tags:F(e)}}function Qt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function $t(e){return{kind:w.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:L(e)}}function en(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function tn(e){return{kind:w.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:L(e),tags:F(e)}}function nn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function rn(e){return{kind:w.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:L(e)}}function an(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function on(e){return{kind:w.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:L(e)}}function sn(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)=>{hn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function cn(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===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.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)=>{hn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function ln(e){return{kind:w.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:L(e),tags:F(e)}}function un(e){return{kind:w.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>gn(e)):[]}}function dn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function fn(e){return{kind:w.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:L(e),tags:F(e)}}function pn(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function mn(e){return{kind:w.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:L(e),tags:F(e)}}function hn(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===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.PRIVATE,e.default!==void 0){let n=t._initDefault();Vt(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&&I(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&P(t._initTags(),e.tags),t}function gn(e){return{kind:w.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:Ht(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.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:L(e),tags:F(e)}}var _n=Object.defineProperty,R=(e,t)=>_n(e,`name`,{value:t,configurable:!0}),z=class extends _.Struct{static{R(this,`TagsReflection`)}static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new _.ObjectSize(8,4)};_adoptAlias(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownAlias(){return _.utils.disown(this.alias)}get alias(){return _.utils.getList(0,_.TextList,this)}_hasAlias(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initAlias(e){return _.utils.initList(0,_.TextList,e,this)}set alias(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}get title(){return _.utils.getText(1,this)}set title(e){_.utils.setText(1,e,this)}get hidden(){return _.utils.getBit(0,this)}set hidden(e){_.utils.setBit(0,e,this)}get readonly(){return _.utils.getBit(1,this)}set readonly(e){_.utils.setBit(1,e,this)}get ignore(){return _.utils.getBit(2,this)}set ignore(e){_.utils.setBit(2,e,this)}get internal(){return _.utils.getBit(3,this)}set internal(e){_.utils.setBit(3,e,this)}_adoptPermission(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownPermission(){return _.utils.disown(this.permission)}get permission(){return _.utils.getList(2,_.TextList,this)}_hasPermission(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initPermission(e){return _.utils.initList(2,_.TextList,e,this)}set permission(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}get domain(){return _.utils.getText(3,this)}set domain(e){_.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}},B={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},vn=class extends _.Struct{static{R(this,`DefaultValueReflection_Value`)}static UNDEFINED=B.UNDEFINED;static BOOLEAN=B.BOOLEAN;static INTEGER=B.INTEGER;static FLOAT=B.FLOAT;static STRING=B.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new _.ObjectSize(16,1)};get _isUndefined(){return _.utils.getUint16(0,this)===0}set undefined(e){_.utils.setUint16(0,0,this)}get boolean(){return _.utils.testWhich(`boolean`,_.utils.getUint16(0,this),1,this),_.utils.getBit(16,this)}get _isBoolean(){return _.utils.getUint16(0,this)===1}set boolean(e){_.utils.setUint16(0,1,this),_.utils.setBit(16,e,this)}get integer(){return _.utils.testWhich(`integer`,_.utils.getUint16(0,this),2,this),_.utils.getInt32(4,this)}get _isInteger(){return _.utils.getUint16(0,this)===2}set integer(e){_.utils.setUint16(0,2,this),_.utils.setInt32(4,e,this)}get float(){return _.utils.testWhich(`float`,_.utils.getUint16(0,this),3,this),_.utils.getFloat64(8,this)}get _isFloat(){return _.utils.getUint16(0,this)===3}set float(e){_.utils.setUint16(0,3,this),_.utils.setFloat64(8,e,this)}get string(){return _.utils.testWhich(`string`,_.utils.getUint16(0,this),4,this),_.utils.getText(0,this)}get _isString(){return _.utils.getUint16(0,this)===4}set string(e){_.utils.setUint16(0,4,this),_.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return _.utils.getUint16(0,this)}},V=class extends _.Struct{static{R(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new _.ObjectSize(16,1)};get value(){return _.utils.getAs(vn,this)}_initValue(){return _.utils.getAs(vn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},H=class extends _.Struct{static{R(this,`SerializedTypeReference`)}static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new _.ObjectSize(8,0)};get id(){return _.utils.getUint32(0,this)}set id(e){_.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},U=class extends _.Struct{static{R(this,`IndexAccessOrigin`)}static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new _.ObjectSize(0,2)};_adoptContainer(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownContainer(){return _.utils.disown(this.container)}get container(){return _.utils.getStruct(0,H,this)}_hasContainer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initContainer(){return _.utils.initStructAt(0,H,this)}set container(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIndex(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownIndex(){return _.utils.disown(this.index)}get index(){return _.utils.getStruct(1,H,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initIndex(){return _.utils.initStructAt(1,H,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},yn=class extends _.Struct{static{R(this,`EntityOptions_EntityIndexOptions`)}static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new _.ObjectSize(0,2)};_adoptNames(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownNames(){return _.utils.disown(this.names)}get names(){return _.utils.getList(0,_.TextList,this)}_hasNames(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initNames(e){return _.utils.initList(0,_.TextList,e,this)}set names(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}get options(){return _.utils.getText(1,this)}set options(e){_.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},bn=class e extends _.Struct{static{R(this,`EntityOptions`)}static EntityIndexOptions=yn;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new _.ObjectSize(8,5)};static _Indexes;get name(){return _.utils.getText(0,this)}set name(e){_.utils.setText(0,e,this)}get description(){return _.utils.getText(1,this)}set description(e){_.utils.setText(1,e,this)}get collection(){return _.utils.getText(2,this)}set collection(e){_.utils.setText(2,e,this)}get database(){return _.utils.getText(3,this)}set database(e){_.utils.setText(3,e,this)}get singleTableInheritance(){return _.utils.getBit(0,this)}set singleTableInheritance(e){_.utils.setBit(0,e,this)}_adoptIndexes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownIndexes(){return _.utils.disown(this.indexes)}get indexes(){return _.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndexes(t){return _.utils.initList(4,e._Indexes,t,this)}set indexes(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},xn=class e extends _.Struct{static{R(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new _.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(5,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},W=class e extends _.Struct{static{R(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new _.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get globalObject(){return _.utils.getBit(16,this)}set globalObject(e){_.utils.setBit(16,e,this)}get classType(){return _.utils.getText(5,this)}set classType(e){_.utils.setText(5,e,this)}_adoptExtendsArguments(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownExtendsArguments(){return _.utils.disown(this.extendsArguments)}get extendsArguments(){return _.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initExtendsArguments(t){return _.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptArguments(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownArguments(){return _.utils.disown(this.arguments)}get arguments(){return _.utils.getList(7,e._Arguments,this)}_hasArguments(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initArguments(t){return _.utils.initList(7,e._Arguments,t,this)}set arguments(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptSuperClass(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownSuperClass(){return _.utils.disown(this.superClass)}get superClass(){return _.utils.getStruct(8,H,this)}_hasSuperClass(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initSuperClass(){return _.utils.initStructAt(8,H,this)}set superClass(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(9,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(9,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(9,this))}_initTypes(t){return _.utils.initList(9,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(9,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(10,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(10,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(10,this))}_initTags(){return _.utils.initStructAt(10,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},G=class e extends _.Struct{static{R(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new _.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(5,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}get visibility(){return _.utils.getUint16(2,this)}set visibility(e){_.utils.setUint16(2,e,this)}get readonly(){return _.utils.getBit(32,this)}set readonly(e){_.utils.setBit(32,e,this)}get optional(){return _.utils.getBit(33,this)}set optional(e){_.utils.setBit(33,e,this)}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(6,V,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,V,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Sn=class e extends _.Struct{static{R(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new _.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(6,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initParameters(t){return _.utils.initList(6,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(7,H,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,H,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Cn=class e extends _.Struct{static{R(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new _.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}get description(){return _.utils.getText(6,this)}set description(e){_.utils.setText(6,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(7,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(8,V,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initDefault(){return _.utils.initStructAt(8,V,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},wn=class e extends _.Struct{static{R(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new _.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}get optional(){return _.utils.getBit(17,this)}set optional(e){_.utils.setBit(17,e,this)}get readonly(){return _.utils.getBit(18,this)}set readonly(e){_.utils.setBit(18,e,this)}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(4,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get kind(){return _.utils.getUint16(4,this)}set kind(e){_.utils.setUint16(4,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(6,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initParameters(t){return _.utils.initList(6,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(7,H,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,H,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Tn=class e extends _.Struct{static{R(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new _.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get visibility(){return _.utils.getUint16(0,this)}set visibility(e){_.utils.setUint16(0,e,this)}get abstract(){return _.utils.getBit(16,this)}set abstract(e){_.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},En=class extends _.Struct{static{R(this,`SerializedTypeEnumEntry`)}static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new _.ObjectSize(0,2)};get name(){return _.utils.getText(0,this)}set name(e){_.utils.setText(0,e,this)}get value(){return _.utils.getText(1,this)}set value(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},K=class e extends _.Struct{static{R(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new _.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptEnumEntries(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownEnumEntries(){return _.utils.disown(this.enumEntries)}get enumEntries(){return _.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initEnumEntries(t){return _.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptValues(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownValues(){return _.utils.disown(this.values)}get values(){return _.utils.getList(5,_.TextList,this)}_hasValues(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initValues(e){return _.utils.initList(5,_.TextList,e,this)}set values(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}_adoptIndexType(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownIndexType(){return _.utils.disown(this.indexType)}get indexType(){return _.utils.getStruct(6,H,this)}_hasIndexType(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initIndexType(){return _.utils.initStructAt(6,H,this)}set indexType(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},Dn=class e extends _.Struct{static{R(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},On=class e extends _.Struct{static{R(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},kn=class e extends _.Struct{static{R(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new _.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(5,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},An=class e extends _.Struct{static{R(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new _.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptIndex(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownIndex(){return _.utils.disown(this.index)}get index(){return _.utils.getStruct(4,H,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndex(){return _.utils.initStructAt(4,H,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(5,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},jn=class e extends _.Struct{static{R(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new _.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}get readonly(){return _.utils.getBit(17,this)}set readonly(e){_.utils.setBit(17,e,this)}get description(){return _.utils.getText(5,this)}set description(e){_.utils.setText(5,e,this)}_adoptDefault(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownDefault(){return _.utils.disown(this.default)}get default(){return _.utils.getStruct(6,V,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,V,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(7,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(8,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(8,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initTags(){return _.utils.initStructAt(8,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Mn=class e extends _.Struct{static{R(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new _.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}_adoptParameters(e){_.utils.adopt(e,_.utils.getPointer(5,this))}_disownParameters(){return _.utils.disown(this.parameters)}get parameters(){return _.utils.getList(5,e._Parameters,this)}_hasParameters(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initParameters(t){return _.utils.initList(5,e._Parameters,t,this)}set parameters(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}_adoptReturn(e){_.utils.adopt(e,_.utils.getPointer(6,this))}_disownReturn(){return _.utils.disown(this.return)}get return(){return _.utils.getStruct(6,H,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initReturn(){return _.utils.initStructAt(6,H,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(6,this))}_adoptTags(e){_.utils.adopt(e,_.utils.getPointer(7,this))}_disownTags(){return _.utils.disown(this.tags)}get tags(){return _.utils.getStruct(7,z,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,z,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Nn=class e extends _.Struct{static{R(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get name(){return _.utils.getText(4,this)}set name(e){_.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},Pn=class e extends _.Struct{static{R(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new _.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},Fn=class e extends _.Struct{static{R(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new _.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}get optional(){return _.utils.getBit(16,this)}set optional(e){_.utils.setBit(16,e,this)}get name(){return _.utils.getText(5,this)}set name(e){_.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},In=class e extends _.Struct{static{R(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Ln=class e extends _.Struct{static{R(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptType(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownType(){return _.utils.disown(this.type)}get type(){return _.utils.getStruct(4,H,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,H,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Rn=class e extends _.Struct{static{R(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptOrigin(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownOrigin(){return _.utils.disown(this.origin)}get origin(){return _.utils.getStruct(4,H,this)}_hasOrigin(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initOrigin(){return _.utils.initStructAt(4,H,this)}set origin(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},zn=class extends _.Struct{static{R(this,`SerializedTypeLiteralSymbol`)}static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get name(){return _.utils.getText(1,this)}set name(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},Bn=class extends _.Struct{static{R(this,`SerializedTypeLiteralBigInt`)}static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get value(){return _.utils.getText(1,this)}set value(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},Vn=class extends _.Struct{static{R(this,`SerializedTypeLiteralRegex`)}static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new _.ObjectSize(0,2)};get type(){return _.utils.getText(0,this)}set type(e){_.utils.setText(0,e,this)}get regex(){return _.utils.getText(1,this)}set regex(e){_.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}},q={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},Hn=class extends _.Struct{static{R(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=q.SYMBOL;static STRING=q.STRING;static NUMBER=q.NUMBER;static BOOLEAN=q.BOOLEAN;static BIGINT=q.BIGINT;static REGEX=q.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new _.ObjectSize(16,5)};_adoptSymbol(e){_.utils.setUint16(2,0,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownSymbol(){return _.utils.disown(this.symbol)}get symbol(){return _.utils.testWhich(`symbol`,_.utils.getUint16(2,this),0,this),_.utils.getStruct(4,zn,this)}_hasSymbol(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initSymbol(){return _.utils.setUint16(2,0,this),_.utils.initStructAt(4,zn,this)}get _isSymbol(){return _.utils.getUint16(2,this)===0}set symbol(e){_.utils.setUint16(2,0,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}get string(){return _.utils.testWhich(`string`,_.utils.getUint16(2,this),1,this),_.utils.getText(4,this)}get _isString(){return _.utils.getUint16(2,this)===1}set string(e){_.utils.setUint16(2,1,this),_.utils.setText(4,e,this)}get number(){return _.utils.testWhich(`number`,_.utils.getUint16(2,this),2,this),_.utils.getFloat64(8,this)}get _isNumber(){return _.utils.getUint16(2,this)===2}set number(e){_.utils.setUint16(2,2,this),_.utils.setFloat64(8,e,this)}get boolean(){return _.utils.testWhich(`boolean`,_.utils.getUint16(2,this),3,this),_.utils.getBit(64,this)}get _isBoolean(){return _.utils.getUint16(2,this)===3}set boolean(e){_.utils.setUint16(2,3,this),_.utils.setBit(64,e,this)}_adoptBigint(e){_.utils.setUint16(2,4,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownBigint(){return _.utils.disown(this.bigint)}get bigint(){return _.utils.testWhich(`bigint`,_.utils.getUint16(2,this),4,this),_.utils.getStruct(4,Bn,this)}_hasBigint(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initBigint(){return _.utils.setUint16(2,4,this),_.utils.initStructAt(4,Bn,this)}get _isBigint(){return _.utils.getUint16(2,this)===4}set bigint(e){_.utils.setUint16(2,4,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}_adoptRegex(e){_.utils.setUint16(2,5,this),_.utils.adopt(e,_.utils.getPointer(4,this))}_disownRegex(){return _.utils.disown(this.regex)}get regex(){return _.utils.testWhich(`regex`,_.utils.getUint16(2,this),5,this),_.utils.getStruct(4,Vn,this)}_hasRegex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initRegex(){return _.utils.setUint16(2,5,this),_.utils.initStructAt(4,Vn,this)}get _isRegex(){return _.utils.getUint16(2,this)===5}set regex(e){_.utils.setUint16(2,5,this),_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return _.utils.getUint16(2,this)}},Un=class e extends _.Struct{static{R(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new _.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}get literal(){return _.utils.getAs(Hn,this)}_initLiteral(){return _.utils.getAs(Hn,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Wn=class e extends _.Struct{static{R(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new _.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}_adoptTypeArguments(e){_.utils.adopt(e,_.utils.getPointer(1,this))}_disownTypeArguments(){return _.utils.disown(this.typeArguments)}get typeArguments(){return _.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initTypeArguments(t){return _.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){_.utils.adopt(e,_.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return _.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return _.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){_.utils.copyFrom(e,_.utils.getPointer(2,this))}_adoptDecorators(e){_.utils.adopt(e,_.utils.getPointer(3,this))}_disownDecorators(){return _.utils.disown(this.decorators)}get decorators(){return _.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!_.utils.isNull(_.utils.getPointer(3,this))}_initDecorators(t){return _.utils.initList(3,e._Decorators,t,this)}set decorators(e){_.utils.copyFrom(e,_.utils.getPointer(3,this))}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(4,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(4,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTypes(t){return _.utils.initList(4,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Gn=class extends _.Struct{static{R(this,`SerializedTypeOther`)}static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new _.ObjectSize(8,1)};get typeName(){return _.utils.getText(0,this)}set typeName(e){_.utils.setText(0,e,this)}get kind(){return _.utils.getUint16(0,this)}set kind(e){_.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}},J={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},Kn=class extends _.Struct{static{R(this,`SerializedType_Type`)}static SIMPLE=J.SIMPLE;static LITERAL=J.LITERAL;static TEMPLATE_LITERAL=J.TEMPLATE_LITERAL;static PARAMETER=J.PARAMETER;static FUNCTION=J.FUNCTION;static METHOD=J.METHOD;static PROPERTY=J.PROPERTY;static PROMISE=J.PROMISE;static CLASS_TYPE=J.CLASS_TYPE;static ENUM=J.ENUM;static UNION=J.UNION;static INTERSECTION=J.INTERSECTION;static ARRAY=J.ARRAY;static OBJECT_LITERAL=J.OBJECT_LITERAL;static INDEX_SIGNATURE=J.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=J.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=J.METHOD_SIGNATURE;static TYPE_PARAMETER=J.TYPE_PARAMETER;static INFER=J.INFER;static TUPLE=J.TUPLE;static TUPLE_MEMBER=J.TUPLE_MEMBER;static REST=J.REST;static OTHER=J.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new _.ObjectSize(8,1)};_adoptSimple(e){_.utils.setUint16(0,0,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownSimple(){return _.utils.disown(this.simple)}get simple(){return _.utils.testWhich(`simple`,_.utils.getUint16(0,this),0,this),_.utils.getStruct(0,Rn,this)}_hasSimple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initSimple(){return _.utils.setUint16(0,0,this),_.utils.initStructAt(0,Rn,this)}get _isSimple(){return _.utils.getUint16(0,this)===0}set simple(e){_.utils.setUint16(0,0,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptLiteral(e){_.utils.setUint16(0,1,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownLiteral(){return _.utils.disown(this.literal)}get literal(){return _.utils.testWhich(`literal`,_.utils.getUint16(0,this),1,this),_.utils.getStruct(0,Un,this)}_hasLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initLiteral(){return _.utils.setUint16(0,1,this),_.utils.initStructAt(0,Un,this)}get _isLiteral(){return _.utils.getUint16(0,this)===1}set literal(e){_.utils.setUint16(0,1,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTemplateLiteral(e){_.utils.setUint16(0,2,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTemplateLiteral(){return _.utils.disown(this.templateLiteral)}get templateLiteral(){return _.utils.testWhich(`templateLiteral`,_.utils.getUint16(0,this),2,this),_.utils.getStruct(0,Wn,this)}_hasTemplateLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTemplateLiteral(){return _.utils.setUint16(0,2,this),_.utils.initStructAt(0,Wn,this)}get _isTemplateLiteral(){return _.utils.getUint16(0,this)===2}set templateLiteral(e){_.utils.setUint16(0,2,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptParameter(e){_.utils.setUint16(0,3,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownParameter(){return _.utils.disown(this.parameter)}get parameter(){return _.utils.testWhich(`parameter`,_.utils.getUint16(0,this),3,this),_.utils.getStruct(0,G,this)}_hasParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initParameter(){return _.utils.setUint16(0,3,this),_.utils.initStructAt(0,G,this)}get _isParameter(){return _.utils.getUint16(0,this)===3}set parameter(e){_.utils.setUint16(0,3,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptFunction(e){_.utils.setUint16(0,4,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownFunction(){return _.utils.disown(this.function)}get function(){return _.utils.testWhich(`function`,_.utils.getUint16(0,this),4,this),_.utils.getStruct(0,wn,this)}_hasFunction(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initFunction(){return _.utils.setUint16(0,4,this),_.utils.initStructAt(0,wn,this)}get _isFunction(){return _.utils.getUint16(0,this)===4}set function(e){_.utils.setUint16(0,4,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptMethod(e){_.utils.setUint16(0,5,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownMethod(){return _.utils.disown(this.method)}get method(){return _.utils.testWhich(`method`,_.utils.getUint16(0,this),5,this),_.utils.getStruct(0,Sn,this)}_hasMethod(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethod(){return _.utils.setUint16(0,5,this),_.utils.initStructAt(0,Sn,this)}get _isMethod(){return _.utils.getUint16(0,this)===5}set method(e){_.utils.setUint16(0,5,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptProperty(e){_.utils.setUint16(0,6,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownProperty(){return _.utils.disown(this.property)}get property(){return _.utils.testWhich(`property`,_.utils.getUint16(0,this),6,this),_.utils.getStruct(0,Cn,this)}_hasProperty(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initProperty(){return _.utils.setUint16(0,6,this),_.utils.initStructAt(0,Cn,this)}get _isProperty(){return _.utils.getUint16(0,this)===6}set property(e){_.utils.setUint16(0,6,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptPromise(e){_.utils.setUint16(0,7,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownPromise(){return _.utils.disown(this.promise)}get promise(){return _.utils.testWhich(`promise`,_.utils.getUint16(0,this),7,this),_.utils.getStruct(0,Tn,this)}_hasPromise(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPromise(){return _.utils.setUint16(0,7,this),_.utils.initStructAt(0,Tn,this)}get _isPromise(){return _.utils.getUint16(0,this)===7}set promise(e){_.utils.setUint16(0,7,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptClassType(e){_.utils.setUint16(0,8,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownClassType(){return _.utils.disown(this.classType)}get classType(){return _.utils.testWhich(`classType`,_.utils.getUint16(0,this),8,this),_.utils.getStruct(0,W,this)}_hasClassType(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initClassType(){return _.utils.setUint16(0,8,this),_.utils.initStructAt(0,W,this)}get _isClassType(){return _.utils.getUint16(0,this)===8}set classType(e){_.utils.setUint16(0,8,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptEnum(e){_.utils.setUint16(0,9,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownEnum(){return _.utils.disown(this.enum)}get enum(){return _.utils.testWhich(`enum`,_.utils.getUint16(0,this),9,this),_.utils.getStruct(0,K,this)}_hasEnum(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initEnum(){return _.utils.setUint16(0,9,this),_.utils.initStructAt(0,K,this)}get _isEnum(){return _.utils.getUint16(0,this)===9}set enum(e){_.utils.setUint16(0,9,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptUnion(e){_.utils.setUint16(0,10,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownUnion(){return _.utils.disown(this.union)}get union(){return _.utils.testWhich(`union`,_.utils.getUint16(0,this),10,this),_.utils.getStruct(0,Dn,this)}_hasUnion(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initUnion(){return _.utils.setUint16(0,10,this),_.utils.initStructAt(0,Dn,this)}get _isUnion(){return _.utils.getUint16(0,this)===10}set union(e){_.utils.setUint16(0,10,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIntersection(e){_.utils.setUint16(0,11,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownIntersection(){return _.utils.disown(this.intersection)}get intersection(){return _.utils.testWhich(`intersection`,_.utils.getUint16(0,this),11,this),_.utils.getStruct(0,On,this)}_hasIntersection(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIntersection(){return _.utils.setUint16(0,11,this),_.utils.initStructAt(0,On,this)}get _isIntersection(){return _.utils.getUint16(0,this)===11}set intersection(e){_.utils.setUint16(0,11,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptArray(e){_.utils.setUint16(0,12,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownArray(){return _.utils.disown(this.array)}get array(){return _.utils.testWhich(`array`,_.utils.getUint16(0,this),12,this),_.utils.getStruct(0,kn,this)}_hasArray(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initArray(){return _.utils.setUint16(0,12,this),_.utils.initStructAt(0,kn,this)}get _isArray(){return _.utils.getUint16(0,this)===12}set array(e){_.utils.setUint16(0,12,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptObjectLiteral(e){_.utils.setUint16(0,13,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownObjectLiteral(){return _.utils.disown(this.objectLiteral)}get objectLiteral(){return _.utils.testWhich(`objectLiteral`,_.utils.getUint16(0,this),13,this),_.utils.getStruct(0,xn,this)}_hasObjectLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initObjectLiteral(){return _.utils.setUint16(0,13,this),_.utils.initStructAt(0,xn,this)}get _isObjectLiteral(){return _.utils.getUint16(0,this)===13}set objectLiteral(e){_.utils.setUint16(0,13,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptIndexSignature(e){_.utils.setUint16(0,14,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownIndexSignature(){return _.utils.disown(this.indexSignature)}get indexSignature(){return _.utils.testWhich(`indexSignature`,_.utils.getUint16(0,this),14,this),_.utils.getStruct(0,An,this)}_hasIndexSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIndexSignature(){return _.utils.setUint16(0,14,this),_.utils.initStructAt(0,An,this)}get _isIndexSignature(){return _.utils.getUint16(0,this)===14}set indexSignature(e){_.utils.setUint16(0,14,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptPropertySignature(e){_.utils.setUint16(0,15,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownPropertySignature(){return _.utils.disown(this.propertySignature)}get propertySignature(){return _.utils.testWhich(`propertySignature`,_.utils.getUint16(0,this),15,this),_.utils.getStruct(0,jn,this)}_hasPropertySignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPropertySignature(){return _.utils.setUint16(0,15,this),_.utils.initStructAt(0,jn,this)}get _isPropertySignature(){return _.utils.getUint16(0,this)===15}set propertySignature(e){_.utils.setUint16(0,15,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptMethodSignature(e){_.utils.setUint16(0,16,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownMethodSignature(){return _.utils.disown(this.methodSignature)}get methodSignature(){return _.utils.testWhich(`methodSignature`,_.utils.getUint16(0,this),16,this),_.utils.getStruct(0,Mn,this)}_hasMethodSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethodSignature(){return _.utils.setUint16(0,16,this),_.utils.initStructAt(0,Mn,this)}get _isMethodSignature(){return _.utils.getUint16(0,this)===16}set methodSignature(e){_.utils.setUint16(0,16,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTypeParameter(e){_.utils.setUint16(0,17,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTypeParameter(){return _.utils.disown(this.typeParameter)}get typeParameter(){return _.utils.testWhich(`typeParameter`,_.utils.getUint16(0,this),17,this),_.utils.getStruct(0,Nn,this)}_hasTypeParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypeParameter(){return _.utils.setUint16(0,17,this),_.utils.initStructAt(0,Nn,this)}get _isTypeParameter(){return _.utils.getUint16(0,this)===17}set typeParameter(e){_.utils.setUint16(0,17,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptInfer(e){_.utils.setUint16(0,18,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownInfer(){return _.utils.disown(this.infer)}get infer(){return _.utils.testWhich(`infer`,_.utils.getUint16(0,this),18,this),_.utils.getStruct(0,Pn,this)}_hasInfer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initInfer(){return _.utils.setUint16(0,18,this),_.utils.initStructAt(0,Pn,this)}get _isInfer(){return _.utils.getUint16(0,this)===18}set infer(e){_.utils.setUint16(0,18,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTuple(e){_.utils.setUint16(0,19,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTuple(){return _.utils.disown(this.tuple)}get tuple(){return _.utils.testWhich(`tuple`,_.utils.getUint16(0,this),19,this),_.utils.getStruct(0,In,this)}_hasTuple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTuple(){return _.utils.setUint16(0,19,this),_.utils.initStructAt(0,In,this)}get _isTuple(){return _.utils.getUint16(0,this)===19}set tuple(e){_.utils.setUint16(0,19,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptTupleMember(e){_.utils.setUint16(0,20,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTupleMember(){return _.utils.disown(this.tupleMember)}get tupleMember(){return _.utils.testWhich(`tupleMember`,_.utils.getUint16(0,this),20,this),_.utils.getStruct(0,Fn,this)}_hasTupleMember(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTupleMember(){return _.utils.setUint16(0,20,this),_.utils.initStructAt(0,Fn,this)}get _isTupleMember(){return _.utils.getUint16(0,this)===20}set tupleMember(e){_.utils.setUint16(0,20,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptRest(e){_.utils.setUint16(0,21,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownRest(){return _.utils.disown(this.rest)}get rest(){return _.utils.testWhich(`rest`,_.utils.getUint16(0,this),21,this),_.utils.getStruct(0,Ln,this)}_hasRest(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initRest(){return _.utils.setUint16(0,21,this),_.utils.initStructAt(0,Ln,this)}get _isRest(){return _.utils.getUint16(0,this)===21}set rest(e){_.utils.setUint16(0,21,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}_adoptOther(e){_.utils.setUint16(0,22,this),_.utils.adopt(e,_.utils.getPointer(0,this))}_disownOther(){return _.utils.disown(this.other)}get other(){return _.utils.testWhich(`other`,_.utils.getUint16(0,this),22,this),_.utils.getStruct(0,Gn,this)}_hasOther(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initOther(){return _.utils.setUint16(0,22,this),_.utils.initStructAt(0,Gn,this)}get _isOther(){return _.utils.getUint16(0,this)===22}set other(e){_.utils.setUint16(0,22,this),_.utils.copyFrom(e,_.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return _.utils.getUint16(0,this)}},qn=class extends _.Struct{static{R(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new _.ObjectSize(8,1)};get type(){return _.utils.getAs(Kn,this)}_initType(){return _.utils.getAs(Kn,this)}toString(){return`SerializedType_`+super.toString()}},Y=class e extends _.Struct{static{R(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new _.ObjectSize(0,1)};static _Types;_adoptTypes(e){_.utils.adopt(e,_.utils.getPointer(0,this))}_disownTypes(){return _.utils.disown(this.types)}get types(){return _.utils.getList(0,e._Types,this)}_hasTypes(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypes(t){return _.utils.initList(0,e._Types,t,this)}set types(e){_.utils.copyFrom(e,_.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};bn._Indexes=_.CompositeList(yn),xn._TypeArguments=_.CompositeList(H),xn._Decorators=_.CompositeList(H),xn._Types=_.CompositeList(H),W._TypeArguments=_.CompositeList(H),W._Decorators=_.CompositeList(H),W._ExtendsArguments=_.CompositeList(H),W._Arguments=_.CompositeList(H),W._Types=_.CompositeList(H),G._TypeArguments=_.CompositeList(H),G._Decorators=_.CompositeList(H),Sn._TypeArguments=_.CompositeList(H),Sn._Decorators=_.CompositeList(H),Sn._Parameters=_.CompositeList(G),Cn._TypeArguments=_.CompositeList(H),Cn._Decorators=_.CompositeList(H),wn._TypeArguments=_.CompositeList(H),wn._Decorators=_.CompositeList(H),wn._Parameters=_.CompositeList(G),Tn._TypeArguments=_.CompositeList(H),Tn._Decorators=_.CompositeList(H),K._TypeArguments=_.CompositeList(H),K._Decorators=_.CompositeList(H),K._EnumEntries=_.CompositeList(En),Dn._TypeArguments=_.CompositeList(H),Dn._Decorators=_.CompositeList(H),Dn._Types=_.CompositeList(H),On._TypeArguments=_.CompositeList(H),On._Decorators=_.CompositeList(H),On._Types=_.CompositeList(H),kn._TypeArguments=_.CompositeList(H),kn._Decorators=_.CompositeList(H),An._TypeArguments=_.CompositeList(H),An._Decorators=_.CompositeList(H),jn._TypeArguments=_.CompositeList(H),jn._Decorators=_.CompositeList(H),Mn._TypeArguments=_.CompositeList(H),Mn._Decorators=_.CompositeList(H),Mn._Parameters=_.CompositeList(G),Nn._TypeArguments=_.CompositeList(H),Nn._Decorators=_.CompositeList(H),Pn._TypeArguments=_.CompositeList(H),Pn._Decorators=_.CompositeList(H),Fn._TypeArguments=_.CompositeList(H),Fn._Decorators=_.CompositeList(H),In._TypeArguments=_.CompositeList(H),In._Decorators=_.CompositeList(H),In._Types=_.CompositeList(Fn),Ln._TypeArguments=_.CompositeList(H),Ln._Decorators=_.CompositeList(H),Rn._TypeArguments=_.CompositeList(H),Rn._Decorators=_.CompositeList(H),Un._TypeArguments=_.CompositeList(H),Un._Decorators=_.CompositeList(H),Wn._TypeArguments=_.CompositeList(H),Wn._Decorators=_.CompositeList(H),Wn._Types=_.CompositeList(H),Y._Types=_.CompositeList(qn);function Jn(e,t){return Xn(e.type,t??e.getDefaultValue())}function Yn(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function Xn(e,t){return(0,be.isUndefined)(t)?`undefined`:(0,ye.isNull)(t)?`null`:e.kind===w.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.literal&&(0,p.isString)(e.literal)?Yn(t):e.kind===w.ReflectionKind.enum?Zn(e).kind===w.ReflectionKind.string?Yn(t):`${String(t)}`:e.kind===w.ReflectionKind.union?$n(e)?Yn(t):`${String(t)}`:e.kind===w.ReflectionKind.array?Yn(ve.StormJSON.stringify(t)):e.kind===w.ReflectionKind.object||e.kind===w.ReflectionKind.objectLiteral?ve.StormJSON.stringify(t):e.kind===w.ReflectionKind.property||e.kind===w.ReflectionKind.parameter?Xn(e.type,t):String(t)}function Zn(e){if(e.kind!==w.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=(0,_e.getUniqueBy)(e.values.filter(e=>e!=null),e=>(0,p.isString)(e)?{kind:w.ReflectionKind.string}:{kind:w.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&(0,p.isString)(t[0])?{kind:w.ReflectionKind.string}:{kind:w.ReflectionKind.number}}function Qn(e){if(e.kind===w.ReflectionKind.union&&e.types.length>0)return(0,_e.getUniqueBy)(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function $n(e){return Qn(e).some(e=>e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.literal&&(0,p.isString)(e.literal))}function er(e){return(0,h.joinPaths)(e.dataPath,`reflections`)}const tr={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((0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if((0,y.camelCase)(e)!==e){if(t.length===1)return`
|
|
2
|
+
import ${(0,y.camelCase)(e)} from "${t[0]}";
|
|
3
|
+
export { ${(0,y.camelCase)(e)} as "${e}" }`;if(t.length>1)return`
|
|
4
|
+
import ${t[1]===`*`?`* as ${(0,y.camelCase)(e)}`:`{ ${t[1]} as ${(0,y.camelCase)(e)} }`} from "${t[0]}";
|
|
5
|
+
export { ${(0,y.camelCase)(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((0,
|
|
10
|
-
import ${(0,
|
|
11
|
-
export { ${(0,
|
|
9
|
+
export { ${e} };`}else if((0,y.camelCase)(e)!==e)return`
|
|
10
|
+
import ${(0,y.camelCase)(e)} from "${t[0]}";
|
|
11
|
+
export { ${(0,y.camelCase)(e)} as "${e}" }`;else return`
|
|
12
12
|
import ${e} from "${t}";
|
|
13
13
|
export { ${e} };`;return``}).join(`
|
|
14
|
-
`)),(0,
|
|
15
|
-
`)}`;throw e.error(n),Error(n)}else r.diagnostics.some(e=>e.category===
|
|
16
|
-
`)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${t.path} \n ${r.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,
|
|
17
|
-
`)}`);return{contents:r.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});async function dr(e,t,n={}){return(0,
|
|
14
|
+
`)),(0,s.default)({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?[(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?(0,Te.omit)(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?(0,Te.omit)(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`},tr)}async function rr(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(0,we.build)({...nr(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.LogLevelLabel.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 ir(e,t,n={}){let r;r=(0,l.isSetString)(t)?(0,de.parseTypeDefinition)(t):t;let i=await rr(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 X={};e.n(X,require(`@deepkit/type-compiler`)),e.n(X,require(`@deepkit/type-compiler/compiler`)),e.n(X,require(`@deepkit/type-compiler/config`));let ar=!1;const or=new X.Cache;function sr(e,t={}){return function(n){return ar||=!0,or.tick(),new X.ReflectionTransformer(n,or).withReflection((0,s.default)(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 cr(e,t={}){return function(n){return new X.DeclarationTransformer(n,or).withReflection((0,s.default)(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 lr(e,t,n){let r=sr(e),i=cr(e);return b.default.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=lr(e,n,t.path);if(r.diagnostics&&r.diagnostics.length>0)if(r.diagnostics.some(e=>e.category===b.DiagnosticCategory.Error)){let n=`Deepkit Type reflection transpilation errors: ${t.path} \n ${r.diagnostics.filter(e=>e.category===b.DiagnosticCategory.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,g.isString)(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===b.DiagnosticCategory.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${t.path} \n ${r.diagnostics.filter(e=>e.category===b.DiagnosticCategory.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,g.isString)(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}:`:``} ${(0,g.isString)(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 dr(e,t,n={}){return(0,w.reflect)(await ir(e,t,(0,s.default)(n,{plugins:[ur(e)]})))}function fr(e,t){return gr(e,{type:(0,w.merge)(t.map(e=>e.type))})}function pr(e,t){return _r(e,{type:(0,w.merge)(t.map(e=>e.type))})}var mr=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},hr=class{};function gr(e,t={}){let n=t.superReflection??new w.ReflectionClass({kind:w.ReflectionKind.class,description:`The base environment configuration definition for the ${(0,d.titleCase)(e.config.name)} project.`,classType:mr,types:[],implements:[{kind:w.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${(0,d.titleCase)(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new w.ReflectionClass(t.type??{kind:w.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${(0,d.titleCase)(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function _r(e,t={}){let n=t.superReflection??new w.ReflectionClass({kind:w.ReflectionKind.class,description:`The base secrets configuration definition for the ${(0,d.titleCase)(e.config.name)} project.`,classType:hr,types:[],implements:[{kind:w.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${(0,d.titleCase)(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new w.ReflectionClass(t.type??{kind:w.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${(0,d.titleCase)(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function vr(e,t,n){let r;t&&(r=(0,w.resolveClassType)(await dr(e,{file:(0,a.isParentPath)(t,e.workspaceConfig.workspaceRoot)?t:(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await dr(e,await xr(e));return fr(e,[await Z(e,`env`),r,(0,w.resolveClassType)(i)].filter(Boolean))}async function yr(e,t,n){let r;t&&(r=(0,w.resolveClassType)(await dr(e,{file:(0,a.isParentPath)(t,e.workspaceConfig.workspaceRoot)?t:(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await dr(e,await Sr(e));return pr(e,[await Er(e),r,(0,w.resolveClassType)(i)].filter(Boolean))}async function br(e){return(0,Se.resolvePackage)(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,(0,h.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function xr(e){return{file:await br(e),name:`EnvInterface`}}async function Sr(e){return{file:await br(e),name:`SecretsInterface`}}function Cr(e,t=`env`){return(0,h.joinPaths)(er(e),`env`,`${t}-types.bin`)}async function Z(e,t=`env`){let n=Cr(e,t);if(!(0,xe.existsSync)(n)){if(!e.env.types.env||(0,Ce.isEmptyObject)(e.env.types.env)){let n=gr(e),r=new _.Message;n.messageRoot=r.initRoot(Y),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await wr(e,e.env.types.env,t)}return e.env.types.env}let r=await(0,v.readFileBuffer)(n),i=new _.Message(r,!1).getRoot(Y),a=(0,w.resolveClassType)((0,w.deserializeType)(kt(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function wr(e,t,n=`env`){let r=t.serializeType(),i=new _.Message;Ot(r,i.initRoot(Y)._initTypes(r.length)),await(0,v.writeFileBuffer)(Cr(e,n),i.toArrayBuffer())}function Q(e,t){return(0,h.joinPaths)(er(e),`env`,`${t}.bin`)}async function Tr(e){let t=Q(e,`env`);if(!(0,xe.existsSync)(t)){if(e.env.types.env||(e.env.types.env=await Z(e,`env`)),!e.env.used.env||(0,Ce.isEmptyObject)(e.env.used.env)){let t=gr(e,{type:{kind:w.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 _.Message;t.messageRoot=n.initRoot(Y),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await Dr(e,e.env.used.env,`env`)}return e.env.used.env}let n=await(0,v.readFileBuffer)(t),r=new _.Message(n,!1).getRoot(Y),i=(0,w.resolveClassType)((0,w.deserializeType)(kt(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function Er(e){let t=Q(e,`secrets`);if(!(0,xe.existsSync)(t)){if(e.env.types.secrets||(e.env.types.secrets=await Z(e,`secrets`)),!e.env.used.secrets||(0,Ce.isEmptyObject)(e.env.used.secrets)){let t=gr(e,{type:{kind:w.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 _.Message;t.messageRoot=n.initRoot(Y),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await Dr(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await(0,v.readFileBuffer)(t),r=new _.Message(n,!1).getRoot(Y),i=(0,w.resolveClassType)((0,w.deserializeType)(kt(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function Dr(e,t,n=`env`){let r=t.serializeType(),i=new _.Message;Ot(r,i.initRoot(Y)._initTypes(r.length)),await(0,v.writeFileBuffer)(Q(e,n),i.toArrayBuffer())}const Or=Be(`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.LogLevelLabel.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 Jn(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`}.
|
|
18
18
|
|
|
19
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(`
|
|
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
|
|
22
|
-
[Key in keyof EnvBase as 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}`),Ve(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}`),Ve(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}`),Ve(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}`),Ve(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(r.LogLevelLabel.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=w.ReflectionClass.from({kind:w.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),i=Q(t,`env`);i&&(0,xe.existsSync)(i)&&(e(r.LogLevelLabel.TRACE,`Environment reflection file found at ${i}, reading existing reflection.`),n=(0,w.resolveClassType)((0,w.deserializeType)(kt(new _.Message((0,v.readFileBufferSync)(i),!1).getRoot(Y).types)))),e(r.LogLevelLabel.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 kr(e){if((0,p.isString)(e)){let t=fe.ENV_PREFIXES.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=kr(n);return r&&(t[r]=e[n]),t},{})}async function Ar(e,t,n){let r=await(0,je.loadEnv)(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>(0,je.loadEnvFile)(e,n)));for(let e of t)r=(0,s.default)(e,r)}return kr(r)}async function jr(e,t,n,r,i,a){let[o,c]=await Promise.all([Ar(e,n,t),(0,le.loadConfig)({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:(0,h.joinPaths)(r,`jiti`),moduleCache:!0}})]);return(0,s.default)(o,c.config,a)}function Mr(e,t){return(0,s.default)({APP_NAME:(0,ne.kebabCase)(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:`${(0,ne.kebabCase)(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:(0,l.isSetString)(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},(0,o.isSetObject)(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function Nr(e,t){let[n,r,i]=await Promise.all([jr(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),jr(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),jr(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return(0,s.default)(Mr(e,process.env),n,r,i)}function Pr(e){let t=(0,x.computed)(()=>e&&Mr(e,process.env));return(0,x.createResource)(async()=>{if(!e)return new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Z(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()||(0,d.titleCase)(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 Fr(e){let[{defaultValue:n,reflection:r}]=(0,x.splitProps)(e,[`defaultValue`,`reflection`]),i=(0,Ee.usePowerlines)();return[(0,t.createComponent)(ke.TypeScriptInterface,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:n,reflection:r,export:!0}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(S.TypeDeclaration,{name:`Env`,export:!0,get children(){return x.code` {
|
|
22
|
+
[Key in keyof EnvBase as Key ${i?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
|
|
23
23
|
}
|
|
24
|
-
`})]}
|
|
25
|
-
target["${
|
|
24
|
+
`}})]}function $(e){let[{context:t,name:n}]=(0,x.splitProps)(e,[`context`,`name`]);return t?x.code`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 Ir(e){let[{context:n,property:r,index:i}]=(0,x.splitProps)(e,[`context`,`property`,`index`]);return n?[i===0?(0,t.createComponent)(S.IfStatement,{get condition(){return[(0,t.createComponent)($,{get name(){return r.getNameAsString()},context:n}),(0,t.createComponent)(x.Show,{get when(){return(0,t.memo)(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[x.code` || `,(0,t.createComponent)(x.For,{get each(){return r.getAlias()},joiner:x.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:n})})]}})]},get children(){return x.code`return target["${r.getNameAsString()}"];`}}):(0,t.createComponent)(S.ElseIfClause,{get condition(){return[(0,t.createComponent)($,{get name(){return r.getNameAsString()},context:n}),(0,t.createComponent)(x.Show,{get when(){return(0,t.memo)(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[x.code` || `,(0,t.createComponent)(x.For,{get each(){return r.getAlias()},joiner:x.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:n})})]}})]},get children(){return x.code`return target["${r.getNameAsString()}"];`}})]:null}function Lr(e){let[{context:n,property:r,index:i}]=(0,x.splitProps)(e,[`context`,`property`,`index`]);return n?[i===0?(0,t.createComponent)(S.IfStatement,{get condition(){return[(0,t.createComponent)($,{get name(){return r.getNameAsString()},context:n}),(0,t.createComponent)(x.Show,{get when(){return(0,t.memo)(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[x.code` || `,(0,t.createComponent)(x.For,{get each(){return r.getAlias()},joiner:x.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:n})})]}})]},get children(){return x.code`
|
|
25
|
+
target["${r.getNameAsString()}"] = newValue;
|
|
26
26
|
return true;
|
|
27
|
-
`}):(0,
|
|
28
|
-
target["${
|
|
27
|
+
`}}):(0,t.createComponent)(S.ElseIfClause,{get condition(){return[(0,t.createComponent)($,{get name(){return r.getNameAsString()},context:n}),(0,t.createComponent)(x.Show,{get when(){return(0,t.memo)(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[x.code` || `,(0,t.createComponent)(x.For,{get each(){return r.getAlias()},joiner:x.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:n})})]}})]},get children(){return x.code`
|
|
28
|
+
target["${r.getNameAsString()}"] = newValue;
|
|
29
29
|
return true;
|
|
30
|
-
`}
|
|
30
|
+
`}})]:null}const Rr=(0,De.refkey)(`createEnv`),zr=(0,De.refkey)(`env`),Br=(0,De.refkey)(`EnvSerializer`);function Vr(e){let[{defaultConfig:n},r]=(0,x.splitProps)(e,[`defaultConfig`]),i=(0,Ee.usePowerlines)(),a=(0,x.computed)(()=>i&&Mr(i,process.env)),o=Pr(i),c=(0,x.computed)(()=>new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${(0,d.titleCase)(i?.config?.name)} project.`,types:[]},o.data??void 0)),l=(0,x.computed)(()=>o.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),u=(0,x.computed)(()=>o.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return(0,t.createComponent)(Oe.BuiltinFile,(0,t.mergeProps)(r,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return(0,s.default)({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},r.imports??{})},get children(){return[(0,t.createComponent)(x.Show,{get when(){return!(0,ye.isNull)(o.data)},get children(){return[(0,t.createComponent)(Fr,{get defaultValue(){return a.value},get reflection(){return o.data}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{})]}}),(0,t.createComponent)(Ae.TypescriptObject,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:a,reflection:c,export:!0,const:!0}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(C.TSDoc,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[(0,t.createComponent)(C.TSDocLink,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,t.createComponent)(C.TSDocLink,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,t.createComponent)(C.TSDocRemarks,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,t.createComponent)(S.ClassDeclaration,{refkey:Br,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return(0,t.createComponent)(S.ClassMethod,{name:`constructor`,public:!0,children:x.code`
|
|
31
31
|
super("env");
|
|
32
32
|
|
|
33
33
|
this.deserializeRegistry.register(
|
|
@@ -38,26 +38,26 @@ export { ${e} };`;return``}).join(`
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
`})}),(0,
|
|
41
|
+
`})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(C.TSDoc,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[(0,t.createComponent)(C.TSDocLink,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,t.createComponent)(C.TSDocLink,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,t.createComponent)(C.TSDocRemarks,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,t.createComponent)(S.VarDeclaration,{name:`envSerializer`,export:!1,const:!0,get initializer(){return(0,t.createComponent)(S.NewExpression,{args:[],target:`EnvSerializer`})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(C.TSDoc,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[(0,t.createComponent)(C.TSDocRemarks,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),(0,t.createComponent)(C.TSDocExample,{children:`const json = serializeEnv(env);`}),(0,t.createComponent)(C.TSDocThrows,{children:`ValidationError when serialization or validation fails.`})]}}),(0,t.createComponent)(S.VarDeclaration,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(C.TSDoc,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[(0,t.createComponent)(C.TSDocRemarks,{children:`Types that are already correct will be used as-is.`}),(0,t.createComponent)(C.TSDocExample,{children:`const env = deserializeEnv(json);`}),(0,t.createComponent)(C.TSDocThrows,{children:`ValidationError when deserialization fails.`})]}}),(0,t.createComponent)(S.VarDeclaration,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(C.TSDoc,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[(0,t.createComponent)(C.TSDocRemarks,{children:`This function initializes the Powerlines environment configuration object.`}),(0,t.createComponent)(C.TSDocParam,{name:`environmentConfig`,children:`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}),(0,t.createComponent)(C.TSDocReturns,{children:`The initialized Powerlines configuration object.`})]}}),(0,t.createComponent)(x.Show,{get when(){return!!i?.entryPath},get children(){return(0,t.createComponent)(S.FunctionDeclaration,{refkey:Rr,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[x.code`
|
|
42
42
|
return new Proxy<Env>(
|
|
43
43
|
deserializeEnv({
|
|
44
44
|
...initialEnv,
|
|
45
45
|
...environmentConfig
|
|
46
46
|
}) as Env,
|
|
47
47
|
{
|
|
48
|
-
get: (target: EnvBase, propertyName: string) => { `,(0,
|
|
48
|
+
get: (target: EnvBase, propertyName: string) => { `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(x.For,{each:l,children:(e,n)=>(0,t.createComponent)(Ir,{index:n,context:i,property:e})}),x.code`
|
|
49
49
|
return undefined;
|
|
50
|
-
}, `,(0,
|
|
50
|
+
}, `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),x.code` set: (target: EnvBase, propertyName: string, newValue: any) => { `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(x.For,{each:u,ender:x.code` else `,children:(e,n)=>(0,t.createComponent)(Lr,{index:n,context:i,property:e})}),(0,t.createIntrinsic)(`hbr`,{}),x.code`return false;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
`]})}),(0,
|
|
54
|
+
`]}})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(S.VarDeclaration,{refkey:zr,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[x.code`createEnv(`,n||`{}`,x.code` as Partial<Env>)`]}})]}}))}const Hr=e=>(0,ce.defineGenerator)({name:`env`,async generate(){let t=(0,h.joinPaths)(e.config.projectRoot,`docs`,`generated`,`env.md`);return e.fs.existsSync(t)?{contents:await e.fs.read(t)||``}:{contents:``}}}),Ur=(e={})=>[Ke(e.babel),{name:`env`,async config(){this.log(r.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:(0,s.default)(e,{types:{},prefix:[]}),transform:{babel:{plugins:[Or]}}};if(t.env.types)t.env.types=(0,de.parseTypeDefinition)(t.env.types);else{this.log(r.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await xr(this);t.env.types=(0,de.parseTypeDefinition)(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=(0,de.parseTypeDefinition)(t.env.secrets);else{let e=await Sr(this);t.env.secrets=(0,de.parseTypeDefinition)(`${e.file}#${e.name}`)}return t.env.prefix=(0,m.toArray)(t.env.prefix??[]).reduce((e,t)=>{let n=(0,ge.constantCase)(t);return e.includes(n)||e.push(n),e},[...fe.ENV_PREFIXES,`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.LogLevelLabel.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=(0,s.default)({parsed:await Nr(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&(0,pe.existsSync)(Cr(this,`env`)))this.log(r.LogLevelLabel.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await Z(this,`env`),(0,pe.existsSync)(Q(this,`env`))&&(this.env.used.env=await Tr(this)),(0,pe.existsSync)(Cr(this,`secrets`))&&(this.env.types.secrets=await Z(this,`secrets`)),(0,pe.existsSync)(Q(this,`secrets`))&&(this.env.used.secrets=await Er(this));else{if(this.env.types.env=await vr(this,this.config.env.types?.file?(0,a.isParentPath)(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:(0,he.joinPaths)(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 wr(this,this.env.types.env,`env`),this.env.types.secrets=await yr(this,this.config.env.secrets?.file?(0,a.isParentPath)(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:(0,he.joinPaths)(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 wr(this,this.env.types.secrets,`secrets`),this.log(r.LogLevelLabel.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 Nr(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 w.ReflectionClass({kind:w.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 Dr(this,this.env.used.env,`env`),this.env.types.secrets&&(await wr(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new w.ReflectionClass({kind:w.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 Dr(this,this.env.used.secrets,`secrets`))}},async prepare(){let e=this;return this.log(r.LogLevelLabel.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),this.render((0,t.createComponent)(Vr,{get defaultConfig(){return e.config.env.defaultConfig}}))},async docs(){this.log(r.LogLevelLabel.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=(0,he.joinPaths)(this.config.projectRoot,`docs`,`generated`);(0,pe.existsSync)(e)||await(0,me.createDirectory)(e);let t=await Z(this,`env`),n=(0,he.joinPaths)(e,`env.md`);this.log(r.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by ${(0,d.titleCase)(this.config.framework)||`Powerlines`} -->
|
|
55
55
|
|
|
56
56
|
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.
|
|
57
57
|
|
|
58
58
|
| Name | Description | Type | Default Value | Required |
|
|
59
59
|
| ---- | ----------- | ---- | ------------- | :------: |
|
|
60
60
|
${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(`
|
|
61
|
-
`,``)??``).trim()} | ${(0,
|
|
61
|
+
`,``)??``).trim()} | ${(0,w.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
|
|
62
62
|
`)}
|
|
63
|
-
`)},async buildEnd(){let e=Q(this,`env`);this.log(
|
|
63
|
+
`)},async buildEnd(){let e=Q(this,`env`);this.log(r.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await Dr(this,this.env.used.env,`env`)}},{name:`env:automd-generator`,config(){return{automd:(0,s.default)(e.automd??{},{generators:{env:Hr(this)}})}}},{name:`env:vite`,vite:{configResolved(){return{envPrefix:this.config?.env?.prefix}}}},Je(e.automd)];var Wr=Ur;function Gr(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 Kr(e,t){return Gr(e,t)!==void 0}const qr=(n={})=>[Ke(n.babel),Wr(n.env),{name:`react`,config(){return(0,s.default)({react:n},{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.LogLevelLabel.SUCCESS:t.kind===`AutoDepsEligible`||t.kind===`AutoDepsDecorations`?r.LogLevelLabel.INFO:t.kind===`CompileSkip`||t.kind===`CompileDiagnostic`?r.LogLevelLabel.DEBUG:t.kind===`Timing`?r.LogLevelLabel.TRACE:r.LogLevelLabel.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`&&(Kr(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),Kr(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),Kr(`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??=[],Kr(`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((0,Me.default)({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:w.ReflectionVisibility.public,type:{kind:w.ReflectionKind.boolean},default:!1})},async prepare(){let n=this;return this.render((0,t.createComponent)(e.t,{get override(){return n.config.react.compiler===!1?!1:void 0}}))}}];var Jr=qr;exports.ReactOptimizedBuiltin=e.t,exports.default=Jr,exports.plugin=qr;
|