@ifc-lite/export 6.0.0 → 7.0.0

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.
Files changed (202) hide show
  1. package/README.md +42 -20
  2. package/dist/anonymize-types.d.ts +2 -0
  3. package/dist/anonymize-types.d.ts.map +1 -1
  4. package/dist/declared-property-type.d.ts +2 -110
  5. package/dist/declared-property-type.d.ts.map +1 -1
  6. package/dist/declared-property-type.js +15 -0
  7. package/dist/declared-property-type.js.map +1 -1
  8. package/dist/energy-artifact.d.ts +6 -0
  9. package/dist/energy-artifact.d.ts.map +1 -0
  10. package/dist/energy-artifact.js +33 -0
  11. package/dist/energy-artifact.js.map +1 -0
  12. package/dist/generated/ifc4-required-slots.d.ts +4 -1
  13. package/dist/generated/ifc4-required-slots.d.ts.map +1 -1
  14. package/dist/generated/ifc4-required-slots.js +704 -0
  15. package/dist/generated/ifc4-required-slots.js.map +1 -1
  16. package/dist/geometry-diagnostics.d.ts +14 -0
  17. package/dist/geometry-diagnostics.d.ts.map +1 -0
  18. package/dist/geometry-diagnostics.js +29 -0
  19. package/dist/geometry-diagnostics.js.map +1 -0
  20. package/dist/index.d.ts +5 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +7 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/merged-exporter.d.ts +1 -4
  25. package/dist/merged-exporter.d.ts.map +1 -1
  26. package/dist/merged-exporter.js +39 -23
  27. package/dist/merged-exporter.js.map +1 -1
  28. package/dist/merged-header.d.ts +2 -1
  29. package/dist/merged-header.d.ts.map +1 -1
  30. package/dist/merged-header.js +8 -0
  31. package/dist/merged-header.js.map +1 -1
  32. package/dist/merged-inherited-units.d.ts +8 -0
  33. package/dist/merged-inherited-units.d.ts.map +1 -0
  34. package/dist/merged-inherited-units.js +117 -0
  35. package/dist/merged-inherited-units.js.map +1 -0
  36. package/dist/merged-inverse-claims.d.ts +5 -6
  37. package/dist/merged-inverse-claims.d.ts.map +1 -1
  38. package/dist/merged-inverse-claims.js +29 -10
  39. package/dist/merged-inverse-claims.js.map +1 -1
  40. package/dist/merged-profile-units.d.ts +9 -0
  41. package/dist/merged-profile-units.d.ts.map +1 -0
  42. package/dist/merged-profile-units.js +44 -0
  43. package/dist/merged-profile-units.js.map +1 -0
  44. package/dist/related-entities.d.ts.map +1 -1
  45. package/dist/related-entities.js +11 -9
  46. package/dist/related-entities.js.map +1 -1
  47. package/dist/rust-artifact.d.ts +4 -0
  48. package/dist/rust-artifact.d.ts.map +1 -0
  49. package/dist/rust-artifact.js +15 -0
  50. package/dist/rust-artifact.js.map +1 -0
  51. package/dist/schema-calendar-date-values.d.ts +1 -0
  52. package/dist/schema-calendar-date-values.d.ts.map +1 -1
  53. package/dist/schema-calendar-date-values.js +4 -4
  54. package/dist/schema-calendar-date-values.js.map +1 -1
  55. package/dist/schema-calendar-dates.d.ts +16 -1
  56. package/dist/schema-calendar-dates.d.ts.map +1 -1
  57. package/dist/schema-calendar-dates.js +118 -19
  58. package/dist/schema-calendar-dates.js.map +1 -1
  59. package/dist/schema-conversion-loss-description.d.ts.map +1 -1
  60. package/dist/schema-conversion-loss-description.js +3 -0
  61. package/dist/schema-conversion-loss-description.js.map +1 -1
  62. package/dist/schema-conversion-loss-report.d.ts.map +1 -1
  63. package/dist/schema-conversion-loss-report.js +25 -36
  64. package/dist/schema-conversion-loss-report.js.map +1 -1
  65. package/dist/schema-conversion-loss-varying.d.ts +11 -0
  66. package/dist/schema-conversion-loss-varying.d.ts.map +1 -0
  67. package/dist/schema-conversion-loss-varying.js +44 -0
  68. package/dist/schema-conversion-loss-varying.js.map +1 -0
  69. package/dist/schema-converter-attr-maps.d.ts +6 -5
  70. package/dist/schema-converter-attr-maps.d.ts.map +1 -1
  71. package/dist/schema-converter-attr-maps.js +8 -6
  72. package/dist/schema-converter-attr-maps.js.map +1 -1
  73. package/dist/schema-converter-durations.d.ts +0 -3
  74. package/dist/schema-converter-durations.d.ts.map +1 -1
  75. package/dist/schema-converter-durations.js +0 -18
  76. package/dist/schema-converter-durations.js.map +1 -1
  77. package/dist/schema-converter-enums.d.ts +6 -3
  78. package/dist/schema-converter-enums.d.ts.map +1 -1
  79. package/dist/schema-converter-enums.js +25 -9
  80. package/dist/schema-converter-enums.js.map +1 -1
  81. package/dist/schema-converter-ifc4-slots.d.ts +10 -5
  82. package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
  83. package/dist/schema-converter-ifc4-slots.js +17 -20
  84. package/dist/schema-converter-ifc4-slots.js.map +1 -1
  85. package/dist/schema-converter-ifc4x3-upgrade.d.ts +5 -4
  86. package/dist/schema-converter-ifc4x3-upgrade.d.ts.map +1 -1
  87. package/dist/schema-converter-ifc4x3-upgrade.js +15 -8
  88. package/dist/schema-converter-ifc4x3-upgrade.js.map +1 -1
  89. package/dist/schema-converter-material-referent.d.ts +3 -0
  90. package/dist/schema-converter-material-referent.d.ts.map +1 -1
  91. package/dist/schema-converter-material-referent.js +24 -6
  92. package/dist/schema-converter-material-referent.js.map +1 -1
  93. package/dist/schema-converter-space-boundary.d.ts +47 -0
  94. package/dist/schema-converter-space-boundary.d.ts.map +1 -0
  95. package/dist/schema-converter-space-boundary.js +108 -0
  96. package/dist/schema-converter-space-boundary.js.map +1 -0
  97. package/dist/schema-converter-step-finish.d.ts.map +1 -1
  98. package/dist/schema-converter-step-finish.js +3 -2
  99. package/dist/schema-converter-step-finish.js.map +1 -1
  100. package/dist/schema-converter-structural-diagnostics.d.ts +6 -0
  101. package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -1
  102. package/dist/schema-converter-structural-diagnostics.js +19 -4
  103. package/dist/schema-converter-structural-diagnostics.js.map +1 -1
  104. package/dist/schema-converter-structural-source.d.ts +3 -0
  105. package/dist/schema-converter-structural-source.d.ts.map +1 -1
  106. package/dist/schema-converter-structural-source.js.map +1 -1
  107. package/dist/schema-converter-structural-varying.d.ts +10 -2
  108. package/dist/schema-converter-structural-varying.d.ts.map +1 -1
  109. package/dist/schema-converter-structural-varying.js +28 -11
  110. package/dist/schema-converter-structural-varying.js.map +1 -1
  111. package/dist/schema-converter-structural.d.ts +3 -0
  112. package/dist/schema-converter-structural.d.ts.map +1 -1
  113. package/dist/schema-converter-structural.js +13 -5
  114. package/dist/schema-converter-structural.js.map +1 -1
  115. package/dist/schema-converter-typed-properties.js +1 -2
  116. package/dist/schema-converter-typed-properties.js.map +1 -1
  117. package/dist/schema-converter-unrooted-upgrade.d.ts +23 -6
  118. package/dist/schema-converter-unrooted-upgrade.d.ts.map +1 -1
  119. package/dist/schema-converter-unrooted-upgrade.js +62 -12
  120. package/dist/schema-converter-unrooted-upgrade.js.map +1 -1
  121. package/dist/schema-converter-value-forms.d.ts +28 -5
  122. package/dist/schema-converter-value-forms.d.ts.map +1 -1
  123. package/dist/schema-converter-value-forms.js +32 -19
  124. package/dist/schema-converter-value-forms.js.map +1 -1
  125. package/dist/schema-converter.d.ts +3 -4
  126. package/dist/schema-converter.d.ts.map +1 -1
  127. package/dist/schema-converter.js +25 -24
  128. package/dist/schema-converter.js.map +1 -1
  129. package/dist/schema-project-time-unit.d.ts +8 -0
  130. package/dist/schema-project-time-unit.d.ts.map +1 -0
  131. package/dist/schema-project-time-unit.js +123 -0
  132. package/dist/schema-project-time-unit.js.map +1 -0
  133. package/dist/schema-structural-varying-constant.d.ts +16 -0
  134. package/dist/schema-structural-varying-constant.d.ts.map +1 -0
  135. package/dist/schema-structural-varying-constant.js +36 -0
  136. package/dist/schema-structural-varying-constant.js.map +1 -0
  137. package/dist/schema-structural-varying-effective.d.ts +1 -1
  138. package/dist/schema-structural-varying-effective.d.ts.map +1 -1
  139. package/dist/schema-structural-varying-effective.js +12 -22
  140. package/dist/schema-structural-varying-effective.js.map +1 -1
  141. package/dist/schema-untranslatable.d.ts.map +1 -1
  142. package/dist/schema-untranslatable.js +5 -2
  143. package/dist/schema-untranslatable.js.map +1 -1
  144. package/dist/schema-work-control-durations.d.ts +13 -0
  145. package/dist/schema-work-control-durations.d.ts.map +1 -0
  146. package/dist/schema-work-control-durations.js +74 -0
  147. package/dist/schema-work-control-durations.js.map +1 -0
  148. package/dist/step-export-types.d.ts +3 -0
  149. package/dist/step-export-types.d.ts.map +1 -1
  150. package/dist/step-export-types.js.map +1 -1
  151. package/dist/step-exporter.d.ts.map +1 -1
  152. package/dist/step-exporter.js +2 -0
  153. package/dist/step-exporter.js.map +1 -1
  154. package/dist/step-omission-predicates.d.ts.map +1 -1
  155. package/dist/step-omission-predicates.js +3 -1
  156. package/dist/step-omission-predicates.js.map +1 -1
  157. package/dist/step-outer-args.d.ts +1 -1
  158. package/dist/step-outer-args.d.ts.map +1 -1
  159. package/dist/step-outer-args.js +10 -3
  160. package/dist/step-outer-args.js.map +1 -1
  161. package/dist/step-overlay-entities.d.ts.map +1 -1
  162. package/dist/step-overlay-entities.js +9 -0
  163. package/dist/step-overlay-entities.js.map +1 -1
  164. package/dist/step-pass-builder.d.ts.map +1 -1
  165. package/dist/step-pass-builder.js +21 -5
  166. package/dist/step-pass-builder.js.map +1 -1
  167. package/dist/step-property-set-readers.d.ts +4 -4
  168. package/dist/step-property-set-readers.d.ts.map +1 -1
  169. package/dist/step-property-set-readers.js +13 -13
  170. package/dist/step-property-set-readers.js.map +1 -1
  171. package/dist/step-retype-type-link.d.ts +7 -0
  172. package/dist/step-retype-type-link.d.ts.map +1 -0
  173. package/dist/step-retype-type-link.js +95 -0
  174. package/dist/step-retype-type-link.js.map +1 -0
  175. package/dist/step-source-iteration.d.ts.map +1 -1
  176. package/dist/step-source-iteration.js +10 -0
  177. package/dist/step-source-iteration.js.map +1 -1
  178. package/dist/step-subset-relations.d.ts +131 -0
  179. package/dist/step-subset-relations.d.ts.map +1 -0
  180. package/dist/step-subset-relations.js +342 -0
  181. package/dist/step-subset-relations.js.map +1 -0
  182. package/dist/step-subset-spatial-ancestors.d.ts +26 -0
  183. package/dist/step-subset-spatial-ancestors.d.ts.map +1 -0
  184. package/dist/step-subset-spatial-ancestors.js +103 -0
  185. package/dist/step-subset-spatial-ancestors.js.map +1 -0
  186. package/dist/step-subset-storey.d.ts +21 -0
  187. package/dist/step-subset-storey.d.ts.map +1 -0
  188. package/dist/step-subset-storey.js +319 -0
  189. package/dist/step-subset-storey.js.map +1 -0
  190. package/dist/step-subset.d.ts +68 -0
  191. package/dist/step-subset.d.ts.map +1 -0
  192. package/dist/step-subset.js +388 -0
  193. package/dist/step-subset.js.map +1 -0
  194. package/dist/unit-normalize.d.ts +14 -13
  195. package/dist/unit-normalize.d.ts.map +1 -1
  196. package/dist/unit-normalize.js +103 -85
  197. package/dist/unit-normalize.js.map +1 -1
  198. package/dist/xlsx-limits.d.ts +12 -0
  199. package/dist/xlsx-limits.d.ts.map +1 -0
  200. package/dist/xlsx-limits.js +48 -0
  201. package/dist/xlsx-limits.js.map +1 -0
  202. package/package.json +7 -7
