@mlightcad/data-model 1.3.3 → 1.3.5

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 (344) hide show
  1. package/dist/data-model.cjs +5 -0
  2. package/dist/data-model.js +25995 -0
  3. package/dist/dxf-parser-worker.js +1715 -0
  4. package/lib/base/AcDbHostApplicationServices.d.ts +96 -0
  5. package/lib/base/AcDbHostApplicationServices.d.ts.map +1 -0
  6. package/lib/base/AcDbHostApplicationServices.js +118 -0
  7. package/lib/base/AcDbHostApplicationServices.js.map +1 -0
  8. package/lib/base/AcDbObject.d.ts +205 -0
  9. package/lib/base/AcDbObject.d.ts.map +1 -0
  10. package/lib/base/AcDbObject.js +236 -0
  11. package/lib/base/AcDbObject.js.map +1 -0
  12. package/lib/base/index.d.ts +3 -0
  13. package/lib/base/index.d.ts.map +1 -0
  14. package/lib/base/index.js +3 -0
  15. package/lib/base/index.js.map +1 -0
  16. package/lib/converter/AcDbBatchProcessing.d.ts +146 -0
  17. package/lib/converter/AcDbBatchProcessing.d.ts.map +1 -0
  18. package/lib/converter/AcDbBatchProcessing.js +272 -0
  19. package/lib/converter/AcDbBatchProcessing.js.map +1 -0
  20. package/lib/converter/AcDbDxfConverter.d.ts +272 -0
  21. package/lib/converter/AcDbDxfConverter.d.ts.map +1 -0
  22. package/lib/converter/AcDbDxfConverter.js +883 -0
  23. package/lib/converter/AcDbDxfConverter.js.map +1 -0
  24. package/lib/converter/AcDbDxfParser.d.ts +23 -0
  25. package/lib/converter/AcDbDxfParser.d.ts.map +1 -0
  26. package/lib/converter/AcDbDxfParser.js +85 -0
  27. package/lib/converter/AcDbDxfParser.js.map +1 -0
  28. package/lib/converter/AcDbEntitiyConverter.d.ts +160 -0
  29. package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -0
  30. package/lib/converter/AcDbEntitiyConverter.js +708 -0
  31. package/lib/converter/AcDbEntitiyConverter.js.map +1 -0
  32. package/lib/converter/AcDbObjectConverter.d.ts +61 -0
  33. package/lib/converter/AcDbObjectConverter.d.ts.map +1 -0
  34. package/lib/converter/AcDbObjectConverter.js +91 -0
  35. package/lib/converter/AcDbObjectConverter.js.map +1 -0
  36. package/lib/converter/AcDbRegenerator.d.ts +101 -0
  37. package/lib/converter/AcDbRegenerator.d.ts.map +1 -0
  38. package/lib/converter/AcDbRegenerator.js +334 -0
  39. package/lib/converter/AcDbRegenerator.js.map +1 -0
  40. package/lib/converter/index.d.ts +5 -0
  41. package/lib/converter/index.d.ts.map +1 -0
  42. package/lib/converter/index.js +5 -0
  43. package/lib/converter/index.js.map +1 -0
  44. package/lib/converter/worker/AcDbBaseWorker.d.ts +36 -0
  45. package/lib/converter/worker/AcDbBaseWorker.d.ts.map +1 -0
  46. package/lib/converter/worker/AcDbBaseWorker.js +93 -0
  47. package/lib/converter/worker/AcDbBaseWorker.js.map +1 -0
  48. package/lib/converter/worker/AcDbDxfParserWorker.d.ts +11 -0
  49. package/lib/converter/worker/AcDbDxfParserWorker.d.ts.map +1 -0
  50. package/lib/converter/worker/AcDbDxfParserWorker.js +75 -0
  51. package/lib/converter/worker/AcDbDxfParserWorker.js.map +1 -0
  52. package/lib/converter/worker/AcDbWorkerManager.d.ts +107 -0
  53. package/lib/converter/worker/AcDbWorkerManager.d.ts.map +1 -0
  54. package/lib/converter/worker/AcDbWorkerManager.js +360 -0
  55. package/lib/converter/worker/AcDbWorkerManager.js.map +1 -0
  56. package/lib/converter/worker/index.d.ts +3 -0
  57. package/lib/converter/worker/index.d.ts.map +1 -0
  58. package/lib/converter/worker/index.js +3 -0
  59. package/lib/converter/worker/index.js.map +1 -0
  60. package/lib/database/AcDbBlockTable.d.ts +56 -0
  61. package/lib/database/AcDbBlockTable.d.ts.map +1 -0
  62. package/lib/database/AcDbBlockTable.js +98 -0
  63. package/lib/database/AcDbBlockTable.js.map +1 -0
  64. package/lib/database/AcDbBlockTableRecord.d.ts +185 -0
  65. package/lib/database/AcDbBlockTableRecord.d.ts.map +1 -0
  66. package/lib/database/AcDbBlockTableRecord.js +261 -0
  67. package/lib/database/AcDbBlockTableRecord.js.map +1 -0
  68. package/lib/database/AcDbDatabase.d.ts +563 -0
  69. package/lib/database/AcDbDatabase.d.ts.map +1 -0
  70. package/lib/database/AcDbDatabase.js +842 -0
  71. package/lib/database/AcDbDatabase.js.map +1 -0
  72. package/lib/database/AcDbDatabaseConverter.d.ts +292 -0
  73. package/lib/database/AcDbDatabaseConverter.d.ts.map +1 -0
  74. package/lib/database/AcDbDatabaseConverter.js +448 -0
  75. package/lib/database/AcDbDatabaseConverter.js.map +1 -0
  76. package/lib/database/AcDbDatabaseConverterManager.d.ts +141 -0
  77. package/lib/database/AcDbDatabaseConverterManager.d.ts.map +1 -0
  78. package/lib/database/AcDbDatabaseConverterManager.js +173 -0
  79. package/lib/database/AcDbDatabaseConverterManager.js.map +1 -0
  80. package/lib/database/AcDbDimStyleTable.d.ts +31 -0
  81. package/lib/database/AcDbDimStyleTable.d.ts.map +1 -0
  82. package/lib/database/AcDbDimStyleTable.js +49 -0
  83. package/lib/database/AcDbDimStyleTable.js.map +1 -0
  84. package/lib/database/AcDbDimStyleTableRecord.d.ts +797 -0
  85. package/lib/database/AcDbDimStyleTableRecord.d.ts.map +1 -0
  86. package/lib/database/AcDbDimStyleTableRecord.js +1294 -0
  87. package/lib/database/AcDbDimStyleTableRecord.js.map +1 -0
  88. package/lib/database/AcDbDwgVersion.d.ts +32 -0
  89. package/lib/database/AcDbDwgVersion.d.ts.map +1 -0
  90. package/lib/database/AcDbDwgVersion.js +126 -0
  91. package/lib/database/AcDbDwgVersion.js.map +1 -0
  92. package/lib/database/AcDbLayerTable.d.ts +51 -0
  93. package/lib/database/AcDbLayerTable.d.ts.map +1 -0
  94. package/lib/database/AcDbLayerTable.js +92 -0
  95. package/lib/database/AcDbLayerTable.js.map +1 -0
  96. package/lib/database/AcDbLayerTableRecord.d.ts +278 -0
  97. package/lib/database/AcDbLayerTableRecord.d.ts.map +1 -0
  98. package/lib/database/AcDbLayerTableRecord.js +397 -0
  99. package/lib/database/AcDbLayerTableRecord.js.map +1 -0
  100. package/lib/database/AcDbLinetypeTable.d.ts +30 -0
  101. package/lib/database/AcDbLinetypeTable.d.ts.map +1 -0
  102. package/lib/database/AcDbLinetypeTable.js +48 -0
  103. package/lib/database/AcDbLinetypeTable.js.map +1 -0
  104. package/lib/database/AcDbLinetypeTableRecord.d.ts +79 -0
  105. package/lib/database/AcDbLinetypeTableRecord.d.ts.map +1 -0
  106. package/lib/database/AcDbLinetypeTableRecord.js +129 -0
  107. package/lib/database/AcDbLinetypeTableRecord.js.map +1 -0
  108. package/lib/database/AcDbSymbolTable.d.ts +199 -0
  109. package/lib/database/AcDbSymbolTable.d.ts.map +1 -0
  110. package/lib/database/AcDbSymbolTable.js +264 -0
  111. package/lib/database/AcDbSymbolTable.js.map +1 -0
  112. package/lib/database/AcDbSymbolTableRecord.d.ts +61 -0
  113. package/lib/database/AcDbSymbolTableRecord.d.ts.map +1 -0
  114. package/lib/database/AcDbSymbolTableRecord.js +82 -0
  115. package/lib/database/AcDbSymbolTableRecord.js.map +1 -0
  116. package/lib/database/AcDbTextStyleTable.d.ts +48 -0
  117. package/lib/database/AcDbTextStyleTable.d.ts.map +1 -0
  118. package/lib/database/AcDbTextStyleTable.js +112 -0
  119. package/lib/database/AcDbTextStyleTable.js.map +1 -0
  120. package/lib/database/AcDbTextStyleTableRecord.d.ts +179 -0
  121. package/lib/database/AcDbTextStyleTableRecord.d.ts.map +1 -0
  122. package/lib/database/AcDbTextStyleTableRecord.js +276 -0
  123. package/lib/database/AcDbTextStyleTableRecord.js.map +1 -0
  124. package/lib/database/AcDbViewportTable.d.ts +31 -0
  125. package/lib/database/AcDbViewportTable.d.ts.map +1 -0
  126. package/lib/database/AcDbViewportTable.js +49 -0
  127. package/lib/database/AcDbViewportTable.js.map +1 -0
  128. package/lib/database/AcDbViewportTableRecord.d.ts +154 -0
  129. package/lib/database/AcDbViewportTableRecord.d.ts.map +1 -0
  130. package/lib/database/AcDbViewportTableRecord.js +318 -0
  131. package/lib/database/AcDbViewportTableRecord.js.map +1 -0
  132. package/lib/database/index.d.ts +19 -0
  133. package/lib/database/index.d.ts.map +1 -0
  134. package/lib/database/index.js +19 -0
  135. package/lib/database/index.js.map +1 -0
  136. package/lib/entity/AcDb2dPolyline.d.ts +146 -0
  137. package/lib/entity/AcDb2dPolyline.d.ts.map +1 -0
  138. package/lib/entity/AcDb2dPolyline.js +220 -0
  139. package/lib/entity/AcDb2dPolyline.js.map +1 -0
  140. package/lib/entity/AcDb2dVertex.d.ts +143 -0
  141. package/lib/entity/AcDb2dVertex.d.ts.map +1 -0
  142. package/lib/entity/AcDb2dVertex.js +210 -0
  143. package/lib/entity/AcDb2dVertex.js.map +1 -0
  144. package/lib/entity/AcDb3dPolyline.d.ts +102 -0
  145. package/lib/entity/AcDb3dPolyline.d.ts.map +1 -0
  146. package/lib/entity/AcDb3dPolyline.js +158 -0
  147. package/lib/entity/AcDb3dPolyline.js.map +1 -0
  148. package/lib/entity/AcDb3dVertex.d.ts +83 -0
  149. package/lib/entity/AcDb3dVertex.d.ts.map +1 -0
  150. package/lib/entity/AcDb3dVertex.js +133 -0
  151. package/lib/entity/AcDb3dVertex.js.map +1 -0
  152. package/lib/entity/AcDbArc.d.ts +254 -0
  153. package/lib/entity/AcDbArc.d.ts.map +1 -0
  154. package/lib/entity/AcDbArc.js +340 -0
  155. package/lib/entity/AcDbArc.js.map +1 -0
  156. package/lib/entity/AcDbBlockReference.d.ts +190 -0
  157. package/lib/entity/AcDbBlockReference.d.ts.map +1 -0
  158. package/lib/entity/AcDbBlockReference.js +302 -0
  159. package/lib/entity/AcDbBlockReference.js.map +1 -0
  160. package/lib/entity/AcDbCircle.d.ts +186 -0
  161. package/lib/entity/AcDbCircle.d.ts.map +1 -0
  162. package/lib/entity/AcDbCircle.js +249 -0
  163. package/lib/entity/AcDbCircle.js.map +1 -0
  164. package/lib/entity/AcDbCurve.d.ts +42 -0
  165. package/lib/entity/AcDbCurve.d.ts.map +1 -0
  166. package/lib/entity/AcDbCurve.js +44 -0
  167. package/lib/entity/AcDbCurve.js.map +1 -0
  168. package/lib/entity/AcDbEllipse.d.ts +207 -0
  169. package/lib/entity/AcDbEllipse.d.ts.map +1 -0
  170. package/lib/entity/AcDbEllipse.js +272 -0
  171. package/lib/entity/AcDbEllipse.js.map +1 -0
  172. package/lib/entity/AcDbEntity.d.ts +385 -0
  173. package/lib/entity/AcDbEntity.d.ts.map +1 -0
  174. package/lib/entity/AcDbEntity.js +561 -0
  175. package/lib/entity/AcDbEntity.js.map +1 -0
  176. package/lib/entity/AcDbFace.d.ts +151 -0
  177. package/lib/entity/AcDbFace.d.ts.map +1 -0
  178. package/lib/entity/AcDbFace.js +224 -0
  179. package/lib/entity/AcDbFace.js.map +1 -0
  180. package/lib/entity/AcDbHatch.d.ts +174 -0
  181. package/lib/entity/AcDbHatch.d.ts.map +1 -0
  182. package/lib/entity/AcDbHatch.js +250 -0
  183. package/lib/entity/AcDbHatch.js.map +1 -0
  184. package/lib/entity/AcDbLeader.d.ts +243 -0
  185. package/lib/entity/AcDbLeader.d.ts.map +1 -0
  186. package/lib/entity/AcDbLeader.js +358 -0
  187. package/lib/entity/AcDbLeader.js.map +1 -0
  188. package/lib/entity/AcDbLine.d.ts +198 -0
  189. package/lib/entity/AcDbLine.d.ts.map +1 -0
  190. package/lib/entity/AcDbLine.js +300 -0
  191. package/lib/entity/AcDbLine.js.map +1 -0
  192. package/lib/entity/AcDbMText.d.ts +248 -0
  193. package/lib/entity/AcDbMText.d.ts.map +1 -0
  194. package/lib/entity/AcDbMText.js +414 -0
  195. package/lib/entity/AcDbMText.js.map +1 -0
  196. package/lib/entity/AcDbPoint.d.ts +113 -0
  197. package/lib/entity/AcDbPoint.d.ts.map +1 -0
  198. package/lib/entity/AcDbPoint.js +155 -0
  199. package/lib/entity/AcDbPoint.js.map +1 -0
  200. package/lib/entity/AcDbPolyline.d.ts +221 -0
  201. package/lib/entity/AcDbPolyline.d.ts.map +1 -0
  202. package/lib/entity/AcDbPolyline.js +301 -0
  203. package/lib/entity/AcDbPolyline.js.map +1 -0
  204. package/lib/entity/AcDbRasterImage.d.ts +216 -0
  205. package/lib/entity/AcDbRasterImage.d.ts.map +1 -0
  206. package/lib/entity/AcDbRasterImage.js +451 -0
  207. package/lib/entity/AcDbRasterImage.js.map +1 -0
  208. package/lib/entity/AcDbRay.d.ts +150 -0
  209. package/lib/entity/AcDbRay.d.ts.map +1 -0
  210. package/lib/entity/AcDbRay.js +208 -0
  211. package/lib/entity/AcDbRay.js.map +1 -0
  212. package/lib/entity/AcDbSpline.d.ts +135 -0
  213. package/lib/entity/AcDbSpline.d.ts.map +1 -0
  214. package/lib/entity/AcDbSpline.js +142 -0
  215. package/lib/entity/AcDbSpline.js.map +1 -0
  216. package/lib/entity/AcDbTable.d.ts +260 -0
  217. package/lib/entity/AcDbTable.d.ts.map +1 -0
  218. package/lib/entity/AcDbTable.js +452 -0
  219. package/lib/entity/AcDbTable.js.map +1 -0
  220. package/lib/entity/AcDbText.d.ts +388 -0
  221. package/lib/entity/AcDbText.d.ts.map +1 -0
  222. package/lib/entity/AcDbText.js +523 -0
  223. package/lib/entity/AcDbText.js.map +1 -0
  224. package/lib/entity/AcDbTrace.d.ts +193 -0
  225. package/lib/entity/AcDbTrace.d.ts.map +1 -0
  226. package/lib/entity/AcDbTrace.js +271 -0
  227. package/lib/entity/AcDbTrace.js.map +1 -0
  228. package/lib/entity/AcDbViewport.d.ts +173 -0
  229. package/lib/entity/AcDbViewport.d.ts.map +1 -0
  230. package/lib/entity/AcDbViewport.js +295 -0
  231. package/lib/entity/AcDbViewport.js.map +1 -0
  232. package/lib/entity/AcDbWipeout.d.ts +39 -0
  233. package/lib/entity/AcDbWipeout.d.ts.map +1 -0
  234. package/lib/entity/AcDbWipeout.js +70 -0
  235. package/lib/entity/AcDbWipeout.js.map +1 -0
  236. package/lib/entity/AcDbXline.d.ts +151 -0
  237. package/lib/entity/AcDbXline.d.ts.map +1 -0
  238. package/lib/entity/AcDbXline.js +209 -0
  239. package/lib/entity/AcDbXline.js.map +1 -0
  240. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts +92 -0
  241. package/lib/entity/dimension/AcDb3PointAngularDimension.d.ts.map +1 -0
  242. package/lib/entity/dimension/AcDb3PointAngularDimension.js +157 -0
  243. package/lib/entity/dimension/AcDb3PointAngularDimension.js.map +1 -0
  244. package/lib/entity/dimension/AcDbAlignedDimension.d.ts +220 -0
  245. package/lib/entity/dimension/AcDbAlignedDimension.d.ts.map +1 -0
  246. package/lib/entity/dimension/AcDbAlignedDimension.js +341 -0
  247. package/lib/entity/dimension/AcDbAlignedDimension.js.map +1 -0
  248. package/lib/entity/dimension/AcDbArcDimension.d.ts +94 -0
  249. package/lib/entity/dimension/AcDbArcDimension.d.ts.map +1 -0
  250. package/lib/entity/dimension/AcDbArcDimension.js +159 -0
  251. package/lib/entity/dimension/AcDbArcDimension.js.map +1 -0
  252. package/lib/entity/dimension/AcDbDiametricDimension.d.ts +145 -0
  253. package/lib/entity/dimension/AcDbDiametricDimension.d.ts.map +1 -0
  254. package/lib/entity/dimension/AcDbDiametricDimension.js +275 -0
  255. package/lib/entity/dimension/AcDbDiametricDimension.js.map +1 -0
  256. package/lib/entity/dimension/AcDbDimension.d.ts +257 -0
  257. package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -0
  258. package/lib/entity/dimension/AcDbDimension.js +466 -0
  259. package/lib/entity/dimension/AcDbDimension.js.map +1 -0
  260. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts +78 -0
  261. package/lib/entity/dimension/AcDbOrdinateDimension.d.ts.map +1 -0
  262. package/lib/entity/dimension/AcDbOrdinateDimension.js +133 -0
  263. package/lib/entity/dimension/AcDbOrdinateDimension.js.map +1 -0
  264. package/lib/entity/dimension/AcDbRadialDimension.d.ts +214 -0
  265. package/lib/entity/dimension/AcDbRadialDimension.d.ts.map +1 -0
  266. package/lib/entity/dimension/AcDbRadialDimension.js +288 -0
  267. package/lib/entity/dimension/AcDbRadialDimension.js.map +1 -0
  268. package/lib/entity/dimension/index.d.ts +8 -0
  269. package/lib/entity/dimension/index.d.ts.map +1 -0
  270. package/lib/entity/dimension/index.js +8 -0
  271. package/lib/entity/dimension/index.js.map +1 -0
  272. package/lib/entity/index.d.ts +28 -0
  273. package/lib/entity/index.d.ts.map +1 -0
  274. package/lib/entity/index.js +28 -0
  275. package/lib/entity/index.js.map +1 -0
  276. package/lib/index.d.ts +10 -0
  277. package/lib/index.d.ts.map +1 -0
  278. package/lib/index.js +10 -0
  279. package/lib/index.js.map +1 -0
  280. package/lib/misc/AcDbAngleUnits.d.ts +20 -0
  281. package/lib/misc/AcDbAngleUnits.d.ts.map +1 -0
  282. package/lib/misc/AcDbAngleUnits.js +21 -0
  283. package/lib/misc/AcDbAngleUnits.js.map +1 -0
  284. package/lib/misc/AcDbCodePage.d.ts +50 -0
  285. package/lib/misc/AcDbCodePage.d.ts.map +1 -0
  286. package/lib/misc/AcDbCodePage.js +100 -0
  287. package/lib/misc/AcDbCodePage.js.map +1 -0
  288. package/lib/misc/AcDbConstants.d.ts +24 -0
  289. package/lib/misc/AcDbConstants.d.ts.map +1 -0
  290. package/lib/misc/AcDbConstants.js +24 -0
  291. package/lib/misc/AcDbConstants.js.map +1 -0
  292. package/lib/misc/AcDbDimArrowType.d.ts +89 -0
  293. package/lib/misc/AcDbDimArrowType.d.ts.map +1 -0
  294. package/lib/misc/AcDbDimArrowType.js +90 -0
  295. package/lib/misc/AcDbDimArrowType.js.map +1 -0
  296. package/lib/misc/AcDbObjectIterator.d.ts +64 -0
  297. package/lib/misc/AcDbObjectIterator.d.ts.map +1 -0
  298. package/lib/misc/AcDbObjectIterator.js +84 -0
  299. package/lib/misc/AcDbObjectIterator.js.map +1 -0
  300. package/lib/misc/AcDbOsnapMode.d.ts +51 -0
  301. package/lib/misc/AcDbOsnapMode.d.ts.map +1 -0
  302. package/lib/misc/AcDbOsnapMode.js +52 -0
  303. package/lib/misc/AcDbOsnapMode.js.map +1 -0
  304. package/lib/misc/AcDbRenderingCache.d.ts +141 -0
  305. package/lib/misc/AcDbRenderingCache.d.ts.map +1 -0
  306. package/lib/misc/AcDbRenderingCache.js +239 -0
  307. package/lib/misc/AcDbRenderingCache.js.map +1 -0
  308. package/lib/misc/AcDbUnitsValue.d.ts +101 -0
  309. package/lib/misc/AcDbUnitsValue.d.ts.map +1 -0
  310. package/lib/misc/AcDbUnitsValue.js +121 -0
  311. package/lib/misc/AcDbUnitsValue.js.map +1 -0
  312. package/lib/misc/index.d.ts +9 -0
  313. package/lib/misc/index.d.ts.map +1 -0
  314. package/lib/misc/index.js +9 -0
  315. package/lib/misc/index.js.map +1 -0
  316. package/lib/object/AcDbDictionary.d.ts +178 -0
  317. package/lib/object/AcDbDictionary.d.ts.map +1 -0
  318. package/lib/object/AcDbDictionary.js +264 -0
  319. package/lib/object/AcDbDictionary.js.map +1 -0
  320. package/lib/object/AcDbRasterImageDef.d.ts +54 -0
  321. package/lib/object/AcDbRasterImageDef.d.ts.map +1 -0
  322. package/lib/object/AcDbRasterImageDef.js +82 -0
  323. package/lib/object/AcDbRasterImageDef.js.map +1 -0
  324. package/lib/object/index.d.ts +4 -0
  325. package/lib/object/index.d.ts.map +1 -0
  326. package/lib/object/index.js +4 -0
  327. package/lib/object/index.js.map +1 -0
  328. package/lib/object/layout/AcDbLayout.d.ts +190 -0
  329. package/lib/object/layout/AcDbLayout.d.ts.map +1 -0
  330. package/lib/object/layout/AcDbLayout.js +253 -0
  331. package/lib/object/layout/AcDbLayout.js.map +1 -0
  332. package/lib/object/layout/AcDbLayoutDictionary.d.ts +47 -0
  333. package/lib/object/layout/AcDbLayoutDictionary.d.ts.map +1 -0
  334. package/lib/object/layout/AcDbLayoutDictionary.js +122 -0
  335. package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -0
  336. package/lib/object/layout/AcDbLayoutManager.d.ts +188 -0
  337. package/lib/object/layout/AcDbLayoutManager.d.ts.map +1 -0
  338. package/lib/object/layout/AcDbLayoutManager.js +245 -0
  339. package/lib/object/layout/AcDbLayoutManager.js.map +1 -0
  340. package/lib/object/layout/index.d.ts +4 -0
  341. package/lib/object/layout/index.d.ts.map +1 -0
  342. package/lib/object/layout/index.js +4 -0
  343. package/lib/object/layout/index.js.map +1 -0
  344. package/package.json +4 -4
