@stryke/capnp 0.12.41 → 0.12.43
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/bin/capnpc.cjs +224 -7
- package/bin/capnpc.mjs +219 -9
- package/bin/capnpc.mjs.map +1 -1
- package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs +12 -0
- package/dist/capnp-es.GpvEvMIK-BsgDzeBH.mjs.map +1 -0
- package/dist/capnp-es.GpvEvMIK-xNDcbmgx.cjs +11 -0
- package/dist/compile-ChbJ-p6B.cjs +169 -0
- package/dist/compile-DJUj4hs3.mjs +163 -0
- package/dist/compile-DJUj4hs3.mjs.map +1 -0
- package/dist/{compile-DN7i0G3X.d.mts → compile-UkKIpqrK.d.mts} +2 -2
- package/dist/{compile-DN7i0G3X.d.mts.map → compile-UkKIpqrK.d.mts.map} +1 -1
- package/dist/compile.cjs +1 -1
- package/dist/compile.d.mts +2 -2
- package/dist/compile.mjs +1 -1
- package/dist/dist-C1gSYYrg.cjs +1 -0
- package/dist/dist-CK47iMja.mjs +2 -0
- package/dist/dist-CK47iMja.mjs.map +1 -0
- package/dist/helpers-BoKbpcuO.mjs +27 -0
- package/dist/helpers-BoKbpcuO.mjs.map +1 -0
- package/dist/helpers-DSMRKdw1.cjs +26 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.mts +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/rpc.cjs +1 -1
- package/dist/rpc.mjs +1 -1
- package/dist/rpc.mjs.map +1 -1
- package/dist/types-BujoAx-K.mjs +2 -0
- package/dist/{types-y_yfxLs5.mjs.map → types-BujoAx-K.mjs.map} +1 -1
- package/dist/{types-DBd3Wi0H.d.mts → types-D03SjfBL.d.mts} +1 -1
- package/dist/{types-DBd3Wi0H.d.mts.map → types-D03SjfBL.d.mts.map} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/package.json +5 -5
- package/schemas/{index-CDymg4xL.d.mts → index-BAJMwFip.d.mts} +2 -2
- package/schemas/{index-CDymg4xL.d.mts.map → index-BAJMwFip.d.mts.map} +1 -1
- package/schemas/persistent.cjs +1 -1
- package/schemas/persistent.d.mts +1 -1
- package/schemas/persistent.mjs +1 -1
- package/schemas/rpc-twoparty.cjs +1 -1
- package/schemas/rpc-twoparty.d.mts +1 -1
- package/schemas/rpc-twoparty.mjs +1 -1
- package/schemas/rpc-twoparty.mjs.map +1 -1
- package/schemas/rpc.cjs +1 -1
- package/schemas/rpc.d.mts +1 -1
- package/schemas/rpc.mjs +1 -1
- package/schemas/schema.cjs +1 -1
- package/schemas/schema.d.mts +1 -1
- package/schemas/schema.mjs +1 -1
- package/schemas/src-CGrmR2BO.cjs +11 -0
- package/schemas/src-DqIy7I3p.mjs +12 -0
- package/schemas/src-DqIy7I3p.mjs.map +1 -0
- package/dist/compile-DOMgXQRn.cjs +0 -1
- package/dist/compile-cQ918Wl_.mjs +0 -2
- package/dist/compile-cQ918Wl_.mjs.map +0 -1
- package/dist/dist-BzGdCkHS.cjs +0 -1
- package/dist/dist-CvDcvswe.mjs +0 -2
- package/dist/dist-CvDcvswe.mjs.map +0 -1
- package/dist/helpers-BIiGufva.cjs +0 -6
- package/dist/helpers-BYBeqv2d.mjs +0 -7
- package/dist/helpers-BYBeqv2d.mjs.map +0 -1
- package/dist/types-y_yfxLs5.mjs +0 -2
- package/schemas/src-CtkguuVd.mjs +0 -7
- package/schemas/src-CtkguuVd.mjs.map +0 -1
- package/schemas/src-DqnIPdOg.cjs +0 -6
- /package/dist/{types-B2gKzfwi.cjs → types-D6FuBB1k.cjs} +0 -0
package/schemas/schema.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./src-DqnIPdOg.cjs`);let t=require(`./shared/capnp-es.0-_cOx6D.mjs`),n=require(`./shared/capnp-es.BvfUH5E6.mjs`);const r=BigInt(`0xa93fc509624c72d9`);var i=class extends t.S{static _capnp={displayName:`Parameter`,id:`b9521bccf10fa3b1`,size:new t.O(0,1)};get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}toString(){return`Node_Parameter_`+super.toString()}},a=class extends t.S{static _capnp={displayName:`NestedNode`,id:`debf55bbfa0fc242`,size:new t.O(8,1)};get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}toString(){return`Node_NestedNode_`+super.toString()}},o=class extends t.S{static _capnp={displayName:`Member`,id:`c2ba9038898e1fa2`,size:new t.O(0,1)};get docComment(){return e.t.getText(0,this)}set docComment(t){e.t.setText(0,t,this)}toString(){return`Node_SourceInfo_Member_`+super.toString()}},s=class n extends t.S{static Member=o;static _capnp={displayName:`SourceInfo`,id:`f38e1de3041357ae`,size:new t.O(8,2)};static _Members;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get docComment(){return e.t.getText(0,this)}set docComment(t){e.t.setText(0,t,this)}_adoptMembers(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownMembers(){return e.t.disown(this.members)}get members(){return e.t.getList(1,n._Members,this)}_hasMembers(){return!e.t.isNull(e.t.getPointer(1,this))}_initMembers(t){return e.t.initList(1,n._Members,t,this)}set members(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Node_SourceInfo_`+super.toString()}},c=class n extends t.S{static _capnp={displayName:`struct`,id:`9ea0b19b37fb4435`,size:new t.O(40,6)};static _Fields;get dataWordCount(){return e.t.getUint16(14,this)}set dataWordCount(t){e.t.setUint16(14,t,this)}get pointerCount(){return e.t.getUint16(24,this)}set pointerCount(t){e.t.setUint16(24,t,this)}get preferredListEncoding(){return e.t.getUint16(26,this)}set preferredListEncoding(t){e.t.setUint16(26,t,this)}get isGroup(){return e.t.getBit(224,this)}set isGroup(t){e.t.setBit(224,t,this)}get discriminantCount(){return e.t.getUint16(30,this)}set discriminantCount(t){e.t.setUint16(30,t,this)}get discriminantOffset(){return e.t.getUint32(32,this)}set discriminantOffset(t){e.t.setUint32(32,t,this)}_adoptFields(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownFields(){return e.t.disown(this.fields)}get fields(){return e.t.getList(3,n._Fields,this)}_hasFields(){return!e.t.isNull(e.t.getPointer(3,this))}_initFields(t){return e.t.initList(3,n._Fields,t,this)}set fields(t){e.t.copyFrom(t,e.t.getPointer(3,this))}toString(){return`Node_Struct_`+super.toString()}},l=class n extends t.S{static _capnp={displayName:`enum`,id:`b54ab3364333f598`,size:new t.O(40,6)};static _Enumerants;_adoptEnumerants(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownEnumerants(){return e.t.disown(this.enumerants)}get enumerants(){return e.t.getList(3,n._Enumerants,this)}_hasEnumerants(){return!e.t.isNull(e.t.getPointer(3,this))}_initEnumerants(t){return e.t.initList(3,n._Enumerants,t,this)}set enumerants(t){e.t.copyFrom(t,e.t.getPointer(3,this))}toString(){return`Node_Enum_`+super.toString()}},u=class n extends t.S{static _capnp={displayName:`interface`,id:`e82753cff0c2218f`,size:new t.O(40,6)};static _Methods;static _Superclasses;_adoptMethods(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownMethods(){return e.t.disown(this.methods)}get methods(){return e.t.getList(3,n._Methods,this)}_hasMethods(){return!e.t.isNull(e.t.getPointer(3,this))}_initMethods(t){return e.t.initList(3,n._Methods,t,this)}set methods(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptSuperclasses(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownSuperclasses(){return e.t.disown(this.superclasses)}get superclasses(){return e.t.getList(4,n._Superclasses,this)}_hasSuperclasses(){return!e.t.isNull(e.t.getPointer(4,this))}_initSuperclasses(t){return e.t.initList(4,n._Superclasses,t,this)}set superclasses(t){e.t.copyFrom(t,e.t.getPointer(4,this))}toString(){return`Node_Interface_`+super.toString()}},d=class extends t.S{static _capnp={displayName:`const`,id:`b18aa5ac7a0d9420`,size:new t.O(40,6)};_adoptType(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(3,F,this)}_hasType(){return!e.t.isNull(e.t.getPointer(3,this))}_initType(){return e.t.initStructAt(3,F,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptValue(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownValue(){return e.t.disown(this.value)}get value(){return e.t.getStruct(4,H,this)}_hasValue(){return!e.t.isNull(e.t.getPointer(4,this))}_initValue(){return e.t.initStructAt(4,H,this)}set value(t){e.t.copyFrom(t,e.t.getPointer(4,this))}toString(){return`Node_Const_`+super.toString()}},f=class extends t.S{static _capnp={displayName:`annotation`,id:`ec1619d4400a0290`,size:new t.O(40,6)};_adoptType(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(3,F,this)}_hasType(){return!e.t.isNull(e.t.getPointer(3,this))}_initType(){return e.t.initStructAt(3,F,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(3,this))}get targetsFile(){return e.t.getBit(112,this)}set targetsFile(t){e.t.setBit(112,t,this)}get targetsConst(){return e.t.getBit(113,this)}set targetsConst(t){e.t.setBit(113,t,this)}get targetsEnum(){return e.t.getBit(114,this)}set targetsEnum(t){e.t.setBit(114,t,this)}get targetsEnumerant(){return e.t.getBit(115,this)}set targetsEnumerant(t){e.t.setBit(115,t,this)}get targetsStruct(){return e.t.getBit(116,this)}set targetsStruct(t){e.t.setBit(116,t,this)}get targetsField(){return e.t.getBit(117,this)}set targetsField(t){e.t.setBit(117,t,this)}get targetsUnion(){return e.t.getBit(118,this)}set targetsUnion(t){e.t.setBit(118,t,this)}get targetsGroup(){return e.t.getBit(119,this)}set targetsGroup(t){e.t.setBit(119,t,this)}get targetsInterface(){return e.t.getBit(120,this)}set targetsInterface(t){e.t.setBit(120,t,this)}get targetsMethod(){return e.t.getBit(121,this)}set targetsMethod(t){e.t.setBit(121,t,this)}get targetsParam(){return e.t.getBit(122,this)}set targetsParam(t){e.t.setBit(122,t,this)}get targetsAnnotation(){return e.t.getBit(123,this)}set targetsAnnotation(t){e.t.setBit(123,t,this)}toString(){return`Node_Annotation_`+super.toString()}};const p={FILE:0,STRUCT:1,ENUM:2,INTERFACE:3,CONST:4,ANNOTATION:5};var m=class n extends t.S{static FILE=p.FILE;static STRUCT=p.STRUCT;static ENUM=p.ENUM;static INTERFACE=p.INTERFACE;static CONST=p.CONST;static ANNOTATION=p.ANNOTATION;static Parameter=i;static NestedNode=a;static SourceInfo=s;static _capnp={displayName:`Node`,id:`e682ab4cf923a417`,size:new t.O(40,6)};static _Parameters;static _NestedNodes;static _Annotations;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get displayName(){return e.t.getText(0,this)}set displayName(t){e.t.setText(0,t,this)}get displayNamePrefixLength(){return e.t.getUint32(8,this)}set displayNamePrefixLength(t){e.t.setUint32(8,t,this)}get scopeId(){return e.t.getUint64(16,this)}set scopeId(t){e.t.setUint64(16,t,this)}_adoptParameters(t){e.t.adopt(t,e.t.getPointer(5,this))}_disownParameters(){return e.t.disown(this.parameters)}get parameters(){return e.t.getList(5,n._Parameters,this)}_hasParameters(){return!e.t.isNull(e.t.getPointer(5,this))}_initParameters(t){return e.t.initList(5,n._Parameters,t,this)}set parameters(t){e.t.copyFrom(t,e.t.getPointer(5,this))}get isGeneric(){return e.t.getBit(288,this)}set isGeneric(t){e.t.setBit(288,t,this)}_adoptNestedNodes(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownNestedNodes(){return e.t.disown(this.nestedNodes)}get nestedNodes(){return e.t.getList(1,n._NestedNodes,this)}_hasNestedNodes(){return!e.t.isNull(e.t.getPointer(1,this))}_initNestedNodes(t){return e.t.initList(1,n._NestedNodes,t,this)}set nestedNodes(t){e.t.copyFrom(t,e.t.getPointer(1,this))}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(2,n._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(2,this))}_initAnnotations(t){return e.t.initList(2,n._Annotations,t,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(2,this))}get _isFile(){return e.t.getUint16(12,this)===0}set file(t){e.t.setUint16(12,0,this)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(12,this),1,this),e.t.getAs(c,this)}_initStruct(){return e.t.setUint16(12,1,this),e.t.getAs(c,this)}get _isStruct(){return e.t.getUint16(12,this)===1}set struct(t){e.t.setUint16(12,1,this)}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(12,this),2,this),e.t.getAs(l,this)}_initEnum(){return e.t.setUint16(12,2,this),e.t.getAs(l,this)}get _isEnum(){return e.t.getUint16(12,this)===2}set enum(t){e.t.setUint16(12,2,this)}get interface(){return e.t.testWhich(`interface`,e.t.getUint16(12,this),3,this),e.t.getAs(u,this)}_initInterface(){return e.t.setUint16(12,3,this),e.t.getAs(u,this)}get _isInterface(){return e.t.getUint16(12,this)===3}set interface(t){e.t.setUint16(12,3,this)}get const(){return e.t.testWhich(`const`,e.t.getUint16(12,this),4,this),e.t.getAs(d,this)}_initConst(){return e.t.setUint16(12,4,this),e.t.getAs(d,this)}get _isConst(){return e.t.getUint16(12,this)===4}set const(t){e.t.setUint16(12,4,this)}get annotation(){return e.t.testWhich(`annotation`,e.t.getUint16(12,this),5,this),e.t.getAs(f,this)}_initAnnotation(){return e.t.setUint16(12,5,this),e.t.getAs(f,this)}get _isAnnotation(){return e.t.getUint16(12,this)===5}set annotation(t){e.t.setUint16(12,5,this)}toString(){return`Node_`+super.toString()}which(){return e.t.getUint16(12,this)}},h=class extends t.S{static _capnp={displayName:`slot`,id:`c42305476bb4746f`,size:new t.O(24,4)};get offset(){return e.t.getUint32(4,this)}set offset(t){e.t.setUint32(4,t,this)}_adoptType(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(2,F,this)}_hasType(){return!e.t.isNull(e.t.getPointer(2,this))}_initType(){return e.t.initStructAt(2,F,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(2,this))}_adoptDefaultValue(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownDefaultValue(){return e.t.disown(this.defaultValue)}get defaultValue(){return e.t.getStruct(3,H,this)}_hasDefaultValue(){return!e.t.isNull(e.t.getPointer(3,this))}_initDefaultValue(){return e.t.initStructAt(3,H,this)}set defaultValue(t){e.t.copyFrom(t,e.t.getPointer(3,this))}get hadExplicitDefault(){return e.t.getBit(128,this)}set hadExplicitDefault(t){e.t.setBit(128,t,this)}toString(){return`Field_Slot_`+super.toString()}},g=class extends t.S{static _capnp={displayName:`group`,id:`cafccddb68db1d11`,size:new t.O(24,4)};get typeId(){return e.t.getUint64(16,this)}set typeId(t){e.t.setUint64(16,t,this)}toString(){return`Field_Group_`+super.toString()}};const _={IMPLICIT:0,EXPLICIT:1};var v=class extends t.S{static IMPLICIT=_.IMPLICIT;static EXPLICIT=_.EXPLICIT;static _capnp={displayName:`ordinal`,id:`bb90d5c287870be6`,size:new t.O(24,4)};get _isImplicit(){return e.t.getUint16(10,this)===0}set implicit(t){e.t.setUint16(10,0,this)}get explicit(){return e.t.testWhich(`explicit`,e.t.getUint16(10,this),1,this),e.t.getUint16(12,this)}get _isExplicit(){return e.t.getUint16(10,this)===1}set explicit(t){e.t.setUint16(10,1,this),e.t.setUint16(12,t,this)}toString(){return`Field_Ordinal_`+super.toString()}which(){return e.t.getUint16(10,this)}};const y={SLOT:0,GROUP:1};var b=class r extends t.S{static NO_DISCRIMINANT=65535;static SLOT=y.SLOT;static GROUP=y.GROUP;static _capnp={displayName:`Field`,id:`9aad50a41f4af45f`,size:new t.O(24,4),defaultDiscriminantValue:n.b(65535)};static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,r._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(t){return e.t.initList(1,r._Annotations,t,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}get discriminantValue(){return e.t.getUint16(2,this,r._capnp.defaultDiscriminantValue)}set discriminantValue(t){e.t.setUint16(2,t,this,r._capnp.defaultDiscriminantValue)}get slot(){return e.t.testWhich(`slot`,e.t.getUint16(8,this),0,this),e.t.getAs(h,this)}_initSlot(){return e.t.setUint16(8,0,this),e.t.getAs(h,this)}get _isSlot(){return e.t.getUint16(8,this)===0}set slot(t){e.t.setUint16(8,0,this)}get group(){return e.t.testWhich(`group`,e.t.getUint16(8,this),1,this),e.t.getAs(g,this)}_initGroup(){return e.t.setUint16(8,1,this),e.t.getAs(g,this)}get _isGroup(){return e.t.getUint16(8,this)===1}set group(t){e.t.setUint16(8,1,this)}get ordinal(){return e.t.getAs(v,this)}_initOrdinal(){return e.t.getAs(v,this)}toString(){return`Field_`+super.toString()}which(){return e.t.getUint16(8,this)}},x=class n extends t.S{static _capnp={displayName:`Enumerant`,id:`978a7cebdc549a4d`,size:new t.O(8,2)};static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,n._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(t){return e.t.initList(1,n._Annotations,t,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Enumerant_`+super.toString()}},S=class extends t.S{static _capnp={displayName:`Superclass`,id:`a9962a9ed0a4d7f8`,size:new t.O(8,1)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,B,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,B,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Superclass_`+super.toString()}},C=class n extends t.S{static _capnp={displayName:`Method`,id:`9500cce23b334d80`,size:new t.O(24,5)};static _ImplicitParameters;static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptImplicitParameters(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownImplicitParameters(){return e.t.disown(this.implicitParameters)}get implicitParameters(){return e.t.getList(4,n._ImplicitParameters,this)}_hasImplicitParameters(){return!e.t.isNull(e.t.getPointer(4,this))}_initImplicitParameters(t){return e.t.initList(4,n._ImplicitParameters,t,this)}set implicitParameters(t){e.t.copyFrom(t,e.t.getPointer(4,this))}get paramStructType(){return e.t.getUint64(8,this)}set paramStructType(t){e.t.setUint64(8,t,this)}_adoptParamBrand(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownParamBrand(){return e.t.disown(this.paramBrand)}get paramBrand(){return e.t.getStruct(2,B,this)}_hasParamBrand(){return!e.t.isNull(e.t.getPointer(2,this))}_initParamBrand(){return e.t.initStructAt(2,B,this)}set paramBrand(t){e.t.copyFrom(t,e.t.getPointer(2,this))}get resultStructType(){return e.t.getUint64(16,this)}set resultStructType(t){e.t.setUint64(16,t,this)}_adoptResultBrand(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownResultBrand(){return e.t.disown(this.resultBrand)}get resultBrand(){return e.t.getStruct(3,B,this)}_hasResultBrand(){return!e.t.isNull(e.t.getPointer(3,this))}_initResultBrand(){return e.t.initStructAt(3,B,this)}set resultBrand(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,n._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(t){return e.t.initList(1,n._Annotations,t,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Method_`+super.toString()}},w=class extends t.S{static _capnp={displayName:`list`,id:`87e739250a60ea97`,size:new t.O(24,1)};_adoptElementType(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownElementType(){return e.t.disown(this.elementType)}get elementType(){return e.t.getStruct(0,F,this)}_hasElementType(){return!e.t.isNull(e.t.getPointer(0,this))}_initElementType(){return e.t.initStructAt(0,F,this)}set elementType(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_List_`+super.toString()}},T=class extends t.S{static _capnp={displayName:`enum`,id:`9e0e78711a7f87a9`,size:new t.O(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,B,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,B,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Enum_`+super.toString()}},E=class extends t.S{static _capnp={displayName:`struct`,id:`ac3a6f60ef4cc6d3`,size:new t.O(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,B,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,B,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Struct_`+super.toString()}},D=class extends t.S{static _capnp={displayName:`interface`,id:`ed8bca69f7fb0cbf`,size:new t.O(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,B,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,B,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Interface_`+super.toString()}};const O={ANY_KIND:0,STRUCT:1,LIST:2,CAPABILITY:3};var k=class extends t.S{static ANY_KIND=O.ANY_KIND;static STRUCT=O.STRUCT;static LIST=O.LIST;static CAPABILITY=O.CAPABILITY;static _capnp={displayName:`unconstrained`,id:`8e3b5f79fe593656`,size:new t.O(24,1)};get _isAnyKind(){return e.t.getUint16(10,this)===0}set anyKind(t){e.t.setUint16(10,0,this)}get _isStruct(){return e.t.getUint16(10,this)===1}set struct(t){e.t.setUint16(10,1,this)}get _isList(){return e.t.getUint16(10,this)===2}set list(t){e.t.setUint16(10,2,this)}get _isCapability(){return e.t.getUint16(10,this)===3}set capability(t){e.t.setUint16(10,3,this)}toString(){return`Type_AnyPointer_Unconstrained_`+super.toString()}which(){return e.t.getUint16(10,this)}},A=class extends t.S{static _capnp={displayName:`parameter`,id:`9dd1f724f4614a85`,size:new t.O(24,1)};get scopeId(){return e.t.getUint64(16,this)}set scopeId(t){e.t.setUint64(16,t,this)}get parameterIndex(){return e.t.getUint16(10,this)}set parameterIndex(t){e.t.setUint16(10,t,this)}toString(){return`Type_AnyPointer_Parameter_`+super.toString()}},j=class extends t.S{static _capnp={displayName:`implicitMethodParameter`,id:`baefc9120c56e274`,size:new t.O(24,1)};get parameterIndex(){return e.t.getUint16(10,this)}set parameterIndex(t){e.t.setUint16(10,t,this)}toString(){return`Type_AnyPointer_ImplicitMethodParameter_`+super.toString()}};const M={UNCONSTRAINED:0,PARAMETER:1,IMPLICIT_METHOD_PARAMETER:2};var N=class extends t.S{static UNCONSTRAINED=M.UNCONSTRAINED;static PARAMETER=M.PARAMETER;static IMPLICIT_METHOD_PARAMETER=M.IMPLICIT_METHOD_PARAMETER;static _capnp={displayName:`anyPointer`,id:`c2573fe8a23e49f1`,size:new t.O(24,1)};get unconstrained(){return e.t.testWhich(`unconstrained`,e.t.getUint16(8,this),0,this),e.t.getAs(k,this)}_initUnconstrained(){return e.t.setUint16(8,0,this),e.t.getAs(k,this)}get _isUnconstrained(){return e.t.getUint16(8,this)===0}set unconstrained(t){e.t.setUint16(8,0,this)}get parameter(){return e.t.testWhich(`parameter`,e.t.getUint16(8,this),1,this),e.t.getAs(A,this)}_initParameter(){return e.t.setUint16(8,1,this),e.t.getAs(A,this)}get _isParameter(){return e.t.getUint16(8,this)===1}set parameter(t){e.t.setUint16(8,1,this)}get implicitMethodParameter(){return e.t.testWhich(`implicitMethodParameter`,e.t.getUint16(8,this),2,this),e.t.getAs(j,this)}_initImplicitMethodParameter(){return e.t.setUint16(8,2,this),e.t.getAs(j,this)}get _isImplicitMethodParameter(){return e.t.getUint16(8,this)===2}set implicitMethodParameter(t){e.t.setUint16(8,2,this)}toString(){return`Type_AnyPointer_`+super.toString()}which(){return e.t.getUint16(8,this)}};const P={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var F=class extends t.S{static VOID=P.VOID;static BOOL=P.BOOL;static INT8=P.INT8;static INT16=P.INT16;static INT32=P.INT32;static INT64=P.INT64;static UINT8=P.UINT8;static UINT16=P.UINT16;static UINT32=P.UINT32;static UINT64=P.UINT64;static FLOAT32=P.FLOAT32;static FLOAT64=P.FLOAT64;static TEXT=P.TEXT;static DATA=P.DATA;static LIST=P.LIST;static ENUM=P.ENUM;static STRUCT=P.STRUCT;static INTERFACE=P.INTERFACE;static ANY_POINTER=P.ANY_POINTER;static _capnp={displayName:`Type`,id:`d07378ede1f9cc60`,size:new t.O(24,1)};get _isVoid(){return e.t.getUint16(0,this)===0}set void(t){e.t.setUint16(0,0,this)}get _isBool(){return e.t.getUint16(0,this)===1}set bool(t){e.t.setUint16(0,1,this)}get _isInt8(){return e.t.getUint16(0,this)===2}set int8(t){e.t.setUint16(0,2,this)}get _isInt16(){return e.t.getUint16(0,this)===3}set int16(t){e.t.setUint16(0,3,this)}get _isInt32(){return e.t.getUint16(0,this)===4}set int32(t){e.t.setUint16(0,4,this)}get _isInt64(){return e.t.getUint16(0,this)===5}set int64(t){e.t.setUint16(0,5,this)}get _isUint8(){return e.t.getUint16(0,this)===6}set uint8(t){e.t.setUint16(0,6,this)}get _isUint16(){return e.t.getUint16(0,this)===7}set uint16(t){e.t.setUint16(0,7,this)}get _isUint32(){return e.t.getUint16(0,this)===8}set uint32(t){e.t.setUint16(0,8,this)}get _isUint64(){return e.t.getUint16(0,this)===9}set uint64(t){e.t.setUint16(0,9,this)}get _isFloat32(){return e.t.getUint16(0,this)===10}set float32(t){e.t.setUint16(0,10,this)}get _isFloat64(){return e.t.getUint16(0,this)===11}set float64(t){e.t.setUint16(0,11,this)}get _isText(){return e.t.getUint16(0,this)===12}set text(t){e.t.setUint16(0,12,this)}get _isData(){return e.t.getUint16(0,this)===13}set data(t){e.t.setUint16(0,13,this)}get list(){return e.t.testWhich(`list`,e.t.getUint16(0,this),14,this),e.t.getAs(w,this)}_initList(){return e.t.setUint16(0,14,this),e.t.getAs(w,this)}get _isList(){return e.t.getUint16(0,this)===14}set list(t){e.t.setUint16(0,14,this)}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(0,this),15,this),e.t.getAs(T,this)}_initEnum(){return e.t.setUint16(0,15,this),e.t.getAs(T,this)}get _isEnum(){return e.t.getUint16(0,this)===15}set enum(t){e.t.setUint16(0,15,this)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(0,this),16,this),e.t.getAs(E,this)}_initStruct(){return e.t.setUint16(0,16,this),e.t.getAs(E,this)}get _isStruct(){return e.t.getUint16(0,this)===16}set struct(t){e.t.setUint16(0,16,this)}get interface(){return e.t.testWhich(`interface`,e.t.getUint16(0,this),17,this),e.t.getAs(D,this)}_initInterface(){return e.t.setUint16(0,17,this),e.t.getAs(D,this)}get _isInterface(){return e.t.getUint16(0,this)===17}set interface(t){e.t.setUint16(0,17,this)}get anyPointer(){return e.t.testWhich(`anyPointer`,e.t.getUint16(0,this),18,this),e.t.getAs(N,this)}_initAnyPointer(){return e.t.setUint16(0,18,this),e.t.getAs(N,this)}get _isAnyPointer(){return e.t.getUint16(0,this)===18}set anyPointer(t){e.t.setUint16(0,18,this)}toString(){return`Type_`+super.toString()}which(){return e.t.getUint16(0,this)}};const I={BIND:0,INHERIT:1};var L=class n extends t.S{static BIND=I.BIND;static INHERIT=I.INHERIT;static _capnp={displayName:`Scope`,id:`abd73485a9636bc9`,size:new t.O(16,1)};static _Bind;get scopeId(){return e.t.getUint64(0,this)}set scopeId(t){e.t.setUint64(0,t,this)}_adoptBind(t){e.t.setUint16(8,0,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownBind(){return e.t.disown(this.bind)}get bind(){return e.t.testWhich(`bind`,e.t.getUint16(8,this),0,this),e.t.getList(0,n._Bind,this)}_hasBind(){return!e.t.isNull(e.t.getPointer(0,this))}_initBind(t){return e.t.setUint16(8,0,this),e.t.initList(0,n._Bind,t,this)}get _isBind(){return e.t.getUint16(8,this)===0}set bind(t){e.t.setUint16(8,0,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get _isInherit(){return e.t.getUint16(8,this)===1}set inherit(t){e.t.setUint16(8,1,this)}toString(){return`Brand_Scope_`+super.toString()}which(){return e.t.getUint16(8,this)}};const R={UNBOUND:0,TYPE:1};var z=class extends t.S{static UNBOUND=R.UNBOUND;static TYPE=R.TYPE;static _capnp={displayName:`Binding`,id:`c863cd16969ee7fc`,size:new t.O(8,1)};get _isUnbound(){return e.t.getUint16(0,this)===0}set unbound(t){e.t.setUint16(0,0,this)}_adoptType(t){e.t.setUint16(0,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.testWhich(`type`,e.t.getUint16(0,this),1,this),e.t.getStruct(0,F,this)}_hasType(){return!e.t.isNull(e.t.getPointer(0,this))}_initType(){return e.t.setUint16(0,1,this),e.t.initStructAt(0,F,this)}get _isType(){return e.t.getUint16(0,this)===1}set type(t){e.t.setUint16(0,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Brand_Binding_`+super.toString()}which(){return e.t.getUint16(0,this)}},B=class n extends t.S{static Scope=L;static Binding=z;static _capnp={displayName:`Brand`,id:`903455f06065422b`,size:new t.O(0,1)};static _Scopes;_adoptScopes(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownScopes(){return e.t.disown(this.scopes)}get scopes(){return e.t.getList(0,n._Scopes,this)}_hasScopes(){return!e.t.isNull(e.t.getPointer(0,this))}_initScopes(t){return e.t.initList(0,n._Scopes,t,this)}set scopes(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Brand_`+super.toString()}};const V={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var H=class extends t.S{static VOID=V.VOID;static BOOL=V.BOOL;static INT8=V.INT8;static INT16=V.INT16;static INT32=V.INT32;static INT64=V.INT64;static UINT8=V.UINT8;static UINT16=V.UINT16;static UINT32=V.UINT32;static UINT64=V.UINT64;static FLOAT32=V.FLOAT32;static FLOAT64=V.FLOAT64;static TEXT=V.TEXT;static DATA=V.DATA;static LIST=V.LIST;static ENUM=V.ENUM;static STRUCT=V.STRUCT;static INTERFACE=V.INTERFACE;static ANY_POINTER=V.ANY_POINTER;static _capnp={displayName:`Value`,id:`ce23dcd2d7b00c9b`,size:new t.O(16,1)};get _isVoid(){return e.t.getUint16(0,this)===0}set void(t){e.t.setUint16(0,0,this)}get bool(){return e.t.testWhich(`bool`,e.t.getUint16(0,this),1,this),e.t.getBit(16,this)}get _isBool(){return e.t.getUint16(0,this)===1}set bool(t){e.t.setUint16(0,1,this),e.t.setBit(16,t,this)}get int8(){return e.t.testWhich(`int8`,e.t.getUint16(0,this),2,this),e.t.getInt8(2,this)}get _isInt8(){return e.t.getUint16(0,this)===2}set int8(t){e.t.setUint16(0,2,this),e.t.setInt8(2,t,this)}get int16(){return e.t.testWhich(`int16`,e.t.getUint16(0,this),3,this),e.t.getInt16(2,this)}get _isInt16(){return e.t.getUint16(0,this)===3}set int16(t){e.t.setUint16(0,3,this),e.t.setInt16(2,t,this)}get int32(){return e.t.testWhich(`int32`,e.t.getUint16(0,this),4,this),e.t.getInt32(4,this)}get _isInt32(){return e.t.getUint16(0,this)===4}set int32(t){e.t.setUint16(0,4,this),e.t.setInt32(4,t,this)}get int64(){return e.t.testWhich(`int64`,e.t.getUint16(0,this),5,this),e.t.getInt64(8,this)}get _isInt64(){return e.t.getUint16(0,this)===5}set int64(t){e.t.setUint16(0,5,this),e.t.setInt64(8,t,this)}get uint8(){return e.t.testWhich(`uint8`,e.t.getUint16(0,this),6,this),e.t.getUint8(2,this)}get _isUint8(){return e.t.getUint16(0,this)===6}set uint8(t){e.t.setUint16(0,6,this),e.t.setUint8(2,t,this)}get uint16(){return e.t.testWhich(`uint16`,e.t.getUint16(0,this),7,this),e.t.getUint16(2,this)}get _isUint16(){return e.t.getUint16(0,this)===7}set uint16(t){e.t.setUint16(0,7,this),e.t.setUint16(2,t,this)}get uint32(){return e.t.testWhich(`uint32`,e.t.getUint16(0,this),8,this),e.t.getUint32(4,this)}get _isUint32(){return e.t.getUint16(0,this)===8}set uint32(t){e.t.setUint16(0,8,this),e.t.setUint32(4,t,this)}get uint64(){return e.t.testWhich(`uint64`,e.t.getUint16(0,this),9,this),e.t.getUint64(8,this)}get _isUint64(){return e.t.getUint16(0,this)===9}set uint64(t){e.t.setUint16(0,9,this),e.t.setUint64(8,t,this)}get float32(){return e.t.testWhich(`float32`,e.t.getUint16(0,this),10,this),e.t.getFloat32(4,this)}get _isFloat32(){return e.t.getUint16(0,this)===10}set float32(t){e.t.setUint16(0,10,this),e.t.setFloat32(4,t,this)}get float64(){return e.t.testWhich(`float64`,e.t.getUint16(0,this),11,this),e.t.getFloat64(8,this)}get _isFloat64(){return e.t.getUint16(0,this)===11}set float64(t){e.t.setUint16(0,11,this),e.t.setFloat64(8,t,this)}get text(){return e.t.testWhich(`text`,e.t.getUint16(0,this),12,this),e.t.getText(0,this)}get _isText(){return e.t.getUint16(0,this)===12}set text(t){e.t.setUint16(0,12,this),e.t.setText(0,t,this)}_adoptData(t){e.t.setUint16(0,13,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownData(){return e.t.disown(this.data)}get data(){return e.t.testWhich(`data`,e.t.getUint16(0,this),13,this),e.t.getData(0,this)}_hasData(){return!e.t.isNull(e.t.getPointer(0,this))}_initData(t){return e.t.setUint16(0,13,this),e.t.initData(0,t,this)}get _isData(){return e.t.getUint16(0,this)===13}set data(t){e.t.setUint16(0,13,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptList(t){e.t.setUint16(0,14,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownList(){return e.t.disown(this.list)}get list(){return e.t.testWhich(`list`,e.t.getUint16(0,this),14,this),e.t.getPointer(0,this)}_hasList(){return!e.t.isNull(e.t.getPointer(0,this))}get _isList(){return e.t.getUint16(0,this)===14}set list(t){e.t.setUint16(0,14,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(0,this),15,this),e.t.getUint16(2,this)}get _isEnum(){return e.t.getUint16(0,this)===15}set enum(t){e.t.setUint16(0,15,this),e.t.setUint16(2,t,this)}_adoptStruct(t){e.t.setUint16(0,16,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownStruct(){return e.t.disown(this.struct)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(0,this),16,this),e.t.getPointer(0,this)}_hasStruct(){return!e.t.isNull(e.t.getPointer(0,this))}get _isStruct(){return e.t.getUint16(0,this)===16}set struct(t){e.t.setUint16(0,16,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get _isInterface(){return e.t.getUint16(0,this)===17}set interface(t){e.t.setUint16(0,17,this)}_adoptAnyPointer(t){e.t.setUint16(0,18,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownAnyPointer(){return e.t.disown(this.anyPointer)}get anyPointer(){return e.t.testWhich(`anyPointer`,e.t.getUint16(0,this),18,this),e.t.getPointer(0,this)}_hasAnyPointer(){return!e.t.isNull(e.t.getPointer(0,this))}get _isAnyPointer(){return e.t.getUint16(0,this)===18}set anyPointer(t){e.t.setUint16(0,18,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Value_`+super.toString()}which(){return e.t.getUint16(0,this)}},U=class extends t.S{static _capnp={displayName:`Annotation`,id:`f1c8950dab257542`,size:new t.O(8,2)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(1,B,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(1,this))}_initBrand(){return e.t.initStructAt(1,B,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(1,this))}_adoptValue(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownValue(){return e.t.disown(this.value)}get value(){return e.t.getStruct(0,H,this)}_hasValue(){return!e.t.isNull(e.t.getPointer(0,this))}_initValue(){return e.t.initStructAt(0,H,this)}set value(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Annotation_`+super.toString()}};const W={EMPTY:0,BIT:1,BYTE:2,TWO_BYTES:3,FOUR_BYTES:4,EIGHT_BYTES:5,POINTER:6,INLINE_COMPOSITE:7};var G=class extends t.S{static _capnp={displayName:`CapnpVersion`,id:`d85d305b7d839963`,size:new t.O(8,0)};get major(){return e.t.getUint16(0,this)}set major(t){e.t.setUint16(0,t,this)}get minor(){return e.t.getUint8(2,this)}set minor(t){e.t.setUint8(2,t,this)}get micro(){return e.t.getUint8(3,this)}set micro(t){e.t.setUint8(3,t,this)}toString(){return`CapnpVersion_`+super.toString()}},K=class extends t.S{static _capnp={displayName:`Import`,id:`ae504193122357e5`,size:new t.O(8,1)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}toString(){return`CodeGeneratorRequest_RequestedFile_Import_`+super.toString()}},q=class n extends t.S{static Import=K;static _capnp={displayName:`RequestedFile`,id:`cfea0eb02e810062`,size:new t.O(8,2)};static _Imports;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get filename(){return e.t.getText(0,this)}set filename(t){e.t.setText(0,t,this)}_adoptImports(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownImports(){return e.t.disown(this.imports)}get imports(){return e.t.getList(1,n._Imports,this)}_hasImports(){return!e.t.isNull(e.t.getPointer(1,this))}_initImports(t){return e.t.initList(1,n._Imports,t,this)}set imports(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`CodeGeneratorRequest_RequestedFile_`+super.toString()}},J=class n extends t.S{static RequestedFile=q;static _capnp={displayName:`CodeGeneratorRequest`,id:`bfc546f6210ad7ce`,size:new t.O(0,4)};static _Nodes;static _SourceInfo;static _RequestedFiles;_adoptCapnpVersion(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownCapnpVersion(){return e.t.disown(this.capnpVersion)}get capnpVersion(){return e.t.getStruct(2,G,this)}_hasCapnpVersion(){return!e.t.isNull(e.t.getPointer(2,this))}_initCapnpVersion(){return e.t.initStructAt(2,G,this)}set capnpVersion(t){e.t.copyFrom(t,e.t.getPointer(2,this))}_adoptNodes(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownNodes(){return e.t.disown(this.nodes)}get nodes(){return e.t.getList(0,n._Nodes,this)}_hasNodes(){return!e.t.isNull(e.t.getPointer(0,this))}_initNodes(t){return e.t.initList(0,n._Nodes,t,this)}set nodes(t){e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptSourceInfo(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownSourceInfo(){return e.t.disown(this.sourceInfo)}get sourceInfo(){return e.t.getList(3,n._SourceInfo,this)}_hasSourceInfo(){return!e.t.isNull(e.t.getPointer(3,this))}_initSourceInfo(t){return e.t.initList(3,n._SourceInfo,t,this)}set sourceInfo(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptRequestedFiles(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownRequestedFiles(){return e.t.disown(this.requestedFiles)}get requestedFiles(){return e.t.getList(1,n._RequestedFiles,this)}_hasRequestedFiles(){return!e.t.isNull(e.t.getPointer(1,this))}_initRequestedFiles(t){return e.t.initList(1,n._RequestedFiles,t,this)}set requestedFiles(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`CodeGeneratorRequest_`+super.toString()}};s._Members=n.C(o),c._Fields=n.C(b),l._Enumerants=n.C(x),u._Methods=n.C(C),u._Superclasses=n.C(S),m._Parameters=n.C(i),m._NestedNodes=n.C(a),m._Annotations=n.C(U),b._Annotations=n.C(U),x._Annotations=n.C(U),C._ImplicitParameters=n.C(i),C._Annotations=n.C(U),L._Bind=n.C(z),B._Scopes=n.C(L),q._Imports=n.C(K),J._Nodes=n.C(m),J._SourceInfo=n.C(s),J._RequestedFiles=n.C(q),exports.Annotation=U,exports.Brand=B,exports.Brand_Binding=z,exports.Brand_Binding_Which=R,exports.Brand_Scope=L,exports.Brand_Scope_Which=I,exports.CapnpVersion=G,exports.CodeGeneratorRequest=J,exports.CodeGeneratorRequest_RequestedFile=q,exports.CodeGeneratorRequest_RequestedFile_Import=K,exports.ElementSize=W,exports.Enumerant=x,exports.Field=b,exports.Field_Group=g,exports.Field_Ordinal=v,exports.Field_Ordinal_Which=_,exports.Field_Slot=h,exports.Field_Which=y,exports.Method=C,exports.Node=m,exports.Node_Annotation=f,exports.Node_Const=d,exports.Node_Enum=l,exports.Node_Interface=u,exports.Node_NestedNode=a,exports.Node_Parameter=i,exports.Node_SourceInfo=s,exports.Node_SourceInfo_Member=o,exports.Node_Struct=c,exports.Node_Which=p,exports.Superclass=S,exports.Type=F,exports.Type_AnyPointer=N,exports.Type_AnyPointer_ImplicitMethodParameter=j,exports.Type_AnyPointer_Parameter=A,exports.Type_AnyPointer_Unconstrained=k,exports.Type_AnyPointer_Unconstrained_Which=O,exports.Type_AnyPointer_Which=M,exports.Type_Enum=T,exports.Type_Interface=D,exports.Type_List=w,exports.Type_Struct=E,exports.Type_Which=P,exports.Value=H,exports.Value_Which=V,exports._capnpFileId=r;
|
|
1
|
+
const e=require(`./src-CGrmR2BO.cjs`),t=BigInt(`0xa93fc509624c72d9`);var n=class extends e.d{static _capnp={displayName:`Parameter`,id:`b9521bccf10fa3b1`,size:new e.u(0,1)};get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}toString(){return`Node_Parameter_`+super.toString()}},r=class extends e.d{static _capnp={displayName:`NestedNode`,id:`debf55bbfa0fc242`,size:new e.u(8,1)};get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}toString(){return`Node_NestedNode_`+super.toString()}},i=class extends e.d{static _capnp={displayName:`Member`,id:`c2ba9038898e1fa2`,size:new e.u(0,1)};get docComment(){return e.t.getText(0,this)}set docComment(t){e.t.setText(0,t,this)}toString(){return`Node_SourceInfo_Member_`+super.toString()}},a=class t extends e.d{static Member=i;static _capnp={displayName:`SourceInfo`,id:`f38e1de3041357ae`,size:new e.u(8,2)};static _Members;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get docComment(){return e.t.getText(0,this)}set docComment(t){e.t.setText(0,t,this)}_adoptMembers(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownMembers(){return e.t.disown(this.members)}get members(){return e.t.getList(1,t._Members,this)}_hasMembers(){return!e.t.isNull(e.t.getPointer(1,this))}_initMembers(n){return e.t.initList(1,t._Members,n,this)}set members(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Node_SourceInfo_`+super.toString()}},o=class t extends e.d{static _capnp={displayName:`struct`,id:`9ea0b19b37fb4435`,size:new e.u(40,6)};static _Fields;get dataWordCount(){return e.t.getUint16(14,this)}set dataWordCount(t){e.t.setUint16(14,t,this)}get pointerCount(){return e.t.getUint16(24,this)}set pointerCount(t){e.t.setUint16(24,t,this)}get preferredListEncoding(){return e.t.getUint16(26,this)}set preferredListEncoding(t){e.t.setUint16(26,t,this)}get isGroup(){return e.t.getBit(224,this)}set isGroup(t){e.t.setBit(224,t,this)}get discriminantCount(){return e.t.getUint16(30,this)}set discriminantCount(t){e.t.setUint16(30,t,this)}get discriminantOffset(){return e.t.getUint32(32,this)}set discriminantOffset(t){e.t.setUint32(32,t,this)}_adoptFields(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownFields(){return e.t.disown(this.fields)}get fields(){return e.t.getList(3,t._Fields,this)}_hasFields(){return!e.t.isNull(e.t.getPointer(3,this))}_initFields(n){return e.t.initList(3,t._Fields,n,this)}set fields(t){e.t.copyFrom(t,e.t.getPointer(3,this))}toString(){return`Node_Struct_`+super.toString()}},s=class t extends e.d{static _capnp={displayName:`enum`,id:`b54ab3364333f598`,size:new e.u(40,6)};static _Enumerants;_adoptEnumerants(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownEnumerants(){return e.t.disown(this.enumerants)}get enumerants(){return e.t.getList(3,t._Enumerants,this)}_hasEnumerants(){return!e.t.isNull(e.t.getPointer(3,this))}_initEnumerants(n){return e.t.initList(3,t._Enumerants,n,this)}set enumerants(t){e.t.copyFrom(t,e.t.getPointer(3,this))}toString(){return`Node_Enum_`+super.toString()}},c=class t extends e.d{static _capnp={displayName:`interface`,id:`e82753cff0c2218f`,size:new e.u(40,6)};static _Methods;static _Superclasses;_adoptMethods(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownMethods(){return e.t.disown(this.methods)}get methods(){return e.t.getList(3,t._Methods,this)}_hasMethods(){return!e.t.isNull(e.t.getPointer(3,this))}_initMethods(n){return e.t.initList(3,t._Methods,n,this)}set methods(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptSuperclasses(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownSuperclasses(){return e.t.disown(this.superclasses)}get superclasses(){return e.t.getList(4,t._Superclasses,this)}_hasSuperclasses(){return!e.t.isNull(e.t.getPointer(4,this))}_initSuperclasses(n){return e.t.initList(4,t._Superclasses,n,this)}set superclasses(t){e.t.copyFrom(t,e.t.getPointer(4,this))}toString(){return`Node_Interface_`+super.toString()}},l=class extends e.d{static _capnp={displayName:`const`,id:`b18aa5ac7a0d9420`,size:new e.u(40,6)};_adoptType(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(3,N,this)}_hasType(){return!e.t.isNull(e.t.getPointer(3,this))}_initType(){return e.t.initStructAt(3,N,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptValue(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownValue(){return e.t.disown(this.value)}get value(){return e.t.getStruct(4,B,this)}_hasValue(){return!e.t.isNull(e.t.getPointer(4,this))}_initValue(){return e.t.initStructAt(4,B,this)}set value(t){e.t.copyFrom(t,e.t.getPointer(4,this))}toString(){return`Node_Const_`+super.toString()}},u=class extends e.d{static _capnp={displayName:`annotation`,id:`ec1619d4400a0290`,size:new e.u(40,6)};_adoptType(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(3,N,this)}_hasType(){return!e.t.isNull(e.t.getPointer(3,this))}_initType(){return e.t.initStructAt(3,N,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(3,this))}get targetsFile(){return e.t.getBit(112,this)}set targetsFile(t){e.t.setBit(112,t,this)}get targetsConst(){return e.t.getBit(113,this)}set targetsConst(t){e.t.setBit(113,t,this)}get targetsEnum(){return e.t.getBit(114,this)}set targetsEnum(t){e.t.setBit(114,t,this)}get targetsEnumerant(){return e.t.getBit(115,this)}set targetsEnumerant(t){e.t.setBit(115,t,this)}get targetsStruct(){return e.t.getBit(116,this)}set targetsStruct(t){e.t.setBit(116,t,this)}get targetsField(){return e.t.getBit(117,this)}set targetsField(t){e.t.setBit(117,t,this)}get targetsUnion(){return e.t.getBit(118,this)}set targetsUnion(t){e.t.setBit(118,t,this)}get targetsGroup(){return e.t.getBit(119,this)}set targetsGroup(t){e.t.setBit(119,t,this)}get targetsInterface(){return e.t.getBit(120,this)}set targetsInterface(t){e.t.setBit(120,t,this)}get targetsMethod(){return e.t.getBit(121,this)}set targetsMethod(t){e.t.setBit(121,t,this)}get targetsParam(){return e.t.getBit(122,this)}set targetsParam(t){e.t.setBit(122,t,this)}get targetsAnnotation(){return e.t.getBit(123,this)}set targetsAnnotation(t){e.t.setBit(123,t,this)}toString(){return`Node_Annotation_`+super.toString()}};const d={FILE:0,STRUCT:1,ENUM:2,INTERFACE:3,CONST:4,ANNOTATION:5};var f=class t extends e.d{static FILE=d.FILE;static STRUCT=d.STRUCT;static ENUM=d.ENUM;static INTERFACE=d.INTERFACE;static CONST=d.CONST;static ANNOTATION=d.ANNOTATION;static Parameter=n;static NestedNode=r;static SourceInfo=a;static _capnp={displayName:`Node`,id:`e682ab4cf923a417`,size:new e.u(40,6)};static _Parameters;static _NestedNodes;static _Annotations;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get displayName(){return e.t.getText(0,this)}set displayName(t){e.t.setText(0,t,this)}get displayNamePrefixLength(){return e.t.getUint32(8,this)}set displayNamePrefixLength(t){e.t.setUint32(8,t,this)}get scopeId(){return e.t.getUint64(16,this)}set scopeId(t){e.t.setUint64(16,t,this)}_adoptParameters(t){e.t.adopt(t,e.t.getPointer(5,this))}_disownParameters(){return e.t.disown(this.parameters)}get parameters(){return e.t.getList(5,t._Parameters,this)}_hasParameters(){return!e.t.isNull(e.t.getPointer(5,this))}_initParameters(n){return e.t.initList(5,t._Parameters,n,this)}set parameters(t){e.t.copyFrom(t,e.t.getPointer(5,this))}get isGeneric(){return e.t.getBit(288,this)}set isGeneric(t){e.t.setBit(288,t,this)}_adoptNestedNodes(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownNestedNodes(){return e.t.disown(this.nestedNodes)}get nestedNodes(){return e.t.getList(1,t._NestedNodes,this)}_hasNestedNodes(){return!e.t.isNull(e.t.getPointer(1,this))}_initNestedNodes(n){return e.t.initList(1,t._NestedNodes,n,this)}set nestedNodes(t){e.t.copyFrom(t,e.t.getPointer(1,this))}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(2,t._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(2,this))}_initAnnotations(n){return e.t.initList(2,t._Annotations,n,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(2,this))}get _isFile(){return e.t.getUint16(12,this)===0}set file(t){e.t.setUint16(12,0,this)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(12,this),1,this),e.t.getAs(o,this)}_initStruct(){return e.t.setUint16(12,1,this),e.t.getAs(o,this)}get _isStruct(){return e.t.getUint16(12,this)===1}set struct(t){e.t.setUint16(12,1,this)}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(12,this),2,this),e.t.getAs(s,this)}_initEnum(){return e.t.setUint16(12,2,this),e.t.getAs(s,this)}get _isEnum(){return e.t.getUint16(12,this)===2}set enum(t){e.t.setUint16(12,2,this)}get interface(){return e.t.testWhich(`interface`,e.t.getUint16(12,this),3,this),e.t.getAs(c,this)}_initInterface(){return e.t.setUint16(12,3,this),e.t.getAs(c,this)}get _isInterface(){return e.t.getUint16(12,this)===3}set interface(t){e.t.setUint16(12,3,this)}get const(){return e.t.testWhich(`const`,e.t.getUint16(12,this),4,this),e.t.getAs(l,this)}_initConst(){return e.t.setUint16(12,4,this),e.t.getAs(l,this)}get _isConst(){return e.t.getUint16(12,this)===4}set const(t){e.t.setUint16(12,4,this)}get annotation(){return e.t.testWhich(`annotation`,e.t.getUint16(12,this),5,this),e.t.getAs(u,this)}_initAnnotation(){return e.t.setUint16(12,5,this),e.t.getAs(u,this)}get _isAnnotation(){return e.t.getUint16(12,this)===5}set annotation(t){e.t.setUint16(12,5,this)}toString(){return`Node_`+super.toString()}which(){return e.t.getUint16(12,this)}},p=class extends e.d{static _capnp={displayName:`slot`,id:`c42305476bb4746f`,size:new e.u(24,4)};get offset(){return e.t.getUint32(4,this)}set offset(t){e.t.setUint32(4,t,this)}_adoptType(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.getStruct(2,N,this)}_hasType(){return!e.t.isNull(e.t.getPointer(2,this))}_initType(){return e.t.initStructAt(2,N,this)}set type(t){e.t.copyFrom(t,e.t.getPointer(2,this))}_adoptDefaultValue(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownDefaultValue(){return e.t.disown(this.defaultValue)}get defaultValue(){return e.t.getStruct(3,B,this)}_hasDefaultValue(){return!e.t.isNull(e.t.getPointer(3,this))}_initDefaultValue(){return e.t.initStructAt(3,B,this)}set defaultValue(t){e.t.copyFrom(t,e.t.getPointer(3,this))}get hadExplicitDefault(){return e.t.getBit(128,this)}set hadExplicitDefault(t){e.t.setBit(128,t,this)}toString(){return`Field_Slot_`+super.toString()}},m=class extends e.d{static _capnp={displayName:`group`,id:`cafccddb68db1d11`,size:new e.u(24,4)};get typeId(){return e.t.getUint64(16,this)}set typeId(t){e.t.setUint64(16,t,this)}toString(){return`Field_Group_`+super.toString()}};const h={IMPLICIT:0,EXPLICIT:1};var g=class extends e.d{static IMPLICIT=h.IMPLICIT;static EXPLICIT=h.EXPLICIT;static _capnp={displayName:`ordinal`,id:`bb90d5c287870be6`,size:new e.u(24,4)};get _isImplicit(){return e.t.getUint16(10,this)===0}set implicit(t){e.t.setUint16(10,0,this)}get explicit(){return e.t.testWhich(`explicit`,e.t.getUint16(10,this),1,this),e.t.getUint16(12,this)}get _isExplicit(){return e.t.getUint16(10,this)===1}set explicit(t){e.t.setUint16(10,1,this),e.t.setUint16(12,t,this)}toString(){return`Field_Ordinal_`+super.toString()}which(){return e.t.getUint16(10,this)}};const _={SLOT:0,GROUP:1};var v=class t extends e.d{static NO_DISCRIMINANT=65535;static SLOT=_.SLOT;static GROUP=_.GROUP;static _capnp={displayName:`Field`,id:`9aad50a41f4af45f`,size:new e.u(24,4),defaultDiscriminantValue:e.c(65535)};static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,t._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(n){return e.t.initList(1,t._Annotations,n,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}get discriminantValue(){return e.t.getUint16(2,this,t._capnp.defaultDiscriminantValue)}set discriminantValue(n){e.t.setUint16(2,n,this,t._capnp.defaultDiscriminantValue)}get slot(){return e.t.testWhich(`slot`,e.t.getUint16(8,this),0,this),e.t.getAs(p,this)}_initSlot(){return e.t.setUint16(8,0,this),e.t.getAs(p,this)}get _isSlot(){return e.t.getUint16(8,this)===0}set slot(t){e.t.setUint16(8,0,this)}get group(){return e.t.testWhich(`group`,e.t.getUint16(8,this),1,this),e.t.getAs(m,this)}_initGroup(){return e.t.setUint16(8,1,this),e.t.getAs(m,this)}get _isGroup(){return e.t.getUint16(8,this)===1}set group(t){e.t.setUint16(8,1,this)}get ordinal(){return e.t.getAs(g,this)}_initOrdinal(){return e.t.getAs(g,this)}toString(){return`Field_`+super.toString()}which(){return e.t.getUint16(8,this)}},y=class t extends e.d{static _capnp={displayName:`Enumerant`,id:`978a7cebdc549a4d`,size:new e.u(8,2)};static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,t._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(n){return e.t.initList(1,t._Annotations,n,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Enumerant_`+super.toString()}},b=class extends e.d{static _capnp={displayName:`Superclass`,id:`a9962a9ed0a4d7f8`,size:new e.u(8,1)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,R,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,R,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Superclass_`+super.toString()}},x=class t extends e.d{static _capnp={displayName:`Method`,id:`9500cce23b334d80`,size:new e.u(24,5)};static _ImplicitParameters;static _Annotations;get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}get codeOrder(){return e.t.getUint16(0,this)}set codeOrder(t){e.t.setUint16(0,t,this)}_adoptImplicitParameters(t){e.t.adopt(t,e.t.getPointer(4,this))}_disownImplicitParameters(){return e.t.disown(this.implicitParameters)}get implicitParameters(){return e.t.getList(4,t._ImplicitParameters,this)}_hasImplicitParameters(){return!e.t.isNull(e.t.getPointer(4,this))}_initImplicitParameters(n){return e.t.initList(4,t._ImplicitParameters,n,this)}set implicitParameters(t){e.t.copyFrom(t,e.t.getPointer(4,this))}get paramStructType(){return e.t.getUint64(8,this)}set paramStructType(t){e.t.setUint64(8,t,this)}_adoptParamBrand(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownParamBrand(){return e.t.disown(this.paramBrand)}get paramBrand(){return e.t.getStruct(2,R,this)}_hasParamBrand(){return!e.t.isNull(e.t.getPointer(2,this))}_initParamBrand(){return e.t.initStructAt(2,R,this)}set paramBrand(t){e.t.copyFrom(t,e.t.getPointer(2,this))}get resultStructType(){return e.t.getUint64(16,this)}set resultStructType(t){e.t.setUint64(16,t,this)}_adoptResultBrand(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownResultBrand(){return e.t.disown(this.resultBrand)}get resultBrand(){return e.t.getStruct(3,R,this)}_hasResultBrand(){return!e.t.isNull(e.t.getPointer(3,this))}_initResultBrand(){return e.t.initStructAt(3,R,this)}set resultBrand(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptAnnotations(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownAnnotations(){return e.t.disown(this.annotations)}get annotations(){return e.t.getList(1,t._Annotations,this)}_hasAnnotations(){return!e.t.isNull(e.t.getPointer(1,this))}_initAnnotations(n){return e.t.initList(1,t._Annotations,n,this)}set annotations(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`Method_`+super.toString()}},S=class extends e.d{static _capnp={displayName:`list`,id:`87e739250a60ea97`,size:new e.u(24,1)};_adoptElementType(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownElementType(){return e.t.disown(this.elementType)}get elementType(){return e.t.getStruct(0,N,this)}_hasElementType(){return!e.t.isNull(e.t.getPointer(0,this))}_initElementType(){return e.t.initStructAt(0,N,this)}set elementType(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_List_`+super.toString()}},C=class extends e.d{static _capnp={displayName:`enum`,id:`9e0e78711a7f87a9`,size:new e.u(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,R,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,R,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Enum_`+super.toString()}},w=class extends e.d{static _capnp={displayName:`struct`,id:`ac3a6f60ef4cc6d3`,size:new e.u(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,R,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,R,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Struct_`+super.toString()}},T=class extends e.d{static _capnp={displayName:`interface`,id:`ed8bca69f7fb0cbf`,size:new e.u(24,1)};get typeId(){return e.t.getUint64(8,this)}set typeId(t){e.t.setUint64(8,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(0,R,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(0,this))}_initBrand(){return e.t.initStructAt(0,R,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Type_Interface_`+super.toString()}};const E={ANY_KIND:0,STRUCT:1,LIST:2,CAPABILITY:3};var D=class extends e.d{static ANY_KIND=E.ANY_KIND;static STRUCT=E.STRUCT;static LIST=E.LIST;static CAPABILITY=E.CAPABILITY;static _capnp={displayName:`unconstrained`,id:`8e3b5f79fe593656`,size:new e.u(24,1)};get _isAnyKind(){return e.t.getUint16(10,this)===0}set anyKind(t){e.t.setUint16(10,0,this)}get _isStruct(){return e.t.getUint16(10,this)===1}set struct(t){e.t.setUint16(10,1,this)}get _isList(){return e.t.getUint16(10,this)===2}set list(t){e.t.setUint16(10,2,this)}get _isCapability(){return e.t.getUint16(10,this)===3}set capability(t){e.t.setUint16(10,3,this)}toString(){return`Type_AnyPointer_Unconstrained_`+super.toString()}which(){return e.t.getUint16(10,this)}},O=class extends e.d{static _capnp={displayName:`parameter`,id:`9dd1f724f4614a85`,size:new e.u(24,1)};get scopeId(){return e.t.getUint64(16,this)}set scopeId(t){e.t.setUint64(16,t,this)}get parameterIndex(){return e.t.getUint16(10,this)}set parameterIndex(t){e.t.setUint16(10,t,this)}toString(){return`Type_AnyPointer_Parameter_`+super.toString()}},k=class extends e.d{static _capnp={displayName:`implicitMethodParameter`,id:`baefc9120c56e274`,size:new e.u(24,1)};get parameterIndex(){return e.t.getUint16(10,this)}set parameterIndex(t){e.t.setUint16(10,t,this)}toString(){return`Type_AnyPointer_ImplicitMethodParameter_`+super.toString()}};const A={UNCONSTRAINED:0,PARAMETER:1,IMPLICIT_METHOD_PARAMETER:2};var j=class extends e.d{static UNCONSTRAINED=A.UNCONSTRAINED;static PARAMETER=A.PARAMETER;static IMPLICIT_METHOD_PARAMETER=A.IMPLICIT_METHOD_PARAMETER;static _capnp={displayName:`anyPointer`,id:`c2573fe8a23e49f1`,size:new e.u(24,1)};get unconstrained(){return e.t.testWhich(`unconstrained`,e.t.getUint16(8,this),0,this),e.t.getAs(D,this)}_initUnconstrained(){return e.t.setUint16(8,0,this),e.t.getAs(D,this)}get _isUnconstrained(){return e.t.getUint16(8,this)===0}set unconstrained(t){e.t.setUint16(8,0,this)}get parameter(){return e.t.testWhich(`parameter`,e.t.getUint16(8,this),1,this),e.t.getAs(O,this)}_initParameter(){return e.t.setUint16(8,1,this),e.t.getAs(O,this)}get _isParameter(){return e.t.getUint16(8,this)===1}set parameter(t){e.t.setUint16(8,1,this)}get implicitMethodParameter(){return e.t.testWhich(`implicitMethodParameter`,e.t.getUint16(8,this),2,this),e.t.getAs(k,this)}_initImplicitMethodParameter(){return e.t.setUint16(8,2,this),e.t.getAs(k,this)}get _isImplicitMethodParameter(){return e.t.getUint16(8,this)===2}set implicitMethodParameter(t){e.t.setUint16(8,2,this)}toString(){return`Type_AnyPointer_`+super.toString()}which(){return e.t.getUint16(8,this)}};const M={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var N=class extends e.d{static VOID=M.VOID;static BOOL=M.BOOL;static INT8=M.INT8;static INT16=M.INT16;static INT32=M.INT32;static INT64=M.INT64;static UINT8=M.UINT8;static UINT16=M.UINT16;static UINT32=M.UINT32;static UINT64=M.UINT64;static FLOAT32=M.FLOAT32;static FLOAT64=M.FLOAT64;static TEXT=M.TEXT;static DATA=M.DATA;static LIST=M.LIST;static ENUM=M.ENUM;static STRUCT=M.STRUCT;static INTERFACE=M.INTERFACE;static ANY_POINTER=M.ANY_POINTER;static _capnp={displayName:`Type`,id:`d07378ede1f9cc60`,size:new e.u(24,1)};get _isVoid(){return e.t.getUint16(0,this)===0}set void(t){e.t.setUint16(0,0,this)}get _isBool(){return e.t.getUint16(0,this)===1}set bool(t){e.t.setUint16(0,1,this)}get _isInt8(){return e.t.getUint16(0,this)===2}set int8(t){e.t.setUint16(0,2,this)}get _isInt16(){return e.t.getUint16(0,this)===3}set int16(t){e.t.setUint16(0,3,this)}get _isInt32(){return e.t.getUint16(0,this)===4}set int32(t){e.t.setUint16(0,4,this)}get _isInt64(){return e.t.getUint16(0,this)===5}set int64(t){e.t.setUint16(0,5,this)}get _isUint8(){return e.t.getUint16(0,this)===6}set uint8(t){e.t.setUint16(0,6,this)}get _isUint16(){return e.t.getUint16(0,this)===7}set uint16(t){e.t.setUint16(0,7,this)}get _isUint32(){return e.t.getUint16(0,this)===8}set uint32(t){e.t.setUint16(0,8,this)}get _isUint64(){return e.t.getUint16(0,this)===9}set uint64(t){e.t.setUint16(0,9,this)}get _isFloat32(){return e.t.getUint16(0,this)===10}set float32(t){e.t.setUint16(0,10,this)}get _isFloat64(){return e.t.getUint16(0,this)===11}set float64(t){e.t.setUint16(0,11,this)}get _isText(){return e.t.getUint16(0,this)===12}set text(t){e.t.setUint16(0,12,this)}get _isData(){return e.t.getUint16(0,this)===13}set data(t){e.t.setUint16(0,13,this)}get list(){return e.t.testWhich(`list`,e.t.getUint16(0,this),14,this),e.t.getAs(S,this)}_initList(){return e.t.setUint16(0,14,this),e.t.getAs(S,this)}get _isList(){return e.t.getUint16(0,this)===14}set list(t){e.t.setUint16(0,14,this)}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(0,this),15,this),e.t.getAs(C,this)}_initEnum(){return e.t.setUint16(0,15,this),e.t.getAs(C,this)}get _isEnum(){return e.t.getUint16(0,this)===15}set enum(t){e.t.setUint16(0,15,this)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(0,this),16,this),e.t.getAs(w,this)}_initStruct(){return e.t.setUint16(0,16,this),e.t.getAs(w,this)}get _isStruct(){return e.t.getUint16(0,this)===16}set struct(t){e.t.setUint16(0,16,this)}get interface(){return e.t.testWhich(`interface`,e.t.getUint16(0,this),17,this),e.t.getAs(T,this)}_initInterface(){return e.t.setUint16(0,17,this),e.t.getAs(T,this)}get _isInterface(){return e.t.getUint16(0,this)===17}set interface(t){e.t.setUint16(0,17,this)}get anyPointer(){return e.t.testWhich(`anyPointer`,e.t.getUint16(0,this),18,this),e.t.getAs(j,this)}_initAnyPointer(){return e.t.setUint16(0,18,this),e.t.getAs(j,this)}get _isAnyPointer(){return e.t.getUint16(0,this)===18}set anyPointer(t){e.t.setUint16(0,18,this)}toString(){return`Type_`+super.toString()}which(){return e.t.getUint16(0,this)}};const P={BIND:0,INHERIT:1};var F=class t extends e.d{static BIND=P.BIND;static INHERIT=P.INHERIT;static _capnp={displayName:`Scope`,id:`abd73485a9636bc9`,size:new e.u(16,1)};static _Bind;get scopeId(){return e.t.getUint64(0,this)}set scopeId(t){e.t.setUint64(0,t,this)}_adoptBind(t){e.t.setUint16(8,0,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownBind(){return e.t.disown(this.bind)}get bind(){return e.t.testWhich(`bind`,e.t.getUint16(8,this),0,this),e.t.getList(0,t._Bind,this)}_hasBind(){return!e.t.isNull(e.t.getPointer(0,this))}_initBind(n){return e.t.setUint16(8,0,this),e.t.initList(0,t._Bind,n,this)}get _isBind(){return e.t.getUint16(8,this)===0}set bind(t){e.t.setUint16(8,0,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get _isInherit(){return e.t.getUint16(8,this)===1}set inherit(t){e.t.setUint16(8,1,this)}toString(){return`Brand_Scope_`+super.toString()}which(){return e.t.getUint16(8,this)}};const I={UNBOUND:0,TYPE:1};var L=class extends e.d{static UNBOUND=I.UNBOUND;static TYPE=I.TYPE;static _capnp={displayName:`Binding`,id:`c863cd16969ee7fc`,size:new e.u(8,1)};get _isUnbound(){return e.t.getUint16(0,this)===0}set unbound(t){e.t.setUint16(0,0,this)}_adoptType(t){e.t.setUint16(0,1,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownType(){return e.t.disown(this.type)}get type(){return e.t.testWhich(`type`,e.t.getUint16(0,this),1,this),e.t.getStruct(0,N,this)}_hasType(){return!e.t.isNull(e.t.getPointer(0,this))}_initType(){return e.t.setUint16(0,1,this),e.t.initStructAt(0,N,this)}get _isType(){return e.t.getUint16(0,this)===1}set type(t){e.t.setUint16(0,1,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Brand_Binding_`+super.toString()}which(){return e.t.getUint16(0,this)}},R=class t extends e.d{static Scope=F;static Binding=L;static _capnp={displayName:`Brand`,id:`903455f06065422b`,size:new e.u(0,1)};static _Scopes;_adoptScopes(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownScopes(){return e.t.disown(this.scopes)}get scopes(){return e.t.getList(0,t._Scopes,this)}_hasScopes(){return!e.t.isNull(e.t.getPointer(0,this))}_initScopes(n){return e.t.initList(0,t._Scopes,n,this)}set scopes(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Brand_`+super.toString()}};const z={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var B=class extends e.d{static VOID=z.VOID;static BOOL=z.BOOL;static INT8=z.INT8;static INT16=z.INT16;static INT32=z.INT32;static INT64=z.INT64;static UINT8=z.UINT8;static UINT16=z.UINT16;static UINT32=z.UINT32;static UINT64=z.UINT64;static FLOAT32=z.FLOAT32;static FLOAT64=z.FLOAT64;static TEXT=z.TEXT;static DATA=z.DATA;static LIST=z.LIST;static ENUM=z.ENUM;static STRUCT=z.STRUCT;static INTERFACE=z.INTERFACE;static ANY_POINTER=z.ANY_POINTER;static _capnp={displayName:`Value`,id:`ce23dcd2d7b00c9b`,size:new e.u(16,1)};get _isVoid(){return e.t.getUint16(0,this)===0}set void(t){e.t.setUint16(0,0,this)}get bool(){return e.t.testWhich(`bool`,e.t.getUint16(0,this),1,this),e.t.getBit(16,this)}get _isBool(){return e.t.getUint16(0,this)===1}set bool(t){e.t.setUint16(0,1,this),e.t.setBit(16,t,this)}get int8(){return e.t.testWhich(`int8`,e.t.getUint16(0,this),2,this),e.t.getInt8(2,this)}get _isInt8(){return e.t.getUint16(0,this)===2}set int8(t){e.t.setUint16(0,2,this),e.t.setInt8(2,t,this)}get int16(){return e.t.testWhich(`int16`,e.t.getUint16(0,this),3,this),e.t.getInt16(2,this)}get _isInt16(){return e.t.getUint16(0,this)===3}set int16(t){e.t.setUint16(0,3,this),e.t.setInt16(2,t,this)}get int32(){return e.t.testWhich(`int32`,e.t.getUint16(0,this),4,this),e.t.getInt32(4,this)}get _isInt32(){return e.t.getUint16(0,this)===4}set int32(t){e.t.setUint16(0,4,this),e.t.setInt32(4,t,this)}get int64(){return e.t.testWhich(`int64`,e.t.getUint16(0,this),5,this),e.t.getInt64(8,this)}get _isInt64(){return e.t.getUint16(0,this)===5}set int64(t){e.t.setUint16(0,5,this),e.t.setInt64(8,t,this)}get uint8(){return e.t.testWhich(`uint8`,e.t.getUint16(0,this),6,this),e.t.getUint8(2,this)}get _isUint8(){return e.t.getUint16(0,this)===6}set uint8(t){e.t.setUint16(0,6,this),e.t.setUint8(2,t,this)}get uint16(){return e.t.testWhich(`uint16`,e.t.getUint16(0,this),7,this),e.t.getUint16(2,this)}get _isUint16(){return e.t.getUint16(0,this)===7}set uint16(t){e.t.setUint16(0,7,this),e.t.setUint16(2,t,this)}get uint32(){return e.t.testWhich(`uint32`,e.t.getUint16(0,this),8,this),e.t.getUint32(4,this)}get _isUint32(){return e.t.getUint16(0,this)===8}set uint32(t){e.t.setUint16(0,8,this),e.t.setUint32(4,t,this)}get uint64(){return e.t.testWhich(`uint64`,e.t.getUint16(0,this),9,this),e.t.getUint64(8,this)}get _isUint64(){return e.t.getUint16(0,this)===9}set uint64(t){e.t.setUint16(0,9,this),e.t.setUint64(8,t,this)}get float32(){return e.t.testWhich(`float32`,e.t.getUint16(0,this),10,this),e.t.getFloat32(4,this)}get _isFloat32(){return e.t.getUint16(0,this)===10}set float32(t){e.t.setUint16(0,10,this),e.t.setFloat32(4,t,this)}get float64(){return e.t.testWhich(`float64`,e.t.getUint16(0,this),11,this),e.t.getFloat64(8,this)}get _isFloat64(){return e.t.getUint16(0,this)===11}set float64(t){e.t.setUint16(0,11,this),e.t.setFloat64(8,t,this)}get text(){return e.t.testWhich(`text`,e.t.getUint16(0,this),12,this),e.t.getText(0,this)}get _isText(){return e.t.getUint16(0,this)===12}set text(t){e.t.setUint16(0,12,this),e.t.setText(0,t,this)}_adoptData(t){e.t.setUint16(0,13,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownData(){return e.t.disown(this.data)}get data(){return e.t.testWhich(`data`,e.t.getUint16(0,this),13,this),e.t.getData(0,this)}_hasData(){return!e.t.isNull(e.t.getPointer(0,this))}_initData(t){return e.t.setUint16(0,13,this),e.t.initData(0,t,this)}get _isData(){return e.t.getUint16(0,this)===13}set data(t){e.t.setUint16(0,13,this),e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptList(t){e.t.setUint16(0,14,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownList(){return e.t.disown(this.list)}get list(){return e.t.testWhich(`list`,e.t.getUint16(0,this),14,this),e.t.getPointer(0,this)}_hasList(){return!e.t.isNull(e.t.getPointer(0,this))}get _isList(){return e.t.getUint16(0,this)===14}set list(t){e.t.setUint16(0,14,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get enum(){return e.t.testWhich(`enum`,e.t.getUint16(0,this),15,this),e.t.getUint16(2,this)}get _isEnum(){return e.t.getUint16(0,this)===15}set enum(t){e.t.setUint16(0,15,this),e.t.setUint16(2,t,this)}_adoptStruct(t){e.t.setUint16(0,16,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownStruct(){return e.t.disown(this.struct)}get struct(){return e.t.testWhich(`struct`,e.t.getUint16(0,this),16,this),e.t.getPointer(0,this)}_hasStruct(){return!e.t.isNull(e.t.getPointer(0,this))}get _isStruct(){return e.t.getUint16(0,this)===16}set struct(t){e.t.setUint16(0,16,this),e.t.copyFrom(t,e.t.getPointer(0,this))}get _isInterface(){return e.t.getUint16(0,this)===17}set interface(t){e.t.setUint16(0,17,this)}_adoptAnyPointer(t){e.t.setUint16(0,18,this),e.t.adopt(t,e.t.getPointer(0,this))}_disownAnyPointer(){return e.t.disown(this.anyPointer)}get anyPointer(){return e.t.testWhich(`anyPointer`,e.t.getUint16(0,this),18,this),e.t.getPointer(0,this)}_hasAnyPointer(){return!e.t.isNull(e.t.getPointer(0,this))}get _isAnyPointer(){return e.t.getUint16(0,this)===18}set anyPointer(t){e.t.setUint16(0,18,this),e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Value_`+super.toString()}which(){return e.t.getUint16(0,this)}},V=class extends e.d{static _capnp={displayName:`Annotation`,id:`f1c8950dab257542`,size:new e.u(8,2)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}_adoptBrand(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownBrand(){return e.t.disown(this.brand)}get brand(){return e.t.getStruct(1,R,this)}_hasBrand(){return!e.t.isNull(e.t.getPointer(1,this))}_initBrand(){return e.t.initStructAt(1,R,this)}set brand(t){e.t.copyFrom(t,e.t.getPointer(1,this))}_adoptValue(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownValue(){return e.t.disown(this.value)}get value(){return e.t.getStruct(0,B,this)}_hasValue(){return!e.t.isNull(e.t.getPointer(0,this))}_initValue(){return e.t.initStructAt(0,B,this)}set value(t){e.t.copyFrom(t,e.t.getPointer(0,this))}toString(){return`Annotation_`+super.toString()}};const H={EMPTY:0,BIT:1,BYTE:2,TWO_BYTES:3,FOUR_BYTES:4,EIGHT_BYTES:5,POINTER:6,INLINE_COMPOSITE:7};var U=class extends e.d{static _capnp={displayName:`CapnpVersion`,id:`d85d305b7d839963`,size:new e.u(8,0)};get major(){return e.t.getUint16(0,this)}set major(t){e.t.setUint16(0,t,this)}get minor(){return e.t.getUint8(2,this)}set minor(t){e.t.setUint8(2,t,this)}get micro(){return e.t.getUint8(3,this)}set micro(t){e.t.setUint8(3,t,this)}toString(){return`CapnpVersion_`+super.toString()}},W=class extends e.d{static _capnp={displayName:`Import`,id:`ae504193122357e5`,size:new e.u(8,1)};get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get name(){return e.t.getText(0,this)}set name(t){e.t.setText(0,t,this)}toString(){return`CodeGeneratorRequest_RequestedFile_Import_`+super.toString()}},G=class t extends e.d{static Import=W;static _capnp={displayName:`RequestedFile`,id:`cfea0eb02e810062`,size:new e.u(8,2)};static _Imports;get id(){return e.t.getUint64(0,this)}set id(t){e.t.setUint64(0,t,this)}get filename(){return e.t.getText(0,this)}set filename(t){e.t.setText(0,t,this)}_adoptImports(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownImports(){return e.t.disown(this.imports)}get imports(){return e.t.getList(1,t._Imports,this)}_hasImports(){return!e.t.isNull(e.t.getPointer(1,this))}_initImports(n){return e.t.initList(1,t._Imports,n,this)}set imports(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`CodeGeneratorRequest_RequestedFile_`+super.toString()}},K=class t extends e.d{static RequestedFile=G;static _capnp={displayName:`CodeGeneratorRequest`,id:`bfc546f6210ad7ce`,size:new e.u(0,4)};static _Nodes;static _SourceInfo;static _RequestedFiles;_adoptCapnpVersion(t){e.t.adopt(t,e.t.getPointer(2,this))}_disownCapnpVersion(){return e.t.disown(this.capnpVersion)}get capnpVersion(){return e.t.getStruct(2,U,this)}_hasCapnpVersion(){return!e.t.isNull(e.t.getPointer(2,this))}_initCapnpVersion(){return e.t.initStructAt(2,U,this)}set capnpVersion(t){e.t.copyFrom(t,e.t.getPointer(2,this))}_adoptNodes(t){e.t.adopt(t,e.t.getPointer(0,this))}_disownNodes(){return e.t.disown(this.nodes)}get nodes(){return e.t.getList(0,t._Nodes,this)}_hasNodes(){return!e.t.isNull(e.t.getPointer(0,this))}_initNodes(n){return e.t.initList(0,t._Nodes,n,this)}set nodes(t){e.t.copyFrom(t,e.t.getPointer(0,this))}_adoptSourceInfo(t){e.t.adopt(t,e.t.getPointer(3,this))}_disownSourceInfo(){return e.t.disown(this.sourceInfo)}get sourceInfo(){return e.t.getList(3,t._SourceInfo,this)}_hasSourceInfo(){return!e.t.isNull(e.t.getPointer(3,this))}_initSourceInfo(n){return e.t.initList(3,t._SourceInfo,n,this)}set sourceInfo(t){e.t.copyFrom(t,e.t.getPointer(3,this))}_adoptRequestedFiles(t){e.t.adopt(t,e.t.getPointer(1,this))}_disownRequestedFiles(){return e.t.disown(this.requestedFiles)}get requestedFiles(){return e.t.getList(1,t._RequestedFiles,this)}_hasRequestedFiles(){return!e.t.isNull(e.t.getPointer(1,this))}_initRequestedFiles(n){return e.t.initList(1,t._RequestedFiles,n,this)}set requestedFiles(t){e.t.copyFrom(t,e.t.getPointer(1,this))}toString(){return`CodeGeneratorRequest_`+super.toString()}};a._Members=e.o(i),o._Fields=e.o(v),s._Enumerants=e.o(y),c._Methods=e.o(x),c._Superclasses=e.o(b),f._Parameters=e.o(n),f._NestedNodes=e.o(r),f._Annotations=e.o(V),v._Annotations=e.o(V),y._Annotations=e.o(V),x._ImplicitParameters=e.o(n),x._Annotations=e.o(V),F._Bind=e.o(L),R._Scopes=e.o(F),G._Imports=e.o(W),K._Nodes=e.o(f),K._SourceInfo=e.o(a),K._RequestedFiles=e.o(G),exports.Annotation=V,exports.Brand=R,exports.Brand_Binding=L,exports.Brand_Binding_Which=I,exports.Brand_Scope=F,exports.Brand_Scope_Which=P,exports.CapnpVersion=U,exports.CodeGeneratorRequest=K,exports.CodeGeneratorRequest_RequestedFile=G,exports.CodeGeneratorRequest_RequestedFile_Import=W,exports.ElementSize=H,exports.Enumerant=y,exports.Field=v,exports.Field_Group=m,exports.Field_Ordinal=g,exports.Field_Ordinal_Which=h,exports.Field_Slot=p,exports.Field_Which=_,exports.Method=x,exports.Node=f,exports.Node_Annotation=u,exports.Node_Const=l,exports.Node_Enum=s,exports.Node_Interface=c,exports.Node_NestedNode=r,exports.Node_Parameter=n,exports.Node_SourceInfo=a,exports.Node_SourceInfo_Member=i,exports.Node_Struct=o,exports.Node_Which=d,exports.Superclass=b,exports.Type=N,exports.Type_AnyPointer=j,exports.Type_AnyPointer_ImplicitMethodParameter=k,exports.Type_AnyPointer_Parameter=O,exports.Type_AnyPointer_Unconstrained=D,exports.Type_AnyPointer_Unconstrained_Which=E,exports.Type_AnyPointer_Which=A,exports.Type_Enum=C,exports.Type_Interface=T,exports.Type_List=S,exports.Type_Struct=w,exports.Type_Which=M,exports.Value=B,exports.Value_Which=z,exports._capnpFileId=t;
|
package/schemas/schema.d.mts
CHANGED
package/schemas/schema.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,l as t,r as n,s as r,t as i}from"./src-CtkguuVd.mjs";const a=BigInt(`0xa93fc509624c72d9`);var o=class extends r{static _capnp={displayName:`Parameter`,id:`b9521bccf10fa3b1`,size:new n(0,1)};get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}toString(){return`Node_Parameter_`+super.toString()}},s=class extends r{static _capnp={displayName:`NestedNode`,id:`debf55bbfa0fc242`,size:new n(8,1)};get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}toString(){return`Node_NestedNode_`+super.toString()}},c=class extends r{static _capnp={displayName:`Member`,id:`c2ba9038898e1fa2`,size:new n(0,1)};get docComment(){return e.getText(0,this)}set docComment(t){e.setText(0,t,this)}toString(){return`Node_SourceInfo_Member_`+super.toString()}},l=class t extends r{static Member=c;static _capnp={displayName:`SourceInfo`,id:`f38e1de3041357ae`,size:new n(8,2)};static _Members;get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}get docComment(){return e.getText(0,this)}set docComment(t){e.setText(0,t,this)}_adoptMembers(t){e.adopt(t,e.getPointer(1,this))}_disownMembers(){return e.disown(this.members)}get members(){return e.getList(1,t._Members,this)}_hasMembers(){return!e.isNull(e.getPointer(1,this))}_initMembers(n){return e.initList(1,t._Members,n,this)}set members(t){e.copyFrom(t,e.getPointer(1,this))}toString(){return`Node_SourceInfo_`+super.toString()}},u=class t extends r{static _capnp={displayName:`struct`,id:`9ea0b19b37fb4435`,size:new n(40,6)};static _Fields;get dataWordCount(){return e.getUint16(14,this)}set dataWordCount(t){e.setUint16(14,t,this)}get pointerCount(){return e.getUint16(24,this)}set pointerCount(t){e.setUint16(24,t,this)}get preferredListEncoding(){return e.getUint16(26,this)}set preferredListEncoding(t){e.setUint16(26,t,this)}get isGroup(){return e.getBit(224,this)}set isGroup(t){e.setBit(224,t,this)}get discriminantCount(){return e.getUint16(30,this)}set discriminantCount(t){e.setUint16(30,t,this)}get discriminantOffset(){return e.getUint32(32,this)}set discriminantOffset(t){e.setUint32(32,t,this)}_adoptFields(t){e.adopt(t,e.getPointer(3,this))}_disownFields(){return e.disown(this.fields)}get fields(){return e.getList(3,t._Fields,this)}_hasFields(){return!e.isNull(e.getPointer(3,this))}_initFields(n){return e.initList(3,t._Fields,n,this)}set fields(t){e.copyFrom(t,e.getPointer(3,this))}toString(){return`Node_Struct_`+super.toString()}},d=class t extends r{static _capnp={displayName:`enum`,id:`b54ab3364333f598`,size:new n(40,6)};static _Enumerants;_adoptEnumerants(t){e.adopt(t,e.getPointer(3,this))}_disownEnumerants(){return e.disown(this.enumerants)}get enumerants(){return e.getList(3,t._Enumerants,this)}_hasEnumerants(){return!e.isNull(e.getPointer(3,this))}_initEnumerants(n){return e.initList(3,t._Enumerants,n,this)}set enumerants(t){e.copyFrom(t,e.getPointer(3,this))}toString(){return`Node_Enum_`+super.toString()}},f=class t extends r{static _capnp={displayName:`interface`,id:`e82753cff0c2218f`,size:new n(40,6)};static _Methods;static _Superclasses;_adoptMethods(t){e.adopt(t,e.getPointer(3,this))}_disownMethods(){return e.disown(this.methods)}get methods(){return e.getList(3,t._Methods,this)}_hasMethods(){return!e.isNull(e.getPointer(3,this))}_initMethods(n){return e.initList(3,t._Methods,n,this)}set methods(t){e.copyFrom(t,e.getPointer(3,this))}_adoptSuperclasses(t){e.adopt(t,e.getPointer(4,this))}_disownSuperclasses(){return e.disown(this.superclasses)}get superclasses(){return e.getList(4,t._Superclasses,this)}_hasSuperclasses(){return!e.isNull(e.getPointer(4,this))}_initSuperclasses(n){return e.initList(4,t._Superclasses,n,this)}set superclasses(t){e.copyFrom(t,e.getPointer(4,this))}toString(){return`Node_Interface_`+super.toString()}},p=class extends r{static _capnp={displayName:`const`,id:`b18aa5ac7a0d9420`,size:new n(40,6)};_adoptType(t){e.adopt(t,e.getPointer(3,this))}_disownType(){return e.disown(this.type)}get type(){return e.getStruct(3,L,this)}_hasType(){return!e.isNull(e.getPointer(3,this))}_initType(){return e.initStructAt(3,L,this)}set type(t){e.copyFrom(t,e.getPointer(3,this))}_adoptValue(t){e.adopt(t,e.getPointer(4,this))}_disownValue(){return e.disown(this.value)}get value(){return e.getStruct(4,W,this)}_hasValue(){return!e.isNull(e.getPointer(4,this))}_initValue(){return e.initStructAt(4,W,this)}set value(t){e.copyFrom(t,e.getPointer(4,this))}toString(){return`Node_Const_`+super.toString()}},m=class extends r{static _capnp={displayName:`annotation`,id:`ec1619d4400a0290`,size:new n(40,6)};_adoptType(t){e.adopt(t,e.getPointer(3,this))}_disownType(){return e.disown(this.type)}get type(){return e.getStruct(3,L,this)}_hasType(){return!e.isNull(e.getPointer(3,this))}_initType(){return e.initStructAt(3,L,this)}set type(t){e.copyFrom(t,e.getPointer(3,this))}get targetsFile(){return e.getBit(112,this)}set targetsFile(t){e.setBit(112,t,this)}get targetsConst(){return e.getBit(113,this)}set targetsConst(t){e.setBit(113,t,this)}get targetsEnum(){return e.getBit(114,this)}set targetsEnum(t){e.setBit(114,t,this)}get targetsEnumerant(){return e.getBit(115,this)}set targetsEnumerant(t){e.setBit(115,t,this)}get targetsStruct(){return e.getBit(116,this)}set targetsStruct(t){e.setBit(116,t,this)}get targetsField(){return e.getBit(117,this)}set targetsField(t){e.setBit(117,t,this)}get targetsUnion(){return e.getBit(118,this)}set targetsUnion(t){e.setBit(118,t,this)}get targetsGroup(){return e.getBit(119,this)}set targetsGroup(t){e.setBit(119,t,this)}get targetsInterface(){return e.getBit(120,this)}set targetsInterface(t){e.setBit(120,t,this)}get targetsMethod(){return e.getBit(121,this)}set targetsMethod(t){e.setBit(121,t,this)}get targetsParam(){return e.getBit(122,this)}set targetsParam(t){e.setBit(122,t,this)}get targetsAnnotation(){return e.getBit(123,this)}set targetsAnnotation(t){e.setBit(123,t,this)}toString(){return`Node_Annotation_`+super.toString()}};const h={FILE:0,STRUCT:1,ENUM:2,INTERFACE:3,CONST:4,ANNOTATION:5};var g=class t extends r{static FILE=h.FILE;static STRUCT=h.STRUCT;static ENUM=h.ENUM;static INTERFACE=h.INTERFACE;static CONST=h.CONST;static ANNOTATION=h.ANNOTATION;static Parameter=o;static NestedNode=s;static SourceInfo=l;static _capnp={displayName:`Node`,id:`e682ab4cf923a417`,size:new n(40,6)};static _Parameters;static _NestedNodes;static _Annotations;get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}get displayName(){return e.getText(0,this)}set displayName(t){e.setText(0,t,this)}get displayNamePrefixLength(){return e.getUint32(8,this)}set displayNamePrefixLength(t){e.setUint32(8,t,this)}get scopeId(){return e.getUint64(16,this)}set scopeId(t){e.setUint64(16,t,this)}_adoptParameters(t){e.adopt(t,e.getPointer(5,this))}_disownParameters(){return e.disown(this.parameters)}get parameters(){return e.getList(5,t._Parameters,this)}_hasParameters(){return!e.isNull(e.getPointer(5,this))}_initParameters(n){return e.initList(5,t._Parameters,n,this)}set parameters(t){e.copyFrom(t,e.getPointer(5,this))}get isGeneric(){return e.getBit(288,this)}set isGeneric(t){e.setBit(288,t,this)}_adoptNestedNodes(t){e.adopt(t,e.getPointer(1,this))}_disownNestedNodes(){return e.disown(this.nestedNodes)}get nestedNodes(){return e.getList(1,t._NestedNodes,this)}_hasNestedNodes(){return!e.isNull(e.getPointer(1,this))}_initNestedNodes(n){return e.initList(1,t._NestedNodes,n,this)}set nestedNodes(t){e.copyFrom(t,e.getPointer(1,this))}_adoptAnnotations(t){e.adopt(t,e.getPointer(2,this))}_disownAnnotations(){return e.disown(this.annotations)}get annotations(){return e.getList(2,t._Annotations,this)}_hasAnnotations(){return!e.isNull(e.getPointer(2,this))}_initAnnotations(n){return e.initList(2,t._Annotations,n,this)}set annotations(t){e.copyFrom(t,e.getPointer(2,this))}get _isFile(){return e.getUint16(12,this)===0}set file(t){e.setUint16(12,0,this)}get struct(){return e.testWhich(`struct`,e.getUint16(12,this),1,this),e.getAs(u,this)}_initStruct(){return e.setUint16(12,1,this),e.getAs(u,this)}get _isStruct(){return e.getUint16(12,this)===1}set struct(t){e.setUint16(12,1,this)}get enum(){return e.testWhich(`enum`,e.getUint16(12,this),2,this),e.getAs(d,this)}_initEnum(){return e.setUint16(12,2,this),e.getAs(d,this)}get _isEnum(){return e.getUint16(12,this)===2}set enum(t){e.setUint16(12,2,this)}get interface(){return e.testWhich(`interface`,e.getUint16(12,this),3,this),e.getAs(f,this)}_initInterface(){return e.setUint16(12,3,this),e.getAs(f,this)}get _isInterface(){return e.getUint16(12,this)===3}set interface(t){e.setUint16(12,3,this)}get const(){return e.testWhich(`const`,e.getUint16(12,this),4,this),e.getAs(p,this)}_initConst(){return e.setUint16(12,4,this),e.getAs(p,this)}get _isConst(){return e.getUint16(12,this)===4}set const(t){e.setUint16(12,4,this)}get annotation(){return e.testWhich(`annotation`,e.getUint16(12,this),5,this),e.getAs(m,this)}_initAnnotation(){return e.setUint16(12,5,this),e.getAs(m,this)}get _isAnnotation(){return e.getUint16(12,this)===5}set annotation(t){e.setUint16(12,5,this)}toString(){return`Node_`+super.toString()}which(){return e.getUint16(12,this)}},_=class extends r{static _capnp={displayName:`slot`,id:`c42305476bb4746f`,size:new n(24,4)};get offset(){return e.getUint32(4,this)}set offset(t){e.setUint32(4,t,this)}_adoptType(t){e.adopt(t,e.getPointer(2,this))}_disownType(){return e.disown(this.type)}get type(){return e.getStruct(2,L,this)}_hasType(){return!e.isNull(e.getPointer(2,this))}_initType(){return e.initStructAt(2,L,this)}set type(t){e.copyFrom(t,e.getPointer(2,this))}_adoptDefaultValue(t){e.adopt(t,e.getPointer(3,this))}_disownDefaultValue(){return e.disown(this.defaultValue)}get defaultValue(){return e.getStruct(3,W,this)}_hasDefaultValue(){return!e.isNull(e.getPointer(3,this))}_initDefaultValue(){return e.initStructAt(3,W,this)}set defaultValue(t){e.copyFrom(t,e.getPointer(3,this))}get hadExplicitDefault(){return e.getBit(128,this)}set hadExplicitDefault(t){e.setBit(128,t,this)}toString(){return`Field_Slot_`+super.toString()}},v=class extends r{static _capnp={displayName:`group`,id:`cafccddb68db1d11`,size:new n(24,4)};get typeId(){return e.getUint64(16,this)}set typeId(t){e.setUint64(16,t,this)}toString(){return`Field_Group_`+super.toString()}};const y={IMPLICIT:0,EXPLICIT:1};var b=class extends r{static IMPLICIT=y.IMPLICIT;static EXPLICIT=y.EXPLICIT;static _capnp={displayName:`ordinal`,id:`bb90d5c287870be6`,size:new n(24,4)};get _isImplicit(){return e.getUint16(10,this)===0}set implicit(t){e.setUint16(10,0,this)}get explicit(){return e.testWhich(`explicit`,e.getUint16(10,this),1,this),e.getUint16(12,this)}get _isExplicit(){return e.getUint16(10,this)===1}set explicit(t){e.setUint16(10,1,this),e.setUint16(12,t,this)}toString(){return`Field_Ordinal_`+super.toString()}which(){return e.getUint16(10,this)}};const x={SLOT:0,GROUP:1};var S=class i extends r{static NO_DISCRIMINANT=65535;static SLOT=x.SLOT;static GROUP=x.GROUP;static _capnp={displayName:`Field`,id:`9aad50a41f4af45f`,size:new n(24,4),defaultDiscriminantValue:t(65535)};static _Annotations;get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}get codeOrder(){return e.getUint16(0,this)}set codeOrder(t){e.setUint16(0,t,this)}_adoptAnnotations(t){e.adopt(t,e.getPointer(1,this))}_disownAnnotations(){return e.disown(this.annotations)}get annotations(){return e.getList(1,i._Annotations,this)}_hasAnnotations(){return!e.isNull(e.getPointer(1,this))}_initAnnotations(t){return e.initList(1,i._Annotations,t,this)}set annotations(t){e.copyFrom(t,e.getPointer(1,this))}get discriminantValue(){return e.getUint16(2,this,i._capnp.defaultDiscriminantValue)}set discriminantValue(t){e.setUint16(2,t,this,i._capnp.defaultDiscriminantValue)}get slot(){return e.testWhich(`slot`,e.getUint16(8,this),0,this),e.getAs(_,this)}_initSlot(){return e.setUint16(8,0,this),e.getAs(_,this)}get _isSlot(){return e.getUint16(8,this)===0}set slot(t){e.setUint16(8,0,this)}get group(){return e.testWhich(`group`,e.getUint16(8,this),1,this),e.getAs(v,this)}_initGroup(){return e.setUint16(8,1,this),e.getAs(v,this)}get _isGroup(){return e.getUint16(8,this)===1}set group(t){e.setUint16(8,1,this)}get ordinal(){return e.getAs(b,this)}_initOrdinal(){return e.getAs(b,this)}toString(){return`Field_`+super.toString()}which(){return e.getUint16(8,this)}},C=class t extends r{static _capnp={displayName:`Enumerant`,id:`978a7cebdc549a4d`,size:new n(8,2)};static _Annotations;get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}get codeOrder(){return e.getUint16(0,this)}set codeOrder(t){e.setUint16(0,t,this)}_adoptAnnotations(t){e.adopt(t,e.getPointer(1,this))}_disownAnnotations(){return e.disown(this.annotations)}get annotations(){return e.getList(1,t._Annotations,this)}_hasAnnotations(){return!e.isNull(e.getPointer(1,this))}_initAnnotations(n){return e.initList(1,t._Annotations,n,this)}set annotations(t){e.copyFrom(t,e.getPointer(1,this))}toString(){return`Enumerant_`+super.toString()}},w=class extends r{static _capnp={displayName:`Superclass`,id:`a9962a9ed0a4d7f8`,size:new n(8,1)};get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}_adoptBrand(t){e.adopt(t,e.getPointer(0,this))}_disownBrand(){return e.disown(this.brand)}get brand(){return e.getStruct(0,H,this)}_hasBrand(){return!e.isNull(e.getPointer(0,this))}_initBrand(){return e.initStructAt(0,H,this)}set brand(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Superclass_`+super.toString()}},T=class t extends r{static _capnp={displayName:`Method`,id:`9500cce23b334d80`,size:new n(24,5)};static _ImplicitParameters;static _Annotations;get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}get codeOrder(){return e.getUint16(0,this)}set codeOrder(t){e.setUint16(0,t,this)}_adoptImplicitParameters(t){e.adopt(t,e.getPointer(4,this))}_disownImplicitParameters(){return e.disown(this.implicitParameters)}get implicitParameters(){return e.getList(4,t._ImplicitParameters,this)}_hasImplicitParameters(){return!e.isNull(e.getPointer(4,this))}_initImplicitParameters(n){return e.initList(4,t._ImplicitParameters,n,this)}set implicitParameters(t){e.copyFrom(t,e.getPointer(4,this))}get paramStructType(){return e.getUint64(8,this)}set paramStructType(t){e.setUint64(8,t,this)}_adoptParamBrand(t){e.adopt(t,e.getPointer(2,this))}_disownParamBrand(){return e.disown(this.paramBrand)}get paramBrand(){return e.getStruct(2,H,this)}_hasParamBrand(){return!e.isNull(e.getPointer(2,this))}_initParamBrand(){return e.initStructAt(2,H,this)}set paramBrand(t){e.copyFrom(t,e.getPointer(2,this))}get resultStructType(){return e.getUint64(16,this)}set resultStructType(t){e.setUint64(16,t,this)}_adoptResultBrand(t){e.adopt(t,e.getPointer(3,this))}_disownResultBrand(){return e.disown(this.resultBrand)}get resultBrand(){return e.getStruct(3,H,this)}_hasResultBrand(){return!e.isNull(e.getPointer(3,this))}_initResultBrand(){return e.initStructAt(3,H,this)}set resultBrand(t){e.copyFrom(t,e.getPointer(3,this))}_adoptAnnotations(t){e.adopt(t,e.getPointer(1,this))}_disownAnnotations(){return e.disown(this.annotations)}get annotations(){return e.getList(1,t._Annotations,this)}_hasAnnotations(){return!e.isNull(e.getPointer(1,this))}_initAnnotations(n){return e.initList(1,t._Annotations,n,this)}set annotations(t){e.copyFrom(t,e.getPointer(1,this))}toString(){return`Method_`+super.toString()}},E=class extends r{static _capnp={displayName:`list`,id:`87e739250a60ea97`,size:new n(24,1)};_adoptElementType(t){e.adopt(t,e.getPointer(0,this))}_disownElementType(){return e.disown(this.elementType)}get elementType(){return e.getStruct(0,L,this)}_hasElementType(){return!e.isNull(e.getPointer(0,this))}_initElementType(){return e.initStructAt(0,L,this)}set elementType(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Type_List_`+super.toString()}},D=class extends r{static _capnp={displayName:`enum`,id:`9e0e78711a7f87a9`,size:new n(24,1)};get typeId(){return e.getUint64(8,this)}set typeId(t){e.setUint64(8,t,this)}_adoptBrand(t){e.adopt(t,e.getPointer(0,this))}_disownBrand(){return e.disown(this.brand)}get brand(){return e.getStruct(0,H,this)}_hasBrand(){return!e.isNull(e.getPointer(0,this))}_initBrand(){return e.initStructAt(0,H,this)}set brand(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Type_Enum_`+super.toString()}},O=class extends r{static _capnp={displayName:`struct`,id:`ac3a6f60ef4cc6d3`,size:new n(24,1)};get typeId(){return e.getUint64(8,this)}set typeId(t){e.setUint64(8,t,this)}_adoptBrand(t){e.adopt(t,e.getPointer(0,this))}_disownBrand(){return e.disown(this.brand)}get brand(){return e.getStruct(0,H,this)}_hasBrand(){return!e.isNull(e.getPointer(0,this))}_initBrand(){return e.initStructAt(0,H,this)}set brand(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Type_Struct_`+super.toString()}},k=class extends r{static _capnp={displayName:`interface`,id:`ed8bca69f7fb0cbf`,size:new n(24,1)};get typeId(){return e.getUint64(8,this)}set typeId(t){e.setUint64(8,t,this)}_adoptBrand(t){e.adopt(t,e.getPointer(0,this))}_disownBrand(){return e.disown(this.brand)}get brand(){return e.getStruct(0,H,this)}_hasBrand(){return!e.isNull(e.getPointer(0,this))}_initBrand(){return e.initStructAt(0,H,this)}set brand(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Type_Interface_`+super.toString()}};const A={ANY_KIND:0,STRUCT:1,LIST:2,CAPABILITY:3};var j=class extends r{static ANY_KIND=A.ANY_KIND;static STRUCT=A.STRUCT;static LIST=A.LIST;static CAPABILITY=A.CAPABILITY;static _capnp={displayName:`unconstrained`,id:`8e3b5f79fe593656`,size:new n(24,1)};get _isAnyKind(){return e.getUint16(10,this)===0}set anyKind(t){e.setUint16(10,0,this)}get _isStruct(){return e.getUint16(10,this)===1}set struct(t){e.setUint16(10,1,this)}get _isList(){return e.getUint16(10,this)===2}set list(t){e.setUint16(10,2,this)}get _isCapability(){return e.getUint16(10,this)===3}set capability(t){e.setUint16(10,3,this)}toString(){return`Type_AnyPointer_Unconstrained_`+super.toString()}which(){return e.getUint16(10,this)}},M=class extends r{static _capnp={displayName:`parameter`,id:`9dd1f724f4614a85`,size:new n(24,1)};get scopeId(){return e.getUint64(16,this)}set scopeId(t){e.setUint64(16,t,this)}get parameterIndex(){return e.getUint16(10,this)}set parameterIndex(t){e.setUint16(10,t,this)}toString(){return`Type_AnyPointer_Parameter_`+super.toString()}},N=class extends r{static _capnp={displayName:`implicitMethodParameter`,id:`baefc9120c56e274`,size:new n(24,1)};get parameterIndex(){return e.getUint16(10,this)}set parameterIndex(t){e.setUint16(10,t,this)}toString(){return`Type_AnyPointer_ImplicitMethodParameter_`+super.toString()}};const P={UNCONSTRAINED:0,PARAMETER:1,IMPLICIT_METHOD_PARAMETER:2};var F=class extends r{static UNCONSTRAINED=P.UNCONSTRAINED;static PARAMETER=P.PARAMETER;static IMPLICIT_METHOD_PARAMETER=P.IMPLICIT_METHOD_PARAMETER;static _capnp={displayName:`anyPointer`,id:`c2573fe8a23e49f1`,size:new n(24,1)};get unconstrained(){return e.testWhich(`unconstrained`,e.getUint16(8,this),0,this),e.getAs(j,this)}_initUnconstrained(){return e.setUint16(8,0,this),e.getAs(j,this)}get _isUnconstrained(){return e.getUint16(8,this)===0}set unconstrained(t){e.setUint16(8,0,this)}get parameter(){return e.testWhich(`parameter`,e.getUint16(8,this),1,this),e.getAs(M,this)}_initParameter(){return e.setUint16(8,1,this),e.getAs(M,this)}get _isParameter(){return e.getUint16(8,this)===1}set parameter(t){e.setUint16(8,1,this)}get implicitMethodParameter(){return e.testWhich(`implicitMethodParameter`,e.getUint16(8,this),2,this),e.getAs(N,this)}_initImplicitMethodParameter(){return e.setUint16(8,2,this),e.getAs(N,this)}get _isImplicitMethodParameter(){return e.getUint16(8,this)===2}set implicitMethodParameter(t){e.setUint16(8,2,this)}toString(){return`Type_AnyPointer_`+super.toString()}which(){return e.getUint16(8,this)}};const I={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var L=class extends r{static VOID=I.VOID;static BOOL=I.BOOL;static INT8=I.INT8;static INT16=I.INT16;static INT32=I.INT32;static INT64=I.INT64;static UINT8=I.UINT8;static UINT16=I.UINT16;static UINT32=I.UINT32;static UINT64=I.UINT64;static FLOAT32=I.FLOAT32;static FLOAT64=I.FLOAT64;static TEXT=I.TEXT;static DATA=I.DATA;static LIST=I.LIST;static ENUM=I.ENUM;static STRUCT=I.STRUCT;static INTERFACE=I.INTERFACE;static ANY_POINTER=I.ANY_POINTER;static _capnp={displayName:`Type`,id:`d07378ede1f9cc60`,size:new n(24,1)};get _isVoid(){return e.getUint16(0,this)===0}set void(t){e.setUint16(0,0,this)}get _isBool(){return e.getUint16(0,this)===1}set bool(t){e.setUint16(0,1,this)}get _isInt8(){return e.getUint16(0,this)===2}set int8(t){e.setUint16(0,2,this)}get _isInt16(){return e.getUint16(0,this)===3}set int16(t){e.setUint16(0,3,this)}get _isInt32(){return e.getUint16(0,this)===4}set int32(t){e.setUint16(0,4,this)}get _isInt64(){return e.getUint16(0,this)===5}set int64(t){e.setUint16(0,5,this)}get _isUint8(){return e.getUint16(0,this)===6}set uint8(t){e.setUint16(0,6,this)}get _isUint16(){return e.getUint16(0,this)===7}set uint16(t){e.setUint16(0,7,this)}get _isUint32(){return e.getUint16(0,this)===8}set uint32(t){e.setUint16(0,8,this)}get _isUint64(){return e.getUint16(0,this)===9}set uint64(t){e.setUint16(0,9,this)}get _isFloat32(){return e.getUint16(0,this)===10}set float32(t){e.setUint16(0,10,this)}get _isFloat64(){return e.getUint16(0,this)===11}set float64(t){e.setUint16(0,11,this)}get _isText(){return e.getUint16(0,this)===12}set text(t){e.setUint16(0,12,this)}get _isData(){return e.getUint16(0,this)===13}set data(t){e.setUint16(0,13,this)}get list(){return e.testWhich(`list`,e.getUint16(0,this),14,this),e.getAs(E,this)}_initList(){return e.setUint16(0,14,this),e.getAs(E,this)}get _isList(){return e.getUint16(0,this)===14}set list(t){e.setUint16(0,14,this)}get enum(){return e.testWhich(`enum`,e.getUint16(0,this),15,this),e.getAs(D,this)}_initEnum(){return e.setUint16(0,15,this),e.getAs(D,this)}get _isEnum(){return e.getUint16(0,this)===15}set enum(t){e.setUint16(0,15,this)}get struct(){return e.testWhich(`struct`,e.getUint16(0,this),16,this),e.getAs(O,this)}_initStruct(){return e.setUint16(0,16,this),e.getAs(O,this)}get _isStruct(){return e.getUint16(0,this)===16}set struct(t){e.setUint16(0,16,this)}get interface(){return e.testWhich(`interface`,e.getUint16(0,this),17,this),e.getAs(k,this)}_initInterface(){return e.setUint16(0,17,this),e.getAs(k,this)}get _isInterface(){return e.getUint16(0,this)===17}set interface(t){e.setUint16(0,17,this)}get anyPointer(){return e.testWhich(`anyPointer`,e.getUint16(0,this),18,this),e.getAs(F,this)}_initAnyPointer(){return e.setUint16(0,18,this),e.getAs(F,this)}get _isAnyPointer(){return e.getUint16(0,this)===18}set anyPointer(t){e.setUint16(0,18,this)}toString(){return`Type_`+super.toString()}which(){return e.getUint16(0,this)}};const R={BIND:0,INHERIT:1};var z=class t extends r{static BIND=R.BIND;static INHERIT=R.INHERIT;static _capnp={displayName:`Scope`,id:`abd73485a9636bc9`,size:new n(16,1)};static _Bind;get scopeId(){return e.getUint64(0,this)}set scopeId(t){e.setUint64(0,t,this)}_adoptBind(t){e.setUint16(8,0,this),e.adopt(t,e.getPointer(0,this))}_disownBind(){return e.disown(this.bind)}get bind(){return e.testWhich(`bind`,e.getUint16(8,this),0,this),e.getList(0,t._Bind,this)}_hasBind(){return!e.isNull(e.getPointer(0,this))}_initBind(n){return e.setUint16(8,0,this),e.initList(0,t._Bind,n,this)}get _isBind(){return e.getUint16(8,this)===0}set bind(t){e.setUint16(8,0,this),e.copyFrom(t,e.getPointer(0,this))}get _isInherit(){return e.getUint16(8,this)===1}set inherit(t){e.setUint16(8,1,this)}toString(){return`Brand_Scope_`+super.toString()}which(){return e.getUint16(8,this)}};const B={UNBOUND:0,TYPE:1};var V=class extends r{static UNBOUND=B.UNBOUND;static TYPE=B.TYPE;static _capnp={displayName:`Binding`,id:`c863cd16969ee7fc`,size:new n(8,1)};get _isUnbound(){return e.getUint16(0,this)===0}set unbound(t){e.setUint16(0,0,this)}_adoptType(t){e.setUint16(0,1,this),e.adopt(t,e.getPointer(0,this))}_disownType(){return e.disown(this.type)}get type(){return e.testWhich(`type`,e.getUint16(0,this),1,this),e.getStruct(0,L,this)}_hasType(){return!e.isNull(e.getPointer(0,this))}_initType(){return e.setUint16(0,1,this),e.initStructAt(0,L,this)}get _isType(){return e.getUint16(0,this)===1}set type(t){e.setUint16(0,1,this),e.copyFrom(t,e.getPointer(0,this))}toString(){return`Brand_Binding_`+super.toString()}which(){return e.getUint16(0,this)}},H=class t extends r{static Scope=z;static Binding=V;static _capnp={displayName:`Brand`,id:`903455f06065422b`,size:new n(0,1)};static _Scopes;_adoptScopes(t){e.adopt(t,e.getPointer(0,this))}_disownScopes(){return e.disown(this.scopes)}get scopes(){return e.getList(0,t._Scopes,this)}_hasScopes(){return!e.isNull(e.getPointer(0,this))}_initScopes(n){return e.initList(0,t._Scopes,n,this)}set scopes(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Brand_`+super.toString()}};const U={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var W=class extends r{static VOID=U.VOID;static BOOL=U.BOOL;static INT8=U.INT8;static INT16=U.INT16;static INT32=U.INT32;static INT64=U.INT64;static UINT8=U.UINT8;static UINT16=U.UINT16;static UINT32=U.UINT32;static UINT64=U.UINT64;static FLOAT32=U.FLOAT32;static FLOAT64=U.FLOAT64;static TEXT=U.TEXT;static DATA=U.DATA;static LIST=U.LIST;static ENUM=U.ENUM;static STRUCT=U.STRUCT;static INTERFACE=U.INTERFACE;static ANY_POINTER=U.ANY_POINTER;static _capnp={displayName:`Value`,id:`ce23dcd2d7b00c9b`,size:new n(16,1)};get _isVoid(){return e.getUint16(0,this)===0}set void(t){e.setUint16(0,0,this)}get bool(){return e.testWhich(`bool`,e.getUint16(0,this),1,this),e.getBit(16,this)}get _isBool(){return e.getUint16(0,this)===1}set bool(t){e.setUint16(0,1,this),e.setBit(16,t,this)}get int8(){return e.testWhich(`int8`,e.getUint16(0,this),2,this),e.getInt8(2,this)}get _isInt8(){return e.getUint16(0,this)===2}set int8(t){e.setUint16(0,2,this),e.setInt8(2,t,this)}get int16(){return e.testWhich(`int16`,e.getUint16(0,this),3,this),e.getInt16(2,this)}get _isInt16(){return e.getUint16(0,this)===3}set int16(t){e.setUint16(0,3,this),e.setInt16(2,t,this)}get int32(){return e.testWhich(`int32`,e.getUint16(0,this),4,this),e.getInt32(4,this)}get _isInt32(){return e.getUint16(0,this)===4}set int32(t){e.setUint16(0,4,this),e.setInt32(4,t,this)}get int64(){return e.testWhich(`int64`,e.getUint16(0,this),5,this),e.getInt64(8,this)}get _isInt64(){return e.getUint16(0,this)===5}set int64(t){e.setUint16(0,5,this),e.setInt64(8,t,this)}get uint8(){return e.testWhich(`uint8`,e.getUint16(0,this),6,this),e.getUint8(2,this)}get _isUint8(){return e.getUint16(0,this)===6}set uint8(t){e.setUint16(0,6,this),e.setUint8(2,t,this)}get uint16(){return e.testWhich(`uint16`,e.getUint16(0,this),7,this),e.getUint16(2,this)}get _isUint16(){return e.getUint16(0,this)===7}set uint16(t){e.setUint16(0,7,this),e.setUint16(2,t,this)}get uint32(){return e.testWhich(`uint32`,e.getUint16(0,this),8,this),e.getUint32(4,this)}get _isUint32(){return e.getUint16(0,this)===8}set uint32(t){e.setUint16(0,8,this),e.setUint32(4,t,this)}get uint64(){return e.testWhich(`uint64`,e.getUint16(0,this),9,this),e.getUint64(8,this)}get _isUint64(){return e.getUint16(0,this)===9}set uint64(t){e.setUint16(0,9,this),e.setUint64(8,t,this)}get float32(){return e.testWhich(`float32`,e.getUint16(0,this),10,this),e.getFloat32(4,this)}get _isFloat32(){return e.getUint16(0,this)===10}set float32(t){e.setUint16(0,10,this),e.setFloat32(4,t,this)}get float64(){return e.testWhich(`float64`,e.getUint16(0,this),11,this),e.getFloat64(8,this)}get _isFloat64(){return e.getUint16(0,this)===11}set float64(t){e.setUint16(0,11,this),e.setFloat64(8,t,this)}get text(){return e.testWhich(`text`,e.getUint16(0,this),12,this),e.getText(0,this)}get _isText(){return e.getUint16(0,this)===12}set text(t){e.setUint16(0,12,this),e.setText(0,t,this)}_adoptData(t){e.setUint16(0,13,this),e.adopt(t,e.getPointer(0,this))}_disownData(){return e.disown(this.data)}get data(){return e.testWhich(`data`,e.getUint16(0,this),13,this),e.getData(0,this)}_hasData(){return!e.isNull(e.getPointer(0,this))}_initData(t){return e.setUint16(0,13,this),e.initData(0,t,this)}get _isData(){return e.getUint16(0,this)===13}set data(t){e.setUint16(0,13,this),e.copyFrom(t,e.getPointer(0,this))}_adoptList(t){e.setUint16(0,14,this),e.adopt(t,e.getPointer(0,this))}_disownList(){return e.disown(this.list)}get list(){return e.testWhich(`list`,e.getUint16(0,this),14,this),e.getPointer(0,this)}_hasList(){return!e.isNull(e.getPointer(0,this))}get _isList(){return e.getUint16(0,this)===14}set list(t){e.setUint16(0,14,this),e.copyFrom(t,e.getPointer(0,this))}get enum(){return e.testWhich(`enum`,e.getUint16(0,this),15,this),e.getUint16(2,this)}get _isEnum(){return e.getUint16(0,this)===15}set enum(t){e.setUint16(0,15,this),e.setUint16(2,t,this)}_adoptStruct(t){e.setUint16(0,16,this),e.adopt(t,e.getPointer(0,this))}_disownStruct(){return e.disown(this.struct)}get struct(){return e.testWhich(`struct`,e.getUint16(0,this),16,this),e.getPointer(0,this)}_hasStruct(){return!e.isNull(e.getPointer(0,this))}get _isStruct(){return e.getUint16(0,this)===16}set struct(t){e.setUint16(0,16,this),e.copyFrom(t,e.getPointer(0,this))}get _isInterface(){return e.getUint16(0,this)===17}set interface(t){e.setUint16(0,17,this)}_adoptAnyPointer(t){e.setUint16(0,18,this),e.adopt(t,e.getPointer(0,this))}_disownAnyPointer(){return e.disown(this.anyPointer)}get anyPointer(){return e.testWhich(`anyPointer`,e.getUint16(0,this),18,this),e.getPointer(0,this)}_hasAnyPointer(){return!e.isNull(e.getPointer(0,this))}get _isAnyPointer(){return e.getUint16(0,this)===18}set anyPointer(t){e.setUint16(0,18,this),e.copyFrom(t,e.getPointer(0,this))}toString(){return`Value_`+super.toString()}which(){return e.getUint16(0,this)}},G=class extends r{static _capnp={displayName:`Annotation`,id:`f1c8950dab257542`,size:new n(8,2)};get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}_adoptBrand(t){e.adopt(t,e.getPointer(1,this))}_disownBrand(){return e.disown(this.brand)}get brand(){return e.getStruct(1,H,this)}_hasBrand(){return!e.isNull(e.getPointer(1,this))}_initBrand(){return e.initStructAt(1,H,this)}set brand(t){e.copyFrom(t,e.getPointer(1,this))}_adoptValue(t){e.adopt(t,e.getPointer(0,this))}_disownValue(){return e.disown(this.value)}get value(){return e.getStruct(0,W,this)}_hasValue(){return!e.isNull(e.getPointer(0,this))}_initValue(){return e.initStructAt(0,W,this)}set value(t){e.copyFrom(t,e.getPointer(0,this))}toString(){return`Annotation_`+super.toString()}};const K={EMPTY:0,BIT:1,BYTE:2,TWO_BYTES:3,FOUR_BYTES:4,EIGHT_BYTES:5,POINTER:6,INLINE_COMPOSITE:7};var q=class extends r{static _capnp={displayName:`CapnpVersion`,id:`d85d305b7d839963`,size:new n(8,0)};get major(){return e.getUint16(0,this)}set major(t){e.setUint16(0,t,this)}get minor(){return e.getUint8(2,this)}set minor(t){e.setUint8(2,t,this)}get micro(){return e.getUint8(3,this)}set micro(t){e.setUint8(3,t,this)}toString(){return`CapnpVersion_`+super.toString()}},J=class extends r{static _capnp={displayName:`Import`,id:`ae504193122357e5`,size:new n(8,1)};get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}get name(){return e.getText(0,this)}set name(t){e.setText(0,t,this)}toString(){return`CodeGeneratorRequest_RequestedFile_Import_`+super.toString()}},Y=class t extends r{static Import=J;static _capnp={displayName:`RequestedFile`,id:`cfea0eb02e810062`,size:new n(8,2)};static _Imports;get id(){return e.getUint64(0,this)}set id(t){e.setUint64(0,t,this)}get filename(){return e.getText(0,this)}set filename(t){e.setText(0,t,this)}_adoptImports(t){e.adopt(t,e.getPointer(1,this))}_disownImports(){return e.disown(this.imports)}get imports(){return e.getList(1,t._Imports,this)}_hasImports(){return!e.isNull(e.getPointer(1,this))}_initImports(n){return e.initList(1,t._Imports,n,this)}set imports(t){e.copyFrom(t,e.getPointer(1,this))}toString(){return`CodeGeneratorRequest_RequestedFile_`+super.toString()}},X=class t extends r{static RequestedFile=Y;static _capnp={displayName:`CodeGeneratorRequest`,id:`bfc546f6210ad7ce`,size:new n(0,4)};static _Nodes;static _SourceInfo;static _RequestedFiles;_adoptCapnpVersion(t){e.adopt(t,e.getPointer(2,this))}_disownCapnpVersion(){return e.disown(this.capnpVersion)}get capnpVersion(){return e.getStruct(2,q,this)}_hasCapnpVersion(){return!e.isNull(e.getPointer(2,this))}_initCapnpVersion(){return e.initStructAt(2,q,this)}set capnpVersion(t){e.copyFrom(t,e.getPointer(2,this))}_adoptNodes(t){e.adopt(t,e.getPointer(0,this))}_disownNodes(){return e.disown(this.nodes)}get nodes(){return e.getList(0,t._Nodes,this)}_hasNodes(){return!e.isNull(e.getPointer(0,this))}_initNodes(n){return e.initList(0,t._Nodes,n,this)}set nodes(t){e.copyFrom(t,e.getPointer(0,this))}_adoptSourceInfo(t){e.adopt(t,e.getPointer(3,this))}_disownSourceInfo(){return e.disown(this.sourceInfo)}get sourceInfo(){return e.getList(3,t._SourceInfo,this)}_hasSourceInfo(){return!e.isNull(e.getPointer(3,this))}_initSourceInfo(n){return e.initList(3,t._SourceInfo,n,this)}set sourceInfo(t){e.copyFrom(t,e.getPointer(3,this))}_adoptRequestedFiles(t){e.adopt(t,e.getPointer(1,this))}_disownRequestedFiles(){return e.disown(this.requestedFiles)}get requestedFiles(){return e.getList(1,t._RequestedFiles,this)}_hasRequestedFiles(){return!e.isNull(e.getPointer(1,this))}_initRequestedFiles(n){return e.initList(1,t._RequestedFiles,n,this)}set requestedFiles(t){e.copyFrom(t,e.getPointer(1,this))}toString(){return`CodeGeneratorRequest_`+super.toString()}};l._Members=i(c),u._Fields=i(S),d._Enumerants=i(C),f._Methods=i(T),f._Superclasses=i(w),g._Parameters=i(o),g._NestedNodes=i(s),g._Annotations=i(G),S._Annotations=i(G),C._Annotations=i(G),T._ImplicitParameters=i(o),T._Annotations=i(G),z._Bind=i(V),H._Scopes=i(z),Y._Imports=i(J),X._Nodes=i(g),X._SourceInfo=i(l),X._RequestedFiles=i(Y);export{G as Annotation,H as Brand,V as Brand_Binding,B as Brand_Binding_Which,z as Brand_Scope,R as Brand_Scope_Which,q as CapnpVersion,X as CodeGeneratorRequest,Y as CodeGeneratorRequest_RequestedFile,J as CodeGeneratorRequest_RequestedFile_Import,K as ElementSize,C as Enumerant,S as Field,v as Field_Group,b as Field_Ordinal,y as Field_Ordinal_Which,_ as Field_Slot,x as Field_Which,T as Method,g as Node,m as Node_Annotation,p as Node_Const,d as Node_Enum,f as Node_Interface,s as Node_NestedNode,o as Node_Parameter,l as Node_SourceInfo,c as Node_SourceInfo_Member,u as Node_Struct,h as Node_Which,w as Superclass,L as Type,F as Type_AnyPointer,N as Type_AnyPointer_ImplicitMethodParameter,M as Type_AnyPointer_Parameter,j as Type_AnyPointer_Unconstrained,A as Type_AnyPointer_Unconstrained_Which,P as Type_AnyPointer_Which,D as Type_Enum,k as Type_Interface,E as Type_List,O as Type_Struct,I as Type_Which,W as Value,U as Value_Which,a as _capnpFileId};
|
|
1
|
+
import{c as e,d as t,o as n,t as r,u as i}from"./src-DqIy7I3p.mjs";const a=BigInt(`0xa93fc509624c72d9`);var o=class extends t{static _capnp={displayName:`Parameter`,id:`b9521bccf10fa3b1`,size:new i(0,1)};get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}toString(){return`Node_Parameter_`+super.toString()}},s=class extends t{static _capnp={displayName:`NestedNode`,id:`debf55bbfa0fc242`,size:new i(8,1)};get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}toString(){return`Node_NestedNode_`+super.toString()}},c=class extends t{static _capnp={displayName:`Member`,id:`c2ba9038898e1fa2`,size:new i(0,1)};get docComment(){return r.getText(0,this)}set docComment(e){r.setText(0,e,this)}toString(){return`Node_SourceInfo_Member_`+super.toString()}},l=class e extends t{static Member=c;static _capnp={displayName:`SourceInfo`,id:`f38e1de3041357ae`,size:new i(8,2)};static _Members;get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}get docComment(){return r.getText(0,this)}set docComment(e){r.setText(0,e,this)}_adoptMembers(e){r.adopt(e,r.getPointer(1,this))}_disownMembers(){return r.disown(this.members)}get members(){return r.getList(1,e._Members,this)}_hasMembers(){return!r.isNull(r.getPointer(1,this))}_initMembers(t){return r.initList(1,e._Members,t,this)}set members(e){r.copyFrom(e,r.getPointer(1,this))}toString(){return`Node_SourceInfo_`+super.toString()}},u=class e extends t{static _capnp={displayName:`struct`,id:`9ea0b19b37fb4435`,size:new i(40,6)};static _Fields;get dataWordCount(){return r.getUint16(14,this)}set dataWordCount(e){r.setUint16(14,e,this)}get pointerCount(){return r.getUint16(24,this)}set pointerCount(e){r.setUint16(24,e,this)}get preferredListEncoding(){return r.getUint16(26,this)}set preferredListEncoding(e){r.setUint16(26,e,this)}get isGroup(){return r.getBit(224,this)}set isGroup(e){r.setBit(224,e,this)}get discriminantCount(){return r.getUint16(30,this)}set discriminantCount(e){r.setUint16(30,e,this)}get discriminantOffset(){return r.getUint32(32,this)}set discriminantOffset(e){r.setUint32(32,e,this)}_adoptFields(e){r.adopt(e,r.getPointer(3,this))}_disownFields(){return r.disown(this.fields)}get fields(){return r.getList(3,e._Fields,this)}_hasFields(){return!r.isNull(r.getPointer(3,this))}_initFields(t){return r.initList(3,e._Fields,t,this)}set fields(e){r.copyFrom(e,r.getPointer(3,this))}toString(){return`Node_Struct_`+super.toString()}},d=class e extends t{static _capnp={displayName:`enum`,id:`b54ab3364333f598`,size:new i(40,6)};static _Enumerants;_adoptEnumerants(e){r.adopt(e,r.getPointer(3,this))}_disownEnumerants(){return r.disown(this.enumerants)}get enumerants(){return r.getList(3,e._Enumerants,this)}_hasEnumerants(){return!r.isNull(r.getPointer(3,this))}_initEnumerants(t){return r.initList(3,e._Enumerants,t,this)}set enumerants(e){r.copyFrom(e,r.getPointer(3,this))}toString(){return`Node_Enum_`+super.toString()}},f=class e extends t{static _capnp={displayName:`interface`,id:`e82753cff0c2218f`,size:new i(40,6)};static _Methods;static _Superclasses;_adoptMethods(e){r.adopt(e,r.getPointer(3,this))}_disownMethods(){return r.disown(this.methods)}get methods(){return r.getList(3,e._Methods,this)}_hasMethods(){return!r.isNull(r.getPointer(3,this))}_initMethods(t){return r.initList(3,e._Methods,t,this)}set methods(e){r.copyFrom(e,r.getPointer(3,this))}_adoptSuperclasses(e){r.adopt(e,r.getPointer(4,this))}_disownSuperclasses(){return r.disown(this.superclasses)}get superclasses(){return r.getList(4,e._Superclasses,this)}_hasSuperclasses(){return!r.isNull(r.getPointer(4,this))}_initSuperclasses(t){return r.initList(4,e._Superclasses,t,this)}set superclasses(e){r.copyFrom(e,r.getPointer(4,this))}toString(){return`Node_Interface_`+super.toString()}},p=class extends t{static _capnp={displayName:`const`,id:`b18aa5ac7a0d9420`,size:new i(40,6)};_adoptType(e){r.adopt(e,r.getPointer(3,this))}_disownType(){return r.disown(this.type)}get type(){return r.getStruct(3,L,this)}_hasType(){return!r.isNull(r.getPointer(3,this))}_initType(){return r.initStructAt(3,L,this)}set type(e){r.copyFrom(e,r.getPointer(3,this))}_adoptValue(e){r.adopt(e,r.getPointer(4,this))}_disownValue(){return r.disown(this.value)}get value(){return r.getStruct(4,W,this)}_hasValue(){return!r.isNull(r.getPointer(4,this))}_initValue(){return r.initStructAt(4,W,this)}set value(e){r.copyFrom(e,r.getPointer(4,this))}toString(){return`Node_Const_`+super.toString()}},m=class extends t{static _capnp={displayName:`annotation`,id:`ec1619d4400a0290`,size:new i(40,6)};_adoptType(e){r.adopt(e,r.getPointer(3,this))}_disownType(){return r.disown(this.type)}get type(){return r.getStruct(3,L,this)}_hasType(){return!r.isNull(r.getPointer(3,this))}_initType(){return r.initStructAt(3,L,this)}set type(e){r.copyFrom(e,r.getPointer(3,this))}get targetsFile(){return r.getBit(112,this)}set targetsFile(e){r.setBit(112,e,this)}get targetsConst(){return r.getBit(113,this)}set targetsConst(e){r.setBit(113,e,this)}get targetsEnum(){return r.getBit(114,this)}set targetsEnum(e){r.setBit(114,e,this)}get targetsEnumerant(){return r.getBit(115,this)}set targetsEnumerant(e){r.setBit(115,e,this)}get targetsStruct(){return r.getBit(116,this)}set targetsStruct(e){r.setBit(116,e,this)}get targetsField(){return r.getBit(117,this)}set targetsField(e){r.setBit(117,e,this)}get targetsUnion(){return r.getBit(118,this)}set targetsUnion(e){r.setBit(118,e,this)}get targetsGroup(){return r.getBit(119,this)}set targetsGroup(e){r.setBit(119,e,this)}get targetsInterface(){return r.getBit(120,this)}set targetsInterface(e){r.setBit(120,e,this)}get targetsMethod(){return r.getBit(121,this)}set targetsMethod(e){r.setBit(121,e,this)}get targetsParam(){return r.getBit(122,this)}set targetsParam(e){r.setBit(122,e,this)}get targetsAnnotation(){return r.getBit(123,this)}set targetsAnnotation(e){r.setBit(123,e,this)}toString(){return`Node_Annotation_`+super.toString()}};const h={FILE:0,STRUCT:1,ENUM:2,INTERFACE:3,CONST:4,ANNOTATION:5};var g=class e extends t{static FILE=h.FILE;static STRUCT=h.STRUCT;static ENUM=h.ENUM;static INTERFACE=h.INTERFACE;static CONST=h.CONST;static ANNOTATION=h.ANNOTATION;static Parameter=o;static NestedNode=s;static SourceInfo=l;static _capnp={displayName:`Node`,id:`e682ab4cf923a417`,size:new i(40,6)};static _Parameters;static _NestedNodes;static _Annotations;get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}get displayName(){return r.getText(0,this)}set displayName(e){r.setText(0,e,this)}get displayNamePrefixLength(){return r.getUint32(8,this)}set displayNamePrefixLength(e){r.setUint32(8,e,this)}get scopeId(){return r.getUint64(16,this)}set scopeId(e){r.setUint64(16,e,this)}_adoptParameters(e){r.adopt(e,r.getPointer(5,this))}_disownParameters(){return r.disown(this.parameters)}get parameters(){return r.getList(5,e._Parameters,this)}_hasParameters(){return!r.isNull(r.getPointer(5,this))}_initParameters(t){return r.initList(5,e._Parameters,t,this)}set parameters(e){r.copyFrom(e,r.getPointer(5,this))}get isGeneric(){return r.getBit(288,this)}set isGeneric(e){r.setBit(288,e,this)}_adoptNestedNodes(e){r.adopt(e,r.getPointer(1,this))}_disownNestedNodes(){return r.disown(this.nestedNodes)}get nestedNodes(){return r.getList(1,e._NestedNodes,this)}_hasNestedNodes(){return!r.isNull(r.getPointer(1,this))}_initNestedNodes(t){return r.initList(1,e._NestedNodes,t,this)}set nestedNodes(e){r.copyFrom(e,r.getPointer(1,this))}_adoptAnnotations(e){r.adopt(e,r.getPointer(2,this))}_disownAnnotations(){return r.disown(this.annotations)}get annotations(){return r.getList(2,e._Annotations,this)}_hasAnnotations(){return!r.isNull(r.getPointer(2,this))}_initAnnotations(t){return r.initList(2,e._Annotations,t,this)}set annotations(e){r.copyFrom(e,r.getPointer(2,this))}get _isFile(){return r.getUint16(12,this)===0}set file(e){r.setUint16(12,0,this)}get struct(){return r.testWhich(`struct`,r.getUint16(12,this),1,this),r.getAs(u,this)}_initStruct(){return r.setUint16(12,1,this),r.getAs(u,this)}get _isStruct(){return r.getUint16(12,this)===1}set struct(e){r.setUint16(12,1,this)}get enum(){return r.testWhich(`enum`,r.getUint16(12,this),2,this),r.getAs(d,this)}_initEnum(){return r.setUint16(12,2,this),r.getAs(d,this)}get _isEnum(){return r.getUint16(12,this)===2}set enum(e){r.setUint16(12,2,this)}get interface(){return r.testWhich(`interface`,r.getUint16(12,this),3,this),r.getAs(f,this)}_initInterface(){return r.setUint16(12,3,this),r.getAs(f,this)}get _isInterface(){return r.getUint16(12,this)===3}set interface(e){r.setUint16(12,3,this)}get const(){return r.testWhich(`const`,r.getUint16(12,this),4,this),r.getAs(p,this)}_initConst(){return r.setUint16(12,4,this),r.getAs(p,this)}get _isConst(){return r.getUint16(12,this)===4}set const(e){r.setUint16(12,4,this)}get annotation(){return r.testWhich(`annotation`,r.getUint16(12,this),5,this),r.getAs(m,this)}_initAnnotation(){return r.setUint16(12,5,this),r.getAs(m,this)}get _isAnnotation(){return r.getUint16(12,this)===5}set annotation(e){r.setUint16(12,5,this)}toString(){return`Node_`+super.toString()}which(){return r.getUint16(12,this)}},_=class extends t{static _capnp={displayName:`slot`,id:`c42305476bb4746f`,size:new i(24,4)};get offset(){return r.getUint32(4,this)}set offset(e){r.setUint32(4,e,this)}_adoptType(e){r.adopt(e,r.getPointer(2,this))}_disownType(){return r.disown(this.type)}get type(){return r.getStruct(2,L,this)}_hasType(){return!r.isNull(r.getPointer(2,this))}_initType(){return r.initStructAt(2,L,this)}set type(e){r.copyFrom(e,r.getPointer(2,this))}_adoptDefaultValue(e){r.adopt(e,r.getPointer(3,this))}_disownDefaultValue(){return r.disown(this.defaultValue)}get defaultValue(){return r.getStruct(3,W,this)}_hasDefaultValue(){return!r.isNull(r.getPointer(3,this))}_initDefaultValue(){return r.initStructAt(3,W,this)}set defaultValue(e){r.copyFrom(e,r.getPointer(3,this))}get hadExplicitDefault(){return r.getBit(128,this)}set hadExplicitDefault(e){r.setBit(128,e,this)}toString(){return`Field_Slot_`+super.toString()}},v=class extends t{static _capnp={displayName:`group`,id:`cafccddb68db1d11`,size:new i(24,4)};get typeId(){return r.getUint64(16,this)}set typeId(e){r.setUint64(16,e,this)}toString(){return`Field_Group_`+super.toString()}};const y={IMPLICIT:0,EXPLICIT:1};var b=class extends t{static IMPLICIT=y.IMPLICIT;static EXPLICIT=y.EXPLICIT;static _capnp={displayName:`ordinal`,id:`bb90d5c287870be6`,size:new i(24,4)};get _isImplicit(){return r.getUint16(10,this)===0}set implicit(e){r.setUint16(10,0,this)}get explicit(){return r.testWhich(`explicit`,r.getUint16(10,this),1,this),r.getUint16(12,this)}get _isExplicit(){return r.getUint16(10,this)===1}set explicit(e){r.setUint16(10,1,this),r.setUint16(12,e,this)}toString(){return`Field_Ordinal_`+super.toString()}which(){return r.getUint16(10,this)}};const x={SLOT:0,GROUP:1};var S=class n extends t{static NO_DISCRIMINANT=65535;static SLOT=x.SLOT;static GROUP=x.GROUP;static _capnp={displayName:`Field`,id:`9aad50a41f4af45f`,size:new i(24,4),defaultDiscriminantValue:e(65535)};static _Annotations;get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}get codeOrder(){return r.getUint16(0,this)}set codeOrder(e){r.setUint16(0,e,this)}_adoptAnnotations(e){r.adopt(e,r.getPointer(1,this))}_disownAnnotations(){return r.disown(this.annotations)}get annotations(){return r.getList(1,n._Annotations,this)}_hasAnnotations(){return!r.isNull(r.getPointer(1,this))}_initAnnotations(e){return r.initList(1,n._Annotations,e,this)}set annotations(e){r.copyFrom(e,r.getPointer(1,this))}get discriminantValue(){return r.getUint16(2,this,n._capnp.defaultDiscriminantValue)}set discriminantValue(e){r.setUint16(2,e,this,n._capnp.defaultDiscriminantValue)}get slot(){return r.testWhich(`slot`,r.getUint16(8,this),0,this),r.getAs(_,this)}_initSlot(){return r.setUint16(8,0,this),r.getAs(_,this)}get _isSlot(){return r.getUint16(8,this)===0}set slot(e){r.setUint16(8,0,this)}get group(){return r.testWhich(`group`,r.getUint16(8,this),1,this),r.getAs(v,this)}_initGroup(){return r.setUint16(8,1,this),r.getAs(v,this)}get _isGroup(){return r.getUint16(8,this)===1}set group(e){r.setUint16(8,1,this)}get ordinal(){return r.getAs(b,this)}_initOrdinal(){return r.getAs(b,this)}toString(){return`Field_`+super.toString()}which(){return r.getUint16(8,this)}},C=class e extends t{static _capnp={displayName:`Enumerant`,id:`978a7cebdc549a4d`,size:new i(8,2)};static _Annotations;get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}get codeOrder(){return r.getUint16(0,this)}set codeOrder(e){r.setUint16(0,e,this)}_adoptAnnotations(e){r.adopt(e,r.getPointer(1,this))}_disownAnnotations(){return r.disown(this.annotations)}get annotations(){return r.getList(1,e._Annotations,this)}_hasAnnotations(){return!r.isNull(r.getPointer(1,this))}_initAnnotations(t){return r.initList(1,e._Annotations,t,this)}set annotations(e){r.copyFrom(e,r.getPointer(1,this))}toString(){return`Enumerant_`+super.toString()}},w=class extends t{static _capnp={displayName:`Superclass`,id:`a9962a9ed0a4d7f8`,size:new i(8,1)};get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}_adoptBrand(e){r.adopt(e,r.getPointer(0,this))}_disownBrand(){return r.disown(this.brand)}get brand(){return r.getStruct(0,H,this)}_hasBrand(){return!r.isNull(r.getPointer(0,this))}_initBrand(){return r.initStructAt(0,H,this)}set brand(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Superclass_`+super.toString()}},T=class e extends t{static _capnp={displayName:`Method`,id:`9500cce23b334d80`,size:new i(24,5)};static _ImplicitParameters;static _Annotations;get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}get codeOrder(){return r.getUint16(0,this)}set codeOrder(e){r.setUint16(0,e,this)}_adoptImplicitParameters(e){r.adopt(e,r.getPointer(4,this))}_disownImplicitParameters(){return r.disown(this.implicitParameters)}get implicitParameters(){return r.getList(4,e._ImplicitParameters,this)}_hasImplicitParameters(){return!r.isNull(r.getPointer(4,this))}_initImplicitParameters(t){return r.initList(4,e._ImplicitParameters,t,this)}set implicitParameters(e){r.copyFrom(e,r.getPointer(4,this))}get paramStructType(){return r.getUint64(8,this)}set paramStructType(e){r.setUint64(8,e,this)}_adoptParamBrand(e){r.adopt(e,r.getPointer(2,this))}_disownParamBrand(){return r.disown(this.paramBrand)}get paramBrand(){return r.getStruct(2,H,this)}_hasParamBrand(){return!r.isNull(r.getPointer(2,this))}_initParamBrand(){return r.initStructAt(2,H,this)}set paramBrand(e){r.copyFrom(e,r.getPointer(2,this))}get resultStructType(){return r.getUint64(16,this)}set resultStructType(e){r.setUint64(16,e,this)}_adoptResultBrand(e){r.adopt(e,r.getPointer(3,this))}_disownResultBrand(){return r.disown(this.resultBrand)}get resultBrand(){return r.getStruct(3,H,this)}_hasResultBrand(){return!r.isNull(r.getPointer(3,this))}_initResultBrand(){return r.initStructAt(3,H,this)}set resultBrand(e){r.copyFrom(e,r.getPointer(3,this))}_adoptAnnotations(e){r.adopt(e,r.getPointer(1,this))}_disownAnnotations(){return r.disown(this.annotations)}get annotations(){return r.getList(1,e._Annotations,this)}_hasAnnotations(){return!r.isNull(r.getPointer(1,this))}_initAnnotations(t){return r.initList(1,e._Annotations,t,this)}set annotations(e){r.copyFrom(e,r.getPointer(1,this))}toString(){return`Method_`+super.toString()}},E=class extends t{static _capnp={displayName:`list`,id:`87e739250a60ea97`,size:new i(24,1)};_adoptElementType(e){r.adopt(e,r.getPointer(0,this))}_disownElementType(){return r.disown(this.elementType)}get elementType(){return r.getStruct(0,L,this)}_hasElementType(){return!r.isNull(r.getPointer(0,this))}_initElementType(){return r.initStructAt(0,L,this)}set elementType(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Type_List_`+super.toString()}},D=class extends t{static _capnp={displayName:`enum`,id:`9e0e78711a7f87a9`,size:new i(24,1)};get typeId(){return r.getUint64(8,this)}set typeId(e){r.setUint64(8,e,this)}_adoptBrand(e){r.adopt(e,r.getPointer(0,this))}_disownBrand(){return r.disown(this.brand)}get brand(){return r.getStruct(0,H,this)}_hasBrand(){return!r.isNull(r.getPointer(0,this))}_initBrand(){return r.initStructAt(0,H,this)}set brand(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Type_Enum_`+super.toString()}},O=class extends t{static _capnp={displayName:`struct`,id:`ac3a6f60ef4cc6d3`,size:new i(24,1)};get typeId(){return r.getUint64(8,this)}set typeId(e){r.setUint64(8,e,this)}_adoptBrand(e){r.adopt(e,r.getPointer(0,this))}_disownBrand(){return r.disown(this.brand)}get brand(){return r.getStruct(0,H,this)}_hasBrand(){return!r.isNull(r.getPointer(0,this))}_initBrand(){return r.initStructAt(0,H,this)}set brand(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Type_Struct_`+super.toString()}},k=class extends t{static _capnp={displayName:`interface`,id:`ed8bca69f7fb0cbf`,size:new i(24,1)};get typeId(){return r.getUint64(8,this)}set typeId(e){r.setUint64(8,e,this)}_adoptBrand(e){r.adopt(e,r.getPointer(0,this))}_disownBrand(){return r.disown(this.brand)}get brand(){return r.getStruct(0,H,this)}_hasBrand(){return!r.isNull(r.getPointer(0,this))}_initBrand(){return r.initStructAt(0,H,this)}set brand(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Type_Interface_`+super.toString()}};const A={ANY_KIND:0,STRUCT:1,LIST:2,CAPABILITY:3};var j=class extends t{static ANY_KIND=A.ANY_KIND;static STRUCT=A.STRUCT;static LIST=A.LIST;static CAPABILITY=A.CAPABILITY;static _capnp={displayName:`unconstrained`,id:`8e3b5f79fe593656`,size:new i(24,1)};get _isAnyKind(){return r.getUint16(10,this)===0}set anyKind(e){r.setUint16(10,0,this)}get _isStruct(){return r.getUint16(10,this)===1}set struct(e){r.setUint16(10,1,this)}get _isList(){return r.getUint16(10,this)===2}set list(e){r.setUint16(10,2,this)}get _isCapability(){return r.getUint16(10,this)===3}set capability(e){r.setUint16(10,3,this)}toString(){return`Type_AnyPointer_Unconstrained_`+super.toString()}which(){return r.getUint16(10,this)}},M=class extends t{static _capnp={displayName:`parameter`,id:`9dd1f724f4614a85`,size:new i(24,1)};get scopeId(){return r.getUint64(16,this)}set scopeId(e){r.setUint64(16,e,this)}get parameterIndex(){return r.getUint16(10,this)}set parameterIndex(e){r.setUint16(10,e,this)}toString(){return`Type_AnyPointer_Parameter_`+super.toString()}},N=class extends t{static _capnp={displayName:`implicitMethodParameter`,id:`baefc9120c56e274`,size:new i(24,1)};get parameterIndex(){return r.getUint16(10,this)}set parameterIndex(e){r.setUint16(10,e,this)}toString(){return`Type_AnyPointer_ImplicitMethodParameter_`+super.toString()}};const P={UNCONSTRAINED:0,PARAMETER:1,IMPLICIT_METHOD_PARAMETER:2};var F=class extends t{static UNCONSTRAINED=P.UNCONSTRAINED;static PARAMETER=P.PARAMETER;static IMPLICIT_METHOD_PARAMETER=P.IMPLICIT_METHOD_PARAMETER;static _capnp={displayName:`anyPointer`,id:`c2573fe8a23e49f1`,size:new i(24,1)};get unconstrained(){return r.testWhich(`unconstrained`,r.getUint16(8,this),0,this),r.getAs(j,this)}_initUnconstrained(){return r.setUint16(8,0,this),r.getAs(j,this)}get _isUnconstrained(){return r.getUint16(8,this)===0}set unconstrained(e){r.setUint16(8,0,this)}get parameter(){return r.testWhich(`parameter`,r.getUint16(8,this),1,this),r.getAs(M,this)}_initParameter(){return r.setUint16(8,1,this),r.getAs(M,this)}get _isParameter(){return r.getUint16(8,this)===1}set parameter(e){r.setUint16(8,1,this)}get implicitMethodParameter(){return r.testWhich(`implicitMethodParameter`,r.getUint16(8,this),2,this),r.getAs(N,this)}_initImplicitMethodParameter(){return r.setUint16(8,2,this),r.getAs(N,this)}get _isImplicitMethodParameter(){return r.getUint16(8,this)===2}set implicitMethodParameter(e){r.setUint16(8,2,this)}toString(){return`Type_AnyPointer_`+super.toString()}which(){return r.getUint16(8,this)}};const I={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var L=class extends t{static VOID=I.VOID;static BOOL=I.BOOL;static INT8=I.INT8;static INT16=I.INT16;static INT32=I.INT32;static INT64=I.INT64;static UINT8=I.UINT8;static UINT16=I.UINT16;static UINT32=I.UINT32;static UINT64=I.UINT64;static FLOAT32=I.FLOAT32;static FLOAT64=I.FLOAT64;static TEXT=I.TEXT;static DATA=I.DATA;static LIST=I.LIST;static ENUM=I.ENUM;static STRUCT=I.STRUCT;static INTERFACE=I.INTERFACE;static ANY_POINTER=I.ANY_POINTER;static _capnp={displayName:`Type`,id:`d07378ede1f9cc60`,size:new i(24,1)};get _isVoid(){return r.getUint16(0,this)===0}set void(e){r.setUint16(0,0,this)}get _isBool(){return r.getUint16(0,this)===1}set bool(e){r.setUint16(0,1,this)}get _isInt8(){return r.getUint16(0,this)===2}set int8(e){r.setUint16(0,2,this)}get _isInt16(){return r.getUint16(0,this)===3}set int16(e){r.setUint16(0,3,this)}get _isInt32(){return r.getUint16(0,this)===4}set int32(e){r.setUint16(0,4,this)}get _isInt64(){return r.getUint16(0,this)===5}set int64(e){r.setUint16(0,5,this)}get _isUint8(){return r.getUint16(0,this)===6}set uint8(e){r.setUint16(0,6,this)}get _isUint16(){return r.getUint16(0,this)===7}set uint16(e){r.setUint16(0,7,this)}get _isUint32(){return r.getUint16(0,this)===8}set uint32(e){r.setUint16(0,8,this)}get _isUint64(){return r.getUint16(0,this)===9}set uint64(e){r.setUint16(0,9,this)}get _isFloat32(){return r.getUint16(0,this)===10}set float32(e){r.setUint16(0,10,this)}get _isFloat64(){return r.getUint16(0,this)===11}set float64(e){r.setUint16(0,11,this)}get _isText(){return r.getUint16(0,this)===12}set text(e){r.setUint16(0,12,this)}get _isData(){return r.getUint16(0,this)===13}set data(e){r.setUint16(0,13,this)}get list(){return r.testWhich(`list`,r.getUint16(0,this),14,this),r.getAs(E,this)}_initList(){return r.setUint16(0,14,this),r.getAs(E,this)}get _isList(){return r.getUint16(0,this)===14}set list(e){r.setUint16(0,14,this)}get enum(){return r.testWhich(`enum`,r.getUint16(0,this),15,this),r.getAs(D,this)}_initEnum(){return r.setUint16(0,15,this),r.getAs(D,this)}get _isEnum(){return r.getUint16(0,this)===15}set enum(e){r.setUint16(0,15,this)}get struct(){return r.testWhich(`struct`,r.getUint16(0,this),16,this),r.getAs(O,this)}_initStruct(){return r.setUint16(0,16,this),r.getAs(O,this)}get _isStruct(){return r.getUint16(0,this)===16}set struct(e){r.setUint16(0,16,this)}get interface(){return r.testWhich(`interface`,r.getUint16(0,this),17,this),r.getAs(k,this)}_initInterface(){return r.setUint16(0,17,this),r.getAs(k,this)}get _isInterface(){return r.getUint16(0,this)===17}set interface(e){r.setUint16(0,17,this)}get anyPointer(){return r.testWhich(`anyPointer`,r.getUint16(0,this),18,this),r.getAs(F,this)}_initAnyPointer(){return r.setUint16(0,18,this),r.getAs(F,this)}get _isAnyPointer(){return r.getUint16(0,this)===18}set anyPointer(e){r.setUint16(0,18,this)}toString(){return`Type_`+super.toString()}which(){return r.getUint16(0,this)}};const R={BIND:0,INHERIT:1};var z=class e extends t{static BIND=R.BIND;static INHERIT=R.INHERIT;static _capnp={displayName:`Scope`,id:`abd73485a9636bc9`,size:new i(16,1)};static _Bind;get scopeId(){return r.getUint64(0,this)}set scopeId(e){r.setUint64(0,e,this)}_adoptBind(e){r.setUint16(8,0,this),r.adopt(e,r.getPointer(0,this))}_disownBind(){return r.disown(this.bind)}get bind(){return r.testWhich(`bind`,r.getUint16(8,this),0,this),r.getList(0,e._Bind,this)}_hasBind(){return!r.isNull(r.getPointer(0,this))}_initBind(t){return r.setUint16(8,0,this),r.initList(0,e._Bind,t,this)}get _isBind(){return r.getUint16(8,this)===0}set bind(e){r.setUint16(8,0,this),r.copyFrom(e,r.getPointer(0,this))}get _isInherit(){return r.getUint16(8,this)===1}set inherit(e){r.setUint16(8,1,this)}toString(){return`Brand_Scope_`+super.toString()}which(){return r.getUint16(8,this)}};const B={UNBOUND:0,TYPE:1};var V=class extends t{static UNBOUND=B.UNBOUND;static TYPE=B.TYPE;static _capnp={displayName:`Binding`,id:`c863cd16969ee7fc`,size:new i(8,1)};get _isUnbound(){return r.getUint16(0,this)===0}set unbound(e){r.setUint16(0,0,this)}_adoptType(e){r.setUint16(0,1,this),r.adopt(e,r.getPointer(0,this))}_disownType(){return r.disown(this.type)}get type(){return r.testWhich(`type`,r.getUint16(0,this),1,this),r.getStruct(0,L,this)}_hasType(){return!r.isNull(r.getPointer(0,this))}_initType(){return r.setUint16(0,1,this),r.initStructAt(0,L,this)}get _isType(){return r.getUint16(0,this)===1}set type(e){r.setUint16(0,1,this),r.copyFrom(e,r.getPointer(0,this))}toString(){return`Brand_Binding_`+super.toString()}which(){return r.getUint16(0,this)}},H=class e extends t{static Scope=z;static Binding=V;static _capnp={displayName:`Brand`,id:`903455f06065422b`,size:new i(0,1)};static _Scopes;_adoptScopes(e){r.adopt(e,r.getPointer(0,this))}_disownScopes(){return r.disown(this.scopes)}get scopes(){return r.getList(0,e._Scopes,this)}_hasScopes(){return!r.isNull(r.getPointer(0,this))}_initScopes(t){return r.initList(0,e._Scopes,t,this)}set scopes(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Brand_`+super.toString()}};const U={VOID:0,BOOL:1,INT8:2,INT16:3,INT32:4,INT64:5,UINT8:6,UINT16:7,UINT32:8,UINT64:9,FLOAT32:10,FLOAT64:11,TEXT:12,DATA:13,LIST:14,ENUM:15,STRUCT:16,INTERFACE:17,ANY_POINTER:18};var W=class extends t{static VOID=U.VOID;static BOOL=U.BOOL;static INT8=U.INT8;static INT16=U.INT16;static INT32=U.INT32;static INT64=U.INT64;static UINT8=U.UINT8;static UINT16=U.UINT16;static UINT32=U.UINT32;static UINT64=U.UINT64;static FLOAT32=U.FLOAT32;static FLOAT64=U.FLOAT64;static TEXT=U.TEXT;static DATA=U.DATA;static LIST=U.LIST;static ENUM=U.ENUM;static STRUCT=U.STRUCT;static INTERFACE=U.INTERFACE;static ANY_POINTER=U.ANY_POINTER;static _capnp={displayName:`Value`,id:`ce23dcd2d7b00c9b`,size:new i(16,1)};get _isVoid(){return r.getUint16(0,this)===0}set void(e){r.setUint16(0,0,this)}get bool(){return r.testWhich(`bool`,r.getUint16(0,this),1,this),r.getBit(16,this)}get _isBool(){return r.getUint16(0,this)===1}set bool(e){r.setUint16(0,1,this),r.setBit(16,e,this)}get int8(){return r.testWhich(`int8`,r.getUint16(0,this),2,this),r.getInt8(2,this)}get _isInt8(){return r.getUint16(0,this)===2}set int8(e){r.setUint16(0,2,this),r.setInt8(2,e,this)}get int16(){return r.testWhich(`int16`,r.getUint16(0,this),3,this),r.getInt16(2,this)}get _isInt16(){return r.getUint16(0,this)===3}set int16(e){r.setUint16(0,3,this),r.setInt16(2,e,this)}get int32(){return r.testWhich(`int32`,r.getUint16(0,this),4,this),r.getInt32(4,this)}get _isInt32(){return r.getUint16(0,this)===4}set int32(e){r.setUint16(0,4,this),r.setInt32(4,e,this)}get int64(){return r.testWhich(`int64`,r.getUint16(0,this),5,this),r.getInt64(8,this)}get _isInt64(){return r.getUint16(0,this)===5}set int64(e){r.setUint16(0,5,this),r.setInt64(8,e,this)}get uint8(){return r.testWhich(`uint8`,r.getUint16(0,this),6,this),r.getUint8(2,this)}get _isUint8(){return r.getUint16(0,this)===6}set uint8(e){r.setUint16(0,6,this),r.setUint8(2,e,this)}get uint16(){return r.testWhich(`uint16`,r.getUint16(0,this),7,this),r.getUint16(2,this)}get _isUint16(){return r.getUint16(0,this)===7}set uint16(e){r.setUint16(0,7,this),r.setUint16(2,e,this)}get uint32(){return r.testWhich(`uint32`,r.getUint16(0,this),8,this),r.getUint32(4,this)}get _isUint32(){return r.getUint16(0,this)===8}set uint32(e){r.setUint16(0,8,this),r.setUint32(4,e,this)}get uint64(){return r.testWhich(`uint64`,r.getUint16(0,this),9,this),r.getUint64(8,this)}get _isUint64(){return r.getUint16(0,this)===9}set uint64(e){r.setUint16(0,9,this),r.setUint64(8,e,this)}get float32(){return r.testWhich(`float32`,r.getUint16(0,this),10,this),r.getFloat32(4,this)}get _isFloat32(){return r.getUint16(0,this)===10}set float32(e){r.setUint16(0,10,this),r.setFloat32(4,e,this)}get float64(){return r.testWhich(`float64`,r.getUint16(0,this),11,this),r.getFloat64(8,this)}get _isFloat64(){return r.getUint16(0,this)===11}set float64(e){r.setUint16(0,11,this),r.setFloat64(8,e,this)}get text(){return r.testWhich(`text`,r.getUint16(0,this),12,this),r.getText(0,this)}get _isText(){return r.getUint16(0,this)===12}set text(e){r.setUint16(0,12,this),r.setText(0,e,this)}_adoptData(e){r.setUint16(0,13,this),r.adopt(e,r.getPointer(0,this))}_disownData(){return r.disown(this.data)}get data(){return r.testWhich(`data`,r.getUint16(0,this),13,this),r.getData(0,this)}_hasData(){return!r.isNull(r.getPointer(0,this))}_initData(e){return r.setUint16(0,13,this),r.initData(0,e,this)}get _isData(){return r.getUint16(0,this)===13}set data(e){r.setUint16(0,13,this),r.copyFrom(e,r.getPointer(0,this))}_adoptList(e){r.setUint16(0,14,this),r.adopt(e,r.getPointer(0,this))}_disownList(){return r.disown(this.list)}get list(){return r.testWhich(`list`,r.getUint16(0,this),14,this),r.getPointer(0,this)}_hasList(){return!r.isNull(r.getPointer(0,this))}get _isList(){return r.getUint16(0,this)===14}set list(e){r.setUint16(0,14,this),r.copyFrom(e,r.getPointer(0,this))}get enum(){return r.testWhich(`enum`,r.getUint16(0,this),15,this),r.getUint16(2,this)}get _isEnum(){return r.getUint16(0,this)===15}set enum(e){r.setUint16(0,15,this),r.setUint16(2,e,this)}_adoptStruct(e){r.setUint16(0,16,this),r.adopt(e,r.getPointer(0,this))}_disownStruct(){return r.disown(this.struct)}get struct(){return r.testWhich(`struct`,r.getUint16(0,this),16,this),r.getPointer(0,this)}_hasStruct(){return!r.isNull(r.getPointer(0,this))}get _isStruct(){return r.getUint16(0,this)===16}set struct(e){r.setUint16(0,16,this),r.copyFrom(e,r.getPointer(0,this))}get _isInterface(){return r.getUint16(0,this)===17}set interface(e){r.setUint16(0,17,this)}_adoptAnyPointer(e){r.setUint16(0,18,this),r.adopt(e,r.getPointer(0,this))}_disownAnyPointer(){return r.disown(this.anyPointer)}get anyPointer(){return r.testWhich(`anyPointer`,r.getUint16(0,this),18,this),r.getPointer(0,this)}_hasAnyPointer(){return!r.isNull(r.getPointer(0,this))}get _isAnyPointer(){return r.getUint16(0,this)===18}set anyPointer(e){r.setUint16(0,18,this),r.copyFrom(e,r.getPointer(0,this))}toString(){return`Value_`+super.toString()}which(){return r.getUint16(0,this)}},G=class extends t{static _capnp={displayName:`Annotation`,id:`f1c8950dab257542`,size:new i(8,2)};get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}_adoptBrand(e){r.adopt(e,r.getPointer(1,this))}_disownBrand(){return r.disown(this.brand)}get brand(){return r.getStruct(1,H,this)}_hasBrand(){return!r.isNull(r.getPointer(1,this))}_initBrand(){return r.initStructAt(1,H,this)}set brand(e){r.copyFrom(e,r.getPointer(1,this))}_adoptValue(e){r.adopt(e,r.getPointer(0,this))}_disownValue(){return r.disown(this.value)}get value(){return r.getStruct(0,W,this)}_hasValue(){return!r.isNull(r.getPointer(0,this))}_initValue(){return r.initStructAt(0,W,this)}set value(e){r.copyFrom(e,r.getPointer(0,this))}toString(){return`Annotation_`+super.toString()}};const K={EMPTY:0,BIT:1,BYTE:2,TWO_BYTES:3,FOUR_BYTES:4,EIGHT_BYTES:5,POINTER:6,INLINE_COMPOSITE:7};var q=class extends t{static _capnp={displayName:`CapnpVersion`,id:`d85d305b7d839963`,size:new i(8,0)};get major(){return r.getUint16(0,this)}set major(e){r.setUint16(0,e,this)}get minor(){return r.getUint8(2,this)}set minor(e){r.setUint8(2,e,this)}get micro(){return r.getUint8(3,this)}set micro(e){r.setUint8(3,e,this)}toString(){return`CapnpVersion_`+super.toString()}},J=class extends t{static _capnp={displayName:`Import`,id:`ae504193122357e5`,size:new i(8,1)};get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}get name(){return r.getText(0,this)}set name(e){r.setText(0,e,this)}toString(){return`CodeGeneratorRequest_RequestedFile_Import_`+super.toString()}},Y=class e extends t{static Import=J;static _capnp={displayName:`RequestedFile`,id:`cfea0eb02e810062`,size:new i(8,2)};static _Imports;get id(){return r.getUint64(0,this)}set id(e){r.setUint64(0,e,this)}get filename(){return r.getText(0,this)}set filename(e){r.setText(0,e,this)}_adoptImports(e){r.adopt(e,r.getPointer(1,this))}_disownImports(){return r.disown(this.imports)}get imports(){return r.getList(1,e._Imports,this)}_hasImports(){return!r.isNull(r.getPointer(1,this))}_initImports(t){return r.initList(1,e._Imports,t,this)}set imports(e){r.copyFrom(e,r.getPointer(1,this))}toString(){return`CodeGeneratorRequest_RequestedFile_`+super.toString()}},X=class e extends t{static RequestedFile=Y;static _capnp={displayName:`CodeGeneratorRequest`,id:`bfc546f6210ad7ce`,size:new i(0,4)};static _Nodes;static _SourceInfo;static _RequestedFiles;_adoptCapnpVersion(e){r.adopt(e,r.getPointer(2,this))}_disownCapnpVersion(){return r.disown(this.capnpVersion)}get capnpVersion(){return r.getStruct(2,q,this)}_hasCapnpVersion(){return!r.isNull(r.getPointer(2,this))}_initCapnpVersion(){return r.initStructAt(2,q,this)}set capnpVersion(e){r.copyFrom(e,r.getPointer(2,this))}_adoptNodes(e){r.adopt(e,r.getPointer(0,this))}_disownNodes(){return r.disown(this.nodes)}get nodes(){return r.getList(0,e._Nodes,this)}_hasNodes(){return!r.isNull(r.getPointer(0,this))}_initNodes(t){return r.initList(0,e._Nodes,t,this)}set nodes(e){r.copyFrom(e,r.getPointer(0,this))}_adoptSourceInfo(e){r.adopt(e,r.getPointer(3,this))}_disownSourceInfo(){return r.disown(this.sourceInfo)}get sourceInfo(){return r.getList(3,e._SourceInfo,this)}_hasSourceInfo(){return!r.isNull(r.getPointer(3,this))}_initSourceInfo(t){return r.initList(3,e._SourceInfo,t,this)}set sourceInfo(e){r.copyFrom(e,r.getPointer(3,this))}_adoptRequestedFiles(e){r.adopt(e,r.getPointer(1,this))}_disownRequestedFiles(){return r.disown(this.requestedFiles)}get requestedFiles(){return r.getList(1,e._RequestedFiles,this)}_hasRequestedFiles(){return!r.isNull(r.getPointer(1,this))}_initRequestedFiles(t){return r.initList(1,e._RequestedFiles,t,this)}set requestedFiles(e){r.copyFrom(e,r.getPointer(1,this))}toString(){return`CodeGeneratorRequest_`+super.toString()}};l._Members=n(c),u._Fields=n(S),d._Enumerants=n(C),f._Methods=n(T),f._Superclasses=n(w),g._Parameters=n(o),g._NestedNodes=n(s),g._Annotations=n(G),S._Annotations=n(G),C._Annotations=n(G),T._ImplicitParameters=n(o),T._Annotations=n(G),z._Bind=n(V),H._Scopes=n(z),Y._Imports=n(J),X._Nodes=n(g),X._SourceInfo=n(l),X._RequestedFiles=n(Y);export{G as Annotation,H as Brand,V as Brand_Binding,B as Brand_Binding_Which,z as Brand_Scope,R as Brand_Scope_Which,q as CapnpVersion,X as CodeGeneratorRequest,Y as CodeGeneratorRequest_RequestedFile,J as CodeGeneratorRequest_RequestedFile_Import,K as ElementSize,C as Enumerant,S as Field,v as Field_Group,b as Field_Ordinal,y as Field_Ordinal_Which,_ as Field_Slot,x as Field_Which,T as Method,g as Node,m as Node_Annotation,p as Node_Const,d as Node_Enum,f as Node_Interface,s as Node_NestedNode,o as Node_Parameter,l as Node_SourceInfo,c as Node_SourceInfo_Member,u as Node_Struct,h as Node_Which,w as Superclass,L as Type,F as Type_AnyPointer,N as Type_AnyPointer_ImplicitMethodParameter,M as Type_AnyPointer_Parameter,j as Type_AnyPointer_Unconstrained,A as Type_AnyPointer_Unconstrained_Which,P as Type_AnyPointer_Which,D as Type_Enum,k as Type_Interface,E as Type_List,O as Type_Struct,I as Type_Which,W as Value,U as Value_Which,a as _capnpFileId};
|
|
2
2
|
//# sourceMappingURL=schema.mjs.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
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=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`@stryke/fs/exists`),require(`typescript`),require(`defu`),require(`@stryke/fs/json`),require(`@stryke/fs/list-files`),require(`@stryke/path/file-path-fns`),require(`@stryke/path/join-paths`);var c=(e=>(e[e.VOID=0]=`VOID`,e[e.BIT=1]=`BIT`,e[e.BYTE=2]=`BYTE`,e[e.BYTE_2=3]=`BYTE_2`,e[e.BYTE_4=4]=`BYTE_4`,e[e.BYTE_8=5]=`BYTE_8`,e[e.POINTER=6]=`POINTER`,e[e.COMPOSITE=7]=`COMPOSITE`,e))(c||{});const l=new DataView(new ArrayBuffer(8));new Uint16Array(l.buffer)[0]=258;const u=4096,d=64<<20,f=7,p=8192,ee=2147483647,te=4294967295,ne=4096,m=l.getUint8(0)===2,re=2,ie=4,ae=3,oe=2147483647,se=4294967295,ce=`CAPNP-TS000 Unreachable code detected.`;function le(e){throw Error(`CAPNP-TS000 Unreachable code detected. (never block hit with: ${e})`)}const ue=`CAPNP-TS001 Attempted to parse an invalid message frame header; are you sure this is a Cap'n Proto message?`,de=`CAPNP-TS003 Attempted to pack a message that was not word-aligned.`,fe=`CAPNP-TS004 Segment ID %X is out of bounds for message %s.`,pe=`CAPNP-TS005 First segment must have at least enough room to hold the root pointer (8 bytes).`,me=`CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.`,he=`CAPNP-TS009 Attempted to adopt %s more than once.`,ge=`CAPNP-TS010 Attempted to set a composite list without providing a composite element size.`,_e=`CAPNP-TS011 Nesting depth limit exceeded for %s.`,ve=`CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).`,ye=`CAPNP-TS015 Target of a far pointer (%s) is another far pointer.`,be=`CAPNP-TS016 Invalid list element size: %x.`,xe=`CAPNP-TS017 Invalid pointer type: %x.`,Se=`CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).`,Ce=`CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.`,we=`CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).`,Te=`CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).`,Ee=`CAPNP-TS022 Traversal limit exceeded! Slow down! %s`,De=`CAPNP-TS023 Cannot convert %s to a %s list.`,Oe=`CAPNP-TS024 Attempted to convert pointer %s to a %s type.`,ke=`CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.`,Ae=`CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).`,je=`CAPNP-TS037 Segment buffer length %d is not a multiple of 8.`,Me=`CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.`,Ne=`CAPNP-TS039 Requested size %x exceeds maximum value (${se}).`,Pe=`CAPNP-TS040 Must provide a composite element size for composite list pointers.`,h=`CAPNP-TS045: Cannot call mutative methods on an immutable list.`,Fe=`CAPNP-TS046: Search is not supported for list.`,Ie=`CAPNP-TS100 Call on null client.`,Le=`CAPNP-TS101 Promised answer call queue full.`,Re=`CAPNP-TS102 Queue call canceled.`,ze=`CAPNP-TS107 Method not implemented.`,Be=`CAPNP-TS116 RPC method failed at %s.%s(): %s`;function Ve(e){let t=new Uint8Array(e),n=[];for(let e=0;e<t.byteLength;e++)n.push(Ue(t[e].toString(16),2));return`[${n.join(` `)}]`}function He(e){let t=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength),n=Math.min(t.byteLength,8192),r=g(`
|
|
2
|
+
=== buffer[%d] ===`,n);for(let e=0;e<n;e+=16){r+=`
|
|
3
|
+
${Ue(e.toString(16),8)}: `;let n=``,i;for(i=0;i<16&&e+i<t.byteLength;i++){let a=t[e+i];r+=`${Ue(a.toString(16),2)} `,n+=a>31&&a<255?String.fromCharCode(a):`·`,i===7&&(r+=` `)}r+=`${` `.repeat((17-i)*3)}${n}`}return r+=`
|
|
4
|
+
`,n!==t.byteLength&&(r+=g(`=== (truncated %d bytes) ===
|
|
5
|
+
`,t.byteLength-n)),r}function g(e,...t){let n=e.length,r,i=0,a,o=!1,s=0,c=!1,l,u=``;function d(){return t[i++]}function f(){let t=``;for(;/\d/.test(e[s]);)t+=e[s++],a=e[s];return t.length>0?Number.parseInt(t,10):null}for(;s<n;++s)if(a=e[s],o)switch(o=!1,a===`.`?(c=!1,a=e[++s]):a===`0`&&e[s+1]===`.`?(c=!0,s+=2,a=e[s]):c=!0,l=f(),a){case`a`:u+=`0x`+Ue(Number.parseInt(String(d()),10).toString(16),8);break;case`b`:u+=Number.parseInt(String(d()),10).toString(2);break;case`c`:r=d(),u+=typeof r==`string`||r instanceof String?r:String.fromCharCode(Number.parseInt(String(r),10));break;case`d`:u+=Number.parseInt(String(d()),10);break;case`f`:{let e=Number.parseFloat(String(d())).toFixed(l||6);u+=c?e:e.replace(/^0/,``);break}case`j`:u+=JSON.stringify(d());break;case`o`:u+=`0`+Number.parseInt(String(d()),10).toString(8);break;case`s`:u+=d();break;case`x`:u+=`0x`+Number.parseInt(String(d()),10).toString(16);break;case`X`:u+=`0x`+Number.parseInt(String(d()),10).toString(16).toUpperCase();break;default:u+=a;break}else a===`%`?o=!0:u+=a;return u}function Ue(e,t,n=`0`){return e.length>=t?e:Array.from({length:t-e.length+1}).join(n)+e}function _(e){return e+7&-8}var v=class{constructor(e,t){this.dataByteLength=e,this.pointerLength=t}toString(){return g(`ObjectSize_dw:%d,pc:%d`,b(this),this.pointerLength)}};function y(e){return e.dataByteLength+e.pointerLength*8}function b(e){return e.dataByteLength/8}function x(e){return e.dataByteLength/8+e.pointerLength}function We(e){return new v(_(e.dataByteLength),e.pointerLength)}var Ge=class{_capnp;byteOffset;segment;constructor(e){let t=E(e);switch(this.segment=t.segment,this.byteOffset=t.byteOffset,this._capnp={},this._capnp.type=M(e),this._capnp.type){case z.STRUCT:this._capnp.size=N(e);break;case z.LIST:this._capnp.length=j(e),this._capnp.elementSize=A(e),this._capnp.elementSize===c.COMPOSITE&&(this._capnp.size=st(e));break;case z.OTHER:this._capnp.capId=$e(e);break;default:throw Error(xe)}Ze(e)}_moveTo(e){if(this._capnp===void 0)throw Error(g(`CAPNP-TS009 Attempted to adopt %s more than once.`,this));if(this.segment.message!==e.segment.message)throw Error(g(`CAPNP-TS008 Attempted to adopt %s into a pointer in a different message %s.`,this,e));w(e);let t=P(this.segment,this.byteOffset,e);switch(this._capnp.type){case z.STRUCT:L(t.offsetWords,this._capnp.size,t.pointer);break;case z.LIST:{let{offsetWords:e}=t;this._capnp.elementSize===c.COMPOSITE&&e--,I(e,this._capnp.elementSize,this._capnp.length,t.pointer,this._capnp.size);break}case z.OTHER:dt(this._capnp.capId,t.pointer);break;default:throw Error(xe)}this._capnp=void 0}dispose(){if(this._capnp!==void 0){switch(this._capnp.type){case z.STRUCT:this.segment.fillZeroWords(this.byteOffset,x(this._capnp.size));break;case z.LIST:{let e=Ye(this._capnp.elementSize,this._capnp.length,this._capnp.size);this.segment.fillZeroWords(this.byteOffset,e);break}}this._capnp=void 0}}[Symbol.for(`nodejs.util.inspect.custom`)](){return g(`Orphan_%d@%a,type:%s`,this.segment.id,this.byteOffset,this._capnp&&this._capnp.type)}};function Ke(e,t){e._moveTo(t)}function qe(e){return new Ge(e)}function Je(e){return Ve(e.segment.buffer.slice(e.byteOffset,e.byteOffset+8))}function Ye(e,t,n){switch(e){case c.BIT:return _(t+7>>>3);case c.BYTE:case c.BYTE_2:case c.BYTE_4:case c.BYTE_8:case c.POINTER:case c.VOID:return _(S(e)*t);case c.COMPOSITE:if(n===void 0)throw Error(g(be,NaN));return t*_(y(n));default:throw Error(be)}}function S(e){switch(e){case c.BIT:return NaN;case c.BYTE:return 1;case c.BYTE_2:return 2;case c.BYTE_4:return 4;case c.BYTE_8:case c.POINTER:return 8;case c.COMPOSITE:return NaN;case c.VOID:return 0;default:throw Error(g(be,e))}}function Xe(e,t){return new B(t.segment,t.byteOffset+e,t._capnp.depthLimit)}function C(e,t){if(!(t.segment===e.segment&&t.byteOffset===e.byteOffset)&&(w(t),!F(e)))switch(M(e)){case z.STRUCT:ht(e,t);break;case z.LIST:mt(e,t);break;case z.OTHER:pt(e,t);break;default:throw Error(g(xe,M(t)))}}function w(e){if(F(e))return;let t;switch(M(e)){case z.STRUCT:{let n=N(e);t=E(e),t.segment.fillZeroWords(t.byteOffset,n.dataByteLength/8);for(let e=0;e<n.pointerLength;e++)w(Xe(e*8,t));break}case z.LIST:{let n=A(e),r=j(e),i=_(r*S(n));if(t=E(e),n===c.POINTER){for(let n=0;n<r;n++)w(new B(t.segment,t.byteOffset+n*8,e._capnp.depthLimit-1));break}else if(n===c.COMPOSITE){let n=Xe(-8,t),a=k(n),o=y(a);i=D(n),t.segment.setWordZero(t.byteOffset-8);for(let n=0;n<r;n++)for(let r=0;r<a.pointerLength;r++)w(new B(t.segment,t.byteOffset+n*o+r*8,e._capnp.depthLimit-1))}t.segment.fillZeroWords(t.byteOffset,i);break}case z.OTHER:break;default:throw Error(g(xe,M(e)))}Ze(e)}function Ze(e){if(O(e)===z.FAR){let t=Qe(e);ct(e)&&t.segment.setWordZero(t.byteOffset+8),t.segment.setWordZero(t.byteOffset)}e.segment.setWordZero(e.byteOffset)}function Qe(e){return new B(e.segment.message.getSegment(e.segment.getUint32(e.byteOffset+4)),(e.segment.getUint32(e.byteOffset)>>>3)*8,e._capnp.depthLimit-1)}function T(e){if(O(e)===z.FAR){let t=Qe(e);return ct(e)&&(t.byteOffset+=8),t}return e}function $e(e){return e.segment.getUint32(e.byteOffset+4)}function et(e){return M(e)===z.LIST&&A(e)===c.COMPOSITE}function E(e,t){let n;if(ct(e)){let t=Qe(e);n=new B(e.segment.message.getSegment(tt(t)),D(t)*8)}else{let t=T(e);n=new B(t.segment,t.byteOffset+8+D(t)*8)}return et(e)&&(n.byteOffset+=8),!t&&e._capnp.compositeIndex!==void 0&&(n.byteOffset-=8,n.byteOffset+=8+e._capnp.compositeIndex*y(We(k(n)))),n}function tt(e){return e.segment.getUint32(e.byteOffset+4)}function nt(e){return e.segment.getUint32(e.byteOffset+4)&7}function rt(e){return e.segment.getUint32(e.byteOffset+4)>>>3}function D(e){let t=e.segment.getInt32(e.byteOffset);return t&2?t>>3:t>>2}function O(e){return e.segment.getUint32(e.byteOffset)&3}function it(e){return e.segment.getUint16(e.byteOffset+4)}function at(e){return e.segment.getUint16(e.byteOffset+6)}function k(e){return new v(it(e)*8,at(e))}function ot(e){let t=E(e);return t.byteOffset-=8,t}function st(e){return k(ot(e))}function A(e){return nt(T(e))}function j(e){let t=T(e);return nt(t)===c.COMPOSITE?D(ot(e)):rt(t)}function M(e){let t=O(T(e));if(t===z.FAR)throw Error(g(`CAPNP-TS015 Target of a far pointer (%s) is another far pointer.`,e));return t}function N(e){return k(T(e))}function P(e,t,n){if(n.segment!==e){if(!e.hasCapacity(8)){let r=n.segment.allocate(16);return ut(!0,r.byteOffset/8,r.segment.id,n),ut(!1,t/8,e.id,r),r.byteOffset+=8,new _t(r,0)}let r=e.allocate(8);if(r.segment.id!==e.id)throw Error(ce);return ut(!1,r.byteOffset/8,r.segment.id,n),new _t(r,(t-r.byteOffset-8)/8)}return new _t(n,(t-n.byteOffset-8)/8)}function ct(e){return O(e)===z.FAR&&(e.segment.getUint32(e.byteOffset)&4)!=0}function F(e){return e.segment.isWordZero(e.byteOffset)}function lt(e,t){let n=T(t),r=n.segment.getUint8(n.byteOffset)&3,i=n.segment.getUint32(n.byteOffset+4);w(e);let a=P(n.segment,n.byteOffset+8+D(n)*8,e);a.pointer.segment.setUint32(a.pointer.byteOffset,r|a.offsetWords<<2),a.pointer.segment.setUint32(a.pointer.byteOffset+4,i),Ze(t)}function ut(e,t,n,r){let i=z.FAR,a=e?1:0,o=t,s=n;r.segment.setUint32(r.byteOffset,i|a<<2|o<<3),r.segment.setUint32(r.byteOffset+4,s)}function dt(e,t){t.segment.setUint32(t.byteOffset,z.OTHER),t.segment.setUint32(t.byteOffset+4,e)}function ft(e){return e.segment.getUint32(e.byteOffset+4)}function I(e,t,n,r,i){let a=z.LIST,o=e,s=t,l=n;if(t===c.COMPOSITE){if(i===void 0)throw TypeError(`CAPNP-TS040 Must provide a composite element size for composite list pointers.`);l*=x(i)}r.segment.setUint32(r.byteOffset,a|o<<2),r.segment.setUint32(r.byteOffset+4,s|l<<3)}function L(e,t,n){let r=z.STRUCT,i=e,a=b(t),o=t.pointerLength;n.segment.setUint32(n.byteOffset,r|i<<2),n.segment.setUint16(n.byteOffset+4,a),n.segment.setUint16(n.byteOffset+6,o)}function R(e,t,n){if(F(t))return;let r=T(t);if((r.segment.getUint32(r.byteOffset)&3)!==e)throw Error(g(`CAPNP-TS024 Attempted to convert pointer %s to a %s type.`,t,e));if(n!==void 0&&(r.segment.getUint32(r.byteOffset+4)&7)!==n)throw Error(g(`CAPNP-TS023 Cannot convert %s to a %s list.`,t,c[n]))}function pt(e,t){let n=ft(e);if(n<0)return;let r=e.segment.message._capnp.capTable;if(!r)return;let i=r[n];i&&dt(t.segment.message.addCap(i),t)}function mt(e,t){if(t._capnp.depthLimit<=0)throw Error(_e);let n=E(e),r=A(e),i=j(e),a,o,s;if(r===c.POINTER){s=t.segment.allocate(i<<3);for(let r=0;r<i;r++)C(new B(n.segment,n.byteOffset+(r<<3),e._capnp.depthLimit-1),new B(s.segment,s.byteOffset+(r<<3),t._capnp.depthLimit-1))}else if(r===c.COMPOSITE){if(a=We(st(e)),o=y(a),s=t.segment.allocate(y(a)*i+8),s.segment.copyWord(s.byteOffset,n.segment,n.byteOffset-8),a.dataByteLength>0){let e=x(a)*i;s.segment.copyWords(s.byteOffset+8,n.segment,n.byteOffset,e)}for(let r=0;r<i;r++)for(let i=0;i<a.pointerLength;i++){let c=r*o+a.dataByteLength+(i<<3);C(new B(n.segment,n.byteOffset+c,e._capnp.depthLimit-1),new B(s.segment,s.byteOffset+c+8,t._capnp.depthLimit-1))}}else{let e=_(r===c.BIT?i+7>>>3:S(r)*i),a=e>>>3;s=t.segment.allocate(e),s.segment.copyWords(s.byteOffset,n.segment,n.byteOffset,a)}let l=P(s.segment,s.byteOffset,t);I(l.offsetWords,r,i,l.pointer,a)}function ht(e,t){if(t._capnp.depthLimit<=0)throw Error(_e);let n=E(e),r=N(e),i=b(r),a=t.segment.allocate(y(r));a.segment.copyWords(a.byteOffset,n.segment,n.byteOffset,i);for(let i=0;i<r.pointerLength;i++){let o=r.dataByteLength+i*8;C(new B(n.segment,n.byteOffset+o,e._capnp.depthLimit-1),new B(a.segment,a.byteOffset+o,t._capnp.depthLimit-1))}if(t._capnp.compositeList)return;let o=P(a.segment,a.byteOffset,t);L(o.offsetWords,r,o.pointer)}function gt(e,t){if(e._capnp.traversalLimit-=8,e._capnp.traversalLimit<=0)throw Error(g(`CAPNP-TS022 Traversal limit exceeded! Slow down! %s`,t))}var _t=class{constructor(e,t){this.pointer=e,this.offsetWords=t}},z=(e=>(e[e.STRUCT=0]=`STRUCT`,e[e.LIST=1]=`LIST`,e[e.FAR=2]=`FAR`,e[e.OTHER=3]=`OTHER`,e))(z||{}),B=class{static _capnp={displayName:`Pointer`};_capnp;byteOffset;segment;constructor(e,t,n=oe){if(this._capnp={compositeList:!1,depthLimit:n},this.segment=e,this.byteOffset=t,n<1)throw Error(g(_e,this));if(gt(e.message,this),t<0||t>e.byteLength)throw Error(g(`CAPNP-TS019 Pointer offset %a is out of bounds for underlying buffer.`,t))}[Symbol.toStringTag](){return g(`Pointer_%d`,this.segment.id)}toString(){return g(`->%d@%a%s`,this.segment.id,this.byteOffset,Je(this))}},V=class e extends B{static _capnp={displayName:`List<Generic>`,size:c.VOID};constructor(t,n,r){return super(t,n,r),new Proxy(this,e.#e)}static#e={get(e,t,n){let r=Reflect.get(e,t,n);if(r!==void 0)return r;if(typeof t==`string`)return e.get(+t)}};get length(){return j(this)}toArray(){let{length:e}=this,t=Array.from({length:e});for(let n=0;n<e;n++)t[n]=this.at(n);return t}get(e){throw TypeError(`Cannot get from a generic list.`)}set(e,t){throw TypeError(`Cannot set on a generic list.`)}at(e){return this.get(e<0?this.length+e:e)}concat(e){let{length:t}=this,n=e.length,r=Array.from({length:t+n});for(let e=0;e<t;e++)r[e]=this.at(e);for(let i=0;i<n;i++)r[i+t]=e.at(i);return r}some(e,t){for(let n=0;n<this.length;n++)if(e.call(t,this.at(n),n,this))return!0;return!1}filter(e,t){let n=[];for(let r=0;r<this.length;r++){let i=this.at(r);e.call(t,i,r,this)&&n.push(i)}return n}find(e,t){for(let n=0;n<this.length;n++){let r=this.at(n);if(e.call(t,r,n,this))return r}}findIndex(e,t){for(let n=0;n<this.length;n++){let r=this.at(n);if(e.call(t,r,n,this))return n}return-1}forEach(e,t){for(let n=0;n<this.length;n++)e.call(t,this.at(n),n,this)}map(e,t){let{length:n}=this,r=Array.from({length:n});for(let i=0;i<n;i++)r[i]=e.call(t,this.at(i),i,this);return r}flatMap(e,t){let n=[];for(let r=0;r<this.length;r++){let i=e.call(t,this.at(r),r,this);n.push(...Array.isArray(i)?i:[i])}return n}every(e,t){for(let n=0;n<this.length;n++)if(!e.call(t,this.at(n),n,this))return!1;return!0}reduce(e,t){let n=0,r;for(t===void 0?(r=this.at(0),n++):r=t;n<this.length;n++)r=e(r,this.at(n),n,this);return r}reduceRight(e,t){let n=this.length-1,r;for(t===void 0?(r=this.at(n),n--):r=t;n>=0;n--)r=e(r,this.at(n),n,this);return r}slice(e=0,t){let n=t?Math.min(this.length,t):this.length,r=Array.from({length:n-e});for(let t=e;t<n;t++)r[t]=this.at(t);return r}join(e){return this.toArray().join(e)}toReversed(){return this.toArray().reverse()}toSorted(e){return this.toArray().sort(e)}toSpliced(e,t,...n){return this.toArray().splice(e,t,...n)}fill(e,t,n){let{length:r}=this,i=Math.max(t??0,0),a=Math.min(n??r,r);for(let t=i;t<a;t++)this.set(t,e);return this}copyWithin(e,t,n){let{length:r}=this,i=n??r,a=t<0?Math.max(r+t,0):t,o=e<0?Math.max(r+e,0):e,s=Math.min(i-a,r-o);for(let e=0;e<s;e++)this.set(o+e,this.at(a+e));return this}keys(){return Array.from({length:this.length},(e,t)=>t)[Symbol.iterator]()}values(){return this.toArray().values()}entries(){return this.toArray().entries()}flat(e){return this.toArray().flat(e)}with(e,t){return this.toArray().with(e,t)}includes(e,t){throw Error(Fe)}findLast(e,t){throw Error(Fe)}findLastIndex(e,t){throw Error(Fe)}indexOf(e,t){throw Error(Fe)}lastIndexOf(e,t){throw Error(Fe)}pop(){throw Error(h)}push(...e){throw Error(h)}reverse(){throw Error(h)}shift(){throw Error(h)}unshift(...e){throw Error(h)}splice(e,t,...n){throw Error(h)}sort(e){throw Error(h)}get[Symbol.unscopables](){return Array.prototype[Symbol.unscopables]}[Symbol.iterator](){return this.values()}toJSON(){return this.toArray()}toString(){return this.join(`,`)}toLocaleString(e,t){return this.toString()}[Symbol.toStringTag](){return`[object Array]`}static[Symbol.toStringTag](){return this._capnp.displayName}};function H(e,t,n,r){let i;switch(e){case c.BIT:i=n.segment.allocate(Math.ceil(t/8));break;case c.BYTE:case c.BYTE_2:case c.BYTE_4:case c.BYTE_8:case c.POINTER:i=n.segment.allocate(t*S(e));break;case c.COMPOSITE:{if(r===void 0)throw Error(g(`CAPNP-TS010 Attempted to set a composite list without providing a composite element size.`));r=We(r);let e=y(r)*t;i=n.segment.allocate(e+8),L(t,r,i);break}case c.VOID:I(0,e,t,n);return;default:throw Error(g(be,e))}let a=P(i.segment,i.byteOffset,n);I(a.offsetWords,e,t,a.pointer,r)}var vt=class extends V{static fromPointer(e){return R(z.LIST,e,c.BYTE),this._fromPointerUnchecked(e)}static _fromPointerUnchecked(e){return new this(e.segment,e.byteOffset,e._capnp.depthLimit)}copyBuffer(e){let t=E(this),n=this.length,r=e.byteLength,i=e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,Math.min(n,r)),a=new Uint8Array(t.segment.buffer,t.byteOffset,this.length);a.set(i),n>r&&a.fill(0,r,n)}get(e){let t=E(this);return t.segment.getUint8(t.byteOffset+e)}set(e,t){let n=E(this);n.segment.setUint8(n.byteOffset+e,t)}toArrayBuffer(){let e=E(this);return e.segment.buffer.slice(e.byteOffset,e.byteOffset+this.length)}toDataView(){let e=E(this);return new DataView(e.segment.buffer,e.byteOffset,this.length)}[Symbol.toStringTag](){return`Data_${super.toString()}`}toUint8Array(){let e=E(this);return new Uint8Array(e.segment.buffer,e.byteOffset,this.length)}};const yt=new TextEncoder,bt=new TextDecoder;var U=class extends V{static fromPointer(e){return R(z.LIST,e,c.BYTE),xt(e)}get(e=0){if(F(this))return``;let t=E(this);return bt.decode(new Uint8Array(t.segment.buffer,t.byteOffset+e,this.length-e))}get length(){return super.length-1}set(e,t){let n=yt.encode(t),r=n.byteLength+e,i,a;if(!F(this)){i=E(this);let t=Math.min(this.length,e);a=new Uint8Array(i.segment.buffer.slice(i.byteOffset,i.byteOffset+t)),w(this)}H(c.BYTE,r+1,this),i=E(this);let o=new Uint8Array(i.segment.buffer,i.byteOffset,r);a&&o.set(a),o.set(n,e)}toString(){return this.get()}toJSON(){return this.get()}[Symbol.toPrimitive](){return this.get()}[Symbol.toStringTag](){return`Text_${super.toString()}`}};function xt(e){return new U(e.segment,e.byteOffset,e._capnp.depthLimit)}var St=class extends B{static _capnp={displayName:`Struct`};constructor(e,t,n=oe,r){super(e,t,n),this._capnp.compositeIndex=r,this._capnp.compositeList=r!==void 0}static[Symbol.toStringTag](){return this._capnp.displayName}[Symbol.toStringTag](){return`Struct_${super.toString()}${this._capnp.compositeIndex===void 0?``:`,ci:${this._capnp.compositeIndex}`} > ${E(this).toString()}`}},Ct=class extends St{static _capnp={displayName:`AnyStruct`,id:`0`,size:new v(0,0)}},wt=class{struct(){return Promise.resolve(this.structSync())}},Tt=class extends wt{constructor(e){super(),this.err=e}structSync(){throw this.err}pipelineCall(e,t){return this}pipelineClose(e){throw this.err}},Et=class{constructor(e){this.err=e}call(e){return new Tt(this.err)}close(){throw this.err}};function Dt(e){return e??new Et(Error(Ie))}const W=new DataView(new ArrayBuffer(8));function G(e,t){if(t._capnp.compositeIndex!==void 0)throw Error(g(`CAPNP-TS013 Attempted to initialize a struct member from a composite list (%s).`,t));w(t);let n=t.segment.allocate(y(e)),r=P(n.segment,n.byteOffset,t);L(r.offsetWords,e,r.pointer)}function Ot(e,t,n){let r=Ut(e,t,n);return G(t._capnp.size,r),r}function K(e,t){let{pointerLength:n}=Wt(t);if(e<0||e>=n)throw Error(g(`CAPNP-TS021 Attempted to access out-of-bounds struct pointer (%s, index: %d, length: %d).`,t,e,n))}function kt(e,t){return At(Ht(e,t))}function At(e){let t=null,n=ft(e),{capTable:r}=e.segment.message._capnp;return r&&n>=0&&n<r.length&&(t=r[n]),Dt(t)}function jt(e,t){let n=Wt(t),r=E(t),i=t.segment.allocate(y(e));i.segment.copyWords(i.byteOffset,r.segment,r.byteOffset,Math.min(b(n),b(e)));let a=P(i.segment,i.byteOffset,t);L(a.offsetWords,e,a.pointer);for(let t=0;t<Math.min(n.pointerLength,e.pointerLength);t++){let a=new B(r.segment,r.byteOffset+n.dataByteLength+t*8);if(F(a))continue;let o=T(a),s=E(a),l=new B(i.segment,i.byteOffset+e.dataByteLength+t*8);M(a)===z.LIST&&A(a)===c.COMPOSITE&&(s.byteOffset-=8);let u=P(s.segment,s.byteOffset,l),d=o.segment.getUint8(o.byteOffset)&3,f=o.segment.getUint32(o.byteOffset+4);u.pointer.segment.setUint32(u.pointer.byteOffset,d|u.offsetWords<<2),u.pointer.segment.setUint32(u.pointer.byteOffset+4,f)}r.segment.fillZeroWords(r.byteOffset,x(n))}function Mt(e,t){return new e(t.segment,t.byteOffset,t._capnp.depthLimit,t._capnp.compositeIndex)}function Nt(e,t,n){let r=Math.floor(e/8),i=1<<e%8;Y(r,1,t);let a=q(t),o=a.segment.getUint8(a.byteOffset+r);return n===void 0?(o&i)!==0:((o^n.getUint8(0))&i)!==0}function Pt(e,t,n){K(e,t);let r=J(t);r.byteOffset+=e*8;let i=new vt(r.segment,r.byteOffset,t._capnp.depthLimit-1);return F(i)&&(n?C(n,i):H(c.BYTE,0,i)),i}function q(e){return E(e)}function Ft(e,t,n){Y(e,4,t);let r=q(t);if(n===void 0)return r.segment.getFloat32(r.byteOffset+e);let i=r.segment.getUint32(r.byteOffset+e)^n.getUint32(0,!0);return W.setUint32(0,i,m),W.getFloat32(0,m)}function It(e,t,n){Y(e,8,t);let r=q(t);if(n!==void 0){let t=r.segment.getUint32(r.byteOffset+e)^n.getUint32(0,!0),i=r.segment.getUint32(r.byteOffset+e+4)^n.getUint32(4,!0);return W.setUint32(0,t,m),W.setUint32(4,i,m),W.getFloat64(0,m)}return r.segment.getFloat64(r.byteOffset+e)}function Lt(e,t,n){Y(e,2,t);let r=q(t);if(n===void 0)return r.segment.getInt16(r.byteOffset+e);let i=r.segment.getUint16(r.byteOffset+e)^n.getUint16(0,!0);return W.setUint16(0,i,m),W.getInt16(0,m)}function Rt(e,t,n){Y(e,4,t);let r=q(t);if(n===void 0)return r.segment.getInt32(r.byteOffset+e);let i=r.segment.getUint32(r.byteOffset+e)^n.getUint16(0,!0);return W.setUint32(0,i,m),W.getInt32(0,m)}function zt(e,t,n){Y(e,8,t);let r=q(t);if(n!==void 0){let t=r.segment.getUint32(r.byteOffset+e)^n.getUint32(0,!0),i=r.segment.getUint32(r.byteOffset+e+4)^n.getUint32(4,!0);return W.setUint32(m?0:4,t,m),W.setUint32(m?4:0,i,m),W.getBigInt64(0,m)}return r.segment.getInt64(r.byteOffset+e)}function Bt(e,t,n){Y(e,1,t);let r=q(t);if(n===void 0)return r.segment.getInt8(r.byteOffset+e);let i=r.segment.getUint8(r.byteOffset+e)^n.getUint8(0);return W.setUint8(0,i),W.getInt8(0)}function Vt(e,t,n,r){K(e,n);let i=J(n);i.byteOffset+=e*8;let a=new t(i.segment,i.byteOffset,n._capnp.depthLimit-1);if(F(a))r?C(r,a):H(t._capnp.size,0,a,t._capnp.compositeSize);else if(t._capnp.compositeSize!==void 0){let e=st(a),n=t._capnp.compositeSize;if(n.dataByteLength>e.dataByteLength||n.pointerLength>e.pointerLength){let r=E(a),i=j(a),o=a.segment.allocate(y(n)*i+8),s=P(o.segment,o.byteOffset,a);I(s.offsetWords,t._capnp.size,i,s.pointer,n),L(i,n,o),o.byteOffset+=8;for(let t=0;t<i;t++){let i=r.byteOffset+t*y(e),a=o.byteOffset+t*y(n);o.segment.copyWords(a,r.segment,i,x(e));for(let t=0;t<e.pointerLength;t++){let s=new B(r.segment,i+e.dataByteLength+t*8),l=new B(o.segment,a+n.dataByteLength+t*8),u=T(s),d=E(s);M(s)===z.LIST&&A(s)===c.COMPOSITE&&(d.byteOffset-=8);let f=P(d.segment,d.byteOffset,l),p=u.segment.getUint8(u.byteOffset)&3,ee=u.segment.getUint32(u.byteOffset+4);f.pointer.segment.setUint32(f.pointer.byteOffset,p|f.offsetWords<<2),f.pointer.segment.setUint32(f.pointer.byteOffset+4,ee)}}r.segment.fillZeroWords(r.byteOffset,x(e)*i)}}return a}function Ht(e,t){K(e,t);let n=J(t);return n.byteOffset+=e*8,new B(n.segment,n.byteOffset,t._capnp.depthLimit-1)}function Ut(e,t,n){K(e,n);let r=J(n);return r.byteOffset+=e*8,new t(r.segment,r.byteOffset,n._capnp.depthLimit-1)}function J(e){let t=E(e);return t.byteOffset+=_(Wt(e).dataByteLength),t}function Wt(e){if(e._capnp.compositeIndex!==void 0){let t=E(e,!0);return t.byteOffset-=8,k(t)}return N(e)}function Gt(e,t,n,r){let i=Ut(e,t,n);if(F(i))r?C(r,i):G(t._capnp.size,i);else{R(z.STRUCT,i);let e=N(i);(e.dataByteLength<t._capnp.size.dataByteLength||e.pointerLength<t._capnp.size.pointerLength)&&jt(t._capnp.size,i)}return i}function Kt(e,t,n){let r=U.fromPointer(Ht(e,t));return F(r)&&n&&r.set(0,n),r.get(0)}function qt(e,t,n){Y(e,2,t);let r=q(t);return n===void 0?r.segment.getUint16(r.byteOffset+e):r.segment.getUint16(r.byteOffset+e)^n.getUint16(0,!0)}function Jt(e,t,n){Y(e,4,t);let r=q(t);return n===void 0?r.segment.getUint32(r.byteOffset+e):r.segment.getUint32(r.byteOffset+e)^n.getUint32(0,!0)}function Yt(e,t,n){Y(e,8,t);let r=q(t);if(n!==void 0){let t=r.segment.getUint32(r.byteOffset+e)^n.getUint32(0,!0),i=r.segment.getUint32(r.byteOffset+e+4)^n.getUint32(4,!0);return W.setUint32(m?0:4,t,m),W.setUint32(m?4:0,i,m),W.getBigUint64(0,m)}return r.segment.getUint64(r.byteOffset+e)}function Xt(e,t,n){Y(e,1,t);let r=q(t);return n===void 0?r.segment.getUint8(r.byteOffset+e):r.segment.getUint8(r.byteOffset+e)^n.getUint8(0)}function Zt(e,t,n){K(e,n);let r=J(n);r.byteOffset+=e*8;let i=new vt(r.segment,r.byteOffset,n._capnp.depthLimit-1);return w(i),H(c.BYTE,t,i),i}function Qt(e,t,n,r){K(e,r);let i=J(r);i.byteOffset+=e*8;let a=new t(i.segment,i.byteOffset,r._capnp.depthLimit-1);return w(a),H(t._capnp.size,n,a,t._capnp.compositeSize),a}function $t(e,t,n,r){let i=Math.floor(e/8),a=1<<e%8;Y(i,1,n);let o=q(n),s=o.segment.getUint8(o.byteOffset+i);r!==void 0&&(t=(r.getUint8(0)&a)===0?t:!t),o.segment.setUint8(o.byteOffset+i,t?s|a:s&~a)}function en(e,t,n,r){Y(e,4,n);let i=q(n);if(r!==void 0){W.setFloat32(0,t,m);let n=W.getUint32(0,m)^r.getUint32(0,!0);i.segment.setUint32(i.byteOffset+e,n);return}i.segment.setFloat32(i.byteOffset+e,t)}function tn(e,t,n,r){Y(e,8,n);let i=q(n);if(r!==void 0){W.setFloat64(0,t,m);let n=W.getUint32(0,m)^r.getUint32(0,!0),a=W.getUint32(4,m)^r.getUint32(4,!0);i.segment.setUint32(i.byteOffset+e,n),i.segment.setUint32(i.byteOffset+e+4,a);return}i.segment.setFloat64(i.byteOffset+e,t)}function nn(e,t,n,r){Y(e,2,n);let i=q(n);if(r!==void 0){W.setInt16(0,t,m);let n=W.getUint16(0,m)^r.getUint16(0,!0);i.segment.setUint16(i.byteOffset+e,n);return}i.segment.setInt16(i.byteOffset+e,t)}function rn(e,t,n,r){Y(e,4,n);let i=q(n);if(r!==void 0){W.setInt32(0,t,m);let n=W.getUint32(0,m)^r.getUint32(0,!0);i.segment.setUint32(i.byteOffset+e,n);return}i.segment.setInt32(i.byteOffset+e,t)}function an(e,t,n,r){Y(e,8,n);let i=q(n);if(r!==void 0){W.setBigInt64(0,t,m);let n=W.getUint32(m?0:4,m)^r.getUint32(0,!0),a=W.getUint32(m?4:0,m)^r.getUint32(4,!0);i.segment.setUint32(i.byteOffset+e,n),i.segment.setUint32(i.byteOffset+e+4,a);return}i.segment.setInt64(i.byteOffset+e,t)}function on(e,t,n,r){Y(e,1,n);let i=q(n);if(r!==void 0){W.setInt8(0,t);let n=W.getUint8(0)^r.getUint8(0);i.segment.setUint8(i.byteOffset+e,n);return}i.segment.setInt8(i.byteOffset+e,t)}function sn(e,t,n){U.fromPointer(Ht(e,n)).set(0,t)}function cn(e,t,n,r){Y(e,2,n);let i=q(n);r!==void 0&&(t^=r.getUint16(0,!0)),i.segment.setUint16(i.byteOffset+e,t)}function ln(e,t,n,r){Y(e,4,n);let i=q(n);r!==void 0&&(t^=r.getUint32(0,!0)),i.segment.setUint32(i.byteOffset+e,t)}function un(e,t,n,r){Y(e,8,n);let i=q(n);if(r!==void 0){W.setBigUint64(0,t,m);let n=W.getUint32(m?0:4,m)^r.getUint32(0,!0),a=W.getUint32(m?4:0,m)^r.getUint32(4,!0);i.segment.setUint32(i.byteOffset+e,n),i.segment.setUint32(i.byteOffset+e+4,a);return}i.segment.setUint64(i.byteOffset+e,t)}function dn(e,t,n,r){Y(e,1,n);let i=q(n);r!==void 0&&(t^=r.getUint8(0)),i.segment.setUint8(i.byteOffset+e,t)}function fn(e,t,n,r){if(t!==n)throw Error(g(`CAPNP-TS018 Attempted to access getter on %s for union field %s that is not currently set (wanted: %d, found: %d).`,r,e,t,n))}function Y(e,t,n){let{dataByteLength:r}=Wt(n);if(e<0||t<0||e+t>r)throw Error(g(`CAPNP-TS020 Attempted to access out-of-bounds struct data (struct: %s, %d bytes at %a, data words: %d).`,n,t,e,r))}function pn(e){return class extends V{static _capnp={compositeSize:e._capnp.size,displayName:`List<${e._capnp.displayName}>`,size:c.COMPOSITE};get(t){return new e(this.segment,this.byteOffset,this._capnp.depthLimit-1,t)}set(e,t){C(t,this.get(e))}[Symbol.toStringTag](){return`Composite_${super.toString()},cls:${e.toString()}`}}}function X(e,t){return n=>{let r=new DataView(new ArrayBuffer(e));return t.call(r,0,n,!0),r}}const mn=X(4,DataView.prototype.setFloat32),hn=X(8,DataView.prototype.setFloat64),gn=X(2,DataView.prototype.setInt16),_n=X(4,DataView.prototype.setInt32),vn=X(8,DataView.prototype.setBigInt64),yn=X(1,DataView.prototype.setInt8),bn=X(2,DataView.prototype.setUint16),xn=X(4,DataView.prototype.setUint32),Sn=X(8,DataView.prototype.setBigUint64),Cn=X(1,DataView.prototype.setUint8);function wn(e,t){let n=new DataView(new ArrayBuffer(1));return e&&n.setUint8(0,1<<t%8),n}var Z=(e=>(e[e.SINGLE_SEGMENT=0]=`SINGLE_SEGMENT`,e[e.MULTI_SEGMENT=1]=`MULTI_SEGMENT`,e))(Z||{}),Tn=class{buffer;id;constructor(e,t){this.id=e,this.buffer=t}},En=class{constructor(e=[new ArrayBuffer(u)]){this.buffers=e;let t=e.length;for(;--t>=0;)if(e[t].byteLength&7)throw Error(g(je,e[t].byteLength))}static allocate=Dn;static getBuffer=On;static getNumSegments=kn;kind=Z.MULTI_SEGMENT;toString(){return g(`MultiSegmentArena_segments:%d`,kn(this))}};function Dn(e,t){let n=new ArrayBuffer(_(Math.max(e,u)));return t.buffers.push(n),new Tn(t.buffers.length-1,n)}function On(e,t){if(e<0||e>=t.buffers.length)throw Error(g(`CAPNP-TS036 Attempted to get an out-of-bounds segment (%d).`,e));return t.buffers[e]}function kn(e){return e.buffers.length}var Q=class{static allocate=An;static getBuffer=jn;static getNumSegments=Mn;buffer;kind=Z.SINGLE_SEGMENT;constructor(e=new ArrayBuffer(u)){if(e.byteLength&7)throw Error(g(je,e.byteLength));this.buffer=e}toString(){return g(`SingleSegmentArena_len:%x`,this.buffer.byteLength)}};function An(e,t,n){let r=t.length>0?t[0].buffer:n.buffer;return e=e<ne?ne:_(e),n.buffer=new ArrayBuffer(r.byteLength+e),new Float64Array(n.buffer).set(new Float64Array(r)),new Tn(0,n.buffer)}function jn(e,t){if(e!==0)throw Error(g(`CAPNP-TS035 Attempted to get a segment other than 0 (%d) from a single segment arena.`,e));return t.buffer}function Mn(){return 1}var $=class{static allocate=Nn;static copy=Pn;static getBuffer=Fn;static getNumSegments=In};function Nn(e,t,n){switch(n.kind){case Z.MULTI_SEGMENT:return En.allocate(e,n);case Z.SINGLE_SEGMENT:return Q.allocate(e,t,n);default:return le(n)}}function Pn(e){switch(e.kind){case Z.MULTI_SEGMENT:{let t=e.buffers.length,n=Array.from({length:t});for(;--t>=0;)n[t]=e.buffers[t].slice(0);return new En(n)}case Z.SINGLE_SEGMENT:return new Q(e.buffer.slice(0));default:return le(e)}}function Fn(e,t){switch(t.kind){case Z.MULTI_SEGMENT:return En.getBuffer(e,t);case Z.SINGLE_SEGMENT:return Q.getBuffer(e,t);default:return le(t)}}function In(e){switch(e.kind){case Z.MULTI_SEGMENT:return En.getNumSegments(e);case Z.SINGLE_SEGMENT:return Q.getNumSegments();default:return le(e)}}function Ln(e){let t=e-(e>>1&1431655765);return t=(t&858993459)+(t>>2&858993459),(t+(t>>4)&252645135)*16843009>>24}function Rn(e,t,n,r,i,a,o,s){return(e===0?0:1)|(t===0?0:2)|(n===0?0:4)|(r===0?0:8)|(i===0?0:16)|(a===0?0:32)|(o===0?0:64)|(s===0?0:128)}function zn(e){let t=new Uint8Array(e),n=0,r=119;for(let e=0;e<t.byteLength;){let i=t[e];r===0?(n+=i,e++,r=119):r===255?(n+=i,e+=i*8+1,r=119):(n++,e+=Ln(i)+1,r=i)}return n*8}function Bn(e,t,n,r,i,a,o,s){return(e===0?1:0)+(t===0?1:0)+(n===0?1:0)+(r===0?1:0)+(i===0?1:0)+(a===0?1:0)+(o===0?1:0)+(s===0?1:0)}function Vn(e,t=0,n){if(e.byteLength%8!=0)throw Error(`CAPNP-TS003 Attempted to pack a message that was not word-aligned.`);let r=new Uint8Array(e,t,n),i=[],a=119,o=0,s=0;for(let e=0;e<r.byteLength;e+=8){let t=r[e],n=r[e+1],c=r[e+2],l=r[e+3],u=r[e+4],d=r[e+5],f=r[e+6],p=r[e+7],ee=Rn(t,n,c,l,u,d,f,p),te=!0;switch(a){case 0:ee!==0||s>=255?(i.push(s),s=0,te=!1):s++;break;case 255:Bn(t,n,c,l,u,d,f,p)>=2||s>=255?(i[o]=s,s=0,te=!1):(i.push(t,n,c,l,u,d,f,p),s++);break;default:te=!1;break}te||(i.push(ee),a=ee,t!==0&&i.push(t),n!==0&&i.push(n),c!==0&&i.push(c),l!==0&&i.push(l),u!==0&&i.push(u),d!==0&&i.push(d),f!==0&&i.push(f),p!==0&&i.push(p),ee===255&&(o=i.length,i.push(0)))}return a===0?i.push(s):a===255&&(i[o]=s),new Uint8Array(i).buffer}function Hn(e){let t=new Uint8Array(e),n=new Uint8Array(new ArrayBuffer(zn(e))),r=119;for(let e=0,i=0;e<t.byteLength;){let a=t[e];if(r===0)i+=a*8,e++,r=119;else if(r===255){let o=a*8;n.set(t.subarray(e+1,e+1+o),i),i+=o,e+=1+o,r=119}else{e++;for(let r=1;r<=128;r<<=1)(a&r)!==0&&(n[i]=t[e++]),i++;r=a}}return n.buffer}var Un=class{constructor(e,t,n,r=0){this.id=e,this.message=t,this.message=t,this.buffer=n,this._dv=new DataView(n),this.byteOffset=0,this.byteLength=r}buffer;byteLength;byteOffset;[Symbol.toStringTag]=`Segment`;_dv;allocate(e){let t=this;if(e=_(e),e>se-8)throw Error(g(Ne,e));t.hasCapacity(e)||(t=t.message.allocateSegment(e));let n=t.byteLength;return t.byteLength+=e,new B(t,n)}copyWord(e,t,n){let r=t._dv.getFloat64(n,m);this._dv.setFloat64(e,r,m)}copyWords(e,t,n,r){let i=new Float64Array(this.buffer,e,r),a=new Float64Array(t.buffer,n,r);i.set(a)}fillZeroWords(e,t){new Float64Array(this.buffer,e,t).fill(0)}getBigInt64(e,t){return this._dv.getBigInt64(e,t)}getBigUint64(e,t){return this._dv.getBigUint64(e,t)}getCapacity(){return this.buffer.byteLength}getFloat32(e){return this._dv.getFloat32(e,!0)}getFloat64(e){return this._dv.getFloat64(e,!0)}getInt16(e){return this._dv.getInt16(e,!0)}getInt32(e){return this._dv.getInt32(e,!0)}getInt64(e){return this._dv.getBigInt64(e,!0)}getInt8(e){return this._dv.getInt8(e)}getUint16(e){return this._dv.getUint16(e,!0)}getUint32(e){return this._dv.getUint32(e,!0)}getUint64(e){return this._dv.getBigUint64(e,!0)}getUint8(e){return this._dv.getUint8(e)}hasCapacity(e){return this.buffer.byteLength-this.byteLength>=e}isWordZero(e){return this._dv.getFloat64(e,m)===0}replaceBuffer(e){if(this.buffer!==e){if(e.byteLength<this.byteLength)throw Error(`CAPNP-TS038 Attempted to replace a segment buffer with one that is smaller than the allocated space.`);this._dv=new DataView(e),this.buffer=e}}setBigInt64(e,t,n){this._dv.setBigInt64(e,t,n)}setBigUint64(e,t,n){this._dv.setBigUint64(e,t,n)}setFloat32(e,t){this._dv.setFloat32(e,t,!0)}setFloat64(e,t){this._dv.setFloat64(e,t,!0)}setInt16(e,t){this._dv.setInt16(e,t,!0)}setInt32(e,t){this._dv.setInt32(e,t,!0)}setInt8(e,t){this._dv.setInt8(e,t)}setInt64(e,t){this._dv.setBigInt64(e,t,!0)}setUint16(e,t){this._dv.setUint16(e,t,!0)}setUint32(e,t){this._dv.setUint32(e,t,!0)}setUint64(e,t){this._dv.setBigUint64(e,t,!0)}setUint8(e,t){this._dv.setUint8(e,t)}setWordZero(e){this._dv.setFloat64(e,0,m)}toString(){return g(`Segment_id:%d,off:%a,len:%a,cap:%a`,this.id,this.byteLength,this.byteOffset,this.buffer.byteLength)}},Wn=class{static allocateSegment=Xn;static dump=Zn;static getRoot=Qn;static getSegment=$n;static initRoot=er;static readRawPointer=tr;static toArrayBuffer=rr;static toPackedArrayBuffer=ir;_capnp;constructor(e,t=!0,n=!1){this._capnp=Gn(e,t,n),e&&qn(this)}allocateSegment(e){return Xn(e,this)}copy(){return or(this)}dump(){return Zn(this)}getRoot(e){return Qn(e,this)}getSegment(e){return $n(e,this)}initRoot(e){return er(e,this)}setRoot(e){nr(e,this)}toArrayBuffer(){return rr(this)}toPackedArrayBuffer(){return ir(this)}addCap(e){this._capnp.capTable||(this._capnp.capTable=[]);let t=this._capnp.capTable.length;return this._capnp.capTable.push(e),t}toString(){return`Message_arena:${this._capnp.arena}`}};function Gn(e,t=!0,n=!1){if(e===void 0)return{arena:new Q,segments:[],traversalLimit:d};if(Yn(e))return{arena:e,segments:[],traversalLimit:d};let r=e;return Jn(r)&&(r=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)),t&&(r=Hn(r)),n?{arena:new Q(r),segments:[],traversalLimit:d}:{arena:new En(Kn(r)),segments:[],traversalLimit:d}}function Kn(e){let t=new DataView(e),n=t.getUint32(0,!0)+1,r=Array.from({length:n}),i=4+n*4;if(i+=i%8,i+n*4>e.byteLength)throw Error(ue);for(let a=0;a<n;a++){let n=t.getUint32(4+a*4,!0)*8;if(i+n>e.byteLength)throw Error(ue);r[a]=e.slice(i,i+n),i+=n}return r}function qn(e){let t=$.getNumSegments(e._capnp.arena);e._capnp.segments=Array.from({length:t});for(let n=0;n<t;n++){if(n===0&&$.getBuffer(n,e._capnp.arena).byteLength<8)throw Error(pe);let t=$.getBuffer(n,e._capnp.arena),r=new Un(n,e,t,t.byteLength);e._capnp.segments[n]=r}}function Jn(e){return e.byteOffset!==void 0}function Yn(e){return e.kind!==void 0}function Xn(e,t){let n=$.allocate(e,t._capnp.segments,t._capnp.arena),r;if(n.id===t._capnp.segments.length)r=new Un(n.id,t,n.buffer),t._capnp.segments.push(r);else if(n.id<0||n.id>t._capnp.segments.length)throw Error(g(fe,n.id,t));else r=t._capnp.segments[n.id],r.replaceBuffer(n.buffer);return r}function Zn(e){let t=``;if(e._capnp.segments.length===0)return`================
|
|
6
|
+
No Segments
|
|
7
|
+
================
|
|
8
|
+
`;for(let n=0;n<e._capnp.segments.length;n++){t+=`================
|
|
9
|
+
Segment #${n}
|
|
10
|
+
================
|
|
11
|
+
`;let{buffer:r,byteLength:i}=e._capnp.segments[n],a=new Uint8Array(r,0,i);t+=He(a)}return t}function Qn(e,t){let n=new e(t.getSegment(0),0);R(z.STRUCT,n);let r=N(n);return(r.dataByteLength<e._capnp.size.dataByteLength||r.pointerLength<e._capnp.size.pointerLength)&&jt(e._capnp.size,n),n}function $n(e,t){let n=t._capnp.segments.length;if(e===0&&n===0){if($.getNumSegments(t._capnp.arena)===0?Xn(u,t):t._capnp.segments[0]=new Un(0,t,$.getBuffer(0,t._capnp.arena)),!t._capnp.segments[0].hasCapacity(8))throw Error(pe);return t._capnp.segments[0].allocate(8),t._capnp.segments[0]}if(e<0||e>=n)throw Error(g(fe,e,t));return t._capnp.segments[e]}function er(e,t){let n=new e(t.getSegment(0),0);return G(e._capnp.size,n),n}function tr(e){return new B(new Wn(e).getSegment(0),0)}function nr(e,t){C(e,new B(t.getSegment(0),0))}function rr(e){let t=ar(e);e._capnp.segments.length===0&&$n(0,e);let{segments:n}=e._capnp,r=t.byteLength+n.reduce((e,t)=>e+_(t.byteLength),0),i=new Uint8Array(new ArrayBuffer(r)),a=t.byteLength;i.set(new Uint8Array(t));for(let e of n){let t=_(e.byteLength);i.set(new Uint8Array(e.buffer,0,t),a),a+=t}return i.buffer}function ir(e){let t=Vn(ar(e));e._capnp.segments.length===0&&e.getSegment(0);let n=e._capnp.segments.map(e=>Vn(e.buffer,0,_(e.byteLength))),r=t.byteLength+n.reduce((e,t)=>e+t.byteLength,0),i=new Uint8Array(new ArrayBuffer(r)),a=t.byteLength;i.set(new Uint8Array(t));for(let e of n)i.set(new Uint8Array(e),a),a+=e.byteLength;return i.buffer}function ar(e){let{length:t}=e._capnp.segments;if(t===0)return new Float64Array(1).buffer;let n=4+t*4+(1-t%2)*4,r=new DataView(new ArrayBuffer(n));r.setUint32(0,t-1,!0);for(let[t,n]of e._capnp.segments.entries())r.setUint32(t*4+4,n.byteLength/8,!0);return r.buffer}function or(e){return new Wn($.copy(e._capnp.arena))}var sr=class extends B{static _capnp={displayName:`Interface`};static getCapID=ur;static getAsInterface=cr;static isInterface=lr;static getClient=dr;constructor(e,t,n=oe){super(e,t,n)}static fromPointer(e){return cr(e)}getCapId(){return ur(this)}getClient(){return dr(this)}[Symbol.for(`nodejs.util.inspect.custom`)](){return g(`Interface_%d@%a,%d,limit:%x`,this.segment.id,this.byteOffset,this.getCapId(),this._capnp.depthLimit)}};function cr(e){return M(e)===z.OTHER?new sr(e.segment,e.byteOffset,e._capnp.depthLimit):null}function lr(e){return M(e)===z.OTHER}function ur(e){return e.segment.getUint32(e.byteOffset)===z.OTHER?e.segment.getUint32(e.byteOffset+4):-1}function dr(e){let t=ur(e),{capTable:n}=e.segment.message._capnp;return n?n[t]:null}function fr(e){return!!e.params}function pr(e){return fr(e)?e:{method:e.method,params:mr(e,void 0)}}function mr(e,t){if(fr(e))return e.params;let n;if(t)n=new e.method.ParamsClass(t.segment,t.byteOffset,t._capnp.depthLimit);else{let t=new Wn;n=new e.method.ParamsClass(t.getSegment(0),0)}return G(e.method.ParamsClass._capnp.size,n),e.paramsFunc&&e.paramsFunc(n),n}function hr(e){return M(e)===z.STRUCT?new St(e.segment,e.byteOffset,e._capnp.depthLimit,e._capnp.compositeIndex):null}function gr(e,t){if(t.length===0)return e;let n=hr(e);if(!n)return e;for(let e of t)n=Ht(e.field,n);return n}var _r=class e{static fromPromise(t){let n=new e;return t.then(n.resolve,n.reject),n}promise;reject;resolve;constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},vr=class extends wt{constructor(e){super(),this.s=e}structSync(){return this.s}findClient(e){return At(gr(this.s,e))}pipelineCall(e,t){return this.findClient(e).call(t)}pipelineClose(e){this.findClient(e).close()}},yr=class{constructor(e,t){this.q=e,this.n=t,this.cap=e.len()}start=0;cap;len(){return this.n}push(){if(this.n>=this.cap)return-1;let e=(this.start+this.n)%this.cap;return this.n++,e}front(){return this.n===0?-1:this.start}pop(){return this.n===0?!1:(this.q.clear(this.start),this.start=(this.start+1)%this.cap,this.n--,!0)}},br=class{_client;q;calls;constructor(e,t){this._client=e,this.calls=t.copy(),this.q=new yr(this.calls,this.calls.len()),this.flushQueue()}flushQueue(){let e=null;{let t=this.q.front();t!==-1&&(e=this.calls.data[t])}for(;e&&e.call;){let t=this._client.call(e.call);(async(e,t)=>{try{e.fulfill(await t.struct())}catch(t){e.reject(t)}})(e.f,t),this.q.pop();{let t=this.q.front();e=t===-1?null:this.calls.data[t]}}}client(){return this.isPassthrough()?this._client:null}isPassthrough(){return this.q.len()===0}call(e){return this.isPassthrough()?this._client.call(e):this.push(e)}push(e){let t=new Cr,n=pr(e),r=this.q.push();return r===-1?new Tt(Error(Le)):(this.calls.data[r]={call:n,f:t},t)}close(){for(;this.q.len()>0;){let e=this.calls.data[this.q.front()];if(!e)throw Error(ce);e.f.reject(Error(`CAPNP-TS102 Queue call canceled.`)),this.q.pop()}this._client.close()}},xr=class e{data;constructor(e){this.data=e}static copyOf(t){return new e([...t])}len(){return this.data.length}clear(e){this.data[e]=null}copy(){return e.copyOf(this.data)}};const Sr=64;var Cr=class e{resolved=!1;answer;queue=[];queueCap=64;deferred=new _r;fulfill(e){this.answer=new vr(e);let t=this.emptyQueue(e),n=e.segment.message._capnp;n.capTable||=[];let r=n.capTable;for(let e of Object.keys(t)){let n=+e,i=t[n],a=r[n];if(!a)throw Error(ce);r[n]=new br(a,i)}this.deferred.resolve(e)}reject(e){this.deferred.reject(e)}peek(){return this.answer}async struct(){return await this.deferred.promise}pipelineCall(t,n){{let e=this.peek();if(e)return e.pipelineCall(t,n)}if(this.queue.length===this.queueCap)return new Tt(Error(Le));let r=pr(n),i=new e;return this.queue.push({call:r,f:i,transform:t}),i}pipelineClose(e){let t=()=>{this.answer&&this.answer.pipelineClose(e)};this.deferred.promise.then(t,t)}emptyQueue(e){let t={};for(let n=0;n<this.queue.length;n++){let r=this.queue[n],i;try{i=gr(e,r.transform)}catch(e){r.f.reject(e);continue}let a=sr.fromPointer(i);if(!a){r.f.reject(Error(Ie));continue}let o=a.getCapId();t[o]||(t[o]=new xr([])),t[o].data.push(r)}return this.queue=[],t}},wr=class{constructor(e){this.pipeline=e}transform(){return this.pipeline.transform()}call(e){return this.pipeline.answer.pipelineCall(this.transform(),e)}close(){this.pipeline.answer.pipelineClose(this.transform())}},Tr=class e{constructor(e,t,n,r){this.ResultsClass=e,this.answer=t,this.parent=r,this.op=n||{field:0}}op;pipelineClient;transform(){let e=[];for(let t=this;t.parent;t=t.parent)e.unshift(t.op);return e}async struct(){let e=gr(await this.answer.struct(),this.transform());return e||(this.op.defaultValue?C(this.op.defaultValue,e):G(this.ResultsClass._capnp.size,e)),Mt(this.ResultsClass,e)}client(){return this.pipelineClient||=new wr(this),this.pipelineClient}getPipeline(t,n,r){return new e(t,this.answer,{field:n,defaultValue:r},this)}},Er=class extends Error{constructor(e,t){super(g(`CAPNP-TS116 RPC method failed at %s.%s(): %s`,e.interfaceName,e.methodName,t)),this.method=e}},Dr=class{static interfaces=new Map;static register(e,t){this.interfaces.set(e,t)}static lookup(e){return this.interfaces.get(e)}},Or=class{constructor(e,t){this.target=e,this.methods=t}startCall(e){let t=new Wn().initRoot(e.method.ResultsClass);e.serverMethod.impl.call(this.target,e.params,t).then(()=>e.answer.fulfill(t)).catch(t=>e.answer.reject(t))}call(e){let t=this.methods[e.method.methodId];if(!t)return new Tt(new Er(e.method,`CAPNP-TS107 Method not implemented.`));let n={...pr(e),answer:new Cr,serverMethod:t};return this.startCall(n),n.answer}close(){}},kr=class extends St{static _capnp={displayName:`Void`,id:`0`,size:new v(0,0)}};const Ar={__proto__:null,PointerAllocationResult:_t,add:Xe,adopt:Ke,checkDataBounds:Y,checkPointerBounds:K,copyFrom:C,copyFromInterface:pt,copyFromList:mt,copyFromStruct:ht,disown:qe,dump:Je,erase:w,erasePointer:Ze,followFar:Qe,followFars:T,getAs:Mt,getBit:Nt,getCapabilityId:$e,getContent:E,getData:Pt,getDataSection:q,getFarSegmentId:tt,getFloat32:Ft,getFloat64:It,getInt16:Lt,getInt32:Rt,getInt64:zt,getInt8:Bt,getInterfaceClientOrNull:At,getInterfaceClientOrNullAt:kt,getInterfacePointer:ft,getList:Vt,getListByteLength:Ye,getListElementByteLength:S,getListElementSize:nt,getListLength:rt,getOffsetWords:D,getPointer:Ht,getPointerAs:Ut,getPointerSection:J,getPointerType:O,getSize:Wt,getStruct:Gt,getStructDataWords:it,getStructPointerLength:at,getStructSize:k,getTargetCompositeListSize:st,getTargetCompositeListTag:ot,getTargetListElementSize:A,getTargetListLength:j,getTargetPointerType:M,getTargetStructSize:N,getText:Kt,getUint16:qt,getUint32:Jt,getUint64:Yt,getUint8:Xt,initData:Zt,initList:Qt,initPointer:P,initStruct:G,initStructAt:Ot,isDoubleFar:ct,isNull:F,relocateTo:lt,resize:jt,setBit:$t,setFarPointer:ut,setFloat32:en,setFloat64:tn,setInt16:nn,setInt32:rn,setInt64:an,setInt8:on,setInterfacePointer:dt,setListPointer:I,setStructPointer:L,setText:sn,setUint16:cn,setUint32:ln,setUint64:un,setUint8:dn,testWhich:fn,trackPointerAllocation:gt,validate:R};function jr(e){return class extends V{static _capnp={displayName:`List<${e._capnp.displayName}>`,size:c.POINTER};get(t){let n=E(this);return new e(n.segment,n.byteOffset+t*8,this._capnp.depthLimit-1)}set(e,t){C(t,this.get(e))}[Symbol.toStringTag](){return`Pointer_${super.toString()},cls:${e.toString()}`}}}const Mr=jr(B);var Nr=class extends V{static _capnp={displayName:`List<boolean>`,size:c.BIT};get(e){let t=1<<e%8,n=e>>>3,r=E(this);return(r.segment.getUint8(r.byteOffset+n)&t)!==0}set(e,t){let n=1<<e%8,r=E(this),i=r.byteOffset+(e>>>3),a=r.segment.getUint8(i);r.segment.setUint8(i,t?a|n:a&~n)}[Symbol.toStringTag](){return`Bool_${super.toString()}`}};const Pr=jr(vt);var Fr=class extends V{static _capnp={displayName:`List<Float32>`,size:c.BYTE_4};get(e){let t=E(this);return t.segment.getFloat32(t.byteOffset+e*4)}set(e,t){let n=E(this);n.segment.setFloat32(n.byteOffset+e*4,t)}[Symbol.toStringTag](){return`Float32_${super.toString()}`}},Ir=class extends V{static _capnp={displayName:`List<Float64>`,size:c.BYTE_8};get(e){let t=E(this);return t.segment.getFloat64(t.byteOffset+e*8)}set(e,t){let n=E(this);n.segment.setFloat64(n.byteOffset+e*8,t)}[Symbol.toStringTag](){return`Float64_${super.toString()}`}},Lr=class extends V{static _capnp={displayName:`List<Int8>`,size:c.BYTE};get(e){let t=E(this);return t.segment.getInt8(t.byteOffset+e)}set(e,t){let n=E(this);n.segment.setInt8(n.byteOffset+e,t)}[Symbol.toStringTag](){return`Int8_${super.toString()}`}},Rr=class extends V{static _capnp={displayName:`List<Int16>`,size:c.BYTE_2};get(e){let t=E(this);return t.segment.getInt16(t.byteOffset+e*2)}set(e,t){let n=E(this);n.segment.setInt16(n.byteOffset+e*2,t)}[Symbol.toStringTag](){return`Int16_${super.toString()}`}},zr=class extends V{static _capnp={displayName:`List<Int32>`,size:c.BYTE_4};get(e){let t=E(this);return t.segment.getInt32(t.byteOffset+e*4)}set(e,t){let n=E(this);n.segment.setInt32(n.byteOffset+e*4,t)}[Symbol.toStringTag](){return`Int32_${super.toString()}`}},Br=class extends V{static _capnp={displayName:`List<Int64>`,size:c.BYTE_8};get(e){let t=E(this);return t.segment.getInt64(t.byteOffset+e*8)}set(e,t){let n=E(this);n.segment.setInt64(n.byteOffset+e*8,t)}[Symbol.toStringTag](){return`Int64_${super.toString()}`}};const Vr=jr(sr);var Hr=class extends V{static _capnp={displayName:`List<Text>`,size:c.POINTER};get(e){let t=E(this);return t.byteOffset+=e*8,U.fromPointer(t).get(0)}set(e,t){let n=E(this);n.byteOffset+=e*8,U.fromPointer(n).set(0,t)}[Symbol.toStringTag](){return`Text_${super.toString()}`}},Ur=class extends V{static _capnp={displayName:`List<Uint8>`,size:c.BYTE};get(e){let t=E(this);return t.segment.getUint8(t.byteOffset+e)}set(e,t){let n=E(this);n.segment.setUint8(n.byteOffset+e,t)}[Symbol.toStringTag](){return`Uint8_${super.toString()}`}},Wr=class extends V{static _capnp={displayName:`List<Uint16>`,size:c.BYTE_2};get(e){let t=E(this);return t.segment.getUint16(t.byteOffset+e*2)}set(e,t){let n=E(this);n.segment.setUint16(n.byteOffset+e*2,t)}[Symbol.toStringTag](){return`Uint16_${super.toString()}`}},Gr=class extends V{static _capnp={displayName:`List<Uint32>`,size:c.BYTE_4};get(e){let t=E(this);return t.segment.getUint32(t.byteOffset+e*4)}set(e,t){let n=E(this);n.segment.setUint32(n.byteOffset+e*4,t)}[Symbol.toStringTag](){return`Uint32_${super.toString()}`}},Kr=class extends V{static _capnp={displayName:`List<Uint64>`,size:c.BYTE_8};get(e){let t=E(this);return t.segment.getUint64(t.byteOffset+e*8)}set(e,t){let n=E(this);n.segment.setUint64(n.byteOffset+e*8,t)}[Symbol.toStringTag](){return`Uint64_${super.toString()}`}};const qr=jr(kr),Jr=globalThis.FinalizationRegistry?new FinalizationRegistry(e=>e()):void 0;Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return bn}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return pn}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return wn}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return v}});
|