package/README.md CHANGED
@@ -21,7 +21,9 @@ await gp.init();
21
21
  // From already-produced meshes (no re-mesh) …
22
22
  const glb = gp.exportGlbFromMeshes(result.meshes, /* includeMetadata */ true);
23
23
  // … or straight from IFC bytes (meshes internally):
24
- // gp.exportGlb(bytes, true, new Uint32Array(), new Uint32Array(), '')
24
+ // gp.exportGlb(bytes, true)
25
+ // Omit `isolated` to disable isolation. An empty Uint32Array excludes all
26
+ // meshes and causes exportGlb to throw NO_RENDER_GEOMETRY.
25
27
 
26
28
  // Download
27
29
  const url = URL.createObjectURL(new Blob([new Uint8Array(glb)], { type: 'model/gltf-binary' }));
@@ -44,22 +46,30 @@ const hbjson = gp.exportHbjson(bytes, 'model');
44
46
  // Each returns Uint8Array | null (null until the processor is initialized)
45
47
  ```
46
48
 
49
+ `GeometryProcessor` also exposes `exportObj`, `exportUsd`, `exportIfcx`, `exportDfjson`, `exportJson`, `exportStep`, `exportMerged`, `exportKmzFromMeshes` and `exportLandXmlTerrain` (see the [`@ifc-lite/geometry` README](../geometry/README.md)).
50
+
47
51
  ## IFC STEP — with mutations
48
52
 
49
53
  ```typescript
