@flyfish-group/file-viewer 1.0.13 → 1.0.15

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 (210) hide show
  1. package/README.md +109 -30
  2. package/dist/components/3MFLoader.js +1 -0
  3. package/dist/components/AMFLoader.js +1 -0
  4. package/dist/components/ArchiveViewer.js +201 -0
  5. package/dist/components/AudioViewer.js +1 -0
  6. package/dist/components/CadViewer.js +1 -1
  7. package/dist/components/CodeViewer.js +1 -1
  8. package/dist/components/ColladaLoader.js +1 -0
  9. package/dist/components/DrawingViewer.js +1 -0
  10. package/dist/components/EdaViewer.js +1 -0
  11. package/dist/components/EmailViewer.js +1 -0
  12. package/dist/components/EpubViewer.js +1 -0
  13. package/dist/components/FBXLoader.js +1 -0
  14. package/dist/components/GLTFLoader.js +1 -0
  15. package/dist/components/ImageViewer.js +1 -1
  16. package/dist/components/KMZLoader.js +1 -0
  17. package/dist/components/MarkdownViewer.js +1 -1
  18. package/dist/components/ModelViewer.js +26885 -0
  19. package/dist/components/OBJLoader.js +1 -0
  20. package/dist/components/OfdViewer.js +1 -1
  21. package/dist/components/PCDLoader.js +1 -0
  22. package/dist/components/PLYLoader.js +1 -0
  23. package/dist/components/PdfView.js +30722 -1
  24. package/dist/components/PptxRender.js +19323 -1
  25. package/dist/components/STLLoader.js +1 -0
  26. package/dist/components/TDSLoader.js +1 -0
  27. package/dist/components/USDLoader.js +1 -0
  28. package/dist/components/UmdViewer.js +2 -0
  29. package/dist/components/VRMLLoader.js +1 -0
  30. package/dist/components/VTKLoader.js +1 -0
  31. package/dist/components/XYZLoader.js +1 -0
  32. package/dist/components/XlsxTable.js +1 -1
  33. package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -0
  34. package/dist/components/_commonjs-dynamic-modules.js +1 -0
  35. package/dist/components/_commonjsHelpers.js +1 -1
  36. package/dist/components/ar-SA-G6X2FPQ2.js +1 -0
  37. package/dist/components/arc.js +1 -0
  38. package/dist/components/architecture-7EHR7CIX.js +1 -0
  39. package/dist/components/architectureDiagram-3BPJPVTR.js +1 -0
  40. package/dist/components/az-AZ-76LH7QW2.js +1 -0
  41. package/dist/components/bg-BG-XCXSNQG7.js +1 -0
  42. package/dist/components/blockDiagram-GPEHLZMM.js +1 -0
  43. package/dist/components/bn-BD-2XOGV67Q.js +1 -0
  44. package/dist/components/c4Diagram-AAUBKEIU.js +1 -0
  45. package/dist/components/ca-ES-6MX7JW3Y.js +1 -0
  46. package/dist/components/cfb.js +1 -0
  47. package/dist/components/channel.js +1 -0
  48. package/dist/components/chunk-2J33WTMH.js +1 -0
  49. package/dist/components/chunk-4BX2VUAB.js +1 -0
  50. package/dist/components/chunk-55IACEB6.js +1 -0
  51. package/dist/components/chunk-727SXJPM.js +1 -0
  52. package/dist/components/chunk-AQP2D5EJ.js +1 -0
  53. package/dist/components/chunk-EIO257PC.js +1722 -0
  54. package/dist/components/chunk-FMBD7UC4.js +1 -0
  55. package/dist/components/chunk-ND2GUHAM.js +1 -0
  56. package/dist/components/chunk-QZHKN3VN.js +1 -0
  57. package/dist/components/classDiagram-4FO5ZUOK.js +1 -0
  58. package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -0
  59. package/dist/components/cose-bilkent-S5V4N54A.js +1 -0
  60. package/dist/components/cs-CZ-2BRQDIVT.js +1 -0
  61. package/dist/components/cytoscape.esm.js +1 -0
  62. package/dist/components/da-DK-5WZEPLOC.js +1 -0
  63. package/dist/components/dagre-BM42HDAG.js +1 -0
  64. package/dist/components/de-DE-XR44H4JA.js +1 -0
  65. package/dist/components/defaultLocale.js +1 -0
  66. package/dist/components/diagram-2AECGRRQ.js +1 -0
  67. package/dist/components/diagram-5GNKFQAL.js +1 -0
  68. package/dist/components/diagram-KO2AKTUF.js +1 -0
  69. package/dist/components/diagram-LMA3HP47.js +1 -0
  70. package/dist/components/diagram-OG6HWLK6.js +1 -0
  71. package/dist/components/directory-open-01563666.js +1 -0
  72. package/dist/components/directory-open-4ed118d0.js +1 -0
  73. package/dist/components/docx-preview.js +2 -2
  74. package/dist/components/el-GR-BZB4AONW.js +1 -0
  75. package/dist/components/en-B4ZKOASM.js +1 -0
  76. package/dist/components/erDiagram-TEJ5UH35.js +1 -0
  77. package/dist/components/es-ES-U4NZUMDT.js +1 -0
  78. package/dist/components/eu-ES-A7QVB2H4.js +1 -0
  79. package/dist/components/eventmodeling-FCH6USID.js +1 -0
  80. package/dist/components/fa-IR-HGAKTJCU.js +1 -0
  81. package/dist/components/fflate.module.js +1 -0
  82. package/dist/components/fi-FI-Z5N7JZ37.js +1 -0
  83. package/dist/components/file-open-002ab408.js +1 -0
  84. package/dist/components/file-open-7c801643.js +1 -0
  85. package/dist/components/file-save-3189631c.js +1 -0
  86. package/dist/components/file-save-745eba88.js +1 -0
  87. package/dist/components/flowDiagram-I6XJVG4X.js +1 -0
  88. package/dist/components/fr-FR-RHASNOE6.js +1 -0
  89. package/dist/components/ganttDiagram-6RSMTGT7.js +1 -0
  90. package/dist/components/gitGraph-WXDBUCRP.js +1 -0
  91. package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -0
  92. package/dist/components/gl-ES-HMX3MZ6V.js +1 -0
  93. package/dist/components/graph.js +1 -0
  94. package/dist/components/he-IL-6SHJWFNN.js +1 -0
  95. package/dist/components/hi-IN-IWLTKZ5I.js +1 -0
  96. package/dist/components/hu-HU-A5ZG7DT2.js +1 -0
  97. package/dist/components/id-ID-SAP4L64H.js +1 -0
  98. package/dist/components/image-GAAHSSAO.js +1 -0
  99. package/dist/components/image-blob-reduce.esm.js +2 -0
  100. package/dist/components/index.js +23989 -1
  101. package/dist/components/index10.js +1 -0
  102. package/dist/components/index11.js +1 -0
  103. package/dist/components/index12.js +1 -0
  104. package/dist/components/index13.js +1 -0
  105. package/dist/components/index14.js +1 -0
  106. package/dist/components/index15.js +1 -0
  107. package/dist/components/index16.js +1 -0
  108. package/dist/components/index17.js +1 -0
  109. package/dist/components/index18.js +1 -0
  110. package/dist/components/index19.js +1 -0
  111. package/dist/components/index2.js +1 -1
  112. package/dist/components/index20.js +1 -0
  113. package/dist/components/index21.js +2 -0
  114. package/dist/components/index22.js +1 -0
  115. package/dist/components/index23.js +1 -0
  116. package/dist/components/index24.js +1 -0
  117. package/dist/components/index3.js +1 -0
  118. package/dist/components/index4.js +1 -0
  119. package/dist/components/index5.js +1 -0
  120. package/dist/components/index6.js +1 -0
  121. package/dist/components/index7.js +1 -0
  122. package/dist/components/index8.js +1 -0
  123. package/dist/components/index9.js +1 -0
  124. package/dist/components/info-J43DQDTF.js +1 -0
  125. package/dist/components/infoDiagram-5YYISTIA.js +1 -0
  126. package/dist/components/init.js +1 -0
  127. package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -0
  128. package/dist/components/it-IT-JPQ66NNP.js +1 -0
  129. package/dist/components/ja-JP-DBVTYXUO.js +1 -0
  130. package/dist/components/journeyDiagram-JHISSGLW.js +1 -0
  131. package/dist/components/jszip.min.js +1 -1
  132. package/dist/components/kaa-6HZHGXH3.js +1 -0
  133. package/dist/components/kab-KAB-ZGHBKWFO.js +1 -0
  134. package/dist/components/kanban-definition-UN3LZRKU.js +1 -0
  135. package/dist/components/katex.js +1 -0
  136. package/dist/components/kk-KZ-P5N5QNE5.js +1 -0
  137. package/dist/components/km-KH-HSX4SM5Z.js +1 -0
  138. package/dist/components/ko-KR-MTYHY66A.js +1 -0
  139. package/dist/components/ku-TR-6OUDTVRD.js +1 -0
  140. package/dist/components/layout.js +1 -0
  141. package/dist/components/libarchive.js +6 -0
  142. package/dist/components/linear.js +1 -0
  143. package/dist/components/lt-LT-XHIRWOB4.js +1 -0
  144. package/dist/components/lv-LV-5QDEKY6T.js +1 -0
  145. package/dist/components/mermaid-parser.core.js +14 -0
  146. package/dist/components/mindmap-definition-RKZ34NQL.js +1 -0
  147. package/dist/components/mr-IN-CRQNXWMA.js +1 -0
  148. package/dist/components/my-MM-5M5IBNSE.js +1 -0
  149. package/dist/components/nb-NO-T6EIAALU.js +1 -0
  150. package/dist/components/nestedRender.js +1 -0
  151. package/dist/components/nl-NL-IS3SIHDZ.js +1 -0
  152. package/dist/components/nn-NO-6E72VCQL.js +1 -0
  153. package/dist/components/oc-FR-POXYY2M6.js +1 -0
  154. package/dist/components/ofd.js +1 -1
  155. package/dist/components/ordinal.js +1 -0
  156. package/dist/components/pa-IN-N4M65BXN.js +1 -0
  157. package/dist/components/packet-YPE3B663.js +1 -0
  158. package/dist/components/percentages-BXMCSKIN.js +1 -0
  159. package/dist/components/pica.js +1 -0
  160. package/dist/components/pie-LRSECV5Y.js +1 -0
  161. package/dist/components/pie.js +1 -0
  162. package/dist/components/pieDiagram-4H26LBE5.js +1 -0
  163. package/dist/components/pl-PL-T2D74RX3.js +1 -0
  164. package/dist/components/postal-mime.js +1 -0
  165. package/dist/components/pt-BR-5N22H2LF.js +1 -0
  166. package/dist/components/pt-PT-UZXXM6DQ.js +1 -0
  167. package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -0
  168. package/dist/components/radar-GUYGQ44K.js +1 -0
  169. package/dist/components/requirementDiagram-4Y6WPE33.js +1 -0
  170. package/dist/components/ro-RO-JPDTUUEW.js +1 -0
  171. package/dist/components/rough.esm.js +1 -0
  172. package/dist/components/roundRect.js +1 -0
  173. package/dist/components/ru-RU-B4JR7IUQ.js +1 -0
  174. package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -0
  175. package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -0
  176. package/dist/components/si-LK-N5RQ5JYF.js +1 -0
  177. package/dist/components/sk-SK-C5VTKIMK.js +1 -0
  178. package/dist/components/sl-SI-NN7IZMDC.js +1 -0
  179. package/dist/components/stateDiagram-AJRCARHV.js +1 -0
  180. package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -0
  181. package/dist/components/subset-shared.chunk.js +1 -0
  182. package/dist/components/subset-worker.chunk.js +1 -0
  183. package/dist/components/sv-SE-XGPEYMSR.js +1 -0
  184. package/dist/components/ta-IN-2NMHFXQM.js +1 -0
  185. package/dist/components/th-TH-HPSO5L25.js +1 -0
  186. package/dist/components/time.js +1 -0
  187. package/dist/components/timeline-definition-PNZ67QCA.js +1 -0
  188. package/dist/components/tr-TR-DEFEU3FU.js +1 -0
  189. package/dist/components/transform.js +1 -0
  190. package/dist/components/treeView-BLDUP644.js +1 -0
  191. package/dist/components/treemap-LRROVOQU.js +1 -0
  192. package/dist/components/uk-UA-QMV73CPH.js +1 -0
  193. package/dist/components/vennDiagram-CIIHVFJN.js +1 -0
  194. package/dist/components/vi-VN-M7AON7JQ.js +1 -0
  195. package/dist/components/wardley-L42UT6IY.js +1 -0
  196. package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -0
  197. package/dist/components/worker-ref.js +1 -1
  198. package/dist/components/xychartDiagram-2RQKCTM6.js +1 -0
  199. package/dist/components/zh-CN-LNUGB5OW.js +1 -0
  200. package/dist/components/zh-HK-E62DVLB3.js +1 -0
  201. package/dist/components/zh-TW-RAJ6MFWO.js +1 -0
  202. package/dist/index.d.ts +74 -3
  203. package/dist/index.mjs +1 -1
  204. package/dist/package/index.d.ts +10 -3
  205. package/dist/style.css +11 -11
  206. package/package.json +17 -3
  207. package/dist/index.umd.js +0 -7
  208. package/dist/worker/pdf.worker.js +0 -1
  209. package/dist/worker/pptx.worker.js +0 -1
  210. package/dist/worker/sheet.worker.js +0 -1
