@powerlines/plugin-date 0.12.56 → 0.12.58
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/README.md +8 -2
- package/dist/components/date-fns.cjs +1 -519
- package/dist/components/date-fns.mjs +1 -0
- package/dist/components/dayjs.cjs +1 -464
- package/dist/components/dayjs.mjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -0
- package/dist/components/luxon.cjs +1 -468
- package/dist/components/luxon.mjs +1 -0
- package/dist/components/moment.cjs +1 -454
- package/dist/components/moment.mjs +1 -0
- package/dist/components-MTvNCZDU.mjs +1 -0
- package/dist/{components/date-fns.js → date-fns-CY0chrAO.cjs} +5 -11
- package/dist/date-fns-e9ZSXC-n.mjs +513 -0
- package/dist/{components/dayjs.js → dayjs-C8RNvs_i.cjs} +4 -10
- package/dist/dayjs-DdpR-Gm_.mjs +458 -0
- package/dist/file-header-CL5ggH4h.cjs +10 -0
- package/dist/file-header-DOeykm47.mjs +10 -0
- package/dist/index.cjs +66 -6
- package/dist/index.mjs +64 -0
- package/dist/{components/luxon.js → luxon-C4TR9kDJ.mjs} +4 -10
- package/dist/luxon-oeMoLSAd.cjs +462 -0
- package/dist/{components/moment.js → moment-D7ZhINWA.mjs} +5 -11
- package/dist/moment-ZKt5-ae-.cjs +448 -0
- package/dist/plugin-G4qbpIjB.mjs +1 -0
- package/dist/runtime-DztkBZpw.cjs +0 -0
- package/dist/runtime-cDYyRPa0.mjs +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.mjs +1 -0
- package/dist/types/runtime.cjs +1 -1
- package/dist/types/runtime.mjs +1 -0
- package/dist/types-C5ggNT4K.mjs +1 -0
- package/dist/types-CKPddlfS.cjs +0 -0
- package/package.json +39 -28
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/components/date-fns.d.cts +0 -38
- package/dist/components/date-fns.d.ts +0 -38
- package/dist/components/dayjs.d.cts +0 -38
- package/dist/components/dayjs.d.ts +0 -38
- package/dist/components/index.d.cts +0 -32
- package/dist/components/index.d.ts +0 -32
- package/dist/components/index.js +0 -1
- package/dist/components/luxon.d.cts +0 -38
- package/dist/components/luxon.d.ts +0 -38
- package/dist/components/moment.d.cts +0 -38
- package/dist/components/moment.d.ts +0 -38
- package/dist/index.d.cts +0 -41
- package/dist/index.d.ts +0 -41
- package/dist/index.js +0 -7
- package/dist/plugin-CSk7OuX1.d.cts +0 -4121
- package/dist/plugin-CSk7OuX1.d.ts +0 -4121
- package/dist/types/index.d.cts +0 -29
- package/dist/types/index.d.ts +0 -29
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.cts +0 -28
- package/dist/types/plugin.d.ts +0 -28
- package/dist/types/runtime.d.cts +0 -710
- package/dist/types/runtime.d.ts +0 -710
- /package/dist/{types/plugin.js → components-DTkri-mp.cjs} +0 -0
- /package/dist/{types/runtime.js → plugin-OjUZLLkc.cjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(e,n,r,i)=>{i&&(t(e,Symbol.toStringTag,{value:`Module`}),r&&t(r,Symbol.toStringTag,{value:`Module`})),o(e,n,`default`),r&&o(r,n,`default`)},c=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`./file-header-CL5ggH4h.cjs`);const l=require(`./date-fns-CY0chrAO.cjs`),u=require(`./dayjs-C8RNvs_i.cjs`),d=require(`./luxon-oeMoLSAd.cjs`),ee=require(`./moment-ZKt5-ae-.cjs`);require(`./components-DTkri-mp.cjs`),require(`./plugin-OjUZLLkc.cjs`),require(`./runtime-DztkBZpw.cjs`),require(`./types-CKPddlfS.cjs`);let f=require(`@alloy-js/core/jsx-runtime`),p=require(`@alloy-js/core`),m=require(`@storm-software/config-tools/types`),te=require(`@stryke/path/is-parent-path`),ne=require(`@stryke/path/replace`),h=require(`@stryke/type-checks/is-set-string`),g=require(`@stryke/type-checks/is-function`),re=require(`@stryke/type-checks/is-set-object`),_=require(`@stryke/type-checks/is-undefined`),ie=require(`prettier/doc.js`),ae=require(`@babel/core`),oe=require(`@stryke/path/file-path-fns`),v=require(`defu`);v=c(v),require(`@stryke/type-checks/is-object`);let y=require(`chalk`);y=c(y);let se=require(`@babel/generator`);se=c(se),require(`@babel/parser`);let ce=require(`@babel/helper-plugin-utils`);require(`@storm-software/config-tools/logger`),require(`@storm-software/config-tools/utilities/colors`),require(`@stryke/helpers/noop`);let b=require(`@stryke/string-format/title-case`),x=require(`@babel/types`);x=c(x);let S=require(`@stryke/type-checks/is-string`),le=require(`@stryke/convert/parse-type-definition`),ue=require(`@stryke/convert/to-array`),de=require(`@stryke/env/types`),fe=require(`@stryke/fs/exists`),pe=require(`@stryke/fs/helpers`),me=require(`@stryke/path/join`),he=require(`@stryke/string-format/constant-case`),ge=require(`@stryke/type-checks`),C=require(`@stryke/capnp`);C=c(C);let _e=require(`@stryke/helpers/get-unique`),ve=require(`@stryke/json/storm-json`),ye=require(`@stryke/type-checks/is-null`),be=require(`@stryke/fs/buffer`),xe=require(`node:fs`),w=require(`@stryke/path/join-paths`),Se=require(`@stryke/fs/resolve`),Ce=require(`@stryke/type-checks/is-empty-object`),we=require(`esbuild`),Te=require(`@stryke/helpers/omit`),T=require(`@stryke/string-format/camel-case`);require(`@stryke/fs/is-file`),require(`@stryke/fs/list-files`),require(`@stryke/hash/murmurhash`);let Ee=require(`@stryke/path/append`),E=require(`@alloy-js/typescript`),De=require(`@stryke/type-checks/is-boolean`),Oe=require(`@stryke/string-format/pascal-case`),ke=require(`@stryke/env/load-env`),Ae=require(`@stryke/string-format/kebab-case`),je=require(`c12`);require(`@alloy-js/markdown`);function Me(e){return(0,g.isFunction)(e)||(0,re.isSetObject)(e)&&`handler`in e&&(0,g.isFunction)(e.handler)}function Ne(e){return(0,re.isSetObject)(e)&&`handler`in e&&(0,g.isFunction)(e.handler)}function Pe(e){return Me(e)||Ne(e)}function Fe(e){return(0,g.isFunction)(e)?e:e.handler}const Ie=(0,p.createContext)();function Le(){return(0,p.useContext)(Ie)}function Re(){return Le()?.ref?.value}function ze(e){let[{children:t,context:n,basePath:r},i]=(0,p.splitProps)(e,[`children`,`context`,`basePath`]),a=(0,p.ref)(n),o=(0,p.computed)(()=>r?(0,ne.replacePath)(r,a.value.workspaceConfig.workspaceRoot):a.value.workspaceConfig.workspaceRoot);return(0,f.createComponent)(p.Output,(0,f.mergeProps)(i,{get basePath(){return o.value},get children(){return(0,f.createComponent)(Ie.Provider,{value:{ref:a},get children(){return(0,f.createComponent)(p.Show,{get when(){return!!a.value},children:t})}})}}))}function Be(e){return t=>{let n=e(t);return{...n,async prepare(){let e=this;if(Pe(n.prepare)&&n.enforce!==`post`&&(Me(n.prepare)||Ne(n.prepare)&&n.prepare.order!==`post`)&&await Promise.resolve(Fe(n.prepare).call(this)),Pe(n.render)){let r=(0,p.renderTree)((0,f.createComponent)(ze,{context:e,get basePath(){return e.workspaceConfig.workspaceRoot},get children(){return n.render.call(e)}}));await Ve(this,r,t?.alloy)}Pe(n.prepare)&&(n.enforce===`post`||Ne(n.prepare)&&n.prepare.order===`post`)&&await Promise.resolve(Fe(n.prepare).call(this))}}}}async function Ve(e,t,n={}){await(0,p.flushJobsAsync)();let r,i=async(t,a)=>{if(!Array.isArray(a))return;let o=async e=>{for(let t of a)await i(e,t)},s=(0,p.getContextForRenderNode)(a);if(!s)return o(t);if(s.meta?.directory){let e={kind:`directory`,path:s.meta.directory.path,contents:[]};t?t.contents.push(e):r=e,await o(e)}else if(s.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let r;if(s.meta?.builtin){if(!s.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(m.LogLevelLabel.TRACE,`Rendering built-in runtime module with ID: ${s.meta.builtin.id}`),r={kind:`builtin`,id:s.meta.builtin.id,path:(0,ne.replacePath)(s.meta.sourceFile.path,e.builtinsPath),filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await He(e,a,n)}}else s.meta?.entry||(0,te.isParentPath)(e.entryPath,s.meta.sourceFile.path)?(e.log(m.LogLevelLabel.TRACE,`Rendering entry module at path: ${s.meta.sourceFile.path}`),r={kind:`entry`,typeDefinition:s.meta.entry?.typeDefinition,path:s.meta.sourceFile.path,filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await He(e,a,n)}):(e.log(m.LogLevelLabel.TRACE,`Rendering source file at path: ${s.meta.sourceFile.path}`),r={kind:`file`,path:s.meta.sourceFile.path,filetype:s.meta.sourceFile.filetype,preset:s.meta.output?.mode,contents:await He(e,a,n)});t.contents.push(r)}else if(s.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(m.LogLevelLabel.TRACE,`Processing copy file operation from "${s.meta.copyFile.sourcePath}" to "${s.meta.copyFile.path}"`),!s.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!s.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:s.meta.copyFile.path,sourcePath:s.meta.copyFile.sourcePath,preset:s.meta.output?.preset})}else await o(t)};await i(void 0,t);let a=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await a(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!(0,h.isSetString)(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&(0,h.isSetString)(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await a(e,r)}async function He(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await(0,p.flushJobsAsync)();let r=ie.printer.printDocToString(Ue(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
2
|
+
`)?`${r}\n`:r}function Ue(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else (0,p.isPrintHook)(n)?t.push(n.print(n.subtree,Ue)):t.push(Ue(n));return t}var D={};s(D,require(`@deepkit/type`));function We(e){return(0,h.isSetString)(e)?e:Array.isArray(e)&&e.length>0?We(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function Ge(e,t){return!!(We(t)&&e.some(e=>Array.isArray(e)&&We(e[0])===We(t)))}function Ke(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?(0,g.isFunction)(t[0])?t[0](e):t[0]:(0,g.isFunction)(t)?t(e):t}catch{return t[0]}}function qe(e,t,n,r){if(Array.isArray(r)&&r.length>0&&r[0]){if(r.length>2&&r[2]&&(0,g.isFunction)(r[2])&&!r[2](t,n)){e.log(m.LogLevelLabel.TRACE,`Skipping filtered Babel plugin ${y.default.bold.cyanBright(We(r)||`unnamed`)} for ${n}`);return}return r.length>2?[Ke(e,r),r[1],r[2]]:[Ke(e,r),r[1],null]}return[Ke(e,r),{},null]}let Je=se.default;`default`in Je&&(Je=Je.default);const Ye=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`],Xe=(e,t)=>(n,...r)=>e(n,` ${y.default.inverse.hex(Ye[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%Ye.length]||Ye[0])(` ${(0,b.titleCase)(t)} `)} ${r.join(` `)} `);function Ze(e,t){let n=n=>(0,ce.declare)((r,i,a)=>{r.cache.using(()=>n.meta.checksum),r.assertVersion(`^7.0.0-0`);let o=Xe(n.log,e);o(m.LogLevelLabel.TRACE,`Initializing the ${y.default.bold.cyanBright(e)} Babel plugin`);let s=t({log:o,name:e,api:r,options:i,context:n,dirname:a});return s.name=e,o(m.LogLevelLabel.TRACE,`Completed initialization of the ${y.default.bold.cyanBright(e)} Babel plugin`),s});return n.$$name=e,n}function Qe(e,t){tt(e.scope.getProgramParent().path,t)}function $e(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function et(e){let t=new Map;return e.traverse({ImportDeclaration(e){$e(e)&&t.set(e.node.source.value,e)}}),t}function tt(e,t){et(e).get(t.module)||e.unshiftContainer(`body`,x.importDeclaration([x.importSpecifier(x.identifier(t.name||t.imported),x.identifier(t.imported))],x.stringLiteral(t.module)))}const nt=(e={})=>({name:`babel`,config(){if((0,re.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,v.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if((0,te.isParentPath)(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(m.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(m.LogLevelLabel.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>qe(this,t,n,e)).filter((e,t,n)=>e&&!Ge(n,e)),i=this.config.transform.babel.presets.map(e=>qe(this,t,n,e)).filter((e,t,n)=>e&&!Ge(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(i)&&i.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes((0,oe.findFileExtensionSafe)(n))&&!Ge(r,`@babel/plugin-syntax-typescript`)&&!Ge(i,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,oe.findFileExtension)(n)===`.tsx`}]);let a=await(0,ae.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:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,v.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:i.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,v.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!a?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:a.code,id:n}}});var rt=nt;const O={PUBLIC:0,PROTECTED:1,PRIVATE:2};var k=class extends C.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new C.ObjectSize(8,4)};_adoptAlias(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownAlias(){return C.utils.disown(this.alias)}get alias(){return C.utils.getList(0,C.TextList,this)}_hasAlias(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initAlias(e){return C.utils.initList(0,C.TextList,e,this)}set alias(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get title(){return C.utils.getText(1,this)}set title(e){C.utils.setText(1,e,this)}get hidden(){return C.utils.getBit(0,this)}set hidden(e){C.utils.setBit(0,e,this)}get readonly(){return C.utils.getBit(1,this)}set readonly(e){C.utils.setBit(1,e,this)}get ignore(){return C.utils.getBit(2,this)}set ignore(e){C.utils.setBit(2,e,this)}get internal(){return C.utils.getBit(3,this)}set internal(e){C.utils.setBit(3,e,this)}_adoptPermission(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownPermission(){return C.utils.disown(this.permission)}get permission(){return C.utils.getList(2,C.TextList,this)}_hasPermission(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initPermission(e){return C.utils.initList(2,C.TextList,e,this)}set permission(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}get domain(){return C.utils.getText(3,this)}set domain(e){C.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const it={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var at=class extends C.Struct{static UNDEFINED=it.UNDEFINED;static BOOLEAN=it.BOOLEAN;static INTEGER=it.INTEGER;static FLOAT=it.FLOAT;static STRING=it.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new C.ObjectSize(16,1)};get _isUndefined(){return C.utils.getUint16(0,this)===0}set undefined(e){C.utils.setUint16(0,0,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(0,this),1,this),C.utils.getBit(16,this)}get _isBoolean(){return C.utils.getUint16(0,this)===1}set boolean(e){C.utils.setUint16(0,1,this),C.utils.setBit(16,e,this)}get integer(){return C.utils.testWhich(`integer`,C.utils.getUint16(0,this),2,this),C.utils.getInt32(4,this)}get _isInteger(){return C.utils.getUint16(0,this)===2}set integer(e){C.utils.setUint16(0,2,this),C.utils.setInt32(4,e,this)}get float(){return C.utils.testWhich(`float`,C.utils.getUint16(0,this),3,this),C.utils.getFloat64(8,this)}get _isFloat(){return C.utils.getUint16(0,this)===3}set float(e){C.utils.setUint16(0,3,this),C.utils.setFloat64(8,e,this)}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(0,this),4,this),C.utils.getText(0,this)}get _isString(){return C.utils.getUint16(0,this)===4}set string(e){C.utils.setUint16(0,4,this),C.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return C.utils.getUint16(0,this)}},A=class extends C.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new C.ObjectSize(16,1)};get value(){return C.utils.getAs(at,this)}_initValue(){return C.utils.getAs(at,this)}toString(){return`DefaultValueReflection_`+super.toString()}},j=class extends C.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new C.ObjectSize(8,0)};get id(){return C.utils.getUint32(0,this)}set id(e){C.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},M=class extends C.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new C.ObjectSize(0,2)};_adoptContainer(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownContainer(){return C.utils.disown(this.container)}get container(){return C.utils.getStruct(0,j,this)}_hasContainer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initContainer(){return C.utils.initStructAt(0,j,this)}set container(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(1,j,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initIndex(){return C.utils.initStructAt(1,j,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},ot=class extends C.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new C.ObjectSize(0,2)};_adoptNames(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownNames(){return C.utils.disown(this.names)}get names(){return C.utils.getList(0,C.TextList,this)}_hasNames(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initNames(e){return C.utils.initList(0,C.TextList,e,this)}set names(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get options(){return C.utils.getText(1,this)}set options(e){C.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},st=class e extends C.Struct{static EntityIndexOptions=ot;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new C.ObjectSize(8,5)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get description(){return C.utils.getText(1,this)}set description(e){C.utils.setText(1,e,this)}get collection(){return C.utils.getText(2,this)}set collection(e){C.utils.setText(2,e,this)}get database(){return C.utils.getText(3,this)}set database(e){C.utils.setText(3,e,this)}get singleTableInheritance(){return C.utils.getBit(0,this)}set singleTableInheritance(e){C.utils.setBit(0,e,this)}_adoptIndexes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndexes(){return C.utils.disown(this.indexes)}get indexes(){return C.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndexes(t){return C.utils.initList(4,e._Indexes,t,this)}set indexes(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},ct=class e extends C.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},N=class e extends C.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new C.ObjectSize(8,11)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get globalObject(){return C.utils.getBit(16,this)}set globalObject(e){C.utils.setBit(16,e,this)}get classType(){return C.utils.getText(5,this)}set classType(e){C.utils.setText(5,e,this)}_adoptExtendsArguments(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownExtendsArguments(){return C.utils.disown(this.extendsArguments)}get extendsArguments(){return C.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initExtendsArguments(t){return C.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptArguments(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownArguments(){return C.utils.disown(this.arguments)}get arguments(){return C.utils.getList(7,e._Arguments,this)}_hasArguments(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initArguments(t){return C.utils.initList(7,e._Arguments,t,this)}set arguments(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptSuperClass(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownSuperClass(){return C.utils.disown(this.superClass)}get superClass(){return C.utils.getStruct(8,j,this)}_hasSuperClass(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initSuperClass(){return C.utils.initStructAt(8,j,this)}set superClass(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(9,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(9,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(9,this))}_initTypes(t){return C.utils.initList(9,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(9,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(10,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(10,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(10,this))}_initTags(){return C.utils.initStructAt(10,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},P=class e extends C.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}get visibility(){return C.utils.getUint16(2,this)}set visibility(e){C.utils.setUint16(2,e,this)}get readonly(){return C.utils.getBit(32,this)}set readonly(e){C.utils.setBit(32,e,this)}get optional(){return C.utils.getBit(33,this)}set optional(e){C.utils.setBit(33,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,A,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,A,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},lt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,j,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,j,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},ut=class e extends C.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new C.ObjectSize(8,9)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}get description(){return C.utils.getText(6,this)}set description(e){C.utils.setText(6,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(8,A,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initDefault(){return C.utils.initStructAt(8,A,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},dt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,j,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,j,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},ft=class e extends C.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new C.ObjectSize(8,4)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},pt=class extends C.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new C.ObjectSize(0,2)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},mt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptEnumEntries(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownEnumEntries(){return C.utils.disown(this.enumEntries)}get enumEntries(){return C.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initEnumEntries(t){return C.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptValues(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownValues(){return C.utils.disown(this.values)}get values(){return C.utils.getList(5,C.TextList,this)}_hasValues(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initValues(e){return C.utils.initList(5,C.TextList,e,this)}set values(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptIndexType(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownIndexType(){return C.utils.disown(this.indexType)}get indexType(){return C.utils.getStruct(6,j,this)}_hasIndexType(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initIndexType(){return C.utils.initStructAt(6,j,this)}set indexType(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},ht=class e extends C.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},gt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},_t=class e extends C.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},vt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(4,j,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndex(){return C.utils.initStructAt(4,j,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},yt=class e extends C.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new C.ObjectSize(8,9)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get readonly(){return C.utils.getBit(17,this)}set readonly(e){C.utils.setBit(17,e,this)}get description(){return C.utils.getText(5,this)}set description(e){C.utils.setText(5,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,A,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,A,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(8,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initTags(){return C.utils.initStructAt(8,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},bt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(5,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initParameters(t){return C.utils.initList(5,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(6,j,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initReturn(){return C.utils.initStructAt(6,j,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,k,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,k,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},xt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},St=class e extends C.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new C.ObjectSize(8,4)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},Ct=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},wt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Tt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,j,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,j,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Et=class e extends C.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptOrigin(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownOrigin(){return C.utils.disown(this.origin)}get origin(){return C.utils.getStruct(4,j,this)}_hasOrigin(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initOrigin(){return C.utils.initStructAt(4,j,this)}set origin(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Dt=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get name(){return C.utils.getText(1,this)}set name(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},Ot=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},kt=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get regex(){return C.utils.getText(1,this)}set regex(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}};const At={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var jt=class extends C.Struct{static SYMBOL=At.SYMBOL;static STRING=At.STRING;static NUMBER=At.NUMBER;static BOOLEAN=At.BOOLEAN;static BIGINT=At.BIGINT;static REGEX=At.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new C.ObjectSize(16,5)};_adoptSymbol(e){C.utils.setUint16(2,0,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownSymbol(){return C.utils.disown(this.symbol)}get symbol(){return C.utils.testWhich(`symbol`,C.utils.getUint16(2,this),0,this),C.utils.getStruct(4,Dt,this)}_hasSymbol(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initSymbol(){return C.utils.setUint16(2,0,this),C.utils.initStructAt(4,Dt,this)}get _isSymbol(){return C.utils.getUint16(2,this)===0}set symbol(e){C.utils.setUint16(2,0,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(2,this),1,this),C.utils.getText(4,this)}get _isString(){return C.utils.getUint16(2,this)===1}set string(e){C.utils.setUint16(2,1,this),C.utils.setText(4,e,this)}get number(){return C.utils.testWhich(`number`,C.utils.getUint16(2,this),2,this),C.utils.getFloat64(8,this)}get _isNumber(){return C.utils.getUint16(2,this)===2}set number(e){C.utils.setUint16(2,2,this),C.utils.setFloat64(8,e,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(2,this),3,this),C.utils.getBit(64,this)}get _isBoolean(){return C.utils.getUint16(2,this)===3}set boolean(e){C.utils.setUint16(2,3,this),C.utils.setBit(64,e,this)}_adoptBigint(e){C.utils.setUint16(2,4,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownBigint(){return C.utils.disown(this.bigint)}get bigint(){return C.utils.testWhich(`bigint`,C.utils.getUint16(2,this),4,this),C.utils.getStruct(4,Ot,this)}_hasBigint(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initBigint(){return C.utils.setUint16(2,4,this),C.utils.initStructAt(4,Ot,this)}get _isBigint(){return C.utils.getUint16(2,this)===4}set bigint(e){C.utils.setUint16(2,4,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptRegex(e){C.utils.setUint16(2,5,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownRegex(){return C.utils.disown(this.regex)}get regex(){return C.utils.testWhich(`regex`,C.utils.getUint16(2,this),5,this),C.utils.getStruct(4,kt,this)}_hasRegex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initRegex(){return C.utils.setUint16(2,5,this),C.utils.initStructAt(4,kt,this)}get _isRegex(){return C.utils.getUint16(2,this)===5}set regex(e){C.utils.setUint16(2,5,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return C.utils.getUint16(2,this)}},Mt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new C.ObjectSize(16,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get literal(){return C.utils.getAs(jt,this)}_initLiteral(){return C.utils.getAs(jt,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Nt=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,M,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,M,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Pt=class extends C.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new C.ObjectSize(8,1)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const F={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var Ft=class extends C.Struct{static SIMPLE=F.SIMPLE;static LITERAL=F.LITERAL;static TEMPLATE_LITERAL=F.TEMPLATE_LITERAL;static PARAMETER=F.PARAMETER;static FUNCTION=F.FUNCTION;static METHOD=F.METHOD;static PROPERTY=F.PROPERTY;static PROMISE=F.PROMISE;static CLASS_TYPE=F.CLASS_TYPE;static ENUM=F.ENUM;static UNION=F.UNION;static INTERSECTION=F.INTERSECTION;static ARRAY=F.ARRAY;static OBJECT_LITERAL=F.OBJECT_LITERAL;static INDEX_SIGNATURE=F.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=F.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=F.METHOD_SIGNATURE;static TYPE_PARAMETER=F.TYPE_PARAMETER;static INFER=F.INFER;static TUPLE=F.TUPLE;static TUPLE_MEMBER=F.TUPLE_MEMBER;static REST=F.REST;static OTHER=F.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new C.ObjectSize(8,1)};_adoptSimple(e){C.utils.setUint16(0,0,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownSimple(){return C.utils.disown(this.simple)}get simple(){return C.utils.testWhich(`simple`,C.utils.getUint16(0,this),0,this),C.utils.getStruct(0,Et,this)}_hasSimple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initSimple(){return C.utils.setUint16(0,0,this),C.utils.initStructAt(0,Et,this)}get _isSimple(){return C.utils.getUint16(0,this)===0}set simple(e){C.utils.setUint16(0,0,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptLiteral(e){C.utils.setUint16(0,1,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownLiteral(){return C.utils.disown(this.literal)}get literal(){return C.utils.testWhich(`literal`,C.utils.getUint16(0,this),1,this),C.utils.getStruct(0,Mt,this)}_hasLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initLiteral(){return C.utils.setUint16(0,1,this),C.utils.initStructAt(0,Mt,this)}get _isLiteral(){return C.utils.getUint16(0,this)===1}set literal(e){C.utils.setUint16(0,1,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTemplateLiteral(e){C.utils.setUint16(0,2,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTemplateLiteral(){return C.utils.disown(this.templateLiteral)}get templateLiteral(){return C.utils.testWhich(`templateLiteral`,C.utils.getUint16(0,this),2,this),C.utils.getStruct(0,Nt,this)}_hasTemplateLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTemplateLiteral(){return C.utils.setUint16(0,2,this),C.utils.initStructAt(0,Nt,this)}get _isTemplateLiteral(){return C.utils.getUint16(0,this)===2}set templateLiteral(e){C.utils.setUint16(0,2,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptParameter(e){C.utils.setUint16(0,3,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownParameter(){return C.utils.disown(this.parameter)}get parameter(){return C.utils.testWhich(`parameter`,C.utils.getUint16(0,this),3,this),C.utils.getStruct(0,P,this)}_hasParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initParameter(){return C.utils.setUint16(0,3,this),C.utils.initStructAt(0,P,this)}get _isParameter(){return C.utils.getUint16(0,this)===3}set parameter(e){C.utils.setUint16(0,3,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptFunction(e){C.utils.setUint16(0,4,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownFunction(){return C.utils.disown(this.function)}get function(){return C.utils.testWhich(`function`,C.utils.getUint16(0,this),4,this),C.utils.getStruct(0,dt,this)}_hasFunction(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initFunction(){return C.utils.setUint16(0,4,this),C.utils.initStructAt(0,dt,this)}get _isFunction(){return C.utils.getUint16(0,this)===4}set function(e){C.utils.setUint16(0,4,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethod(e){C.utils.setUint16(0,5,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethod(){return C.utils.disown(this.method)}get method(){return C.utils.testWhich(`method`,C.utils.getUint16(0,this),5,this),C.utils.getStruct(0,lt,this)}_hasMethod(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethod(){return C.utils.setUint16(0,5,this),C.utils.initStructAt(0,lt,this)}get _isMethod(){return C.utils.getUint16(0,this)===5}set method(e){C.utils.setUint16(0,5,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptProperty(e){C.utils.setUint16(0,6,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownProperty(){return C.utils.disown(this.property)}get property(){return C.utils.testWhich(`property`,C.utils.getUint16(0,this),6,this),C.utils.getStruct(0,ut,this)}_hasProperty(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initProperty(){return C.utils.setUint16(0,6,this),C.utils.initStructAt(0,ut,this)}get _isProperty(){return C.utils.getUint16(0,this)===6}set property(e){C.utils.setUint16(0,6,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPromise(e){C.utils.setUint16(0,7,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPromise(){return C.utils.disown(this.promise)}get promise(){return C.utils.testWhich(`promise`,C.utils.getUint16(0,this),7,this),C.utils.getStruct(0,ft,this)}_hasPromise(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPromise(){return C.utils.setUint16(0,7,this),C.utils.initStructAt(0,ft,this)}get _isPromise(){return C.utils.getUint16(0,this)===7}set promise(e){C.utils.setUint16(0,7,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptClassType(e){C.utils.setUint16(0,8,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownClassType(){return C.utils.disown(this.classType)}get classType(){return C.utils.testWhich(`classType`,C.utils.getUint16(0,this),8,this),C.utils.getStruct(0,N,this)}_hasClassType(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initClassType(){return C.utils.setUint16(0,8,this),C.utils.initStructAt(0,N,this)}get _isClassType(){return C.utils.getUint16(0,this)===8}set classType(e){C.utils.setUint16(0,8,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptEnum(e){C.utils.setUint16(0,9,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownEnum(){return C.utils.disown(this.enum)}get enum(){return C.utils.testWhich(`enum`,C.utils.getUint16(0,this),9,this),C.utils.getStruct(0,mt,this)}_hasEnum(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initEnum(){return C.utils.setUint16(0,9,this),C.utils.initStructAt(0,mt,this)}get _isEnum(){return C.utils.getUint16(0,this)===9}set enum(e){C.utils.setUint16(0,9,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptUnion(e){C.utils.setUint16(0,10,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownUnion(){return C.utils.disown(this.union)}get union(){return C.utils.testWhich(`union`,C.utils.getUint16(0,this),10,this),C.utils.getStruct(0,ht,this)}_hasUnion(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initUnion(){return C.utils.setUint16(0,10,this),C.utils.initStructAt(0,ht,this)}get _isUnion(){return C.utils.getUint16(0,this)===10}set union(e){C.utils.setUint16(0,10,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIntersection(e){C.utils.setUint16(0,11,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIntersection(){return C.utils.disown(this.intersection)}get intersection(){return C.utils.testWhich(`intersection`,C.utils.getUint16(0,this),11,this),C.utils.getStruct(0,gt,this)}_hasIntersection(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIntersection(){return C.utils.setUint16(0,11,this),C.utils.initStructAt(0,gt,this)}get _isIntersection(){return C.utils.getUint16(0,this)===11}set intersection(e){C.utils.setUint16(0,11,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptArray(e){C.utils.setUint16(0,12,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownArray(){return C.utils.disown(this.array)}get array(){return C.utils.testWhich(`array`,C.utils.getUint16(0,this),12,this),C.utils.getStruct(0,_t,this)}_hasArray(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initArray(){return C.utils.setUint16(0,12,this),C.utils.initStructAt(0,_t,this)}get _isArray(){return C.utils.getUint16(0,this)===12}set array(e){C.utils.setUint16(0,12,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptObjectLiteral(e){C.utils.setUint16(0,13,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownObjectLiteral(){return C.utils.disown(this.objectLiteral)}get objectLiteral(){return C.utils.testWhich(`objectLiteral`,C.utils.getUint16(0,this),13,this),C.utils.getStruct(0,ct,this)}_hasObjectLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initObjectLiteral(){return C.utils.setUint16(0,13,this),C.utils.initStructAt(0,ct,this)}get _isObjectLiteral(){return C.utils.getUint16(0,this)===13}set objectLiteral(e){C.utils.setUint16(0,13,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndexSignature(e){C.utils.setUint16(0,14,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIndexSignature(){return C.utils.disown(this.indexSignature)}get indexSignature(){return C.utils.testWhich(`indexSignature`,C.utils.getUint16(0,this),14,this),C.utils.getStruct(0,vt,this)}_hasIndexSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIndexSignature(){return C.utils.setUint16(0,14,this),C.utils.initStructAt(0,vt,this)}get _isIndexSignature(){return C.utils.getUint16(0,this)===14}set indexSignature(e){C.utils.setUint16(0,14,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPropertySignature(e){C.utils.setUint16(0,15,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPropertySignature(){return C.utils.disown(this.propertySignature)}get propertySignature(){return C.utils.testWhich(`propertySignature`,C.utils.getUint16(0,this),15,this),C.utils.getStruct(0,yt,this)}_hasPropertySignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPropertySignature(){return C.utils.setUint16(0,15,this),C.utils.initStructAt(0,yt,this)}get _isPropertySignature(){return C.utils.getUint16(0,this)===15}set propertySignature(e){C.utils.setUint16(0,15,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethodSignature(e){C.utils.setUint16(0,16,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethodSignature(){return C.utils.disown(this.methodSignature)}get methodSignature(){return C.utils.testWhich(`methodSignature`,C.utils.getUint16(0,this),16,this),C.utils.getStruct(0,bt,this)}_hasMethodSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethodSignature(){return C.utils.setUint16(0,16,this),C.utils.initStructAt(0,bt,this)}get _isMethodSignature(){return C.utils.getUint16(0,this)===16}set methodSignature(e){C.utils.setUint16(0,16,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTypeParameter(e){C.utils.setUint16(0,17,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypeParameter(){return C.utils.disown(this.typeParameter)}get typeParameter(){return C.utils.testWhich(`typeParameter`,C.utils.getUint16(0,this),17,this),C.utils.getStruct(0,xt,this)}_hasTypeParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypeParameter(){return C.utils.setUint16(0,17,this),C.utils.initStructAt(0,xt,this)}get _isTypeParameter(){return C.utils.getUint16(0,this)===17}set typeParameter(e){C.utils.setUint16(0,17,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptInfer(e){C.utils.setUint16(0,18,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownInfer(){return C.utils.disown(this.infer)}get infer(){return C.utils.testWhich(`infer`,C.utils.getUint16(0,this),18,this),C.utils.getStruct(0,St,this)}_hasInfer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initInfer(){return C.utils.setUint16(0,18,this),C.utils.initStructAt(0,St,this)}get _isInfer(){return C.utils.getUint16(0,this)===18}set infer(e){C.utils.setUint16(0,18,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTuple(e){C.utils.setUint16(0,19,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTuple(){return C.utils.disown(this.tuple)}get tuple(){return C.utils.testWhich(`tuple`,C.utils.getUint16(0,this),19,this),C.utils.getStruct(0,wt,this)}_hasTuple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTuple(){return C.utils.setUint16(0,19,this),C.utils.initStructAt(0,wt,this)}get _isTuple(){return C.utils.getUint16(0,this)===19}set tuple(e){C.utils.setUint16(0,19,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTupleMember(e){C.utils.setUint16(0,20,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTupleMember(){return C.utils.disown(this.tupleMember)}get tupleMember(){return C.utils.testWhich(`tupleMember`,C.utils.getUint16(0,this),20,this),C.utils.getStruct(0,Ct,this)}_hasTupleMember(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTupleMember(){return C.utils.setUint16(0,20,this),C.utils.initStructAt(0,Ct,this)}get _isTupleMember(){return C.utils.getUint16(0,this)===20}set tupleMember(e){C.utils.setUint16(0,20,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptRest(e){C.utils.setUint16(0,21,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownRest(){return C.utils.disown(this.rest)}get rest(){return C.utils.testWhich(`rest`,C.utils.getUint16(0,this),21,this),C.utils.getStruct(0,Tt,this)}_hasRest(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initRest(){return C.utils.setUint16(0,21,this),C.utils.initStructAt(0,Tt,this)}get _isRest(){return C.utils.getUint16(0,this)===21}set rest(e){C.utils.setUint16(0,21,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptOther(e){C.utils.setUint16(0,22,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownOther(){return C.utils.disown(this.other)}get other(){return C.utils.testWhich(`other`,C.utils.getUint16(0,this),22,this),C.utils.getStruct(0,Pt,this)}_hasOther(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initOther(){return C.utils.setUint16(0,22,this),C.utils.initStructAt(0,Pt,this)}get _isOther(){return C.utils.getUint16(0,this)===22}set other(e){C.utils.setUint16(0,22,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return C.utils.getUint16(0,this)}},It=class extends C.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new C.ObjectSize(8,1)};get type(){return C.utils.getAs(Ft,this)}_initType(){return C.utils.getAs(Ft,this)}toString(){return`SerializedType_`+super.toString()}},Lt=class e extends C.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new C.ObjectSize(0,1)};_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(0,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypes(t){return C.utils.initList(0,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};st._Indexes=C.CompositeList(ot),ct._TypeArguments=C.CompositeList(j),ct._Decorators=C.CompositeList(j),ct._Types=C.CompositeList(j),N._TypeArguments=C.CompositeList(j),N._Decorators=C.CompositeList(j),N._ExtendsArguments=C.CompositeList(j),N._Arguments=C.CompositeList(j),N._Types=C.CompositeList(j),P._TypeArguments=C.CompositeList(j),P._Decorators=C.CompositeList(j),lt._TypeArguments=C.CompositeList(j),lt._Decorators=C.CompositeList(j),lt._Parameters=C.CompositeList(P),ut._TypeArguments=C.CompositeList(j),ut._Decorators=C.CompositeList(j),dt._TypeArguments=C.CompositeList(j),dt._Decorators=C.CompositeList(j),dt._Parameters=C.CompositeList(P),ft._TypeArguments=C.CompositeList(j),ft._Decorators=C.CompositeList(j),mt._TypeArguments=C.CompositeList(j),mt._Decorators=C.CompositeList(j),mt._EnumEntries=C.CompositeList(pt),ht._TypeArguments=C.CompositeList(j),ht._Decorators=C.CompositeList(j),ht._Types=C.CompositeList(j),gt._TypeArguments=C.CompositeList(j),gt._Decorators=C.CompositeList(j),gt._Types=C.CompositeList(j),_t._TypeArguments=C.CompositeList(j),_t._Decorators=C.CompositeList(j),vt._TypeArguments=C.CompositeList(j),vt._Decorators=C.CompositeList(j),yt._TypeArguments=C.CompositeList(j),yt._Decorators=C.CompositeList(j),bt._TypeArguments=C.CompositeList(j),bt._Decorators=C.CompositeList(j),bt._Parameters=C.CompositeList(P),xt._TypeArguments=C.CompositeList(j),xt._Decorators=C.CompositeList(j),St._TypeArguments=C.CompositeList(j),St._Decorators=C.CompositeList(j),Ct._TypeArguments=C.CompositeList(j),Ct._Decorators=C.CompositeList(j),wt._TypeArguments=C.CompositeList(j),wt._Decorators=C.CompositeList(j),wt._Types=C.CompositeList(Ct),Tt._TypeArguments=C.CompositeList(j),Tt._Decorators=C.CompositeList(j),Et._TypeArguments=C.CompositeList(j),Et._Decorators=C.CompositeList(j),Mt._TypeArguments=C.CompositeList(j),Mt._Decorators=C.CompositeList(j),Nt._TypeArguments=C.CompositeList(j),Nt._Decorators=C.CompositeList(j),Nt._Types=C.CompositeList(j),Lt._Types=C.CompositeList(It);function Rt(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,ge.isSetObject)(e)&&!(0,ge.isUndefined)(e.kind)).forEach((e,n)=>{Bt(e,t.get(n)._initType())}),t}function zt(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=Vt(e.type);t.push(n)}),t}function I(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function L(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function R(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function z(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function Bt(e,t){return e.kind===D.ReflectionKind.objectLiteral?Cn(e,t._initObjectLiteral()):e.kind===D.ReflectionKind.class?xn(e,t._initClassType()):e.kind===D.ReflectionKind.parameter?Tn(e,t._initParameter()):e.kind===D.ReflectionKind.function?_n(e,t._initFunction()):e.kind===D.ReflectionKind.method?vn(e,t._initMethod()):e.kind===D.ReflectionKind.infer?hn(e,t._initInfer()):e.kind===D.ReflectionKind.union?pn(e,t._initUnion()):e.kind===D.ReflectionKind.array?dn(e,t._initArray()):e.kind===D.ReflectionKind.intersection?ln(e,t._initIntersection()):e.kind===D.ReflectionKind.enum?sn(e,t._initEnum()):e.kind===D.ReflectionKind.property?an(e,t._initProperty()):e.kind===D.ReflectionKind.tuple?nn(e,t._initTuple()):e.kind===D.ReflectionKind.tupleMember?en(e,t._initTupleMember()):e.kind===D.ReflectionKind.propertySignature?$t(e,t._initPropertySignature()):e.kind===D.ReflectionKind.methodSignature?Yt(e,t._initMethodSignature()):e.kind===D.ReflectionKind.literal?qt(e,t._initLiteral()):e.kind===D.ReflectionKind.never||e.kind===D.ReflectionKind.any||e.kind===D.ReflectionKind.unknown||e.kind===D.ReflectionKind.void||e.kind===D.ReflectionKind.object||e.kind===D.ReflectionKind.string||e.kind===D.ReflectionKind.number||e.kind===D.ReflectionKind.boolean||e.kind===D.ReflectionKind.symbol||e.kind===D.ReflectionKind.bigint||e.kind===D.ReflectionKind.null||e.kind===D.ReflectionKind.undefined||e.kind===D.ReflectionKind.regexp?Gt(e,t._initSimple()):Wt(e,t._initOther()),t}function Vt(e){if(e._isObjectLiteral)return wn(e.objectLiteral);if(e._isClassType)return Sn(e.classType);if(e._isParameter)return En(e.parameter);if(e._isFunction)return yn(e.function);if(e._isInfer)return gn(e.infer);if(e._isMethod)return bn(e.method);if(e._isUnion)return mn(e.union);if(e._isArray)return fn(e.array);if(e._isIntersection)return un(e.intersection);if(e._isEnum)return cn(e.enum);if(e._isProperty)return on(e.property);if(e._isTuple)return rn(e.tuple);if(e._isTupleMember)return tn(e.tupleMember);if(e._isPropertySignature)return Xt(e.propertySignature);if(e._isMethodSignature)return Jt(e.methodSignature);if(e._isLiteral)return Kt(e.literal);if(e._isSimple)return Ut(e.simple);if(e._isOther)return Ht(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Ht(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Ut(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function Wt(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function Gt(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Kt(e){return{kind:D.ReflectionKind.literal,literal:e.literal._isString?e.literal.string:e.literal._isNumber?e.literal.number:e.literal._isBoolean?e.literal.boolean:e.literal._isBigint?{type:`bigint`,value:e.literal.bigint.value}:e.literal._isSymbol?{type:`symbol`,name:e.literal.symbol.name}:{type:`regex`,regex:e.literal.regex.regex},typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function qt(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Jt(e){return{kind:D.ReflectionKind.methodSignature,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>En(e)):[],return:e.return.id,tags:L(e)}}function Yt(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Xt(e){return{kind:D.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:Qt(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Zt(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?(0,ge.isInteger)(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function Qt(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 $t(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();Zt(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function en(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function tn(e){return{kind:D.ReflectionKind.tupleMember,type:e.type.id,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function nn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{en(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function rn(e){return{kind:D.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>tn(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function an(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===D.ReflectionVisibility.public?O.PUBLIC:e.visibility===D.ReflectionVisibility.protected?O.PROTECTED:O.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();Zt(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function on(e){return{kind:D.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:Qt(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===O.PUBLIC?D.ReflectionVisibility.public:e.visibility===O.PROTECTED?D.ReflectionVisibility.protected:D.ReflectionVisibility.private,abstract:e.abstract?!0:void 0,name:e.name,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function sn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&I(t._initTags(),e.tags),t}function cn(e){return{kind:D.ReflectionKind.enum,typeName:e.typeName||void 0,indexType:e.indexType.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,values:e._hasValues()?e.values.map(e=>e):[],enum:e._hasEnumEntries()?Object.entries(e.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:z(e),tags:L(e)}}function ln(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function un(e){return{kind:D.ReflectionKind.intersection,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function dn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function fn(e){return{kind:D.ReflectionKind.array,typeName:e.typeName||void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function pn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function mn(e){return{kind:D.ReflectionKind.union,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function hn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function gn(e){return{kind:D.ReflectionKind.infer,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function _n(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)=>{Tn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function vn(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,t.abstract=e.abstract??!1,t.visibility=e.visibility===D.ReflectionVisibility.public?O.PUBLIC:e.visibility===D.ReflectionVisibility.protected?O.PROTECTED:O.PRIVATE,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{Tn(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function yn(e){return{kind:D.ReflectionKind.function,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>En(e)):[],return:e.return.id,indexAccessOrigin:z(e),tags:L(e)}}function bn(e){return{kind:D.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===O.PUBLIC?D.ReflectionVisibility.public:e.visibility===O.PROTECTED?D.ReflectionVisibility.protected:D.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>En(e)):[]}}function xn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Sn(e){return{kind:D.ReflectionKind.class,typeName:e.typeName||void 0,classType:e.classType,globalObject:e.globalObject?!0:void 0,arguments:e._hasArguments()?e.arguments.map(e=>e.id):void 0,extendsArguments:e._hasExtendsArguments()?e.extendsArguments.map(e=>e.id):void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,superClass:e._hasSuperClass()?e.superClass.id:void 0,indexAccessOrigin:z(e),tags:L(e)}}function Cn(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function wn(e){return{kind:D.ReflectionKind.objectLiteral,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Tn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.name=e.name||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===D.ReflectionVisibility.public?O.PUBLIC:e.visibility===D.ReflectionVisibility.protected?O.PROTECTED:O.PRIVATE,e.default!==void 0){let n=t._initDefault();Zt(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function En(e){return{kind:D.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:Qt(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===O.PUBLIC?D.ReflectionVisibility.public:e.visibility===O.PROTECTED?D.ReflectionVisibility.protected:D.ReflectionVisibility.private,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}var Dn=Object.defineProperty,B=(e,t)=>Dn(e,`name`,{value:t,configurable:!0}),V=class extends C.Struct{static{B(this,`TagsReflection`)}static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new C.ObjectSize(8,4)};_adoptAlias(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownAlias(){return C.utils.disown(this.alias)}get alias(){return C.utils.getList(0,C.TextList,this)}_hasAlias(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initAlias(e){return C.utils.initList(0,C.TextList,e,this)}set alias(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get title(){return C.utils.getText(1,this)}set title(e){C.utils.setText(1,e,this)}get hidden(){return C.utils.getBit(0,this)}set hidden(e){C.utils.setBit(0,e,this)}get readonly(){return C.utils.getBit(1,this)}set readonly(e){C.utils.setBit(1,e,this)}get ignore(){return C.utils.getBit(2,this)}set ignore(e){C.utils.setBit(2,e,this)}get internal(){return C.utils.getBit(3,this)}set internal(e){C.utils.setBit(3,e,this)}_adoptPermission(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownPermission(){return C.utils.disown(this.permission)}get permission(){return C.utils.getList(2,C.TextList,this)}_hasPermission(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initPermission(e){return C.utils.initList(2,C.TextList,e,this)}set permission(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}get domain(){return C.utils.getText(3,this)}set domain(e){C.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}},On={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},kn=class extends C.Struct{static{B(this,`DefaultValueReflection_Value`)}static UNDEFINED=On.UNDEFINED;static BOOLEAN=On.BOOLEAN;static INTEGER=On.INTEGER;static FLOAT=On.FLOAT;static STRING=On.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new C.ObjectSize(16,1)};get _isUndefined(){return C.utils.getUint16(0,this)===0}set undefined(e){C.utils.setUint16(0,0,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(0,this),1,this),C.utils.getBit(16,this)}get _isBoolean(){return C.utils.getUint16(0,this)===1}set boolean(e){C.utils.setUint16(0,1,this),C.utils.setBit(16,e,this)}get integer(){return C.utils.testWhich(`integer`,C.utils.getUint16(0,this),2,this),C.utils.getInt32(4,this)}get _isInteger(){return C.utils.getUint16(0,this)===2}set integer(e){C.utils.setUint16(0,2,this),C.utils.setInt32(4,e,this)}get float(){return C.utils.testWhich(`float`,C.utils.getUint16(0,this),3,this),C.utils.getFloat64(8,this)}get _isFloat(){return C.utils.getUint16(0,this)===3}set float(e){C.utils.setUint16(0,3,this),C.utils.setFloat64(8,e,this)}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(0,this),4,this),C.utils.getText(0,this)}get _isString(){return C.utils.getUint16(0,this)===4}set string(e){C.utils.setUint16(0,4,this),C.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return C.utils.getUint16(0,this)}},An=class extends C.Struct{static{B(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new C.ObjectSize(16,1)};get value(){return C.utils.getAs(kn,this)}_initValue(){return C.utils.getAs(kn,this)}toString(){return`DefaultValueReflection_`+super.toString()}},H=class extends C.Struct{static{B(this,`SerializedTypeReference`)}static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new C.ObjectSize(8,0)};get id(){return C.utils.getUint32(0,this)}set id(e){C.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},U=class extends C.Struct{static{B(this,`IndexAccessOrigin`)}static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new C.ObjectSize(0,2)};_adoptContainer(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownContainer(){return C.utils.disown(this.container)}get container(){return C.utils.getStruct(0,H,this)}_hasContainer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initContainer(){return C.utils.initStructAt(0,H,this)}set container(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(1,H,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initIndex(){return C.utils.initStructAt(1,H,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},jn=class extends C.Struct{static{B(this,`EntityOptions_EntityIndexOptions`)}static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new C.ObjectSize(0,2)};_adoptNames(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownNames(){return C.utils.disown(this.names)}get names(){return C.utils.getList(0,C.TextList,this)}_hasNames(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initNames(e){return C.utils.initList(0,C.TextList,e,this)}set names(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get options(){return C.utils.getText(1,this)}set options(e){C.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},Mn=class e extends C.Struct{static{B(this,`EntityOptions`)}static EntityIndexOptions=jn;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new C.ObjectSize(8,5)};static _Indexes;get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get description(){return C.utils.getText(1,this)}set description(e){C.utils.setText(1,e,this)}get collection(){return C.utils.getText(2,this)}set collection(e){C.utils.setText(2,e,this)}get database(){return C.utils.getText(3,this)}set database(e){C.utils.setText(3,e,this)}get singleTableInheritance(){return C.utils.getBit(0,this)}set singleTableInheritance(e){C.utils.setBit(0,e,this)}_adoptIndexes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndexes(){return C.utils.disown(this.indexes)}get indexes(){return C.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndexes(t){return C.utils.initList(4,e._Indexes,t,this)}set indexes(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},Nn=class e extends C.Struct{static{B(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},W=class e extends C.Struct{static{B(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new C.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get globalObject(){return C.utils.getBit(16,this)}set globalObject(e){C.utils.setBit(16,e,this)}get classType(){return C.utils.getText(5,this)}set classType(e){C.utils.setText(5,e,this)}_adoptExtendsArguments(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownExtendsArguments(){return C.utils.disown(this.extendsArguments)}get extendsArguments(){return C.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initExtendsArguments(t){return C.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptArguments(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownArguments(){return C.utils.disown(this.arguments)}get arguments(){return C.utils.getList(7,e._Arguments,this)}_hasArguments(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initArguments(t){return C.utils.initList(7,e._Arguments,t,this)}set arguments(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptSuperClass(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownSuperClass(){return C.utils.disown(this.superClass)}get superClass(){return C.utils.getStruct(8,H,this)}_hasSuperClass(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initSuperClass(){return C.utils.initStructAt(8,H,this)}set superClass(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(9,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(9,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(9,this))}_initTypes(t){return C.utils.initList(9,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(9,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(10,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(10,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(10,this))}_initTags(){return C.utils.initStructAt(10,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},G=class e extends C.Struct{static{B(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}get visibility(){return C.utils.getUint16(2,this)}set visibility(e){C.utils.setUint16(2,e,this)}get readonly(){return C.utils.getBit(32,this)}set readonly(e){C.utils.setBit(32,e,this)}get optional(){return C.utils.getBit(33,this)}set optional(e){C.utils.setBit(33,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,An,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,An,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Pn=class e extends C.Struct{static{B(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,H,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,H,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Fn=class e extends C.Struct{static{B(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new C.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}get description(){return C.utils.getText(6,this)}set description(e){C.utils.setText(6,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(8,An,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initDefault(){return C.utils.initStructAt(8,An,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},In=class e extends C.Struct{static{B(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,H,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,H,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Ln=class e extends C.Struct{static{B(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new C.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},Rn=class extends C.Struct{static{B(this,`SerializedTypeEnumEntry`)}static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new C.ObjectSize(0,2)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},zn=class e extends C.Struct{static{B(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptEnumEntries(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownEnumEntries(){return C.utils.disown(this.enumEntries)}get enumEntries(){return C.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initEnumEntries(t){return C.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptValues(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownValues(){return C.utils.disown(this.values)}get values(){return C.utils.getList(5,C.TextList,this)}_hasValues(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initValues(e){return C.utils.initList(5,C.TextList,e,this)}set values(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptIndexType(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownIndexType(){return C.utils.disown(this.indexType)}get indexType(){return C.utils.getStruct(6,H,this)}_hasIndexType(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initIndexType(){return C.utils.initStructAt(6,H,this)}set indexType(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},Bn=class e extends C.Struct{static{B(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},Vn=class e extends C.Struct{static{B(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},Hn=class e extends C.Struct{static{B(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Un=class e extends C.Struct{static{B(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(4,H,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndex(){return C.utils.initStructAt(4,H,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},Wn=class e extends C.Struct{static{B(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new C.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get readonly(){return C.utils.getBit(17,this)}set readonly(e){C.utils.setBit(17,e,this)}get description(){return C.utils.getText(5,this)}set description(e){C.utils.setText(5,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,An,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,An,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(8,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initTags(){return C.utils.initStructAt(8,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Gn=class e extends C.Struct{static{B(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(5,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initParameters(t){return C.utils.initList(5,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(6,H,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initReturn(){return C.utils.initStructAt(6,H,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Kn=class e extends C.Struct{static{B(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},qn=class e extends C.Struct{static{B(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new C.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},Jn=class e extends C.Struct{static{B(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},Yn=class e extends C.Struct{static{B(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Xn=class e extends C.Struct{static{B(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,H,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,H,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Zn=class e extends C.Struct{static{B(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptOrigin(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownOrigin(){return C.utils.disown(this.origin)}get origin(){return C.utils.getStruct(4,H,this)}_hasOrigin(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initOrigin(){return C.utils.initStructAt(4,H,this)}set origin(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Qn=class extends C.Struct{static{B(this,`SerializedTypeLiteralSymbol`)}static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get name(){return C.utils.getText(1,this)}set name(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},$n=class extends C.Struct{static{B(this,`SerializedTypeLiteralBigInt`)}static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},er=class extends C.Struct{static{B(this,`SerializedTypeLiteralRegex`)}static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get regex(){return C.utils.getText(1,this)}set regex(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}},K={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},tr=class extends C.Struct{static{B(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=K.SYMBOL;static STRING=K.STRING;static NUMBER=K.NUMBER;static BOOLEAN=K.BOOLEAN;static BIGINT=K.BIGINT;static REGEX=K.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new C.ObjectSize(16,5)};_adoptSymbol(e){C.utils.setUint16(2,0,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownSymbol(){return C.utils.disown(this.symbol)}get symbol(){return C.utils.testWhich(`symbol`,C.utils.getUint16(2,this),0,this),C.utils.getStruct(4,Qn,this)}_hasSymbol(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initSymbol(){return C.utils.setUint16(2,0,this),C.utils.initStructAt(4,Qn,this)}get _isSymbol(){return C.utils.getUint16(2,this)===0}set symbol(e){C.utils.setUint16(2,0,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(2,this),1,this),C.utils.getText(4,this)}get _isString(){return C.utils.getUint16(2,this)===1}set string(e){C.utils.setUint16(2,1,this),C.utils.setText(4,e,this)}get number(){return C.utils.testWhich(`number`,C.utils.getUint16(2,this),2,this),C.utils.getFloat64(8,this)}get _isNumber(){return C.utils.getUint16(2,this)===2}set number(e){C.utils.setUint16(2,2,this),C.utils.setFloat64(8,e,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(2,this),3,this),C.utils.getBit(64,this)}get _isBoolean(){return C.utils.getUint16(2,this)===3}set boolean(e){C.utils.setUint16(2,3,this),C.utils.setBit(64,e,this)}_adoptBigint(e){C.utils.setUint16(2,4,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownBigint(){return C.utils.disown(this.bigint)}get bigint(){return C.utils.testWhich(`bigint`,C.utils.getUint16(2,this),4,this),C.utils.getStruct(4,$n,this)}_hasBigint(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initBigint(){return C.utils.setUint16(2,4,this),C.utils.initStructAt(4,$n,this)}get _isBigint(){return C.utils.getUint16(2,this)===4}set bigint(e){C.utils.setUint16(2,4,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptRegex(e){C.utils.setUint16(2,5,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownRegex(){return C.utils.disown(this.regex)}get regex(){return C.utils.testWhich(`regex`,C.utils.getUint16(2,this),5,this),C.utils.getStruct(4,er,this)}_hasRegex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initRegex(){return C.utils.setUint16(2,5,this),C.utils.initStructAt(4,er,this)}get _isRegex(){return C.utils.getUint16(2,this)===5}set regex(e){C.utils.setUint16(2,5,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return C.utils.getUint16(2,this)}},nr=class e extends C.Struct{static{B(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new C.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get literal(){return C.utils.getAs(tr,this)}_initLiteral(){return C.utils.getAs(tr,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},rr=class e extends C.Struct{static{B(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,U,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,U,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},ir=class extends C.Struct{static{B(this,`SerializedTypeOther`)}static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new C.ObjectSize(8,1)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}},q={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},ar=class extends C.Struct{static{B(this,`SerializedType_Type`)}static SIMPLE=q.SIMPLE;static LITERAL=q.LITERAL;static TEMPLATE_LITERAL=q.TEMPLATE_LITERAL;static PARAMETER=q.PARAMETER;static FUNCTION=q.FUNCTION;static METHOD=q.METHOD;static PROPERTY=q.PROPERTY;static PROMISE=q.PROMISE;static CLASS_TYPE=q.CLASS_TYPE;static ENUM=q.ENUM;static UNION=q.UNION;static INTERSECTION=q.INTERSECTION;static ARRAY=q.ARRAY;static OBJECT_LITERAL=q.OBJECT_LITERAL;static INDEX_SIGNATURE=q.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=q.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=q.METHOD_SIGNATURE;static TYPE_PARAMETER=q.TYPE_PARAMETER;static INFER=q.INFER;static TUPLE=q.TUPLE;static TUPLE_MEMBER=q.TUPLE_MEMBER;static REST=q.REST;static OTHER=q.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new C.ObjectSize(8,1)};_adoptSimple(e){C.utils.setUint16(0,0,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownSimple(){return C.utils.disown(this.simple)}get simple(){return C.utils.testWhich(`simple`,C.utils.getUint16(0,this),0,this),C.utils.getStruct(0,Zn,this)}_hasSimple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initSimple(){return C.utils.setUint16(0,0,this),C.utils.initStructAt(0,Zn,this)}get _isSimple(){return C.utils.getUint16(0,this)===0}set simple(e){C.utils.setUint16(0,0,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptLiteral(e){C.utils.setUint16(0,1,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownLiteral(){return C.utils.disown(this.literal)}get literal(){return C.utils.testWhich(`literal`,C.utils.getUint16(0,this),1,this),C.utils.getStruct(0,nr,this)}_hasLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initLiteral(){return C.utils.setUint16(0,1,this),C.utils.initStructAt(0,nr,this)}get _isLiteral(){return C.utils.getUint16(0,this)===1}set literal(e){C.utils.setUint16(0,1,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTemplateLiteral(e){C.utils.setUint16(0,2,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTemplateLiteral(){return C.utils.disown(this.templateLiteral)}get templateLiteral(){return C.utils.testWhich(`templateLiteral`,C.utils.getUint16(0,this),2,this),C.utils.getStruct(0,rr,this)}_hasTemplateLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTemplateLiteral(){return C.utils.setUint16(0,2,this),C.utils.initStructAt(0,rr,this)}get _isTemplateLiteral(){return C.utils.getUint16(0,this)===2}set templateLiteral(e){C.utils.setUint16(0,2,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptParameter(e){C.utils.setUint16(0,3,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownParameter(){return C.utils.disown(this.parameter)}get parameter(){return C.utils.testWhich(`parameter`,C.utils.getUint16(0,this),3,this),C.utils.getStruct(0,G,this)}_hasParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initParameter(){return C.utils.setUint16(0,3,this),C.utils.initStructAt(0,G,this)}get _isParameter(){return C.utils.getUint16(0,this)===3}set parameter(e){C.utils.setUint16(0,3,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptFunction(e){C.utils.setUint16(0,4,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownFunction(){return C.utils.disown(this.function)}get function(){return C.utils.testWhich(`function`,C.utils.getUint16(0,this),4,this),C.utils.getStruct(0,In,this)}_hasFunction(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initFunction(){return C.utils.setUint16(0,4,this),C.utils.initStructAt(0,In,this)}get _isFunction(){return C.utils.getUint16(0,this)===4}set function(e){C.utils.setUint16(0,4,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethod(e){C.utils.setUint16(0,5,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethod(){return C.utils.disown(this.method)}get method(){return C.utils.testWhich(`method`,C.utils.getUint16(0,this),5,this),C.utils.getStruct(0,Pn,this)}_hasMethod(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethod(){return C.utils.setUint16(0,5,this),C.utils.initStructAt(0,Pn,this)}get _isMethod(){return C.utils.getUint16(0,this)===5}set method(e){C.utils.setUint16(0,5,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptProperty(e){C.utils.setUint16(0,6,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownProperty(){return C.utils.disown(this.property)}get property(){return C.utils.testWhich(`property`,C.utils.getUint16(0,this),6,this),C.utils.getStruct(0,Fn,this)}_hasProperty(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initProperty(){return C.utils.setUint16(0,6,this),C.utils.initStructAt(0,Fn,this)}get _isProperty(){return C.utils.getUint16(0,this)===6}set property(e){C.utils.setUint16(0,6,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPromise(e){C.utils.setUint16(0,7,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPromise(){return C.utils.disown(this.promise)}get promise(){return C.utils.testWhich(`promise`,C.utils.getUint16(0,this),7,this),C.utils.getStruct(0,Ln,this)}_hasPromise(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPromise(){return C.utils.setUint16(0,7,this),C.utils.initStructAt(0,Ln,this)}get _isPromise(){return C.utils.getUint16(0,this)===7}set promise(e){C.utils.setUint16(0,7,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptClassType(e){C.utils.setUint16(0,8,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownClassType(){return C.utils.disown(this.classType)}get classType(){return C.utils.testWhich(`classType`,C.utils.getUint16(0,this),8,this),C.utils.getStruct(0,W,this)}_hasClassType(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initClassType(){return C.utils.setUint16(0,8,this),C.utils.initStructAt(0,W,this)}get _isClassType(){return C.utils.getUint16(0,this)===8}set classType(e){C.utils.setUint16(0,8,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptEnum(e){C.utils.setUint16(0,9,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownEnum(){return C.utils.disown(this.enum)}get enum(){return C.utils.testWhich(`enum`,C.utils.getUint16(0,this),9,this),C.utils.getStruct(0,zn,this)}_hasEnum(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initEnum(){return C.utils.setUint16(0,9,this),C.utils.initStructAt(0,zn,this)}get _isEnum(){return C.utils.getUint16(0,this)===9}set enum(e){C.utils.setUint16(0,9,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptUnion(e){C.utils.setUint16(0,10,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownUnion(){return C.utils.disown(this.union)}get union(){return C.utils.testWhich(`union`,C.utils.getUint16(0,this),10,this),C.utils.getStruct(0,Bn,this)}_hasUnion(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initUnion(){return C.utils.setUint16(0,10,this),C.utils.initStructAt(0,Bn,this)}get _isUnion(){return C.utils.getUint16(0,this)===10}set union(e){C.utils.setUint16(0,10,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIntersection(e){C.utils.setUint16(0,11,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIntersection(){return C.utils.disown(this.intersection)}get intersection(){return C.utils.testWhich(`intersection`,C.utils.getUint16(0,this),11,this),C.utils.getStruct(0,Vn,this)}_hasIntersection(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIntersection(){return C.utils.setUint16(0,11,this),C.utils.initStructAt(0,Vn,this)}get _isIntersection(){return C.utils.getUint16(0,this)===11}set intersection(e){C.utils.setUint16(0,11,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptArray(e){C.utils.setUint16(0,12,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownArray(){return C.utils.disown(this.array)}get array(){return C.utils.testWhich(`array`,C.utils.getUint16(0,this),12,this),C.utils.getStruct(0,Hn,this)}_hasArray(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initArray(){return C.utils.setUint16(0,12,this),C.utils.initStructAt(0,Hn,this)}get _isArray(){return C.utils.getUint16(0,this)===12}set array(e){C.utils.setUint16(0,12,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptObjectLiteral(e){C.utils.setUint16(0,13,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownObjectLiteral(){return C.utils.disown(this.objectLiteral)}get objectLiteral(){return C.utils.testWhich(`objectLiteral`,C.utils.getUint16(0,this),13,this),C.utils.getStruct(0,Nn,this)}_hasObjectLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initObjectLiteral(){return C.utils.setUint16(0,13,this),C.utils.initStructAt(0,Nn,this)}get _isObjectLiteral(){return C.utils.getUint16(0,this)===13}set objectLiteral(e){C.utils.setUint16(0,13,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndexSignature(e){C.utils.setUint16(0,14,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIndexSignature(){return C.utils.disown(this.indexSignature)}get indexSignature(){return C.utils.testWhich(`indexSignature`,C.utils.getUint16(0,this),14,this),C.utils.getStruct(0,Un,this)}_hasIndexSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIndexSignature(){return C.utils.setUint16(0,14,this),C.utils.initStructAt(0,Un,this)}get _isIndexSignature(){return C.utils.getUint16(0,this)===14}set indexSignature(e){C.utils.setUint16(0,14,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPropertySignature(e){C.utils.setUint16(0,15,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPropertySignature(){return C.utils.disown(this.propertySignature)}get propertySignature(){return C.utils.testWhich(`propertySignature`,C.utils.getUint16(0,this),15,this),C.utils.getStruct(0,Wn,this)}_hasPropertySignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPropertySignature(){return C.utils.setUint16(0,15,this),C.utils.initStructAt(0,Wn,this)}get _isPropertySignature(){return C.utils.getUint16(0,this)===15}set propertySignature(e){C.utils.setUint16(0,15,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethodSignature(e){C.utils.setUint16(0,16,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethodSignature(){return C.utils.disown(this.methodSignature)}get methodSignature(){return C.utils.testWhich(`methodSignature`,C.utils.getUint16(0,this),16,this),C.utils.getStruct(0,Gn,this)}_hasMethodSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethodSignature(){return C.utils.setUint16(0,16,this),C.utils.initStructAt(0,Gn,this)}get _isMethodSignature(){return C.utils.getUint16(0,this)===16}set methodSignature(e){C.utils.setUint16(0,16,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTypeParameter(e){C.utils.setUint16(0,17,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypeParameter(){return C.utils.disown(this.typeParameter)}get typeParameter(){return C.utils.testWhich(`typeParameter`,C.utils.getUint16(0,this),17,this),C.utils.getStruct(0,Kn,this)}_hasTypeParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypeParameter(){return C.utils.setUint16(0,17,this),C.utils.initStructAt(0,Kn,this)}get _isTypeParameter(){return C.utils.getUint16(0,this)===17}set typeParameter(e){C.utils.setUint16(0,17,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptInfer(e){C.utils.setUint16(0,18,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownInfer(){return C.utils.disown(this.infer)}get infer(){return C.utils.testWhich(`infer`,C.utils.getUint16(0,this),18,this),C.utils.getStruct(0,qn,this)}_hasInfer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initInfer(){return C.utils.setUint16(0,18,this),C.utils.initStructAt(0,qn,this)}get _isInfer(){return C.utils.getUint16(0,this)===18}set infer(e){C.utils.setUint16(0,18,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTuple(e){C.utils.setUint16(0,19,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTuple(){return C.utils.disown(this.tuple)}get tuple(){return C.utils.testWhich(`tuple`,C.utils.getUint16(0,this),19,this),C.utils.getStruct(0,Yn,this)}_hasTuple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTuple(){return C.utils.setUint16(0,19,this),C.utils.initStructAt(0,Yn,this)}get _isTuple(){return C.utils.getUint16(0,this)===19}set tuple(e){C.utils.setUint16(0,19,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTupleMember(e){C.utils.setUint16(0,20,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTupleMember(){return C.utils.disown(this.tupleMember)}get tupleMember(){return C.utils.testWhich(`tupleMember`,C.utils.getUint16(0,this),20,this),C.utils.getStruct(0,Jn,this)}_hasTupleMember(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTupleMember(){return C.utils.setUint16(0,20,this),C.utils.initStructAt(0,Jn,this)}get _isTupleMember(){return C.utils.getUint16(0,this)===20}set tupleMember(e){C.utils.setUint16(0,20,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptRest(e){C.utils.setUint16(0,21,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownRest(){return C.utils.disown(this.rest)}get rest(){return C.utils.testWhich(`rest`,C.utils.getUint16(0,this),21,this),C.utils.getStruct(0,Xn,this)}_hasRest(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initRest(){return C.utils.setUint16(0,21,this),C.utils.initStructAt(0,Xn,this)}get _isRest(){return C.utils.getUint16(0,this)===21}set rest(e){C.utils.setUint16(0,21,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptOther(e){C.utils.setUint16(0,22,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownOther(){return C.utils.disown(this.other)}get other(){return C.utils.testWhich(`other`,C.utils.getUint16(0,this),22,this),C.utils.getStruct(0,ir,this)}_hasOther(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initOther(){return C.utils.setUint16(0,22,this),C.utils.initStructAt(0,ir,this)}get _isOther(){return C.utils.getUint16(0,this)===22}set other(e){C.utils.setUint16(0,22,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return C.utils.getUint16(0,this)}},or=class extends C.Struct{static{B(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new C.ObjectSize(8,1)};get type(){return C.utils.getAs(ar,this)}_initType(){return C.utils.getAs(ar,this)}toString(){return`SerializedType_`+super.toString()}},J=class e extends C.Struct{static{B(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new C.ObjectSize(0,1)};static _Types;_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(0,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypes(t){return C.utils.initList(0,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};Mn._Indexes=C.CompositeList(jn),Nn._TypeArguments=C.CompositeList(H),Nn._Decorators=C.CompositeList(H),Nn._Types=C.CompositeList(H),W._TypeArguments=C.CompositeList(H),W._Decorators=C.CompositeList(H),W._ExtendsArguments=C.CompositeList(H),W._Arguments=C.CompositeList(H),W._Types=C.CompositeList(H),G._TypeArguments=C.CompositeList(H),G._Decorators=C.CompositeList(H),Pn._TypeArguments=C.CompositeList(H),Pn._Decorators=C.CompositeList(H),Pn._Parameters=C.CompositeList(G),Fn._TypeArguments=C.CompositeList(H),Fn._Decorators=C.CompositeList(H),In._TypeArguments=C.CompositeList(H),In._Decorators=C.CompositeList(H),In._Parameters=C.CompositeList(G),Ln._TypeArguments=C.CompositeList(H),Ln._Decorators=C.CompositeList(H),zn._TypeArguments=C.CompositeList(H),zn._Decorators=C.CompositeList(H),zn._EnumEntries=C.CompositeList(Rn),Bn._TypeArguments=C.CompositeList(H),Bn._Decorators=C.CompositeList(H),Bn._Types=C.CompositeList(H),Vn._TypeArguments=C.CompositeList(H),Vn._Decorators=C.CompositeList(H),Vn._Types=C.CompositeList(H),Hn._TypeArguments=C.CompositeList(H),Hn._Decorators=C.CompositeList(H),Un._TypeArguments=C.CompositeList(H),Un._Decorators=C.CompositeList(H),Wn._TypeArguments=C.CompositeList(H),Wn._Decorators=C.CompositeList(H),Gn._TypeArguments=C.CompositeList(H),Gn._Decorators=C.CompositeList(H),Gn._Parameters=C.CompositeList(G),Kn._TypeArguments=C.CompositeList(H),Kn._Decorators=C.CompositeList(H),qn._TypeArguments=C.CompositeList(H),qn._Decorators=C.CompositeList(H),Jn._TypeArguments=C.CompositeList(H),Jn._Decorators=C.CompositeList(H),Yn._TypeArguments=C.CompositeList(H),Yn._Decorators=C.CompositeList(H),Yn._Types=C.CompositeList(Jn),Xn._TypeArguments=C.CompositeList(H),Xn._Decorators=C.CompositeList(H),Zn._TypeArguments=C.CompositeList(H),Zn._Decorators=C.CompositeList(H),nr._TypeArguments=C.CompositeList(H),nr._Decorators=C.CompositeList(H),rr._TypeArguments=C.CompositeList(H),rr._Decorators=C.CompositeList(H),rr._Types=C.CompositeList(H),J._Types=C.CompositeList(or);function sr(e,t){return lr(e.type,t??e.getDefaultValue())}function cr(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function lr(e,t){return(0,_.isUndefined)(t)?`undefined`:(0,ye.isNull)(t)?`null`:e.kind===D.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===D.ReflectionKind.string||e.kind===D.ReflectionKind.literal&&(0,S.isString)(e.literal)?cr(t):e.kind===D.ReflectionKind.enum?ur(e).kind===D.ReflectionKind.string?cr(t):`${String(t)}`:e.kind===D.ReflectionKind.union?fr(e)?cr(t):`${String(t)}`:e.kind===D.ReflectionKind.array?cr(ve.StormJSON.stringify(t)):e.kind===D.ReflectionKind.object||e.kind===D.ReflectionKind.objectLiteral?ve.StormJSON.stringify(t):e.kind===D.ReflectionKind.property||e.kind===D.ReflectionKind.parameter?lr(e.type,t):String(t)}function ur(e){if(e.kind!==D.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=(0,_e.getUniqueBy)(e.values.filter(e=>e!=null),e=>(0,S.isString)(e)?{kind:D.ReflectionKind.string}:{kind:D.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&(0,S.isString)(t[0])?{kind:D.ReflectionKind.string}:{kind:D.ReflectionKind.number}}function dr(e){if(e.kind===D.ReflectionKind.union&&e.types.length>0)return(0,_e.getUniqueBy)(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function fr(e){return dr(e).some(e=>e.kind===D.ReflectionKind.string||e.kind===D.ReflectionKind.literal&&(0,S.isString)(e.literal))}function pr(e){return(0,w.joinPaths)(e.dataPath,`reflections`)}const mr={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function hr(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync((0,w.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,T.camelCase)(e)!==e){if(t.length===1)return`
|
|
3
|
+
import ${(0,T.camelCase)(e)} from "${t[0]}";
|
|
4
|
+
export { ${(0,T.camelCase)(e)} as "${e}" }`;if(t.length>1)return`
|
|
5
|
+
import ${t[1]===`*`?`* as ${(0,T.camelCase)(e)}`:`{ ${t[1]} as ${(0,T.camelCase)(e)} }`} from "${t[0]}";
|
|
6
|
+
export { ${(0,T.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,T.camelCase)(e)!==e)return`
|
|
11
|
+
import ${(0,T.camelCase)(e)} from "${t[0]}";
|
|
12
|
+
export { ${(0,T.camelCase)(e)} as "${e}" }`;else return`
|
|
13
|
+
import ${e} from "${t}";
|
|
14
|
+
export { ${e} };`;return``}).join(`
|
|
15
|
+
`)),(0,v.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,w.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?(0,Te.omit)(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?(0,Te.omit)(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},mr)}async function gr(e,t,n={}){let r=await e.fs.resolve(t);if(!r||!e.fs.existsSync(r))throw Error(`Module not found: "${t}". Please check the path and try again.`);let i=await(0,we.build)({...hr(e),entry:[r],write:!1,sourcemap:!1,splitting:!1,treeShaking:!1,bundle:!0,...n});if(i.errors.length>0)throw Error(`Failed to transpile ${t}: ${i.errors.map(e=>e.text).join(`, `)}`);if(i.warnings.length>0&&e.log(m.LogLevelLabel.WARN,`Warnings while transpiling ${t}: ${i.warnings.map(e=>e.text).join(`, `)}`),!i.outputFiles||i.outputFiles.filter(Boolean).length===0)throw Error(`No output files generated for ${t}. Please check the configuration and try again.`);return i.outputFiles.filter(Boolean)[0]}async function _r(e,t,n={}){let r;r=(0,h.isSetString)(t)?(0,le.parseTypeDefinition)(t):t;let i=await gr(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),o=r.name;return o||=`default`,a[o]??a[`__Ω${o}`]}async function vr(e,t,n){return(0,D.reflect)(await _r(e,t,n))}function yr(e,t){return Cr(e,{type:(0,D.merge)(t.map(e=>e.type))})}function br(e,t){return wr(e,{type:(0,D.merge)(t.map(e=>e.type))})}var xr=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},Sr=class{};function Cr(e,t={}){let n=t.superReflection??new D.ReflectionClass({kind:D.ReflectionKind.class,description:`The base environment configuration definition for the ${(0,b.titleCase)(e.config.name)} project.`,classType:xr,types:[],implements:[{kind:D.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${(0,b.titleCase)(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new D.ReflectionClass(t.type??{kind:D.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${(0,b.titleCase)(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function wr(e,t={}){let n=t.superReflection??new D.ReflectionClass({kind:D.ReflectionKind.class,description:`The base secrets configuration definition for the ${(0,b.titleCase)(e.config.name)} project.`,classType:Sr,types:[],implements:[{kind:D.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${(0,b.titleCase)(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new D.ReflectionClass(t.type??{kind:D.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${(0,b.titleCase)(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function Tr(e,t,n){let r;t&&(r=(0,D.resolveClassType)(await vr(e,{file:(0,te.isParentPath)(t,e.workspaceConfig.workspaceRoot)?t:(0,w.joinPaths)(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await vr(e,await Or(e));return yr(e,[await Y(e,`env`),r,(0,D.resolveClassType)(i)].filter(Boolean))}async function Er(e,t,n){let r;t&&(r=(0,D.resolveClassType)(await vr(e,{file:(0,te.isParentPath)(t,e.workspaceConfig.workspaceRoot)?t:(0,w.joinPaths)(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await vr(e,await kr(e));return br(e,[await Nr(e),r,(0,D.resolveClassType)(i)].filter(Boolean))}async function Dr(e){return(0,Se.resolvePackage)(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,(0,w.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function Or(e){return{file:await Dr(e),name:`EnvInterface`}}async function kr(e){return{file:await Dr(e),name:`SecretsInterface`}}function Ar(e,t=`env`){return(0,w.joinPaths)(pr(e),`env`,`${t}-types.bin`)}async function Y(e,t=`env`){let n=Ar(e,t);if(!(0,xe.existsSync)(n)){if(!e.env.types.env||(0,Ce.isEmptyObject)(e.env.types.env)){let n=Cr(e),r=new C.Message;n.messageRoot=r.initRoot(J),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await jr(e,e.env.types.env,t)}return e.env.types.env}let r=await(0,be.readFileBuffer)(n),i=new C.Message(r,!1).getRoot(J),a=(0,D.resolveClassType)((0,D.deserializeType)(zt(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function jr(e,t,n=`env`){let r=t.serializeType(),i=new C.Message;Rt(r,i.initRoot(J)._initTypes(r.length)),await(0,be.writeFileBuffer)(Ar(e,n),i.toArrayBuffer())}function X(e,t){return(0,w.joinPaths)(pr(e),`env`,`${t}.bin`)}async function Mr(e){let t=X(e,`env`);if(!(0,xe.existsSync)(t)){if(e.env.types.env||(e.env.types.env=await Y(e,`env`)),!e.env.used.env||(0,Ce.isEmptyObject)(e.env.used.env)){let t=Cr(e,{type:{kind:D.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.env});t.name=`Env`;let n=new C.Message;t.messageRoot=n.initRoot(J),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await Pr(e,e.env.used.env,`env`)}return e.env.used.env}let n=await(0,be.readFileBuffer)(t),r=new C.Message(n,!1).getRoot(J),i=(0,D.resolveClassType)((0,D.deserializeType)(zt(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function Nr(e){let t=X(e,`secrets`);if(!(0,xe.existsSync)(t)){if(e.env.types.secrets||(e.env.types.secrets=await Y(e,`secrets`)),!e.env.used.secrets||(0,Ce.isEmptyObject)(e.env.used.secrets)){let t=Cr(e,{type:{kind:D.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.secrets});t.name=`Secrets`;let n=new C.Message;t.messageRoot=n.initRoot(J),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await Pr(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await(0,be.readFileBuffer)(t),r=new C.Message(n,!1).getRoot(J),i=(0,D.resolveClassType)((0,D.deserializeType)(zt(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function Pr(e,t,n=`env`){let r=t.serializeType(),i=new C.Message;Rt(r,i.initRoot(J)._initTypes(r.length)),await(0,be.writeFileBuffer)(X(e,n),i.toArrayBuffer())}const Fr=Ze(`env`,({log:e,context:t})=>{function n(n,r,i=!1){let a=t.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(n.name){let o=t.config.env.prefix.find(e=>n.name&&n.name.startsWith(e)&&(t.env.types.env?.hasProperty(n.name.replace(`${e}_`,``))||a.some(t=>t.getAlias().includes(n.name.replace(`${e}_`,``))))),s=n.name;if(o&&(s=n.name.replace(`${o}_`,``)),e(m.LogLevelLabel.TRACE,`Environment variable ${s} found in ${r.filename||`unknown file`}.`),t.env.types.env?.hasProperty(s)||a.some(e=>e.getAlias().includes(s))){let e=t.env.types.env.hasProperty(s)?t.env.types.env.getProperty(s):a.find(e=>e.getAlias().includes(s));if(!e||e.isIgnored())return;if(t.env.used.env.hasProperty(s)||t.env.used.env.addProperty(e.property),t.config.env.inject&&i){let n=t.env.parsed?.[s];if(n===void 0){let e=t.config.env.prefix.find(e=>t.env.parsed[`${e.replace(/_$/g,``)}_${s}`]);e&&(n=t.env.parsed[`${e.replace(/_$/g,``)}_${s}`])}if(n??=e.getDefaultValue(),e.isValueRequired()&&n===void 0)throw Error(`Environment variable \`${s}\` is not defined in the .env configuration files`);return sr(e,n)}}else throw Error(`The "${s}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${r.filename?r.filename:`unknown`}.
|
|
6
16
|
|
|
7
|
-
|
|
17
|
+
The following environment configuration names are defined in the \`env\` type definition: \n${t.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${a.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${a?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
|
|
18
|
+
`)} \n\nUsing the following env prefix: \n${t.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 r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Qe(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isCallExpression({callee:{name:`useStorm`,type:`Identifier`}})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Qe(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Qe(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Qe(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(m.LogLevelLabel.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=D.ReflectionClass.from({kind:D.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),r=X(t,`env`);r&&(0,xe.existsSync)(r)&&(e(m.LogLevelLabel.TRACE,`Environment reflection file found at ${r}, reading existing reflection.`),n=(0,D.resolveClassType)((0,D.deserializeType)(zt(new C.Message((0,be.readFileBufferSync)(r),!1).getRoot(J).types)))),e(m.LogLevelLabel.TRACE,`Adding new variables to env reflection at ${r}.`),n.getProperties().filter(e=>e.getNameAsString()&&!t.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{t.env.used.env.addProperty({...e,name:e.getNameAsString(),description:e.getDescription()??`The ${e.getNameAsString()} variable.`,default:e.getDefaultValue(),optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,visibility:e.getVisibility(),type:e.getType(),tags:e.getTags()})})}}});function Ir(...e){return(0,p.refkey)(`powerlines`,...e)}function Z(e){let[{children:t,heading:n}]=(0,p.splitProps)(e,[`children`,`heading`]);return[`/**`,(0,f.createIntrinsic)(`align`,{string:` * `,get children(){return[(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.Show,{get when(){return!(0,_.isUndefined)(n)},get children(){return[n,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!(0,_.isUndefined)(t))()&&(0,p.childrenArray)(()=>t).length>0},get children(){return(0,f.createIntrinsic)(`hbr`,{})}})]}}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!(0,_.isUndefined)(t))()&&(0,p.childrenArray)(()=>t).length>0},get children(){return(0,f.createComponent)(p.List,{get children(){return(0,p.childrenArray)(()=>t)}})}})]}}),(0,f.createIntrinsic)(`hbr`,{}),` */`,(0,f.createIntrinsic)(`hbr`,{})]}function Q(e){let[{children:t,tag:n}]=(0,p.splitProps)(e,[`children`,`tag`]);return[`@${n} `,(0,f.createComponent)(p.Show,{get when(){return!!t},get children(){return(0,f.createIntrinsic)(`align`,{width:2,get children(){return(0,f.createComponent)(p.Prose,{children:t})}})}}),(0,f.createIntrinsic)(`hbr`,{})]}function Lr(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]);return(0,f.createComponent)(Q,(0,f.mergeProps)(n,{tag:`title`,children:t}))}function Rr(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]);return(0,f.createComponent)(Q,(0,f.mergeProps)(n,{tag:`domain`,children:t}))}function zr(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]);return(0,f.createComponent)(Q,(0,f.mergeProps)(n,{tag:`alias`,children:t}))}function Br(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]);return(0,f.createComponent)(Q,(0,f.mergeProps)(n,{tag:`permission`,children:t}))}function Vr(e){return[`@defaultValue `,(0,f.createComponent)(p.Show,{get when(){return!(0,_.isUndefined)(e.value)},get children(){return(0,f.createIntrinsic)(`align`,{width:2,get children(){return(0,f.createComponent)(p.Prose,{get children(){return sr(e.value)}})}})}}),(0,f.createIntrinsic)(`hbr`,{})]}function Hr(e){return[`@remarks `,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.List,{hardline:!0,get children(){return(0,p.childrenArray)(()=>e.children)}})]}function Ur(e){return(0,f.createComponent)(Q,(0,f.mergeProps)(e,{tag:`see`}))}function Wr(e){let[{tsx:t,fenced:n=!0,language:r,children:i}]=(0,p.splitProps)(e,[`tsx`,`fenced`,`language`,`children`]);return[`@example `,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.Show,{when:n,get children(){return["```",r||(t?`tsx`:`ts`),(0,f.createIntrinsic)(`hbr`,{})]}}),i,(0,f.createComponent)(p.Show,{when:n,get children(){return[(0,f.createIntrinsic)(`hbr`,{}),"```"]}})]}function Gr(){return(0,f.createComponent)(Q,{tag:`readonly`})}function Kr(){return(0,f.createComponent)(Q,{tag:`internal`})}function qr(){return(0,f.createComponent)(Q,{tag:`ignore`})}function Jr(){return(0,f.createComponent)(Q,{tag:`hidden`})}function Yr(e){let[{title:t,alias:n,permission:r,domain:i,readonly:a,internal:o,ignore:s,hidden:c,defaultValue:l}]=(0,p.splitProps)(e,[`title`,`alias`,`permission`,`domain`,`readonly`,`internal`,`ignore`,`hidden`,`defaultValue`]);return[(0,f.createComponent)(p.Show,{get when(){return(0,h.isSetString)(t)},get children(){return(0,f.createComponent)(Lr,{children:t})}}),(0,f.createComponent)(p.Show,{get when(){return!(0,_.isUndefined)(n)&&n.length>0},get children(){return(0,f.createComponent)(p.For,{each:n??[],children:e=>(0,f.createComponent)(zr,{children:e})})}}),(0,f.createComponent)(p.Show,{get when(){return(0,h.isSetString)(i)},get children(){return(0,f.createComponent)(Rr,{children:i})}}),(0,f.createComponent)(p.Show,{get when(){return!(0,_.isUndefined)(r)&&r.length>0},get children(){return(0,f.createComponent)(p.For,{each:r??[],children:e=>(0,f.createComponent)(Br,{children:e})})}}),(0,f.createComponent)(p.Show,{when:a===!0,get children(){return(0,f.createComponent)(Gr,{})}}),(0,f.createComponent)(p.Show,{when:o===!0,get children(){return(0,f.createComponent)(Kr,{})}}),(0,f.createComponent)(p.Show,{when:s===!0,get children(){return(0,f.createComponent)(qr,{})}}),(0,f.createComponent)(p.Show,{when:c===!0,get children(){return(0,f.createComponent)(Jr,{})}}),(0,f.createComponent)(p.Show,{get when(){return!(0,_.isUndefined)(l)},get children(){return(0,f.createComponent)(Vr,{value:l})}})]}function Xr(e){return[`@param `,(0,f.createComponent)(Zr,{get name(){return e.name},get optional(){return e.optional},get defaultValue(){return e.defaultValue}}),(0,f.createComponent)(Qr,{get children(){return e.children}})]}function Zr(e){return[(0,f.createComponent)(p.Show,{get when(){return e.optional},children:`[`}),(0,f.memo)(()=>e.name),(0,f.createComponent)(p.Show,{get when(){return!!e.defaultValue},get children(){return[`=`,(0,f.memo)(()=>e.defaultValue)]}}),(0,f.createComponent)(p.Show,{get when(){return e.optional},children:`]`})]}function Qr(e){return(0,f.createComponent)(p.Show,{get when(){return!!e.children},get children(){return[` - `,(0,f.createIntrinsic)(`align`,{width:2,get children(){return(0,f.createComponent)(p.Prose,{get children(){return e.children}})}})]}})}function $r(e){return(0,f.createComponent)(Q,(0,f.mergeProps)(e,{tag:`returns`}))}function ei(e){return(0,f.createComponent)(Q,(0,f.mergeProps)(e,{tag:`throws`}))}function ti(e){let[{children:t,name:n,prefix:r}]=(0,p.splitProps)(e,[`children`,`name`,`prefix`]),i=Re();return[`/**`,(0,f.createIntrinsic)(`align`,{string:` * `,get children(){return[(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.Show,{get when(){return!!t},get children(){return[(0,f.createComponent)(p.List,{hardline:!0,get children(){return(0,p.childrenArray)(()=>t)}}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{})]}}),`@module `,(0,f.memo)(()=>r||i?.config.output.builtinPrefix),`:`,n]}}),(0,f.createIntrinsic)(`hbr`,{}),` */`]}function ni(e){let{variant:t=`double-slash`,children:n}=e,r=t===`slash-star`?`/* `:t===`slash-star-star`?`/** `:t===`triple-slash`?`/// `:t===`markdown`?`<!-- `:`// `;return[r,(0,f.createIntrinsic)(`align`,{string:r,get children(){return[(0,f.createComponent)(p.Prose,{children:n}),t===`slash-star`||t===`slash-star-star`?` */ `:t===`markdown`?` -->`:``]}})]}function ri(e){let[{children:t,meta:n,path:r,header:i,preset:a,filetype:o,reference:s}]=(0,p.splitProps)(e,[`children`,`meta`,`path`,`header`,`preset`,`filetype`,`reference`]),c=(0,p.useContext)(p.SourceDirectoryContext),l={path:(0,Ee.appendPath)(r,c.path),filetype:o,reference:s};c?.addContent(l);let u=(0,p.useFormatOptions)({printWidth:e.printWidth,tabWidth:e.tabWidth,useTabs:e.useTabs,insertFinalNewLine:e.insertFinalNewLine}),d=(0,p.getContext)();return d.meta=(0,v.default)({sourceFile:l,printOptions:u,output:{preset:a}},n??{}),(0,f.createComponent)(p.SourceFileContext.Provider,{value:l,get children(){return[(0,f.createComponent)(p.Show,{when:i!==void 0,get children(){return[i,(0,f.createIntrinsic)(`hbr`,{})]}}),t]}})}function ii(e){let[{children:t,path:n,imports:r,tsx:i,header:a},o]=(0,p.splitProps)(e,[`children`,`path`,`imports`,`tsx`,`header`]),s=(0,p.useContext)(p.SourceDirectoryContext),c=(0,E.getSourceDirectoryData)(s),l=(0,Ee.appendPath)(n,s.path),u=new E.TSModuleScope(l,(0,p.useScope)());c.modules.add(u);let d=(0,p.useContext)(E.PackageContext);return d&&d.scope.addModule(u),e.export&&d&&((0,De.isBoolean)(e.export)?d.scope.addExport(l,u):d.scope.addExport(e.export,u)),(0,f.createComponent)(E.SourceFileContext.Provider,{value:{scope:u},get children(){return(0,f.createComponent)(p.Scope,{value:u,get children(){return(0,f.createComponent)(ri,(0,f.mergeProps)(o,{path:l,get header(){return a??(0,f.createComponent)(ai,{get children(){return(0,f.createComponent)(oi,{imports:r,scope:u})}})},filetype:i?`tsx`:`typescript`,children:t}))}})}})}function ai(e){let{header:t,disableEslint:n=!0,disableBiome:r=!0,disablePrettier:i=!1,children:a}=e;return[(0,f.createComponent)(p.Show,{get when(){return!!t},get children(){return[t,(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.Show,{get when(){return!!n},get children(){return[(0,f.createComponent)(ni,{variant:`slash-star`,children:`eslint-disable`}),(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createComponent)(p.Show,{get when(){return!!i},get children(){return[(0,f.createComponent)(ni,{variant:`slash-star`,children:`prettier-ignore`}),(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createComponent)(p.Show,{get when(){return!!r},get children(){return[(0,f.createComponent)(ni,{children:`biome-ignore lint: disable`}),(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createComponent)(p.Show,{get when(){return!!n||!!i||!!r},get children(){return(0,f.createIntrinsic)(`hbr`,{})}}),(0,f.createComponent)(p.Show,{get when(){return!!a},get children(){return[a,(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createComponent)(ni,{children:p.code`Generated by Powerlines`}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(ni,{children:p.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "storm prepare" command`}),(0,f.createIntrinsic)(`hbr`,{})]}function oi(e){let{imports:t}=e,n=(0,E.useSourceFile)(),r=e.scope??n.scope;return(0,f.createComponent)(p.Show,{get when(){return r.importedModules.size>0||!!t&&Object.keys(t).length>0},get children(){return[(0,f.createComponent)(p.Show,{get when(){return!!t&&Object.keys(t).length>0},get children(){return Object.entries(t??{}).map(([e,t])=>p.code`import ${t===null?``:t.filter(e=>!(0,S.isString)(e)&&e.default).map(e=>e.alias?e.alias:e.name).join(`, `)+(t.filter(e=>!(0,S.isString)(e)&&e.default).length>0&&t.filter(e=>(0,S.isString)(e)||!e.default).length>0?`, `:``)+(t.filter(e=>(0,S.isString)(e)||!e.default).length>0?`{ ${t.map(e=>(0,S.isString)(e)?e:e.alias?`${e.name} as ${e.alias}`:e.name).join(`, `)} }`:``)} from "${e}";`)}}),(0,f.createComponent)(p.Show,{get when(){return r.importedModules.size>0},get children(){return(0,f.createComponent)(E.ImportStatements,{get records(){return r.importedModules}})}}),(0,f.createIntrinsic)(`hbr`,{})]}})}function si(e){let[{children:t,imports:n,id:r,description:i,tsx:a},o]=(0,p.splitProps)(e,[`children`,`imports`,`id`,`description`,`tsx`]);return(0,f.createComponent)(ii,(0,f.mergeProps)({get header(){return(0,f.createComponent)(ai,{get header(){return(0,f.createComponent)(ti,{name:r,children:i})},get children(){return(0,f.createComponent)(oi,{imports:n})}})},meta:{builtin:{id:r}}},o,{path:`${r}${a?`.tsx`:`.ts`}`,children:t}))}const ci=(0,p.createContext)();function li(){let e=(0,p.useContext)(ci);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 ui=(0,p.createNamedContext)(`reflection-property`);function di(){let e=(0,p.useContext)(ui);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 fi=(0,p.createNamedContext)(`reflection-method`),pi=(0,p.createNamedContext)(`reflection-parameter`);function mi(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]),r=li(),i=(0,p.computed)(()=>r.reflection.getTitle()||(0,b.titleCase)(r.reflection.getName())),a=(0,p.computed)(()=>r.reflection.getAlias()),o=(0,p.computed)(()=>r.reflection.getDomain()),s=(0,p.computed)(()=>r.reflection.getPermission()),c=(0,p.computed)(()=>r.reflection.isReadonly()),l=(0,p.computed)(()=>r.reflection.isInternal()),u=(0,p.computed)(()=>r.reflection.isIgnored()),d=(0,p.computed)(()=>r.reflection.isHidden());return r.reflection.getName()?(0,f.createComponent)(Z,(0,f.mergeProps)(n,{get heading(){return r.reflection.getDescription()},get children(){return[(0,f.createComponent)(p.Show,{get when(){return(0,h.isSetString)(i.value)||!(0,_.isUndefined)(a.value)&&a.value.length>0||!(0,_.isUndefined)(s.value)&&s.value.length>0||(0,h.isSetString)(o.value)||!(0,_.isUndefined)(c.value)||!(0,_.isUndefined)(l.value)||!(0,_.isUndefined)(u.value)||!(0,_.isUndefined)(d.value)},get children(){return(0,f.createComponent)(Yr,{get title(){return i.value},get alias(){return a.value},get domain(){return o.value},get permission(){return s.value},get readonly(){return c.value},get internal(){return l.value},get ignore(){return u.value},get hidden(){return d.value}})}}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!t)()&&(0,p.childrenArray)(()=>t).length>0},get children(){return(0,f.createComponent)(p.List,{get children(){return(0,p.childrenArray)(()=>t)}})}})]}})):null}function hi(e){let[{children:t},n]=(0,p.splitProps)(e,[`children`]),r=di();return(0,f.createComponent)(Z,(0,f.mergeProps)({get heading(){return r.getDescription()}},n,{get children(){return[(0,f.createComponent)(Yr,{get title(){return r.getTitle()},get alias(){return r.getAlias()},get domain(){return r.getDomain()},get permission(){return r.getPermission()},get readonly(){return r.isReadonly()},get internal(){return r.isInternal()},get ignore(){return r.isIgnored()},get hidden(){return r.isHidden()}}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!t)()&&(0,p.childrenArray)(()=>t).length>0},get children(){return(0,f.createComponent)(p.List,{get children(){return(0,p.childrenArray)(()=>t)}})}})]}}))}function gi(e){let[{name:t,reflection:n},r]=(0,p.splitProps)(e,[`name`,`reflection`]),i=(0,p.computed)(()=>(0,Oe.pascalCase)(t||n.getName())),a=n.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,f.createComponent)(ci.Provider,{value:{reflection:n},get children(){return[(0,f.createComponent)(mi,{}),(0,f.createComponent)(E.InterfaceDeclaration,(0,f.mergeProps)({export:!0,get name(){return i.value}},r,{get children(){return(0,f.createComponent)(p.For,{each:a,doubleHardline:!0,semicolon:!0,children:e=>(0,f.createComponent)(_i,{property:e})})}}))]}})}function _i(e){let[{property:t},n]=(0,p.splitProps)(e,[`property`]);return(0,f.createComponent)(ui.Provider,{value:t,get children(){return[(0,f.createComponent)(hi,{}),(0,f.createComponent)(E.InterfaceMember,(0,f.mergeProps)({get name(){return t.getNameAsString()},get readonly(){return t.isReadonly()},get optional(){return t.isOptional()},get nullish(){return t.isNullable()},get type(){return(0,D.stringifyType)(t.getType())}},n))]}})}function vi(e){if(!e.reflection?.value)return null;let t=(0,p.computed)(()=>(0,T.camelCase)(e.name||e.reflection.value.getName())),n=(0,p.computed)(()=>e.type||(0,Oe.pascalCase)(e.reflection.value.getName())),r=(0,p.computed)(()=>e.reflection.value.getProperties().filter(t=>!t.isIgnored()&&!(0,_.isUndefined)(e.defaultValue?.value?.[t.getNameAsString()]??t.getAlias().reduce((t,n)=>(0,_.isUndefined)(t)&&!(0,_.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)),i=(0,p.createSymbolSlot)(),a=(0,p.createSymbolSlot)(),o=(0,E.createValueSymbol)(e.name,{refkeys:e.refkey,default:e.default,export:e.export,metadata:e.metadata,tsFlags:e.nullish?E.TSSymbolFlags.Nullish:E.TSSymbolFlags.None,type:e.type?i.firstSymbol:void 0,namePolicy:(0,E.useTSNamePolicy)().for(`variable`)});e.type||a.moveMembersTo(o);let s=e.var?`var`:e.let?`let`:`const`,c=e.type?(0,f.createComponent)(E.TypeRefContext,{get children(){return[`: `,(0,f.createComponent)(i,{get children(){return e.type}})]}}):void 0;return(0,f.createComponent)(p.Show,{get when(){return!!e.reflection.value},get children(){return(0,f.createComponent)(ci.Provider,{get value(){return{reflection:e.reflection.value,override:{name:t.value,type:n.value,defaultValue:e.defaultValue?.value}}},get children(){return[(0,f.createComponent)(p.Show,{get when(){return!!t.value&&!!n.value},get children(){return[(0,f.createComponent)(mi,{}),(0,f.createComponent)(p.Declaration,{symbol:o,get children(){return[(0,f.memo)(()=>e.export?`export `:``),(0,f.memo)(()=>e.default?`default `:``),s,` `,(0,f.createComponent)(p.Name,{}),c,` =`,` `,(0,f.createComponent)(a,{get children(){return e.initializer??e.children??(0,f.createComponent)(E.ObjectExpression,{get children(){return(0,f.createComponent)(p.For,{get each(){return r.value??[]},comma:!0,doubleHardline:!0,children:e=>(0,f.createComponent)(yi,{property:e})})}})}})]}})]}}),(0,f.createIntrinsic)(`hbr`,{})]}})}})}function yi(e){let[{property:t}]=(0,p.splitProps)(e,[`property`]);return(0,f.createComponent)(ui.Provider,{value:t,get children(){return[(0,f.createComponent)(hi,{}),(0,f.createComponent)(E.ObjectProperty,{get name(){return t.getNameAsString()},get value(){return sr(t)}}),(0,f.createIntrinsic)(`hbr`,{})]}})}function bi(e){if((0,S.isString)(e)){let t=de.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=bi(n);return r&&(t[r]=e[n]),t},{})}async function xi(e,t,n){let r=await(0,ke.loadEnv)(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>(0,ke.loadEnvFile)(e,n)));for(let e of t)r=(0,v.default)(e,r)}return bi(r)}async function Si(e,t,n,r,i,a){let[o,s]=await Promise.all([xi(e,n,t),(0,je.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,w.joinPaths)(r,`jiti`),moduleCache:!0}})]);return(0,v.default)(o,s.config,a)}function Ci(e,t){return(0,v.default)({APP_NAME:(0,Ae.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,Ae.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,h.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,re.isSetObject)(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function wi(e,t){let[n,r,i]=await Promise.all([Si(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),Si(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),Si(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return(0,v.default)(Ci(e,process.env),n,r,i)}function Ti(e){let t=(0,p.computed)(()=>e&&Ci(e,process.env));return(0,p.createResource)(async()=>{if(!e)return new D.ReflectionClass({kind:D.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Y(e,`env`);return n.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{n.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||(0,b.titleCase)(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(t.value?.[e.getNameAsString()]??e.getAlias().reduce((e,n)=>e??t.value?.[n],void 0)??e.getDefaultValue())}),n})}function Ei(e){let[{defaultValue:t,reflection:n}]=(0,p.splitProps)(e,[`defaultValue`,`reflection`]),r=Re();return[(0,f.createComponent)(gi,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:t,reflection:n,export:!0}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(E.TypeDeclaration,{name:`Env`,export:!0,get children(){return p.code` {
|
|
20
|
+
[Key in keyof EnvBase as Key ${r?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
|
|
21
|
+
}
|
|
22
|
+
`}})]}function $(e){let[{context:t,name:n}]=(0,p.splitProps)(e,[`context`,`name`]);return t?p.code`propertyName === "${n}" || propertyName.replace(/^(${t.config.env.prefix.sort((e,t)=>e.startsWith(t)?-1:t.startsWith(e)?1:e.localeCompare(t)).map(e=>`${e.replace(/_$/,``)}_`).join(`|`)})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${n.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function Di(e){let[{context:t,property:n,index:r}]=(0,p.splitProps)(e,[`context`,`property`,`index`]);return t?[r===0?(0,f.createComponent)(E.IfStatement,{get condition(){return[(0,f.createComponent)($,{get name(){return n.getNameAsString()},context:t}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[p.code` || `,(0,f.createComponent)(p.For,{get each(){return n.getAlias()},joiner:p.code` || `,children:e=>(0,f.createComponent)($,{name:e,context:t})})]}})]},get children(){return p.code`return target["${n.getNameAsString()}"];`}}):(0,f.createComponent)(E.ElseIfClause,{get condition(){return[(0,f.createComponent)($,{get name(){return n.getNameAsString()},context:t}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[p.code` || `,(0,f.createComponent)(p.For,{get each(){return n.getAlias()},joiner:p.code` || `,children:e=>(0,f.createComponent)($,{name:e,context:t})})]}})]},get children(){return p.code`return target["${n.getNameAsString()}"];`}})]:null}function Oi(e){let[{context:t,property:n,index:r}]=(0,p.splitProps)(e,[`context`,`property`,`index`]);return t?[r===0?(0,f.createComponent)(E.IfStatement,{get condition(){return[(0,f.createComponent)($,{get name(){return n.getNameAsString()},context:t}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[p.code` || `,(0,f.createComponent)(p.For,{get each(){return n.getAlias()},joiner:p.code` || `,children:e=>(0,f.createComponent)($,{name:e,context:t})})]}})]},get children(){return p.code`
|
|
23
|
+
target["${n.getNameAsString()}"] = newValue;
|
|
24
|
+
return true;
|
|
25
|
+
`}}):(0,f.createComponent)(E.ElseIfClause,{get condition(){return[(0,f.createComponent)($,{get name(){return n.getNameAsString()},context:t}),(0,f.createComponent)(p.Show,{get when(){return(0,f.memo)(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[p.code` || `,(0,f.createComponent)(p.For,{get each(){return n.getAlias()},joiner:p.code` || `,children:e=>(0,f.createComponent)($,{name:e,context:t})})]}})]},get children(){return p.code`
|
|
26
|
+
target["${n.getNameAsString()}"] = newValue;
|
|
27
|
+
return true;
|
|
28
|
+
`}})]:null}const ki=Ir(`createEnv`),Ai=Ir(`env`),ji=Ir(`EnvSerializer`);function Mi(e){let[{defaultConfig:t},n]=(0,p.splitProps)(e,[`defaultConfig`]),r=Re(),i=(0,p.computed)(()=>r&&Ci(r,process.env)),a=Ti(r),o=(0,p.computed)(()=>new D.ReflectionClass({kind:D.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${(0,b.titleCase)(r?.config?.name)} project.`,types:[]},a.data??void 0)),s=(0,p.computed)(()=>a.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),c=(0,p.computed)(()=>a.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return(0,f.createComponent)(si,(0,f.mergeProps)(n,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return(0,v.default)({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},n.imports??{})},get children(){return[(0,f.createComponent)(p.Show,{get when(){return!(0,ye.isNull)(a.data)},get children(){return[(0,f.createComponent)(Ei,{get defaultValue(){return i.value},get reflection(){return a.data}}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{})]}}),(0,f.createComponent)(vi,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:i,reflection:o,export:!0,const:!0}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(Z,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[(0,f.createComponent)(Ur,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,f.createComponent)(Ur,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,f.createComponent)(Hr,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,f.createComponent)(E.ClassDeclaration,{refkey:ji,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return(0,f.createComponent)(E.ClassMethod,{name:`constructor`,public:!0,children:p.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,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(Z,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[(0,f.createComponent)(Ur,{children:`https://deepkit.io/docs/serialization/serializers`}),(0,f.createComponent)(Ur,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),(0,f.createComponent)(Hr,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),(0,f.createComponent)(E.VarDeclaration,{name:`envSerializer`,export:!1,const:!0,get initializer(){return(0,f.createComponent)(E.NewExpression,{args:[],target:`EnvSerializer`})}}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(Z,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[(0,f.createComponent)(Hr,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),(0,f.createComponent)(Wr,{children:`const json = serializeEnv(env);`}),(0,f.createComponent)(ei,{children:`ValidationError when serialization or validation fails.`})]}}),(0,f.createComponent)(E.VarDeclaration,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(Z,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[(0,f.createComponent)(Hr,{children:`Types that are already correct will be used as-is.`}),(0,f.createComponent)(Wr,{children:`const env = deserializeEnv(json);`}),(0,f.createComponent)(ei,{children:`ValidationError when deserialization fails.`})]}}),(0,f.createComponent)(E.VarDeclaration,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(Z,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[(0,f.createComponent)(Hr,{children:`This function initializes the Powerlines environment configuration object.`}),(0,f.createComponent)(Xr,{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,f.createComponent)($r,{children:`The initialized Powerlines configuration object.`})]}}),(0,f.createComponent)(p.Show,{get when(){return!!r?.entryPath},get children(){return(0,f.createComponent)(E.FunctionDeclaration,{refkey:ki,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[p.code`
|
|
40
|
+
return new Proxy<Env>(
|
|
41
|
+
deserializeEnv({
|
|
42
|
+
...initialEnv,
|
|
43
|
+
...environmentConfig
|
|
44
|
+
}) as Env,
|
|
45
|
+
{
|
|
46
|
+
get: (target: EnvBase, propertyName: string) => { `,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.For,{each:s,children:(e,t)=>(0,f.createComponent)(Di,{index:t,context:r,property:e})}),p.code`
|
|
47
|
+
return undefined;
|
|
48
|
+
}, `,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),p.code` set: (target: EnvBase, propertyName: string, newValue: any) => { `,(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(p.For,{each:c,ender:p.code` else `,children:(e,t)=>(0,f.createComponent)(Oi,{index:t,context:r,property:e})}),(0,f.createIntrinsic)(`hbr`,{}),p.code`return false;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
`]}})}}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createIntrinsic)(`hbr`,{}),(0,f.createComponent)(E.VarDeclaration,{refkey:Ai,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[p.code`createEnv(`,t||`{}`,p.code` as Partial<Env>)`]}})]}}))}const Ni=(0,p.createNamedContext)(`markdown-table-column`,{}),Pi=(0,p.createContext)({columns:[],data:[]}),Fi=Be((e={})=>({name:`env`,dependsOn:[rt(e.babel)],async config(){this.log(m.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:(0,v.default)(e,{types:{},prefix:[]}),transform:{babel:{plugins:[Fr]}}};if(t.env.types)t.env.types=(0,le.parseTypeDefinition)(t.env.types);else{this.log(m.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await Or(this);t.env.types=(0,le.parseTypeDefinition)(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=(0,le.parseTypeDefinition)(t.env.secrets);else{let e=await kr(this);t.env.secrets=(0,le.parseTypeDefinition)(`${e.file}#${e.name}`)}return t.env.prefix=(0,ue.toArray)(t.env.prefix??[]).reduce((e,t)=>{let n=(0,he.constantCase)(t);return e.includes(n)||e.push(n),e},[...de.ENV_PREFIXES,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(m.LogLevelLabel.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=(0,v.default)({parsed:await wi(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&(0,fe.existsSync)(Ar(this,`env`)))this.log(m.LogLevelLabel.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await Y(this,`env`),(0,fe.existsSync)(X(this,`env`))&&(this.env.used.env=await Mr(this)),(0,fe.existsSync)(Ar(this,`secrets`))&&(this.env.types.secrets=await Y(this,`secrets`)),(0,fe.existsSync)(X(this,`secrets`))&&(this.env.used.secrets=await Nr(this));else{if(this.env.types.env=await Tr(this,this.config.env.types?.file?(0,te.isParentPath)(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:(0,me.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 jr(this,this.env.types.env,`env`),this.env.types.secrets=await Er(this,this.config.env.secrets?.file?(0,te.isParentPath)(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:(0,me.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 jr(this,this.env.types.secrets,`secrets`),this.log(m.LogLevelLabel.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await wi(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new D.ReflectionClass({kind:D.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 Pr(this,this.env.used.env,`env`),this.env.types.secrets&&(await jr(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new D.ReflectionClass({kind:D.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 Pr(this,this.env.used.secrets,`secrets`))}},render(){let e=this;return this.log(m.LogLevelLabel.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),(0,f.createComponent)(Mi,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(m.LogLevelLabel.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=(0,me.joinPaths)(this.config.projectRoot,`docs`,`generated`);(0,fe.existsSync)(e)||await(0,pe.createDirectory)(e);let t=await Y(this,`env`),n=(0,me.joinPaths)(e,`env.md`);this.log(m.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- 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
|
+
${t.getProperties().filter(e=>e.getNameAsString()!==`__STORM_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(e=>`| ${e.getNameAsString().trim()} | ${(e.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
|
|
65
|
+
`,``)??``).trim()} | ${(0,D.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
|
|
66
|
+
`)}
|
|
67
|
+
`)},async buildEnd(){let e=X(this,`env`);this.log(m.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await Pr(this,this.env.used.env,`env`)}}));var Ii=Fi;function Li(e={}){return{name:`date`,dependsOn:[Ii(e.env)],async config(){this.log(m.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `date` build plugin.");let t={date:(0,v.default)(e,{type:`date-fns`})};return(!t.date.type||![`date-fns`,`dayjs`,`luxon`,`moment`].includes(t.date.type))&&(t.date.type&&this.log(m.LogLevelLabel.WARN,`Invalid date library type "${t.date.type}" specified. Defaulting to "date-fns".`),t.date.type=`date-fns`),this.log(m.LogLevelLabel.DEBUG,`Using date library: ${t.date.type}`),t},async configResolved(){this.log(m.LogLevelLabel.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.dependencies[this.config.date.type]=`latest`},async prepare(){this.log(m.LogLevelLabel.TRACE,`Preparing the Date runtime artifacts for the Powerlines project.`);let e;switch(this.config.date.type){case`dayjs`:e=u.t;break;case`luxon`:e=d.t;break;case`moment`:e=ee.t;break;case`date-fns`:default:e=l.t;break}await this.emitBuiltin(await Promise.resolve(e(this)),`date`,`date.ts`)}}}var Ri=Li;exports.dateFnsModule=l.t,exports.dayjsModule=u.t,exports.default=Ri,exports.luxonModule=d.t,exports.momentModule=ee.t,exports.plugin=Li,exports.t=c;
|