50
- import { exportToStep } from '@ifc-lite/export';
54
+ import { exportToStep, StepExporter } from '@ifc-lite/export';
51
55
 
56
+ // The parsed model as it is (schema defaults to the source schema):
52
57
  const stepText = exportToStep(store, {
53
58
  schema: 'IFC4', // 'IFC2X3' | 'IFC4' | 'IFC4X3' | 'IFC5'
54
- applyMutations: true, // include edits from MutablePropertyView
55
59
  visibleOnly: false, // export only entities visible in the renderer
56
60
  });
57
61
 
62
+ // With edits: give StepExporter the MutablePropertyView
63
+ const result = new StepExporter(store, mutationView).export({
64
+ schema: 'IFC4',
65
+ applyMutations: true, // default true when a view is supplied
66
+ });
67
+
58
68
  // Save as .ifc
59
- const blob = new Blob([stepText], { type: 'application/x-step' });
69
+ const blob = new Blob([new Uint8Array(result.content)], { type: 'application/x-step' });
60
70
  ```
61
71
 
62
- `exportToStep` is the round-trip path for property edits. Edit via `@ifc-lite/mutations`, export with `applyMutations: true`, ship the resulting `.ifc` to whatever consumes IFC.
72
+ `StepExporter` with a `MutablePropertyView` is the round-trip path for property edits. Edit via `@ifc-lite/mutations`, export as above, ship the resulting `.ifc` to whatever consumes IFC. `exportToStep(store, options)` takes no view, so it writes the parsed model without overlay edits.
63
73
 
64
74
  ## Anonymized isolated export — for bug reports
65
75
 
@@ -86,9 +96,9 @@ are pseudonymized right along with everything else under the default
86
96
  blanked under the default `scrubOwnerHistory`. What stays in the file by
87
97
  decision: geometry and local placement rotations/non-orthogonal cuts (only
88
98
  the root placement's translation is zeroed), structural entity types,
89
- material *assignments* (which material, just not its original name), and
90
- the header's `preprocessor_version` (from `IfcApplication`, defaults to
91
- `'ifc-lite'`) — that is what makes the file useful for a bug repro. See the
99
+ material *assignments* (which material, just not its original name). The
100
+ header's `preprocessor_version` is the writer's own, `'ifc-lite'`, not the
101
+ source file's. That is what makes the file useful for a bug repro. See the
92
102
  [Exporting
93
103
  Guide](https://ifclite.dev/docs/guide/exporting/#anonymized-isolated-export)
94
104
  for the full option list, including how to opt back into authored names via
@@ -108,13 +118,14 @@ const bos = await exporter.exportBOS();
108
118
  // tableName ∈ entities|properties|quantities|relationships|strings|vertices|indices|meshes
109
119
  const entities = await exporter.exportTable('entities');
110
120
 
111
- // Each Parquet table is ~15–50× smaller than equivalent JSON
121
+ // Parquet is columnar and compressed, so tables are much smaller than JSON
112
122
  // Loadable directly from DuckDB, Polars, pandas, BigQuery, …
113
123
  ```
