@powerlines/plugin-react 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -67
- package/dist/index.d.cts +4 -44
- package/dist/index.d.mts +4 -47
- package/dist/index.mjs +1 -65
- package/dist/{plugin-C9ZuWdaR.d.cts → plugin-BU0wy__m.d.cts} +3 -4
- package/dist/plugin-BU0wy__m.d.cts.map +1 -0
- package/dist/{plugin-JgSIR_pC.d.mts → plugin-TBSgdu4B.d.mts} +6 -5
- package/dist/plugin-TBSgdu4B.d.mts.map +1 -0
- package/dist/plugin.cjs +1 -0
- package/dist/{types/plugin.d.cts → plugin.d.cts} +2 -3
- package/dist/{types/plugin.d.mts → plugin.d.mts} +2 -3
- package/dist/plugin.mjs +1 -0
- package/dist/{runtime-CH2w8aTC.d.mts → runtime-1VVIzvUj.d.mts} +2 -2
- package/dist/runtime-1VVIzvUj.d.mts.map +1 -0
- package/dist/{resolved-C8Vvfp78.d.cts → runtime-B2KsRASa.d.cts} +843 -55
- package/dist/runtime-B2KsRASa.d.cts.map +1 -0
- package/dist/{resolved-cGosdCt1.d.mts → runtime-Bn9852yo.d.mts} +845 -59
- package/dist/runtime-Bn9852yo.d.mts.map +1 -0
- package/dist/{runtime-FcS-im6N.d.mts → runtime-Lv-DI-PR.d.cts} +2 -2
- package/dist/runtime-Lv-DI-PR.d.cts.map +1 -0
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.d.cts +3 -0
- package/dist/runtime.d.mts +3 -0
- package/dist/runtime.mjs +1 -0
- package/package.json +9 -9
- package/dist/chunk-CF6LXmkI.mjs +0 -1
- package/dist/components/index.cjs +0 -1
- package/dist/components/index.d.cts +0 -4
- package/dist/components/index.d.mts +0 -4
- package/dist/components/index.mjs +0 -1
- package/dist/components/react-optimized.cjs +0 -1
- package/dist/components/react-optimized.d.cts +0 -3
- package/dist/components/react-optimized.d.mts +0 -3
- package/dist/components/react-optimized.mjs +0 -1
- package/dist/index-B8OHl-c_.d.mts +0 -1
- package/dist/index-BR1oNnaF.d.cts +0 -1
- package/dist/index-CFG0_wK4.d.cts +0 -1
- package/dist/index-DNLi60D-.d.mts +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/plugin-C9ZuWdaR.d.cts.map +0 -1
- package/dist/plugin-JgSIR_pC.d.mts.map +0 -1
- package/dist/plugin-sboatcNU.d.mts +0 -1779
- package/dist/plugin-sboatcNU.d.mts.map +0 -1
- package/dist/react-optimized-B4-nlx1E.d.mts +0 -103
- package/dist/react-optimized-B4-nlx1E.d.mts.map +0 -1
- package/dist/react-optimized-BO9knQDM.cjs +0 -1
- package/dist/react-optimized-B_P6YxHv.mjs +0 -2
- package/dist/react-optimized-B_P6YxHv.mjs.map +0 -1
- package/dist/react-optimized-CY318RuO.d.cts +0 -102
- package/dist/react-optimized-CY318RuO.d.cts.map +0 -1
- package/dist/react-optimized-CbXKgStb.d.mts +0 -103
- package/dist/react-optimized-CbXKgStb.d.mts.map +0 -1
- package/dist/resolved-C3sdBJbK.d.mts +0 -1680
- package/dist/resolved-C3sdBJbK.d.mts.map +0 -1
- package/dist/resolved-C8Vvfp78.d.cts.map +0 -1
- package/dist/resolved-cGosdCt1.d.mts.map +0 -1
- package/dist/runtime-Bp9G0scd.cjs +0 -0
- package/dist/runtime-CH2w8aTC.d.mts.map +0 -1
- package/dist/runtime-DEBqRdSt.d.mts +0 -793
- package/dist/runtime-DEBqRdSt.d.mts.map +0 -1
- package/dist/runtime-DRosxZBg.d.mts +0 -793
- package/dist/runtime-DRosxZBg.d.mts.map +0 -1
- package/dist/runtime-FcS-im6N.d.mts.map +0 -1
- package/dist/runtime-ag6w6CSq.d.cts +0 -793
- package/dist/runtime-ag6w6CSq.d.cts.map +0 -1
- package/dist/runtime-cDYyRPa0.mjs +0 -1
- package/dist/runtime-e8zq29Og.d.cts +0 -16
- package/dist/runtime-e8zq29Og.d.cts.map +0 -1
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +0 -6
- package/dist/types/index.d.mts +0 -6
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.mjs +0 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +0 -4
- package/dist/types/runtime.d.mts +0 -4
- package/dist/types/runtime.mjs +0 -1
- package/dist/types-C5ggNT4K.mjs +0 -1
- package/dist/types-a8gm_IaQ.cjs +0 -0
- /package/dist/{components-BWLXb7a2.cjs → plugin-DHXHjv16.cjs} +0 -0
- /package/dist/{components-MTvNCZDU.mjs → plugin-DzeYlbKJ.mjs} +0 -0
- /package/dist/{plugin-G4qbpIjB.mjs → runtime-2grn5p5x.mjs} +0 -0
- /package/dist/{plugin-pBKbb5K9.cjs → runtime-D4zTdSwv.cjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
|
|
2
|
-
`)?`${i}\n`:i}function Me(e){let t=[];for(let r of e)if(typeof r==`string`){let e=r.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else (0,n.isPrintHook)(r)?t.push(r.print(r.subtree,Me)):t.push(Me(r));return t}function Ne(e){return(0,o.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,s.isFunction)(t[0])?t[0](e):t[0]:(0,s.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,s.isFunction)(i[2])&&!i[2](t,n)){e.log(r.LogLevelLabel.TRACE,`Skipping filtered Babel plugin ${p.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=te.default;`default`in Le&&(Le=Le.default);const Re=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`],ze=(e,t)=>(n,...r)=>e(n,` ${p.default.inverse.hex(Re[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%Re.length]||Re[0])(` ${(0,m.titleCase)(t)} `)} ${r.join(` `)} `);function Be(e,t){let n=n=>(0,ne.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 ${p.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 ${p.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`,h.importDeclaration([h.importSpecifier(h.identifier(t.name||t.imported),h.identifier(t.imported))],h.stringLiteral(t.module)))}const Ge=(e={})=>({name:`babel`,config(){if((0,c.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,f.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if((0,i.isParentPath)(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(r.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(r.LogLevelLabel.TRACE,`Babel transforming file: ${n}`);let a=this.config.transform.babel.plugins.map(e=>Ie(this,t,n,e)).filter((e,t,n)=>e&&!Pe(n,e)),o=this.config.transform.babel.presets.map(e=>Ie(this,t,n,e)).filter((e,t,n)=>e&&!Pe(n,e));if(Array.isArray(a)&&a.length===0&&Array.isArray(o)&&o.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes((0,ee.findFileExtensionSafe)(n))&&!Pe(a,`@babel/plugin-syntax-typescript`)&&!Pe(o,`@babel/preset-typescript`)&&a.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,ee.findFileExtension)(n)===`.tsx`}]);let s=await(0,d.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:n,plugins:a.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,f.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:o.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,f.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!s?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:s.code,id:n}}});var Ke=Ge;const S={PUBLIC:0,PROTECTED:1,PRIVATE:2};var C=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 qe={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Je=class extends _.Struct{static UNDEFINED=qe.UNDEFINED;static BOOLEAN=qe.BOOLEAN;static INTEGER=qe.INTEGER;static FLOAT=qe.FLOAT;static STRING=qe.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)}},w=class extends _.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new _.ObjectSize(16,1)};get value(){return _.utils.getAs(Je,this)}_initValue(){return _.utils.getAs(Je,this)}toString(){return`DefaultValueReflection_`+super.toString()}},T=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()}},E=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,T,this)}_hasContainer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initContainer(){return _.utils.initStructAt(0,T,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,T,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initIndex(){return _.utils.initStructAt(1,T,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Ye=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()}},Xe=class e extends _.Struct{static EntityIndexOptions=Ye;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()}},Ze=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},D=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasSuperClass(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initSuperClass(){return _.utils.initStructAt(8,T,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(10,this))}_initTags(){return _.utils.initStructAt(10,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},O=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,T,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,w,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,w,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},k=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,C,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,T,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,T,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Qe=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,C,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,T,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,w,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initDefault(){return _.utils.initStructAt(8,w,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},A=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,C,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,T,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,T,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},$e=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},et=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()}},j=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasIndexType(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initIndexType(){return _.utils.initStructAt(6,T,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},M=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},tt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},nt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,T,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},rt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndex(){return _.utils.initStructAt(4,T,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,T,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},it=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,w,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,w,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,T,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initTags(){return _.utils.initStructAt(8,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},at=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initReturn(){return _.utils.initStructAt(6,T,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,C,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,C,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},ot=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},st=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},ct=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,T,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()}},lt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},ut=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,T,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},dt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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,T,this)}_hasOrigin(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initOrigin(){return _.utils.initStructAt(4,T,this)}set origin(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},ft=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()}},pt=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()}},mt=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 N={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var ht=class extends _.Struct{static SYMBOL=N.SYMBOL;static STRING=N.STRING;static NUMBER=N.NUMBER;static BOOLEAN=N.BOOLEAN;static BIGINT=N.BIGINT;static REGEX=N.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,ft,this)}_hasSymbol(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initSymbol(){return _.utils.setUint16(2,0,this),_.utils.initStructAt(4,ft,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,pt,this)}_hasBigint(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initBigint(){return _.utils.setUint16(2,4,this),_.utils.initStructAt(4,pt,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,mt,this)}_hasRegex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initRegex(){return _.utils.setUint16(2,5,this),_.utils.initStructAt(4,mt,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)}},gt=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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(ht,this)}_initLiteral(){return _.utils.getAs(ht,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},_t=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,E,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,E,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()}},vt=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 P={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var yt=class extends _.Struct{static SIMPLE=P.SIMPLE;static LITERAL=P.LITERAL;static TEMPLATE_LITERAL=P.TEMPLATE_LITERAL;static PARAMETER=P.PARAMETER;static FUNCTION=P.FUNCTION;static METHOD=P.METHOD;static PROPERTY=P.PROPERTY;static PROMISE=P.PROMISE;static CLASS_TYPE=P.CLASS_TYPE;static ENUM=P.ENUM;static UNION=P.UNION;static INTERSECTION=P.INTERSECTION;static ARRAY=P.ARRAY;static OBJECT_LITERAL=P.OBJECT_LITERAL;static INDEX_SIGNATURE=P.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=P.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=P.METHOD_SIGNATURE;static TYPE_PARAMETER=P.TYPE_PARAMETER;static INFER=P.INFER;static TUPLE=P.TUPLE;static TUPLE_MEMBER=P.TUPLE_MEMBER;static REST=P.REST;static OTHER=P.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new _.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,dt,this)}_hasSimple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initSimple(){return _.utils.setUint16(0,0,this),_.utils.initStructAt(0,dt,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,gt,this)}_hasLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initLiteral(){return _.utils.setUint16(0,1,this),_.utils.initStructAt(0,gt,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,_t,this)}_hasTemplateLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTemplateLiteral(){return _.utils.setUint16(0,2,this),_.utils.initStructAt(0,_t,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,O,this)}_hasParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initParameter(){return _.utils.setUint16(0,3,this),_.utils.initStructAt(0,O,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,A,this)}_hasFunction(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initFunction(){return _.utils.setUint16(0,4,this),_.utils.initStructAt(0,A,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,k,this)}_hasMethod(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethod(){return _.utils.setUint16(0,5,this),_.utils.initStructAt(0,k,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,Qe,this)}_hasProperty(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initProperty(){return _.utils.setUint16(0,6,this),_.utils.initStructAt(0,Qe,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,$e,this)}_hasPromise(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPromise(){return _.utils.setUint16(0,7,this),_.utils.initStructAt(0,$e,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,D,this)}_hasClassType(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initClassType(){return _.utils.setUint16(0,8,this),_.utils.initStructAt(0,D,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,j,this)}_hasEnum(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initEnum(){return _.utils.setUint16(0,9,this),_.utils.initStructAt(0,j,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,M,this)}_hasUnion(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initUnion(){return _.utils.setUint16(0,10,this),_.utils.initStructAt(0,M,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,tt,this)}_hasIntersection(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIntersection(){return _.utils.setUint16(0,11,this),_.utils.initStructAt(0,tt,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,nt,this)}_hasArray(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initArray(){return _.utils.setUint16(0,12,this),_.utils.initStructAt(0,nt,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,Ze,this)}_hasObjectLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initObjectLiteral(){return _.utils.setUint16(0,13,this),_.utils.initStructAt(0,Ze,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,rt,this)}_hasIndexSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIndexSignature(){return _.utils.setUint16(0,14,this),_.utils.initStructAt(0,rt,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,it,this)}_hasPropertySignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPropertySignature(){return _.utils.setUint16(0,15,this),_.utils.initStructAt(0,it,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,at,this)}_hasMethodSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethodSignature(){return _.utils.setUint16(0,16,this),_.utils.initStructAt(0,at,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,ot,this)}_hasTypeParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypeParameter(){return _.utils.setUint16(0,17,this),_.utils.initStructAt(0,ot,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,st,this)}_hasInfer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initInfer(){return _.utils.setUint16(0,18,this),_.utils.initStructAt(0,st,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,lt,this)}_hasTuple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTuple(){return _.utils.setUint16(0,19,this),_.utils.initStructAt(0,lt,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,ct,this)}_hasTupleMember(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTupleMember(){return _.utils.setUint16(0,20,this),_.utils.initStructAt(0,ct,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,ut,this)}_hasRest(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initRest(){return _.utils.setUint16(0,21,this),_.utils.initStructAt(0,ut,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,vt,this)}_hasOther(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initOther(){return _.utils.setUint16(0,22,this),_.utils.initStructAt(0,vt,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)}},bt=class extends _.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new _.ObjectSize(8,1)};get type(){return _.utils.getAs(yt,this)}_initType(){return _.utils.getAs(yt,this)}toString(){return`SerializedType_`+super.toString()}},xt=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()}};Xe._Indexes=_.CompositeList(Ye),Ze._TypeArguments=_.CompositeList(T),Ze._Decorators=_.CompositeList(T),Ze._Types=_.CompositeList(T),D._TypeArguments=_.CompositeList(T),D._Decorators=_.CompositeList(T),D._ExtendsArguments=_.CompositeList(T),D._Arguments=_.CompositeList(T),D._Types=_.CompositeList(T),O._TypeArguments=_.CompositeList(T),O._Decorators=_.CompositeList(T),k._TypeArguments=_.CompositeList(T),k._Decorators=_.CompositeList(T),k._Parameters=_.CompositeList(O),Qe._TypeArguments=_.CompositeList(T),Qe._Decorators=_.CompositeList(T),A._TypeArguments=_.CompositeList(T),A._Decorators=_.CompositeList(T),A._Parameters=_.CompositeList(O),$e._TypeArguments=_.CompositeList(T),$e._Decorators=_.CompositeList(T),j._TypeArguments=_.CompositeList(T),j._Decorators=_.CompositeList(T),j._EnumEntries=_.CompositeList(et),M._TypeArguments=_.CompositeList(T),M._Decorators=_.CompositeList(T),M._Types=_.CompositeList(T),tt._TypeArguments=_.CompositeList(T),tt._Decorators=_.CompositeList(T),tt._Types=_.CompositeList(T),nt._TypeArguments=_.CompositeList(T),nt._Decorators=_.CompositeList(T),rt._TypeArguments=_.CompositeList(T),rt._Decorators=_.CompositeList(T),it._TypeArguments=_.CompositeList(T),it._Decorators=_.CompositeList(T),at._TypeArguments=_.CompositeList(T),at._Decorators=_.CompositeList(T),at._Parameters=_.CompositeList(O),ot._TypeArguments=_.CompositeList(T),ot._Decorators=_.CompositeList(T),st._TypeArguments=_.CompositeList(T),st._Decorators=_.CompositeList(T),ct._TypeArguments=_.CompositeList(T),ct._Decorators=_.CompositeList(T),lt._TypeArguments=_.CompositeList(T),lt._Decorators=_.CompositeList(T),lt._Types=_.CompositeList(ct),ut._TypeArguments=_.CompositeList(T),ut._Decorators=_.CompositeList(T),dt._TypeArguments=_.CompositeList(T),dt._Decorators=_.CompositeList(T),gt._TypeArguments=_.CompositeList(T),gt._Decorators=_.CompositeList(T),_t._TypeArguments=_.CompositeList(T),_t._Decorators=_.CompositeList(T),_t._Types=_.CompositeList(T),xt._Types=_.CompositeList(bt);function St(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,ue.isSetObject)(e)&&!(0,ue.isUndefined)(e.kind)).forEach((e,n)=>{wt(e,t.get(n)._initType())}),t}function Ct(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=Tt(e.type);t.push(n)}),t}function F(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function I(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function L(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function R(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function wt(t,n){return t.kind===e.p.ReflectionKind.objectLiteral?sn(t,n._initObjectLiteral()):t.kind===e.p.ReflectionKind.class?an(t,n._initClassType()):t.kind===e.p.ReflectionKind.parameter?ln(t,n._initParameter()):t.kind===e.p.ReflectionKind.function?en(t,n._initFunction()):t.kind===e.p.ReflectionKind.method?tn(t,n._initMethod()):t.kind===e.p.ReflectionKind.infer?Qt(t,n._initInfer()):t.kind===e.p.ReflectionKind.union?Xt(t,n._initUnion()):t.kind===e.p.ReflectionKind.array?Jt(t,n._initArray()):t.kind===e.p.ReflectionKind.intersection?Kt(t,n._initIntersection()):t.kind===e.p.ReflectionKind.enum?Wt(t,n._initEnum()):t.kind===e.p.ReflectionKind.property?Ht(t,n._initProperty()):t.kind===e.p.ReflectionKind.tuple?Bt(t,n._initTuple()):t.kind===e.p.ReflectionKind.tupleMember?Rt(t,n._initTupleMember()):t.kind===e.p.ReflectionKind.propertySignature?Lt(t,n._initPropertySignature()):t.kind===e.p.ReflectionKind.methodSignature?Nt(t,n._initMethodSignature()):t.kind===e.p.ReflectionKind.literal?jt(t,n._initLiteral()):t.kind===e.p.ReflectionKind.never||t.kind===e.p.ReflectionKind.any||t.kind===e.p.ReflectionKind.unknown||t.kind===e.p.ReflectionKind.void||t.kind===e.p.ReflectionKind.object||t.kind===e.p.ReflectionKind.string||t.kind===e.p.ReflectionKind.number||t.kind===e.p.ReflectionKind.boolean||t.kind===e.p.ReflectionKind.symbol||t.kind===e.p.ReflectionKind.bigint||t.kind===e.p.ReflectionKind.null||t.kind===e.p.ReflectionKind.undefined||t.kind===e.p.ReflectionKind.regexp?kt(t,n._initSimple()):Ot(t,n._initOther()),n}function Tt(e){if(e._isObjectLiteral)return cn(e.objectLiteral);if(e._isClassType)return on(e.classType);if(e._isParameter)return un(e.parameter);if(e._isFunction)return nn(e.function);if(e._isInfer)return $t(e.infer);if(e._isMethod)return rn(e.method);if(e._isUnion)return Zt(e.union);if(e._isArray)return Yt(e.array);if(e._isIntersection)return qt(e.intersection);if(e._isEnum)return Gt(e.enum);if(e._isProperty)return Ut(e.property);if(e._isTuple)return Vt(e.tuple);if(e._isTupleMember)return zt(e.tupleMember);if(e._isPropertySignature)return Pt(e.propertySignature);if(e._isMethodSignature)return Mt(e.methodSignature);if(e._isLiteral)return At(e.literal);if(e._isSimple)return Dt(e.simple);if(e._isOther)return Et(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Et(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Dt(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function Ot(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function kt(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function At(t){return{kind:e.p.ReflectionKind.literal,literal:t.literal._isString?t.literal.string:t.literal._isNumber?t.literal.number:t.literal._isBoolean?t.literal.boolean:t.literal._isBigint?{type:`bigint`,value:t.literal.bigint.value}:t.literal._isSymbol?{type:`symbol`,name:t.literal.symbol.name}:{type:`regex`,regex:t.literal.regex.regex},typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function jt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Mt(t){return{kind:e.p.ReflectionKind.methodSignature,name:t.name,typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,parameters:t._hasParameters()?t.parameters.map(e=>un(e)):[],return:t.return.id,tags:I(t)}}function Nt(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Pt(t){return{kind:e.p.ReflectionKind.propertySignature,name:t.name,typeName:t.typeName||void 0,description:t.description,default:It(t.default),optional:t.optional?!0:void 0,readonly:t.readonly?!0:void 0,type:t.type.id,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t),tags:I(t)}}function Ft(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?(0,ue.isInteger)(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function It(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 Lt(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();Ft(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Rt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function zt(t){return{kind:e.p.ReflectionKind.tupleMember,type:t.type.id,typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function Bt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Rt(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Vt(t){return{kind:e.p.ReflectionKind.tuple,typeName:t.typeName||void 0,types:t._hasTypes()?t.types.map(e=>zt(e)):[],decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function Ht(t,n){if(n.kind=t.kind,n.typeName=t.typeName||``,n.description=t.description||``,n.optional=t.optional??!1,n.readonly=t.readonly??!1,n.visibility=t.visibility===e.p.ReflectionVisibility.public?S.PUBLIC:t.visibility===e.p.ReflectionVisibility.protected?S.PROTECTED:S.PRIVATE,n.abstract=t.abstract??!1,n.name=String(t.name)||``,t.default!==void 0){let e=n._initDefault();Ft(t.default,e)}let r=n._initType();if(r.id=t.type,t.decorators?.length){let e=n._initDecorators(t.decorators?.length??0);t.decorators?.forEach((t,n)=>{let r=e.get(n);r.id=t})}if(t.typeArguments?.length){let e=n._initTypeArguments(t.typeArguments?.length??0);t.typeArguments?.forEach((t,n)=>{let r=e.get(n);r.id=t})}return t.indexAccessOrigin&&L(n._initIndexAccessOrigin(),t.indexAccessOrigin),t.tags&&F(n._initTags(),t.tags),n}function Ut(t){return{kind:e.p.ReflectionKind.property,typeName:t.typeName||void 0,description:t.description,default:It(t.default),optional:t.optional?!0:void 0,readonly:t.readonly?!0:void 0,visibility:t.visibility===S.PUBLIC?e.p.ReflectionVisibility.public:t.visibility===S.PROTECTED?e.p.ReflectionVisibility.protected:e.p.ReflectionVisibility.private,abstract:t.abstract?!0:void 0,name:t.name,type:t.type.id,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t),tags:I(t)}}function Wt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&F(t._initTags(),e.tags),t}function Gt(t){return{kind:e.p.ReflectionKind.enum,typeName:t.typeName||void 0,indexType:t.indexType.id,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,values:t._hasValues()?t.values.map(e=>e):[],enum:t._hasEnumEntries()?Object.entries(t.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:R(t),tags:I(t)}}function Kt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function qt(t){return{kind:e.p.ReflectionKind.intersection,typeName:t.typeName||void 0,types:t._hasTypes()?t.types.map(e=>e.id):[],decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function Jt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function Yt(t){return{kind:e.p.ReflectionKind.array,typeName:t.typeName||void 0,type:t.type.id,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t),tags:I(t)}}function Xt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Zt(t){return{kind:e.p.ReflectionKind.union,typeName:t.typeName||void 0,types:t._hasTypes()?t.types.map(e=>e.id):[],decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function Qt(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function $t(t){return{kind:e.p.ReflectionKind.infer,typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t)}}function en(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)=>{ln(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function tn(t,n){if(n.name=String(t.name)||``,n.kind=t.kind,n.typeName=t.typeName||``,n.abstract=t.abstract??!1,n.visibility=t.visibility===e.p.ReflectionVisibility.public?S.PUBLIC:t.visibility===e.p.ReflectionVisibility.protected?S.PROTECTED:S.PRIVATE,t.decorators?.length){let e=n._initDecorators(t.decorators.length);t.decorators.forEach((t,n)=>{let r=e.get(n);r.id=t})}if(t.typeArguments?.length){let e=n._initTypeArguments(t.typeArguments.length);t.typeArguments.forEach((t,n)=>{let r=e.get(n);r.id=t})}if(t.parameters?.length){let e=n._initParameters(t.parameters.length);t.parameters.forEach((t,n)=>{ln(t,e.get(n))})}let r=n._initReturn();return r.id=t.return,t.indexAccessOrigin&&L(n._initIndexAccessOrigin(),t.indexAccessOrigin),t.tags&&F(n._initTags(),t.tags),n}function nn(t){return{kind:e.p.ReflectionKind.function,name:t.name,typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,parameters:t._hasParameters()?t.parameters.map(e=>un(e)):[],return:t.return.id,indexAccessOrigin:R(t),tags:I(t)}}function rn(t){return{kind:e.p.ReflectionKind.method,name:t.name,typeName:t.typeName||void 0,abstract:t.abstract?!0:void 0,return:t.return.id,visibility:t.visibility===S.PUBLIC?e.p.ReflectionVisibility.public:t.visibility===S.PROTECTED?e.p.ReflectionVisibility.protected:e.p.ReflectionVisibility.private,parameters:t._hasParameters()?t.parameters.map(e=>un(e)):[]}}function an(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function on(t){return{kind:e.p.ReflectionKind.class,typeName:t.typeName||void 0,classType:t.classType,globalObject:t.globalObject?!0:void 0,arguments:t._hasArguments()?t.arguments.map(e=>e.id):void 0,extendsArguments:t._hasExtendsArguments()?t.extendsArguments.map(e=>e.id):void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,types:t._hasTypes()?t.types.map(e=>e.id):[],typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,superClass:t._hasSuperClass()?t.superClass.id:void 0,indexAccessOrigin:R(t),tags:I(t)}}function sn(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&L(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&F(t._initTags(),e.tags),t}function cn(t){return{kind:e.p.ReflectionKind.objectLiteral,typeName:t.typeName||void 0,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,types:t._hasTypes()?t.types.map(e=>e.id):[],typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t),tags:I(t)}}function ln(t,n){if(n.kind=t.kind,n.typeName=t.typeName||``,n.name=t.name||``,n.optional=t.optional??!1,n.readonly=t.readonly??!1,n.visibility=t.visibility===e.p.ReflectionVisibility.public?S.PUBLIC:t.visibility===e.p.ReflectionVisibility.protected?S.PROTECTED:S.PRIVATE,t.default!==void 0){let e=n._initDefault();Ft(t.default,e)}let r=n._initType();if(r.id=t.type,t.decorators?.length){let e=n._initDecorators(t.decorators.length);t.decorators.forEach((t,n)=>{let r=e.get(n);r.id=t})}if(t.typeArguments?.length){let e=n._initTypeArguments(t.typeArguments.length);t.typeArguments.forEach((t,n)=>{let r=e.get(n);r.id=t})}return t.indexAccessOrigin&&L(n._initIndexAccessOrigin(),t.indexAccessOrigin),t.tags&&F(n._initTags(),t.tags),n}function un(t){return{kind:e.p.ReflectionKind.parameter,typeName:t.typeName||void 0,name:t.name,default:It(t.default),optional:t.optional?!0:void 0,readonly:t.readonly?!0:void 0,visibility:t.visibility===S.PUBLIC?e.p.ReflectionVisibility.public:t.visibility===S.PROTECTED?e.p.ReflectionVisibility.protected:e.p.ReflectionVisibility.private,type:t.type.id,decorators:t._hasDecorators()?t.decorators.map(e=>e.id):void 0,typeArguments:t._hasTypeArguments()?t.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:R(t),tags:I(t)}}var dn=Object.defineProperty,z=(e,t)=>dn(e,`name`,{value:t,configurable:!0}),B=class extends _.Struct{static{z(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()}},V={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},fn=class extends _.Struct{static{z(this,`DefaultValueReflection_Value`)}static UNDEFINED=V.UNDEFINED;static BOOLEAN=V.BOOLEAN;static INTEGER=V.INTEGER;static FLOAT=V.FLOAT;static STRING=V.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new _.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)}},H=class extends _.Struct{static{z(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new _.ObjectSize(16,1)};get value(){return _.utils.getAs(fn,this)}_initValue(){return _.utils.getAs(fn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},U=class extends _.Struct{static{z(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()}},W=class extends _.Struct{static{z(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,U,this)}_hasContainer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initContainer(){return _.utils.initStructAt(0,U,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,U,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(1,this))}_initIndex(){return _.utils.initStructAt(1,U,this)}set index(e){_.utils.copyFrom(e,_.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},pn=class extends _.Struct{static{z(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()}},mn=class e extends _.Struct{static{z(this,`EntityOptions`)}static EntityIndexOptions=pn;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()}},hn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},G=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasSuperClass(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initSuperClass(){return _.utils.initStructAt(8,U,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(10,this))}_initTags(){return _.utils.initStructAt(10,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},K=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,U,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,H,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,H,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},gn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,B,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,U,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,U,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},_n=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,B,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,U,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,H,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initDefault(){return _.utils.initStructAt(8,H,this)}set default(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},vn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initTags(){return _.utils.initStructAt(4,B,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,U,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initReturn(){return _.utils.initStructAt(7,U,this)}set return(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},yn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},bn=class extends _.Struct{static{z(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()}},xn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasIndexType(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initIndexType(){return _.utils.initStructAt(6,U,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},Sn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},Cn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},wn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,U,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initTags(){return _.utils.initStructAt(5,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Tn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasIndex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initIndex(){return _.utils.initStructAt(4,U,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(5,this))}_initType(){return _.utils.initStructAt(5,U,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},En=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,H,this)}_hasDefault(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initDefault(){return _.utils.initStructAt(6,H,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initType(){return _.utils.initStructAt(7,U,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(8,this))}_initTags(){return _.utils.initStructAt(8,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Dn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasReturn(){return!_.utils.isNull(_.utils.getPointer(6,this))}_initReturn(){return _.utils.initStructAt(6,U,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,B,this)}_hasTags(){return!_.utils.isNull(_.utils.getPointer(7,this))}_initTags(){return _.utils.initStructAt(7,B,this)}set tags(e){_.utils.copyFrom(e,_.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},On=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},kn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},An=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,U,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()}},jn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},Mn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasType(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initType(){return _.utils.initStructAt(4,U,this)}set type(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Nn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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,U,this)}_hasOrigin(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initOrigin(){return _.utils.initStructAt(4,U,this)}set origin(e){_.utils.copyFrom(e,_.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Pn=class extends _.Struct{static{z(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()}},Fn=class extends _.Struct{static{z(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()}},In=class extends _.Struct{static{z(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},Ln=class extends _.Struct{static{z(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,Pn,this)}_hasSymbol(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initSymbol(){return _.utils.setUint16(2,0,this),_.utils.initStructAt(4,Pn,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,Fn,this)}_hasBigint(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initBigint(){return _.utils.setUint16(2,4,this),_.utils.initStructAt(4,Fn,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,In,this)}_hasRegex(){return!_.utils.isNull(_.utils.getPointer(4,this))}_initRegex(){return _.utils.setUint16(2,5,this),_.utils.initStructAt(4,In,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)}},Rn=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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(Ln,this)}_initLiteral(){return _.utils.getAs(Ln,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},J=class e extends _.Struct{static{z(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,W,this)}_hasIndexAccessOrigin(){return!_.utils.isNull(_.utils.getPointer(2,this))}_initIndexAccessOrigin(){return _.utils.initStructAt(2,W,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()}},zn=class extends _.Struct{static{z(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()}},Y={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22},Bn=class extends _.Struct{static{z(this,`SerializedType_Type`)}static SIMPLE=Y.SIMPLE;static LITERAL=Y.LITERAL;static TEMPLATE_LITERAL=Y.TEMPLATE_LITERAL;static PARAMETER=Y.PARAMETER;static FUNCTION=Y.FUNCTION;static METHOD=Y.METHOD;static PROPERTY=Y.PROPERTY;static PROMISE=Y.PROMISE;static CLASS_TYPE=Y.CLASS_TYPE;static ENUM=Y.ENUM;static UNION=Y.UNION;static INTERSECTION=Y.INTERSECTION;static ARRAY=Y.ARRAY;static OBJECT_LITERAL=Y.OBJECT_LITERAL;static INDEX_SIGNATURE=Y.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=Y.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=Y.METHOD_SIGNATURE;static TYPE_PARAMETER=Y.TYPE_PARAMETER;static INFER=Y.INFER;static TUPLE=Y.TUPLE;static TUPLE_MEMBER=Y.TUPLE_MEMBER;static REST=Y.REST;static OTHER=Y.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new _.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,Nn,this)}_hasSimple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initSimple(){return _.utils.setUint16(0,0,this),_.utils.initStructAt(0,Nn,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,Rn,this)}_hasLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initLiteral(){return _.utils.setUint16(0,1,this),_.utils.initStructAt(0,Rn,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,J,this)}_hasTemplateLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTemplateLiteral(){return _.utils.setUint16(0,2,this),_.utils.initStructAt(0,J,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,K,this)}_hasParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initParameter(){return _.utils.setUint16(0,3,this),_.utils.initStructAt(0,K,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,vn,this)}_hasFunction(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initFunction(){return _.utils.setUint16(0,4,this),_.utils.initStructAt(0,vn,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,gn,this)}_hasMethod(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethod(){return _.utils.setUint16(0,5,this),_.utils.initStructAt(0,gn,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,_n,this)}_hasProperty(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initProperty(){return _.utils.setUint16(0,6,this),_.utils.initStructAt(0,_n,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,yn,this)}_hasPromise(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPromise(){return _.utils.setUint16(0,7,this),_.utils.initStructAt(0,yn,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,G,this)}_hasClassType(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initClassType(){return _.utils.setUint16(0,8,this),_.utils.initStructAt(0,G,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,xn,this)}_hasEnum(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initEnum(){return _.utils.setUint16(0,9,this),_.utils.initStructAt(0,xn,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,Sn,this)}_hasUnion(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initUnion(){return _.utils.setUint16(0,10,this),_.utils.initStructAt(0,Sn,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,Cn,this)}_hasIntersection(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIntersection(){return _.utils.setUint16(0,11,this),_.utils.initStructAt(0,Cn,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,wn,this)}_hasArray(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initArray(){return _.utils.setUint16(0,12,this),_.utils.initStructAt(0,wn,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,hn,this)}_hasObjectLiteral(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initObjectLiteral(){return _.utils.setUint16(0,13,this),_.utils.initStructAt(0,hn,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,Tn,this)}_hasIndexSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initIndexSignature(){return _.utils.setUint16(0,14,this),_.utils.initStructAt(0,Tn,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,En,this)}_hasPropertySignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initPropertySignature(){return _.utils.setUint16(0,15,this),_.utils.initStructAt(0,En,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,Dn,this)}_hasMethodSignature(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initMethodSignature(){return _.utils.setUint16(0,16,this),_.utils.initStructAt(0,Dn,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,On,this)}_hasTypeParameter(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTypeParameter(){return _.utils.setUint16(0,17,this),_.utils.initStructAt(0,On,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,kn,this)}_hasInfer(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initInfer(){return _.utils.setUint16(0,18,this),_.utils.initStructAt(0,kn,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,jn,this)}_hasTuple(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTuple(){return _.utils.setUint16(0,19,this),_.utils.initStructAt(0,jn,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,An,this)}_hasTupleMember(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initTupleMember(){return _.utils.setUint16(0,20,this),_.utils.initStructAt(0,An,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,Mn,this)}_hasRest(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initRest(){return _.utils.setUint16(0,21,this),_.utils.initStructAt(0,Mn,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,zn,this)}_hasOther(){return!_.utils.isNull(_.utils.getPointer(0,this))}_initOther(){return _.utils.setUint16(0,22,this),_.utils.initStructAt(0,zn,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)}},Vn=class extends _.Struct{static{z(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new _.ObjectSize(8,1)};get type(){return _.utils.getAs(Bn,this)}_initType(){return _.utils.getAs(Bn,this)}toString(){return`SerializedType_`+super.toString()}},X=class e extends _.Struct{static{z(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()}};mn._Indexes=_.CompositeList(pn),hn._TypeArguments=_.CompositeList(U),hn._Decorators=_.CompositeList(U),hn._Types=_.CompositeList(U),G._TypeArguments=_.CompositeList(U),G._Decorators=_.CompositeList(U),G._ExtendsArguments=_.CompositeList(U),G._Arguments=_.CompositeList(U),G._Types=_.CompositeList(U),K._TypeArguments=_.CompositeList(U),K._Decorators=_.CompositeList(U),gn._TypeArguments=_.CompositeList(U),gn._Decorators=_.CompositeList(U),gn._Parameters=_.CompositeList(K),_n._TypeArguments=_.CompositeList(U),_n._Decorators=_.CompositeList(U),vn._TypeArguments=_.CompositeList(U),vn._Decorators=_.CompositeList(U),vn._Parameters=_.CompositeList(K),yn._TypeArguments=_.CompositeList(U),yn._Decorators=_.CompositeList(U),xn._TypeArguments=_.CompositeList(U),xn._Decorators=_.CompositeList(U),xn._EnumEntries=_.CompositeList(bn),Sn._TypeArguments=_.CompositeList(U),Sn._Decorators=_.CompositeList(U),Sn._Types=_.CompositeList(U),Cn._TypeArguments=_.CompositeList(U),Cn._Decorators=_.CompositeList(U),Cn._Types=_.CompositeList(U),wn._TypeArguments=_.CompositeList(U),wn._Decorators=_.CompositeList(U),Tn._TypeArguments=_.CompositeList(U),Tn._Decorators=_.CompositeList(U),En._TypeArguments=_.CompositeList(U),En._Decorators=_.CompositeList(U),Dn._TypeArguments=_.CompositeList(U),Dn._Decorators=_.CompositeList(U),Dn._Parameters=_.CompositeList(K),On._TypeArguments=_.CompositeList(U),On._Decorators=_.CompositeList(U),kn._TypeArguments=_.CompositeList(U),kn._Decorators=_.CompositeList(U),An._TypeArguments=_.CompositeList(U),An._Decorators=_.CompositeList(U),jn._TypeArguments=_.CompositeList(U),jn._Decorators=_.CompositeList(U),jn._Types=_.CompositeList(An),Mn._TypeArguments=_.CompositeList(U),Mn._Decorators=_.CompositeList(U),Nn._TypeArguments=_.CompositeList(U),Nn._Decorators=_.CompositeList(U),Rn._TypeArguments=_.CompositeList(U),Rn._Decorators=_.CompositeList(U),J._TypeArguments=_.CompositeList(U),J._Decorators=_.CompositeList(U),J._Types=_.CompositeList(U),X._Types=_.CompositeList(Vn);function Hn(e){return(0,y.joinPaths)(e.dataPath,`reflections`)}const Un={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function Wn(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync((0,y.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,b.camelCase)(e)!==e){if(t.length===1)return`
|
|
3
|
-
import ${(0,b.camelCase)(e)} from "${t[0]}";
|
|
4
|
-
export { ${(0,b.camelCase)(e)} as "${e}" }`;if(t.length>1)return`
|
|
5
|
-
import ${t[1]===`*`?`* as ${(0,b.camelCase)(e)}`:`{ ${t[1]} as ${(0,b.camelCase)(e)} }`} from "${t[0]}";
|
|
6
|
-
export { ${(0,b.camelCase)(e)} as "${e}" }`}else if(t.length===1)return`
|
|
7
|
-
import ${e} from "${t[0]}";
|
|
8
|
-
export { ${e} };`;else if(t.length>1)return`
|
|
9
|
-
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
10
|
-
export { ${e} };`}else if((0,b.camelCase)(e)!==e)return`
|
|
11
|
-
import ${(0,b.camelCase)(e)} from "${t[0]}";
|
|
12
|
-
export { ${(0,b.camelCase)(e)} as "${e}" }`;else return`
|
|
13
|
-
import ${e} from "${t}";
|
|
14
|
-
export { ${e} };`;return``}).join(`
|
|
15
|
-
`)),(0,f.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,y.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?(0,_e.omit)(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?(0,_e.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,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},Un)}async function Gn(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,ge.build)({...Wn(e),entry:[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 Kn(e,t,n={}){let r;r=(0,o.isSetString)(t)?(0,g.parseTypeDefinition)(t):t;let i=await Gn(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),s=r.name;return s||=`default`,a[s]??a[`__Ω${s}`]}async function qn(t,n,r){return(0,e.p.reflect)(await Kn(t,n,r))}function Jn(t,n){return Qn(t,{type:(0,e.p.merge)(n.map(e=>e.type))})}function Yn(t,n){return $n(t,{type:(0,e.p.merge)(n.map(e=>e.type))})}var Xn=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},Zn=class{};function Qn(t,n={}){let r=n.superReflection??new e.p.ReflectionClass({kind:e.p.ReflectionKind.class,description:`The base environment configuration definition for the ${(0,m.titleCase)(t.config.name)} project.`,classType:Xn,types:[],implements:[{kind:e.p.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${(0,m.titleCase)(t.config.name)} project.`,types:[]}]});r.name=`Env`;let i=new e.p.ReflectionClass(n.type??{kind:e.p.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${t.config.name?`${(0,m.titleCase)(t.config.name)} application`:`application`}.`,types:[]},r);return i.name=`Env`,i}function $n(t,n={}){let r=n.superReflection??new e.p.ReflectionClass({kind:e.p.ReflectionKind.class,description:`The base secrets configuration definition for the ${(0,m.titleCase)(t.config.name)} project.`,classType:Zn,types:[],implements:[{kind:e.p.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${(0,m.titleCase)(t.config.name)} project.`,types:[]}]});r.name=`Secrets`;let i=new e.p.ReflectionClass(n.type??{kind:e.p.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${t.config.name?`${(0,m.titleCase)(t.config.name)} application`:`application`}.`,types:[]},r);return i.name=`Secrets`,i}async function er(t,n,r){let a;n&&(a=(0,e.p.resolveClassType)(await qn(t,{file:(0,i.isParentPath)(n,t.workspaceConfig.workspaceRoot)?n:(0,y.joinPaths)(t.workspaceConfig.workspaceRoot,n),name:r},{skipNodeModulesBundle:!0})));let o=await qn(t,await rr(t));return Jn(t,[await Z(t,`env`),a,(0,e.p.resolveClassType)(o)].filter(Boolean))}async function tr(t,n,r){let a;n&&(a=(0,e.p.resolveClassType)(await qn(t,{file:(0,i.isParentPath)(n,t.workspaceConfig.workspaceRoot)?n:(0,y.joinPaths)(t.workspaceConfig.workspaceRoot,n),name:r},{skipNodeModulesBundle:!0})));let o=await qn(t,await ir(t));return Yn(t,[await cr(t),a,(0,e.p.resolveClassType)(o)].filter(Boolean))}async function nr(e){return(0,me.resolvePackage)(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,(0,y.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function rr(e){return{file:await nr(e),name:`EnvInterface`}}async function ir(e){return{file:await nr(e),name:`SecretsInterface`}}function ar(e,t=`env`){return(0,y.joinPaths)(Hn(e),`env`,`${t}-types.bin`)}async function Z(t,n=`env`){let r=ar(t,n);if(!(0,pe.existsSync)(r)){if(!t.env.types.env||(0,he.isEmptyObject)(t.env.types.env)){let e=Qn(t),r=new _.Message;e.messageRoot=r.initRoot(X),e.dataBuffer=r.toArrayBuffer(),t.env.types.env=e,await or(t,t.env.types.env,n)}return t.env.types.env}let i=await(0,v.readFileBuffer)(r),a=new _.Message(i,!1).getRoot(X),o=(0,e.p.resolveClassType)((0,e.p.deserializeType)(Ct(a.types)));return t.env.types[n]=o,t.env.types[n].messageRoot=a,t.env.types[n].dataBuffer=i,o}async function or(e,t,n=`env`){let r=t.serializeType(),i=new _.Message;St(r,i.initRoot(X)._initTypes(r.length)),await(0,v.writeFileBuffer)(ar(e,n),i.toArrayBuffer())}function Q(e,t){return(0,y.joinPaths)(Hn(e),`env`,`${t}.bin`)}async function sr(t){let n=Q(t,`env`);if(!(0,pe.existsSync)(n)){if(t.env.types.env||(t.env.types.env=await Z(t,`env`)),!t.env.used.env||(0,he.isEmptyObject)(t.env.used.env)){let n=Qn(t,{type:{kind:e.p.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${t.config.name?`${t.config.name} application`:`application`}.`,types:[]},superReflection:t.env.types.env});n.name=`Env`;let r=new _.Message;n.messageRoot=r.initRoot(X),n.dataBuffer=r.toArrayBuffer(),t.env.used.env=n,await lr(t,t.env.used.env,`env`)}return t.env.used.env}let r=await(0,v.readFileBuffer)(n),i=new _.Message(r,!1).getRoot(X),a=(0,e.p.resolveClassType)((0,e.p.deserializeType)(Ct(i.types)));return t.env.used.env=a,t.env.used.env.messageRoot=i,t.env.used.env.dataBuffer=r,a}async function cr(t){let n=Q(t,`secrets`);if(!(0,pe.existsSync)(n)){if(t.env.types.secrets||(t.env.types.secrets=await Z(t,`secrets`)),!t.env.used.secrets||(0,he.isEmptyObject)(t.env.used.secrets)){let n=Qn(t,{type:{kind:e.p.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${t.config.name?`${t.config.name} application`:`application`}.`,types:[]},superReflection:t.env.types.secrets});n.name=`Secrets`;let r=new _.Message;n.messageRoot=r.initRoot(X),n.dataBuffer=r.toArrayBuffer(),t.env.used.secrets=n,await lr(t,t.env.used.secrets,`secrets`)}return t.env.used.secrets}let r=await(0,v.readFileBuffer)(n),i=new _.Message(r,!1).getRoot(X),a=(0,e.p.resolveClassType)((0,e.p.deserializeType)(Ct(i.types)));return t.env.used.secrets=a,t.env.used.secrets.messageRoot=i,t.env.used.secrets.dataBuffer=r,a}async function lr(e,t,n=`env`){let r=t.serializeType(),i=new _.Message;St(r,i.initRoot(X)._initTypes(r.length)),await(0,v.writeFileBuffer)(Q(e,n),i.toArrayBuffer())}const ur=Be(`env`,({log:t,context:n})=>{function i(i,a,o=!1){let s=n.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(i.name){let c=n.config.env.prefix.find(e=>i.name&&i.name.startsWith(e)&&(n.env.types.env?.hasProperty(i.name.replace(`${e}_`,``))||s.some(t=>t.getAlias().includes(i.name.replace(`${e}_`,``))))),l=i.name;if(c&&(l=i.name.replace(`${c}_`,``)),t(r.LogLevelLabel.TRACE,`Environment variable ${l} found in ${a.filename||`unknown file`}.`),n.env.types.env?.hasProperty(l)||s.some(e=>e.getAlias().includes(l))){let t=n.env.types.env.hasProperty(l)?n.env.types.env.getProperty(l):s.find(e=>e.getAlias().includes(l));if(!t||t.isIgnored())return;if(n.env.used.env.hasProperty(l)||n.env.used.env.addProperty(t.property),n.config.env.inject&&o){let r=n.env.parsed?.[l];if(r===void 0){let e=n.config.env.prefix.find(e=>n.env.parsed[`${e.replace(/_$/g,``)}_${l}`]);e&&(r=n.env.parsed[`${e.replace(/_$/g,``)}_${l}`])}if(r??=t.getDefaultValue(),t.isValueRequired()&&r===void 0)throw Error(`Environment variable \`${l}\` is not defined in the .env configuration files`);return e.f(t,r)}}else throw Error(`The "${l}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${a.filename?a.filename:`unknown`}.
|
|
16
|
-
|
|
17
|
-
The following environment configuration names are defined in the \`env\` type definition: \n${n.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${s.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${s?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
|
|
18
|
-
`)} \n\nUsing the following env prefix: \n${n.config.env.prefix.map(e=>` - ${e}`).join(`
|
|
19
|
-
`)} \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 n=e.get(`property`)?.node;i(n,t,!1),e.replaceWithSourceString(`env.${n.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 n=e.get(`property`)?.node;i(n,t,!1),e.replaceWithSourceString(`env.${n.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 n=e.get(`property`)?.node;if(!n.name)return;i(n,t,!1),e.replaceWithSourceString(`env.${n.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 n=e.get(`property`)?.node;if(!n.name)return;i(n,t,!1),e.replaceWithSourceString(`env.${n.name}`),Ve(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){t(r.LogLevelLabel.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let i=e.p.ReflectionClass.from({kind:e.p.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),a=Q(n,`env`);a&&(0,pe.existsSync)(a)&&(t(r.LogLevelLabel.TRACE,`Environment reflection file found at ${a}, reading existing reflection.`),i=(0,e.p.resolveClassType)((0,e.p.deserializeType)(Ct(new _.Message((0,v.readFileBufferSync)(a),!1).getRoot(X).types)))),t(r.LogLevelLabel.TRACE,`Adding new variables to env reflection at ${a}.`),i.getProperties().filter(e=>e.getNameAsString()&&!n.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{n.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()})})}}}),dr=(0,n.createContext)();function fr(){let e=(0,n.useContext)(dr);if(!e)throw Error("Powerlines - ReflectionClass Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");return e}const pr=(0,n.createNamedContext)(`reflection-property`);function mr(){let e=(0,n.useContext)(pr);if(!e)throw Error("Powerlines - Reflection Property Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");return e}const hr=(0,n.createNamedContext)(`reflection-method`),gr=(0,n.createNamedContext)(`reflection-parameter`);function _r(r){let[{children:i},a]=(0,n.splitProps)(r,[`children`]),s=fr(),c=(0,n.computed)(()=>s.reflection.getTitle()||(0,m.titleCase)(s.reflection.getName())),u=(0,n.computed)(()=>s.reflection.getAlias()),d=(0,n.computed)(()=>s.reflection.getDomain()),ee=(0,n.computed)(()=>s.reflection.getPermission()),f=(0,n.computed)(()=>s.reflection.isReadonly()),p=(0,n.computed)(()=>s.reflection.isInternal()),te=(0,n.computed)(()=>s.reflection.isIgnored()),ne=(0,n.computed)(()=>s.reflection.isHidden());return s.reflection.getName()?(0,t.createComponent)(e.r,(0,t.mergeProps)(a,{get heading(){return s.reflection.getDescription()},get children(){return[(0,t.createComponent)(n.Show,{get when(){return(0,o.isSetString)(c.value)||!(0,l.isUndefined)(u.value)&&u.value.length>0||!(0,l.isUndefined)(ee.value)&&ee.value.length>0||(0,o.isSetString)(d.value)||!(0,l.isUndefined)(f.value)||!(0,l.isUndefined)(p.value)||!(0,l.isUndefined)(te.value)||!(0,l.isUndefined)(ne.value)},get children(){return(0,t.createComponent)(e.i,{get title(){return c.value},get alias(){return u.value},get domain(){return d.value},get permission(){return ee.value},get readonly(){return f.value},get internal(){return p.value},get ignore(){return te.value},get hidden(){return ne.value}})}}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i)()&&(0,n.childrenArray)(()=>i).length>0},get children(){return(0,t.createComponent)(n.List,{get children(){return(0,n.childrenArray)(()=>i)}})}})]}})):null}function vr(r){let[{children:i},a]=(0,n.splitProps)(r,[`children`]),o=mr();return(0,t.createComponent)(e.r,(0,t.mergeProps)({get heading(){return o.getDescription()}},a,{get children(){return[(0,t.createComponent)(e.i,{get title(){return o.getTitle()},get alias(){return o.getAlias()},get domain(){return o.getDomain()},get permission(){return o.getPermission()},get readonly(){return o.isReadonly()},get internal(){return o.isInternal()},get ignore(){return o.isIgnored()},get hidden(){return o.isHidden()}}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i)()&&(0,n.childrenArray)(()=>i).length>0},get children(){return(0,t.createComponent)(n.List,{get children(){return(0,n.childrenArray)(()=>i)}})}})]}}))}function yr(e){let[{name:r,reflection:i},a]=(0,n.splitProps)(e,[`name`,`reflection`]),o=(0,n.computed)(()=>(0,ye.pascalCase)(r||i.getName())),s=i.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1);return(0,t.createComponent)(dr.Provider,{value:{reflection:i},get children(){return[(0,t.createComponent)(_r,{}),(0,t.createComponent)(x.InterfaceDeclaration,(0,t.mergeProps)({export:!0,get name(){return o.value}},a,{get children(){return(0,t.createComponent)(n.For,{each:s,doubleHardline:!0,semicolon:!0,children:e=>(0,t.createComponent)(br,{property:e})})}}))]}})}function br(r){let[{property:i},a]=(0,n.splitProps)(r,[`property`]);return(0,t.createComponent)(pr.Provider,{value:i,get children(){return[(0,t.createComponent)(vr,{}),(0,t.createComponent)(x.InterfaceMember,(0,t.mergeProps)({get name(){return i.getNameAsString()},get readonly(){return i.isReadonly()},get optional(){return i.isOptional()},get nullish(){return i.isNullable()},get type(){return(0,e.p.stringifyType)(i.getType())}},a))]}})}function xr(e){if(!e.reflection?.value)return null;let r=(0,n.computed)(()=>(0,b.camelCase)(e.name||e.reflection.value.getName())),i=(0,n.computed)(()=>e.type||(0,ye.pascalCase)(e.reflection.value.getName())),a=(0,n.computed)(()=>e.reflection.value.getProperties().filter(t=>!t.isIgnored()&&!(0,l.isUndefined)(e.defaultValue?.value?.[t.getNameAsString()]??t.getAlias().reduce((t,n)=>(0,l.isUndefined)(t)&&!(0,l.isUndefined)(e.defaultValue?.value?.[n])?e.defaultValue?.value?.[n]:t,void 0)??t.getDefaultValue())).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1)),o=(0,n.createSymbolSlot)(),s=(0,n.createSymbolSlot)(),c=(0,x.createValueSymbol)(e.name,{refkeys:e.refkey,default:e.default,export:e.export,metadata:e.metadata,tsFlags:e.nullish?x.TSSymbolFlags.Nullish:x.TSSymbolFlags.None,type:e.type?o.firstSymbol:void 0,namePolicy:(0,x.useTSNamePolicy)().for(`variable`)});e.type||s.moveMembersTo(c);let u=e.var?`var`:e.let?`let`:`const`,d=e.type?(0,t.createComponent)(x.TypeRefContext,{get children(){return[`: `,(0,t.createComponent)(o,{get children(){return e.type}})]}}):void 0;return(0,t.createComponent)(n.Show,{get when(){return!!e.reflection.value},get children(){return(0,t.createComponent)(dr.Provider,{get value(){return{reflection:e.reflection.value,override:{name:r.value,type:i.value,defaultValue:e.defaultValue?.value}}},get children(){return[(0,t.createComponent)(n.Show,{get when(){return!!r.value&&!!i.value},get children(){return[(0,t.createComponent)(_r,{}),(0,t.createComponent)(n.Declaration,{symbol:c,get children(){return[(0,t.memo)(()=>e.export?`export `:``),(0,t.memo)(()=>e.default?`default `:``),u,` `,(0,t.createComponent)(n.Name,{}),d,` =`,` `,(0,t.createComponent)(s,{get children(){return e.initializer??e.children??(0,t.createComponent)(x.ObjectExpression,{get children(){return(0,t.createComponent)(n.For,{get each(){return a.value??[]},comma:!0,doubleHardline:!0,children:e=>(0,t.createComponent)(Sr,{property:e})})}})}})]}})]}}),(0,t.createIntrinsic)(`hbr`,{})]}})}})}function Sr(r){let[{property:i}]=(0,n.splitProps)(r,[`property`]);return(0,t.createComponent)(pr.Provider,{value:i,get children(){return[(0,t.createComponent)(vr,{}),(0,t.createComponent)(x.ObjectProperty,{get name(){return i.getNameAsString()},get value(){return e.f(i)}}),(0,t.createIntrinsic)(`hbr`,{})]}})}function Cr(e){if((0,re.isString)(e)){let t=ae.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=Cr(n);return r&&(t[r]=e[n]),t},{})}async function wr(e,t,n){let r=await(0,be.loadEnv)(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>(0,be.loadEnvFile)(e,n)));for(let e of t)r=(0,f.default)(e,r)}return Cr(r)}async function Tr(e,t,n,r,i,a){let[o,s]=await Promise.all([wr(e,n,t),(0,Se.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,y.joinPaths)(r,`jiti`),moduleCache:!0}})]);return(0,f.default)(o,s.config,a)}function Er(e,t){return(0,f.default)({APP_NAME:(0,xe.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,xe.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,o.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,c.isSetObject)(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function Dr(e,t){let[n,r,i]=await Promise.all([Tr(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),Tr(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),Tr(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return(0,f.default)(Er(e,process.env),n,r,i)}function Or(t){let r=(0,n.computed)(()=>t&&Er(t,process.env));return(0,n.createResource)(async()=>{if(!t)return new e.p.ReflectionClass({kind:e.p.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Z(t,`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,m.titleCase)(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(r.value?.[e.getNameAsString()]??e.getAlias().reduce((e,t)=>e??r.value?.[t],void 0)??e.getDefaultValue())}),n})}function kr(r){let[{defaultValue:i,reflection:a}]=(0,n.splitProps)(r,[`defaultValue`,`reflection`]),o=e.h();return[(0,t.createComponent)(yr,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:i,reflection:a,export:!0}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(x.TypeDeclaration,{name:`Env`,export:!0,get children(){return n.code` {
|
|
20
|
-
[Key in keyof EnvBase as Key ${o?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
|
|
21
|
-
}
|
|
22
|
-
`}})]}function $(e){let[{context:t,name:r}]=(0,n.splitProps)(e,[`context`,`name`]);return t?n.code`propertyName === "${r}" || 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, "") === "${r.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function Ar(e){let[{context:r,property:i,index:a}]=(0,n.splitProps)(e,[`context`,`property`,`index`]);return r?[a===0?(0,t.createComponent)(x.IfStatement,{get condition(){return[(0,t.createComponent)($,{get name(){return i.getNameAsString()},context:r}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i.getAlias())()&&i.getAlias().length>0},get children(){return[n.code` || `,(0,t.createComponent)(n.For,{get each(){return i.getAlias()},joiner:n.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:r})})]}})]},get children(){return n.code`return target["${i.getNameAsString()}"];`}}):(0,t.createComponent)(x.ElseIfClause,{get condition(){return[(0,t.createComponent)($,{get name(){return i.getNameAsString()},context:r}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i.getAlias())()&&i.getAlias().length>0},get children(){return[n.code` || `,(0,t.createComponent)(n.For,{get each(){return i.getAlias()},joiner:n.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:r})})]}})]},get children(){return n.code`return target["${i.getNameAsString()}"];`}})]:null}function jr(e){let[{context:r,property:i,index:a}]=(0,n.splitProps)(e,[`context`,`property`,`index`]);return r?[a===0?(0,t.createComponent)(x.IfStatement,{get condition(){return[(0,t.createComponent)($,{get name(){return i.getNameAsString()},context:r}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i.getAlias())()&&i.getAlias().length>0},get children(){return[n.code` || `,(0,t.createComponent)(n.For,{get each(){return i.getAlias()},joiner:n.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:r})})]}})]},get children(){return n.code`
|
|
23
|
-
target["${i.getNameAsString()}"] = newValue;
|
|
24
|
-
return true;
|
|
25
|
-
`}}):(0,t.createComponent)(x.ElseIfClause,{get condition(){return[(0,t.createComponent)($,{get name(){return i.getNameAsString()},context:r}),(0,t.createComponent)(n.Show,{get when(){return(0,t.memo)(()=>!!i.getAlias())()&&i.getAlias().length>0},get children(){return[n.code` || `,(0,t.createComponent)(n.For,{get each(){return i.getAlias()},joiner:n.code` || `,children:e=>(0,t.createComponent)($,{name:e,context:r})})]}})]},get children(){return n.code`
|
|
26
|
-
target["${i.getNameAsString()}"] = newValue;
|
|
27
|
-
return true;
|
|
28
|
-
`}})]:null}const Mr=e.d(`createEnv`),Nr=e.d(`env`),Pr=e.d(`EnvSerializer`);function Fr(r){let[{defaultConfig:i},a]=(0,n.splitProps)(r,[`defaultConfig`]),o=e.h(),s=(0,n.computed)(()=>o&&Er(o,process.env)),c=Or(o),l=(0,n.computed)(()=>new e.p.ReflectionClass({kind:e.p.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${(0,m.titleCase)(o?.config?.name)} project.`,types:[]},c.data??void 0)),u=(0,n.computed)(()=>c.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),d=(0,n.computed)(()=>c.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return(0,t.createComponent)(e.n,(0,t.mergeProps)(a,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return(0,f.default)({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},a.imports??{})},get children(){return[(0,t.createComponent)(n.Show,{get when(){return!(0,fe.isNull)(c.data)},get children(){return[(0,t.createComponent)(kr,{get defaultValue(){return s.value},get reflection(){return c.data}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{})]}}),(0,t.createComponent)(xr,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:s,reflection:l,export:!0,const:!0}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(e.r,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[(0,t.createComponent)(e.o,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,t.createComponent)(e.o,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,t.createComponent)(e.c,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,t.createComponent)(x.ClassDeclaration,{refkey:Pr,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return(0,t.createComponent)(x.ClassMethod,{name:`constructor`,public:!0,children:n.code`
|
|
29
|
-
super("env");
|
|
30
|
-
|
|
31
|
-
this.deserializeRegistry.register(
|
|
32
|
-
ReflectionKind.boolean,
|
|
33
|
-
(type: Type, state: TemplateState) => {
|
|
34
|
-
state.addSetter(
|
|
35
|
-
\`typeof \${state.accessor.toString()} !== "boolean" ? \${state.accessor.toString()} === 1 || \${state.accessor.toString()} === "1" || \${state.accessor.toString()}.toLowerCase() === "t" || \${state.accessor.toString()}.toLowerCase() === "true" || \${state.accessor.toString()}.toLowerCase() === "y" || \${state.accessor.toString()}.toLowerCase() === "yes" : \${state.accessor.toString()}\`
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
`})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(e.r,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[(0,t.createComponent)(e.o,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,t.createComponent)(e.o,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,t.createComponent)(e.c,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,t.createComponent)(x.VarDeclaration,{name:`envSerializer`,export:!1,const:!0,get initializer(){return(0,t.createComponent)(x.NewExpression,{args:[],target:`EnvSerializer`})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(e.r,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[(0,t.createComponent)(e.c,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),(0,t.createComponent)(e.a,{children:`const json = serializeEnv(env);`}),(0,t.createComponent)(e.u,{children:`ValidationError when serialization or validation fails.`})]}}),(0,t.createComponent)(x.VarDeclaration,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(e.r,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[(0,t.createComponent)(e.c,{children:`Types that are already correct will be used as-is.`}),(0,t.createComponent)(e.a,{children:`const env = deserializeEnv(json);`}),(0,t.createComponent)(e.u,{children:`ValidationError when deserialization fails.`})]}}),(0,t.createComponent)(x.VarDeclaration,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(e.r,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[(0,t.createComponent)(e.c,{children:`This function initializes the Powerlines environment configuration object.`}),(0,t.createComponent)(e.s,{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)(e.l,{children:`The initialized Powerlines configuration object.`})]}}),(0,t.createComponent)(n.Show,{get when(){return!!o?.entryPath},get children(){return(0,t.createComponent)(x.FunctionDeclaration,{refkey:Mr,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[n.code`
|
|
40
|
-
return new Proxy<Env>(
|
|
41
|
-
deserializeEnv({
|
|
42
|
-
...initialEnv,
|
|
43
|
-
...environmentConfig
|
|
44
|
-
}) as Env,
|
|
45
|
-
{
|
|
46
|
-
get: (target: EnvBase, propertyName: string) => { `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(n.For,{each:u,children:(e,n)=>(0,t.createComponent)(Ar,{index:n,context:o,property:e})}),n.code`
|
|
47
|
-
return undefined;
|
|
48
|
-
}, `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),n.code` set: (target: EnvBase, propertyName: string, newValue: any) => { `,(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(n.For,{each:d,ender:n.code` else `,children:(e,n)=>(0,t.createComponent)(jr,{index:n,context:o,property:e})}),(0,t.createIntrinsic)(`hbr`,{}),n.code`return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
`]}})}}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createIntrinsic)(`hbr`,{}),(0,t.createComponent)(x.VarDeclaration,{refkey:Nr,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[n.code`createEnv(`,i||`{}`,n.code` as Partial<Env>)`]}})]}}))}const Ir=(0,n.createNamedContext)(`markdown-table-column`,{}),Lr=(0,n.createContext)({columns:[],data:[]}),Rr=ke((n={})=>({name:`env`,dependsOn:[Ke(n.babel)],async config(){this.log(r.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let e={env:(0,f.default)(n,{types:{},prefix:[]}),transform:{babel:{plugins:[ur]}}};if(e.env.types)e.env.types=(0,g.parseTypeDefinition)(e.env.types);else{this.log(r.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let t=await rr(this);e.env.types=(0,g.parseTypeDefinition)(`${t.file}#${t.name}`)}if(e.env.secrets)e.env.secrets=(0,g.parseTypeDefinition)(e.env.secrets);else{let t=await ir(this);e.env.secrets=(0,g.parseTypeDefinition)(`${t.file}#${t.name}`)}return e.env.prefix=(0,ie.toArray)(e.env.prefix??[]).reduce((e,t)=>{let n=(0,le.constantCase)(t);return e.includes(n)||e.push(n),e},[...ae.ENV_PREFIXES,`POWERLINES_`]),e.env.prefix=e.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),e},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,f.default)({parsed:await Dr(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&(0,oe.existsSync)(ar(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,oe.existsSync)(Q(this,`env`))&&(this.env.used.env=await sr(this)),(0,oe.existsSync)(ar(this,`secrets`))&&(this.env.types.secrets=await Z(this,`secrets`)),(0,oe.existsSync)(Q(this,`secrets`))&&(this.env.used.secrets=await cr(this));else{if(this.env.types.env=await er(this,this.config.env.types?.file?(0,i.isParentPath)(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:(0,ce.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 or(this,this.env.types.env,`env`),this.env.types.secrets=await tr(this,this.config.env.secrets?.file?(0,i.isParentPath)(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:(0,ce.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 or(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 t=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await Dr(this,this.config.env)).forEach(([e,n])=>{let r=this.config.env.prefix.reduce((t,n)=>e.replace(/_$/g,``).startsWith(n)?e.replace(/_$/g,``).slice(n.length):t,e),i=t.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 e.p.ReflectionClass({kind:e.p.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 lr(this,this.env.used.env,`env`),this.env.types.secrets&&(await or(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new e.p.ReflectionClass({kind:e.p.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 lr(this,this.env.used.secrets,`secrets`))}},render(){let e=this;return this.log(r.LogLevelLabel.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),(0,t.createComponent)(Fr,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(r.LogLevelLabel.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let t=(0,ce.joinPaths)(this.config.projectRoot,`docs`,`generated`);(0,oe.existsSync)(t)||await(0,se.createDirectory)(t);let n=await Z(this,`env`),i=(0,ce.joinPaths)(t,`env.md`);this.log(r.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${i}"`),await this.fs.write(i,`<!-- Generated by Powerlines -->
|
|
53
|
-
|
|
54
|
-
# Environment variables configuration
|
|
55
|
-
|
|
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.
|
|
57
|
-
|
|
58
|
-
## Environment Configuration
|
|
59
|
-
|
|
60
|
-
The below list of environment variables 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.
|
|
61
|
-
|
|
62
|
-
| Name | Description | Type | Default Value | Required |
|
|
63
|
-
| ---- | ----------- | ---- | ------------- | :------: |
|
|
64
|
-
${n.getProperties().filter(e=>e.getNameAsString()!==`__STORM_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(t=>`| ${t.getNameAsString().trim()} | ${(t.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
|
|
65
|
-
`,``)??``).trim()} | ${(0,e.p.stringifyType)(t.getType()).trim().replaceAll(` | `,`, or `)} | ${t.hasDefault()?String(t.getDefaultValue())?.includes(`"`)?t.getDefaultValue():`\`${t.getDefaultValue()}\``:``} | ${t.isValueRequired()?``:`✔`} |`).join(`
|
|
66
|
-
`)}
|
|
67
|
-
`)},async buildEnd(){let e=Q(this,`env`);this.log(r.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await lr(this,this.env.used.env,`env`)}}));var zr=Rr;function Br(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 Vr(e,t){return Br(e,t)!==void 0}const Hr=ke((n={})=>({name:`react`,dependsOn:[Ke(n.babel),zr(n.env)],config(){return(0,f.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.0`,this.dependencies[`react-dom`]=`^19.2.0`,this.devDependencies[`@types/react`]=`^19.2.2`,this.devDependencies[`@types/react-dom`]=`^19.2.2`,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`&&(Vr(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),Vr(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),Vr(`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??=[],Vr(`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,Ce.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:e.p.ReflectionVisibility.public,type:{kind:e.p.ReflectionKind.boolean},default:!1})},render(){let n=this;return(0,t.createComponent)(e.t,{get override(){return n.config.react.compiler===!1?!1:void 0}})}}));var Ur=Hr;exports.ReactOptimizedBuiltin=e.t,exports.default=Ur,exports.plugin=Hr;
|
|
1
|
+
require(`./plugin-DHXHjv16.cjs`),require(`./runtime-D4zTdSwv.cjs`);
|