@@ -0,0 +1 @@
1
+ (function(h,i){const m=c,j=h();while(!![]){try{const k=-parseInt(m(0x1a0))/0x1+parseInt(m(0x1a7))/0x2*(parseInt(m(0x1a4))/0x3)+parseInt(m(0x1a3))/0x4+parseInt(m(0x1a2))/0x5+parseInt(m(0x1a5))/0x6+-parseInt(m(0x1a6))/0x7+-parseInt(m(0x19f))/0x8;if(k===i)break;else j['push'](j['shift']());}catch(l){j['push'](j['shift']());}}}(b,0x9137f));import e,{defineAsyncComponent as g}from'vue';const a=g(()=>import('./CadViewer.js'));async function f(h,i,j){const n=c;return new e({'render':k=>k(a,{'props':{'data':h,'type':j||'dxf'}})})[n(0x1a1)](i);}function b(){const p=['912792trglCK','1132747rILBxz','$mount','1060160ROvHKU','1794424YLzCiR','12543gvEQIT','1639146vGCUGl','1576533jrlLkD','542GRHShQ'];b=function(){return p;};return b();}function c(a,d){a=a-0x19f;const e=b();let f=e[a];return f;}export{f as default};
@@ -0,0 +1 @@
1
+ function b(c,d){c=c-0x199;const e=a();let f=e[c];return f;}(function(f,g){const k=b,h=f();while(!![]){try{const i=parseInt(k(0x19d))/0x1*(parseInt(k(0x1a3))/0x2)+parseInt(k(0x1a0))/0x3*(parseInt(k(0x199))/0x4)+-parseInt(k(0x1a1))/0x5*(parseInt(k(0x19c))/0x6)+-parseInt(k(0x19e))/0x7+-parseInt(k(0x1a2))/0x8*(-parseInt(k(0x19f))/0x9)+parseInt(k(0x1a4))/0xa+-parseInt(k(0x19a))/0xb;if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(a,0x20f2a));import c,{defineAsyncComponent as e}from'vue';const u=e(()=>import('./ModelViewer.js').then(f=>f['aD']));async function l(f,g,h,i){const m=b;return new c({'render':j=>j(u,{'props':{'data':f,'type':h||m(0x19b),'sourceUrl':i?.['url']}})})['$mount'](g);}function a(){const n=['12DrHmWt','1210462xqgmrn','glb','1758pbbGJL','33dGjXkt','1098265IAJrxv','965988wViOKI','53796fAWDji','885NGKnfC','16bdUhiZ','3742Kgjehd','1235490oQvXvS'];a=function(){return n;};return a();}export{l as default};
@@ -0,0 +1 @@
1
+ (function(g,h){const m=c,j=g();while(!![]){try{const k=parseInt(m(0x135))/0x1*(parseInt(m(0x133))/0x2)+-parseInt(m(0x12e))/0x3+parseInt(m(0x130))/0x4*(parseInt(m(0x12d))/0x5)+-parseInt(m(0x131))/0x6+parseInt(m(0x12c))/0x7*(-parseInt(m(0x134))/0x8)+parseInt(m(0x132))/0x9*(-parseInt(m(0x12b))/0xa)+parseInt(m(0x12f))/0xb*(parseInt(m(0x136))/0xc);if(k===h)break;else j['push'](j['shift']());}catch(l){j['push'](j['shift']());}}}(b,0x725b1));import e,{defineAsyncComponent as f}from'vue';function b(){const o=['733143OqjQwv','272206pocYxP','16iRVOEv','4797558SgNSDT','9DThtzu','38DadRMJ','2256216dxWDNx','22177koiCXv','960iNhLlI','$mount','4718030WJGdBw','21VJPuWP','536520tYYvHT'];b=function(){return o;};return b();}const i=f(()=>import('./DrawingViewer.js'));async function d(g,h,j){const n=c;return new e({'render':k=>k(i,{'props':{'data':g,'type':j||'drawio'}})})[n(0x12a)](h);}function c(a,d){a=a-0x12a;const e=b();let f=e[a];return f;}export{d as default};
@@ -0,0 +1 @@
1
+ (function(f,g){const k=c,h=f();while(!![]){try{const i=-parseInt(k(0x13c))/0x1+parseInt(k(0x13b))/0x2*(-parseInt(k(0x13e))/0x3)+-parseInt(k(0x141))/0x4+-parseInt(k(0x140))/0x5*(-parseInt(k(0x138))/0x6)+-parseInt(k(0x13a))/0x7+-parseInt(k(0x13d))/0x8+parseInt(k(0x13f))/0x9*(parseInt(k(0x139))/0xa);if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(b,0x3d431));import d,{defineAsyncComponent as e}from'vue';function b(){const l=['3hWYUDg','632538PLwPtZ','160DrvkoM','1627456qLNMKf','89004mAxNhW','110EuwHqm','607831AkIcNj','316208hEZVIn','75128WrgsRT','2159456uXJrSU'];b=function(){return l;};return b();}const p=e(()=>import('./EpubViewer.js'));function c(a,d){a=a-0x138;const e=b();let f=e[a];return f;}async function a(f,g){return new d({'render':h=>h(p,{'props':{'data':f}})})['$mount'](g);}export{a as default};
@@ -0,0 +1 @@
1
+ (function(f,g){const k=b,h=f();while(!![]){try{const i=-parseInt(k(0xcb))/0x1+parseInt(k(0xcd))/0x2*(parseInt(k(0xcc))/0x3)+parseInt(k(0xcf))/0x4*(parseInt(k(0xca))/0x5)+parseInt(k(0xc8))/0x6+-parseInt(k(0xc9))/0x7*(-parseInt(k(0xce))/0x8)+parseInt(k(0xc7))/0x9+-parseInt(k(0xd0))/0xa*(parseInt(k(0xc6))/0xb);if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(a,0x37ca8));import c,{defineAsyncComponent as e}from'vue';const d=e(()=>import('./UmdViewer.js'));async function p(f,g){return new c({'render':h=>h(d,{'props':{'data':f}})})['$mount'](g);}export{p as default};function b(c,d){c=c-0xc6;const e=a();let f=e[c];return f;}function a(){const l=['375971gTsssG','185346iVyFgm','2trFSnI','665768JiiRvD','255344EOUFZw','10MQmNLl','3774551DkhShx','1175733scHjIB','2650284OMZruj','21VQOaPN','5mQTZko'];a=function(){return l;};return a();}
@@ -0,0 +1 @@
1
+ function c(a,d){a=a-0x10b;const e=b();let f=e[a];return f;}(function(g,h){const n=c,j=g();while(!![]){try{const k=-parseInt(n(0x110))/0x1+parseInt(n(0x10d))/0x2*(parseInt(n(0x114))/0x3)+-parseInt(n(0x111))/0x4+parseInt(n(0x10e))/0x5+parseInt(n(0x112))/0x6+-parseInt(n(0x10c))/0x7*(-parseInt(n(0x113))/0x8)+parseInt(n(0x10f))/0x9*(-parseInt(n(0x10b))/0xa);if(k===h)break;else j['push'](j['shift']());}catch(l){j['push'](j['shift']());}}}(b,0x3c740));import d,{defineAsyncComponent as e}from'vue';import{r as f}from'./index7.js';const i=e(()=>import('./ImageViewer.js'));function b(){const o=['9696210ZyhnwL','1695687uWMjsR','577618OfsPAd','1430190uaPIyJ','9bJBYxh','10287IOSyRl','155020CwyZwr','1241700ZYIXNY','16HLwMRP','3TLPpnT'];b=function(){return o;};return b();}async function u(g,h){const j=await f(g);return new d({'render':k=>k(i,{'props':{'image':j}})})['$mount'](h);}export{u as default};
@@ -0,0 +1 @@
1
+ (function(h,j){const n=c,k=h();while(!![]){try{const l=parseInt(n(0x175))/0x1+-parseInt(n(0x179))/0x2+parseInt(n(0x174))/0x3*(-parseInt(n(0x178))/0x4)+-parseInt(n(0x171))/0x5+-parseInt(n(0x176))/0x6+-parseInt(n(0x177))/0x7*(parseInt(n(0x172))/0x8)+parseInt(n(0x173))/0x9;if(l===j)break;else k['push'](k['shift']());}catch(m){k['push'](k['shift']());}}}(b,0xd3f91));import{a as e}from'./index7.js';function b(){const o=['714212iWZJhw','5189694pdOTOq','9457686TizhDs','40040vyjRLe','3141170rrhILl','5805600ylZthI','8jwMKdx','48348459zwmynF','81eNecKL'];b=function(){return o;};return b();}import f,{defineAsyncComponent as g}from'vue';function c(a,d){a=a-0x171;const e=b();let f=e[a];return f;}const d=g(()=>import('./MarkdownViewer.js'));async function s(h,j){const k=await e(h);return new f({'render':l=>l(d,{'props':{'data':k}})})['$mount'](j);}export{s as default};
@@ -0,0 +1 @@
1
+ function c(a,d){a=a-0x1ee;const e=b();let f=e[a];return f;}(function(f,g){const l=c,h=f();while(!![]){try{const j=parseInt(l(0x1f3))/0x1*(parseInt(l(0x1ef))/0x2)+parseInt(l(0x1f2))/0x3*(parseInt(l(0x1f7))/0x4)+-parseInt(l(0x1f1))/0x5+-parseInt(l(0x1f0))/0x6+-parseInt(l(0x1f8))/0x7*(-parseInt(l(0x1f5))/0x8)+parseInt(l(0x1f6))/0x9+-parseInt(l(0x1f4))/0xa;if(j===g)break;else h['push'](h['shift']());}catch(k){h['push'](h['shift']());}}}(b,0xe617c));function b(){const o=['2262267CvQHEJ','252RbPqoW','422002mRgPVJ','$mount','2XbKSSy','1353180CuFHLc','1934425IBCAZs','83643HSQhle','1427650rQVhdt','19409270xpjpXN','8RMoQqE'];b=function(){return o;};return b();}import{a}from'./index7.js';import d,{defineAsyncComponent as e}from'vue';const m=e(()=>import('./CodeViewer.js'));async function u(f,g,h){const n=c,j=await a(f);return new d({'render':k=>k(m,{'props':{'value':j,'type':h||'txt'}})})[n(0x1ee)](g);}export{u as default};
@@ -0,0 +1 @@
1
+ (function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xb4))/0x1+-parseInt(i(0xba))/0x2*(parseInt(i(0xb8))/0x3)+parseInt(i(0xb5))/0x4+parseInt(i(0xc0))/0x5+-parseInt(i(0xb6))/0x6+parseInt(i(0xbd))/0x7*(parseInt(i(0xbb))/0x8)+-parseInt(i(0xb7))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x3f9a0));function b(c,d){c=c-0xb4;const e=a();let f=e[c];return f;}function a(){const k=['3604149RYKByX','6750EEQIgs','width','278rZnrOr','40UbQccz','assign','585935sHArVj','style','src','1969175fMVFpB','height','video','395030KNQilA','453756TjlTql','2082636ffGerP'];a=function(){return k;};return a();}function o(d,f){const j=b,g=document['createElement'](j(0xc2));g[j(0xb9)]=0x348,g[j(0xc1)]=0x1e0,g['controls']=!0x0,Object[j(0xbc)](g[j(0xbe)],{'margin':'40px\x20auto','display':'block'});const h=document['createElement']('source');h[j(0xbf)]=URL['createObjectURL'](new Blob([d])),g['appendChild'](h),f['appendChild'](g);}export{o as default};
@@ -0,0 +1 @@
1
+ function a(){const l=['2252719XJmFpa','460420MDsyoq','12KbgyAQ','41563269CZlHKZ','1621028rIdpNM','98960wJadmC','1400496hbWzcS','2dFEozj','5YINRsH','2319816oWxkzH','32nWkLiI','63FfyVoW'];a=function(){return l;};return a();}(function(f,g){const k=b,h=f();while(!![]){try{const i=-parseInt(k(0x99))/0x1*(parseInt(k(0xa3))/0x2)+-parseInt(k(0x9b))/0x3+-parseInt(k(0xa2))/0x4*(parseInt(k(0x9a))/0x5)+-parseInt(k(0x98))/0x6+parseInt(k(0x9e))/0x7*(-parseInt(k(0x9c))/0x8)+parseInt(k(0x9d))/0x9*(-parseInt(k(0x9f))/0xa)+parseInt(k(0xa1))/0xb*(parseInt(k(0xa0))/0xc);if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(a,0xa0a5c));import c,{defineAsyncComponent as e}from'vue';const d=e(()=>import('./AudioViewer.js'));async function u(f,g,h){return new c({'render':i=>i(d,{'props':{'data':f,'type':h||'mp3'}})})['$mount'](g);}function b(c,d){c=c-0x98;const e=a();let f=e[c];return f;}export{u as default};
@@ -1 +1 @@
1
- const aT=b;(function(c,d){const aS=b,e=c();while(!![]){try{const f=-parseInt(aS(0x1df))/0x1+-parseInt(aS(0x22e))/0x2*(-parseInt(aS(0x241))/0x3)+parseInt(aS(0x1b6))/0x4*(-parseInt(aS(0x213))/0x5)+parseInt(aS(0x24e))/0x6*(parseInt(aS(0x232))/0x7)+parseInt(aS(0x1a3))/0x8+-parseInt(aS(0x205))/0x9+parseInt(aS(0x204))/0xa*(-parseInt(aS(0x1af))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x4fe27));function a(){const dR=['onPointerUp','attachmentPoint','getWidth','debugOptions','doRender','spatialIndexBuildTime','observe','getAllLayers','charCodeAt','_all','endTangent','grab','currentSnap','18633KlxNfR','start','isSeparator','defPoint5','parseTime','point','rgba(255,\x20255,\x20255,\x200.15)','mouseScreenY','worker','nextId','textDirection','getContext','clientY','width','#FF7FBF','#132621','visible','map','removeEventListener','startTangent','measureText','#29A500','SEQEND','STANDARD','color','offsetX','#1F7F00','workerManager','#002600','Failed\x20to\x20get\x202D\x20rendering\x20context.\x20The\x20canvas\x20may\x20already\x20have\x20a\x20different\x20context\x20type,\x20or\x20canvas\x20rendering\x20is\x20not\x20available\x20in\x20this\x20environment.','lineTo','LINE','entries','onDocumentLoaded','alignmentPoint','length','top','15690OIIgTQ','384066pRFEDM','tree','items','controlPoints','position','substring','fitPoints','selectedEntityIndex','setTool','parseWithOptionalWorker','#260013','sort','value','defPoint2','15YoDbDD','Binary\x20DXF\x20format\x20is\x20not\x20supported.\x20Please\x20export\x20as\x20ASCII\x20DXF.','#132617','#261C13','radius','#FFBF00','$MEASUREMENT','layer','#BFFF00','formatConverters','obliqueAngle','left','evenodd','selectionColor','addEventListener','big5','push','onPointerMove','line','max','DIMENSION','insertionPoint','handleTouchEnd','getVisibleLayerNames','handleMouseMove','#264C39','cause','2APeseA','#ff6600','constantWidth','#A52900','35PdizXI','lastDoRenderTime','second-point','destroyed','next','lastX','handlePan','#7F4F3F','#000000','#7FFF7F','Size:\x20','sin','restore','camera','layers','709032XfelFB','measure','onTouchStart','getTheme','#91A552','strokeStyle','#260009','getTool','insert','CIRCLE','startPan','textAlign','_adjustParentBBoxes','530370VumoPk','POINT','fontName','slice','#004C00','minX','DXF\x20content\x20produced\x20no\x20tokens.\x20The\x20input\x20may\x20not\x20be\x20a\x20valid\x20DXF\x20file.','stroke','defPoint4','textMidpoint','isVisible','top-left','MTEXT','has','#4C2642','entityBBoxes','onTouchEnd','requestRender','HATCH','initialTool','#5291A5','#1F007F','object','visibility','handle','entitiesDrawn','insUnits','pending','resolve','minY','height','fileName','changedTouches','options','defPoint3','11px\x20monospace','type','ENDSEC','theme','nextIndex','viewer','getWorker','endpoint','resize','listeners','_build','Drawn:\x20','#7F005F','maxY','lineWidth','button','ENDTAB','code','computeViewportBounds','#134C00','#26001C','render','#00394C','loadGeneration','fillStyle','#00264C','#FF00FF','crosshair','#7F1F00','patternAngle','blockName','handlePointerMove','#4C3926','#26264C','#007F3F','_chooseSplitIndex','#003F7F','rotation','entities','emitter','stopDebugLoop','atan2','getTransform','abs','#7FFF00','AC1021','done','ARC','bigFontName','replace','pointerId','mouseScreenX','blocks','setColorOverride','right','#3F4F7F','firstPoint','visibleLayerCount','#130026','#39004C','patternType','endAngle','pop','text','buildDebugStats','colorOverrides','#52A500','#7FDFFF','flags','#211326','#00004C','#3F5F7F','isLocked','lineTypeScale','onWheel','midpoint','save','loadedFileSize','totalLoadTime','arc','extMax','majorAxis','beginPath','data','sign','min','POLYLINE','entitiesSkipped','#FFFFFF','lastY','end','#264C00','ELLIPSE','collides','viewchange','defaultEntityColor','textBaseline','header','Worker\x20parse\x20failed','defineProperties','degree','LAYER','leaf','font','defPoint','style','decode','vertices','#808080','now','sqrt','edges','moveTo','guardDestroyed','runConverters','startDebugLoop','#FF00BF','windows-1258','getBoundingClientRect','loadedFileName','polyline','#A55200','utf-8','layerManager','entityIndex','toFixed','$INSUNITS','set','#7F9FFF','doc','#FFFF7F','fillRect','#7F5F3F','setLayers','_minEntries','compareMinY','scale','build','columnSpacing','center','idle','touches','startAngle','bulge','#7C52A5','ATTRIB','debugRafId','ctx','isArray','startWidth','visibleCache','canvas','rotate','trueColor','name','clear','select','INSERT','fps','2773880uosFNu','#FFDF7F','onPointerDown','delete','measureTool','lineJoin','ccw','startParam','postMessage','children','Arial,\x20sans-serif','LWPOLYLINE','77KtrdMb','_splitRoot','updateSize','hypot','byType','windows-1256','preventDefault','834076hvIUtu','maxX','scaleY','#555555','from','transform','setLayerVisible','frameTimestamps','knots','_split','debug','Failed\x20to\x20tokenize\x20DXF\x20content.','setLayerColor','activate','handleSelect','*Model_Space','setTransform','search','ceil','zoom','\x20KB','toBBox','getOwnPropertySymbols','getEntityBBoxes','lineSpacingStyle','currentTool','getHeight','renderer'];a=function(){return dR;};return a();}var Re=Object['defineProperty'],Oe=Object[aT(0x167)],_e=Object['getOwnPropertyDescriptors'],ve=Object[aT(0x1cc)],We=Object['prototype']['hasOwnProperty'],$e=Object['prototype']['propertyIsEnumerable'],T=Math['pow'],se=(c,d,f)=>d in c?Re(c,d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':f}):c[d]=f,P=(c,d)=>{for(var f in d||(d={}))We['call'](d,f)&&se(c,f,d[f]);if(ve){for(var f of ve(d))$e['call'](d,f)&&se(c,f,d[f]);}return c;},w=(c,d)=>Oe(c,_e(d)),p=(c,d,f)=>(se(c,typeof d!='symbol'?d+'':d,f),f),H=(c,d,f)=>new Promise((g,h)=>{const aU=aT;var k=u=>{try{m(f['next'](u));}catch(v){h(v);}},l=u=>{try{m(f['throw'](u));}catch(v){h(v);}},m=u=>u['done']?g(u['value']):Promise[aU(0xfd)](u['value'])['then'](k,l);m((f=f['apply'](c,d))[aU(0x236)]());});function Se(f,g,k=0x0,v=f['length']-0x1,x=je){for(;v>k;){if(v-k>0x258){const D=v-k+0x1,F=g-k+0x1,I=Math['log'](D),L=0.5*Math['exp'](0x2*I/0x3),N=0.5*Math['sqrt'](I*L*(D-L)/D)*(F-D/0x2<0x0?-0x1:0x1),O=Math['max'](k,Math['floor'](g-F*L/D+N)),R=Math['min'](v,Math['floor'](g+(D-F)*L/D+N));Se(f,g,O,R,x);}const y=f[g];let A=k,C=v;for(V(f,k,g),x(f[v],y)>0x0&&V(f,k,v);A<C;){for(V(f,A,C),A++,C--;x(f[A],y)<0x0;)A++;for(;x(f[C],y)>0x0;)C--;}x(f[k],y)===0x0?V(f,k,C):(C++,V(f,C,v)),C<=g&&(k=C+0x1),g<=C&&(v=C-0x1);}}function b(c,d){c=c-0xeb;const e=a();let f=e[c];return f;}function V(c,d,f){const g=c[d];c[d]=c[f],c[f]=g;}function je(c,d){return c<d?-0x1:c>d?0x1:0x0;}class qe{constructor(c=0x9){const aV=aT;this['_maxEntries']=Math['max'](0x4,c),this['_minEntries']=Math[aV(0x226)](0x2,Math['ceil'](this['_maxEntries']*0.4)),this[aV(0x19f)]();}['all'](){const aW=aT;return this[aW(0x1db)](this[aW(0x157)],[]);}['search'](c){const aX=aT;let d=this['data'];const e=[];if(!ee(c,d))return e;const f=this['toBBox'],g=[];for(;d;){for(let h=0x0;h<d['children']['length'];h++){const k=d[aX(0x1ac)][h],m=d['leaf']?f(k):k;ee(c,m)&&(d[aX(0x16a)]?e['push'](k):ie(c,m)?this['_all'](k,e):g['push'](k));}d=g['pop']();}return e;}[aT(0x161)](c){const aY=aT;let d=this[aY(0x157)];if(!ee(c,d))return!0x1;const e=[];for(;d;){for(let f=0x0;f<d['children']['length'];f++){const g=d['children'][f],h=d['leaf']?this['toBBox'](g):g;if(ee(c,h)){if(d['leaf']||ie(c,h))return!0x0;e[aY(0x223)](g);}}d=e['pop']();}return!0x1;}['load'](c){const aZ=aT;if(!(c&&c[aZ(0x202)]))return this;if(c['length']<this['_minEntries']){for(let e=0x0;e<c['length'];e++)this['insert'](c[e]);return this;}let d=this['_build'](c['slice'](),0x0,c['length']-0x1,0x0);if(!this['data']['children']['length'])this[aZ(0x157)]=d;else{if(this['data']['height']===d['height'])this[aZ(0x1b0)](this['data'],d);else{if(this['data'][aZ(0xff)]<d[aZ(0xff)]){const f=this['data'];this['data']=d,d=f;}this['_insert'](d,this[aZ(0x157)][aZ(0xff)]-d[aZ(0xff)]-0x1,!0x0);}}return this;}[aT(0x249)](c){return c&&this['_insert'](c,this['data']['height']-0x1),this;}[aT(0x19f)](){const b0=aT;return this[b0(0x157)]=q([]),this;}['remove'](d,e){const b1=aT;if(!d)return this;let f=this['data'];const g=this['toBBox'](d),k=[],m=[];let u,v,x;for(;f||k['length'];){if(f||(f=k[b1(0x142)](),v=k[k['length']-0x1],u=m['pop'](),x=!0x0),f['leaf']){const y=He(d,f[b1(0x1ac)],e);if(y!==-0x1)return f['children']['splice'](y,0x1),k['push'](f),this['_condense'](k),this;}!x&&!f['leaf']&&ie(f,g)?(k['push'](f),m['push'](u),u=0x0,v=f,f=f['children'][0x0]):v?(u++,f=v['children'][u],x=!0x1):f=null;}return this;}[aT(0x1cb)](c){return c;}['compareMinX'](c,d){const b2=aT;return c[b2(0x253)]-d['minX'];}['compareMinY'](c,d){return c['minY']-d['minY'];}['toJSON'](){const b3=aT;return this[b3(0x157)];}['fromJSON'](c){return this['data']=c,this;}['_all'](c,d){const b4=aT,e=[];for(;c;)c['leaf']?d['push'](...c[b4(0x1ac)]):e['push'](...c[b4(0x1ac)]),c=e['pop']();return d;}[aT(0x10e)](e,f,g,k){const b5=aT,v=g-f+0x1;let x=this['_maxEntries'],y;if(v<=x)return y=q(e[b5(0x251)](f,g+0x1)),j(y,this[b5(0x1cb)]),y;k||(k=Math['ceil'](Math['log'](v)/Math['log'](x)),x=Math['ceil'](v/Math['pow'](x,k-0x1))),y=q([]),y[b5(0x16a)]=!0x1,y['height']=k;const A=Math['ceil'](v/x),C=A*Math[b5(0x1c8)](Math['sqrt'](x));Fe(e,f,g,C,this['compareMinX']);for(let D=f;D<=g;D+=C){const F=Math['min'](D+C-0x1,g);Fe(e,D,F,A,this[b5(0x18b)]);for(let I=D;I<=F;I+=A){const L=Math['min'](I+A-0x1,F);y['children']['push'](this['_build'](e,I,L,k-0x1));}}return j(y,this['toBBox']),y;}['_chooseSubtree'](d,e,f,g){const b6=aT;for(;g[b6(0x223)](e),!(e['leaf']||g['length']-0x1===f);){let k=0x1/0x0,m=0x1/0x0,v;for(let x=0x0;x<e[b6(0x1ac)]['length'];x++){const y=e['children'][x],A=oe(y),C=Ge(d,y)-A;C<m?(m=C,k=A<k?A:k,v=y):C===m&&A<k&&(k=A,v=y);}e=v||e['children'][0x0];}return e;}['_insert'](c,d,e){const b7=aT,f=e?c:this['toBBox'](c),g=[],h=this['_chooseSubtree'](f,this[b7(0x157)],d,g);for(h['children']['push'](c),Z(h,f);d>=0x0&&g[d]['children']['length']>this['_maxEntries'];)this['_split'](g,d),d--;this['_adjustParentBBoxes'](f,g,d);}[aT(0x1bf)](c,d){const b8=aT,e=c[d],f=e['children']['length'],g=this[b8(0x18a)];this['_chooseSplitAxis'](e,g,f);const h=this[b8(0x127)](e,g,f),k=q(e['children']['splice'](h,e['children'][b8(0x202)]-h));k['height']=e['height'],k['leaf']=e['leaf'],j(e,this['toBBox']),j(k,this['toBBox']),d?c[d-0x1]['children']['push'](k):this[b8(0x1b0)](e,k);}['_splitRoot'](c,d){const b9=aT;this['data']=q([c,d]),this['data']['height']=c['height']+0x1,this['data'][b9(0x16a)]=!0x1,j(this[b9(0x157)],this[b9(0x1cb)]);}['_chooseSplitIndex'](d,e,f){let g,k=0x1/0x0,m=0x1/0x0;for(let v=e;v<=f-e;v++){const x=G(d,0x0,v,this['toBBox']),y=G(d,v,f,this['toBBox']),A=Ze(x,y),C=oe(x)+oe(y);A<k?(k=A,g=v,m=C<m?C:m):A===k&&C<m&&(m=C,g=v);}return g||f-e;}['_chooseSplitAxis'](c,d,e){const bb=aT,f=c['leaf']?this['compareMinX']:Ve,g=c['leaf']?this['compareMinY']:Ue,h=this['_allDistMargin'](c,d,e,f),k=this['_allDistMargin'](c,d,e,g);h<k&&c['children'][bb(0x210)](f);}['_allDistMargin'](d,e,f,g){const bc=aT;d['children'][bc(0x210)](g);const k=this['toBBox'],m=G(d,0x0,e,k),u=G(d,f-e,f,k);let v=J(m)+J(u);for(let x=e;x<f-e;x++){const y=d['children'][x];Z(m,d['leaf']?k(y):y),v+=J(m);}for(let A=f-e-0x1;A>=e;A--){const C=d['children'][A];Z(u,d['leaf']?k(C):C),v+=J(u);}return v;}[aT(0x24d)](c,d,e){for(let f=e;f>=0x0;f--)Z(d[f],c);}['_condense'](c){for(let d=c['length']-0x1,e;d>=0x0;d--)c[d]['children']['length']===0x0?d>0x0?(e=c[d-0x1]['children'],e['splice'](e['indexOf'](c[d]),0x1)):this['clear']():j(c[d],this['toBBox']);}}function He(c,d,f){if(!f)return d['indexOf'](c);for(let g=0x0;g<d['length'];g++)if(f(c,d[g]))return g;return-0x1;}function j(c,d){const bd=aT;G(c,0x0,c[bd(0x1ac)]['length'],d,c);}function G(c,d,f,g,h){const be=aT;h||(h=q(null)),h['minX']=0x1/0x0,h['minY']=0x1/0x0,h['maxX']=-0x1/0x0,h['maxY']=-0x1/0x0;for(let i=d;i<f;i++){const k=c[be(0x1ac)][i];Z(h,c['leaf']?g(k):k);}return h;}function Z(c,d){const bf=aT;return c['minX']=Math['min'](c['minX'],d[bf(0x253)]),c['minY']=Math['min'](c['minY'],d['minY']),c['maxX']=Math['max'](c['maxX'],d[bf(0x1b7)]),c['maxY']=Math['max'](c['maxY'],d['maxY']),c;}function Ve(c,d){const bg=aT;return c[bg(0x253)]-d['minX'];}function Ue(c,d){return c['minY']-d['minY'];}function oe(c){const bh=aT;return(c['maxX']-c['minX'])*(c['maxY']-c[bh(0xfe)]);}function J(c){return c['maxX']-c['minX']+(c['maxY']-c['minY']);}function Ge(c,d){const bi=aT;return(Math[bi(0x226)](d['maxX'],c['maxX'])-Math['min'](d['minX'],c['minX']))*(Math['max'](d['maxY'],c['maxY'])-Math['min'](d['minY'],c['minY']));}function Ze(c,d){const bj=aT,f=Math['max'](c['minX'],d[bj(0x253)]),g=Math['max'](c['minY'],d['minY']),h=Math['min'](c['maxX'],d['maxX']),i=Math['min'](c['maxY'],d['maxY']);return Math['max'](0x0,h-f)*Math[bj(0x226)](0x0,i-g);}function ie(c,d){const bk=aT;return c[bk(0x253)]<=d['minX']&&c['minY']<=d['minY']&&d['maxX']<=c['maxX']&&d['maxY']<=c['maxY'];}function ee(c,d){const bl=aT;return d[bl(0x253)]<=c[bl(0x1b7)]&&d['minY']<=c['maxY']&&d['maxX']>=c['minX']&&d['maxY']>=c[bl(0xfe)];}function q(c){return{'children':c,'height':0x1,'leaf':!0x0,'minX':0x1/0x0,'minY':0x1/0x0,'maxX':-0x1/0x0,'maxY':-0x1/0x0};}function Fe(c,d,f,g,h){const bm=aT,i=[d,f];for(;i['length'];){if(f=i['pop'](),d=i[bm(0x142)](),f-d<=g)continue;const k=d+Math['ceil']((f-d)/g/0x2)*g;Se(c,k,d,f,h),i['push'](d,k,k,f);}}function Ke(c){const bn=aT,d=c['replace'](/\r\n?/g,'\x0a'),f=[],g=d[bn(0x202)];let h=0x0;for(;h<g;){for(;h<g&&d[bn(0x1da)](h)===0xa;)h++;if(h>=g)break;let k=d['indexOf']('\x0a',h);k===-0x1&&(k=g);const m=d['substring'](h,k)['trim']();h=k+0x1;const u=parseInt(m,0xa);if(isNaN(u)){h<g&&(k=d['indexOf']('\x0a',h),k===-0x1&&(k=g),h=k+0x1);continue;}if(h>=g)break;k=d['indexOf']('\x0a',h),k===-0x1&&(k=g);const v=d[bn(0x20a)](h,k)[bn(0x135)](/\s+$/,'');h=k+0x1,f['push']({'code':u,'value':v});}return f;}function Qe(c,d,f){const bo=aT;for(;d<c['length'];){const g=c[d];if(g['code']===0x0&&g['value']===bo(0x106))return d+0x1;if(g['code']===0x9){const h=g['value'];switch(d++,h){case'$ACADVER':d<c['length']&&(f['acadVersion']=c[d][bo(0x211)],d++);break;case'$EXTMIN':if(d<c['length']){const i=xe(c,d);f['extMin']=i[bo(0x1e4)],d=i[bo(0x108)];}break;case'$EXTMAX':if(d<c[bo(0x202)]){const k=xe(c,d);f[bo(0x154)]=k['point'],d=k['nextIndex'];}break;case bo(0x182):d<c['length']&&(f[bo(0xfb)]=parseInt(c[d]['value'],0xa),d++);break;case bo(0x219):d<c['length']&&(f['measurement']=parseInt(c[d]['value'],0xa),d++);break;case'$LTSCALE':d<c['length']&&(f['ltScale']=parseFloat(c[d]['value']),d++);break;case'$DWGCODEPAGE':d<c['length']&&(f['dwgCodePage']=c[d][bo(0x211)],d++);break;case'$HANDSEED':d<c['length']&&(f['handleSeed']=c[d]['value'],d++);break;default:for(;d<c['length']&&c[d]['code']!==0x9&&c[d]['code']!==0x0;)f[h]=c[d]['value'],d++;}}else d++;}return d;}function xe(c,d){const f={'x':0x0,'y':0x0,'z':0x0};for(;d<c['length'];){const g=c[d]['code'];if(g===0xa)f['x']=parseFloat(c[d]['value']),d++;else{if(g===0x14)f['y']=parseFloat(c[d]['value']),d++;else{if(g===0x1e)f['z']=parseFloat(c[d]['value']),d++;else break;}}}return{'point':f,'nextIndex':d};}function Je(c,d,f){const bp=aT;for(;d<c['length'];){const g=c[d];if(g[bp(0x115)]===0x0&&g['value']==='ENDSEC')return d+0x1;if(g[bp(0x115)]===0x0&&g['value']==='TABLE'){if(d++,d>=c[bp(0x202)])break;const h=c[d]['value'];switch(d++,h){case bp(0x169):d=tt(c,d,f['layers']);break;case'LTYPE':d=at(c,d,f['lineTypes']);break;case'STYLE':d=nt(c,d,f['styles']);break;default:d=et(c,d);break;}}else d++;}return d;}function et(c,d){for(;d<c['length'];){if(c[d]['code']===0x0&&c[d]['value']==='ENDTAB')return d+0x1;d++;}return d;}function tt(c,d,f){const bq=aT;for(;d<c['length'];){const g=c[d];if(g['code']===0x0&&g['value']==='ENDTAB')return d+0x1;if(g['code']===0x0&&g['value']==='LAYER'){d++;const h={'name':'0','color':0x7,'lineType':'Continuous','flags':0x0,'lineWeight':-0x3,'isOff':!0x1,'isFrozen':!0x1,'isLocked':!0x1};for(;d<c[bq(0x202)]&&c[d]['code']!==0x0;){const i=c[d];switch(i['code']){case 0x2:h['name']=i['value'];break;case 0x6:h['lineType']=i[bq(0x211)];break;case 0x3e:h['color']=parseInt(i[bq(0x211)],0xa);break;case 0x46:h['flags']=parseInt(i['value'],0xa);break;case 0x172:h['lineWeight']=parseInt(i[bq(0x211)],0xa);break;case 0x1a4:h['trueColor']=parseInt(i[bq(0x211)],0xa);break;}d++;}f['set'](h['name'],h);}else d++;}return d;}function at(c,d,f){const br=aT;for(;d<c['length'];){const g=c[d];if(g['code']===0x0&&g[br(0x211)]==='ENDTAB')return d+0x1;if(g['code']===0x0&&g['value']==='LTYPE'){d++;const h={'name':'','description':'','pattern':[],'totalLength':0x0};for(;d<c['length']&&c[d]['code']!==0x0;){const i=c[d];switch(i['code']){case 0x2:h['name']=i['value'];break;case 0x3:h['description']=i['value'];break;case 0x28:h['totalLength']=parseFloat(i['value']);break;case 0x31:h['pattern']['push'](parseFloat(i['value']));break;}d++;}h[br(0x19e)]&&f['set'](h['name'],h);}else d++;}return d;}function nt(c,d,f){const bs=aT;for(;d<c[bs(0x202)];){const g=c[d];if(g['code']===0x0&&g[bs(0x211)]===bs(0x114))return d+0x1;if(g['code']===0x0&&g['value']==='STYLE'){d++;const h={'name':'','fontName':'','bigFontName':'','height':0x0,'widthFactor':0x1,'obliqueAngle':0x0};for(;d<c['length']&&c[d]['code']!==0x0;){const i=c[d];switch(i['code']){case 0x2:h['name']=i['value'];break;case 0x3:h[bs(0x250)]=i['value'];break;case 0x4:h[bs(0x134)]=i['value'];break;case 0x28:h['height']=parseFloat(i['value']);break;case 0x29:h['widthFactor']=parseFloat(i['value']);break;case 0x32:h['obliqueAngle']=parseFloat(i['value']);break;}d++;}h[bs(0x19e)]&&f[bs(0x183)](h[bs(0x19e)],h);}else d++;}return d;}function E(c){const bu=aT,d={'type':'','layer':'0','color':0x100,'lineType':'BYLAYER','lineTypeScale':0x1,'lineWeight':-0x1,'visible':!0x0,'extrusion':{'x':0x0,'y':0x0,'z':0x1}};for(const f of c)switch(f[bu(0x115)]){case 0x5:d[bu(0xf9)]=f['value'];break;case 0x8:d[bu(0x21a)]=f['value'];break;case 0x6:d['lineType']=f['value'];break;case 0x30:d[bu(0x14d)]=parseFloat(f['value']);break;case 0x3c:d['visible']=f[bu(0x211)]==='0'||f['value']==='';break;case 0x3e:d['color']=parseInt(f['value'],0xa);break;case 0x172:d['lineWeight']=parseInt(f['value'],0xa);break;case 0x1a4:d['trueColor']=parseInt(f['value'],0xa);break;case 0xd2:d['extrusion']['x']=parseFloat(f['value']);break;case 0xdc:d['extrusion']['y']=parseFloat(f['value']);break;case 0xe6:d['extrusion']['z']=parseFloat(f['value']);break;}return d;}function rt(c){const bv=aT,d=E(c),f=w(P({},d),{'type':'LINE','start':{'x':0x0,'y':0x0,'z':0x0},'end':{'x':0x0,'y':0x0,'z':0x0}});for(const g of c)switch(g['code']){case 0xa:f['start']['x']=parseFloat(g[bv(0x211)]);break;case 0x14:f['start']['y']=parseFloat(g['value']);break;case 0x1e:f['start']['z']=parseFloat(g['value']);break;case 0xb:f['end']['x']=parseFloat(g[bv(0x211)]);break;case 0x15:f['end']['y']=parseFloat(g['value']);break;case 0x1f:f[bv(0x15e)]['z']=parseFloat(g[bv(0x211)]);break;}return f;}function st(c){const bw=aT,d=E(c),f=w(P({},d),{'type':bw(0x24a),'center':{'x':0x0,'y':0x0,'z':0x0},'radius':0x0});for(const g of c)switch(g['code']){case 0xa:f['center']['x']=parseFloat(g['value']);break;case 0x14:f['center']['y']=parseFloat(g['value']);break;case 0x1e:f['center']['z']=parseFloat(g['value']);break;case 0x28:f[bw(0x217)]=parseFloat(g['value']);break;}return f;}function ot(c){const bx=aT,d=E(c),f=w(P({},d),{'type':'ARC','center':{'x':0x0,'y':0x0,'z':0x0},'radius':0x0,'startAngle':0x0,'endAngle':0x168});for(const g of c)switch(g['code']){case 0xa:f['center']['x']=parseFloat(g['value']);break;case 0x14:f[bx(0x18f)]['y']=parseFloat(g['value']);break;case 0x1e:f[bx(0x18f)]['z']=parseFloat(g['value']);break;case 0x28:f['radius']=parseFloat(g['value']);break;case 0x32:f['startAngle']=parseFloat(g[bx(0x211)]);break;case 0x33:f['endAngle']=parseFloat(g['value']);break;}return f;}function it(c){const by=aT,d=E(c),f=w(P({},d),{'type':'LWPOLYLINE','vertices':[],'closed':!0x1,'constantWidth':0x0,'elevation':0x0});let g=null;for(const h of c)switch(h['code']){case 0x46:f['closed']=(parseInt(h[by(0x211)],0xa)&0x1)!==0x0;break;case 0x26:f['elevation']=parseFloat(h['value']);break;case 0x2b:f[by(0x230)]=parseFloat(h['value']);break;case 0xa:g&&f['vertices']['push'](g),g={'x':parseFloat(h['value']),'y':0x0,'bulge':0x0,'startWidth':0x0,'endWidth':0x0};break;case 0x14:g&&(g['y']=parseFloat(h['value']));break;case 0x28:g&&(g['startWidth']=parseFloat(h['value']));break;case 0x29:g&&(g['endWidth']=parseFloat(h['value']));break;case 0x2a:g&&(g[by(0x193)]=parseFloat(h['value']));break;}return g&&f['vertices']['push'](g),f;}function lt(c){const bz=aT,d=E(c),f=w(P({},d),{'type':bz(0x15a),'vertices':[],'closed':!0x1,'is3d':!0x1});for(const g of c)switch(g['code']){case 0x46:{const h=parseInt(g['value'],0xa);f['closed']=(h&0x1)!==0x0,f['is3d']=(h&0x8)!==0x0;break;}}return f;}function ct(c){const bA=aT,d=E(c),f=w(P({},d),{'type':'ELLIPSE','center':{'x':0x0,'y':0x0,'z':0x0},'majorAxis':{'x':0x1,'y':0x0,'z':0x0},'minorRatio':0x1,'startParam':0x0,'endParam':Math['PI']*0x2});for(const g of c)switch(g[bA(0x115)]){case 0xa:f['center']['x']=parseFloat(g['value']);break;case 0x14:f['center']['y']=parseFloat(g['value']);break;case 0x1e:f['center']['z']=parseFloat(g['value']);break;case 0xb:f['majorAxis']['x']=parseFloat(g['value']);break;case 0x15:f['majorAxis']['y']=parseFloat(g['value']);break;case 0x1f:f['majorAxis']['z']=parseFloat(g['value']);break;case 0x28:f['minorRatio']=parseFloat(g['value']);break;case 0x29:f['startParam']=parseFloat(g['value']);break;case 0x2a:f['endParam']=parseFloat(g['value']);break;}return f;}function ht(c){const bB=aT,d=E(c),f=w(P({},d),{'type':'SPLINE','degree':0x3,'flags':0x0,'knots':[],'controlPoints':[],'fitPoints':[],'weights':[]});let g=null,h=null;for(const i of c)switch(i['code']){case 0x46:f['flags']=parseInt(i[bB(0x211)],0xa);break;case 0x47:f['degree']=parseInt(i[bB(0x211)],0xa);break;case 0x28:f[bB(0x1be)]['push'](parseFloat(i['value']));break;case 0x29:f['weights'][bB(0x223)](parseFloat(i['value']));break;case 0xa:g&&f[bB(0x208)]['push'](g),g={'x':parseFloat(i['value']),'y':0x0,'z':0x0};break;case 0x14:g&&(g['y']=parseFloat(i[bB(0x211)]));break;case 0x1e:g&&(g['z']=parseFloat(i['value']));break;case 0xb:h&&f['fitPoints']['push'](h),h={'x':parseFloat(i['value']),'y':0x0,'z':0x0};break;case 0x15:h&&(h['y']=parseFloat(i['value']));break;case 0x1f:h&&(h['z']=parseFloat(i['value']));break;case 0xc:f[bB(0x1f2)]||(f[bB(0x1f2)]={'x':0x0,'y':0x0,'z':0x0}),f['startTangent']['x']=parseFloat(i[bB(0x211)]);break;case 0x16:f['startTangent']&&(f['startTangent']['y']=parseFloat(i[bB(0x211)]));break;case 0x20:f['startTangent']&&(f['startTangent']['z']=parseFloat(i['value']));break;case 0xd:f['endTangent']||(f[bB(0x1dc)]={'x':0x0,'y':0x0,'z':0x0}),f['endTangent']['x']=parseFloat(i['value']);break;case 0x17:f['endTangent']&&(f['endTangent']['y']=parseFloat(i['value']));break;case 0x21:f['endTangent']&&(f['endTangent']['z']=parseFloat(i[bB(0x211)]));break;}return g&&f['controlPoints']['push'](g),h&&f[bB(0x20b)]['push'](h),f;}function ut(c){const bC=aT,d=E(c),f=w(P({},d),{'type':'TEXT','text':'','insertionPoint':{'x':0x0,'y':0x0,'z':0x0},'height':0x1,'rotation':0x0,'widthFactor':0x1,'obliqueAngle':0x0,'style':bC(0x1f6),'hAlign':0x0,'vAlign':0x0,'generationFlags':0x0});for(const g of c)switch(g[bC(0x115)]){case 0x1:f[bC(0x143)]=g[bC(0x211)];break;case 0xa:f['insertionPoint']['x']=parseFloat(g[bC(0x211)]);break;case 0x14:f[bC(0x228)]['y']=parseFloat(g[bC(0x211)]);break;case 0x1e:f['insertionPoint']['z']=parseFloat(g[bC(0x211)]);break;case 0xb:f['alignmentPoint']||(f['alignmentPoint']={'x':0x0,'y':0x0,'z':0x0}),f[bC(0x201)]['x']=parseFloat(g['value']);break;case 0x15:f[bC(0x201)]||(f[bC(0x201)]={'x':0x0,'y':0x0,'z':0x0}),f['alignmentPoint']['y']=parseFloat(g['value']);break;case 0x1f:f['alignmentPoint']||(f[bC(0x201)]={'x':0x0,'y':0x0,'z':0x0}),f['alignmentPoint']['z']=parseFloat(g['value']);break;case 0x28:f['height']=parseFloat(g['value']);break;case 0x29:f['widthFactor']=parseFloat(g[bC(0x211)]);break;case 0x32:f['rotation']=parseFloat(g['value']);break;case 0x33:f['obliqueAngle']=parseFloat(g['value']);break;case 0x7:f['style']=g['value'];break;case 0x47:f['generationFlags']=parseInt(g['value'],0xa);break;case 0x48:f['hAlign']=parseInt(g['value'],0xa);break;case 0x49:f['vAlign']=parseInt(g['value'],0xa);break;}return f;}function dt(c){const bD=aT,d=E(c),f=w(P({},d),{'type':bD(0xed),'text':'','insertionPoint':{'x':0x0,'y':0x0,'z':0x0},'height':0x1,'width':0x0,'attachmentPoint':0x1,'drawingDirection':0x1,'rotation':0x0,'lineSpacingStyle':0x1,'lineSpacingFactor':0x1,'style':'STANDARD','bgFill':0x0,'bgFillScale':1.5}),g=[];for(const h of c)switch(h['code']){case 0x1:g[bD(0x223)](h['value']);break;case 0x3:g['push'](h[bD(0x211)]);break;case 0x7:f['style']=h[bD(0x211)];break;case 0xa:f['insertionPoint']['x']=parseFloat(h[bD(0x211)]);break;case 0x14:f['insertionPoint']['y']=parseFloat(h['value']);break;case 0x1e:f['insertionPoint']['z']=parseFloat(h['value']);break;case 0xb:f['textDirection']||(f['textDirection']={'x':0x0,'y':0x0,'z':0x0}),f['textDirection']['x']=parseFloat(h['value']);break;case 0x15:f['textDirection']||(f[bD(0x1e9)]={'x':0x0,'y':0x0,'z':0x0}),f['textDirection']['y']=parseFloat(h['value']);break;case 0x1f:f[bD(0x1e9)]||(f['textDirection']={'x':0x0,'y':0x0,'z':0x0}),f['textDirection']['z']=parseFloat(h['value']);break;case 0x28:f['height']=parseFloat(h['value']);break;case 0x29:f['width']=parseFloat(h['value']);break;case 0x2c:f['lineSpacingFactor']=parseFloat(h['value']);break;case 0x32:f['rotation']=parseFloat(h['value']);break;case 0x47:f[bD(0x1d3)]=parseInt(h['value'],0xa);break;case 0x48:f['drawingDirection']=parseInt(h[bD(0x211)],0xa);break;case 0x49:f[bD(0x1ce)]=parseInt(h[bD(0x211)],0xa);break;case 0x5a:f['bgFill']=parseInt(h[bD(0x211)],0xa);break;}return f[bD(0x143)]=g['join'](''),f;}function ft(c){const bE=aT,d=E(c),f=w(P({},d),{'type':bE(0x1a1),'blockName':'','insertionPoint':{'x':0x0,'y':0x0,'z':0x0},'scaleX':0x1,'scaleY':0x1,'scaleZ':0x1,'rotation':0x0,'columnCount':0x1,'rowCount':0x1,'columnSpacing':0x0,'rowSpacing':0x0,'attribs':[]});for(const g of c)switch(g['code']){case 0x2:f['blockName']=g['value'];break;case 0xa:f['insertionPoint']['x']=parseFloat(g['value']);break;case 0x14:f['insertionPoint']['y']=parseFloat(g['value']);break;case 0x1e:f['insertionPoint']['z']=parseFloat(g['value']);break;case 0x29:f['scaleX']=parseFloat(g['value']);break;case 0x2a:f[bE(0x1b8)]=parseFloat(g['value']);break;case 0x2b:f['scaleZ']=parseFloat(g['value']);break;case 0x2c:f['columnSpacing']=parseFloat(g['value']);break;case 0x2d:f['rowSpacing']=parseFloat(g['value']);break;case 0x32:f['rotation']=parseFloat(g['value']);break;case 0x46:f['columnCount']=parseInt(g[bE(0x211)],0xa)||0x1;break;case 0x47:f['rowCount']=parseInt(g['value'],0xa)||0x1;break;}return f;}function pt(c){const bF=aT,d=E(c),f=w(P({},d),{'type':'DIMENSION','blockName':'','dimStyle':'STANDARD','dimType':0x0,'defPoint':{'x':0x0,'y':0x0,'z':0x0},'textMidpoint':{'x':0x0,'y':0x0,'z':0x0},'textOverride':'','rotation':0x0,'textRotation':0x0,'leaderLength':0x0});for(const g of c)switch(g['code']){case 0x1:f['textOverride']=g['value'];break;case 0x2:f['blockName']=g[bF(0x211)];break;case 0x3:f['dimStyle']=g['value'];break;case 0xa:f['defPoint']['x']=parseFloat(g['value']);break;case 0x14:f['defPoint']['y']=parseFloat(g['value']);break;case 0x1e:f['defPoint']['z']=parseFloat(g['value']);break;case 0xb:f['textMidpoint']['x']=parseFloat(g[bF(0x211)]);break;case 0x15:f[bF(0x257)]['y']=parseFloat(g['value']);break;case 0x1f:f[bF(0x257)]['z']=parseFloat(g['value']);break;case 0xd:f['defPoint2']||(f['defPoint2']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint2']['x']=parseFloat(g['value']);break;case 0x17:f['defPoint2']||(f['defPoint2']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint2']['y']=parseFloat(g[bF(0x211)]);break;case 0x21:f['defPoint2']||(f['defPoint2']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint2']['z']=parseFloat(g['value']);break;case 0xe:f['defPoint3']||(f['defPoint3']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint3']['x']=parseFloat(g['value']);break;case 0x18:f['defPoint3']||(f[bF(0x103)]={'x':0x0,'y':0x0,'z':0x0}),f['defPoint3']['y']=parseFloat(g['value']);break;case 0x22:f[bF(0x103)]||(f['defPoint3']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint3']['z']=parseFloat(g['value']);break;case 0xf:f[bF(0x256)]||(f[bF(0x256)]={'x':0x0,'y':0x0,'z':0x0}),f['defPoint4']['x']=parseFloat(g['value']);break;case 0x19:f[bF(0x256)]||(f['defPoint4']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint4']['y']=parseFloat(g[bF(0x211)]);break;case 0x23:f['defPoint4']||(f[bF(0x256)]={'x':0x0,'y':0x0,'z':0x0}),f['defPoint4']['z']=parseFloat(g['value']);break;case 0x10:f['defPoint5']||(f['defPoint5']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint5']['x']=parseFloat(g['value']);break;case 0x1a:f['defPoint5']||(f['defPoint5']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint5']['y']=parseFloat(g['value']);break;case 0x24:f[bF(0x1e2)]||(f['defPoint5']={'x':0x0,'y':0x0,'z':0x0}),f['defPoint5']['z']=parseFloat(g['value']);break;case 0x28:f['leaderLength']=parseFloat(g[bF(0x211)]);break;case 0x32:f['rotation']=parseFloat(g['value']);break;case 0x35:f['textRotation']=parseFloat(g['value']);break;case 0x46:f['dimType']=parseInt(g['value'],0xa);break;}return f;}function mt(c){const bG=aT,d=E(c),f=w(P({},d),{'type':'HATCH','patternName':'','solidFill':!0x0,'associative':!0x1,'hatchStyle':0x0,'patternType':0x1,'patternAngle':0x0,'patternScale':0x1,'boundaryPaths':[]});let g=0x0;for(;g<c['length'];){const h=c[g];switch(h['code']){case 0x2:f['patternName']=h['value'];break;case 0x29:f['patternScale']=parseFloat(h['value']);break;case 0x34:f[bG(0x121)]=parseFloat(h['value']);break;case 0x46:f['solidFill']=h['value']==='1';break;case 0x47:f['associative']=h['value']==='1';break;case 0x4b:f['hatchStyle']=parseInt(h[bG(0x211)],0xa);break;case 0x4c:f[bG(0x140)]=parseInt(h['value'],0xa);break;case 0x5b:{const k=parseInt(h['value'],0xa);g++;for(let l=0x0;l<k&&g<c[bG(0x202)];l++){const m=bt(c,g);f['boundaryPaths'][bG(0x223)](m['path']),g=m['nextIndex'];}continue;}}g++;}return f;}function bt(c,d){let f=0x0;return d<c['length']&&c[d]['code']===0x5c&&(f=parseInt(c[d]['value'],0xa),d++),(f&0x2)!==0x0?gt(c,d,f):vt(c,d,f);}function gt(c,d,f){const bH=aT,g={'type':'polyline','vertices':[],'bulges':[],'flags':f};let h=!0x1;d<c[bH(0x202)]&&c[d]['code']===0x48&&(h=c[d]['value']==='1',d++),d<c['length']&&c[d]['code']===0x49&&(g['isClosed']=c[d]['value']==='1',d++);let k=0x0;d<c['length']&&c[d][bH(0x115)]===0x5d&&(k=parseInt(c[d]['value'],0xa),d++);for(let l=0x0;l<k&&d<c['length'];l++){const m={'x':0x0,'y':0x0};c[d]['code']===0xa&&(m['x']=parseFloat(c[d][bH(0x211)]),d++),d<c['length']&&c[d]['code']===0x14&&(m['y']=parseFloat(c[d][bH(0x211)]),d++),g[bH(0x16f)]['push'](m),h&&d<c['length']&&c[d]['code']===0x2a?(g['bulges'][bH(0x223)](parseFloat(c[d]['value'])),d++):h&&g['bulges'][bH(0x223)](0x0);}for(;d<c['length']&&(c[d]['code']===0x61||c[d]['code']===0x14a);)if(c[d]['code']===0x61){const u=parseInt(c[d]['value'],0xa);d++;for(let v=0x0;v<u&&d<c['length']&&c[d]['code']===0x14a;v++)d++;}else d++;return{'path':g,'nextIndex':d};}function vt(f,g,k){const bI=aT,v={'type':'edges','edges':[],'flags':k};let x=0x0;g<f['length']&&f[g]['code']===0x5d&&(x=parseInt(f[g]['value'],0xa),g++);for(let y=0x0;y<x&&g<f['length']&&f[g]['code']===0x48;y++){const A=parseInt(f[g]['value'],0xa);switch(g++,A){case 0x1:{const C={'type':bI(0x225),'start':{'x':0x0,'y':0x0},'end':{'x':0x0,'y':0x0}};g<f[bI(0x202)]&&f[g][bI(0x115)]===0xa&&(C['start']['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g][bI(0x115)]===0x14&&(C['start']['y']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0xb&&(C['end']['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0x15&&(C['end']['y']=parseFloat(f[g]['value']),g++),v[bI(0x173)]['push'](C);break;}case 0x2:{const D={'type':'arc','center':{'x':0x0,'y':0x0},'radius':0x0,'startAngle':0x0,'endAngle':0x168,'ccw':!0x0};g<f['length']&&f[g]['code']===0xa&&(D['center']['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g][bI(0x115)]===0x14&&(D['center']['y']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0x28&&(D['radius']=parseFloat(f[g][bI(0x211)]),g++),g<f['length']&&f[g]['code']===0x32&&(D['startAngle']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0x33&&(D['endAngle']=parseFloat(f[g][bI(0x211)]),g++),g<f['length']&&f[g]['code']===0x49&&(D['ccw']=f[g]['value']==='1',g++),v[bI(0x173)]['push'](D);break;}case 0x3:{const F={'type':'ellipse','center':{'x':0x0,'y':0x0},'majorAxis':{'x':0x1,'y':0x0},'minorRatio':0x1,'startAngle':0x0,'endAngle':Math['PI']*0x2,'ccw':!0x0};g<f['length']&&f[g][bI(0x115)]===0xa&&(F['center']['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0x14&&(F[bI(0x18f)]['y']=parseFloat(f[g][bI(0x211)]),g++),g<f['length']&&f[g]['code']===0xb&&(F['majorAxis']['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g][bI(0x115)]===0x15&&(F['majorAxis']['y']=parseFloat(f[g]['value']),g++),g<f[bI(0x202)]&&f[g][bI(0x115)]===0x28&&(F['minorRatio']=parseFloat(f[g]['value']),g++),g<f[bI(0x202)]&&f[g]['code']===0x32&&(F[bI(0x192)]=parseFloat(f[g][bI(0x211)]),g++),g<f['length']&&f[g]['code']===0x33&&(F[bI(0x141)]=parseFloat(f[g]['value']),g++),g<f['length']&&f[g][bI(0x115)]===0x49&&(F['ccw']=f[g]['value']==='1',g++),v[bI(0x173)]['push'](F);break;}case 0x4:{let I=0x3;const L=[],N=[];g<f['length']&&f[g]['code']===0x5e&&(I=parseInt(f[g]['value'],0xa),g++),g<f['length']&&f[g]['code']===0x49&&g++,g<f['length']&&f[g]['code']===0x4a&&g++;let O=0x0;g<f['length']&&f[g]['code']===0x5f&&(O=parseInt(f[g]['value'],0xa),g++);let R=0x0;g<f[bI(0x202)]&&f[g]['code']===0x60&&(R=parseInt(f[g]['value'],0xa),g++);for(let S=0x0;S<O&&g<f['length']&&f[g]['code']===0x28;S++)L['push'](parseFloat(f[g]['value'])),g++;for(let W=0x0;W<R&&g<f[bI(0x202)];W++){const Y={'x':0x0,'y':0x0};f[g]['code']===0xa&&(Y['x']=parseFloat(f[g]['value']),g++),g<f['length']&&f[g]['code']===0x14&&(Y['y']=parseFloat(f[g]['value']),g++),N[bI(0x223)](Y);}v['edges']['push']({'type':'spline','degree':I,'knots':L,'controlPoints':N});break;}}}for(;g<f['length']&&(f[g]['code']===0x61||f[g][bI(0x115)]===0x14a);)if(f[g]['code']===0x61){const a0=parseInt(f[g]['value'],0xa);g++;for(let a1=0x0;a1<a0&&g<f[bI(0x202)]&&f[g]['code']===0x14a;a1++)g++;}else g++;return{'path':v,'nextIndex':g};}function Ft(c){const bJ=aT,d=E(c),f=w(P({},d),{'type':bJ(0x24f),'position':{'x':0x0,'y':0x0,'z':0x0}});for(const g of c)switch(g['code']){case 0xa:f['position']['x']=parseFloat(g['value']);break;case 0x14:f[bJ(0x209)]['y']=parseFloat(g['value']);break;case 0x1e:f['position']['z']=parseFloat(g['value']);break;}return f;}function Ce(c,d,f){const bK=aT;for(;d<c['length'];){const g=c[d];if(g['code']!==0x0){d++;continue;}const h=g['value'];if(h===bK(0x106)||h==='ENDBLK')return d+0x1;d++;const i=[];for(;d<c[bK(0x202)]&&c[d]['code']!==0x0;)i[bK(0x223)](c[d]),d++;switch(h){case'LINE':f['push'](rt(i));break;case'CIRCLE':f['push'](st(i));break;case'ARC':f['push'](ot(i));break;case bK(0x1ae):f['push'](it(i));break;case bK(0x160):f['push'](ct(i));break;case'SPLINE':f[bK(0x223)](ht(i));break;case'TEXT':f['push'](ut(i));break;case bK(0xed):f['push'](dt(i));break;case bK(0x1a1):{const k=ft(i);i['some'](m=>m[bK(0x115)]===0x42&&m['value']==='1')&&(d=kt(c,d,k['attribs'])),f['push'](k);break;}case bK(0x227):f['push'](pt(i));break;case bK(0xf3):f['push'](mt(i));break;case'POINT':f['push'](Ft(i));break;case bK(0x15a):{const l=lt(i);d=xt(c,d,l['vertices']),f['push'](l);break;}}}return d;}function xt(c,d,f){const bL=aT;for(;d<c['length'];){if(c[d]['code']!==0x0){d++;continue;}const g=c[d][bL(0x211)];if(g===bL(0x1f5))return d+0x1;if(g==='ENDSEC'||g==='ENDBLK')return d;if(g==='VERTEX'){d++;const h={'x':0x0,'y':0x0,'bulge':0x0,'startWidth':0x0,'endWidth':0x0};for(;d<c['length']&&c[d]['code']!==0x0;){const i=c[d];switch(i['code']){case 0xa:h['x']=parseFloat(i['value']);break;case 0x14:h['y']=parseFloat(i['value']);break;case 0x2a:h['bulge']=parseFloat(i['value']);break;case 0x28:h[bL(0x199)]=parseFloat(i['value']);break;case 0x29:h['endWidth']=parseFloat(i['value']);break;}d++;}f['push'](h);}else{for(d++;d<c['length']&&c[d][bL(0x115)]!==0x0;)d++;}}return d;}function kt(c,d,f){const bM=aT;for(;d<c['length'];){if(c[d]['code']!==0x0){d++;continue;}const g=c[d]['value'];if(g==='SEQEND')return d+0x1;if(g===bM(0x106)||g==='ENDBLK')return d;if(g===bM(0x195)){d++;const h={'tag':'','text':'','insertionPoint':{'x':0x0,'y':0x0,'z':0x0},'height':0x1,'rotation':0x0,'style':'STANDARD','layer':'0','color':0x100};for(;d<c['length']&&c[d]['code']!==0x0;){const i=c[d];switch(i[bM(0x115)]){case 0x1:h['text']=i[bM(0x211)];break;case 0x2:h['tag']=i['value'];break;case 0x7:h[bM(0x16d)]=i['value'];break;case 0x8:h['layer']=i[bM(0x211)];break;case 0xa:h['insertionPoint']['x']=parseFloat(i['value']);break;case 0x14:h['insertionPoint']['y']=parseFloat(i['value']);break;case 0x1e:h['insertionPoint']['z']=parseFloat(i['value']);break;case 0x28:h['height']=parseFloat(i[bM(0x211)]);break;case 0x32:h['rotation']=parseFloat(i[bM(0x211)]);break;case 0x3e:h['color']=parseInt(i['value'],0xa);break;}d++;}f['push'](h);}else{for(d++;d<c['length']&&c[d]['code']!==0x0;)d++;}}return d;}function yt(c,d,f){const bN=aT;for(;d<c['length'];){const g=c[d];if(g['code']===0x0&&g[bN(0x211)]==='ENDSEC')return d+0x1;if(g['code']===0x0&&g['value']==='BLOCK'){d++;const h={'name':'','basePoint':{'x':0x0,'y':0x0,'z':0x0},'entities':[],'flags':0x0};for(;d<c['length']&&c[d][bN(0x115)]!==0x0;){const i=c[d];switch(i['code']){case 0x2:h['name']=i['value'];break;case 0x8:break;case 0xa:h['basePoint']['x']=parseFloat(i[bN(0x211)]);break;case 0x14:h['basePoint']['y']=parseFloat(i['value']);break;case 0x1e:h['basePoint']['z']=parseFloat(i['value']);break;case 0x46:h['flags']=parseInt(i['value'],0xa);break;}d++;}d=Ce(c,d,h['entities']),h[bN(0x19e)]&&!h['name']['startsWith'](bN(0x1c5))&&!h['name']['startsWith']('*Paper_Space')&&f[bN(0x183)](h['name'],h);}else d++;}return d;}var ke='AutoCAD\x20Binary\x20DXF',Pt={'ANSI_874':'windows-874','ANSI_932':'shift_jis','ANSI_936':'gbk','ANSI_949':'euc-kr','ANSI_950':aT(0x222),'ANSI_1250':'windows-1250','ANSI_1251':'windows-1251','ANSI_1252':'windows-1252','ANSI_1253':'windows-1253','ANSI_1254':'windows-1254','ANSI_1255':'windows-1255','ANSI_1256':aT(0x1b4),'ANSI_1257':'windows-1257','ANSI_1258':aT(0x179)},wt=aT(0x131);function It(){return{'acadVersion':'','insUnits':0x0,'measurement':0x0,'ltScale':0x1};}function ye(c){const bO=aT;return c[bO(0x135)](/\\U\+([0-9A-Fa-f]{4})/g,(d,f)=>String['fromCodePoint'](parseInt(f,0x10)));}function Tt(d){const bP=aT;var f,g,k;if(typeof d=='string')return ye(d);const m=new Uint8Array(d);if(new TextDecoder('ascii')[bP(0x16e)](m['slice'](0x0,ke['length']))===ke)throw new B(bP(0x214));let v=new TextDecoder('utf-8')['decode'](d);const x=v['match'](/\$ACADVER[\s\S]*?\n\s*1\s*\n\s*(\S+)/),y=(f=x==null?void 0x0:x[0x1])!=null?f:'';if(y&&y<wt){const A=v['match'](/\$DWGCODEPAGE[\s\S]*?\n\s*3\s*\n\s*(\S+)/),C=(g=A==null?void 0x0:A[0x1])!=null?g:'',D=(k=Pt[C])!=null?k:'windows-1252';D!==bP(0x17e)&&(v=new TextDecoder(D)[bP(0x16e)](d));}return ye(v);}function Mt(c,d){for(;d<c['length'];){if(c[d]['code']===0x0&&c[d]['value']==='ENDSEC')return d+0x1;d++;}return d;}function Et(c){c['layers']['has']('0')||c['layers']['set']('0',{'name':'0','color':0x7,'lineType':'Continuous','flags':0x0,'lineWeight':-0x3,'isOff':!0x1,'isFrozen':!0x1,'isLocked':!0x1});}function At(c){const bQ=aT;for(const [,d]of c['layers'])d['isOff']=d['color']<0x0,d['isOff']&&(d['color']=Math['abs'](d['color'])),d['isFrozen']=(d['flags']&0x1)!==0x0,d[bQ(0x14c)]=(d[bQ(0x148)]&0x4)!==0x0;}var B=class extends Error{constructor(c,d){const bR=aT;super(c),this[bR(0x22d)]=d,this['name']='DxfParseError';}};function le(c){const bS=aT;if(typeof c=='string'){if(c['length']===0x0)throw new B('Input\x20is\x20empty.\x20Expected\x20a\x20DXF\x20string\x20or\x20ArrayBuffer.');}else{if(c instanceof ArrayBuffer){if(c['byteLength']===0x0)throw new B('Input\x20ArrayBuffer\x20is\x20empty.');}else throw new B('Invalid\x20input\x20type.\x20Expected\x20a\x20string\x20or\x20ArrayBuffer.');}let d;try{d=Tt(c);}catch(h){throw h instanceof B?h:new B('Failed\x20to\x20decode\x20DXF\x20input.',h);}let f;try{f=Ke(d);}catch(i){throw new B(bS(0x1c1),i);}if(f[bS(0x202)]===0x0)throw new B(bS(0x254));const g={'header':It(),'layers':new Map(),'lineTypes':new Map(),'styles':new Map(),'blocks':new Map(),'entities':[]};try{let k=0x0;for(;k<f['length'];){const l=f[k];if(l['code']===0x0&&l['value']==='SECTION'){if(k++,k>=f['length'])break;const m=f[k][bS(0x211)];switch(k++,m){case'HEADER':k=Qe(f,k,g[bS(0x165)]);break;case'TABLES':k=Je(f,k,g);break;case'BLOCKS':k=yt(f,k,g['blocks']);break;case'ENTITIES':k=Ce(f,k,g['entities']);break;default:k=Mt(f,k);break;}}else{if(l['code']===0x0&&l['value']==='EOF')break;k++;}}}catch(u){throw new B('Failed\x20to\x20parse\x20DXF\x20sections.',u);}return Et(g),At(g),g;}var St=['#000000','#FF0000','#FFFF00','#00FF00','#00FFFF','#0000FF',aT(0x11e),aT(0x15c),aT(0x170),'#C0C0C0','#FF0000','#FF7F7F','#A50000','#A55252','#7F0000','#7F3F3F','#4C0000','#4C2626','#260000','#261313','#FF3F00','#FF9F7F',aT(0x231),'#A56752',aT(0x120),aT(0x239),'#4C1300','#4C2F26','#260900','#261713','#FF7F00','#FFBF7F',aT(0x17d),'#A57C52','#7F3F00',aT(0x188),'#4C2600',aT(0x124),'#261300',aT(0x216),aT(0x218),aT(0x1a4),'#A57C00','#A59152','#7F5F00','#7F6F3F','#4C3900','#4C4226','#261C00','#262113','#FFFF00',aT(0x186),'#A5A500','#A5A552','#7F7F00','#7F7F3F','#4C4C00','#4C4C26','#262600','#262613',aT(0x21b),'#DFFF7F','#7CA500',aT(0x245),'#5F7F00','#6F7F3F','#394C00','#424C26','#1C2600','#212613',aT(0x130),'#BFFF7F',aT(0x146),'#7CA552','#3F7F00','#5F7F3F',aT(0x15f),'#394C26','#132600','#1C2613','#3FFF00','#9FFF7F',aT(0x1f4),'#67A552',aT(0x1f9),'#4F7F3F',aT(0x117),'#2F4C26','#092600','#172613','#00FF00',aT(0x23b),'#00A500','#52A552','#007F00','#3F7F3F',aT(0x252),'#264C26',aT(0x1fb),'#132613','#00FF3F','#7FFF9F','#00A529','#52A567','#007F1F','#3F7F4F','#004C13','#264C2F','#002609',aT(0x215),'#00FF7F','#7FFFBF','#00A552','#52A57C',aT(0x126),'#3F7F5F','#004C26',aT(0x22c),'#002613','#13261C','#00FFBF','#7FFFDF','#00A57C','#52A591','#007F5F','#3F7F6F','#004C39','#264C42','#00261C',aT(0x1ee),'#00FFFF','#7FFFFF','#00A5A5','#52A5A5','#007F7F','#3F7F7F','#004C4C','#264C4C','#002626','#132626','#00BFFF',aT(0x147),'#007CA5',aT(0xf5),'#005F7F','#3F6F7F',aT(0x11a),'#26424C','#001C26','#132126','#007FFF','#7FBFFF','#0052A5','#527CA5',aT(0x128),aT(0x14b),aT(0x11d),'#26394C','#001326','#131C26','#003FFF',aT(0x184),'#0029A5','#5267A5','#001F7F',aT(0x13b),'#00134C','#262F4C','#000926','#131726','#0000FF','#7F7FFF','#0000A5','#5252A5','#00007F','#3F3F7F',aT(0x14a),aT(0x125),'#000026','#131326','#3F00FF','#9F7FFF','#2900A5','#6752A5',aT(0xf6),'#4F3F7F','#13004C','#2F264C','#090026','#171326','#7F00FF','#BF7FFF','#5200A5',aT(0x194),'#3F007F','#5F3F7F','#26004C','#39264C',aT(0x13e),'#1C1326','#BF00FF','#DF7FFF','#7C00A5','#9152A5','#5F007F','#6F3F7F',aT(0x13f),'#42264C','#1C0026',aT(0x149),aT(0x11e),'#FF7FFF','#A500A5','#A552A5','#7F007F','#7F3F7F','#4C004C','#4C264C','#260026','#261326',aT(0x178),'#FF7FDF','#A5007C','#A55291',aT(0x110),'#7F3F6F','#4C0039',aT(0xef),aT(0x118),'#261321','#FF007F',aT(0x1ed),'#A50052','#A5527C','#7F003F','#7F3F5F','#4C0026','#4C2639',aT(0x20f),'#26131C','#FF003F','#FF7F9F','#A50029','#A55267','#7F001F','#7F3F4F','#4C0013','#4C262F',aT(0x247),'#261317','#333333','#505050','#696969','#828282','#BEBEBE',aT(0x15c)];function Ct(c){if(!(c===0x0||c===0x100)&&!(c<0x0||c>0xff))return St[c];}var X={'dark':{'backgroundColor':'#1a1a2e','defaultEntityColor':'#ffffff','selectionColor':'#00ff88','measureColor':'#ffaa00','gridColor':'#333333','crosshairColor':aT(0x1b9)},'light':{'backgroundColor':'#ffffff','defaultEntityColor':'#000000','selectionColor':'#0066ff','measureColor':aT(0x22f),'gridColor':'#dddddd','crosshairColor':'#cccccc'}};function U(c,d,f){const bT=aT;return[d*c['scale']+c['offsetX'],-f*c[bT(0x18c)]+c['offsetY']];}function K(c,d,f){return[(d-c['offsetX'])/c['scale'],-(f-c['offsetY'])/c['scale']];}function Pe(c,d){const bU=aT,f=window['devicePixelRatio']||0x1;c['setTransform'](d['scale']*f,0x0,0x0,-d['scale']*f,d[bU(0x1f8)]*f,d['offsetY']*f);}function Dt(g,k,v,x,y,A,C=0.05){const D=y-v,F=A-x;if(D<=0x0||F<=0x0)return{'scale':0x1,'offsetX':g/0x2,'offsetY':k/0x2};const I=g/D,L=k/F,N=Math['min'](I,L)*(0x1-C*0x2),O=(v+y)/0x2,R=(x+A)/0x2,S=g/0x2-O*N,W=k/0x2+R*N;return{'scale':N,'offsetX':S,'offsetY':W};}function Lt(c,d,f,g,h=0.0001,k=0x186a0){const l=Math['max'](h,Math['min'](k,c['scale']*g)),m=l/c['scale'];return{'scale':l,'offsetX':d-(d-c['offsetX'])*m,'offsetY':f-(f-c['offsetY'])*m};}var Nt=class{constructor(c){const bV=aT;p(this,bV(0x1bb),{'scale':0x1,'offsetX':0x0,'offsetY':0x0}),p(this,'minScale'),p(this,'maxScale'),(this['minScale']=c['minZoom'],this['maxScale']=c['maxZoom']);}[aT(0x12e)](){const bW=aT;return this[bW(0x1bb)];}['setTransform'](c){this['transform']=c;}['pan'](c,d){const bX=aT;this['transform']=w(P({},this['transform']),{'offsetX':this['transform']['offsetX']+c,'offsetY':this[bX(0x1bb)]['offsetY']+d});}[aT(0x1c9)](c,d,f){const bY=aT;this['transform']=Lt(this[bY(0x1bb)],c,d,f,this['minScale'],this['maxScale']);}};function we(c,d){const bZ=aT;var f;return c===0x7?d==='dark'?'#ffffff':bZ(0x23a):(f=Ct(c))!=null?f:'#ffffff';}function ue(c,d,f,g){const c0=aT;if(c[c0(0x19d)]!==void 0x0){const k=c['trueColor']>>0x10&0xff,m=c['trueColor']>>0x8&0xff,u=c['trueColor']&0xff;return'rgb('+k+','+m+','+u+')';}if(c['color']===0x0)return g!=null?g:X[f]['defaultEntityColor'];if(c['color']!==0x100)return we(c[c0(0x1f7)],f);const h=d['get'](c['layer']);if(h){if(h[c0(0x19d)]!==void 0x0){const x=h['trueColor']>>0x10&0xff,y=h['trueColor']>>0x8&0xff,A=h['trueColor']&0xff;return'rgb('+x+','+y+','+A+')';}const v=Math[c0(0x12f)](h['color']);return we(v,f);}return X[f]['defaultEntityColor'];}function Bt(c,d){c['beginPath'](),c['moveTo'](d['start']['x'],d['start']['y']),c['lineTo'](d['end']['x'],d['end']['y']),c['stroke']();}function Xt(c,d){const c1=aT;d[c1(0x217)]<=0x0||(c['beginPath'](),c['arc'](d['center']['x'],d['center']['y'],d['radius'],0x0,Math['PI']*0x2),c[c1(0x255)]());}function Yt(c,d){const c2=aT;if(d['radius']<=0x0)return;const f=d['startAngle']*Math['PI']/0xb4,g=d['endAngle']*Math['PI']/0xb4;c[c2(0x156)](),c['arc'](d['center']['x'],d['center']['y'],d['radius'],f,g,!0x1),c['stroke']();}function zt(k,A,C,D,I){const L=C-k,N=D-A,O=Math['sqrt'](L*L+N*N);if(O<1e-10)return{'cx':k,'cy':A,'radius':0x0,'startAngle':0x0,'endAngle':0x0,'anticlockwise':!0x1};const R=Math['abs'](I)*O/0x2,S=(T(O/0x2,0x2)+T(R,0x2))/(0x2*R),W=(k+C)/0x2,Y=(A+D)/0x2,a0=-N/O,a1=L/O,a2=S-R,a3=I>0x0?0x1:-0x1,a4=W+a3*a2*a0,a5=Y+a3*a2*a1,a6=Math['atan2'](A-a5,k-a4),a7=Math['atan2'](D-a5,C-a4),a8=I<0x0;return{'cx':a4,'cy':a5,'radius':S,'startAngle':a6,'endAngle':a7,'anticlockwise':a8};}function Q(c,d,f,g,h,i){const k=zt(d,f,g,h,i);if(k['radius']<1e-10){c['lineTo'](g,h);return;}c['arc'](k['cx'],k['cy'],k['radius'],k['startAngle'],k['endAngle'],k['anticlockwise']);}function Rt(c,d){const c3=aT,f=d['vertices'];if(f['length']<0x2)return;c[c3(0x156)](),c['moveTo'](f[0x0]['x'],f[0x0]['y']);const g=d['closed']?f['length']:f['length']-0x1;for(let h=0x0;h<g;h++){const i=f[h],k=f[(h+0x1)%f['length']];Math['abs'](i[c3(0x193)])<1e-10?c['lineTo'](k['x'],k['y']):Q(c,i['x'],i['y'],k['x'],k['y'],i['bulge']);}c['stroke']();}function Ot(c,d){var f;const g=d['vertices'];if(g['length']<0x2)return;c['beginPath'](),c['moveTo'](g[0x0]['x'],g[0x0]['y']);const h=d['closed']?g['length']:g['length']-0x1;for(let k=0x0;k<h;k++){const m=g[k],u=g[(k+0x1)%g['length']],v=(f=m['bulge'])!=null?f:0x0;Math['abs'](v)<1e-10?c['lineTo'](u['x'],u['y']):Q(c,m['x'],m['y'],u['x'],u['y'],v);}c['stroke']();}function _t(c,d){const c4=aT,f=Math['sqrt'](T(d['majorAxis']['x'],0x2)+T(d['majorAxis']['y'],0x2)+T(d[c4(0x155)]['z'],0x2));if(f<1e-10||d['minorRatio']<=0x0)return;const g=f*d['minorRatio'],h=Math['atan2'](d[c4(0x155)]['y'],d['majorAxis']['x']);c['beginPath'](),c['ellipse'](d['center']['x'],d['center']['y'],f,g,h,d['startParam'],d['endParam'],!0x1),c['stroke']();}function Wt(k,y,A,C,D){const c5=aT;var I;const L=y['length']-0x1;let N=k;for(;N<L&&A[N+0x1]<=C;)N++;const O=[],R=[];for(let S=0x0;S<=k;S++){const W=N-k+S;O['push'](P({},y[W])),R['push'](D?D[W]:0x1);}for(let Y=0x1;Y<=k;Y++)for(let a0=k;a0>=Y;a0--){const a1=N-k+a0,a2=A[a1+k-Y+0x1]-A[a1];if(Math['abs'](a2)<1e-10)continue;const a3=(C-A[a1])/a2,a4=O[a0],a5=O[a0-0x1];if(D){const a6=R[a0-0x1]*(0x1-a3),a7=R[a0]*a3,a8=a6+a7;if(Math[c5(0x12f)](a8)<1e-10)continue;a4['x']=(a5['x']*a6+a4['x']*a7)/a8,a4['y']=(a5['y']*a6+a4['y']*a7)/a8,a4['z']=(a5['z']*a6+a4['z']*a7)/a8,R[a0]=a8;}else a4['x']=(0x1-a3)*a5['x']+a3*a4['x'],a4['y']=(0x1-a3)*a5['y']+a3*a4['y'],a4['z']=(0x1-a3)*a5['z']+a3*a4['z'];}return(I=O[k])!=null?I:{'x':0x0,'y':0x0,'z':0x0};}function $t(f){const c6=aT;if(f['length']<0x2)return f['map'](x=>({'x':x['x'],'y':x['y']}));const g=[],k=f[c6(0x202)],v=0xa;for(let x=0x0;x<k-0x1;x++){const y=f[Math['max'](0x0,x-0x1)],A=f[x],C=f[Math['min'](k-0x1,x+0x1)],D=f[Math['min'](k-0x1,x+0x2)];for(let F=0x0;F<=(x===k-0x2?v:v-0x1);F++){const I=F/v,L=I*I,N=L*I,O=0.5*(0x2*A['x']+(-y['x']+C['x'])*I+(0x2*y['x']-0x5*A['x']+0x4*C['x']-D['x'])*L+(-y['x']+0x3*A['x']-0x3*C['x']+D['x'])*N),R=0.5*(0x2*A['y']+(-y['y']+C['y'])*I+(0x2*y['y']-0x5*A['y']+0x4*C['y']-D['y'])*L+(-y['y']+0x3*A['y']-0x3*C['y']+D['y'])*N);g['push']({'x':O,'y':R});}}return g;}function De(d,f){const c7=aT;if(d['degree']===0x1)return d['controlPoints'][c7(0x1f0)](y=>({'x':y['x'],'y':y['y']}));if(d['controlPoints']['length']===0x0&&d['fitPoints']['length']>=0x2)return $t(d['fitPoints']);if(d[c7(0x208)]['length']<d['degree']+0x1)return[];if(d['knots']['length']<d['controlPoints']['length']+d['degree']+0x1)return[];const g=[],k=d['knots'][d[c7(0x168)]],m=d['knots'][d['knots']['length']-d['degree']-0x1];if(m<=k)return[];const u=Math['max'](d['controlPoints']['length']*0xa,Math['ceil']((m-k)/f)),v=Math['min'](u,0x1388),x=d['weights']['length']>0x0?d['weights']:void 0x0;for(let y=0x0;y<=v;y++){const A=k+(m-k)*(y/v),C=Wt(d['degree'],d['controlPoints'],d['knots'],A,x);g['push']({'x':C['x'],'y':C['y']});}return g;}function jt(c,d,f){const c8=aT,g=De(d,f);if(!(g['length']<0x2)){c['beginPath'](),c['moveTo'](g[0x0]['x'],g[0x0]['y']);for(let h=0x1;h<g['length'];h++)c['lineTo'](g[h]['x'],g[h]['y']);d['flags']&0x1&&c['closePath'](),c[c8(0x255)]();}}var qt={'standard':'Arial,\x20sans-serif','arial':'Arial,\x20sans-serif','arial.ttf':aT(0x1ad),'romans.shx':'\x22Courier\x20New\x22,\x20monospace','simplex.shx':'\x22Courier\x20New\x22,\x20monospace','txt.shx':'monospace','monotxt.shx':'monospace','isocp.shx':'\x22Courier\x20New\x22,\x20monospace','isocpeur.shx':'\x22Courier\x20New\x22,\x20monospace','times.ttf':'\x22Times\x20New\x20Roman\x22,\x20serif','timesnr.ttf':'\x22Times\x20New\x20Roman\x22,\x20serif','gothic.ttf':'\x22Century\x20Gothic\x22,\x20sans-serif'};function Le(c){const d=c['toLowerCase']()['trim']();return qt[d]||'sans-serif';}function Ht(c,d,f){const c9=aT;if(!d[c9(0x143)]||d['height']<f*0x4)return;const g=d['hAlign']!==0x0||d['vAlign']!==0x0,k=g&&d[c9(0x201)]?d['alignmentPoint']['x']:d['insertionPoint']['x'],m=g&&d['alignmentPoint']?d[c9(0x201)]['y']:d[c9(0x228)]['y'];if(c[c9(0x150)](),c['translate'](k,m),c['scale'](0x1,-0x1),d['rotation']&&c[c9(0x19c)](-d[c9(0x129)]*Math['PI']/0xb4),d['widthFactor']!==0x1&&c['scale'](d['widthFactor'],0x1),d['obliqueAngle']){const y=Math['tan'](d[c9(0x21d)]*Math['PI']/0xb4);c[c9(0x1bb)](0x1,0x0,y,0x1,0x0,0x0);}const u=(d['generationFlags']&0x2)!==0x0,v=(d['generationFlags']&0x4)!==0x0;u&&c['scale'](-0x1,0x1),v&&c['scale'](0x1,-0x1);const x=Le(d['style']||'Standard');switch(c['font']=d['height']+'px\x20'+x,d['hAlign']){case 0x0:c['textAlign']='left';break;case 0x1:c['textAlign']='center';break;case 0x2:c['textAlign']=c9(0x13a);break;case 0x3:c['textAlign']='left';break;case 0x4:c['textAlign']=c9(0x18f);break;case 0x5:c[c9(0x24c)]=c9(0x21e);break;default:c['textAlign']=c9(0x21e);}switch(d['vAlign']){case 0x0:c['textBaseline']='alphabetic';break;case 0x1:c['textBaseline']='bottom';break;case 0x2:c['textBaseline']='middle';break;case 0x3:c[c9(0x164)]=c9(0x203);break;default:c['textBaseline']='alphabetic';}c['fillText'](d['text'],0x0,0x0),c['restore']();}function Vt(c){const cb=aT;return c['replace'](/\\P/g,'\x0a')['replace'](/\\[fFHWQTCAaLlOoKk][^;]*;/g,'')['replace'](/\\\\/g,'\x5c')['replace'](/\\~/g,'\u00a0')[cb(0x135)](/\{/g,'')['replace'](/\}/g,'')['replace'](/\\S[^;]*;/g,'')['trim']();}function Ut(f,g,k){const cc=aT;var r;if(!g['text']||g['height']<k*0x4)return;f['save'](),f['translate'](g['insertionPoint']['x'],g[cc(0x228)]['y']),f['scale'](0x1,-0x1);const v=g['textDirection']?Math['atan2'](g['textDirection']['y'],g['textDirection']['x']):(g['rotation']||0x0)*Math['PI']/0xb4;v&&f['rotate'](-v);const x=Vt(g[cc(0x143)])['split']('\x0a'),y=g[cc(0xff)]*(g['lineSpacingFactor']||1.4),A=Le(g['style']||'Standard');f[cc(0x16b)]=g['height']+'px\x20'+A;const C=(g['attachmentPoint']-0x1)%0x3,D=Math['floor']((g[cc(0x1d3)]-0x1)/0x3),F=['left','center','right'];f['textAlign']=(r=F[C])!=null?r:'left';let I=0x0;const L=x['length']*y;switch(D){case 0x0:I=g['height'];break;case 0x1:I=g['height']-L/0x2;break;case 0x2:I=g[cc(0xff)]-L;break;}for(let N=0x0;N<x['length'];N++)f['fillText'](x[N],0x0,I+N*y);f[cc(0x23e)]();}var Gt=0x64;function Zt(f,g,k,m=0x0){if(m>Gt)return null;if(k['has'](f))return k['get'](f);const v=g['blocks']['get'](f);if(!v)return k['set'](f,null),null;k['set'](f,null);let x=0x1/0x0,y=0x1/0x0,A=-0x1/0x0,C=-0x1/0x0,D=!0x1;for(const I of v['entities']){let L;I['type']==='INSERT'?L=Ne(I,g,k,m+0x1):L=_(I),L&&(D=!0x0,x=Math['min'](x,L['minX']),y=Math['min'](y,L['minY']),A=Math['max'](A,L['maxX']),C=Math['max'](C,L['maxY']));}const F=D?{'minX':x,'minY':y,'maxX':A,'maxY':C}:null;return k['set'](f,F),F;}function Ne(a0,a1,a2,a3=0x0){const cd=aT,a4=Zt(a0[cd(0x122)],a1,a2,a3);if(!a4)return null;const a5=a1['blocks']['get'](a0['blockName']);if(!a5)return null;const a6=a5['basePoint']['x'],a7=a5['basePoint']['y'];let a8=a4['minX']-a6,a9=a4['minY']-a7,ab=a4['maxX']-a6,ac=a4[cd(0x111)]-a7;const ad=a0['scaleX'],af=a0[cd(0x1b8)];let ag=a8*ad,ah=ab*ad,ai=a9*af,aj=ac*af;if(ag>ah){const ax=ag;ag=ah,ah=ax;}if(ai>aj){const ay=ai;ai=aj,aj=ay;}const ak=(a0['rotation']||0x0)*Math['PI']/0xb4;if(Math['abs'](ak)<1e-10){const az=a0['insertionPoint']['x'],aA=a0['insertionPoint']['y'];let aB=ag+az,aC=ai+aA,aD=ah+az,aE=aj+aA;const aF=Math['max'](0x1,a0['columnCount']),aG=Math[cd(0x226)](0x1,a0['rowCount']);if(aF>0x1||aG>0x1){const aH=(aF-0x1)*a0['columnSpacing'],aI=(aG-0x1)*a0['rowSpacing'];aB=Math['min'](aB,aB+aH),aD=Math['max'](aD,aD+aH),aC=Math['min'](aC,aC+aI),aE=Math[cd(0x226)](aE,aE+aI);}return{'minX':aB,'minY':aC,'maxX':aD,'maxY':aE};}const al=Math['cos'](ak),am=Math['sin'](ak),an=[{'x':ag,'y':ai},{'x':ah,'y':ai},{'x':ah,'y':aj},{'x':ag,'y':aj}],ao=a0['insertionPoint']['x'],ap=a0['insertionPoint']['y'];let aq=0x1/0x0,ar=0x1/0x0,as=-0x1/0x0,au=-0x1/0x0;for(const aJ of an){const aK=aJ['x']*al-aJ['y']*am+ao,aL=aJ['x']*am+aJ['y']*al+ap;aq=Math['min'](aq,aK),ar=Math['min'](ar,aL),as=Math['max'](as,aK),au=Math['max'](au,aL);}const av=Math['max'](0x1,a0['columnCount']),aw=Math['max'](0x1,a0['rowCount']);if(av>0x1||aw>0x1){const aM=(av-0x1)*a0['columnSpacing'],aN=(aw-0x1)*a0['rowSpacing'],aO=[{'x':0x0,'y':0x0},{'x':aM,'y':0x0},{'x':aM,'y':aN},{'x':0x0,'y':aN}];for(const aP of aO){const aQ=aP['x']*al-aP['y']*am,aR=aP['x']*am+aP['y']*al;aq=Math['min'](aq,aq+aQ),ar=Math['min'](ar,ar+aR),as=Math['max'](as,as+aQ),au=Math['max'](au,au+aR);}}return{'minX':aq,'minY':ar,'maxX':as,'maxY':au};}function Kt(c,d){const cf=aT;let f=0x1/0x0,g=0x1/0x0,k=-0x1/0x0,m=-0x1/0x0,u=!0x1;const v=d?new Map():void 0x0;for(const x of c){const y=d&&v?Be(x,d,v):_(x);y&&(u=!0x0,f=Math[cf(0x159)](f,y['minX']),g=Math['min'](g,y['minY']),k=Math['max'](k,y['maxX']),m=Math['max'](m,y[cf(0x111)]));}return u?{'minX':f,'minY':g,'maxX':k,'maxY':m}:null;}function Be(c,d,f){return c['type']==='INSERT'?Ne(c,d,f):_(c);}var ne=null;function Qt(c){const cg=aT,d=new Map();for(const [f,g]of c['blocks']){const h=new Array(g['entities']['length']);for(let i=0x0;i<g['entities'][cg(0x202)];i++)h[i]=_(g['entities'][i]);d[cg(0x183)](f,h);}return d;}function Jt(c){ne=c;}function Ie(){ne=null;}function ea(c,d){if(!ne)return;const f=ne['get'](c);if(!(!f||d>=f['length']))return f[d];}function _(A){const ch=aT;var D,I,L,N,O,R,W,Y,a0,a1,a2,a3,a4,a5,a6,a7;switch(A['type']){case ch(0x1fe):return{'minX':Math['min'](A[ch(0x1e0)]['x'],A['end']['x']),'minY':Math['min'](A['start']['y'],A[ch(0x15e)]['y']),'maxX':Math['max'](A['start']['x'],A['end']['x']),'maxY':Math['max'](A['start']['y'],A[ch(0x15e)]['y'])};case'CIRCLE':return{'minX':A['center']['x']-A['radius'],'minY':A['center']['y']-A['radius'],'maxX':A['center']['x']+A['radius'],'maxY':A['center']['y']+A['radius']};case'ARC':return{'minX':A['center']['x']-A['radius'],'minY':A['center']['y']-A['radius'],'maxX':A['center']['x']+A['radius'],'maxY':A['center']['y']+A['radius']};case'LWPOLYLINE':case'POLYLINE':{if(A['vertices']['length']===0x0)return null;let a8=0x1/0x0,a9=0x1/0x0,ab=-0x1/0x0,ac=-0x1/0x0;for(const ad of A['vertices'])a8=Math['min'](a8,ad['x']),a9=Math[ch(0x159)](a9,ad['y']),ab=Math[ch(0x226)](ab,ad['x']),ac=Math['max'](ac,ad['y']);return{'minX':a8,'minY':a9,'maxX':ab,'maxY':ac};}case'ELLIPSE':{const af=Math['sqrt'](T(A[ch(0x155)]['x'],0x2)+T(A[ch(0x155)]['y'],0x2));return{'minX':A['center']['x']-af,'minY':A['center']['y']-af,'maxX':A['center']['x']+af,'maxY':A['center']['y']+af};}case'TEXT':return{'minX':A[ch(0x228)]['x'],'minY':A[ch(0x228)]['y'],'maxX':A['insertionPoint']['x']+A['height']*A['text']['length']*0.6,'maxY':A['insertionPoint']['y']+A['height']};case'MTEXT':return{'minX':A['insertionPoint']['x'],'minY':A['insertionPoint']['y']-A['height'],'maxX':A['insertionPoint']['x']+(A['width']||A['height']*0xa),'maxY':A[ch(0x228)]['y']+A['height']};case'SPLINE':{if(A['controlPoints']['length']===0x0)return null;let ag=0x1/0x0,ah=0x1/0x0,ai=-0x1/0x0,aj=-0x1/0x0;for(const ak of A['controlPoints'])ag=Math['min'](ag,ak['x']),ah=Math['min'](ah,ak['y']),ai=Math['max'](ai,ak['x']),aj=Math['max'](aj,ak['y']);return{'minX':ag,'minY':ah,'maxX':ai,'maxY':aj};}case'POINT':return{'minX':A['position']['x'],'minY':A['position']['y'],'maxX':A[ch(0x209)]['x'],'maxY':A[ch(0x209)]['y']};case'INSERT':return{'minX':A['insertionPoint']['x'],'minY':A['insertionPoint']['y'],'maxX':A[ch(0x228)]['x'],'maxY':A['insertionPoint']['y']};case'DIMENSION':return A['defPoint']?{'minX':Math['min'](A['defPoint']['x'],(I=(D=A['defPoint2'])==null?void 0x0:D['x'])!=null?I:A['defPoint']['x'],(N=(L=A[ch(0x103)])==null?void 0x0:L['x'])!=null?N:A['defPoint']['x']),'minY':Math['min'](A['defPoint']['y'],(R=(O=A[ch(0x212)])==null?void 0x0:O['y'])!=null?R:A['defPoint']['y'],(Y=(W=A['defPoint3'])==null?void 0x0:W['y'])!=null?Y:A[ch(0x16c)]['y']),'maxX':Math['max'](A[ch(0x16c)]['x'],(a1=(a0=A[ch(0x212)])==null?void 0x0:a0['x'])!=null?a1:A['defPoint']['x'],(a3=(a2=A['defPoint3'])==null?void 0x0:a2['x'])!=null?a3:A['defPoint']['x']),'maxY':Math[ch(0x226)](A['defPoint']['y'],(a5=(a4=A['defPoint2'])==null?void 0x0:a4['y'])!=null?a5:A['defPoint']['y'],(a7=(a6=A['defPoint3'])==null?void 0x0:a6['y'])!=null?a7:A['defPoint']['y'])}:null;case'HATCH':{let al=0x1/0x0,am=0x1/0x0,an=-0x1/0x0,ao=-0x1/0x0,ap=!0x1;for(const aq of A['boundaryPaths'])if(aq['vertices']){for(const ar of aq['vertices'])ap=!0x0,al=Math['min'](al,ar['x']),am=Math['min'](am,ar['y']),an=Math[ch(0x226)](an,ar['x']),ao=Math['max'](ao,ar['y']);}return ap?{'minX':al,'minY':am,'maxX':an,'maxY':ao}:null;}default:return null;}}var ta=new Set(['LINE',aT(0x133),'CIRCLE',aT(0x1ae),'POLYLINE','ELLIPSE','SPLINE']);function Xe(c){return ta['has'](c);}function aa(c,d){c['moveTo'](d['start']['x'],d['start']['y']),c['lineTo'](d['end']['x'],d['end']['y']);}function na(c,d){const ci=aT;if(d['radius']<=0x0)return;const f=d['startAngle']*Math['PI']/0xb4,g=d['endAngle']*Math['PI']/0xb4;c[ci(0x174)](d['center']['x']+d['radius']*Math['cos'](f),d['center']['y']+d['radius']*Math[ci(0x23d)](f)),c['arc'](d['center']['x'],d['center']['y'],d['radius'],f,g,!0x1);}function ra(c,d){const cj=aT;d[cj(0x217)]<=0x0||(c['moveTo'](d['center']['x']+d['radius'],d['center']['y']),c['arc'](d[cj(0x18f)]['x'],d[cj(0x18f)]['y'],d[cj(0x217)],0x0,Math['PI']*0x2));}function sa(c,d){const ck=aT,f=d[ck(0x16f)];if(f['length']<0x2)return;c['moveTo'](f[0x0]['x'],f[0x0]['y']);const g=d['closed']?f[ck(0x202)]:f['length']-0x1;for(let h=0x0;h<g;h++){const i=f[h],k=f[(h+0x1)%f[ck(0x202)]];Math['abs'](i['bulge'])<1e-10?c['lineTo'](k['x'],k['y']):Q(c,i['x'],i['y'],k['x'],k['y'],i[ck(0x193)]);}}function oa(c,d){const cl=aT;var f;const g=d[cl(0x16f)];if(g['length']<0x2)return;c['moveTo'](g[0x0]['x'],g[0x0]['y']);const h=d['closed']?g['length']:g['length']-0x1;for(let k=0x0;k<h;k++){const m=g[k],u=g[(k+0x1)%g['length']],v=(f=m['bulge'])!=null?f:0x0;Math['abs'](v)<1e-10?c['lineTo'](u['x'],u['y']):Q(c,m['x'],m['y'],u['x'],u['y'],v);}}function ia(c,d){const cm=aT,f=Math['sqrt'](T(d['majorAxis']['x'],0x2)+T(d['majorAxis']['y'],0x2)+T(d['majorAxis']['z'],0x2));if(f<1e-10||d['minorRatio']<=0x0)return;const g=f*d['minorRatio'],h=Math['atan2'](d['majorAxis']['y'],d['majorAxis']['x']),k=Math['cos'](h),m=Math['sin'](h),u=Math['cos'](d['startParam']),v=Math['sin'](d[cm(0x1aa)]);c['moveTo'](d['center']['x']+f*k*u-g*m*v,d['center']['y']+f*m*u+g*k*v),c['ellipse'](d['center']['x'],d['center']['y'],f,g,h,d['startParam'],d['endParam'],!0x1);}function la(c,d,f){const cn=aT,g=De(d,f);if(!(g['length']<0x2)){c[cn(0x174)](g[0x0]['x'],g[0x0]['y']);for(let h=0x1;h<g['length'];h++)c['lineTo'](g[h]['x'],g[h]['y']);d['flags']&0x1&&c['closePath']();}}function Ye(c,d,f){const co=aT;switch(d['type']){case'LINE':aa(c,d);break;case'ARC':na(c,d);break;case'CIRCLE':ra(c,d);break;case'LWPOLYLINE':sa(c,d);break;case'POLYLINE':oa(c,d);break;case co(0x160):ia(c,d);break;case'SPLINE':la(c,d,f);break;}}var ca=0x64,ha=0.5;function ze(I,L,N,O,R,W,Y=0x0,a0){const cp=aT;var a1;if(Y>ca)return;const a2=N['blocks']['get'](L[cp(0x122)]);if(!a2)return;const a3=Math['max'](0x1,L['columnCount']),a4=Math[cp(0x226)](0x1,L['rowCount']);for(let a5=0x0;a5<a4;a5++)for(let a6=0x0;a6<a3;a6++){I['save']();const a7=L['insertionPoint']['x']+a6*L[cp(0x18e)],a8=L['insertionPoint']['y']+a5*L['rowSpacing'];I['translate'](a7,a8),L['rotation']&&I[cp(0x19c)](L['rotation']*Math['PI']/0xb4),I['scale'](L['scaleX'],L['scaleY']),I['translate'](-a2['basePoint']['x'],-a2['basePoint']['y']);const a9=Math['max'](Math['abs'](L['scaleX']),Math['abs'](L['scaleY'])),ab=W/(a9||0x1);let ac=null;const ad=a2['entities'];for(let af=0x0;af<ad['length'];af++){const ag=ad[af];if(ag[cp(0x105)]!=='INSERT'){const ai=ea(L['blockName'],af),aj=ai!==void 0x0?ai:_(ag);if(aj){const ak=Math[cp(0x226)](aj[cp(0x1b7)]-aj['minX'],aj[cp(0x111)]-aj['minY']);if(ak>0x0&&ak/ab<ha)continue;}}const ah=ue(ag,N['layers'],R);ag['type']!=='INSERT'&&Xe(ag['type'])?(ah!==ac&&(ac!==null&&(I['stroke'](),a0&&a0['drawCalls']++),ac=ah,I['beginPath'](),I['strokeStyle']=ah,I[cp(0x112)]=ab),Ye(I,ag,ab),a0&&(a0[cp(0x1b3)][ag['type']]=((a1=a0['byType'][ag[cp(0x105)]])!=null?a1:0x0)+0x1)):(ac!==null&&(I[cp(0x255)](),a0&&a0['drawCalls']++,ac=null),I['strokeStyle']=ah,I['fillStyle']=ah,I['lineWidth']=ab,ag['type']==='INSERT'?ze(I,ag,N,O,R,ab,Y+0x1,a0):re(I,ag,N,O,R,ab,a0));}ac!==null&&(I['stroke'](),a0&&a0['drawCalls']++),I['restore']();}}function ua(c,d,f,g,k,m,u){const cq=aT;if(d['blockName']){const v=f['blocks']['get'](d['blockName']);if(v){for(const x of v['entities']){const y=ue(x,f['layers'],k);c['strokeStyle']=y,c['fillStyle']=y,c['lineWidth']=m,re(c,x,f,g,k,m,u);}return;}}d[cq(0x212)]&&d['defPoint3']&&(c['beginPath'](),c['moveTo'](d['defPoint2']['x'],d['defPoint2']['y']),c[cq(0x1fd)](d['defPoint']['x'],d[cq(0x16c)]['y']),c[cq(0x255)](),c[cq(0x156)](),c['moveTo'](d['defPoint3']['x'],d['defPoint3']['y']),c['lineTo'](d['defPoint']['x'],d['defPoint']['y']),c[cq(0x255)]());}function da(c,d){const cr=aT;var f,g;if(d['boundaryPaths']['length']!==0x0){c[cr(0x156)]();for(const k of d['boundaryPaths'])if(k['type']===cr(0x17c)&&k['vertices']&&k[cr(0x16f)][cr(0x202)]>0x0){const m=k['vertices'][0x0];c[cr(0x174)](m['x'],m['y']);for(let u=0x1;u<k['vertices'][cr(0x202)];u++){const v=k['vertices'][u-0x1],x=k['vertices'][u],y=(g=(f=k['bulges'])==null?void 0x0:f[u-0x1])!=null?g:0x0;Math['abs'](y)<1e-10?c[cr(0x1fd)](x['x'],x['y']):Q(c,v['x'],v['y'],x['x'],x['y'],y);}k['isClosed']&&c['closePath']();}else{if(k[cr(0x105)]==='edges'&&k['edges'])for(let A=0x0;A<k['edges']['length'];A++){const C=k['edges'][A];if(C['type']==='line')A===0x0&&c[cr(0x174)](C['start']['x'],C[cr(0x1e0)]['y']),c['lineTo'](C['end']['x'],C['end']['y']);else{if(C['type']==='arc'){if(A===0x0){const D=C['center']['x']+C['radius']*Math['cos'](C['startAngle']*Math['PI']/0xb4),F=C[cr(0x18f)]['y']+C['radius']*Math['sin'](C['startAngle']*Math['PI']/0xb4);c['moveTo'](D,F);}c['arc'](C['center']['x'],C['center']['y'],C['radius'],C['startAngle']*Math['PI']/0xb4,C[cr(0x141)]*Math['PI']/0xb4,!C[cr(0x1a9)]);}}}}d['solidFill']&&(c['globalAlpha']=0.3,c['fill'](cr(0x21f)),c['globalAlpha']=0x1),c['stroke']();}}function fa(c,d,f){const cs=aT,g=f*0x3;c['beginPath'](),c[cs(0x153)](d['position']['x'],d['position']['y'],g,0x0,Math['PI']*0x2),c['fill']();}function re(c,d,f,g,h,k,l){const cu=aT;var m;switch(l&&(l['drawCalls']++,l['byType'][d['type']]=((m=l[cu(0x1b3)][d['type']])!=null?m:0x0)+0x1),d['type']){case cu(0x1fe):Bt(c,d);break;case'CIRCLE':Xt(c,d);break;case'ARC':Yt(c,d);break;case'LWPOLYLINE':Rt(c,d);break;case'POLYLINE':Ot(c,d);break;case cu(0x160):_t(c,d);break;case'SPLINE':jt(c,d,k);break;case'TEXT':Ht(c,d,k);break;case'MTEXT':Ut(c,d,k);break;case'INSERT':ze(c,d,f,g,h,k,0x0,l);break;case'DIMENSION':ua(c,d,f,g,h,k,l);break;case'HATCH':da(c,d);break;case'POINT':fa(c,d,k);break;}}var pa=0.5,ma=class{constructor(c){const cv=aT;p(this,cv(0x197)),p(this,'width',0x0),p(this,'height',0x0),this['canvas']=c;const d=c[cv(0x1ea)]('2d',{'alpha':!0x1});if(!d)throw new Error(cv(0x1fc));this[cv(0x197)]=d,this[cv(0x1b1)]();}[aT(0x1ea)](){return this['ctx'];}['getWidth'](){return this['width'];}['getHeight'](){return this['height'];}[aT(0x1b1)](){const cw=aT,c=window['devicePixelRatio']||0x1,d=this['canvas'][cw(0x17a)]();this['width']=d['width'],this['height']=d['height'],this['canvas'][cw(0x1ec)]=d['width']*c,this['canvas']['height']=d['height']*c;}['render'](k,x,y,A,C,D,I){const cx=aT;var L;const N=this['ctx'],O=window['devicePixelRatio']||0x1,R={'entitiesDrawn':0x0,'entitiesSkipped':0x0,'drawCalls':0x0,'byType':{}};N['setTransform'](O,0x0,0x0,O,0x0,0x0),N[cx(0x11c)]=X[y]['backgroundColor'],N[cx(0x187)](0x0,0x0,this['width'],this['height']),Pe(N,x);const S=0x1/x['scale'];N['lineCap']='round',N[cx(0x1a8)]='round';let W=null;for(let Y=0x0;Y<k['entities']['length'];Y++){const a0=k[cx(0x12a)][Y];if(!a0['visible']){R[cx(0x15b)]++;continue;}if(!A['has'](a0['layer'])){R['entitiesSkipped']++;continue;}if(D&&!D[cx(0xee)](Y)){R[cx(0x15b)]++;continue;}if(I){const a2=I[Y];if(a2){const a3=(a2['maxX']-a2['minX'])*x['scale'],a4=(a2[cx(0x111)]-a2['minY'])*x['scale'];if(Math['max'](a3,a4)<pa){R['entitiesSkipped']++;continue;}}}const a1=ue(a0,k[cx(0x240)],y);Xe(a0['type'])?(a1!==W&&(W!==null&&(N[cx(0x255)](),R['drawCalls']++),W=a1,N['beginPath'](),N['strokeStyle']=a1,N['lineWidth']=S),Ye(N,a0,S),R[cx(0xfa)]++,R['byType'][a0['type']]=((L=R['byType'][a0['type']])!=null?L:0x0)+0x1):(W!==null&&(N['stroke'](),R['drawCalls']++,W=null),N[cx(0x246)]=a1,N[cx(0x11c)]=a1,N['lineWidth']=S,R['entitiesDrawn']++,re(N,a0,k,x,y,S,R));}if(W!==null&&(N[cx(0x255)](),R['drawCalls']++),C>=0x0&&C<k['entities']['length']){const a5=k['entities'][C];Pe(N,x),N[cx(0x246)]=X[y][cx(0x220)],N['fillStyle']=X[y]['selectionColor'],N['lineWidth']=S*0x3,re(N,a5,k,x,y,S);}return R;}['renderEmpty'](c){const cy=aT,d=this[cy(0x197)],f=window['devicePixelRatio']||0x1;d['setTransform'](f,0x0,0x0,f,0x0,0x0),d['fillStyle']=X[c]['backgroundColor'],d['fillRect'](0x0,0x0,this['width'],this[cy(0xff)]);}['destroy'](){}},ba={'showFps':!0x0,'showRenderStats':!0x0,'showDocumentInfo':!0x0,'showTimings':!0x0,'showCamera':!0x0,'position':'top-left'};function ce(c){return P(P({},ba),c);}function ga(c){const cz=aT;return c===0x0?'0\x20B':c<0x400?c+'\x20B':c<0x400*0x400?(c/0x400)[cz(0x181)](0x1)+cz(0x1ca):(c/(0x400*0x400))['toFixed'](0x1)+'\x20MB';}function va(c){return c>=0x1?c['toFixed'](0x2)+'x':'1:'+(0x1/c)['toFixed'](0x1);}var Fa=aT(0x104),Te=0xf,Me=0x8,te=0x8,z=0xa;function xa(k,x,y,A,C,D){const cA=aT;k['setTransform'](0x1,0x0,0x0,0x1,0x0,0x0);const F=[];if(A['showFps']&&F['push'](['FPS:\x20'+x[cA(0x1a2)]+'\x20\x20Frame:\x20'+x['frameTime']['toFixed'](0x1)+'ms']),A['showRenderStats']){const a0=x['renderStats'][cA(0xfa)]+x['renderStats']['entitiesSkipped'],a1=[cA(0x10f)+x['renderStats']['entitiesDrawn']+'\x20/\x20'+a0+'\x20\x20Calls:\x20'+x['renderStats']['drawCalls']],a2=Object['entries'](x['renderStats']['byType'])['sort'](([,a3],[,a4])=>a4-a3)['slice'](0x0,0x6)['map'](([a3,a4])=>a3+':\x20'+a4)['join']('\x20\x20');a2&&a1['push'](a2),F['push'](a1);}if(A['showDocumentInfo']){const a3=['Layers:\x20'+x[cA(0x13d)]+'\x20/\x20'+x['layerCount']+'\x20\x20Blocks:\x20'+x['blockCount']];x['dxfVersion']&&a3['push']('DXF:\x20'+x['dxfVersion']),x['fileName']&&a3[cA(0x223)]('File:\x20'+x[cA(0x100)]),x['fileSize']>0x0&&a3[cA(0x223)](cA(0x23c)+ga(x['fileSize'])),F['push'](a3);}if(A['showTimings']){const a4=[];x['parseTime']>0x0&&a4['push']('Parse:\x20'+x['parseTime']['toFixed'](0x0)+'ms'),x['spatialIndexBuildTime']>0x0&&a4['push']('Index:\x20'+x[cA(0x1d7)]['toFixed'](0x0)+'ms'),x[cA(0x152)]>0x0&&a4[cA(0x223)]('Load:\x20'+x['totalLoadTime']['toFixed'](0x0)+'ms'),a4['length']>0x0&&F['push']([a4['join']('\x20\x20')]);}if(A['showCamera']){const a5=x['viewportBounds'];F['push'](['Zoom:\x20'+va(x['zoom'])+'\x20\x20Pixel:\x20'+x['pixelSize']['toFixed'](0x2),'View:\x20['+a5['minX']['toFixed'](0x0)+',\x20'+a5['minY']['toFixed'](0x0)+']\x20→\x20['+a5['maxX'][cA(0x181)](0x0)+',\x20'+a5['maxY'][cA(0x181)](0x0)+']']);}if(F['length']===0x0)return;k['font']=Fa;const I=[];for(let a6=0x0;a6<F['length'];a6++){a6>0x0&&I[cA(0x223)]({'text':'','isSeparator':!0x0});for(const a7 of F[a6])I['push']({'text':a7,'isSeparator':!0x1});}let L=0x0;for(const a8 of I)if(!a8['isSeparator']){const a9=k['measureText'](a8['text'])['width'];a9>L&&(L=a9);}const N=L+te*0x2;let O=te*0x2;for(const ab of I)O+=ab['isSeparator']?Me:Te;let R,S;switch(A[cA(0x209)]){case cA(0xec):R=z,S=z;break;case'top-right':R=C-N-z,S=z;break;case'bottom-left':R=z,S=D-O-z;break;case'bottom-right':R=C-N-z,S=D-O-z;break;}const W=X[y];k['fillStyle']=y==='dark'?'rgba(0,\x200,\x200,\x200.75)':'rgba(255,\x20255,\x20255,\x200.85)',k['fillRect'](R,S,N,O),k['strokeStyle']=y==='dark'?cA(0x1e5):'rgba(0,\x200,\x200,\x200.15)',k['lineWidth']=0x1,k['strokeRect'](R+0.5,S+0.5,N-0x1,O-0x1),k[cA(0x11c)]=y==='dark'?W[cA(0x163)]:'rgba(0,\x200,\x200,\x200.85)',k['textAlign']='left',k['textBaseline']='top';let Y=S+te;for(const ac of I)ac[cA(0x1e1)]?Y+=Me:(k['fillText'](ac['text'],R+te,Y),Y+=Te);}var ka=class{constructor(){p(this,'layers',new Map()),p(this,'visibility',new Map()),p(this,'colorOverrides',new Map()),p(this,'visibleCache',null);}['setLayers'](c){const cB=aT;this['layers']=new Map(c),this['visibility']['clear'](),this[cB(0x145)]['clear'](),this['visibleCache']=null;for(const [d,f]of this[cB(0x240)])this['visibility'][cB(0x183)](d,!f['isOff']&&!f['isFrozen']);}[aT(0x1d9)](){return Array['from'](this['layers']['values']());}['setVisible'](c,d){const cC=aT;this[cC(0xf8)]['set'](c,d),this[cC(0x19a)]=null;}[aT(0xeb)](c){var d;return(d=this['visibility']['get'](c))!=null?d:!0x0;}['setColorOverride'](c,d){const cD=aT;this['colorOverrides'][cD(0x183)](c,d);}['getColorOverride'](c){return this['colorOverrides']['get'](c);}['getVisibleLayerNames'](){const cE=aT;if(this[cE(0x19a)])return this[cE(0x19a)];const c=new Set();for(const [d,f]of this['visibility'])f&&c['add'](d);return this['visibleCache']=c,c;}[aT(0x19f)](){const cF=aT;this['layers']['clear'](),this['visibility']['clear'](),this['colorOverrides'][cF(0x19f)](),this['visibleCache']=null;}},ya=class{constructor(){p(this,'listeners',new Map());}['on'](c,d){const cG=aT;this[cG(0x10d)]['has'](c)||this['listeners']['set'](c,new Set()),this['listeners']['get'](c)['add'](d);}['off'](c,d){var f;(f=this['listeners']['get'](c))==null||f['delete'](d);}['emit'](c,d){const f=this['listeners']['get'](c);if(f){for(const g of f)g(d);}}['removeAllListeners'](){const cH=aT;this[cH(0x10d)]['clear']();}},Pa=class{constructor(c,d){const cI=aT;p(this,'isPanning',!0x1),p(this,'lastX',0x0),p(this,'lastY',0x0),p(this,'touches',new Map()),p(this,'onPointerDown'),p(this,'onPointerMove'),p(this,'onPointerUp'),p(this,'onWheel'),p(this,cI(0x243)),p(this,'onTouchMove'),p(this,'onTouchEnd'),p(this,'onContextMenu'),(this[cI(0x19b)]=c,this['viewer']=d,this['onPointerDown']=this['handlePointerDown']['bind'](this),this['onPointerMove']=this[cI(0x123)]['bind'](this),this['onPointerUp']=this['handlePointerUp']['bind'](this),this['onWheel']=this['handleWheel']['bind'](this),this[cI(0x243)]=this['handleTouchStart']['bind'](this),this['onTouchMove']=this['handleTouchMove']['bind'](this),this['onTouchEnd']=this[cI(0x229)]['bind'](this),this['onContextMenu']=f=>f[cI(0x1b5)](),c[cI(0x221)]('pointerdown',this[cI(0x1a5)]),c['addEventListener']('pointermove',this[cI(0x224)]),c['addEventListener']('pointerup',this[cI(0x1d2)]),c[cI(0x221)]('wheel',this['onWheel'],{'passive':!0x1}),c['addEventListener']('touchstart',this[cI(0x243)],{'passive':!0x1}),c['addEventListener']('touchmove',this['onTouchMove'],{'passive':!0x1}),c[cI(0x221)]('touchend',this[cI(0xf1)]),c['addEventListener']('contextmenu',this['onContextMenu']));}['destroy'](){const cJ=aT;this['canvas']['removeEventListener']('pointerdown',this['onPointerDown']),this['canvas'][cJ(0x1f1)]('pointermove',this['onPointerMove']),this['canvas']['removeEventListener']('pointerup',this['onPointerUp']),this[cJ(0x19b)]['removeEventListener']('wheel',this[cJ(0x14e)]),this['canvas'][cJ(0x1f1)]('touchstart',this[cJ(0x243)]),this[cJ(0x19b)]['removeEventListener']('touchmove',this['onTouchMove']),this['canvas']['removeEventListener']('touchend',this['onTouchEnd']),this['canvas']['removeEventListener']('contextmenu',this['onContextMenu']);}['handlePointerDown'](c){const cK=aT,d=this['viewer'][cK(0x248)](),f=this['canvas']['getBoundingClientRect'](),g=c['clientX']-f['left'],h=c[cK(0x1eb)]-f['top'];c[cK(0x113)]===0x0&&d==='pan'?this['startPan'](c,g,h):c['button']===0x1?this['startPan'](c,g,h):c[cK(0x113)]===0x0&&(d==='select'||d==='measure')&&this['viewer']['handleClick'](g,h);}[aT(0x24b)](c,d,f){const cL=aT;this['isPanning']=!0x0,this[cL(0x237)]=d,this[cL(0x15d)]=f,this['canvas']['setPointerCapture'](c['pointerId']),this['canvas'][cL(0x16d)]['cursor']='grabbing';}['handlePointerMove'](c){const cM=aT,d=this['canvas'][cM(0x17a)](),f=c['clientX']-d['left'],g=c['clientY']-d['top'];if(this['isPanning']){const h=f-this[cM(0x237)],i=g-this['lastY'];this['lastX']=f,this['lastY']=g,this['viewer']['handlePan'](h,i);}else this[cM(0x109)]['handleMouseMove'](f,g);}['handlePointerUp'](c){const cN=aT;this['isPanning']&&(this['isPanning']=!0x1,this['canvas']['releasePointerCapture'](c[cN(0x136)]),this['canvas']['style']['cursor']=this[cN(0x109)]['getTool']()==='pan'?cN(0x1dd):cN(0x11f));}['handleWheel'](c){const cO=aT;c['preventDefault']();const d=this['canvas']['getBoundingClientRect'](),f=c['clientX']-d['left'],g=c['clientY']-d[cO(0x203)],h=-Math[cO(0x158)](c['deltaY']),i=this['viewer']['getZoomSpeed'](),k=h>0x0?i:0x1/ i;this['viewer']['handleZoom'](f,g,k);}['handleTouchStart'](c){const cP=aT;c['preventDefault']();for(const d of Array['from'](c[cP(0x101)]))this[cP(0x191)]['set'](d['identifier'],{'x':d['clientX'],'y':d['clientY']});}['handleTouchMove'](d){const cQ=aT;if(d['preventDefault'](),this['touches']['size']===0x2&&d['touches']['length']===0x2){const f=d['touches'][0x0],g=d['touches'][0x1],k=Array['from'](this['touches']['values']()),m=Math['hypot'](k[0x0]['x']-k[0x1]['x'],k[0x0]['y']-k[0x1]['y']),v=Math['hypot'](f['clientX']-g['clientX'],f['clientY']-g['clientY']);if(m>0x0){const x=v/m,y=this[cQ(0x19b)][cQ(0x17a)](),A=(k[0x0]['x']+k[0x1]['x'])/0x2-y[cQ(0x21e)],C=(k[0x0]['y']+k[0x1]['y'])/0x2-y['top'],D=(f['clientX']+g['clientX'])/0x2-y['left'],F=(f['clientY']+g['clientY'])/0x2-y[cQ(0x203)];this[cQ(0x109)]['handleZoom'](A,C,x),this['viewer'][cQ(0x238)](D-A,F-C);}}else{if(this['touches']['size']===0x1&&d['touches'][cQ(0x202)]===0x1){const I=d['touches'][0x0],L=this['touches']['get'](I['identifier']);L&&this['viewer']['handlePan'](I['clientX']-L['x'],I['clientY']-L['y']);}}for(const N of Array[cQ(0x1ba)](d['changedTouches']))this[cQ(0x191)]['set'](N['identifier'],{'x':N['clientX'],'y':N['clientY']});}[aT(0x229)](c){const cR=aT;for(const d of Array['from'](c[cR(0x101)]))this['touches'][cR(0x1a6)](d['identifier']);}},wa=0x5,Ia=class{constructor(){p(this,'tree',new qe()),p(this,'items',[]),p(this,'entityBBoxes',[]);}[aT(0x18d)](c,d){const cS=aT;this['items']=[],this['entityBBoxes']=new Array(c['length'])['fill'](null);const f=d?new Map():void 0x0;for(let g=0x0;g<c['length'];g++){const h=c[g],i=d&&f?Be(h,d,f):_(h);this['entityBBoxes'][g]=i,i&&this[cS(0x207)]['push'](w(P({},i),{'entityIndex':g}));}this['tree']['clear'](),this['tree']['load'](this['items']);}[aT(0x1c7)](c,d,f,g){return this['tree']['search']({'minX':c,'minY':d,'maxX':f,'maxY':g});}['getEntityBBox'](c){const cT=aT;var d;return(d=this[cT(0xf0)][c])!=null?d:null;}['getEntityBBoxes'](){return this['entityBBoxes'];}['clear'](){const cU=aT;this[cU(0x206)][cU(0x19f)](),this['items']=[],this[cU(0xf0)]=[];}};function Ta(f,g,k,v,x,y){const cV=aT,A=wa/y,C=v['search'](f-A,g-A,f+A,g+A);let D=A,F=-0x1;for(let I=C['length']-0x1;I>=0x0;I--){const L=C[I],N=k[L['entityIndex']];if(!N||!x[cV(0xee)](N['layer'])||!N[cV(0x1ef)])continue;const O=Ma(f,g,N);O<D&&(D=O,F=L['entityIndex']);}return F;}function Ma(c,d,f){const cW=aT;switch(f['type']){case'LINE':return he(c,d,f['start']['x'],f['start']['y'],f['end']['x'],f['end']['y']);case'CIRCLE':return Ea(c,d,f[cW(0x18f)]['x'],f[cW(0x18f)]['y'],f[cW(0x217)]);case'ARC':return Aa(c,d,f['center']['x'],f['center']['y'],f['radius'],f['startAngle']*Math['PI']/0xb4,f['endAngle']*Math['PI']/0xb4);case'LWPOLYLINE':case'POLYLINE':{let g=0x1/0x0;const k=f['vertices'],m=f['closed']?k['length']:k['length']-0x1;for(let u=0x0;u<m;u++){const v=k[u],x=k[(u+0x1)%k['length']],y=he(c,d,v['x'],v['y'],x['x'],x['y']);g=Math['min'](g,y);}return g;}case'ELLIPSE':return Ca(c,d,f['center']['x'],f['center']['y'],f['majorAxis'],f['minorRatio']);case'TEXT':case'MTEXT':{const A=_(f);return A?Sa(c,d,A[cW(0x253)],A['minY'],A['maxX'],A['maxY']):0x1/0x0;}case'POINT':return Math['hypot'](c-f['position']['x'],d-f['position']['y']);case'SPLINE':{let C=0x1/0x0;const D=f[cW(0x208)];for(let F=0x0;F<D['length']-0x1;F++){const I=he(c,d,D[F]['x'],D[F]['y'],D[F+0x1]['x'],D[F+0x1]['y']);C=Math['min'](C,I);}return C;}default:return 0x1/0x0;}}function he(d,f,g,k,m,v){const cX=aT,x=m-g,y=v-k,A=x*x+y*y;if(A===0x0)return Math['hypot'](d-g,f-k);let C=((d-g)*x+(f-k)*y)/A;C=Math['max'](0x0,Math[cX(0x159)](0x1,C));const D=g+C*x,F=k+C*y;return Math['hypot'](d-D,f-F);}function Ea(c,d,f,g,h){const cY=aT;return Math[cY(0x12f)](Math['hypot'](c-f,d-g)-h);}function Aa(f,g,i,k,u,v,x){const cZ=aT,y=(Math[cZ(0x12d)](g-k,f-i)%(0x2*Math['PI'])+0x2*Math['PI'])%(0x2*Math['PI']),A=(v%(0x2*Math['PI'])+0x2*Math['PI'])%(0x2*Math['PI']),C=(x%(0x2*Math['PI'])+0x2*Math['PI'])%(0x2*Math['PI']);if(A<=C?y>=A&&y<=C:y>=A||y<=C)return Math['abs'](Math[cZ(0x1b2)](f-i,g-k)-u);const D=Math['hypot'](f-(i+u*Math['cos'](v)),g-(k+u*Math['sin'](v))),F=Math['hypot'](f-(i+u*Math['cos'](x)),g-(k+u*Math['sin'](x)));return Math['min'](D,F);}function Sa(c,d,f,g,h,k){if(c>=f&&c<=h&&d>=g&&d<=k)return 0x0;const l=Math['max'](f-c,0x0,c-h),m=Math['max'](g-d,0x0,d-k);return Math['hypot'](l,m);}function Ca(g,k,x,y,A,C){const d0=aT,D=Math['atan2'](A['y'],A['x']),F=Math['cos'](-D),I=Math[d0(0x23d)](-D),L=(g-x)*F-(k-y)*I,N=(g-x)*I+(k-y)*F,O=Math[d0(0x172)](T(A['x'],0x2)+T(A['y'],0x2)),R=O*C;if(O<1e-10)return Math['hypot'](g-x,k-y);const S=N*(O/R),W=Math['hypot'](L,S);if(W<1e-10)return O;const Y=L/W*O,a0=N/W*R;return Math['hypot'](L-Y,N-a0);}var Da=class{constructor(){const d1=aT;p(this,'state',{'phase':'idle'}),p(this,d1(0x1de),null);}[aT(0x1c3)](){this['state']={'phase':'first-point'},this['currentSnap']=null;}['deactivate'](){const d2=aT;this['state']={'phase':d2(0x190)},this['currentSnap']=null;}['handleClick'](c,d,f){const d3=aT,g=f?f[d3(0x1e4)]:{'x':c,'y':d};switch(this['state']['phase']){case'first-point':return this['state']={'phase':d3(0x234),'firstPoint':g,'firstSnap':f!=null?f:void 0x0},null;case'second-point':{const k=this['state']['firstPoint'],m=g,u=m['x']-k['x'],v=m['y']-k['y'],x=Math['sqrt'](u*u+v*v),y=Math['atan2'](v,u)*0xb4/Math['PI'];return this['state']={'phase':d3(0x132),'firstPoint':k,'secondPoint':m,'distance':x,'angle':y},{'distance':x,'angle':y,'deltaX':u,'deltaY':v,'points':[k,m]};}case'done':return this['state']={'phase':'second-point','firstPoint':g},null;default:return null;}}['handleMove'](c){this['currentSnap']=c;}};function Ee(f,g,k,v,x,y=new Set(['endpoint','midpoint',aT(0x18f)])){const d4=aT,A=0xa/x,C=[],D=v[d4(0x1c7)](f-A,g-A,f+A,g+A);for(const F of D){const I=k[F['entityIndex']];if(!I)continue;const L=F[d4(0x180)];switch(I['type']){case'LINE':{if(y[d4(0xee)]('endpoint')&&(M(C,I['start']['x'],I[d4(0x1e0)]['y'],'endpoint',L,f,g,A),M(C,I[d4(0x15e)]['x'],I['end']['y'],'endpoint',L,f,g,A)),y[d4(0xee)]('midpoint')){const N=(I['start']['x']+I['end']['x'])/0x2,O=(I['start']['y']+I['end']['y'])/0x2;M(C,N,O,'midpoint',L,f,g,A);}break;}case'CIRCLE':{if(y['has']('center')&&M(C,I['center']['x'],I['center']['y'],'center',L,f,g,A),y['has']('endpoint'))for(const R of[0x0,Math['PI']/0x2,Math['PI'],0x3*Math['PI']/0x2]){const S=I['center']['x']+I[d4(0x217)]*Math['cos'](R),W=I[d4(0x18f)]['y']+I['radius']*Math['sin'](R);M(C,S,W,'endpoint',L,f,g,A);}break;}case'ARC':{if(y['has']('center')&&M(C,I['center']['x'],I['center']['y'],'center',L,f,g,A),y['has']('endpoint')){const Y=I['startAngle']*Math['PI']/0xb4,a0=I[d4(0x141)]*Math['PI']/0xb4;M(C,I['center']['x']+I['radius']*Math['cos'](Y),I['center']['y']+I[d4(0x217)]*Math['sin'](Y),'endpoint',L,f,g,A),M(C,I['center']['x']+I[d4(0x217)]*Math['cos'](a0),I[d4(0x18f)]['y']+I['radius']*Math['sin'](a0),'endpoint',L,f,g,A);}break;}case'LWPOLYLINE':case'POLYLINE':{if(y['has'](d4(0x10b))){for(const a1 of I['vertices'])M(C,a1['x'],a1['y'],'endpoint',L,f,g,A);}if(y['has'](d4(0x14f)))for(let a2=0x0;a2<I['vertices']['length']-0x1;a2++){const a3=I['vertices'][a2],a4=I['vertices'][a2+0x1];M(C,(a3['x']+a4['x'])/0x2,(a3['y']+a4['y'])/0x2,'midpoint',L,f,g,A);}break;}case'ELLIPSE':{y[d4(0xee)](d4(0x18f))&&M(C,I['center']['x'],I['center']['y'],d4(0x18f),L,f,g,A);break;}case'TEXT':{y['has']('endpoint')&&M(C,I['insertionPoint']['x'],I[d4(0x228)]['y'],'endpoint',L,f,g,A);break;}case'MTEXT':{y[d4(0xee)]('endpoint')&&M(C,I['insertionPoint']['x'],I['insertionPoint']['y'],'endpoint',L,f,g,A);break;}}}return C['sort']((a5,a6)=>Math['hypot'](a5['point']['x']-f,a5[d4(0x1e4)]['y']-g)-Math['hypot'](a6[d4(0x1e4)]['x']-f,a6['point']['y']-g)),C;}function M(c,d,f,g,h,k,l,m){const d5=aT;Math[d5(0x1b2)](d-k,f-l)<=m&&c['push']({'point':{'x':d,'y':f},'type':g,'entityIndex':h});}function La(g,k,x,y,A,C){const d6=aT,D=X[C];g[d6(0x1c6)](0x1,0x0,0x0,0x1,0x0,0x0);const F=x['state'];if(x['currentSnap']){const [I,L]=U(k,x[d6(0x1de)]['point']['x'],x['currentSnap']['point']['y']);Na(g,I,L,x['currentSnap']['type'],D['measureColor']);}if(F['phase']==='second-point'){const [N,O]=U(k,F['firstPoint']['x'],F[d6(0x13c)]['y']);let R,S;if(x['currentSnap']){const [a1,a2]=U(k,x['currentSnap'][d6(0x1e4)]['x'],x['currentSnap']['point']['y']);R=a1,S=a2;}else R=y,S=A;g[d6(0x246)]=D['measureColor'],g['lineWidth']=1.5,g['setLineDash']([0x6,0x3]),g['beginPath'](),g['moveTo'](N,O),g[d6(0x1fd)](R,S),g['stroke'](),g['setLineDash']([]),ae(g,N,O,D['measureColor']),ae(g,R,S,D['measureColor']);let W,Y;x[d6(0x1de)]?(W=x[d6(0x1de)][d6(0x1e4)]['x'],Y=x[d6(0x1de)]['point']['y']):[W,Y]=K(k,y,A);const a0=Math[d6(0x1b2)](W-F['firstPoint']['x'],Y-F['firstPoint']['y']);Ae(g,(N+R)/0x2,(O+S)/0x2,a0,C);}if(F['phase']==='done'){const [a3,a4]=U(k,F[d6(0x13c)]['x'],F['firstPoint']['y']),[a5,a6]=U(k,F['secondPoint']['x'],F['secondPoint']['y']);g[d6(0x246)]=D['measureColor'],g['lineWidth']=0x2,g[d6(0x156)](),g['moveTo'](a3,a4),g['lineTo'](a5,a6),g['stroke'](),ae(g,a3,a4,D['measureColor']),ae(g,a5,a6,D['measureColor']),Ae(g,(a3+a5)/0x2,(a4+a6)/0x2,F['distance'],C);}}function Na(c,d,f,g,h){const d7=aT;c['strokeStyle']=h,c['lineWidth']=0x2;const i=0x8;switch(g){case d7(0x10b):c['strokeRect'](d-i/0x2,f-i/0x2,i,i);break;case'midpoint':c['beginPath'](),c['moveTo'](d,f-i/0x2),c['lineTo'](d+i/0x2,f+i/0x2),c['lineTo'](d-i/0x2,f+i/0x2),c['closePath'](),c['stroke']();break;case d7(0x18f):c['beginPath'](),c['arc'](d,f,i/0x2,0x0,Math['PI']*0x2),c[d7(0x255)]();break;case'nearest':c['beginPath'](),c['moveTo'](d-i/0x2,f-i/0x2),c['lineTo'](d+i/0x2,f+i/0x2),c['moveTo'](d+i/0x2,f-i/0x2),c[d7(0x1fd)](d-i/0x2,f+i/0x2),c['stroke']();break;}}function ae(c,d,f,g){const d8=aT;c['fillStyle']=g,c[d8(0x156)](),c['arc'](d,f,0x4,0x0,Math['PI']*0x2),c['fill']();}function Ae(d,f,g,k,m){const d9=aT,v=k[d9(0x181)](0x4);d['font']='13px\x20monospace',d['textAlign']='center',d[d9(0x164)]='bottom';const x=d[d9(0x1f3)](v),y=0x4,A=f-x[d9(0x1ec)]/0x2-y,C=g-0x14,D=x['width']+y*0x2,F=0x12;d[d9(0x11c)]=m==='dark'?'rgba(0,0,0,0.8)':'rgba(255,255,255,0.9)',d['fillRect'](A,C,D,F),d['fillStyle']=X[m]['measureColor'],d['fillText'](v,f,g-0x6);}var Ba=class{constructor(){const db=aT;p(this,db(0x1e7),null),p(this,'blobUrl',null),p(this,db(0x1e8),0x1),p(this,'pending',new Map());}['getWorker'](){return this['worker']?this['worker']:(this['blobUrl']=URL['createObjectURL'](new Blob(['\x22use\x20strict\x22;(()=>{function\x20h(a){let\x20e=a.replace(/\x5cr\x5cn?/g,`\x0a`),t=[],r=e.length,n=0;for(;n<r;){for(;n<r&&e.charCodeAt(n)===10;)n++;if(n>=r)break;let\x20o=e.indexOf(`\x0a`,n);o===-1&&(o=r);let\x20c=e.substring(n,o).trim();n=o+1;let\x20s=parseInt(c,10);if(isNaN(s)){n<r&&(o=e.indexOf(`\x0a`,n),o===-1&&(o=r),n=o+1);continue}if(n>=r)break;o=e.indexOf(`\x0a`,n),o===-1&&(o=r);let\x20p=e.substring(n,o).replace(/\x5cs+$/,\x22\x22);n=o+1,t.push({code:s,value:p})}return\x20t}function\x20m(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDSEC\x22)return\x20e+1;if(r.code===9){let\x20n=r.value;switch(e++,n){case\x22$ACADVER\x22:e<a.length&&(t.acadVersion=a[e].value,e++);break;case\x22$EXTMIN\x22:if(e<a.length){let\x20o=v(a,e);t.extMin=o.point,e=o.nextIndex}break;case\x22$EXTMAX\x22:if(e<a.length){let\x20o=v(a,e);t.extMax=o.point,e=o.nextIndex}break;case\x22$INSUNITS\x22:e<a.length&&(t.insUnits=parseInt(a[e].value,10),e++);break;case\x22$MEASUREMENT\x22:e<a.length&&(t.measurement=parseInt(a[e].value,10),e++);break;case\x22$LTSCALE\x22:e<a.length&&(t.ltScale=parseFloat(a[e].value),e++);break;case\x22$DWGCODEPAGE\x22:e<a.length&&(t.dwgCodePage=a[e].value,e++);break;case\x22$HANDSEED\x22:e<a.length&&(t.handleSeed=a[e].value,e++);break;default:for(;e<a.length&&a[e].code!==9&&a[e].code!==0;)t[n]=a[e].value,e++}}else\x20e++}return\x20e}function\x20v(a,e){let\x20t={x:0,y:0,z:0};for(;e<a.length;){let\x20r=a[e].code;if(r===10)t.x=parseFloat(a[e].value),e++;else\x20if(r===20)t.y=parseFloat(a[e].value),e++;else\x20if(r===30)t.z=parseFloat(a[e].value),e++;else\x20break}return{point:t,nextIndex:e}}function\x20k(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDSEC\x22)return\x20e+1;if(r.code===0&&r.value===\x22TABLE\x22){if(e++,e>=a.length)break;let\x20n=a[e].value;switch(e++,n){case\x22LAYER\x22:e=H(a,e,t.layers);break;case\x22LTYPE\x22:e=O(a,e,t.lineTypes);break;case\x22STYLE\x22:e=_(a,e,t.styles);break;default:e=R(a,e);break}}else\x20e++}return\x20e}function\x20R(a,e){for(;e<a.length;){if(a[e].code===0&&a[e].value===\x22ENDTAB\x22)return\x20e+1;e++}return\x20e}function\x20H(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDTAB\x22)return\x20e+1;if(r.code===0&&r.value===\x22LAYER\x22){e++;let\x20n={name:\x220\x22,color:7,lineType:\x22Continuous\x22,flags:0,lineWeight:-3,isOff:!1,isFrozen:!1,isLocked:!1};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x202:n.name=o.value;break;case\x206:n.lineType=o.value;break;case\x2062:n.color=parseInt(o.value,10);break;case\x2070:n.flags=parseInt(o.value,10);break;case\x20370:n.lineWeight=parseInt(o.value,10);break;case\x20420:n.trueColor=parseInt(o.value,10);break}e++}t.set(n.name,n)}else\x20e++}return\x20e}function\x20O(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDTAB\x22)return\x20e+1;if(r.code===0&&r.value===\x22LTYPE\x22){e++;let\x20n={name:\x22\x22,description:\x22\x22,pattern:[],totalLength:0};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x202:n.name=o.value;break;case\x203:n.description=o.value;break;case\x2040:n.totalLength=parseFloat(o.value);break;case\x2049:n.pattern.push(parseFloat(o.value));break}e++}n.name&&t.set(n.name,n)}else\x20e++}return\x20e}function\x20_(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDTAB\x22)return\x20e+1;if(r.code===0&&r.value===\x22STYLE\x22){e++;let\x20n={name:\x22\x22,fontName:\x22\x22,bigFontName:\x22\x22,height:0,widthFactor:1,obliqueAngle:0};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x202:n.name=o.value;break;case\x203:n.fontName=o.value;break;case\x204:n.bigFontName=o.value;break;case\x2040:n.height=parseFloat(o.value);break;case\x2041:n.widthFactor=parseFloat(o.value);break;case\x2050:n.obliqueAngle=parseFloat(o.value);break}e++}n.name&&t.set(n.name,n)}else\x20e++}return\x20e}function\x20l(a){let\x20e={type:\x22\x22,layer:\x220\x22,color:256,lineType:\x22BYLAYER\x22,lineTypeScale:1,lineWeight:-1,visible:!0,extrusion:{x:0,y:0,z:1}};for(let\x20t\x20of\x20a)switch(t.code){case\x205:e.handle=t.value;break;case\x208:e.layer=t.value;break;case\x206:e.lineType=t.value;break;case\x2048:e.lineTypeScale=parseFloat(t.value);break;case\x2060:e.visible=t.value===\x220\x22||t.value===\x22\x22;break;case\x2062:e.color=parseInt(t.value,10);break;case\x20370:e.lineWeight=parseInt(t.value,10);break;case\x20420:e.trueColor=parseInt(t.value,10);break;case\x20210:e.extrusion.x=parseFloat(t.value);break;case\x20220:e.extrusion.y=parseFloat(t.value);break;case\x20230:e.extrusion.z=parseFloat(t.value);break}return\x20e}function\x20D(a){let\x20t={...l(a),type:\x22LINE\x22,start:{x:0,y:0,z:0},end:{x:0,y:0,z:0}};for(let\x20r\x20of\x20a)switch(r.code){case\x2010:t.start.x=parseFloat(r.value);break;case\x2020:t.start.y=parseFloat(r.value);break;case\x2030:t.start.z=parseFloat(r.value);break;case\x2011:t.end.x=parseFloat(r.value);break;case\x2021:t.end.y=parseFloat(r.value);break;case\x2031:t.end.z=parseFloat(r.value);break}return\x20t}function\x20F(a){let\x20t={...l(a),type:\x22CIRCLE\x22,center:{x:0,y:0,z:0},radius:0};for(let\x20r\x20of\x20a)switch(r.code){case\x2010:t.center.x=parseFloat(r.value);break;case\x2020:t.center.y=parseFloat(r.value);break;case\x2030:t.center.z=parseFloat(r.value);break;case\x2040:t.radius=parseFloat(r.value);break}return\x20t}function\x20E(a){let\x20t={...l(a),type:\x22ARC\x22,center:{x:0,y:0,z:0},radius:0,startAngle:0,endAngle:360};for(let\x20r\x20of\x20a)switch(r.code){case\x2010:t.center.x=parseFloat(r.value);break;case\x2020:t.center.y=parseFloat(r.value);break;case\x2030:t.center.z=parseFloat(r.value);break;case\x2040:t.radius=parseFloat(r.value);break;case\x2050:t.startAngle=parseFloat(r.value);break;case\x2051:t.endAngle=parseFloat(r.value);break}return\x20t}function\x20P(a){let\x20t={...l(a),type:\x22LWPOLYLINE\x22,vertices:[],closed:!1,constantWidth:0,elevation:0},r=null;for(let\x20n\x20of\x20a)switch(n.code){case\x2070:t.closed=(parseInt(n.value,10)&1)!==0;break;case\x2038:t.elevation=parseFloat(n.value);break;case\x2043:t.constantWidth=parseFloat(n.value);break;case\x2010:r&&t.vertices.push(r),r={x:parseFloat(n.value),y:0,bulge:0,startWidth:0,endWidth:0};break;case\x2020:r&&(r.y=parseFloat(n.value));break;case\x2040:r&&(r.startWidth=parseFloat(n.value));break;case\x2041:r&&(r.endWidth=parseFloat(n.value));break;case\x2042:r&&(r.bulge=parseFloat(n.value));break}return\x20r&&t.vertices.push(r),t}function\x20T(a){let\x20t={...l(a),type:\x22POLYLINE\x22,vertices:[],closed:!1,is3d:!1};for(let\x20r\x20of\x20a)if(r.code===70){let\x20n=parseInt(r.value,10);t.closed=(n&1)!==0,t.is3d=(n&8)!==0}return\x20t}function\x20w(a){let\x20t={...l(a),type:\x22ELLIPSE\x22,center:{x:0,y:0,z:0},majorAxis:{x:1,y:0,z:0},minorRatio:1,startParam:0,endParam:Math.PI*2};for(let\x20r\x20of\x20a)switch(r.code){case\x2010:t.center.x=parseFloat(r.value);break;case\x2020:t.center.y=parseFloat(r.value);break;case\x2030:t.center.z=parseFloat(r.value);break;case\x2011:t.majorAxis.x=parseFloat(r.value);break;case\x2021:t.majorAxis.y=parseFloat(r.value);break;case\x2031:t.majorAxis.z=parseFloat(r.value);break;case\x2040:t.minorRatio=parseFloat(r.value);break;case\x2041:t.startParam=parseFloat(r.value);break;case\x2042:t.endParam=parseFloat(r.value);break}return\x20t}function\x20g(a){let\x20t={...l(a),type:\x22SPLINE\x22,degree:3,flags:0,knots:[],controlPoints:[],fitPoints:[],weights:[]},r=null,n=null;for(let\x20o\x20of\x20a)switch(o.code){case\x2070:t.flags=parseInt(o.value,10);break;case\x2071:t.degree=parseInt(o.value,10);break;case\x2040:t.knots.push(parseFloat(o.value));break;case\x2041:t.weights.push(parseFloat(o.value));break;case\x2010:r&&t.controlPoints.push(r),r={x:parseFloat(o.value),y:0,z:0};break;case\x2020:r&&(r.y=parseFloat(o.value));break;case\x2030:r&&(r.z=parseFloat(o.value));break;case\x2011:n&&t.fitPoints.push(n),n={x:parseFloat(o.value),y:0,z:0};break;case\x2021:n&&(n.y=parseFloat(o.value));break;case\x2031:n&&(n.z=parseFloat(o.value));break;case\x2012:t.startTangent||(t.startTangent={x:0,y:0,z:0}),t.startTangent.x=parseFloat(o.value);break;case\x2022:t.startTangent&&(t.startTangent.y=parseFloat(o.value));break;case\x2032:t.startTangent&&(t.startTangent.z=parseFloat(o.value));break;case\x2013:t.endTangent||(t.endTangent={x:0,y:0,z:0}),t.endTangent.x=parseFloat(o.value);break;case\x2023:t.endTangent&&(t.endTangent.y=parseFloat(o.value));break;case\x2033:t.endTangent&&(t.endTangent.z=parseFloat(o.value));break}return\x20r&&t.controlPoints.push(r),n&&t.fitPoints.push(n),t}function\x20I(a){let\x20t={...l(a),type:\x22TEXT\x22,text:\x22\x22,insertionPoint:{x:0,y:0,z:0},height:1,rotation:0,widthFactor:1,obliqueAngle:0,style:\x22STANDARD\x22,hAlign:0,vAlign:0,generationFlags:0};for(let\x20r\x20of\x20a)switch(r.code){case\x201:t.text=r.value;break;case\x2010:t.insertionPoint.x=parseFloat(r.value);break;case\x2020:t.insertionPoint.y=parseFloat(r.value);break;case\x2030:t.insertionPoint.z=parseFloat(r.value);break;case\x2011:t.alignmentPoint||(t.alignmentPoint={x:0,y:0,z:0}),t.alignmentPoint.x=parseFloat(r.value);break;case\x2021:t.alignmentPoint||(t.alignmentPoint={x:0,y:0,z:0}),t.alignmentPoint.y=parseFloat(r.value);break;case\x2031:t.alignmentPoint||(t.alignmentPoint={x:0,y:0,z:0}),t.alignmentPoint.z=parseFloat(r.value);break;case\x2040:t.height=parseFloat(r.value);break;case\x2041:t.widthFactor=parseFloat(r.value);break;case\x2050:t.rotation=parseFloat(r.value);break;case\x2051:t.obliqueAngle=parseFloat(r.value);break;case\x207:t.style=r.value;break;case\x2071:t.generationFlags=parseInt(r.value,10);break;case\x2072:t.hAlign=parseInt(r.value,10);break;case\x2073:t.vAlign=parseInt(r.value,10);break}return\x20t}function\x20A(a){let\x20t={...l(a),type:\x22MTEXT\x22,text:\x22\x22,insertionPoint:{x:0,y:0,z:0},height:1,width:0,attachmentPoint:1,drawingDirection:1,rotation:0,lineSpacingStyle:1,lineSpacingFactor:1,style:\x22STANDARD\x22,bgFill:0,bgFillScale:1.5},r=[];for(let\x20n\x20of\x20a)switch(n.code){case\x201:r.push(n.value);break;case\x203:r.push(n.value);break;case\x207:t.style=n.value;break;case\x2010:t.insertionPoint.x=parseFloat(n.value);break;case\x2020:t.insertionPoint.y=parseFloat(n.value);break;case\x2030:t.insertionPoint.z=parseFloat(n.value);break;case\x2011:t.textDirection||(t.textDirection={x:0,y:0,z:0}),t.textDirection.x=parseFloat(n.value);break;case\x2021:t.textDirection||(t.textDirection={x:0,y:0,z:0}),t.textDirection.y=parseFloat(n.value);break;case\x2031:t.textDirection||(t.textDirection={x:0,y:0,z:0}),t.textDirection.z=parseFloat(n.value);break;case\x2040:t.height=parseFloat(n.value);break;case\x2041:t.width=parseFloat(n.value);break;case\x2044:t.lineSpacingFactor=parseFloat(n.value);break;case\x2050:t.rotation=parseFloat(n.value);break;case\x2071:t.attachmentPoint=parseInt(n.value,10);break;case\x2072:t.drawingDirection=parseInt(n.value,10);break;case\x2073:t.lineSpacingStyle=parseInt(n.value,10);break;case\x2090:t.bgFill=parseInt(n.value,10);break}return\x20t.text=r.join(\x22\x22),t}function\x20z(a){let\x20t={...l(a),type:\x22INSERT\x22,blockName:\x22\x22,insertionPoint:{x:0,y:0,z:0},scaleX:1,scaleY:1,scaleZ:1,rotation:0,columnCount:1,rowCount:1,columnSpacing:0,rowSpacing:0,attribs:[]};for(let\x20r\x20of\x20a)switch(r.code){case\x202:t.blockName=r.value;break;case\x2010:t.insertionPoint.x=parseFloat(r.value);break;case\x2020:t.insertionPoint.y=parseFloat(r.value);break;case\x2030:t.insertionPoint.z=parseFloat(r.value);break;case\x2041:t.scaleX=parseFloat(r.value);break;case\x2042:t.scaleY=parseFloat(r.value);break;case\x2043:t.scaleZ=parseFloat(r.value);break;case\x2044:t.columnSpacing=parseFloat(r.value);break;case\x2045:t.rowSpacing=parseFloat(r.value);break;case\x2050:t.rotation=parseFloat(r.value);break;case\x2070:t.columnCount=parseInt(r.value,10)||1;break;case\x2071:t.rowCount=parseInt(r.value,10)||1;break}return\x20t}function\x20S(a){let\x20t={...l(a),type:\x22DIMENSION\x22,blockName:\x22\x22,dimStyle:\x22STANDARD\x22,dimType:0,defPoint:{x:0,y:0,z:0},textMidpoint:{x:0,y:0,z:0},textOverride:\x22\x22,rotation:0,textRotation:0,leaderLength:0};for(let\x20r\x20of\x20a)switch(r.code){case\x201:t.textOverride=r.value;break;case\x202:t.blockName=r.value;break;case\x203:t.dimStyle=r.value;break;case\x2010:t.defPoint.x=parseFloat(r.value);break;case\x2020:t.defPoint.y=parseFloat(r.value);break;case\x2030:t.defPoint.z=parseFloat(r.value);break;case\x2011:t.textMidpoint.x=parseFloat(r.value);break;case\x2021:t.textMidpoint.y=parseFloat(r.value);break;case\x2031:t.textMidpoint.z=parseFloat(r.value);break;case\x2013:t.defPoint2||(t.defPoint2={x:0,y:0,z:0}),t.defPoint2.x=parseFloat(r.value);break;case\x2023:t.defPoint2||(t.defPoint2={x:0,y:0,z:0}),t.defPoint2.y=parseFloat(r.value);break;case\x2033:t.defPoint2||(t.defPoint2={x:0,y:0,z:0}),t.defPoint2.z=parseFloat(r.value);break;case\x2014:t.defPoint3||(t.defPoint3={x:0,y:0,z:0}),t.defPoint3.x=parseFloat(r.value);break;case\x2024:t.defPoint3||(t.defPoint3={x:0,y:0,z:0}),t.defPoint3.y=parseFloat(r.value);break;case\x2034:t.defPoint3||(t.defPoint3={x:0,y:0,z:0}),t.defPoint3.z=parseFloat(r.value);break;case\x2015:t.defPoint4||(t.defPoint4={x:0,y:0,z:0}),t.defPoint4.x=parseFloat(r.value);break;case\x2025:t.defPoint4||(t.defPoint4={x:0,y:0,z:0}),t.defPoint4.y=parseFloat(r.value);break;case\x2035:t.defPoint4||(t.defPoint4={x:0,y:0,z:0}),t.defPoint4.z=parseFloat(r.value);break;case\x2016:t.defPoint5||(t.defPoint5={x:0,y:0,z:0}),t.defPoint5.x=parseFloat(r.value);break;case\x2026:t.defPoint5||(t.defPoint5={x:0,y:0,z:0}),t.defPoint5.y=parseFloat(r.value);break;case\x2036:t.defPoint5||(t.defPoint5={x:0,y:0,z:0}),t.defPoint5.z=parseFloat(r.value);break;case\x2040:t.leaderLength=parseFloat(r.value);break;case\x2050:t.rotation=parseFloat(r.value);break;case\x2053:t.textRotation=parseFloat(r.value);break;case\x2070:t.dimType=parseInt(r.value,10);break}return\x20t}function\x20N(a){let\x20t={...l(a),type:\x22HATCH\x22,patternName:\x22\x22,solidFill:!0,associative:!1,hatchStyle:0,patternType:1,patternAngle:0,patternScale:1,boundaryPaths:[]},r=0;for(;r<a.length;){let\x20n=a[r];switch(n.code){case\x202:t.patternName=n.value;break;case\x2041:t.patternScale=parseFloat(n.value);break;case\x2052:t.patternAngle=parseFloat(n.value);break;case\x2070:t.solidFill=n.value===\x221\x22;break;case\x2071:t.associative=n.value===\x221\x22;break;case\x2075:t.hatchStyle=parseInt(n.value,10);break;case\x2076:t.patternType=parseInt(n.value,10);break;case\x2091:{let\x20o=parseInt(n.value,10);r++;for(let\x20c=0;c<o&&r<a.length;c++){let\x20s=W(a,r);t.boundaryPaths.push(s.path),r=s.nextIndex}continue}}r++}return\x20t}function\x20W(a,e){let\x20t=0;return\x20e<a.length&&a[e].code===92&&(t=parseInt(a[e].value,10),e++),(t&2)!==0?X(a,e,t):Y(a,e,t)}function\x20X(a,e,t){let\x20r={type:\x22polyline\x22,vertices:[],bulges:[],flags:t},n=!1;e<a.length&&a[e].code===72&&(n=a[e].value===\x221\x22,e++),e<a.length&&a[e].code===73&&(r.isClosed=a[e].value===\x221\x22,e++);let\x20o=0;e<a.length&&a[e].code===93&&(o=parseInt(a[e].value,10),e++);for(let\x20c=0;c<o&&e<a.length;c++){let\x20s={x:0,y:0};a[e].code===10&&(s.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===20&&(s.y=parseFloat(a[e].value),e++),r.vertices.push(s),n&&e<a.length&&a[e].code===42?(r.bulges.push(parseFloat(a[e].value)),e++):n&&r.bulges.push(0)}for(;e<a.length&&(a[e].code===97||a[e].code===330);)if(a[e].code===97){let\x20c=parseInt(a[e].value,10);e++;for(let\x20s=0;s<c&&e<a.length&&a[e].code===330;s++)e++}else\x20e++;return{path:r,nextIndex:e}}function\x20Y(a,e,t){let\x20r={type:\x22edges\x22,edges:[],flags:t},n=0;e<a.length&&a[e].code===93&&(n=parseInt(a[e].value,10),e++);for(let\x20o=0;o<n&&e<a.length&&a[e].code===72;o++){let\x20c=parseInt(a[e].value,10);switch(e++,c){case\x201:{let\x20s={type:\x22line\x22,start:{x:0,y:0},end:{x:0,y:0}};e<a.length&&a[e].code===10&&(s.start.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===20&&(s.start.y=parseFloat(a[e].value),e++),e<a.length&&a[e].code===11&&(s.end.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===21&&(s.end.y=parseFloat(a[e].value),e++),r.edges.push(s);break}case\x202:{let\x20s={type:\x22arc\x22,center:{x:0,y:0},radius:0,startAngle:0,endAngle:360,ccw:!0};e<a.length&&a[e].code===10&&(s.center.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===20&&(s.center.y=parseFloat(a[e].value),e++),e<a.length&&a[e].code===40&&(s.radius=parseFloat(a[e].value),e++),e<a.length&&a[e].code===50&&(s.startAngle=parseFloat(a[e].value),e++),e<a.length&&a[e].code===51&&(s.endAngle=parseFloat(a[e].value),e++),e<a.length&&a[e].code===73&&(s.ccw=a[e].value===\x221\x22,e++),r.edges.push(s);break}case\x203:{let\x20s={type:\x22ellipse\x22,center:{x:0,y:0},majorAxis:{x:1,y:0},minorRatio:1,startAngle:0,endAngle:Math.PI*2,ccw:!0};e<a.length&&a[e].code===10&&(s.center.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===20&&(s.center.y=parseFloat(a[e].value),e++),e<a.length&&a[e].code===11&&(s.majorAxis.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===21&&(s.majorAxis.y=parseFloat(a[e].value),e++),e<a.length&&a[e].code===40&&(s.minorRatio=parseFloat(a[e].value),e++),e<a.length&&a[e].code===50&&(s.startAngle=parseFloat(a[e].value),e++),e<a.length&&a[e].code===51&&(s.endAngle=parseFloat(a[e].value),e++),e<a.length&&a[e].code===73&&(s.ccw=a[e].value===\x221\x22,e++),r.edges.push(s);break}case\x204:{let\x20s=3,p=[],b=[];e<a.length&&a[e].code===94&&(s=parseInt(a[e].value,10),e++),e<a.length&&a[e].code===73&&e++,e<a.length&&a[e].code===74&&e++;let\x20d=0;e<a.length&&a[e].code===95&&(d=parseInt(a[e].value,10),e++);let\x20x=0;e<a.length&&a[e].code===96&&(x=parseInt(a[e].value,10),e++);for(let\x20f=0;f<d&&e<a.length&&a[e].code===40;f++)p.push(parseFloat(a[e].value)),e++;for(let\x20f=0;f<x&&e<a.length;f++){let\x20y={x:0,y:0};a[e].code===10&&(y.x=parseFloat(a[e].value),e++),e<a.length&&a[e].code===20&&(y.y=parseFloat(a[e].value),e++),b.push(y)}r.edges.push({type:\x22spline\x22,degree:s,knots:p,controlPoints:b});break}default:break}}for(;e<a.length&&(a[e].code===97||a[e].code===330);)if(a[e].code===97){let\x20o=parseInt(a[e].value,10);e++;for(let\x20c=0;c<o&&e<a.length&&a[e].code===330;c++)e++}else\x20e++;return{path:r,nextIndex:e}}function\x20L(a){let\x20t={...l(a),type:\x22POINT\x22,position:{x:0,y:0,z:0}};for(let\x20r\x20of\x20a)switch(r.code){case\x2010:t.position.x=parseFloat(r.value);break;case\x2020:t.position.y=parseFloat(r.value);break;case\x2030:t.position.z=parseFloat(r.value);break}return\x20t}function\x20u(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code!==0){e++;continue}let\x20n=r.value;if(n===\x22ENDSEC\x22||n===\x22ENDBLK\x22)return\x20e+1;e++;let\x20o=[];for(;e<a.length&&a[e].code!==0;)o.push(a[e]),e++;switch(n){case\x22LINE\x22:t.push(D(o));break;case\x22CIRCLE\x22:t.push(F(o));break;case\x22ARC\x22:t.push(E(o));break;case\x22LWPOLYLINE\x22:t.push(P(o));break;case\x22ELLIPSE\x22:t.push(w(o));break;case\x22SPLINE\x22:t.push(g(o));break;case\x22TEXT\x22:t.push(I(o));break;case\x22MTEXT\x22:t.push(A(o));break;case\x22INSERT\x22:{let\x20c=z(o);o.some(p=>p.code===66&&p.value===\x221\x22)&&(e=$(a,e,c.attribs)),t.push(c);break}case\x22DIMENSION\x22:t.push(S(o));break;case\x22HATCH\x22:t.push(N(o));break;case\x22POINT\x22:t.push(L(o));break;case\x22POLYLINE\x22:{let\x20c=T(o);e=V(a,e,c.vertices),t.push(c);break}default:break}}return\x20e}function\x20V(a,e,t){for(;e<a.length;){if(a[e].code!==0){e++;continue}let\x20r=a[e].value;if(r===\x22SEQEND\x22)return\x20e+1;if(r===\x22ENDSEC\x22||r===\x22ENDBLK\x22)return\x20e;if(r===\x22VERTEX\x22){e++;let\x20n={x:0,y:0,bulge:0,startWidth:0,endWidth:0};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x2010:n.x=parseFloat(o.value);break;case\x2020:n.y=parseFloat(o.value);break;case\x2042:n.bulge=parseFloat(o.value);break;case\x2040:n.startWidth=parseFloat(o.value);break;case\x2041:n.endWidth=parseFloat(o.value);break}e++}t.push(n)}else\x20for(e++;e<a.length&&a[e].code!==0;)e++}return\x20e}function\x20$(a,e,t){for(;e<a.length;){if(a[e].code!==0){e++;continue}let\x20r=a[e].value;if(r===\x22SEQEND\x22)return\x20e+1;if(r===\x22ENDSEC\x22||r===\x22ENDBLK\x22)return\x20e;if(r===\x22ATTRIB\x22){e++;let\x20n={tag:\x22\x22,text:\x22\x22,insertionPoint:{x:0,y:0,z:0},height:1,rotation:0,style:\x22STANDARD\x22,layer:\x220\x22,color:256};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x201:n.text=o.value;break;case\x202:n.tag=o.value;break;case\x207:n.style=o.value;break;case\x208:n.layer=o.value;break;case\x2010:n.insertionPoint.x=parseFloat(o.value);break;case\x2020:n.insertionPoint.y=parseFloat(o.value);break;case\x2030:n.insertionPoint.z=parseFloat(o.value);break;case\x2040:n.height=parseFloat(o.value);break;case\x2050:n.rotation=parseFloat(o.value);break;case\x2062:n.color=parseInt(o.value,10);break}e++}t.push(n)}else\x20for(e++;e<a.length&&a[e].code!==0;)e++}return\x20e}function\x20B(a,e,t){for(;e<a.length;){let\x20r=a[e];if(r.code===0&&r.value===\x22ENDSEC\x22)return\x20e+1;if(r.code===0&&r.value===\x22BLOCK\x22){e++;let\x20n={name:\x22\x22,basePoint:{x:0,y:0,z:0},entities:[],flags:0};for(;e<a.length&&a[e].code!==0;){let\x20o=a[e];switch(o.code){case\x202:n.name=o.value;break;case\x208:break;case\x2010:n.basePoint.x=parseFloat(o.value);break;case\x2020:n.basePoint.y=parseFloat(o.value);break;case\x2030:n.basePoint.z=parseFloat(o.value);break;case\x2070:n.flags=parseInt(o.value,10);break}e++}e=u(a,e,n.entities),n.name&&!n.name.startsWith(\x22*Model_Space\x22)&&!n.name.startsWith(\x22*Paper_Space\x22)&&t.set(n.name,n)}else\x20e++}return\x20e}var\x20C=\x22AutoCAD\x20Binary\x20DXF\x22,U={ANSI_874:\x22windows-874\x22,ANSI_932:\x22shift_jis\x22,ANSI_936:\x22gbk\x22,ANSI_949:\x22euc-kr\x22,ANSI_950:\x22big5\x22,ANSI_1250:\x22windows-1250\x22,ANSI_1251:\x22windows-1251\x22,ANSI_1252:\x22windows-1252\x22,ANSI_1253:\x22windows-1253\x22,ANSI_1254:\x22windows-1254\x22,ANSI_1255:\x22windows-1255\x22,ANSI_1256:\x22windows-1256\x22,ANSI_1257:\x22windows-1257\x22,ANSI_1258:\x22windows-1258\x22},G=\x22AC1021\x22;function\x20K(){return{acadVersion:\x22\x22,insUnits:0,measurement:0,ltScale:1}}function\x20j(a){return\x20a.replace(/\x5c\x5cU\x5c+([0-9A-Fa-f]{4})/g,(e,t)=>String.fromCodePoint(parseInt(t,16)))}function\x20q(a){if(typeof\x20a==\x22string\x22)return\x20j(a);let\x20e=new\x20Uint8Array(a);if(new\x20TextDecoder(\x22ascii\x22).decode(e.slice(0,C.length))===C)throw\x20new\x20i(\x22Binary\x20DXF\x20format\x20is\x20not\x20supported.\x20Please\x20export\x20as\x20ASCII\x20DXF.\x22);let\x20r=new\x20TextDecoder(\x22utf-8\x22).decode(a),o=r.match(/\x5c$ACADVER[\x5cs\x5cS]*?\x5cn\x5cs*1\x5cs*\x5cn\x5cs*(\x5cS+)/)?.[1]??\x22\x22;if(o&&o<G){let\x20s=r.match(/\x5c$DWGCODEPAGE[\x5cs\x5cS]*?\x5cn\x5cs*3\x5cs*\x5cn\x5cs*(\x5cS+)/)?.[1]??\x22\x22,p=U[s]??\x22windows-1252\x22;p!==\x22utf-8\x22&&(r=new\x20TextDecoder(p).decode(a))}return\x20j(r)}function\x20Q(a,e){for(;e<a.length;){if(a[e].code===0&&a[e].value===\x22ENDSEC\x22)return\x20e+1;e++}return\x20e}function\x20Z(a){a.layers.has(\x220\x22)||a.layers.set(\x220\x22,{name:\x220\x22,color:7,lineType:\x22Continuous\x22,flags:0,lineWeight:-3,isOff:!1,isFrozen:!1,isLocked:!1})}function\x20J(a){for(let[,e]of\x20a.layers)e.isOff=e.color<0,e.isOff&&(e.color=Math.abs(e.color)),e.isFrozen=(e.flags&1)!==0,e.isLocked=(e.flags&4)!==0}var\x20i=class\x20extends\x20Error{constructor(t,r){super(t);this.cause=r;this.name=\x22DxfParseError\x22}};function\x20M(a){if(typeof\x20a==\x22string\x22){if(a.length===0)throw\x20new\x20i(\x22Input\x20is\x20empty.\x20Expected\x20a\x20DXF\x20string\x20or\x20ArrayBuffer.\x22)}else\x20if(a\x20instanceof\x20ArrayBuffer){if(a.byteLength===0)throw\x20new\x20i(\x22Input\x20ArrayBuffer\x20is\x20empty.\x22)}else\x20throw\x20new\x20i(\x22Invalid\x20input\x20type.\x20Expected\x20a\x20string\x20or\x20ArrayBuffer.\x22);let\x20e;try{e=q(a)}catch(n){throw\x20n\x20instanceof\x20i?n:new\x20i(\x22Failed\x20to\x20decode\x20DXF\x20input.\x22,n)}let\x20t;try{t=h(e)}catch(n){throw\x20new\x20i(\x22Failed\x20to\x20tokenize\x20DXF\x20content.\x22,n)}if(t.length===0)throw\x20new\x20i(\x22DXF\x20content\x20produced\x20no\x20tokens.\x20The\x20input\x20may\x20not\x20be\x20a\x20valid\x20DXF\x20file.\x22);let\x20r={header:K(),layers:new\x20Map,lineTypes:new\x20Map,styles:new\x20Map,blocks:new\x20Map,entities:[]};try{let\x20n=0;for(;n<t.length;){let\x20o=t[n];if(o.code===0&&o.value===\x22SECTION\x22){if(n++,n>=t.length)break;let\x20c=t[n].value;switch(n++,c){case\x22HEADER\x22:n=m(t,n,r.header);break;case\x22TABLES\x22:n=k(t,n,r);break;case\x22BLOCKS\x22:n=B(t,n,r.blocks);break;case\x22ENTITIES\x22:n=u(t,n,r.entities);break;default:n=Q(t,n);break}}else{if(o.code===0&&o.value===\x22EOF\x22)break;n++}}}catch(n){throw\x20new\x20i(\x22Failed\x20to\x20parse\x20DXF\x20sections.\x22,n)}return\x20Z(r),J(r),r}self.onmessage=a=>{let{type:e,id:t,payload:r}=a.data;if(e===\x22parse\x22)try{let\x20n=M(r);postMessage({type:\x22result\x22,id:t,doc:n})}catch(n){let\x20o=n\x20instanceof\x20Error?n.message:String(n);postMessage({type:\x22error\x22,id:t,message:o})}};})();\x0a'],{'type':'text/javascript'})),this['worker']=new Worker(this['blobUrl']),this['worker']['onmessage']=c=>{const dc=b,{type:d,id:f,doc:g,message:h}=c['data'],i=this['pending']['get'](f);i&&(this[dc(0xfc)]['delete'](f),d==='result'?i['resolve'](this['reviveDocument'](g)):d==='error'&&i['reject'](new Error(h!=null?h:dc(0x166))));},this['worker']['onerror']=c=>{var d;const f=new Error((d=c['message'])!=null?d:'Worker\x20error');for(const [,g]of this['pending'])g['reject'](f);this['pending']['clear'](),this['destroyWorker']();},this['worker']);}['parse'](c){return new Promise((d,f)=>{const dd=b,g=this['nextId']++;this['pending']['set'](g,{'resolve':d,'reject':f});let h;try{h=this[dd(0x10a)]();}catch(k){this[dd(0xfc)]['delete'](g),f(k instanceof Error?k:new Error(String(k)));return;}const i={'type':'parse','id':g,'payload':c};try{c instanceof ArrayBuffer?h['postMessage'](i,[c]):h[dd(0x1ab)](i);}catch(l){this['pending'][dd(0x1a6)](g),f(l instanceof Error?l:new Error(String(l)));}});}['terminate'](){const de=aT;this['destroyWorker']();const c=new Error('Worker\x20terminated');for(const [,d]of this['pending'])d['reject'](c);this[de(0xfc)][de(0x19f)]();}['destroyWorker'](){this['worker']&&(this['worker']['terminate'](),this['worker']=null),this['blobUrl']&&(URL['revokeObjectURL'](this['blobUrl']),this['blobUrl']=null);}['reviveDocument'](c){const df=aT;return w(P({},c),{'layers':this['ensureMap'](c['layers']),'lineTypes':this['ensureMap'](c['lineTypes']),'styles':this['ensureMap'](c['styles']),'blocks':this['ensureMap'](c[df(0x138)])});}['ensureMap'](c){const dg=aT;return c instanceof Map?c:c&&typeof c==dg(0xf7)?new Map(Object[dg(0x1ff)](c)):new Map();}},Ya=class{constructor(c,d){const dh=aT;p(this,'canvas'),p(this,'renderer'),p(this,'camera'),p(this,'layerManager'),p(this,dh(0x12b)),p(this,'spatialIndex'),p(this,'measureTool'),p(this,'doc',null),p(this,dh(0x102)),p(this,'currentTool'),p(this,'inputHandler'),p(this,'resizeObserver'),p(this,dh(0x21c)),p(this,dh(0x1fa),null),p(this,'selectedEntityIndex',-0x1),p(this,'renderPending',!0x1),p(this,'destroyed',!0x1),p(this,'loadGeneration',0x0),p(this,dh(0x137),0x0),p(this,dh(0x1e6),0x0),p(this,'debugEnabled',!0x1),p(this,'debugOptions'),p(this,'lastRenderStats',null),p(this,'lastDebugStats',null),p(this,'frameTimestamps',[]),p(this,dh(0x233),0x0),p(this,'lastFrameTime',0x0),p(this,'parseTime',0x0),p(this,'spatialIndexBuildTime',0x0),p(this,'loadedFileName',null),p(this,'loadedFileSize',0x0),p(this,'debugRafId',0x0);var f,g,h,k,m,u,v;this['canvas']=c,this['options']={'theme':(f=d==null?void 0x0:d['theme'])!=null?f:'dark','backgroundColor':d==null?void 0x0:d['backgroundColor'],'antialias':(g=d==null?void 0x0:d['antialias'])!=null?g:!0x0,'minZoom':(h=d==null?void 0x0:d['minZoom'])!=null?h:0.0001,'maxZoom':(k=d==null?void 0x0:d['maxZoom'])!=null?k:0x186a0,'zoomSpeed':(m=d==null?void 0x0:d['zoomSpeed'])!=null?m:1.1,'initialTool':(u=d==null?void 0x0:d['initialTool'])!=null?u:'pan'},this['formatConverters']=(v=d==null?void 0x0:d['formatConverters'])!=null?v:[],d!=null&&d['worker']&&(this[dh(0x1fa)]=new Ba()),d!=null&&d['debug']?(this['debugEnabled']=!0x0,this['debugOptions']=ce(typeof d['debug']=='boolean'?void 0x0:d[dh(0x1c0)])):this['debugOptions']=ce(),this['renderer']=new ma(c),this['camera']=new Nt(this['options']),this['layerManager']=new ka(),this['emitter']=new ya(),this['spatialIndex']=new Ia(),this['measureTool']=new Da(),this['currentTool']=this[dh(0x102)][dh(0xf4)],this['inputHandler']=new Pa(c,this),this['resizeObserver']=new ResizeObserver(()=>this['resize']()),this['resizeObserver'][dh(0x1d8)](c),c['style']['cursor']=this['getCursorForTool'](this[dh(0x1cf)]),this['requestRender'](),this['debugEnabled']&&this['startDebugLoop']();}['guardDestroyed'](){const di=aT;if(this[di(0x235)])throw new Error('CadViewer:\x20cannot\x20call\x20methods\x20on\x20a\x20destroyed\x20instance.');}['runConverters'](c){return H(this,null,function*(){for(const d of this['formatConverters']){let f=!0x1;try{f=d['detect'](c);}catch(g){continue;}if(f)return d['convert'](c);}return null;});}['loadFile'](c){return H(this,null,function*(){const dj=b;this['guardDestroyed']();const d=++this['loadGeneration'];this['loadedFileName']=c['name'],this['loadedFileSize']=c['size'];const f=yield c['arrayBuffer']();if(this['destroyed']||d!==this['loadGeneration'])return;const g=yield this['runConverters'](f);if(this['destroyed']||d!==this['loadGeneration'])return;const h=performance['now'](),i=g!=null?g:f;this['doc']=yield this['parseWithOptionalWorker'](i,d),!(this[dj(0x235)]||d!==this['loadGeneration'])&&(this['parseTime']=performance['now']()-h,this['onDocumentLoaded']());});}['loadBuffer'](c){return H(this,null,function*(){const dk=b;this[dk(0x175)]();const d=++this[dk(0x11b)];this[dk(0x17b)]=null,this['loadedFileSize']=c['byteLength'];const f=yield this[dk(0x176)](c);if(this['destroyed']||d!==this['loadGeneration'])return;const g=performance['now'](),h=f!=null?f:c;this['doc']=yield this['parseWithOptionalWorker'](h,d),!(this['destroyed']||d!==this['loadGeneration'])&&(this[dk(0x1e3)]=performance['now']()-g,this['onDocumentLoaded']());});}[aT(0x20e)](c,d){return H(this,null,function*(){const dl=b;if(!this['workerManager'])return le(c);try{return yield this[dl(0x1fa)]['parse'](c);}catch(f){if(this['destroyed']||d!==this['loadGeneration'])return null;throw f;}});}['loadDocument'](c){const dm=aT;if(this['guardDestroyed'](),++this['loadGeneration'],this['loadedFileName']=null,this[dm(0x151)]=0x0,this['parseTime']=0x0,!c||!Array[dm(0x198)](c['entities'])||!(c['layers']instanceof Map))throw new Error('CadViewer:\x20invalid\x20DxfDocument\x20—\x20expected\x20entities\x20array\x20and\x20layers\x20Map.');this['doc']=c,this['onDocumentLoaded']();}['loadString'](c){const dn=aT;this['guardDestroyed'](),++this['loadGeneration'],this['loadedFileName']=null,this['loadedFileSize']=c[dn(0x202)];const d=performance[dn(0x171)]();this[dn(0x185)]=le(c),this['parseTime']=performance['now']()-d,this[dn(0x200)]();}['loadArrayBuffer'](c){const dp=aT;this['guardDestroyed'](),++this[dp(0x11b)],this['loadedFileName']=null,this[dp(0x151)]=c['byteLength'];const d=performance['now']();this['doc']=le(c),this['parseTime']=performance[dp(0x171)]()-d,this['onDocumentLoaded']();}['clearDocument'](){const dq=aT;this['guardDestroyed'](),++this['loadGeneration'],this['doc']=null,this['selectedEntityIndex']=-0x1,this['spatialIndex']['clear'](),Ie(),this[dq(0x17f)]['clear'](),this[dq(0x1a7)]['deactivate'](),this[dq(0xf2)]();}['onDocumentLoaded'](){const dr=aT;if(!this['doc'])return;this['layerManager'][dr(0x189)](this['doc'][dr(0x240)]);const c=performance['now']();this['spatialIndex'][dr(0x18d)](this['doc'][dr(0x12a)],this['doc']),Jt(Qt(this[dr(0x185)])),this['spatialIndexBuildTime']=performance['now']()-c,this[dr(0x20c)]=-0x1,this['measureTool']['deactivate'](),this['currentTool']==='measure'&&this['measureTool']['activate'](),this['fitToView']();}['fitToView'](){const ds=aT;if(this['guardDestroyed'](),!this['doc'])return;const c=this['computeDocumentBounds']();if(!c)return;const d=this['canvas']['getBoundingClientRect']();this['camera']['setTransform'](Dt(d['width'],d['height'],c[ds(0x253)],c[ds(0xfe)],c['maxX'],c[ds(0x111)])),this['requestRender'](),this['emitter']['emit']('viewchange',this['camera']['getTransform']());}['zoomTo'](c){const du=aT;this['guardDestroyed']();const d=this['canvas']['getBoundingClientRect'](),f=d[du(0x1ec)]/0x2,g=d[du(0xff)]/0x2,h=c/this['camera']['getTransform']()['scale'];this['camera']['zoom'](f,g,h),this['requestRender'](),this['emitter']['emit']('viewchange',this['camera']['getTransform']());}['panTo'](c,d){const dv=aT;this['guardDestroyed']();const f=this[dv(0x19b)][dv(0x17a)](),g=this['camera']['getTransform'](),h=c*g['scale']+g['offsetX'],k=-d*g['scale']+g['offsetY'],l=f['width']/0x2-h,m=f[dv(0xff)]/0x2-k;this['camera']['pan'](l,m),this['requestRender'](),this['emitter']['emit']('viewchange',this['camera']['getTransform']());}['getViewTransform'](){return P({},this['camera']['getTransform']());}['getZoomSpeed'](){const dw=aT;return this[dw(0x102)]['zoomSpeed'];}['getLayers'](){return this['layerManager']['getAllLayers']();}[aT(0x1bc)](c,d){this['guardDestroyed'](),this['layerManager']['setVisible'](c,d),this['requestRender']();}[aT(0x1c2)](c,d){const dx=aT;this['guardDestroyed'](),this['layerManager'][dx(0x139)](c,d),this['requestRender']();}['setTheme'](c){this['guardDestroyed'](),this['options']['theme']=c,this['requestRender']();}[aT(0x244)](){return this['options']['theme'];}['setBackgroundColor'](c){this['guardDestroyed'](),this['options']['backgroundColor']=c,this['requestRender']();}[aT(0x20d)](c){const dy=aT;this['guardDestroyed'](),this['currentTool']==='measure'&&c!=='measure'&&this[dy(0x1a7)]['deactivate'](),this['currentTool']=c,this['canvas']['style']['cursor']=this['getCursorForTool'](c),c===dy(0x242)&&this['measureTool'][dy(0x1c3)](),c!=='select'&&(this['selectedEntityIndex']=-0x1),this['requestRender']();}['getTool'](){return this['currentTool'];}['getCursorForTool'](c){const dz=aT;switch(c){case'pan':return'grab';case dz(0x1a0):return dz(0x11f);case'measure':return'crosshair';}}['on'](c,d){const dA=aT;this[dA(0x12b)]['on'](c,d);}['off'](c,d){this['emitter']['off'](c,d);}['getDocument'](){return this['doc'];}['getEntities'](){const dB=aT;var c,d;return(d=(c=this[dB(0x185)])==null?void 0x0:c['entities'])!=null?d:[];}[aT(0x10c)](){const dC=aT;this[dC(0x1d1)]['updateSize'](),this['requestRender']();}['destroy'](){const dD=aT;var c;this['destroyed']=!0x0,this[dD(0x12c)](),this['inputHandler']['destroy'](),this['resizeObserver']['disconnect'](),this[dD(0x1d1)]['destroy'](),this['emitter']['removeAllListeners'](),this['spatialIndex'][dD(0x19f)](),Ie(),this[dD(0x17f)][dD(0x19f)](),(c=this['workerManager'])==null||c['terminate'](),this['workerManager']=null,this['doc']=null;}[aT(0xf2)](){const dE=aT;if(!this['destroyed']){if(this[dE(0x196)]){this['doRender']();return;}this['renderPending']||(this['renderPending']=!0x0,requestAnimationFrame(()=>{const dF=dE;this['renderPending']=!0x1,!this[dF(0x235)]&&this['doRender']();}));}}[aT(0x1d6)](){const dG=aT;if(!this['doc']){this['renderer']['renderEmpty'](this['options']['theme']);return;}const d=this['camera']['getTransform'](),f=this['renderer']['getWidth'](),g=this['renderer'][dG(0x1d0)](),k=this['computeViewportBounds'](d,f,g),m=this['spatialIndex'][dG(0x1c7)](k['minX'],k['minY'],k['maxX'],k['maxY']),u=new Set();for(let A=0x0;A<m['length'];A++)u['add'](m[A]['entityIndex']);const v=performance['now'](),x=this['renderer'][dG(0x119)](this['doc'],d,this['options']['theme'],this['layerManager'][dG(0x22a)](),this[dG(0x20c)],u,this['spatialIndex'][dG(0x1cd)]());this['lastFrameTime']=performance['now']()-v,this['lastRenderStats']=x;const y=performance['now']();for(y-this['lastDoRenderTime']>=0x3&&this['frameTimestamps'][dG(0x223)](y),this['lastDoRenderTime']=y;this['frameTimestamps']['length']>0x0&&this[dG(0x1bd)][0x0]<y-0x3e8;)this['frameTimestamps']['shift']();if(this['currentTool']==='measure'&&this['measureTool']['state']['phase']!=='idle'){const C=this['renderer'][dG(0x1ea)]();La(C,this[dG(0x23f)]['getTransform'](),this['measureTool'],this[dG(0x137)],this['mouseScreenY'],this['options'][dG(0x107)]);}if(this['debugEnabled']){const D=this['renderer']['getContext'](),F=this[dG(0x144)]();this['lastDebugStats']=F,xa(D,F,this['options']['theme'],this['debugOptions'],this[dG(0x1d1)]['getWidth'](),this['renderer']['getHeight']());}}['setDebug'](c){const dH=aT;this['guardDestroyed'](),typeof c=='boolean'?this['debugEnabled']=c:(this['debugEnabled']=!0x0,this[dH(0x1d5)]=ce(c)),this['debugEnabled']?this[dH(0x177)]():(this['stopDebugLoop'](),this['requestRender']());}['startDebugLoop'](){if(this['debugRafId'])return;const c=()=>{const dI=b;if(!this['debugEnabled']||this['destroyed']){this[dI(0x196)]=0x0;return;}this['doRender'](),this['debugRafId']=requestAnimationFrame(c);};this['debugRafId']=requestAnimationFrame(c);}['stopDebugLoop'](){const dJ=aT;this['debugRafId']&&(cancelAnimationFrame(this['debugRafId']),this[dJ(0x196)]=0x0);}['getDebugStats'](){return this['debugEnabled']?this['lastDebugStats']:null;}['buildDebugStats'](){const dK=aT;var f,g,k,m,v,x,y,A,C;const D=this['camera']['getTransform'](),F=this[dK(0x1d1)][dK(0x1d4)](),I=this['renderer']['getHeight'](),L=this[dK(0x116)](D,F,I);return{'fps':this[dK(0x1bd)]['length'],'frameTime':this['lastFrameTime'],'renderStats':(f=this['lastRenderStats'])!=null?f:{'entitiesDrawn':0x0,'entitiesSkipped':0x0,'drawCalls':0x0,'byType':{}},'entityCount':(k=(g=this['doc'])==null?void 0x0:g['entities'][dK(0x202)])!=null?k:0x0,'layerCount':(v=(m=this[dK(0x185)])==null?void 0x0:m['layers']['size'])!=null?v:0x0,'visibleLayerCount':this['layerManager']['getVisibleLayerNames']()['size'],'blockCount':(y=(x=this['doc'])==null?void 0x0:x['blocks']['size'])!=null?y:0x0,'parseTime':this[dK(0x1e3)],'spatialIndexBuildTime':this['spatialIndexBuildTime'],'totalLoadTime':this['parseTime']+this['spatialIndexBuildTime'],'zoom':D['scale'],'pixelSize':D['scale']>0x0?0x1/D[dK(0x18c)]:0x0,'viewportBounds':L,'fileName':this['loadedFileName'],'fileSize':this['loadedFileSize'],'dxfVersion':(C=(A=this['doc'])==null?void 0x0:A[dK(0x165)]['acadVersion'])!=null?C:null};}['computeViewportBounds'](c,d,f){const dL=aT,[g,h]=K(c,0x0,f),[i,k]=K(c,d,0x0);return{'minX':Math[dL(0x159)](g,i),'minY':Math['min'](h,k),'maxX':Math['max'](g,i),'maxY':Math['max'](h,k)};}['handlePan'](c,d){const dM=aT;this['camera']['pan'](c,d),this['requestRender'](),this['emitter']['emit'](dM(0x162),this[dM(0x23f)]['getTransform']());}['handleZoom'](c,d,f){this['camera']['zoom'](c,d,f),this['requestRender'](),this['emitter']['emit']('viewchange',this['camera']['getTransform']());}['handleClick'](c,d){const dN=aT;if(!this['doc'])return;const f=this['camera']['getTransform'](),[g,h]=K(f,c,d);switch(this['currentTool']){case'select':this[dN(0x1c4)](g,h,c,d);break;case'measure':{const k=Ee(g,h,this['doc']['entities'],this['spatialIndex'],f['scale']),l=k['length']>0x0?k[0x0]:null,m=this['measureTool']['handleClick'](g,h,l);this['requestRender'](),m&&this['emitter']['emit']('measure',m);break;}}}[aT(0x22b)](c,d){const dO=aT;var f;if(this['mouseScreenX']=c,this['mouseScreenY']=d,this[dO(0x1cf)]==='measure'&&this['doc']){const g=this['camera']['getTransform'](),[h,i]=K(g,c,d),k=Ee(h,i,this['doc']['entities'],this['spatialIndex'],g['scale']);this[dO(0x1a7)]['handleMove']((f=k[0x0])!=null?f:null),this['requestRender']();}}['handleSelect'](c,d,f,g){const dP=aT;if(!this['doc'])return;const h=Ta(c,d,this['doc']['entities'],this['spatialIndex'],this['layerManager']['getVisibleLayerNames'](),this['camera']['getTransform']()[dP(0x18c)]);if(this[dP(0x20c)]=h,this['requestRender'](),h>=0x0&&this[dP(0x185)]){const i=this[dP(0x185)]['entities'][h];i&&this[dP(0x12b)]['emit']('select',{'entity':i,'entityIndex':h,'worldPoint':{'x':c,'y':d},'screenPoint':{'x':f,'y':g}});}}['computeDocumentBounds'](){const dQ=aT;return this['doc']?this['doc'][dQ(0x165)]['extMin']&&this['doc']['header']['extMax']?{'minX':this['doc']['header']['extMin']['x'],'minY':this['doc'][dQ(0x165)]['extMin']['y'],'maxX':this['doc']['header']['extMax']['x'],'maxY':this['doc']['header']['extMax']['y']}:Kt(this['doc']['entities']):null;}};export{Ya as CadViewer,Nt as Camera,ma as CanvasRenderer,B as DxfParseError,ya as EventEmitter,ka as LayerManager,Da as MeasureTool,Ia as SpatialIndex,X as THEMES,Ct as aciToHex,Pe as applyTransform,Kt as computeEntitiesBounds,_ as computeEntityBBox,re as drawEntity,Ee as findSnaps,Dt as fitToView,Ta as hitTest,le as parseDxf,xa as renderDebugOverlay,La as renderMeasureOverlay,ue as resolveEntityColor,K as screenToWorld,U as worldToScreen,Lt as zoomAtPoint};
1
+ function b(){const l=['13180779WOgYpZ','2523057NfXFaq','8001155GBBgEr','29992290AAEXIn','35lemGpc','1281344jXLpbp','4KfuqWM','4zSnoXB','66362ZKRQaY','4468392GxyhGz'];b=function(){return l;};return b();}(function(f,g){const k=c,h=f();while(!![]){try{const i=parseInt(k(0x17a))/0x1*(parseInt(k(0x17c))/0x2)+-parseInt(k(0x17f))/0x3*(-parseInt(k(0x17b))/0x4)+-parseInt(k(0x180))/0x5+parseInt(k(0x17d))/0x6+parseInt(k(0x182))/0x7*(-parseInt(k(0x183))/0x8)+-parseInt(k(0x17e))/0x9+parseInt(k(0x181))/0xa;if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(b,0xd0086));import d,{defineAsyncComponent as e}from'vue';const p=e(()=>import('./PptxRender.js'));function c(a,d){a=a-0x17a;const e=b();let f=e[a];return f;}async function a(f,g){return new d({'render':h=>h(p,{'props':{'data':f}})})['$mount'](g);}export{a as default};