114
124
 
115
125
  Editing via `@ifc-lite/mutations`? Pass the `MutablePropertyView` as the third constructor
116
126
  argument to drop overlay-deleted entities (and every row that references one) from
117
- the Parquet tables and include overlay-created entities in `Entities.parquet`:
127
+ the Parquet tables, include overlay-created entities in `Entities.parquet`, and
128
+ write the overlay's relationship, property and quantity edits:
118
129
 
119
130
  ```typescript
120
131
  import { ParquetExporter } from '@ifc-lite/export';
@@ -122,10 +133,11 @@ import { ParquetExporter } from '@ifc-lite/export';
122
133
  const exporter = new ParquetExporter(store, geometryResult, mutationView);
123
134
  ```
124
135
 
125
- Created relationship/property/quantity/geometry rows and edits to parsed
126
- property/quantity/attribute values aren't reflected yet. Those table writers
127
- still column-copy the parsed store. `StepExporter`/`Ifc5Exporter` cover the full
128
- edit surface today.
136
+ Edits to parsed attribute values (`Name`, `Description`, `ObjectType`; a retype
137
+ is applied) and to geometry aren't reflected yet: those columns still copy the
138
+ parsed store. For STEP round-trips of attribute edits, use `StepExporter` with a
139
+ `MutablePropertyView`. `Ifc5Exporter` applies retypes and edits to `GlobalId`, `Name`
140
+ and `Description` in its entity rows.
129
141
 
130
142
  ## IFC5 IFCX — JSON + USD geometry
131
143
 
@@ -149,26 +161,36 @@ Cross-schema conversion happens automatically — feed an IFC2X3 store, get IFC5
149
161
 
150
162
  ## LOD0 / LOD1 — lightweight previews
151
163
 
152
- Generate cheap geometric envelopes for use in dashboards, list views, or first-paint hints. Environment-agnostic (Node, browser, server) — accepts raw IFC bytes:
164
+ Generate geometric previews for use in dashboards, list views, or first-paint hints. Environment-agnostic (Node, browser, server) — accepts raw IFC bytes:
153
165
 