@@ -0,0 +1,397 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { AcCmColor, defaults } from '@mlightcad/common';
17
+ import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
18
+ /**
19
+ * Represents a record in the layer table.
20
+ *
21
+ * This class contains information about a layer in the drawing database,
22
+ * including color, visibility settings, linetype, and other layer properties.
23
+ * Layers are used to organize and control the display of entities in the drawing.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const layer = new AcDbLayerTableRecord({
28
+ * name: 'MyLayer',
29
+ * color: new AcCmColor(255, 0, 0), // Red
30
+ * isOff: false,
31
+ * isPlottable: true
32
+ * });
33
+ * ```
34
+ */
35
+ var AcDbLayerTableRecord = /** @class */ (function (_super) {
36
+ __extends(AcDbLayerTableRecord, _super);
37
+ /**
38
+ * Creates a new AcDbLayerTableRecord instance.
39
+ *
40
+ * @param attrs - Input attribute values for this layer table record
41
+ * @param defaultAttrs - Default values for attributes of this layer table record
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const layer = new AcDbLayerTableRecord({
46
+ * name: 'MyLayer',
47
+ * color: new AcCmColor(255, 0, 0)
48
+ * });
49
+ * ```
50
+ */
51
+ function AcDbLayerTableRecord(attrs, defaultAttrs) {
52
+ var _this = this;
53
+ attrs = attrs || {};
54
+ defaults(attrs, {
55
+ color: new AcCmColor(),
56
+ description: '',
57
+ standardFlags: 0,
58
+ isHidden: false,
59
+ isInUse: true,
60
+ isOff: false,
61
+ isPlottable: true,
62
+ transparency: 0,
63
+ linetype: '',
64
+ lineWeight: 1,
65
+ materialId: -1
66
+ });
67
+ _this = _super.call(this, attrs, defaultAttrs) || this;
68
+ _this.attrs.events.attrChanged.addEventListener(function (args) {
69
+ _this.database.events.layerModified.dispatch({
70
+ database: _this.database,
71
+ layer: _this,
72
+ changes: args.object.changedAttributes()
73
+ });
74
+ });
75
+ return _this;
76
+ }
77
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "color", {
78
+ /**
79
+ * Gets or sets the color value of this layer.
80
+ *
81
+ * @returns The color of the layer
82
+ *
83
+ * @example
84
+ * ```typescript
85
+ * const color = layer.color;
86
+ * layer.color = new AcCmColor(255, 0, 0); // Red
87
+ * ```
88
+ */
89
+ get: function () {
90
+ return this.getAttr('color');
91
+ },
92
+ set: function (value) {
93
+ this.setAttr('color', value.clone());
94
+ },
95
+ enumerable: false,
96
+ configurable: true
97
+ });
98
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "description", {
99
+ /**
100
+ * Gets or sets the description of this layer.
101
+ *
102
+ * @returns The description of the layer
103
+ *
104
+ * @example
105
+ * ```typescript
106
+ * const description = layer.description;
107
+ * layer.description = 'My custom layer';
108
+ * ```
109
+ */
110
+ get: function () {
111
+ return this.getAttr('description');
112
+ },
113
+ set: function (value) {
114
+ this.setAttr('description', value);
115
+ },
116
+ enumerable: false,
117
+ configurable: true
118
+ });
119
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "standardFlags", {
120
+ /**
121
+ * Gets or sets the standard flags for this layer.
122
+ *
123
+ * Standard flags are bit-coded values:
124
+ * - 1 = Layer is frozen; otherwise layer is thawed
125
+ * - 2 = Layer is frozen by default in new viewports
126
+ * - 4 = Layer is locked
127
+ * - 16 = If set, table entry is externally dependent on an xref
128
+ * - 32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved
129
+ * - 64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited
130
+ *
131
+ * @returns The standard flags value
132
+ *
133
+ * @example
134
+ * ```typescript
135
+ * const flags = layer.standardFlags;
136
+ * layer.standardFlags = 1; // Freeze the layer
137
+ * ```
138
+ */
139
+ get: function () {
140
+ return this.getAttr('standardFlags');
141
+ },
142
+ set: function (value) {
143
+ this.setAttr('standardFlags', value);
144
+ },
145
+ enumerable: false,
146
+ configurable: true
147
+ });
148
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isFrozen", {
149
+ /**
150
+ * Gets or sets whether this layer is frozen.
151
+ *
152
+ * When a layer is frozen, its entities are not displayed and cannot be modified.
153
+ *
154
+ * @returns True if the layer is frozen, false otherwise
155
+ *
156
+ * @example
157
+ * ```typescript
158
+ * if (layer.isFrozen) {
159
+ * console.log('Layer is frozen');
160
+ * }
161
+ * layer.isFrozen = true;
162
+ * ```
163
+ */
164
+ get: function () {
165
+ return (this.standardFlags & 0x01) == 1;
166
+ },
167
+ set: function (value) {
168
+ var flag = value ? 1 : 0;
169
+ this.standardFlags = this.standardFlags | flag;
170
+ },
171
+ enumerable: false,
172
+ configurable: true
173
+ });
174
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isHidden", {
175
+ /**
176
+ * Gets or sets whether this layer is hidden.
177
+ *
178
+ * When a layer is hidden, it isn't shown in the user interface of
179
+ * the host application, but entities on the layer are still displayed.
180
+ *
181
+ * @returns True if the layer is hidden, false otherwise
182
+ *
183
+ * @example
184
+ * ```typescript
185
+ * if (layer.isHidden) {
186
+ * console.log('Layer is hidden from UI');
187
+ * }
188
+ * layer.isHidden = true;
189
+ * ```
190
+ */
191
+ get: function () {
192
+ return this.getAttr('isHidden');
193
+ },
194
+ set: function (value) {
195
+ this.setAttr('isHidden', value);
196
+ },
197
+ enumerable: false,
198
+ configurable: true
199
+ });
200
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isInUse", {
201
+ /**
202
+ * Gets or sets whether this layer is in use.
203
+ *
204
+ * A layer is considered in use if it contains entities or is referenced
205
+ * by other objects in the drawing.
206
+ *
207
+ * @returns True if the layer is in use, false otherwise
208
+ *
209
+ * @example
210
+ * ```typescript
211
+ * if (layer.isInUse) {
212
+ * console.log('Layer contains entities');
213
+ * }
214
+ * ```
215
+ */
216
+ get: function () {
217
+ return this.getAttr('isInUse');
218
+ },
219
+ set: function (value) {
220
+ this.setAttr('isInUse', value);
221
+ },
222
+ enumerable: false,
223
+ configurable: true
224
+ });
225
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isLocked", {
226
+ /**
227
+ * Gets or sets whether this layer is locked.
228
+ *
229
+ * When a layer is locked, its entities cannot be modified but are still visible.
230
+ *
231
+ * @returns True if the layer is locked, false otherwise
232
+ *
233
+ * @example
234
+ * ```typescript
235
+ * if (layer.isLocked) {
236
+ * console.log('Layer is locked');
237
+ * }
238
+ * layer.isLocked = true;
239
+ * ```
240
+ */
241
+ get: function () {
242
+ return (this.standardFlags & 0x04) == 4;
243
+ },
244
+ set: function (value) {
245
+ var flag = value ? 4 : 0;
246
+ this.standardFlags = this.standardFlags | flag;
247
+ },
248
+ enumerable: false,
249
+ configurable: true
250
+ });
251
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isOff", {
252
+ /**
253
+ * Gets or sets whether this layer is turned off.
254
+ *
255
+ * When a layer is turned off, its entities are not displayed but can still be modified.
256
+ *
257
+ * @returns True if the layer is turned off, false otherwise
258
+ *
259
+ * @example
260
+ * ```typescript
261
+ * if (layer.isOff) {
262
+ * console.log('Layer is turned off');
263
+ * }
264
+ * layer.isOff = true;
265
+ * ```
266
+ */
267
+ get: function () {
268
+ return this.getAttr('isOff');
269
+ },
270
+ set: function (value) {
271
+ this.setAttr('isOff', value);
272
+ },
273
+ enumerable: false,
274
+ configurable: true
275
+ });
276
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "isPlottable", {
277
+ /**
278
+ * Gets or sets whether this layer is plottable.
279
+ *
280
+ * When a layer is plottable, its entities will be included when the drawing is plotted or printed.
281
+ *
282
+ * @returns True if the layer is plottable, false otherwise
283
+ *
284
+ * @example
285
+ * ```typescript
286
+ * if (layer.isPlottable) {
287
+ * console.log('Layer will be included in plots');
288
+ * }
289
+ * layer.isPlottable = false;
290
+ * ```
291
+ */
292
+ get: function () {
293
+ return this.getAttr('isPlottable');
294
+ },
295
+ set: function (value) {
296
+ this.setAttr('isPlottable', value);
297
+ },
298
+ enumerable: false,
299
+ configurable: true
300
+ });
301
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "transparency", {
302
+ /**
303
+ * Gets or sets the transparency level of this layer.
304
+ *
305
+ * Transparency values range from 0 (opaque) to 1 (fully transparent).
306
+ *
307
+ * @returns The transparency level (0-1)
308
+ *
309
+ * @example
310
+ * ```typescript
311
+ * const transparency = layer.transparency;
312
+ * layer.transparency = 0.5; // 50% transparent
313
+ * ```
314
+ */
315
+ get: function () {
316
+ return this.getAttr('transparency');
317
+ },
318
+ set: function (value) {
319
+ this.setAttr('transparency', value);
320
+ },
321
+ enumerable: false,
322
+ configurable: true
323
+ });
324
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "linetype", {
325
+ /**
326
+ * Gets or sets the linetype name for this layer.
327
+ *
328
+ * The linetype defines the pattern of dashes, dots, and spaces used
329
+ * to display lines and curves on this layer.
330
+ *
331
+ * @returns The linetype name
332
+ *
333
+ * @example
334
+ * ```typescript
335
+ * const linetype = layer.linetype;
336
+ * layer.linetype = 'DASHED';
337
+ * ```
338
+ */
339
+ get: function () {
340
+ return this.getAttr('linetype');
341
+ },
342
+ set: function (value) {
343
+ this.setAttr('linetype', value);
344
+ },
345
+ enumerable: false,
346
+ configurable: true
347
+ });
348
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "lineWeight", {
349
+ /**
350
+ * Gets or sets the line weight for this layer.
351
+ *
352
+ * Line weight determines the thickness of lines and curves on this layer.
353
+ *
354
+ * @returns The line weight value
355
+ *
356
+ * @example
357
+ * ```typescript
358
+ * const weight = layer.lineWeight;
359
+ * layer.lineWeight = 2.0; // 2.0mm line weight
360
+ * ```
361
+ */
362
+ get: function () {
363
+ return this.getAttr('lineWeight');
364
+ },
365
+ set: function (value) {
366
+ this.setAttr('lineWeight', value);
367
+ },
368
+ enumerable: false,
369
+ configurable: true
370
+ });
371
+ Object.defineProperty(AcDbLayerTableRecord.prototype, "materialId", {
372
+ /**
373
+ * Gets or sets the material ID associated with this layer.
374
+ *
375
+ * Material IDs are used for rendering and visualization purposes.
376
+ *
377
+ * @returns The material ID
378
+ *
379
+ * @example
380
+ * ```typescript
381
+ * const materialId = layer.materialId;
382
+ * layer.materialId = 'concrete';
383
+ * ```
384
+ */
385
+ get: function () {
386
+ return this.getAttr('materialId');
387
+ },
388
+ set: function (value) {
389
+ this.setAttr('materialId', value);
390
+ },
391
+ enumerable: false,
392
+ configurable: true
393
+ });
394
+ return AcDbLayerTableRecord;
395
+ }(AcDbSymbolTableRecord));
396
+ export { AcDbLayerTableRecord };
397
+ //# sourceMappingURL=AcDbLayerTableRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLayerTableRecord.js","sourceRoot":"","sources":["../../src/database/AcDbLayerTableRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEvD,OAAO,EACL,qBAAqB,EAEtB,MAAM,yBAAyB,CAAA;AAiChC;;;;;;;;;;;;;;;;GAgBG;AACH;IAA0C,wCAAgD;IACxF;;;;;;;;;;;;;OAaG;IACH,8BACE,KAA0C,EAC1C,YAA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AC,OAAO,CAAC,YAAY,CAAC,CAAA;QACnC,CAAC;aACD,UAAe,KAAa;YAC1B,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAA;QACnC,CAAC;;;OAHA;IAIH,2BAAC;AAAD,CAAC,AAhUD,CAA0C,qBAAqB,GAgU9D"}
@@ -0,0 +1,30 @@
1
+ import { AcDbDatabase } from './AcDbDatabase';
2
+ import { AcDbLinetypeTableRecord } from './AcDbLinetypeTableRecord';
3
+ import { AcDbSymbolTable } from './AcDbSymbolTable';
4
+ /**
5
+ * Symbol table for linetype table records.
6
+ *
7
+ * This class manages linetype table records which represent line types within a
8
+ * drawing database. Line types define the pattern of dashes, dots, and spaces
9
+ * used to display lines and curves in the drawing.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const linetypeTable = new AcDbLinetypeTable(database);
14
+ * const linetype = linetypeTable.getAt('Continuous');
15
+ * ```
16
+ */
17
+ export declare class AcDbLinetypeTable extends AcDbSymbolTable<AcDbLinetypeTableRecord> {
18
+ /**
19
+ * Creates a new AcDbLinetypeTable instance.
20
+ *
21
+ * @param db - The database this linetype table belongs to
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const linetypeTable = new AcDbLinetypeTable(database);
26
+ * ```
27
+ */
28
+ constructor(db: AcDbDatabase);
29
+ }
30
+ //# sourceMappingURL=AcDbLinetypeTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLinetypeTable.d.ts","sourceRoot":"","sources":["../../src/database/AcDbLinetypeTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,uBAAuB,CAAC;IAC7E;;;;;;;;;OASG;gBACS,EAAE,EAAE,YAAY;CAG7B"}
@@ -0,0 +1,48 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { AcDbSymbolTable } from './AcDbSymbolTable';
17
+ /**
18
+ * Symbol table for linetype table records.
19
+ *
20
+ * This class manages linetype table records which represent line types within a
21
+ * drawing database. Line types define the pattern of dashes, dots, and spaces
22
+ * used to display lines and curves in the drawing.
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * const linetypeTable = new AcDbLinetypeTable(database);
27
+ * const linetype = linetypeTable.getAt('Continuous');
28
+ * ```
29
+ */
30
+ var AcDbLinetypeTable = /** @class */ (function (_super) {
31
+ __extends(AcDbLinetypeTable, _super);
32
+ /**
33
+ * Creates a new AcDbLinetypeTable instance.
34
+ *
35
+ * @param db - The database this linetype table belongs to
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * const linetypeTable = new AcDbLinetypeTable(database);
40
+ * ```
41
+ */
42
+ function AcDbLinetypeTable(db) {
43
+ return _super.call(this, db) || this;
44
+ }
45
+ return AcDbLinetypeTable;
46
+ }(AcDbSymbolTable));
47
+ export { AcDbLinetypeTable };
48
+ //# sourceMappingURL=AcDbLinetypeTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLinetypeTable.js","sourceRoot":"","sources":["../../src/database/AcDbLinetypeTable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD;;;;;;;;;;;;GAYG;AACH;IAAuC,qCAAwC;IAC7E;;;;;;;;;OASG;IACH,2BAAY,EAAgB;QAC1B,OAAA,MAAK,YAAC,EAAE,CAAC,SAAA;IACX,CAAC;IACH,wBAAC;AAAD,CAAC,AAdD,CAAuC,eAAe,GAcrD"}
@@ -0,0 +1,79 @@
1
+ import { AcGiBaseLineStyle } from '@mlightcad/graphic-interface';
2
+ import { AcDbSymbolTableRecord } from './AcDbSymbolTableRecord';
3
+ /**
4
+ * Represents a record in the line type table within the AutoCAD drawing database.
5
+ *
6
+ * Each line type table record contains the information necessary to define a specific line type,
7
+ * including its pattern, description, and rendering characteristics. Line types define how lines
8
+ * are drawn, including patterns of dashes, dots, and spaces.
9
+ *
10
+ * Within the line type table record, the dashes (line segments that make up characteristics of the
11
+ * linetype) are stored in a list with an index that is zero based. If the linetype is complex, then
12
+ * embedded shapes or text strings are stored in the list at the same index as the dash that preceded
13
+ * them in the linetype definition. So there will always be a dashLength for any valid index in the
14
+ * list, even if there is a shape or text string sharing the same index. When the linetype is elaborated,
15
+ * a shape's insertion point will coincide with the end of the dash that it shares an index with.
16
+ */
17
+ export declare class AcDbLinetypeTableRecord extends AcDbSymbolTableRecord {
18
+ private _linetype;
19
+ /**
20
+ * Creates a new line type table record.
21
+ *
22
+ * @param linetype - The line type style object that defines the visual characteristics
23
+ * and pattern of this line type
24
+ */
25
+ constructor(linetype: AcGiBaseLineStyle);
26
+ /**
27
+ * Gets the number of dash elements in the line type pattern.
28
+ *
29
+ * This value represents the total count of dashes, spaces, dots, and other pattern elements
30
+ * that make up the line type. It corresponds to DXF group code 73 in the AutoCAD file format.
31
+ *
32
+ * @returns The number of pattern elements in the line type
33
+ */
34
+ get numDashes(): number;
35
+ /**
36
+ * Gets the total pattern length in AutoCAD drawing units.
37
+ *
38
+ * The pattern length represents the total length of all dashes and spaces when the line type
39
+ * scale is 1.0. This value is used to calculate how the pattern repeats along a line.
40
+ *
41
+ * Note: Embedded shapes or text strings do not add to the pattern length because they are
42
+ * overlaid and do not interrupt the actual dash pattern.
43
+ *
44
+ * @returns The total length of the line type pattern in drawing units
45
+ */
46
+ get patternLength(): number;
47
+ /**
48
+ * Gets the description or comments associated with this line type.
49
+ *
50
+ * This property provides additional information about the line type, such as its intended
51
+ * use or any special characteristics.
52
+ *
53
+ * @returns The description text for the line type
54
+ */
55
+ get comments(): string;
56
+ /**
57
+ * Gets the line type style object used by the renderer.
58
+ *
59
+ * This property provides access to the underlying line type definition that contains
60
+ * all the visual characteristics and rendering information.
61
+ *
62
+ * @returns The line type style object
63
+ */
64
+ get linetype(): AcGiBaseLineStyle;
65
+ /**
66
+ * Gets the length of a specific dash element in the line type pattern.
67
+ *
68
+ * Each dash element in the pattern has a specific length that determines how it appears
69
+ * when the line type is rendered. Positive values represent visible dashes, while negative
70
+ * values represent spaces (pen up).
71
+ *
72
+ * @param index - Zero-based index of the dash element. Must be greater than or equal to zero,
73
+ * but less than the value of property 'numDashes'
74
+ * @returns The length of the specified dash element in drawing units
75
+ * @throws {Error} When the index is out of range
76
+ */
77
+ dashLengthAt(index: number): number;
78
+ }
79
+ //# sourceMappingURL=AcDbLinetypeTableRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcDbLinetypeTableRecord.d.ts","sourceRoot":"","sources":["../../src/database/AcDbLinetypeTableRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAEhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;;;;;;;;;;GAaG;AACH,qBAAa,uBAAwB,SAAQ,qBAAqB;IAChE,OAAO,CAAC,SAAS,CAAmB;IAEpC;;;;;OAKG;gBACS,QAAQ,EAAE,iBAAiB;IAMvC;;;;;;;OAOG;IACH,IAAI,SAAS,WAEZ;IAED;;;;;;;;;;OAUG;IACH,IAAI,aAAa,WAEhB;IAED;;;;;;;OAOG;IACH,IAAI,QAAQ,WAEX;IAED;;;;;;;OAOG;IACH,IAAI,QAAQ,sBAEX;IAED;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM;CAQ3B"}