154
166
  ```typescript
155
167
  import { generateLod0, generateLod1 } from '@ifc-lite/export';
156
168
 
157
169
  const bytes = new Uint8Array(await file.arrayBuffer());
158
170
 
159
- // LOD0 — bounding boxes + transforms per element, JSON
171
+ // LOD0 — world bounding box, centroid and transform per element, JSON (no meshing)
160
172
  const lod0 = await generateLod0(bytes);
161
173
 
162
- // LOD1 — meshes simplified to bounding boxes / convex hulls, returned as GLB
174
+ // LOD1 — the model's meshes from GeometryProcessor, returned as GLB
163
175
  const lod1 = await generateLod1(bytes);
164
- // { glb: Uint8Array, meta: { failedElements, mapping, ... } }
176
+ // { glb: Uint8Array, meta: { status, failedElements, mapping, ... } }
165
177
 
166
- // Falls back gracefully to box geometry if a complex element fails to mesh
178
+ // LOD0 element IDs missing from the GLB mapping are listed in meta.failedElements.
179
+ // A meshing or GLB assembly error triggers a fallback attempt using LOD0 boxes.
180
+ // A successful fallback sets meta.fallback to 'boxes_from_lod0'.
167
181
  ```
168
182
 
169
183
  ## Also exported
170
184
 
171
- - `MergedExporter` - merge several parsed models into one STEP export
185
+ - `StepExporter` - the class behind `exportToStep`; takes an optional `MutablePropertyView`, and `exportAsync` for map-geometry normalization
186
+ - `parseStep` / `buildSubset` / `serializeSubset` / `selectSubsetSeeds` - raw STEP subset extraction: copy a few products and their reference closure into a small standalone file
187
+ - `DemeshSession` / `applySimplifiedGeometry` - selective mesh simplification with a deferred IFC export
188
+ - `analyzeConversionLoss` / `describeConversion` - report what a schema conversion drops or changes
189
+ - `columnsToParquet` - write plain columns as one Parquet table
190
+ - `MergedExporter` - merge several parsed models into one STEP export (also on its own entry, `@ifc-lite/export/merged-exporter`)
191
+ - `exportSectionedStep` - crop a STEP export at half-spaces (see below)
192
+ - `exportEnergyArtifact` - a complete STEP model as a Ladybug Tools document
193
+ - `tableToCsv` / `escapeCsvCell` / `guardSpreadsheetFormula` - CSV writing with spreadsheet-formula guarding
172
194
  - `collectRelatedEntities` / `exportAnonymizedSubset` - anonymized isolated export (see above)
173
195
  - `convertEntityType` / `convertStepLine` / `needsConversion` - IFC2X3 / IFC4 / IFC4X3 schema conversion helpers
174
196
  - `parseGLB` / `parseGLBToMeshData` / `extractGlbMapping` - GLB round-trip readers
@@ -52,6 +52,8 @@ export interface RelatedEntityOptions {
52
52
  * valid reproduction of anything.
53
53
  */
54
54
  IfcRelContainedInSpatialStructure?: boolean;
55
+ /** Follow spatial IfcRelAggregates ancestors when containment is enabled (default true). */
56
+ includeSpatialAggregates?: boolean;
55
57
  /**
56
58
  * An included object's property sets (`IfcRelDefinesByProperties`).
57
59
  * Default `false` — psets are the majority of what this feature exists to
@@ -1 +1 @@
1
- {"version":3,"file":"anonymize-types.d.ts","sourceRoot":"","sources":["../src/anonymize-types.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;0BACsB;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnD;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9C,oFAAoF;IACpF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;0BACsB;IACtB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;OAKG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C;;;;;;OAMG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACr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;;;;;2EAKuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,OAAO,EAAE,UAAU,CAAC;IACpB;;;4EAGwE;IACxE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,KAAK,EAAE;QACL,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAC;QACpB;iFACyE;QACzE,uBAAuB,EAAE,MAAM,CAAC;QAChC;;;;;0DAKkD;QAClD,qBAAqB,EAAE,MAAM,EAAE,CAAC;QAChC;;;;;yEAKiE;QACjE,qBAAqB,EAAE,MAAM,EAAE,CAAC;QAChC;;+BAEuB;QACvB,2BAA2B,EAAE,MAAM,EAAE,CAAC;QACtC;;;kFAG0E;QAC1E,gBAAgB,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,EAAE,CAAA;SAAE,EAAE,CAAC;QACjE;;;;;iDAKyC;QACzC,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH"}
@@ -1,113 +1,3 @@
1
- /**
2
- * The declared type a REGENERATED property is written back with
3
- * (github.com/LTplus-AG/ifc-lite/issues/2482).
4
- *
5
- * Editing one property in a property set regenerates the WHOLE set, so every
6
- * other property in it is re-serialized too. Those neighbours were written from
7
- * `PropertyValueType` alone, which is a shape (string / real / integer / …) and
8
- * not a type: the extractor collapses `IFCLABEL`, `IFCTEXT` and `IFCIDENTIFIER`
9
- * to `String`, and every `…MEASURE` / `…RATIO` to `Real`, keeping the source
10
- * token only in `Property.dataType`. Regenerating from the shape therefore
11
- * rewrote `IFCTEXT` as `IFCLABEL` and `IFCLENGTHMEASURE` as `IFCREAL` — silently,
12
- * permanently, and for properties the user never touched. On the numeric side
13
- * the measure token IS the unit semantics, so the loss is not cosmetic.
14
- *
15
- * `dataType` is whatever token the source line carried, so it is NOT written
16
- * back unconditionally. Four gates, in order:
17
- *
18
- * 1. **It must name a member of `IfcValue`.** `NominalValue` is declared as
19
- * `IfcValue`, so a token outside that SELECT is not writable there —
20
- * including the vendor and non-conformant tokens a source file can carry
21
- * (`IFCACMEWIDGETCODE('X')` parses fine and round-trips through `dataType`).
22
- * Membership is resolved from the schema registry rather than a hand-written
23
- * list, so all 106 of IFC4's `IfcValue` leaves are covered and nothing else
24
- * is. An unrecognized token falls back to the shape-derived primitive — the
25
- * old behaviour, which is lossy but valid, rather than a token no consumer
26
- * can resolve.
27
- *
28
- * 2. **Its EXPRESS base must agree with the effective `PropertyValueType`.**
29
- * This is what decides the OTHER question #2482 raised: what wins when the
30
- * session edited the value. `setProperty(…, valueType)` writes the effective
31
- * type; `dataType` stays the SOURCE token. When the caller names a type in a
32
- * different family (a `Boolean` written over an `IFCLENGTHMEASURE`), the
33
- * caller wins and the source token is dropped. When the two agree — which is
34
- * always the case for a property nobody edited, since the extractor derived
35
- * both from the same token — the source token is the more specific of the
36
- * two and wins.
37
- *
38
- * **Unless the caller NAMED a member** ({@link NAMED_MEMBERS}, #3715). Gate 2
39
- * as written could not express `IfcLabel` → `IfcText`: both are STRING, so
40
- * "the two agree" and the source token won, silently discarding the request.
41
- * The information it was missing is whether the caller CHOSE the type or
42
- * merely echoed the shape the extractor derived — and that is already in the
43
- * `PropertyValueType`, because the two are different members of it.
44
- * `String` / `Real` are SHAPES, which is all the extractor can produce (it
45
- * collapses `IFCLABEL`, `IFCTEXT` and `IFCIDENTIFIER` to `String` and keeps
46
- * the token only in `dataType`); `Label` / `Identifier` / `Text` NAME one
47
- * `IfcValue` member each and no extraction path produces them, so one of
48
- * those can only have come from a caller who asked for it. A named member is
49
- * therefore authoritative over the source token; a shape keeps gate 2's
50
- * precedence, which is what stops a value-only edit — the UI passes `String`
51
- * — from rewriting a neighbouring `IFCTEXT` as `IFCLABEL` all over again.
52
- *
53
- * 3. **The VALUE must be representable in that base.** `serializeTypedMarker`
54
- * coerces, so without this an `IFCLENGTHMEASURE` carrying a non-numeric
55
- * value would be written as `IFCLENGTHMEASURE(NaN)`, where the shape-derived
56
- * path writes `$`. This gate also excludes the multi-valued property kinds
57
- * for free: an `IfcPropertyBoundedValue` is extracted as a measure `dataType`
58
- * over a DISPLAY STRING (`'12.5 [1 – 20]'`), and a string does not fit a REAL
59
- * base. Those kinds are regenerated as single values today — lossy, and a
60
- * separate question — but this pass must not make them worse by wrapping a
61
- * display string in a measure token.
62
- *
63
- * 4. **The VALUE must satisfy the member's own EXPRESS domain.** The base is not
64
- * the whole type: eight `IfcValue` members are CONSTRAINED defined types whose
65
- * WHERE rule narrows the primitive they resolve to. `-1` is a fine REAL and
66
- * not a fine `IfcPositiveLengthMeasure`; `2` is a fine REAL and not a fine
67
- * `IfcNormalisedRatioMeasure`. Since `setProperty` performs no schema
68
- * validation, gate 3 alone let a session edit `IFCPOSITIVELENGTHMEASURE(5.)`
69
- * to `-1` and re-declare it `IFCPOSITIVELENGTHMEASURE(-1.)` — a line that
70
- * parses and fails validation, where the pre-#2482 shape-derived path wrote
71
- * a valid `IFCREAL(-1.)`. A gate whose purpose is to stop the exporter
72
- * writing a type it cannot justify must not itself write one.
73
- *
74
- * A violating value RELAXES, where it can, to the nearest ancestor that is
75
- * itself an `IfcValue` member over the same base and carries no constraint —
76
- * `IfcPositiveLengthMeasure` → `IfcLengthMeasure` — resolved from the
77
- * registry's alias chain, not listed. `IFCLENGTHMEASURE(-1.)` is schema-valid
78
- * AND keeps the unit semantics, which is the whole thing #2482 is about;
79
- * dropping to `IFCREAL(-1.)` would re-inflict this PR's own defect on exactly
80
- * the properties whose value went out of range.
81
- *
82
- * Two members have no such ancestor: `IfcPHMeasure` and
83
- * `IfcHeatingValueMeasure` are declared directly as `REAL`, so their alias
84
- * chain leaves `IfcValue` in one step. For those the relaxation returns
85
- * `null` and the shape-derived `IFCREAL` is the answer — schema-valid, and
86
- * the only valid one available. The relaxation target of every constrained
87
- * member is named in `declared-nominal-value-type.test.ts`, so which of the
88
- * two outcomes each takes is asserted rather than assumed.
89
- *
90
- * **Where the constraints come from.** `SCHEMA_REGISTRY.types` is a
91
- * `name -> underlying type` alias map (plus STRING widths); the generator
92
- * does not carry WHERE rules, so there is nothing to read. The eight are
93
- * therefore written out below, which is tolerable only because the set is
94
- * CLOSED and small: they are every constrained member of `IfcValue`'s
95
- * defined-type leaves, and a test derives that set from the bundled
96
- * `packages/codegen/schemas/*.exp` — the WHERE rules themselves — to fail if
97
- * a schema bump adds one this table has not heard of. That test used to ask
98
- * the question by NAME (`/Positive|NonNegative|Normalised/`), which is how
99
- * `IfcPHMeasure` and `IfcHeatingValueMeasure` sat outside the table for as
100
- * long as they did (#3268). String widths, which the
101
- * registry DOES carry (`IfcLabel: 'STRING(255)'`), are deliberately not
102
- * gated: every fallback for a string shape is itself `IFCLABEL` /
103
- * `IFCIDENTIFIER`, so rejecting an over-long label would emit the identical
104
- * over-long line, and rejecting an over-long `IfcText` (unbounded, therefore
105
- * valid) would narrow it to a bounded type and make the file worse.
106
- *
107
- * A `null` value is left entirely to {@link serializePropertyValue}: null is
108
- * the extractor's reading of `IFCLOGICAL(.U.)` as well as of an absent value,
109
- * and which of those a null means is #2472's question, not this one.
110
- */
111
1
  import { PropertyValueType } from '@ifc-lite/data';
112
2
  /**
113
3
  * Exported for the drift test only: the members {@link CONSTRAINED_MEMBERS}
@@ -130,6 +20,8 @@ export declare function declaredNominalValueType(value: unknown, type: PropertyV
130
20
  * from the property's shape alone.
131
21
  */
132
22
  export declare function serializeNominalValue(value: unknown, type: PropertyValueType, dataType: string | undefined): string;
23
+ /** Numeric IfcMeasureWithUnit.ValueComponent in the IFC2X3 project unit graph. */
24
+ export declare function validLegacyConversionFactor(token: string, literal: string, value: number): boolean;
133
25
  /** Validate an explicitly authored IfcValue declaration before a mutation can be written.
134
26
  * Unlike regeneration's loss-tolerant fallback, an authored declaration must be exact and representable.
135
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"declared-property-type.d.ts","sourceRoot":"","sources":["../src/declared-property-type.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AA2HnD;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,SAAS,MAAM,EAAoC,CAAC;AAsBhG;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,IAAI,CAqBf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,CAIR;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAgBtJ"}
1
+ {"version":3,"file":"declared-property-type.d.ts","sourceRoot":"","sources":["../src/declared-property-type.ts"],"names":[],"mappings":"AAoHA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AA2HnD;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,SAAS,MAAM,EAAoC,CAAC;AAsBhG;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,IAAI,CAqBf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,CAIR;AAED,kFAAkF;AAClF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CASlG;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAgBtJ"}
@@ -111,6 +111,7 @@
111
111
  * the extractor's reading of `IFCLOGICAL(.U.)` as well as of an absent value,
112
112
  * and which of those a null means is #2472's question, not this one.
113
113
  */
114
+ import { getSchemaRegistryForVersion } from '@ifc-lite/parser';
114
115
  import { PropertyValueType } from '@ifc-lite/data';
115
116
  import { ifc4Registry } from './ifc4-registry.js';
116
117
  import { getSelectDefinedLeaves } from './select-qualification.js';
@@ -300,6 +301,20 @@ export function serializeNominalValue(value, type, dataType) {
300
301
  return serializePropertyValue(value, type);
301
302
  return serializeTypedMarker(declared, value);
302
303
  }
304
+ /** Numeric IfcMeasureWithUnit.ValueComponent in the IFC2X3 project unit graph. */
305
+ export function validLegacyConversionFactor(token, literal, value) {
306
+ if (!Number.isFinite(value) || value <= 0)
307
+ return false;
308
+ const leaves = getSelectDefinedLeaves('IfcValue', getSchemaRegistryForVersion('IFC2X3'));
309
+ for (const [name, base] of leaves) {
310
+ if (name.toUpperCase() !== token)
311
+ continue;
312
+ if (base === 'INTEGER' && (!/^[+-]?\d+$/.test(literal) || !Number.isSafeInteger(value)))
313
+ return false;
314
+ return valueFitsBase(value, base) && (CONSTRAINED_MEMBERS.get(name)?.(value) ?? true);
315
+ }
316
+ return false;
317
+ }
303
318
  /** Validate an explicitly authored IfcValue declaration before a mutation can be written.
304
319
  * Unlike regeneration's loss-tolerant fallback, an authored declaration must be exact and representable.
305
320
  */
@@ -1 +1 @@
1
- {"version":3,"file":"declared-property-type.js","sourceRoot":"","sources":["../src/declared-property-type.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,uEAAuE;AACvE,MAAM,oBAAoB,GAAG,UAAU,CAAC;AAExC;;;;;;;;;;;;;;GAcG;AACH,MAAM,aAAa,GAA2C,IAAI,GAAG,CAAC;IACpE,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC;IACrC,CAAC,iBAAiB,CAAC,UAAU,EAAE,eAAe,CAAC;IAC/C,CAAC,iBAAiB,CAAC,IAAI,EAAE,SAAS,CAAC;CACpC,CAAC,CAAC;AAEH,uEAAuE;AACvE,IAAI,kBAAkB,GAAkD,IAAI,CAAC;AAE7E,SAAS,sBAAsB,CAAC,KAAa;IAC3C,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,CAAC;YACxE,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,C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C,IAAI,EAAE,CAAC,CAAC;IACnI,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACrE,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,KAAK,MAAM,UAAU,IAAI,KAAK;YAAE,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,IAAI,EAAE,CAAC,CAAC;IACxI,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO;QAC7G,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC;IAC7H,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACvC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** Export a complete STEP model as a Ladybug Tools document. */
2
+ export declare function exportEnergyArtifact(format: 'HBJSON' | 'DFJSON', bytes: Uint8Array, name: string): Promise<{
3
+ text: string;
4
+ warnings: string[];
5
+ }>;
6
+ //# sourceMappingURL=energy-artifact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energy-artifact.d.ts","sourceRoot":"","sources":["../src/energy-artifact.ts"],"names":[],"mappings":"AAMA,gEAAgE;AAChE,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,QAAQ,GAAG,QAAQ,EAC3B,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAuB/C"}
@@ -0,0 +1,33 @@
1
+ /* This Source Code Form is subject to the terms of the Mozilla Public
2
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
+ import { GeometryProcessor } from '@ifc-lite/geometry';
5
+ /** Export a complete STEP model as a Ladybug Tools document. */
6
+ export async function exportEnergyArtifact(format, bytes, name) {
7
+ if (bytes.length === 0) {
8
+ throw new Error(`${format} export needs the source IFC bytes, which this store did not retain.`);
9
+ }
10
+ const processor = new GeometryProcessor();
11
+ try {
12
+ await processor.init();
13
+ if (format === 'DFJSON') {
14
+ const text = processor.exportDfjson(bytes, name);
15
+ if (text === null)
16
+ throw new Error('Geometry engine unavailable for DFJSON export.');
17
+ return { text, warnings: [] };
18
+ }
19
+ const result = processor.exportHbjsonWithStats(bytes, name);
20
+ if (result === null)
21
+ throw new Error('Geometry engine unavailable for HBJSON export.');
22
+ const { content, stats } = result;
23
+ const warnings = stats.skipped > 0
24
+ ? [`HBJSON export: ${stats.skipped} of ${stats.spaces} IfcSpace skipped as degenerate ` +
25
+ `(malformed footprint / holes / non-extrusion); ${stats.rooms} rooms written.`]
26
+ : [];
27
+ return { text: new TextDecoder().decode(content), warnings };
28
+ }
29
+ finally {
30
+ processor.dispose();
31
+ }
32
+ }
33
+ //# sourceMappingURL=energy-artifact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"energy-artifact.js","sourceRoot":"","sources":["../src/energy-artifact.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,gEAAgE;AAChE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAA2B,EAC3B,KAAiB,EACjB,IAAY;IAEZ,IAAI,KA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ser/src/generated/schema-registry.ts`.
7
+ * `packages/parser/src/generated/schema-registry.ts`, and IFC4X3's from
8
+ * `packages/parser/src/generated/ifc4x3/schema-registry.ts` (#11135).
8
9
  *
9
10
  * DO NOT EDIT - regenerate with
10
11
  * node scripts/generate-ifc4-required-slots.mjs
@@ -14,4 +15,6 @@ export type Ifc4RequiredSlot = readonly [number, string];
14
15
  /** `[UPPERCASE entity name, total attribute count, required slots]`. */
15
16
  export type Ifc4RequiredSlotRow = readonly [string, number, readonly Ifc4RequiredSlot[]];
16
17
  export declare const IFC4_REQUIRED_SLOTS: readonly Ifc4RequiredSlotRow[];
18
+ /** The same for IFC4X3, for the IFC2X3 upgrades counted against their own target (#11135). */
19
+ export declare const IFC4X3_REQUIRED_SLOTS: readonly Ifc4RequiredSlotRow[];
17
20
  //# sourceMappingURL=ifc4-required-slots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ifc4-required-slots.d.ts","sourceRoot":"","sources":["../../src/generated/ifc4-required-slots.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AAEH,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzD,wEAAwE;AACxE,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC,CAAC;AAEzF,eAAO,MAAM,mBAAmB,EAAE,SAAS,mBAAmB,EAsmB7D,CAAC"}
1
+ {"version":3,"file":"ifc4-required-slots.d.ts","sourceRoot":"","sources":["../../src/generated/ifc4-required-slots.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AAEH,iCAAiC;AACjC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzD,wEAAwE;AACxE,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAC,CAAC;AAEzF,eAAO,MAAM,mBAAmB,EAAE,SAAS,mBAAmB,EAsmB7D,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB,EAAE,SAAS,mBAAmB,EA8rB/D,CAAC"}