anyfile-cli 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/LICENSE +177 -0
  2. package/README.md +56 -2
  3. package/SKILL.md +101 -0
  4. package/chunks/browser-probe-5STDX455.mjs +17 -0
  5. package/chunks/browser-probe-F5RX44T3.mjs +24 -0
  6. package/chunks/chunk-2C34VMNV.mjs +108 -0
  7. package/chunks/chunk-3OZ56PUH.mjs +97 -0
  8. package/chunks/chunk-3YRWCQGV.mjs +38 -0
  9. package/chunks/chunk-53MJMIN4.mjs +23 -0
  10. package/chunks/chunk-5LOC7IST.mjs +372 -0
  11. package/chunks/chunk-5OI4NQH7.mjs +2232 -0
  12. package/chunks/chunk-5XTYLZF3.mjs +559 -0
  13. package/chunks/chunk-5ZHDYRGV.mjs +64 -0
  14. package/chunks/chunk-6CQL4K2K.mjs +21 -0
  15. package/chunks/chunk-6EVJJFOH.mjs +243 -0
  16. package/chunks/chunk-6NWSQGYE.mjs +68 -0
  17. package/chunks/chunk-7O5JLQE7.mjs +1 -0
  18. package/chunks/chunk-A6AQI6DF.mjs +321 -0
  19. package/chunks/chunk-AYF63UBE.mjs +79 -0
  20. package/chunks/chunk-B27PR6Q4.mjs +17 -0
  21. package/chunks/chunk-BP7LORL4.mjs +13 -0
  22. package/chunks/chunk-BVCRJLCD.mjs +109 -0
  23. package/chunks/chunk-CLSEE3VA.mjs +28 -0
  24. package/chunks/chunk-CO2ZAQIK.mjs +52 -0
  25. package/chunks/chunk-CQWM5GMU.mjs +167 -0
  26. package/chunks/chunk-CZFFYCMJ.mjs +136 -0
  27. package/chunks/chunk-D3CS6TIK.mjs +419 -0
  28. package/chunks/chunk-DJLFVMDJ.mjs +807 -0
  29. package/chunks/chunk-DJXVCKIO.mjs +30 -0
  30. package/chunks/chunk-EMXODK3K.mjs +94 -0
  31. package/chunks/chunk-EOJ7ZCDK.mjs +227 -0
  32. package/chunks/chunk-H4TBN22D.mjs +100 -0
  33. package/chunks/chunk-HUSX3ZU3.mjs +58 -0
  34. package/chunks/chunk-IC3G2XE2.mjs +436 -0
  35. package/chunks/chunk-IZGTVZHE.mjs +90 -0
  36. package/chunks/chunk-J4G7LUPA.mjs +117 -0
  37. package/chunks/chunk-JBAJW66L.mjs +4220 -0
  38. package/chunks/chunk-JKQUF2MM.mjs +438 -0
  39. package/chunks/chunk-KAMPC5TK.mjs +131 -0
  40. package/chunks/chunk-KSKEMJVC.mjs +145 -0
  41. package/chunks/chunk-LRHHRZLE.mjs +29 -0
  42. package/chunks/chunk-M37ZOAUG.mjs +93 -0
  43. package/chunks/chunk-MG7LUDXO.mjs +187 -0
  44. package/chunks/chunk-NGVHHTQD.mjs +125 -0
  45. package/chunks/chunk-NQ7J2NH6.mjs +50 -0
  46. package/chunks/chunk-NUMNHVSI.mjs +60 -0
  47. package/chunks/chunk-ORJ3DN65.mjs +58 -0
  48. package/chunks/chunk-QOUEBPPL.mjs +15 -0
  49. package/chunks/chunk-QR3Y3UKM.mjs +194 -0
  50. package/chunks/chunk-RFKYE7SE.mjs +50 -0
  51. package/chunks/chunk-SH57XOAV.mjs +33 -0
  52. package/chunks/chunk-TB5ISPA4.mjs +1 -0
  53. package/chunks/chunk-UGAU3V4V.mjs +206 -0
  54. package/chunks/chunk-UUN2DVDC.mjs +1893 -0
  55. package/chunks/chunk-WDN6NMVU.mjs +36 -0
  56. package/chunks/chunk-WWTLSPEG.mjs +3999 -0
  57. package/chunks/chunk-XDW56XVX.mjs +69 -0
  58. package/chunks/chunk-XRT7TAAY.mjs +27 -0
  59. package/chunks/chunk-XTW4HNIJ.mjs +418 -0
  60. package/chunks/chunk-YPLWNGCC.mjs +17 -0
  61. package/chunks/chunk-ZBR7RQQE.mjs +64 -0
  62. package/chunks/chunk-ZUHJIGHP.mjs +300 -0
  63. package/chunks/deflate-IINN6MRE.mjs +19 -0
  64. package/chunks/jpeg-N3DSYEAQ.mjs +964 -0
  65. package/chunks/jxl_oxide_wasm-3UN6G3YN.mjs +589 -0
  66. package/chunks/lerc-5LP7Q554.mjs +2086 -0
  67. package/chunks/lzw-Z2ZZBEWD.mjs +137 -0
  68. package/chunks/packbits-3S2JASDB.mjs +34 -0
  69. package/chunks/pdf.worker-PUGU2NS2.mjs +67416 -0
  70. package/chunks/probe-22WNVZ3I.mjs +17 -0
  71. package/chunks/probe-2P4CTFCY.mjs +14 -0
  72. package/chunks/probe-2QBNDPYK.mjs +18 -0
  73. package/chunks/probe-34TOVXUI.mjs +11 -0
  74. package/chunks/probe-3W2HOWBM.mjs +20 -0
  75. package/chunks/probe-42OBMD35.mjs +23 -0
  76. package/chunks/probe-43RVHUBG.mjs +17 -0
  77. package/chunks/probe-4O362IEX.mjs +18 -0
  78. package/chunks/probe-4WF34ZXS.mjs +11 -0
  79. package/chunks/probe-5ZITS3T5.mjs +40 -0
  80. package/chunks/probe-5ZS5DHFP.mjs +21 -0
  81. package/chunks/probe-62RFYKCP.mjs +14 -0
  82. package/chunks/probe-64JTFRH4.mjs +41 -0
  83. package/chunks/probe-6YJQJJ3R.mjs +518 -0
  84. package/chunks/probe-6YMOOV53.mjs +39 -0
  85. package/chunks/probe-BYBD2WAK.mjs +239 -0
  86. package/chunks/probe-CZZNJOHV.mjs +20 -0
  87. package/chunks/probe-DJMPK6HU.mjs +11 -0
  88. package/chunks/probe-FMWIF4LX.mjs +33 -0
  89. package/chunks/probe-FYPH6CYY.mjs +206 -0
  90. package/chunks/probe-G6PPXKBE.mjs +15 -0
  91. package/chunks/probe-GJ5OUOQ3.mjs +32 -0
  92. package/chunks/probe-H6J7TUY2.mjs +95 -0
  93. package/chunks/probe-IGZ47OE3.mjs +68 -0
  94. package/chunks/probe-IL5HO3OK.mjs +46 -0
  95. package/chunks/probe-INYCDZHO.mjs +27 -0
  96. package/chunks/probe-JFH545GO.mjs +11 -0
  97. package/chunks/probe-JZYDRITV.mjs +18 -0
  98. package/chunks/probe-K3WW5O5K.mjs +26 -0
  99. package/chunks/probe-KB4T466L.mjs +70 -0
  100. package/chunks/probe-KY7SIIXD.mjs +13 -0
  101. package/chunks/probe-L2P263WT.mjs +16 -0
  102. package/chunks/probe-LEP3RQPD.mjs +11 -0
  103. package/chunks/probe-M2QWULOI.mjs +119 -0
  104. package/chunks/probe-M7AYZBD3.mjs +35 -0
  105. package/chunks/probe-MEN3BMBB.mjs +22 -0
  106. package/chunks/probe-MNIGKDWT.mjs +163 -0
  107. package/chunks/probe-NFVFWB4M.mjs +56 -0
  108. package/chunks/probe-NJGSTL6R.mjs +161 -0
  109. package/chunks/probe-O73EHWT3.mjs +14 -0
  110. package/chunks/probe-OG2XYCG2.mjs +25 -0
  111. package/chunks/probe-OTKJKTNS.mjs +10 -0
  112. package/chunks/probe-OZKO3C2V.mjs +27 -0
  113. package/chunks/probe-PBL4KITG.mjs +12 -0
  114. package/chunks/probe-PEFZNH2T.mjs +21 -0
  115. package/chunks/probe-R4SSEXES.mjs +27 -0
  116. package/chunks/probe-RCAUVV27.mjs +29 -0
  117. package/chunks/probe-RPGBKGPI.mjs +20 -0
  118. package/chunks/probe-S2I46SEO.mjs +10 -0
  119. package/chunks/probe-SGDD4U4Q.mjs +165 -0
  120. package/chunks/probe-SPQO5LHI.mjs +9 -0
  121. package/chunks/probe-TBR6UGRZ.mjs +19 -0
  122. package/chunks/probe-TNKNILAW.mjs +21 -0
  123. package/chunks/probe-TVRJBPXH.mjs +48 -0
  124. package/chunks/probe-UESMTUQ5.mjs +33 -0
  125. package/chunks/probe-VDXFEZ5Q.mjs +16 -0
  126. package/chunks/probe-VX7JCDW6.mjs +39 -0
  127. package/chunks/probe-W7M55OPE.mjs +64 -0
  128. package/chunks/probe-XUBTIWGE.mjs +13 -0
  129. package/chunks/probe-ZF7KIRHO.mjs +36 -0
  130. package/chunks/raw-JJRPYAXO.mjs +16 -0
  131. package/chunks/tiff-metadata-7MWLNVW2.mjs +2990 -0
  132. package/chunks/webimage-D6XSCCTJ.mjs +56 -0
  133. package/chunks/zip-reader-YUGANW4Z.mjs +92 -0
  134. package/chunks/zstd-AH2S24PU.mjs +121 -0
  135. package/cli-main.mjs +278 -0
  136. package/cli.mjs +3 -0
  137. package/extractors/apple-plist.mjs +145 -0
  138. package/extractors/archive-metadata-viewer.mjs +1401 -0
  139. package/extractors/bittorrent-metadata.mjs +369 -0
  140. package/extractors/calendar-contacts.mjs +328 -0
  141. package/extractors/camera-raw.mjs +201 -0
  142. package/extractors/chm-reader.mjs +1842 -0
  143. package/extractors/comic-book-reader.mjs +307 -0
  144. package/extractors/design-source.mjs +1801 -0
  145. package/extractors/dev-array-viewer.mjs +825 -0
  146. package/extractors/dev-native-binary-viewer.mjs +1661 -0
  147. package/extractors/dev-source-map-viewer.mjs +416 -0
  148. package/extractors/dev-wasm-viewer.mjs +506 -0
  149. package/extractors/dicom.mjs +383 -0
  150. package/extractors/djvu-reader.mjs +337 -0
  151. package/extractors/duckdb-data.mjs +49174 -0
  152. package/extractors/epub-reader.mjs +222 -0
  153. package/extractors/excel-workbook.mjs +27057 -0
  154. package/extractors/fictionbook-reader.mjs +362 -0
  155. package/extractors/font-viewer.mjs +441 -0
  156. package/extractors/general-raster.mjs +444 -0
  157. package/extractors/hdr-image.mjs +1685 -0
  158. package/extractors/http-archive.mjs +306 -0
  159. package/extractors/ifc.mjs +341 -0
  160. package/extractors/iwork.mjs +640 -0
  161. package/extractors/microsoft-project.mjs +174 -0
  162. package/extractors/mind-map.mjs +607 -0
  163. package/extractors/ml-weights.mjs +649 -0
  164. package/extractors/modern-raster.mjs +620 -0
  165. package/extractors/ofd-reader.mjs +973 -0
  166. package/extractors/outlook-pst.mjs +997 -0
  167. package/extractors/pdfjs-pdf.mjs +32056 -0
  168. package/extractors/photoshop-document.mjs +17448 -0
  169. package/extractors/safe-svg.mjs +163 -0
  170. package/extractors/scientific-data.mjs +2041 -0
  171. package/extractors/sqlite-database.mjs +333 -0
  172. package/extractors/statistical-data.mjs +297 -0
  173. package/extractors/visio.mjs +141 -0
  174. package/extractors/x509-certificate.mjs +588 -0
  175. package/extractors/xps-reader.mjs +896 -0
  176. package/index.mjs +83 -0
  177. package/licenses/dicom-parser/1.8.21/LICENSE +21 -0
  178. package/licenses/libraw-wasm/1.6.0/COPYRIGHT.LibRaw +27 -0
  179. package/licenses/libraw-wasm/1.6.0/LICENSE.Emscripten +102 -0
  180. package/licenses/libraw-wasm/1.6.0/LICENSE.LibRaw-CDDL-1.0 +340 -0
  181. package/licenses/libraw-wasm/1.6.0/LICENSE.Little-CMS-MIT +22 -0
  182. package/licenses/libraw-wasm/1.6.0/LICENSE.libpng +134 -0
  183. package/licenses/libraw-wasm/1.6.0/LICENSE.libraw-wasm-ISC +15 -0
  184. package/licenses/libraw-wasm/1.6.0/LICENSE.zlib +22 -0
  185. package/licenses/libraw-wasm/1.6.0/NOTICE.IJG-libjpeg +49 -0
  186. package/licenses/libraw-wasm/1.6.0/SOURCE.md +25 -0
  187. package/licenses/libraw-wasm/1.6.0/THIRD_PARTY_NOTICES.md +14 -0
  188. package/licenses/mediabunny/1.55.3/MPL-2.0.txt +373 -0
  189. package/licenses/mediabunny/1.55.3/SOURCE.md +16 -0
  190. package/licenses/openskp/1.3.0/LICENSE +21 -0
  191. package/package.json +33 -3
  192. package/renderer-host/assets/ColladaComposer-TCm9fgZa.js +1 -0
  193. package/renderer-host/assets/ColladaParser-BHTzbhBz.js +3 -0
  194. package/renderer-host/assets/FBXLoader-D1vDnL3o.js +8 -0
  195. package/renderer-host/assets/agent-CKvDbj87.js +1 -0
  196. package/renderer-host/assets/amf-CLBaywBr.js +1 -0
  197. package/renderer-host/assets/animation-DnPo99To.js +1 -0
  198. package/renderer-host/assets/archive-client-CyhEmSF7.js +1 -0
  199. package/renderer-host/assets/archive.worker-CcLnJ9FC.js +1 -0
  200. package/renderer-host/assets/audio-visualizer-CiyGNhY2.js +1 -0
  201. package/renderer-host/assets/basedecoder-BuG7fe0q.js +1 -0
  202. package/renderer-host/assets/book-source-28BQcBKR.js +1 -0
  203. package/renderer-host/assets/book-worker-DrtzCzPo.js +1 -0
  204. package/renderer-host/assets/browser-C0pGRq_c.js +1 -0
  205. package/renderer-host/assets/client-Dp-p4unY.js +1 -0
  206. package/renderer-host/assets/container-inspection-DZoaDYQR.js +1 -0
  207. package/renderer-host/assets/data-table-OJQe3aN5.js +1 -0
  208. package/renderer-host/assets/decode-D5vB6JN8.js +1 -0
  209. package/renderer-host/assets/decode-tiff-BuYdKp6p.js +5 -0
  210. package/renderer-host/assets/decoder-worker-B0sdTVlF.js +1 -0
  211. package/renderer-host/assets/decoder-worker-CBiHE971.js +3 -0
  212. package/renderer-host/assets/decoder-worker-Cr5oP97p.js +5 -0
  213. package/renderer-host/assets/decoder-worker-DIdLFebY.js +11 -0
  214. package/renderer-host/assets/decoder-worker-DLeuEYxq.js +1 -0
  215. package/renderer-host/assets/decoder.worker-BXAaF0Qj.js +1 -0
  216. package/renderer-host/assets/decoder.worker-yaM6uups.js +1 -0
  217. package/renderer-host/assets/deflate-DPjr4M2G.js +1 -0
  218. package/renderer-host/assets/deflate-S3QmZI-f.js +1 -0
  219. package/renderer-host/assets/dual-track-playback-lNQyU1GR.js +1 -0
  220. package/renderer-host/assets/ext-searchbox-BIdon51Z.js +164 -0
  221. package/renderer-host/assets/ffmpeg-playback-QcT_NwlK.js +1 -0
  222. package/renderer-host/assets/gltf-Cqq-xStc.js +1 -0
  223. package/renderer-host/assets/hdf5.worker-BO3TrRup.js +1 -0
  224. package/renderer-host/assets/heif-worker-CC9DI3ZR.js +1 -0
  225. package/renderer-host/assets/id3-uzaDmDwy.js +1 -0
  226. package/renderer-host/assets/ifc.worker-KIbgAIsy.js +1 -0
  227. package/renderer-host/assets/image-load-B1fNI3iO.js +1 -0
  228. package/renderer-host/assets/index-BCxD9rBl.js +2 -0
  229. package/renderer-host/assets/jpeg-AGQ46WDa.js +1 -0
  230. package/renderer-host/assets/jpeg-Dm0yBuYB.js +1 -0
  231. package/renderer-host/assets/jszip.min-DCdQ6XWv.js +2 -0
  232. package/renderer-host/assets/jxl_oxide_wasm-BJKDqoXP.js +1 -0
  233. package/renderer-host/assets/jxl_oxide_wasm_bg-C5JqlrFv.wasm +0 -0
  234. package/renderer-host/assets/kernel.worker-B58X9XWu.js +1 -0
  235. package/renderer-host/assets/kernel.worker-BcQYKb39.js +8 -0
  236. package/renderer-host/assets/kernel.worker-BdWmPdqg.js +1 -0
  237. package/renderer-host/assets/kernel.worker-C7qxomuK.js +1 -0
  238. package/renderer-host/assets/kernel.worker-D88TbQnz.js +1 -0
  239. package/renderer-host/assets/laz-Lt10LsWd.js +1 -0
  240. package/renderer-host/assets/lerc-BxVqCKaH.js +3 -0
  241. package/renderer-host/assets/lerc-CRhfhhOS.js +1 -0
  242. package/renderer-host/assets/lzw-D2FslT4L.js +1 -0
  243. package/renderer-host/assets/lzw-DODNa9l5.js +1 -0
  244. package/renderer-host/assets/mediabunny-viewer-BnJM6Yo0.js +16 -0
  245. package/renderer-host/assets/model-D2YSoRt5.js +1 -0
  246. package/renderer-host/assets/obj-DbUZkDna.js +9 -0
  247. package/renderer-host/assets/off-CzR_R_Tf.js +1 -0
  248. package/renderer-host/assets/ogg-probe-C2TT74FL.js +1 -0
  249. package/renderer-host/assets/ogg-viewer-CT31JEhG.js +9 -0
  250. package/renderer-host/assets/packbits-DCimUQ1T.js +1 -0
  251. package/renderer-host/assets/paged-CX-N_Pzy.js +319 -0
  252. package/renderer-host/assets/pako.esm-0UYEm1Jg.js +2 -0
  253. package/renderer-host/assets/pako.esm-CtVA0R7W.js +1 -0
  254. package/renderer-host/assets/pdf.worker.min-CHFwMXne.mjs +29 -0
  255. package/renderer-host/assets/ply-C-xrhUaO.js +2 -0
  256. package/renderer-host/assets/points.worker-CA8v75dl.js +2 -0
  257. package/renderer-host/assets/probe-asf-CvcaYQaR.js +14 -0
  258. package/renderer-host/assets/range-reader-9PeAh1Hv.js +1 -0
  259. package/renderer-host/assets/raw-A-vJRPpa.js +1 -0
  260. package/renderer-host/assets/resource-cache-CHocY8K3.js +1 -0
  261. package/renderer-host/assets/resources-WcZvn3-C.js +1 -0
  262. package/renderer-host/assets/rolldown-runtime-Dd_uD5pT.js +1 -0
  263. package/renderer-host/assets/safe-content-B61Ktgzp.js +1 -0
  264. package/renderer-host/assets/sanitize-D56ODnaM.js +1 -0
  265. package/renderer-host/assets/scene-adapter-CmaaVwsM.js +1 -0
  266. package/renderer-host/assets/scene.worker-CJViWLYo.js +24 -0
  267. package/renderer-host/assets/scene.worker-D7koFZY8.js +2 -0
  268. package/renderer-host/assets/skp-adapter-ByI1iX8S.js +1 -0
  269. package/renderer-host/assets/skp.worker-D9ujTXFV.js +1 -0
  270. package/renderer-host/assets/src-0DTp6SF8.js +1 -0
  271. package/renderer-host/assets/src-0QHjkpy0.js +44 -0
  272. package/renderer-host/assets/src-2X3Gt6Lk.js +2 -0
  273. package/renderer-host/assets/src-2tfD0huT.js +16 -0
  274. package/renderer-host/assets/src-5ZJshveh.js +29 -0
  275. package/renderer-host/assets/src-9k3CCYnZ.js +1 -0
  276. package/renderer-host/assets/src-B0zJlB0C.js +27 -0
  277. package/renderer-host/assets/src-B4jorJ2U.js +100 -0
  278. package/renderer-host/assets/src-BB6xj1UK.js +18 -0
  279. package/renderer-host/assets/src-BEn15PBT.js +52 -0
  280. package/renderer-host/assets/src-BLndk63N.js +7 -0
  281. package/renderer-host/assets/src-BMrLVJyB.js +169 -0
  282. package/renderer-host/assets/src-BPG8SYXq.js +10 -0
  283. package/renderer-host/assets/src-BZrNtUNO.js +2 -0
  284. package/renderer-host/assets/src-B_o7QilB.js +58 -0
  285. package/renderer-host/assets/src-BgM1jpe4.js +5 -0
  286. package/renderer-host/assets/src-BgUXah8O.js +1 -0
  287. package/renderer-host/assets/src-Bl5Lv4-d.js +1 -0
  288. package/renderer-host/assets/src-Blx9jp9x.js +90 -0
  289. package/renderer-host/assets/src-Bu1cTJNz.js +64 -0
  290. package/renderer-host/assets/src-BuN3y1yE.js +24 -0
  291. package/renderer-host/assets/src-Bw-O8ujJ.js +2 -0
  292. package/renderer-host/assets/src-BwZAUudm.js +2 -0
  293. package/renderer-host/assets/src-BydeR01n.js +1 -0
  294. package/renderer-host/assets/src-C2LKqLBA.js +182 -0
  295. package/renderer-host/assets/src-C4t_UvT8.js +8 -0
  296. package/renderer-host/assets/src-C5k8Ydia.js +1 -0
  297. package/renderer-host/assets/src-C6w9FGSB.js +1 -0
  298. package/renderer-host/assets/src-C9Uz3C-q.js +432 -0
  299. package/renderer-host/assets/src-CAdKRH5C.js +37 -0
  300. package/renderer-host/assets/src-CBE5sqjl.js +7 -0
  301. package/renderer-host/assets/src-CBo2yHRk.js +21 -0
  302. package/renderer-host/assets/src-CGx0nUS5.js +24 -0
  303. package/renderer-host/assets/src-CHNgoDf9.js +10 -0
  304. package/renderer-host/assets/src-CIDWSV97.js +1 -0
  305. package/renderer-host/assets/src-CPUYqpHZ.js +9 -0
  306. package/renderer-host/assets/src-CVc67mQv.js +1 -0
  307. package/renderer-host/assets/src-CXRrmfb0.js +7 -0
  308. package/renderer-host/assets/src-C_1M1IDo.js +8 -0
  309. package/renderer-host/assets/src-C_HAB_bn.js +5 -0
  310. package/renderer-host/assets/src-CeGmxOTi.js +1 -0
  311. package/renderer-host/assets/src-CifsQr3m.js +222 -0
  312. package/renderer-host/assets/src-Ck1ekdEN.js +1 -0
  313. package/renderer-host/assets/src-ClIHDiJ4.js +27 -0
  314. package/renderer-host/assets/src-Cvb3aCDG.js +10 -0
  315. package/renderer-host/assets/src-Cyw_3X-L.js +989 -0
  316. package/renderer-host/assets/src-D3OyeoQs.js +1 -0
  317. package/renderer-host/assets/src-D4cv_-u0.js +1 -0
  318. package/renderer-host/assets/src-DPm7_lsi.js +24 -0
  319. package/renderer-host/assets/src-DZE9IoBl.js +88 -0
  320. package/renderer-host/assets/src-DmzigsPg.js +7 -0
  321. package/renderer-host/assets/src-DpEmkhrn.js +6 -0
  322. package/renderer-host/assets/src-DrYYfoQO.js +7 -0
  323. package/renderer-host/assets/src-DsVDi0pr.js +4126 -0
  324. package/renderer-host/assets/src-ORHZWeVF.js +2 -0
  325. package/renderer-host/assets/src-Q-oKL3Dw.js +10 -0
  326. package/renderer-host/assets/src-QXdjrTaw.js +4 -0
  327. package/renderer-host/assets/src-R4bKlaNn.js +387 -0
  328. package/renderer-host/assets/src-TbSq3WSr.js +115 -0
  329. package/renderer-host/assets/src-TuTvYAR6.js +11 -0
  330. package/renderer-host/assets/src-eVKtGm4Q.js +17 -0
  331. package/renderer-host/assets/src-efHN2oAJ.js +17 -0
  332. package/renderer-host/assets/src-hCrza_Lf.js +1 -0
  333. package/renderer-host/assets/src-j_mEQ9Os.js +9 -0
  334. package/renderer-host/assets/src-lYIAi6Hw.js +1 -0
  335. package/renderer-host/assets/src-n2gsf381.js +20 -0
  336. package/renderer-host/assets/src-p14e1hma.js +23 -0
  337. package/renderer-host/assets/src-rJN_jaC5.js +1 -0
  338. package/renderer-host/assets/src-vPHMg1Fp.js +1 -0
  339. package/renderer-host/assets/src-wrrVkfrK.js +1 -0
  340. package/renderer-host/assets/stl-adapter-D1eozFH9.js +1 -0
  341. package/renderer-host/assets/stl.worker-C-anHijM.js +1 -0
  342. package/renderer-host/assets/three-mf-CbcWWdM8.js +2 -0
  343. package/renderer-host/assets/webimage-zQMH-_zR.js +1 -0
  344. package/renderer-host/assets/webm-_wYh_V7u.js +1 -0
  345. package/renderer-host/assets/worker-QK2gViTu.js +1 -0
  346. package/renderer-host/assets/x6-dng-worker-CNf3zUP-.js +1 -0
  347. package/renderer-host/assets/xml.browser-CC8-XAyN.js +1 -0
  348. package/renderer-host/assets/zip-core-base-CDv8KjIR.js +1 -0
  349. package/renderer-host/assets/zip-core-custom-D3VVVj-J.js +1 -0
  350. package/renderer-host/assets/zip-source-C5dFTDt7.js +1 -0
  351. package/renderer-host/assets/zstd-CmwSLjHB.js +1 -0
  352. package/renderer-host/assets/zstd-i4Jwubnx.js +1 -0
  353. package/renderer-host/index.html +65 -0
  354. package/vendor-manifest.json +1433 -0
  355. package/worker.mjs +261 -0
@@ -0,0 +1,24 @@
1
+ const e=Symbol(`changed`),t=Symbol(`classList`),n=Symbol(`CustomElements`),r=Symbol(`content`),i=Symbol(`dataset`),a=Symbol(`doctype`),o=Symbol(`DOMParser`),s=Symbol(`end`),c=Symbol(`EventTarget`),l=Symbol(`globals`),u=Symbol(`image`),d=Symbol(`mime`),f=Symbol(`MutationObserver`),p=Symbol(`next`),m=Symbol(`ownerElement`),h=Symbol(`prev`),g=Symbol(`private`),_=Symbol(`sheet`),v=Symbol(`start`),y=Symbol(`style`),b=Symbol(`upgrade`),x=Symbol(`value`),S=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),C=String.fromCodePoint??(e=>{let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function w(e){return e>=55296&&e<=57343||e>1114111?65533:S.get(e)??e}function T(e){let t=typeof atob==`function`?atob(e):typeof Buffer.from==`function`?Buffer.from(e,`base64`).toString(`binary`):new Buffer(e,`base64`).toString(`binary`),n=t.length&-2,r=new Uint16Array(n/2);for(let e=0,i=0;e<n;e+=2){let n=t.charCodeAt(e),a=t.charCodeAt(e+1);r[i++]=n|a<<8}return r}const E=T(`QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO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Nd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg`),D=T(`AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg`);var O;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(O||={});var k;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(k||={});function A(e){return e>=k.ZERO&&e<=k.NINE}function ee(e){return e>=k.UPPER_A&&e<=k.UPPER_F||e>=k.LOWER_A&&e<=k.LOWER_F}function te(e){return e>=k.UPPER_A&&e<=k.UPPER_Z||e>=k.LOWER_A&&e<=k.LOWER_Z||A(e)}function ne(e){return e===k.EQUALS||te(e)}var j;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(j||={});var M;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(M||={});var re=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=j.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=M.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=j.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case j.EntityStart:return e.charCodeAt(t)===k.NUM?(this.state=j.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=j.NamedEntity,this.stateNamedEntity(e,t));case j.NumericStart:return this.stateNumericStart(e,t);case j.NumericDecimal:return this.stateNumericDecimal(e,t);case j.NumericHex:return this.stateNumericHex(e,t);case j.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|32)===k.LOWER_X?(this.state=j.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=j.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(A(n)||ee(n)){let e=n<=k.NINE?n-k.ZERO:(n|32)-k.LOWER_A+10;this.result=this.result*16+e,this.consumed++,t++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(A(n))this.result=this.result*10+(n-k.ZERO),this.consumed++,t++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===k.SEMI)this.consumed+=1;else if(this.decodeMode===M.Strict)return 0;return this.emitCodePoint(w(this.result),this.consumed),this.errors&&(e!==k.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&O.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(r&O.FLAG13)!==0){let a=(r&O.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let n=r&O.JUMP_TABLE;if(e.charCodeAt(t)!==n)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],a=r%2==0?i&255:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),r=n[this.treeIndex],i=(r&O.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===k.SEMI&&i!==0&&(r&O.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=ie(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===M.Attribute&&(i===0||ne(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&O.VALUE_LENGTH)>>14,i!==0){if(a===k.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==M.Strict&&(r&O.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&O.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~(O.VALUE_LENGTH|O.FLAG13):r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case j.NamedEntity:return this.result!==0&&(this.decodeMode!==M.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case j.NumericDecimal:return this.emitNumericEntity(0,2);case j.NumericHex:return this.emitNumericEntity(0,3);case j.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j.EntityStart:return 0}}};function ie(e,t,n,r){let i=(t&O.BRANCH_LENGTH)>>7,a=t&O.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=i+1>>1,s=0,c=i-1;for(;s<=c;){let t=s+c>>>1,i=e[n+(t>>1)]>>(t&1)*8&255;if(i<r)s=t+1;else if(i>r)c=t-1;else return e[n+o+t]}return-1}var N;(function(e){e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`,e[e.Space=32]=`Space`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Number=35]=`Number`,e[e.Amp=38]=`Amp`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Dash=45]=`Dash`,e[e.Slash=47]=`Slash`,e[e.Zero=48]=`Zero`,e[e.Nine=57]=`Nine`,e[e.Semi=59]=`Semi`,e[e.Lt=60]=`Lt`,e[e.Eq=61]=`Eq`,e[e.Gt=62]=`Gt`,e[e.Questionmark=63]=`Questionmark`,e[e.UpperA=65]=`UpperA`,e[e.LowerA=97]=`LowerA`,e[e.UpperF=70]=`UpperF`,e[e.LowerF=102]=`LowerF`,e[e.UpperZ=90]=`UpperZ`,e[e.LowerZ=122]=`LowerZ`,e[e.LowerX=120]=`LowerX`,e[e.OpeningSquareBracket=91]=`OpeningSquareBracket`})(N||={});var P;(function(e){e[e.Text=1]=`Text`,e[e.BeforeTagName=2]=`BeforeTagName`,e[e.InTagName=3]=`InTagName`,e[e.InSelfClosingTag=4]=`InSelfClosingTag`,e[e.BeforeClosingTagName=5]=`BeforeClosingTagName`,e[e.InClosingTagName=6]=`InClosingTagName`,e[e.AfterClosingTagName=7]=`AfterClosingTagName`,e[e.BeforeAttributeName=8]=`BeforeAttributeName`,e[e.InAttributeName=9]=`InAttributeName`,e[e.AfterAttributeName=10]=`AfterAttributeName`,e[e.BeforeAttributeValue=11]=`BeforeAttributeValue`,e[e.InAttributeValueDq=12]=`InAttributeValueDq`,e[e.InAttributeValueSq=13]=`InAttributeValueSq`,e[e.InAttributeValueNq=14]=`InAttributeValueNq`,e[e.BeforeDeclaration=15]=`BeforeDeclaration`,e[e.InDeclaration=16]=`InDeclaration`,e[e.InProcessingInstruction=17]=`InProcessingInstruction`,e[e.BeforeComment=18]=`BeforeComment`,e[e.CDATASequence=19]=`CDATASequence`,e[e.InSpecialComment=20]=`InSpecialComment`,e[e.InCommentLike=21]=`InCommentLike`,e[e.BeforeSpecialS=22]=`BeforeSpecialS`,e[e.BeforeSpecialT=23]=`BeforeSpecialT`,e[e.SpecialStartSequence=24]=`SpecialStartSequence`,e[e.InSpecialTag=25]=`InSpecialTag`,e[e.InEntity=26]=`InEntity`})(P||={});function ae(e){return e===N.Space||e===N.NewLine||e===N.Tab||e===N.FormFeed||e===N.CarriageReturn}function oe(e){return e===N.Slash||e===N.Gt||ae(e)}function se(e){return e>=N.LowerA&&e<=N.LowerZ||e>=N.UpperA&&e<=N.UpperZ}var ce;(function(e){e[e.NoValue=0]=`NoValue`,e[e.Unquoted=1]=`Unquoted`,e[e.Single=2]=`Single`,e[e.Double=3]=`Double`})(ce||={});const F={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};var le=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=P.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=P.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new re(e?D:E,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=P.Text,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=P.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===N.Lt||!this.decodeEntities&&this.fastForwardTo(N.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=P.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===N.Amp&&this.startEntity()}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?oe(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=P.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===N.Gt||ae(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===F.TitleEnd?this.decodeEntities&&e===N.Amp&&this.startEntity():this.fastForwardTo(N.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===N.Lt)}stateCDATASequence(e){e===F.Cdata[this.sequenceIndex]?++this.sequenceIndex===F.Cdata.length&&(this.state=P.InCommentLike,this.currentSequence=F.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=P.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===F.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=P.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!oe(e):se(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=P.SpecialStartSequence}stateBeforeTagName(e){if(e===N.ExclamationMark)this.state=P.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===N.Questionmark)this.state=P.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,this.state=this.xmlMode?P.InTagName:t===F.ScriptEnd[2]?P.BeforeSpecialS:t===F.TitleEnd[2]||t===F.XmpEnd[2]?P.BeforeSpecialT:P.InTagName}else e===N.Slash?this.state=P.BeforeClosingTagName:(this.state=P.Text,this.stateText(e))}stateInTagName(e){oe(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=P.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){ae(e)||(e===N.Gt?this.state=P.Text:(this.state=this.isTagStartChar(e)?P.InClosingTagName:P.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===N.Gt||ae(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=P.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===N.Gt||this.fastForwardTo(N.Gt))&&(this.state=P.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===N.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=P.InSpecialTag,this.sequenceIndex=0):this.state=P.Text,this.sectionStart=this.index+1):e===N.Slash?this.state=P.InSelfClosingTag:ae(e)||(this.state=P.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===N.Gt?(this.cbs.onselfclosingtag(this.index),this.state=P.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ae(e)||(this.state=P.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===N.Eq||oe(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=P.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===N.Eq?this.state=P.BeforeAttributeValue:e===N.Slash||e===N.Gt?(this.cbs.onattribend(ce.NoValue,this.sectionStart),this.sectionStart=-1,this.state=P.BeforeAttributeName,this.stateBeforeAttributeName(e)):ae(e)||(this.cbs.onattribend(ce.NoValue,this.sectionStart),this.state=P.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===N.DoubleQuote?(this.state=P.InAttributeValueDq,this.sectionStart=this.index+1):e===N.SingleQuote?(this.state=P.InAttributeValueSq,this.sectionStart=this.index+1):ae(e)||(this.sectionStart=this.index,this.state=P.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===N.DoubleQuote?ce.Double:ce.Single,this.index+1),this.state=P.BeforeAttributeName):this.decodeEntities&&e===N.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,N.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,N.SingleQuote)}stateInAttributeValueNoQuotes(e){ae(e)||e===N.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ce.Unquoted,this.index),this.state=P.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===N.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===N.OpeningSquareBracket?(this.state=P.CDATASequence,this.sequenceIndex=0):this.state=e===N.Dash?P.BeforeComment:P.InDeclaration}stateInDeclaration(e){(e===N.Gt||this.fastForwardTo(N.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=P.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===N.Gt||this.fastForwardTo(N.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=P.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===N.Dash?(this.state=P.InCommentLike,this.currentSequence=F.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=P.InDeclaration}stateInSpecialComment(e){(e===N.Gt||this.fastForwardTo(N.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=P.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===F.ScriptEnd[3]?this.startSpecial(F.ScriptEnd,4):t===F.StyleEnd[3]?this.startSpecial(F.StyleEnd,4):(this.state=P.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(e|32){case F.TitleEnd[3]:this.startSpecial(F.TitleEnd,4);break;case F.TextareaEnd[3]:this.startSpecial(F.TextareaEnd,4);break;case F.XmpEnd[3]:this.startSpecial(F.XmpEnd,4);break;default:this.state=P.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=P.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?M.Strict:this.baseState===P.Text||this.baseState===P.InSpecialTag?M.Legacy:M.Attribute)}stateInEntity(){let e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,t===0&&--this.index;else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===N.Amp){this.state=this.baseState,--this.index;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===P.Text||this.state===P.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===P.InAttributeValueDq||this.state===P.InAttributeValueSq||this.state===P.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case P.Text:this.stateText(e);break;case P.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case P.InSpecialTag:this.stateInSpecialTag(e);break;case P.CDATASequence:this.stateCDATASequence(e);break;case P.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case P.InAttributeName:this.stateInAttributeName(e);break;case P.InCommentLike:this.stateInCommentLike(e);break;case P.InSpecialComment:this.stateInSpecialComment(e);break;case P.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case P.InTagName:this.stateInTagName(e);break;case P.InClosingTagName:this.stateInClosingTagName(e);break;case P.BeforeTagName:this.stateBeforeTagName(e);break;case P.AfterAttributeName:this.stateAfterAttributeName(e);break;case P.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case P.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case P.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case P.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case P.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case P.BeforeSpecialT:this.stateBeforeSpecialT(e);break;case P.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case P.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case P.InDeclaration:this.stateInDeclaration(e);break;case P.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case P.BeforeComment:this.stateBeforeComment(e);break;case P.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case P.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===P.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===P.InCommentLike?this.currentSequence===F.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===P.InTagName||this.state===P.BeforeAttributeName||this.state===P.BeforeAttributeValue||this.state===P.AfterAttributeName||this.state===P.InAttributeName||this.state===P.InAttributeValueSq||this.state===P.InAttributeValueDq||this.state===P.InAttributeValueNq||this.state===P.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==P.Text&&this.baseState!==P.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}};const ue=new Set([`input`,`option`,`optgroup`,`select`,`button`,`datalist`,`textarea`]),I=new Set([`p`]),de=new Set([`thead`,`tbody`]),fe=new Set([`dd`,`dt`]),pe=new Set([`rt`,`rp`]),me=new Map([[`tr`,new Set([`tr`,`th`,`td`])],[`th`,new Set([`th`])],[`td`,new Set([`thead`,`th`,`td`])],[`body`,new Set([`head`,`link`,`script`])],[`li`,new Set([`li`])],[`p`,I],[`h1`,I],[`h2`,I],[`h3`,I],[`h4`,I],[`h5`,I],[`h6`,I],[`select`,ue],[`input`,ue],[`output`,ue],[`button`,ue],[`datalist`,ue],[`textarea`,ue],[`option`,new Set([`option`])],[`optgroup`,new Set([`optgroup`,`option`])],[`dd`,fe],[`dt`,fe],[`address`,I],[`article`,I],[`aside`,I],[`blockquote`,I],[`details`,I],[`div`,I],[`dl`,I],[`fieldset`,I],[`figcaption`,I],[`figure`,I],[`footer`,I],[`form`,I],[`header`,I],[`hr`,I],[`main`,I],[`nav`,I],[`ol`,I],[`pre`,I],[`section`,I],[`table`,I],[`ul`,I],[`rt`,pe],[`rp`,pe],[`tbody`,de],[`tfoot`,de]]),he=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),ge=new Set([`math`,`svg`]),_e=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignobject`,`desc`,`title`]),ve=/\s|\//;var ye=Object.freeze({__proto__:null,Parser:class{constructor(e,t={}){var n,r;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname=``,this.attribname=``,this.attribvalue=``,this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??le)(this.options,this),this.foreignContext=[!this.htmlMode],(r=(n=this.cbs).onparserinit)==null||r.call(n,this)}ontext(e,t){var n,r;let i=this.getSlice(e,t);this.endIndex=t-1,(r=(n=this.cbs).ontext)==null||r.call(n,i),this.startIndex=t}ontextentity(e,t){var n,r;this.endIndex=t-1,(r=(n=this.cbs).ontext)==null||r.call(n,C(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&he.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;let a=this.htmlMode&&me.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[0]);){let e=this.stack.shift();(n=(t=this.cbs).onclosetag)==null||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(ge.has(e)?this.foreignContext.unshift(!0):_e.has(e)&&this.foreignContext.unshift(!1))),(i=(r=this.cbs).onopentagname)==null||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&=((n=(t=this.cbs).onopentag)==null||n.call(t,this.tagname,this.attribs,e),null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=``}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,a,o,s,c,l;this.endIndex=t;let u=this.getSlice(e,t);if(this.lowerCaseTagNames&&(u=u.toLowerCase()),this.htmlMode&&(ge.has(u)||_e.has(u))&&this.foreignContext.shift(),this.isVoidElement(u))this.htmlMode&&u===`br`&&((a=(i=this.cbs).onopentagname)==null||a.call(i,`br`),(s=(o=this.cbs).onopentag)==null||s.call(o,`br`,{},!0),(l=(c=this.cbs).onclosetag)==null||l.call(c,`br`,!1));else{let e=this.stack.indexOf(u);if(e!==-1)for(let t=0;t<=e;t++){let i=this.stack.shift();(r=(n=this.cbs).onclosetag)==null||r.call(n,i,t!==e)}else this.htmlMode&&u===`p`&&(this.emitOpenTag(`p`),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;let r=this.tagname;this.endOpenTag(e),this.stack[0]===r&&((n=(t=this.cbs).onclosetag)==null||n.call(t,r,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;let n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=C(e)}onattribend(e,t){var n,r;this.endIndex=t,(r=(n=this.cbs).onattribute)==null||r.call(n,this.attribname,this.attribvalue,e===ce.Double?`"`:e===ce.Single?`'`:e===ce.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=``}getInstructionName(e){let t=e.search(ve),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,a,o;this.endIndex=t,(i=(r=this.cbs).oncomment)==null||i.call(r,this.getSlice(e,t-n)),(o=(a=this.cbs).oncommentend)==null||o.call(a),this.startIndex=t+1}oncdata(e,t,n){var r,i,a,o,s,c,l,u,d,f;this.endIndex=t;let p=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?((i=(r=this.cbs).oncdatastart)==null||i.call(r),(o=(a=this.cbs).ontext)==null||o.call(a,p),(c=(s=this.cbs).oncdataend)==null||c.call(s)):((u=(l=this.cbs).oncomment)==null||u.call(l,`[CDATA[${p}]]`),(f=(d=this.cbs).oncommentend)==null||f.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}(t=(e=this.cbs).onend)==null||t.call(e)}reset(){var e,t,n,r;(t=(e=this.cbs).onreset)==null||t.call(e),this.tokenizer.reset(),this.tagname=``,this.attribname=``,this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(n=this.cbs).onparserinit)==null||r.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.write() after done!`));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,n;if(this.ended){(n=(t=this.cbs).onerror)==null||n.call(t,Error(`.end() after done!`));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}},get QuoteType(){return ce},Tokenizer:le});const be=new Set(`ARTICLE.ASIDE.BLOCKQUOTE.BODY.BR.BUTTON.CANVAS.CAPTION.COL.COLGROUP.DD.DIV.DL.DT.EMBED.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.H1.H2.H3.H4.H5.H6.LI.UL.OL.P`.split(`.`)),xe=`http://www.w3.org/2000/svg`,{assign:Se,create:Ce,defineProperties:we,entries:Te,keys:Ee,setPrototypeOf:De}=Object,Oe=String,ke=e=>e.nodeType===1?e[s]:e,Ae=({ownerDocument:e})=>e[d].ignoreCase,je=(e,t)=>{e[p]=t,t[h]=e},Me=(e,t,n)=>{je(e,t),je(ke(t),n)},Ne=(e,t,n,r)=>{je(e,t),je(ke(n),r)},Pe=(e,t,n)=>{je(e,t),je(t,n)},Fe=({localName:e,ownerDocument:t})=>t[d].ignoreCase?e.toUpperCase():e,Ie=(e,t)=>{e&&(e[p]=t),t&&(t[h]=e)},Le=(e,t)=>{let n=e.createDocumentFragment(),r=e.createElement(``);r.innerHTML=t;let{firstChild:i,lastChild:a}=r;if(i){Ne(n,i,a,n[s]);let e=i;do e.parentNode=n;while(e!==a&&(e=ke(e)[p]))}return n},Re=new WeakMap;let ze=!1;const Be=new WeakMap,Ve=new WeakMap,He=(e,t,n,r)=>{ze&&Ve.has(e)&&e.attributeChangedCallback&&e.constructor.observedAttributes.includes(t)&&e.attributeChangedCallback(t,n,r)},Ue=(e,t)=>n=>{if(Ve.has(n)){let r=Ve.get(n);r.connected!==t&&n.isConnected===t&&(r.connected=t,e in n&&n[e]())}},We=Ue(`connectedCallback`,!0),Ge=e=>{if(ze){We(e),Re.has(e)&&(e=Re.get(e).shadowRoot);let{[p]:t,[s]:n}=e;for(;t!==n;)t.nodeType===1&&We(t),t=t[p]}},Ke=Ue(`disconnectedCallback`,!1),qe=e=>{if(ze){Ke(e),Re.has(e)&&(e=Re.get(e).shadowRoot);let{[p]:t,[s]:n}=e;for(;t!==n;)t.nodeType===1&&Ke(t),t=t[p]}};var Je=class{constructor(e){this.ownerDocument=e,this.registry=new Map,this.waiting=new Map,this.active=!1}define(e,t,n={}){let{ownerDocument:r,registry:i,waiting:a}=this;if(i.has(e))throw Error(`unable to redefine `+e);if(Be.has(t))throw Error(`unable to redefine the same class: `+t);this.active=ze=!0;let{extends:o}=n;Be.set(t,{ownerDocument:r,options:{is:o?e:``},localName:o||e});let s=o?t=>t.localName===o&&t.getAttribute(`is`)===e:t=>t.localName===e;if(i.set(e,{Class:t,check:s}),a.has(e)){for(let n of a.get(e))n(t);a.delete(e)}r.querySelectorAll(o?`${o}[is="${e}"]`:e).forEach(this.upgrade,this)}upgrade(e){if(Ve.has(e))return;let{ownerDocument:t,registry:n}=this,r=e.getAttribute(`is`)||e.localName;if(n.has(r)){let{Class:i,check:a}=n.get(r);if(a(e)){let{attributes:n,isConnected:a}=e;for(let t of n)e.removeAttributeNode(t);let o=Te(e);for(let[t]of o)delete e[t];De(e,i.prototype),t[b]={element:e,values:o},new i(t,r),Ve.set(e,{connected:a});for(let t of n)e.setAttributeNode(t);a&&e.connectedCallback&&e.connectedCallback()}}}whenDefined(e){let{registry:t,waiting:n}=this;return new Promise(r=>{t.has(e)?r(t.get(e).Class):(n.has(e)||n.set(e,[]),n.get(e).push(r))})}get(e){let t=this.registry.get(e);return t&&t.Class}getName(e){if(Be.has(e)){let{localName:t}=Be.get(e);return t}return null}};const{Parser:Ye}=ye,Xe=(e,t,n)=>{let r=e[s];return t.parentNode=e,Me(r[h],t,r),n&&t.nodeType===1&&Ge(t),t},Ze=(e,t,n,r,i)=>{n[x]=r,n.ownerElement=e,Pe(t[h],n,t),n.name===`class`&&(e.className=r),i&&He(e,n.name,null,r)},Qe=(e,t,r)=>{let{active:i,registry:a}=e[n],o=e,c=null,l=!1,u=new Ye({onprocessinginstruction(t,n){t.toLowerCase()===`!doctype`&&(e.doctype=n.slice(t.length).trim())},onopentag(n,r){let l=!0;if(t){if(c)o=Xe(o,e.createElementNS(xe,n),i),o.ownerSVGElement=c,l=!1;else if(n===`svg`||n===`SVG`)c=e.createElementNS(xe,n),o=Xe(o,c,i),l=!1;else if(i){let e=n.includes(`-`)?n:r.is||``;if(e&&a.has(e)){let{Class:t}=a.get(e);o=Xe(o,new t,i),delete r.is,l=!1}}}l&&(o=Xe(o,e.createElement(n),!1));let u=o[s];for(let t of Ee(r))Ze(o,u,e.createAttribute(t),r[t],i)},oncomment(t){Xe(o,e.createComment(t),i)},ontext(t){l?Xe(o,e.createCDATASection(t),i):Xe(o,e.createTextNode(t),i)},oncdatastart(){l=!0},oncdataend(){l=!1},onclosetag(){t&&o===c&&(c=null),o=o.parentNode}},{lowerCaseAttributeNames:!1,decodeEntities:!0,xmlMode:!t});return u.write(r),u.end(),e},$e=new Map,et=(e,t)=>{for(let n of[].concat(e))$e.set(n,t),$e.set(n.toUpperCase(),t)},tt=({[p]:e,[s]:t},n)=>{for(;e!==t;){switch(e.nodeType){case 2:nt(e,n);break;case 3:case 8:case 4:rt(e,n);break;case 1:ot(e,n),e=ke(e);break;case 10:at(e,n)}e=e[p]}let r=n.length-1,i=n[r];typeof i==`number`&&i<0?n[r]+=-1:n.push(-1)},nt=(e,t)=>{t.push(2,e.name);let n=e[x].trim();n&&t.push(n)},rt=(e,t)=>{let n=e[x];n.trim()&&t.push(e.nodeType,n)},it=(e,t)=>{t.push(e.nodeType),tt(e,t)},at=({name:e,publicId:t,systemId:n},r)=>{r.push(10,e),t&&r.push(t),n&&r.push(n)},ot=(e,t)=>{t.push(1,e.localName),tt(e,t)},st=(e,t,n,r,i,a,o)=>({type:e,target:t,addedNodes:r,removedNodes:i,attributeName:a,oldValue:o,previousSibling:n?.previousSibling||null,nextSibling:n?.nextSibling||null}),ct=(e,t,n,r,i,a)=>{if(!r||r.includes(n)){let{callback:r,records:o,scheduled:s}=e;o.push(st(`attributes`,t,null,[],[],n,i?a:void 0)),s||(e.scheduled=!0,Promise.resolve().then(()=>{e.scheduled=!1,r(o.splice(0),e)}))}},lt=(e,t,n)=>{let{ownerDocument:r}=e,{active:i,observers:a}=r[f];if(i){for(let i of a)for(let[a,{childList:o,subtree:s,attributes:c,attributeFilter:l,attributeOldValue:u}]of i.nodes)if(o){if(s&&(a===r||a.contains(e))||!s&&a.children.includes(e)){ct(i,e,t,l,u,n);break}}else if(c&&a===e){ct(i,e,t,l,u,n);break}}},ut=(e,t)=>{let{ownerDocument:n}=e,{active:r,observers:i}=n[f];if(r){for(let r of i)for(let[i,{subtree:a,childList:o,characterData:s}]of r.nodes)if(o&&(t&&(i===t||a&&i.contains(t))||!t&&(a&&(i===n||i.contains(e))||!a&&i[s?`childNodes`:`children`].includes(e)))){let{callback:n,records:a,scheduled:o}=r;a.push(st(`childList`,i,e,t?[]:[e],t?[e]:[])),o||(r.scheduled=!0,Promise.resolve().then(()=>{r.scheduled=!1,n(a.splice(0),r)}));break}}};var dt=class{constructor(e){let t=new Set;this.observers=t,this.active=!1,this.class=class{constructor(e){this.callback=e,this.nodes=new Map,this.records=[],this.scheduled=!1}disconnect(){this.records.splice(0),this.nodes.clear(),t.delete(this),e[f].active=!!t.size}observe(n,r={subtree:!1,childList:!1,attributes:!1,attributeFilter:null,attributeOldValue:!1,characterData:!1}){(`attributeOldValue`in r||`attributeFilter`in r)&&(r.attributes=!0),r.childList=!!r.childList,r.subtree=!!r.subtree,this.nodes.set(n,r),t.add(this),e[f].active=!0}takeRecords(){return this.records.splice(0)}}}};const ft=new Set(`allowfullscreen.allowpaymentrequest.async.autofocus.autoplay.checked.class.contenteditable.controls.default.defer.disabled.draggable.formnovalidate.hidden.id.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected.style.truespeed`.split(`.`)),pt=(e,t)=>{let{[x]:n,name:r}=t;t.ownerElement=e,Pe(e,t,e[p]),r===`class`&&(e.className=n),lt(e,r,null),He(e,r,null,n)},mt=(e,n)=>{let{[x]:r,name:i}=n;je(n[h],n[p]),n.ownerElement=n[h]=n[p]=null,i===`class`&&(e[t]=null),lt(e,i,r),He(e,i,r,null)},L={get(e,t){return e.hasAttribute(t)},set(e,t,n){n?e.setAttribute(t,``):e.removeAttribute(t)}},ht={get(e,t){return parseFloat(e.getAttribute(t)||0)},set(e,t,n){e.setAttribute(t,n)}},R={get(e,t){return e.getAttribute(t)||``},set(e,t,n){e.setAttribute(t,n)}},gt=new WeakMap;function _t(e,t){return typeof t==`function`?t.call(e.target,e):t.handleEvent(e),e._stopImmediatePropagationFlag}function vt({currentTarget:e,target:t}){let n=gt.get(e);if(n&&n.has(this.type)){let r=n.get(this.type);this.eventPhase=e===t?this.AT_TARGET:this.BUBBLING_PHASE,this.currentTarget=e,this.target=t;for(let[e,t]of r)if(t&&t.once&&r.delete(e),_t(this,e))break;return delete this.currentTarget,delete this.target,this.cancelBubble}}var yt=class{constructor(){gt.set(this,new Map)}_getParent(){return null}addEventListener(e,t,n){let r=gt.get(this);r.has(e)||r.set(e,new Map),r.get(e).set(t,n)}removeEventListener(e,t){let n=gt.get(this);if(n.has(e)){let r=n.get(e);r.delete(t)&&!r.size&&n.delete(e)}}dispatchEvent(e){let t=this;for(e.eventPhase=e.CAPTURING_PHASE;t;)t.dispatchEvent&&e._path.push({currentTarget:t,target:this}),t=e.bubbles&&t._getParent&&t._getParent();return e._path.some(vt,e),e._path=[],e.eventPhase=e.NONE,!e.defaultPrevented}},bt=class extends Array{item(e){return e<this.length?this[e]:null}};const xt=({parentNode:e})=>{let t=0;for(;e;)t++,e=e.parentNode;return t};let St=class extends yt{static get ELEMENT_NODE(){return 1}static get ATTRIBUTE_NODE(){return 2}static get TEXT_NODE(){return 3}static get CDATA_SECTION_NODE(){return 4}static get COMMENT_NODE(){return 8}static get DOCUMENT_NODE(){return 9}static get DOCUMENT_FRAGMENT_NODE(){return 11}static get DOCUMENT_TYPE_NODE(){return 10}constructor(e,t,n){super(),this.ownerDocument=e,this.localName=t,this.nodeType=n,this.parentNode=null,this[p]=null,this[h]=null}get ELEMENT_NODE(){return 1}get ATTRIBUTE_NODE(){return 2}get TEXT_NODE(){return 3}get CDATA_SECTION_NODE(){return 4}get COMMENT_NODE(){return 8}get DOCUMENT_NODE(){return 9}get DOCUMENT_FRAGMENT_NODE(){return 11}get DOCUMENT_TYPE_NODE(){return 10}get baseURI(){let e=this.nodeType===9?this:this.ownerDocument;if(e){let t=e.querySelector(`base`);if(t)return t.getAttribute(`href`);let{location:n}=e.defaultView;if(n)return n.href}return null}get isConnected(){return!1}get nodeName(){return this.localName}get parentElement(){return null}get previousSibling(){return null}get previousElementSibling(){return null}get nextSibling(){return null}get nextElementSibling(){return null}get childNodes(){return new bt}get firstChild(){return null}get lastChild(){return null}get nodeValue(){return null}set nodeValue(e){}get textContent(){return null}set textContent(e){}normalize(){}cloneNode(){return null}contains(){return!1}insertBefore(e,t){return e}appendChild(e){return e}replaceChild(e,t){return t}removeChild(e){return e}toString(){return``}hasChildNodes(){return!!this.lastChild}isSameNode(e){return this===e}compareDocumentPosition(e){let t=0;if(this!==e){let n=xt(this),r=xt(e);if(n<r)t+=4,this.contains(e)&&(t+=16);else if(r<n)t+=2,e.contains(this)&&(t+=8);else if(n&&r){let{childNodes:n}=this.parentNode;n.indexOf(this)<n.indexOf(e)?t+=4:t+=2}(!n||!r)&&(t+=32,t+=1)}return t}isEqualNode(e){if(this===e)return!0;if(this.nodeType===e.nodeType){switch(this.nodeType){case 9:case 11:{let t=this.childNodes,n=e.childNodes;return t.length===n.length&&t.every((e,t)=>e.isEqualNode(n[t]))}}return this.toString()===e.toString()}return!1}_getParent(){return this.parentNode}getRootNode(){let e=this;for(;e.parentNode;)e=e.parentNode;return e}};const{replace:Ct}=``,wt=/[<>&\xA0]/g,Tt={"\xA0":`&#160;`,"&":`&amp;`,"<":`&lt;`,">":`&gt;`},Et=e=>Tt[e],Dt=e=>Ct.call(e,wt,Et),Ot=/"/g;let kt=class t extends St{constructor(t,n,r=``){super(t,n,2),this.ownerElement=null,this.name=Oe(n),this[x]=Oe(r),this[e]=!1}get value(){return this[x]}set value(t){let{[x]:n,name:r,ownerElement:i}=this;this[x]=Oe(t),this[e]=!0,i&&(lt(i,r,n),He(i,r,n,this[x]))}cloneNode(){let{ownerDocument:e,name:n,[x]:r}=this;return new t(e,n,r)}toString(){let{name:e,[x]:t}=this;return ft.has(e)&&!t?Ae(this)?e:`${e}=""`:`${e}="${(Ae(this)?t:Dt(t)).replace(Ot,`&quot;`)}"`}toJSON(){let e=[];return nt(this,e),e}};const At=({ownerDocument:e,parentNode:t})=>{for(;t;){if(t===e)return!0;t=t.parentNode||t.host}return!1},jt=({parentNode:e})=>{if(e)switch(e.nodeType){case 9:case 11:return null}return e},Mt=({[h]:e})=>{switch(e?e.nodeType:0){case-1:return e[v];case 3:case 8:case 4:return e}return null},Nt=e=>{let t=ke(e)[p];return t&&(t.nodeType===-1?null:t)},Pt=e=>{let t=Nt(e);for(;t&&t.nodeType!==1;)t=Nt(t);return t},Ft=e=>{let t=Mt(e);for(;t&&t.nodeType!==1;)t=Mt(t);return t},It=(e,t)=>{let n=e.createDocumentFragment();return n.append(...t),n},Lt=(e,t)=>{let{ownerDocument:n,parentNode:r}=e;r&&r.insertBefore(It(n,t),e)},Rt=(e,t)=>{let{ownerDocument:n,parentNode:r}=e;r&&r.insertBefore(It(n,t),ke(e)[p])},zt=(e,t)=>{let{ownerDocument:n,parentNode:r}=e;r&&(t.includes(e)&&zt(e,[e=e.cloneNode()]),r.insertBefore(It(n,t),e),e.remove())},Bt=(e,t,n)=>{let{parentNode:r,nodeType:i}=t;(e||n)&&(Ie(e,n),t[h]=null,ke(t)[p]=null),r&&(t.parentNode=null,ut(t,r),i===1&&qe(t))};let Vt=class extends St{constructor(e,t,n,r){super(e,t,n),this[x]=Oe(r)}get isConnected(){return At(this)}get parentElement(){return jt(this)}get previousSibling(){return Mt(this)}get nextSibling(){return Nt(this)}get previousElementSibling(){return Ft(this)}get nextElementSibling(){return Pt(this)}before(...e){Lt(this,e)}after(...e){Rt(this,e)}replaceWith(...e){zt(this,e)}remove(){Bt(this[h],this,this[p])}get data(){return this[x]}set data(e){this[x]=Oe(e),ut(this,this.parentNode)}get nodeValue(){return this.data}set nodeValue(e){this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}get length(){return this.data.length}substringData(e,t){return this.data.substr(e,t)}appendData(e){this.data+=e}insertData(e,t){let{data:n}=this;this.data=n.slice(0,e)+t+n.slice(e)}deleteData(e,t){let{data:n}=this;this.data=n.slice(0,e)+n.slice(e+t)}replaceData(e,t,n){let{data:r}=this;this.data=r.slice(0,e)+n+r.slice(e+t)}toJSON(){let e=[];return rt(this,e),e}},Ht=class e extends Vt{constructor(e,t=``){super(e,`#cdatasection`,4,t)}cloneNode(){let{ownerDocument:t,[x]:n}=this;return new e(t,n)}toString(){return`<![CDATA[${this[x]}]]>`}},Ut=class e extends Vt{constructor(e,t=``){super(e,`#comment`,8,t)}cloneNode(){let{ownerDocument:t,[x]:n}=this;return new e(t,n)}toString(){return`<!--${this[x]}-->`}};function Wt(){return!0}function z(){return!1}var B;(function(e){e.Attribute=`attribute`,e.Pseudo=`pseudo`,e.PseudoElement=`pseudo-element`,e.Tag=`tag`,e.Universal=`universal`,e.Adjacent=`adjacent`,e.Child=`child`,e.Descendant=`descendant`,e.Parent=`parent`,e.Sibling=`sibling`,e.ColumnCombinator=`column-combinator`})(B||={});var Gt;(function(e){e.Any=`any`,e.Element=`element`,e.End=`end`,e.Equals=`equals`,e.Exists=`exists`,e.Hyphen=`hyphen`,e.Not=`not`,e.Start=`start`})(Gt||={});const Kt=/^[^#\\]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\u00B0-\uFFFF-])+/,qt=/\\([\da-f]{1,6}\s?|(\s)|.)/gi;var V;(function(e){e[e.LeftParenthesis=40]=`LeftParenthesis`,e[e.RightParenthesis=41]=`RightParenthesis`,e[e.LeftSquareBracket=91]=`LeftSquareBracket`,e[e.RightSquareBracket=93]=`RightSquareBracket`,e[e.Comma=44]=`Comma`,e[e.Period=46]=`Period`,e[e.Colon=58]=`Colon`,e[e.SingleQuote=39]=`SingleQuote`,e[e.DoubleQuote=34]=`DoubleQuote`,e[e.Plus=43]=`Plus`,e[e.Tilde=126]=`Tilde`,e[e.QuestionMark=63]=`QuestionMark`,e[e.ExclamationMark=33]=`ExclamationMark`,e[e.Slash=47]=`Slash`,e[e.Equal=61]=`Equal`,e[e.Dollar=36]=`Dollar`,e[e.Pipe=124]=`Pipe`,e[e.Circumflex=94]=`Circumflex`,e[e.Asterisk=42]=`Asterisk`,e[e.GreaterThan=62]=`GreaterThan`,e[e.LessThan=60]=`LessThan`,e[e.Hash=35]=`Hash`,e[e.LowerI=105]=`LowerI`,e[e.LowerS=115]=`LowerS`,e[e.BackSlash=92]=`BackSlash`,e[e.Space=32]=`Space`,e[e.Tab=9]=`Tab`,e[e.NewLine=10]=`NewLine`,e[e.FormFeed=12]=`FormFeed`,e[e.CarriageReturn=13]=`CarriageReturn`})(V||={});const Jt=new Map([[V.Tilde,Gt.Element],[V.Circumflex,Gt.Start],[V.Dollar,Gt.End],[V.Asterisk,Gt.Any],[V.ExclamationMark,Gt.Not],[V.Pipe,Gt.Hyphen]]),Yt=new Set([`has`,`not`,`matches`,`is`,`where`,`host`,`host-context`]),Xt=new Set([`before`,`after`,`first-line`,`first-letter`]);function Zt(e){switch(e.type){case B.Adjacent:case B.Child:case B.Descendant:case B.Parent:case B.Sibling:case B.ColumnCombinator:return!0;case B.Attribute:case B.Pseudo:case B.PseudoElement:case B.Tag:case B.Universal:return!1}}const Qt=new Set([`contains`,`icontains`]);function $t(e,t,n){let r=Number.parseInt(t,16)-65536;return Number.isNaN(r)||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function en(e){return e.replace(qt,$t)}function tn(e){return e===V.SingleQuote||e===V.DoubleQuote}function nn(e){return e===V.Space||e===V.Tab||e===V.NewLine||e===V.FormFeed||e===V.CarriageReturn}function rn(e){let t=[],n=an(t,`${e}`,0);if(n<e.length)throw Error(`Unmatched selector: ${e.slice(n)}`);return t}function an(e,t,n){let r=[];function i(e){let r=t.slice(n+e).match(Kt);if(!r)throw Error(`Expected name, found ${t.slice(n)}`);let[i]=r;return n+=e+i.length,en(i)}function a(e){for(n+=e;n<t.length&&nn(t.charCodeAt(n));)n++}function o(){n+=1;let e=n;for(let r=1;n<t.length;n++)switch(t.charCodeAt(n)){case V.BackSlash:n+=1;break;case V.LeftParenthesis:r+=1;break;case V.RightParenthesis:if(--r,r===0)return en(t.slice(e,n++))}throw Error(`Parenthesis not matched`)}function s(){if(r.length>0&&Zt(r[r.length-1]))throw Error(`Did not expect successive traversals.`)}function c(e){if(r.length>0&&r[r.length-1].type===B.Descendant){r[r.length-1].type=e;return}s(),r.push({type:e})}function l(e,t){r.push({type:B.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:`quirks`})}function u(){if(r.length>0&&r[r.length-1].type===B.Descendant&&r.pop(),r.length===0)throw Error(`Empty sub-selector`);e.push(r)}if(a(0),t.length===n)return n;loop:for(;n<t.length;){let e=t.charCodeAt(n);switch(e){case V.Space:case V.Tab:case V.NewLine:case V.FormFeed:case V.CarriageReturn:(r.length===0||r[0].type!==B.Descendant)&&(s(),r.push({type:B.Descendant})),a(1);break;case V.GreaterThan:c(B.Child),a(1);break;case V.LessThan:c(B.Parent),a(1);break;case V.Tilde:c(B.Sibling),a(1);break;case V.Plus:c(B.Adjacent),a(1);break;case V.Period:l(`class`,Gt.Element);break;case V.Hash:l(`id`,Gt.Equals);break;case V.LeftSquareBracket:{a(1);let e,o=null;t.charCodeAt(n)===V.Pipe?e=i(1):t.startsWith(`*|`,n)?(o=`*`,e=i(2)):(e=i(0),t.charCodeAt(n)===V.Pipe&&t.charCodeAt(n+1)!==V.Equal&&(o=e,e=i(1))),a(0);let s=Gt.Exists,c=Jt.get(t.charCodeAt(n));if(c){if(s=c,t.charCodeAt(n+1)!==V.Equal)throw Error("Expected `=`");a(2)}else t.charCodeAt(n)===V.Equal&&(s=Gt.Equals,a(1));let l=``,u=null;if(s!==`exists`){if(tn(t.charCodeAt(n))){let e=t.charCodeAt(n);n+=1;let r=n;for(;n<t.length&&t.charCodeAt(n)!==e;)n+=t.charCodeAt(n)===V.BackSlash?2:1;if(t.charCodeAt(n)!==e)throw Error(`Attribute value didn't end`);l=en(t.slice(r,n)),n+=1}else{let e=n;for(;n<t.length&&!nn(t.charCodeAt(n))&&t.charCodeAt(n)!==V.RightSquareBracket;)n+=t.charCodeAt(n)===V.BackSlash?2:1;l=en(t.slice(e,n))}switch(a(0),t.charCodeAt(n)|32){case V.LowerI:u=!0,a(1);break;case V.LowerS:u=!1,a(1)}}if(t.charCodeAt(n)!==V.RightSquareBracket)throw Error(`Attribute selector didn't terminate`);n+=1;let d={type:B.Attribute,name:e,action:s,value:l,namespace:o,ignoreCase:u};r.push(d);break}case V.Colon:{if(t.charCodeAt(n+1)===V.Colon){r.push({type:B.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(n)===V.LeftParenthesis?o():null});break}let e=i(1).toLowerCase();if(Xt.has(e)){r.push({type:B.PseudoElement,name:e,data:null});break}let a=null;if(t.charCodeAt(n)===V.LeftParenthesis){if(Yt.has(e)){if(tn(t.charCodeAt(n+1)))throw Error(`Pseudo-selector ${e} cannot be quoted`);if(a=[],n=an(a,t,n+1),t.charCodeAt(n)!==V.RightParenthesis)throw Error(`Missing closing parenthesis in :${e} (${t})`);n+=1}else{if(a=o(),Qt.has(e)){let e=a.charCodeAt(0);e===a.charCodeAt(a.length-1)&&tn(e)&&(a=a.slice(1,-1))}a=en(a)}}r.push({type:B.Pseudo,name:e,data:a});break}case V.Comma:u(),r=[],a(1);break;default:{if(t.startsWith(`/*`,n)){let e=t.indexOf(`*/`,n+2);if(e===-1)throw Error(`Comment was not terminated`);n=e+2,r.length===0&&a(0);break}let o=null,s;if(e===V.Asterisk)n+=1,s=`*`;else if(e===V.Pipe){if(s=``,t.charCodeAt(n+1)===V.Pipe){c(B.ColumnCombinator),a(2);break}}else if(Kt.test(t.slice(n)))s=i(0);else break loop;t.charCodeAt(n)===V.Pipe&&t.charCodeAt(n+1)!==V.Pipe&&(o=s,t.charCodeAt(n+1)===V.Asterisk?(s=`*`,n+=2):s=i(1)),r.push(s===`*`?{type:B.Universal,namespace:o}:{type:B.Tag,name:s,namespace:o})}}}return u(),n}var on;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(on||={});function sn(e){return e.type===on.Tag||e.type===on.Script||e.type===on.Style}const cn=on.Root,ln=on.Text,un=on.Directive,dn=on.Comment,fn=on.Script,pn=on.Style,mn=on.Tag,hn=on.CDATA,gn=on.Doctype;function _n(e){return sn(e)}function vn(e){return e.type===on.CDATA}function yn(e){return e.type===on.Text}function bn(e){return e.type===on.Comment}function xn(e){return Object.hasOwn(e,`children`)}function Sn(e,t,n=!0,r=1/0){return Cn(e,Array.isArray(t)?t:[t],n,r)}function Cn(e,t,n,r){let i=[],a=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=a[0].length){if(o.length===1)return i;a.shift(),o.shift();continue}let t=a[0][o[0]++];if(e(t)&&(i.push(t),--r<=0))return i;n&&xn(t)&&t.children.length>0&&(o.unshift(0),a.unshift(t.children))}}function wn(e,t,n=!0){let r=Array.isArray(t)?t:[t];for(let t of r){if(_n(t)&&e(t))return t;if(n&&xn(t)&&t.children.length>0){let n=wn(e,t.children,!0);if(n)return n}}return null}function Tn(e,t){return(Array.isArray(t)?t:[t]).some(t=>_n(t)&&e(t)||xn(t)&&Tn(e,t.children))}function En(e,t){let n=[],r=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}let t=r[0][i[0]++];_n(t)&&e(t)&&n.push(t),xn(t)&&t.children.length>0&&(i.unshift(0),r.unshift(t.children))}}const Dn={tag_name(e){return typeof e==`function`?t=>_n(t)&&e(t.name):e===`*`?_n:t=>_n(t)&&t.name===e},tag_type(e){return typeof e==`function`?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e==`function`?t=>yn(t)&&e(t.data):t=>yn(t)&&t.data===e}};function On(e,t){return typeof t==`function`?n=>_n(n)&&t(n.attribs[e]):n=>_n(n)&&n.attribs[e]===t}function kn(e,t){return n=>e(n)||t(n)}function An(e){let t=Object.keys(e).map(t=>{let n=e[t];return Object.hasOwn(Dn,t)?Dn[t](n):On(t,n)});return t.length===0?null:t.reduce(kn)}function jn(e,t){let n=An(e);return!n||n(t)}function Mn(e,t,n,r=1/0){let i=An(e);return i?Sn(i,t,n,r):[]}function Nn(e,t,n=!0){return Array.isArray(t)||(t=[t]),wn(On(`id`,e),t,n)}function Pn(e,t,n=!0,r=1/0){return Sn(Dn.tag_name(e),t,n,r)}function Fn(e,t,n=!0,r=1/0){return Sn(On(`class`,e),t,n,r)}function In(e,t,n=!0,r=1/0){return Sn(Dn.tag_type(e),t,n,r)}const Ln=new Map([[34,`&quot;`],[38,`&amp;`],[39,`&apos;`],[60,`&lt;`],[62,`&gt;`]]),Rn=typeof String.prototype.codePointAt==`function`?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function zn(e){let t,n=0,{length:r}=e;for(let i=0;i<r;i++){let r=e.charCodeAt(i);if(r<128&&(!(1342177476>>>r&1)||r>=64||r<32))continue;if(t===void 0?t=e.substring(0,i):n!==i&&(t+=e.substring(n,i)),r<64){t+=Ln.get(r),n=i+1;continue}let a=Rn(e,i);t+=`&#x${a.toString(16)};`,a!==r&&i++,n=i+1}return t===void 0?e:(n<r&&(t+=e.substr(n)),t)}function Bn(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const Vn=Bn(/["&\u00A0]/g,new Map([[34,`&quot;`],[38,`&amp;`],[160,`&nbsp;`]])),Hn=Bn(/[&<>\u00A0]/g,new Map([[38,`&amp;`],[60,`&lt;`],[62,`&gt;`],[160,`&nbsp;`]])),Un=new Map(`altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.textPath`.split(`.`).map(e=>[e.toLowerCase(),e])),Wn=new Map(`definitionURL.attributeName.attributeType.baseFrequency.baseProfile.calcMode.clipPathUnits.diffuseConstant.edgeMode.filterUnits.glyphRef.gradientTransform.gradientUnits.kernelMatrix.kernelUnitLength.keyPoints.keySplines.keyTimes.lengthAdjust.limitingConeAngle.markerHeight.markerUnits.markerWidth.maskContentUnits.maskUnits.numOctaves.pathLength.patternContentUnits.patternTransform.patternUnits.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.refX.refY.repeatCount.repeatDur.requiredExtensions.requiredFeatures.specularConstant.specularExponent.spreadMethod.startOffset.stdDeviation.stitchTiles.surfaceScale.systemLanguage.tableValues.targetX.targetY.textLength.viewBox.viewTarget.xChannelSelector.yChannelSelector.zoomAndPan`.split(`.`).map(e=>[e.toLowerCase(),e])),Gn=new Set([`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`]);function Kn(e){return e.replace(/"/g,`&quot;`)}function qn(e,t){if(!e)return;let n=(t.encodeEntities??t.decodeEntities)===!1?Kn:t.xmlMode||t.encodeEntities!==`utf8`?zn:Vn;return Object.keys(e).map(r=>{let i=e[r],a=i==null?``:String(i);return t.xmlMode===`foreign`&&(r=Wn.get(r)??r),!(t.emptyAttrs||t.xmlMode)&&a===``?r:`${r}="${n(a)}"`}).join(` `)}const Jn=new Set([`area`,`base`,`basefont`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`img`,`input`,`isindex`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function Yn(e,t={}){let n=`length`in e?e:[e],r=``,i=0;for(;i<n.length;)r+=Xn(n[i],t),i++;return r}function Xn(e,t){switch(e.type){case cn:return Yn(e.children,t);case gn:case un:return er(e);case dn:return rr(e);case hn:return nr(e);case fn:case pn:case mn:return $n(e,t);case ln:return tr(e,t)}}const Zn=new Set([`mi`,`mo`,`mn`,`ms`,`mtext`,`annotation-xml`,`foreignObject`,`desc`,`title`]),Qn=new Set([`svg`,`math`]);function $n(e,t){t.xmlMode===`foreign`&&(e.name=Un.get(e.name)??e.name,e.parent&&Zn.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Qn.has(e.name)&&(t={...t,xmlMode:`foreign`});let n=`<${e.name}`,r=qn(e.attribs,t);return r&&(n+=` ${r}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Jn.has(e.name))?(t.xmlMode||(n+=` `),n+=`/>`):(n+=`>`,e.children.length>0&&(n+=Yn(e.children,t)),(t.xmlMode||!Jn.has(e.name))&&(n+=`</${e.name}>`)),n}function er(e){return`<${e.data}>`}function tr(e,t){let n=e.data||``;return(t.encodeEntities??t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Gn.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!==`utf8`?zn(n):Hn(n)),n}function nr(e){return`<![CDATA[${e.children[0].data}]]>`}function rr(e){return`<!--${e.data}-->`}function ir(e,t){return Yn(e,t)}function ar(e,t){return xn(e)?e.children.map(e=>ir(e,t)).join(``):``}function or(e){return Array.isArray(e)?e.map(or).join(``):_n(e)?e.name===`br`?`
2
+ `:or(e.children):vn(e)?or(e.children):yn(e)?e.data:``}function sr(e){return Array.isArray(e)?e.map(sr).join(``):xn(e)&&!bn(e)?sr(e.children):yn(e)?e.data:``}function cr(e){return Array.isArray(e)?e.map(cr).join(``):xn(e)&&(e.type===on.Tag||vn(e))?cr(e.children):yn(e)?e.data:``}function lr(e){let t=hr(vr,e);return t?t.name===`feed`?ur(t):dr(t):null}function ur(e){let t=e.children,n={type:`atom`,items:Pn(`entry`,t).map(e=>{let{children:t}=e,n={media:mr(t)};_r(n,`id`,`id`,t),_r(n,`title`,`title`,t);let r=hr(`link`,t)?.attribs.href;r&&(n.link=r);let i=gr(`summary`,t)||gr(`content`,t);i&&(n.description=i);let a=gr(`updated`,t);return a&&(n.pubDate=new Date(a)),n})};_r(n,`id`,`id`,t),_r(n,`title`,`title`,t);let r=hr(`link`,t)?.attribs.href;r&&(n.link=r),_r(n,`description`,`subtitle`,t);let i=gr(`updated`,t);return i&&(n.updated=new Date(i)),_r(n,`author`,`email`,t,!0),n}function dr(e){let t=hr(`channel`,e.children)?.children??[],n={type:e.name.substr(0,3),id:``,items:Pn(`item`,e.children).map(e=>{let{children:t}=e,n={media:mr(t)};_r(n,`id`,`guid`,t),_r(n,`title`,`title`,t),_r(n,`link`,`link`,t),_r(n,`description`,`description`,t);let r=gr(`pubDate`,t)||gr(`dc:date`,t);return r&&(n.pubDate=new Date(r)),n})};_r(n,`title`,`title`,t),_r(n,`link`,`link`,t),_r(n,`description`,`description`,t);let r=gr(`lastBuildDate`,t);return r&&(n.updated=new Date(r)),_r(n,`author`,`managingEditor`,t,!0),n}const fr=[`url`,`type`,`lang`],pr=[`fileSize`,`bitrate`,`framerate`,`samplingrate`,`channels`,`duration`,`height`,`width`];function mr(e){return Pn(`media:content`,e).map(e=>{let{attribs:t}=e,n={medium:t.medium,isDefault:!!t.isDefault};for(let e of fr)t[e]&&(n[e]=t[e]);for(let e of pr)t[e]&&(n[e]=Number.parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n})}function hr(e,t){return Pn(e,t,!0,1)[0]}function gr(e,t,n=!1){return sr(Pn(e,t,n,1)).trim()}function _r(e,t,n,r,i=!1){let a=gr(n,r,i);a&&(e[t]=a)}function vr(e){return e===`rss`||e===`feed`||e===`rdf:RDF`}function yr(e){let t=e.length;for(;--t>=0;){let n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var br;(function(e){e[e.DISCONNECTED=1]=`DISCONNECTED`,e[e.PRECEDING=2]=`PRECEDING`,e[e.FOLLOWING=4]=`FOLLOWING`,e[e.CONTAINS=8]=`CONTAINS`,e[e.CONTAINED_BY=16]=`CONTAINED_BY`})(br||={});function xr(e,t){let n=[],r=[];if(e===t)return 0;let i=xn(e)?e:e.parent;for(;i;)n.unshift(i),i=i.parent;for(i=xn(t)?t:t.parent;i;)r.unshift(i),i=i.parent;let a=Math.min(n.length,r.length),o=0;for(;o<a&&n[o]===r[o];)o++;if(o===0)return br.DISCONNECTED;let s=n[o-1],c=s.children,l=n[o],u=r[o];return c.indexOf(l)>c.indexOf(u)?s===t?br.FOLLOWING|br.CONTAINED_BY:br.FOLLOWING:s===e?br.PRECEDING|br.CONTAINS:br.PRECEDING}function Sr(e){return e=e.filter((e,t,n)=>!n.includes(e,t+1)),e.sort((e,t)=>{let n=xr(e,t);return n&br.PRECEDING?-1:n&br.FOLLOWING?1:0}),e}function Cr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,n=t.lastIndexOf(e);n!==-1&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function wr(e,t){if(t.prev=e.prev,t.prev&&(t.prev.next=t),t.next=e.next,t.next&&(t.next.prev=t),t.parent=e.parent,t.parent){let{children:n}=t.parent,r=n.lastIndexOf(e);if(r===-1)return;n[r]=t,e.parent=null}}function Tr(e,t){if(Cr(t),t.next=null,t.parent=e,e.children.push(t)>1){let n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function Er(e,t){Cr(t);let{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){let e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function Dr(e,t){if(Cr(t),t.parent=e,t.prev=null,e.children.unshift(t)===1)t.next=null;else{let n=e.children[1];n.prev=t,t.next=n}}function Or(e,t){Cr(t);let{parent:n}=e;if(n){let r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function kr(e){return xn(e)?e.children:[]}function Ar(e){return e.parent||null}function jr(e){let t=Ar(e);if(t!=null)return kr(t);let n=[e],{prev:r,next:i}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;i!=null;)n.push(i),{next:i}=i;return n}function Mr(e,t){let{attribs:n}=e;return n?.[t]}function Nr(e,t){let{attribs:n}=e;return n!=null&&Object.hasOwn(n,t)&&n[t]!=null}function Pr(e){return e.name}function Fr(e){let{next:t}=e;for(;t!==null&&!_n(t);)({next:t}=t);return t}function Ir(e){let{prev:t}=e;for(;t!==null&&!_n(t);)({prev:t}=t);return t}var Lr=Object.freeze({__proto__:null,get DocumentPosition(){return br},append:Er,appendChild:Tr,compareDocumentPosition:xr,existsOne:Tn,filter:Sn,find:Cn,findAll:En,findOne:wn,getAttributeValue:Mr,getChildren:kr,getElementById:Nn,getElements:Mn,getElementsByClassName:Fn,getElementsByTagName:Pn,getElementsByTagType:In,getFeed:lr,getInnerHTML:ar,getName:Pr,getOuterHTML:ir,getParent:Ar,getSiblings:jr,getText:or,hasAttrib:Nr,innerText:cr,nextElementSibling:Fr,prepend:Or,prependChild:Dr,prevElementSibling:Ir,removeElement:Cr,removeSubsets:yr,replaceElement:wr,testElement:jn,textContent:sr,uniqueSort:Sr});const Rr=/[-[\]{}()*+?.,\\^$|#\s]/g,zr=/\s/;function Br(e){return e.replace(Rr,`\\$&`)}const Vr=new Set(`accept.accept-charset.align.alink.axis.bgcolor.charset.checked.clear.codetype.color.compact.declare.defer.dir.direction.disabled.enctype.face.frame.hreflang.http-equiv.lang.language.link.media.method.multiple.nohref.noresize.noshade.nowrap.readonly.rel.rev.rules.scope.scrolling.selected.shape.target.text.type.valign.valuetype.vlink`.split(`.`));function Hr(e,t){return typeof e.ignoreCase==`boolean`?e.ignoreCase:e.ignoreCase===`quirks`?!!t.quirksMode:!t.xmlMode&&Vr.has(e.name)}const Ur={equals(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t;return Hr(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return n!=null&&n.length===a.length&&n.toLowerCase()===a&&e(t)}):t=>r.getAttributeValue(t,i)===a&&e(t)},hyphen(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,{length:o}=a;return Hr(t,n)?(a=a.toLowerCase(),function(t){let n=r.getAttributeValue(t,i);return n!=null&&(n.length===o||n.charAt(o)===`-`)&&n.substr(0,o).toLowerCase()===a&&e(t)}):function(t){let n=r.getAttributeValue(t,i);return n!=null&&(n.length===o||n.charAt(o)===`-`)&&n.substr(0,o)===a&&e(t)}},element(e,t,n){let{adapter:r}=n,{name:i,value:a}=t;if(zr.test(a))return z;let o=RegExp(`(?:^|\\s)${Br(a)}(?:$|\\s)`,Hr(t,n)?`i`:``);return function(t){let n=r.getAttributeValue(t,i);return n!=null&&n.length>=a.length&&o.test(n)&&e(t)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,{length:o}=a;return o===0?z:Hr(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return n!=null&&n.length>=o&&n.substr(0,o).toLowerCase()===a&&e(t)}):t=>!!r.getAttributeValue(t,i)?.startsWith(a)&&e(t)},end(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t,o=-a.length;return o===0?z:Hr(t,n)?(a=a.toLowerCase(),t=>r.getAttributeValue(t,i)?.substr(o).toLowerCase()===a&&e(t)):t=>!!r.getAttributeValue(t,i)?.endsWith(a)&&e(t)},any(e,t,n){let{adapter:r}=n,{name:i,value:a}=t;if(a===``)return z;if(Hr(t,n)){let t=new RegExp(Br(a),`i`);return function(n){let o=r.getAttributeValue(n,i);return o!=null&&o.length>=a.length&&t.test(o)&&e(n)}}return t=>!!r.getAttributeValue(t,i)?.includes(a)&&e(t)},not(e,t,n){let{adapter:r}=n,{name:i}=t,{value:a}=t;return a===``?t=>!!r.getAttributeValue(t,i)&&e(t):Hr(t,n)?(a=a.toLowerCase(),t=>{let n=r.getAttributeValue(t,i);return(n==null||n.length!==a.length||n.toLowerCase()!==a)&&e(t)}):t=>r.getAttributeValue(t,i)!==a&&e(t)}};function Wr(e,t,n){let{adapter:r,xmlMode:i=!1}=n,a=[t],o=[0];for(;;){if(o[0]>=a[0].length){if(a.length===1)return null;a.shift(),o.shift();continue}let t=a[0][o[0]++];if(r.isTag(t)){if(e(t))return t;if(i||r.getName(t)!==`template`){let e=r.getChildren(t);e.length>0&&(a.unshift(e),o.unshift(0))}}}}function Gr(e,t){let n=t.getSiblings(e);if(n.length<=1)return[];let r=n.indexOf(e);return r===-1||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Kr(e,t){let n=t.getParent(e);return n!=null&&t.isTag(n)?n:null}const qr=`input:is([type=text i],[type=search i],[type=url i],[type=tel i],[type=email i],[type=password i],[type=date i],[type=month i],[type=week i],[type=time i],[type=datetime-local i],[type=number i])`,Jr={"any-link":`:is(a, area, link)[href]`,link:`:any-link:not(:visited)`,disabled:`:is(
3
+ :is(button, input, select, textarea, optgroup, option)[disabled],
4
+ optgroup[disabled] > option,
5
+ fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
6
+ )`,enabled:`:is(button, input, select, textarea, optgroup, option, fieldset):not(:disabled)`,checked:`:is(:is(input[type=radio], input[type=checkbox])[checked], :selected)`,required:`:is(input, select, textarea)[required]`,optional:`:is(input, select, textarea):not([required])`,"read-only":`[readonly]:is(textarea, ${qr})`,"read-write":`:not([readonly]):is(textarea, ${qr})`,selected:`option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)`,checkbox:`[type=checkbox]`,file:`[type=file]`,password:`[type=password]`,radio:`[type=radio]`,reset:`[type=reset]`,image:`[type=image]`,submit:`[type=submit]`,parent:`:not(:empty)`,header:`:is(h1, h2, h3, h4, h5, h6)`,button:`:is(button, input[type=button])`,input:`:is(input, textarea, select, button)`,text:`input:is(:not([type!='']), [type=text])`};function Yr(e){let t=e[0],n=e[1]-1;if(n<0&&t<=0)return z;if(t===-1)return e=>e<=n;if(t===0)return e=>e===n;if(t===1)return n<0?Wt:e=>e>=n;let r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}const Xr=new Set([9,10,12,13,32]);function Zr(e){switch(e=e.trim().toLowerCase(),e){case`even`:return[2,0];case`odd`:return[2,1]}let t=0,n=0,r=a(),i=o();if(t<e.length&&e.charAt(t)===`n`&&(t++,n=r*(i??1),s(),t<e.length?(r=a(),s(),i=o()):r=i=0),i===null||t<e.length)throw Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*i];function a(){switch(e.charAt(t)){case`-`:return t++,-1;case`+`:t++}return 1}function o(){let n=t,r=0;for(;t<e.length&&e.charCodeAt(t)>=48&&e.charCodeAt(t)<=57;)r=r*10+(e.charCodeAt(t)-48),t++;return t===n?null:r}function s(){for(;t<e.length&&Xr.has(e.charCodeAt(t));)t++}}function Qr(e){return Yr(Zr(e))}function $r(e,{adapter:t,cacheResults:n},r){if(n===!1||typeof WeakMap>`u`)return t=>e(t)&&r(t);let i=new WeakMap;function a(e){let t=r(e);return i.set(e,t),t}return function(n){if(!e(n))return!1;if(i.has(n))return i.get(n)??!1;let r=n;do{let e=Kr(r,t);if(e===null)return a(n);r=e}while(!i.has(r));return i.get(r)?a(n):!1}}function ei(e){let{context:t,rootFunc:n,...r}=e;return r}function ti(e,t){if(t[0]!==`*`&&t[0]!==e[0])return!1;let n=1;for(let r=1;r<t.length;r++)if(t[r]!==`*`){for(;n<e.length&&e[n]!==t[r];)if(e[n++].length<=1)return!1;if(n>=e.length)return!1;n++}return!0}const ni=/^(.+?)\s+of\s+(.+)$/is;function ri(e,t){return function(n,r,i,a,o){let{adapter:s,equals:c}=i,l=t?null:r.match(ni),u=Qr(l?l[1].trim():r);if(u===z)return z;let d=l&&o?o(rn(l[2].trim()),ei(i),a):void 0;if(d===z)return z;if(u===Wt&&!d)return e=>Kr(e,s)!==null&&n(e);let f=d?(e,t)=>d(t):t?(e,t)=>s.getName(t)===s.getName(e):Wt;return e?function(e){if(d&&!d(e))return!1;let t=s.getSiblings(e),r=0;for(let n=t.length-1;n>=0;n--){let i=t[n];if(c(e,i))break;s.isTag(i)&&f(e,i)&&r++}return u(r)&&n(e)}:function(e){if(d&&!d(e))return!1;let t=s.getSiblings(e),r=0;for(let n of t){if(c(e,n))break;s.isTag(n)&&f(e,n)&&r++}return u(r)&&n(e)}}}const ii={contains(e,t,n){let{getText:r}=n.adapter;return $r(e,n,e=>r(e).includes(t))},icontains(e,t,n){let r=t.toLowerCase(),{getText:i}=n.adapter;return $r(e,n,e=>i(e).toLowerCase().includes(r))},"nth-child":ri(!1,!1),"nth-last-child":ri(!0,!1),"nth-of-type":ri(!1,!0),"nth-last-of-type":ri(!0,!0),root(e,t,{adapter:n}){return t=>Kr(t,n)===null&&e(t)},scope(e,t,n,r){let{equals:i}=n;return!r||r.length===0?ii.root(e,t,n):r.length===1?t=>i(r[0],t)&&e(t):t=>r.includes(t)&&e(t)},lang(e,t,{adapter:n}){let r=t.split(`,`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.replace(/^['"]|['"]$/g,``).toLowerCase().split(`-`));return function(t){let i=t;for(;i!=null;){let a=n.getAttributeValue(i,`xml:lang`)??n.getAttributeValue(i,`lang`);if(a!=null){if(!a)return r.some(e=>e[0]===``)&&e(t);let n=a.toLowerCase().split(`-`);return r.some(e=>ti(n,e))&&e(t)}let o=n.getParent(i);i=o!=null&&n.isTag(o)?o:null}return r.some(e=>e[0]===``)&&e(t)}},hover:ai(`isHovered`),visited:ai(`isVisited`),active:ai(`isActive`)};function ai(e){return function(t,n,{adapter:r}){let i=r[e];return typeof i==`function`?function(e){return i(e)&&t(e)}:z}}const oi=/^[ \t\r\n]*$/,si={empty(e,{adapter:t}){let n=t.getChildren(e);return n.every(e=>!t.isTag(e))&&n.every(e=>oi.test(t.getText(e)))},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let r=t.getSiblings(e).find(e=>t.isTag(e));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){let r=t.getSiblings(e);for(let i=r.length-1;i>=0;i--){if(n(e,r[i]))return!0;if(t.isTag(r[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){let r=t.getSiblings(e),i=t.getName(e);for(let a of r){if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){let r=t.getSiblings(e),i=t.getName(e);for(let a=r.length-1;a>=0;a--){let o=r[a];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){let r=t.getName(e);return t.getSiblings(e).every(i=>n(e,i)||!t.isTag(i)||t.getName(i)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function ci(e,t,n,r){if(n===null){if(e.length>r)throw Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw Error(`Pseudo-class :${t} doesn't have any arguments`)}function li(e){return e.type===`_flexibleDescendant`||Zt(e)}function ui(e){let t=e.map(fi);for(let n=1;n<e.length;n++){let r=t[n];if(!(r<0))for(let i=n;i>0&&r<t[i-1];i--){let n=e[i];e[i]=e[i-1],e[i-1]=n,t[i]=t[i-1],t[i-1]=r}}}function di(e){switch(e.action){case Gt.Exists:return 10;case Gt.Equals:return e.name===`id`?9:8;case Gt.Not:return 7;case Gt.Start:return 6;case Gt.End:return 6;case Gt.Any:return 5;case Gt.Hyphen:return 4;case Gt.Element:return 3}}function fi(e){switch(e.type){case B.Universal:return 50;case B.Tag:return 30;case B.Attribute:return Math.floor(di(e)/(e.ignoreCase?2:1));case B.Pseudo:return e.data?e.name===`has`||e.name===`contains`||e.name===`icontains`?0:Array.isArray(e.data)?Math.max(0,Math.min(...e.data.map(e=>Math.min(...e.map(fi))))):2:3;default:return-1}}function pi(e){return e.type===B.Pseudo&&(e.name===`scope`||Array.isArray(e.data)&&e.data.some(e=>e.some(pi)))}const mi={};function hi(e){return e.some(e=>e.length>0&&(li(e[0])||e.some(pi)))}const gi=(e,t,n,r,i)=>{let a=i(t,ei(n),r);return a===Wt?e:a===z?z:t=>a(t)&&e(t)},_i={is:gi,matches:gi,where:gi,not(e,t,n,r,i){let a=i(t,ei(n),r);return a===z?e:a===Wt?z:t=>!a(t)&&e(t)},has(e,t,n,r,i){let{adapter:a}=n,o=ei(n);o.relativeSelector=!0;let s=t.some(e=>e.some(li))?[mi]:void 0,c=hi(t),l=i(t,o,s);if(l===z)return z;if(s&&l!==Wt)return c?t=>{if(!e(t))return!1;s[0]=t;let r=a.getChildren(t);return Wr(l,l.shouldTestNextSiblings?[...r,...Gr(t,a)]:r,n)!==null}:$r(e,n,e=>(s[0]=e,Wr(l,a.getChildren(e),n)!==null));let u=e=>Wr(l,a.getChildren(e),n)!==null;return c?t=>e(t)&&u(t):$r(e,n,u)}};function vi(e,t,n,r,i){let{name:a,data:o}=t;if(Array.isArray(o)){if(!(a in _i))throw Error(`Unknown pseudo-class :${a}(${o})`);return _i[a](e,o,n,r,i)}let s=n.pseudos?.[a],c=typeof s==`string`?s:Jr[a];if(typeof c==`string`){if(o!=null)throw Error(`Pseudo ${a} doesn't have any arguments`);let t=rn(c);return _i.is(e,t,n,r,i)}if(typeof s==`function`)return ci(s,a,o,1),t=>s(t,o)&&e(t);if(a in ii)return ii[a](e,o,n,r,i);if(a in si){let t=si[a];return ci(t,a,o,2),r=>t(r,n,o)&&e(r)}throw Error(`Unknown pseudo-class :${a}`)}function yi(e,t,n,r,i,a){let{adapter:o,equals:s,cacheResults:c}=n;switch(t.type){case B.PseudoElement:throw Error(`Pseudo-elements are not supported by css-select`);case B.ColumnCombinator:throw Error(`Column combinators are not yet supported by css-select`);case B.Attribute:if(t.namespace!=null)throw Error(`Namespaced attributes are not yet supported by css-select`);return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Ur[t.action](e,t,n);case B.Pseudo:return vi(e,t,n,r,i);case B.Tag:{if(t.namespace!=null)throw Error(`Namespaced tag names are not yet supported by css-select`);let{name:r}=t;return(!n.xmlMode||n.lowerCaseTags)&&(r=r.toLowerCase()),function(t){return o.getName(t)===r&&e(t)}}case B.Descendant:{if(!a||c===!1||typeof WeakMap>`u`)return function(t){let n=t;for(;n=Kr(n,o);)if(e(n))return!0;return!1};let t=new WeakMap;return function(n){let r=n,i;for(;r=Kr(r,o);){let n=t.get(r);if(n===void 0){if(i??={matches:!1},i.matches=e(r),t.set(r,i),i.matches)return!0}else return i&&(i.matches=n.matches),n.matches}return!1}}case`_flexibleDescendant`:return function(t){let n=t;do{if(e(n))return!0;n=Kr(n,o)}while(n);return!1};case B.Parent:return function(t){return o.getChildren(t).some(t=>o.isTag(t)&&e(t))};case B.Child:return function(t){let n=Kr(t,o);return n!==null&&e(n)};case B.Sibling:return function(t){let n=o.getSiblings(t);for(let r of n){if(s(t,r))break;if(o.isTag(r)&&e(r))return!0}return!1};case B.Adjacent:return o.prevElementSibling?function(t){let n=o.prevElementSibling(t);return n!=null&&e(n)}:function(t){let n=o.getSiblings(t),r;for(let e of n){if(s(t,e))break;o.isTag(e)&&(r=e)}return!!r&&e(r)};case B.Universal:if(t.namespace!=null&&t.namespace!==`*`)throw Error(`Namespaced universal selectors are not yet supported by css-select`);return e}}const bi={type:B.Descendant},xi={type:`_flexibleDescendant`},Si={type:B.Pseudo,name:`scope`,data:null};function Ci(e,{adapter:t},n){let r=!!n?.every(e=>e===mi||t.isTag(e)&&Kr(e,t)!==null);for(let t of e){if(!(t.length>0&&li(t[0])&&t[0].type!==B.Descendant)){if(r&&!t.some(pi))t.unshift(bi);else continue}t.unshift(Si)}}function wi(e,t,n){for(let t of e)ui(t);let{context:r=n,rootFunc:i=Wt}=t,a=Array.isArray(r),o=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)Ci(e,t,o);else if(e.some(e=>e.length>0&&li(e[0])))throw Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let s=!1,c=z;combineLoop:for(let n of e){if(n.length>=2){let[e,t]=n;e.type!==B.Pseudo||e.name!==`scope`||(a&&t.type===B.Descendant?n[1]=xi:(t.type===B.Adjacent||t.type===B.Sibling)&&(s=!0))}let e=i,r=!1;for(let i of n)if(e=yi(e,i,t,o,wi,r),fi(i)===0&&(r=!0),e===z)continue combineLoop;if(e===i)return i;c=c===z?e:Ti(c,e)}return c.shouldTestNextSiblings=s,c}function Ti(e,t){return n=>e(n)||t(n)}const Ei=(e,t)=>e===t,Di={adapter:{...Lr,isTag:_n},equals:Ei};function Oi(e){let t=e??Di;return t.adapter??=Di.adapter,t.equals??=t.adapter?.equals??Ei,t}function ki(e,t,n){let r=Oi(t),i=Ai(e,r,n);return i===z?z:e=>r.adapter.isTag(e)&&i(e)}function Ai(e,t,n){return wi(typeof e==`string`?rn(e):e,Oi(t),n)}function ji(e,t,n){return(typeof t==`function`?t:ki(t,n))(e)}const{isArray:Mi}=Array,Ni=({nodeType:e})=>e===1,Pi=(e,t)=>t.some(t=>Ni(t)&&(e(t)||Pi(e,Ii(t)))),Fi=(e,t)=>t===`class`?e.classList.value:e.getAttribute(t),Ii=({childNodes:e})=>e,Li=e=>{let{localName:t}=e;return Ae(e)?t.toLowerCase():t},Ri=({parentNode:e})=>e,zi=e=>{let{parentNode:t}=e;return t?Ii(t):e},Bi=e=>Mi(e)?e.map(Bi).join(``):Ni(e)?Bi(Ii(e)):e.nodeType===3?e.data:``,Vi=(e,t)=>e.hasAttribute(t),Hi=e=>{let{length:t}=e;for(;t--;){let n=e[t];if(t&&-1<e.lastIndexOf(n,t-1)){e.splice(t,1);continue}for(let{parentNode:r}=n;r;r=r.parentNode)if(e.includes(r)){e.splice(t,1);break}}return e},Ui=(e,t)=>{let n=[];for(let r of t)Ni(r)&&(e(r)&&n.push(r),n.push(...Ui(e,Ii(r))));return n},Wi=(e,t)=>{for(let n of t)if(e(n)||(n=Wi(e,Ii(n))))return n;return null},Gi={isTag:Ni,existsOne:Pi,getAttributeValue:Fi,getChildren:Ii,getName:Li,getParent:Ri,getSiblings:zi,getText:Bi,hasAttrib:Vi,removeSubsets:Hi,findAll:Ui,findOne:Wi},Ki=(e,t)=>ki(t,{context:t.includes(`:scope`)?e:void 0,xmlMode:!Ae(e),adapter:Gi}),qi=(e,t)=>ji(e,t,{strict:!0,context:t.includes(`:scope`)?e:void 0,xmlMode:!Ae(e),adapter:Gi});let Ji=class e extends Vt{constructor(e,t=``){super(e,`#text`,3,t)}get wholeText(){let e=[],{previousSibling:t,nextSibling:n}=this;for(;t&&t.nodeType===3;)e.unshift(t[x]),t=t.previousSibling;for(e.push(this[x]);n&&n.nodeType===3;)e.push(n[x]),n=n.nextSibling;return e.join(``)}cloneNode(){let{ownerDocument:t,[x]:n}=this;return new e(t,n)}toString(){return Dt(this[x])}};const Yi=e=>e instanceof St,Xi=(e,t,n)=>{let{ownerDocument:r}=e;for(let i of n)e.insertBefore(Yi(i)?i:new Ji(r,i),t)};var Zi=class extends St{constructor(e,t,n){super(e,t,n),this[g]=null,this[p]=this[s]={[p]:null,[h]:this,[v]:this,nodeType:-1,ownerDocument:this.ownerDocument,parentNode:null}}get childNodes(){let e=new bt,{firstChild:t}=this;for(;t;)e.push(t),t=Nt(t);return e}get children(){let e=new bt,{firstElementChild:t}=this;for(;t;)e.push(t),t=Pt(t);return e}get firstChild(){let{[p]:e,[s]:t}=this;for(;e.nodeType===2;)e=e[p];return e===t?null:e}get firstElementChild(){let{firstChild:e}=this;for(;e;){if(e.nodeType===1)return e;e=Nt(e)}return null}get lastChild(){let e=this[s][h];switch(e.nodeType){case-1:return e[v];case 2:return null}return e===this?null:e}get lastElementChild(){let{lastChild:e}=this;for(;e;){if(e.nodeType===1)return e;e=Mt(e)}return null}get childElementCount(){return this.children.length}prepend(...e){Xi(this,this.firstChild,e)}append(...e){Xi(this,this[s],e)}replaceChildren(...e){let{[p]:t,[s]:n}=this;for(;t!==n&&t.nodeType===2;)t=t[p];for(;t!==n;){let e=ke(t)[p];t.remove(),t=e}e.length&&Xi(this,n,e)}getElementsByClassName(e){let t=new bt,{[p]:n,[s]:r}=this;for(;n!==r;)n.nodeType===1&&n.hasAttribute(`class`)&&n.classList.has(e)&&t.push(n),n=n[p];return t}getElementsByTagName(e){let t=new bt,{[p]:n,[s]:r}=this;for(;n!==r;)n.nodeType===1&&(n.localName===e||Fe(n)===e)&&t.push(n),n=n[p];return t}querySelector(e){let t=Ki(this,e),{[p]:n,[s]:r}=this;for(;n!==r;){if(n.nodeType===1&&t(n))return n;n=n.nodeType===1&&n.localName===`template`?n[s]:n[p]}return null}querySelectorAll(e){let t=Ki(this,e),n=new bt,{[p]:r,[s]:i}=this;for(;r!==i;)r.nodeType===1&&t(r)&&n.push(r),r=r.nodeType===1&&r.localName===`template`?r[s]:r[p];return n}appendChild(e){return this.insertBefore(e,this[s])}contains(e){let t=e;for(;t&&t!==this;)t=t.parentNode;return t===this}insertBefore(e,t=null){if(e===t)return e;if(e===this)throw Error(`unable to append a node to itself`);let n=t||this[s];switch(e.nodeType){case 1:e.remove(),e.parentNode=this,Me(n[h],e,n),ut(e,null),Ge(e);break;case 11:{let{[g]:t,firstChild:r,lastChild:i}=e;if(r){Ne(n[h],r,i,n),je(e,e[s]),t&&t.replaceChildren();do r.parentNode=this,ut(r,null),r.nodeType===1&&Ge(r);while(r!==i&&(r=Nt(r)))}break}case 3:case 8:case 4:e.remove();default:e.parentNode=this,Pe(n[h],e,n),ut(e,null)}return e}normalize(){let{[p]:e,[s]:t}=this;for(;e!==t;){let{[p]:t,[h]:n,nodeType:r}=e;r===3&&(e[x]?n&&n.nodeType===3&&(n.textContent+=e.textContent,e.remove()):e.remove()),e=t}}removeChild(e){if(e.parentNode!==this)throw Error(`node is not a child`);return e.remove(),e}replaceChild(e,t){let n=ke(t)[p];return t.remove(),this.insertBefore(e,n),t}},Qi=class extends Zi{getElementById(e){let{[p]:t,[s]:n}=this;for(;t!==n;){if(t.nodeType===1&&t.id===e)return t;t=t[p]}return null}cloneNode(e){let{ownerDocument:t,constructor:n}=this,r=new n(t);if(e){let{[s]:t}=r;for(let n of this.childNodes)r.insertBefore(n.cloneNode(e),t)}return r}toString(){let{childNodes:e,localName:t}=this;return`<${t}>${e.join(``)}</${t}>`}toJSON(){let e=[];return it(this,e),e}};let $i=class extends Qi{constructor(e){super(e,`#document-fragment`,11)}},ea=class e extends St{constructor(e,t,n=``,r=``){super(e,`#document-type`,10),this.name=t,this.publicId=n,this.systemId=r}cloneNode(){let{ownerDocument:t,name:n,publicId:r,systemId:i}=this;return new e(t,n,r,i)}toString(){let{name:e,publicId:t,systemId:n}=this,r=0<t.length,i=[e];return r&&i.push(`PUBLIC`,`"${t}"`),n.length&&(r||i.push(`SYSTEM`),i.push(`"${n}"`)),`<!DOCTYPE ${i.join(` `)}>`}toJSON(){let e=[];return at(this,e),e}};const ta=e=>e.childNodes.join(``),na=(e,t)=>{let{ownerDocument:r}=e,{constructor:i}=r,a=new i;a[n]=r[n];let{childNodes:o}=Qe(a,Ae(e),t);e.replaceChildren(...o.map(ra,r))};function ra(e){switch(e.ownerDocument=this,e.nodeType){case 1:case 11:e.childNodes.forEach(ra,this)}return e}var ia=e=>e.replace(/(([A-Z0-9])([A-Z0-9][a-z]))|(([a-z0-9]+)([A-Z]))/g,`$2$5-$3$6`).toLowerCase();const aa=new WeakMap,oa=e=>`data-${ia(e)}`,sa=e=>e.slice(5).replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),ca={get(e,t){if(t in e)return aa.get(e).getAttribute(oa(t))},set(e,t,n){return e[t]=n,aa.get(e).setAttribute(oa(t),n),!0},deleteProperty(e,t){return t in e&&aa.get(e).removeAttribute(oa(t)),delete e[t]}};var la=class{constructor(e){for(let{name:t,value:n}of e.attributes)/^data-/.test(t)&&(this[sa(t)]=n);return aa.set(this,e),new Proxy(this,ca)}};De(la.prototype,null);const{add:ua}=Set.prototype,da=(e,t)=>{for(let n of t)n&&ua.call(e,n)},fa=({[m]:e,value:t})=>{let n=e.getAttributeNode(`class`);n?n.value=t:pt(e,new kt(e.ownerDocument,`class`,t))};var pa=class extends Set{constructor(e){super(),this[m]=e;let t=e.getAttributeNode(`class`);t&&da(this,t.value.split(/\s+/))}get length(){return this.size}get value(){return[...this].join(` `)}add(...e){da(this,e),fa(this)}contains(e){return this.has(e)}remove(...e){for(let t of e)this.delete(t);fa(this)}toggle(e,t){if(this.has(e)){if(t)return!0;this.delete(e),fa(this)}else if(t||arguments.length===1)return super.add(e),fa(this),!0;return!1}replace(e,t){return this.has(e)?(this.delete(e),super.add(t),fa(this),!0):!1}supports(){return!0}};const ma=new WeakMap,ha=e=>[...e.keys()].filter(e=>e!==g),ga=t=>{let n=ma.get(t).getAttributeNode(`style`);if((!n||n[e]||t.get(g)!==n)&&(t.clear(),n)){t.set(g,n);for(let e of n[x].split(/\s*;\s*/)){let[n,...r]=e.split(`:`);if(r.length>0){n=n.trim();let e=r.join(`:`).trim();n&&e&&t.set(n,e)}}}return n},_a={get(e,t){return t in ya?e[t]:(ga(e),t===`length`?ha(e).length:/^\d+$/.test(t)?ha(e)[t]:e.get(ia(t))??``)},set(t,n,r){if(n===`cssText`)t[n]=r;else{let i=ga(t);if(r==null?t.delete(ia(n)):t.set(ia(n),r),!i){let e=ma.get(t);i=e.ownerDocument.createAttribute(`style`),e.setAttributeNode(i),t.set(g,i)}i[e]=!1,i[x]=t.toString()}return!0}};let va=class extends Map{constructor(e){return super(),ma.set(this,e),new Proxy(this,_a)}get cssText(){return this.toString()}set cssText(e){ma.get(this).setAttribute(`style`,e)}getPropertyValue(e){let t=this[g];return _a.get(t,e)}setProperty(e,t){let n=this[g];_a.set(n,e,t)}removeProperty(e){let t=this[g];_a.set(t,e,null)}[Symbol.iterator](){let e=this[g];ga(e);let t=ha(e),{length:n}=t,r=0;return{next(){let e=r===n;return{done:e,value:e?null:t[r++]}}}}get[g](){return this}toString(){let e=this[g];ga(e);let t=[];return e.forEach(ba,t),t.join(`;`)}};const{prototype:ya}=va;function ba(e,t){t!==g&&this.push(`${t}:${e}`)}function xa(e){return e.currentTarget}var Sa=class{static get BUBBLING_PHASE(){return 3}static get AT_TARGET(){return 2}static get CAPTURING_PHASE(){return 1}static get NONE(){return 0}constructor(e,t={}){this.type=e,this.bubbles=!!t.bubbles,this.cancelBubble=!1,this._stopImmediatePropagationFlag=!1,this.cancelable=!!t.cancelable,this.eventPhase=this.NONE,this.timeStamp=Date.now(),this.defaultPrevented=!1,this.originalTarget=null,this.returnValue=null,this.srcElement=null,this.target=null,this._path=[]}get BUBBLING_PHASE(){return 3}get AT_TARGET(){return 2}get CAPTURING_PHASE(){return 1}get NONE(){return 0}preventDefault(){this.defaultPrevented=!0}composedPath(){return this._path.map(xa)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this._stopImmediatePropagationFlag=!0}},Ca=class extends Array{constructor(e){super(),this.ownerElement=e}getNamedItem(e){return this.ownerElement.getAttributeNode(e)}setNamedItem(e){this.ownerElement.setAttributeNode(e),this.unshift(e)}removeNamedItem(e){let t=this.getNamedItem(e);this.ownerElement.removeAttribute(e),this.splice(this.indexOf(t),1)}item(e){return e<this.length?this[e]:null}getNamedItemNS(e,t){return this.getNamedItem(t)}setNamedItemNS(e,t){return this.setNamedItem(t)}removeNamedItemNS(e,t){return this.removeNamedItem(t)}};let wa=class extends Qi{constructor(e){super(e.ownerDocument,`#shadow-root`,11),this.host=e}get innerHTML(){return ta(this)}set innerHTML(e){na(this,e)}};const Ta={get(e,t){return t in e?e[t]:e.find(({name:e})=>e===t)}},Ea=(e,t,n)=>{if(`ownerSVGElement`in t){let r=e.createElementNS(xe,n);return r.ownerSVGElement=t.ownerSVGElement,r}return e.createElement(n)},Da=({localName:e,ownerDocument:t})=>t[d].voidElements.test(e);let Oa=class extends Zi{constructor(e,n){super(e,n,1),this[t]=null,this[i]=null,this[y]=null}get isConnected(){return At(this)}get parentElement(){return jt(this)}get previousSibling(){return Mt(this)}get nextSibling(){return Nt(this)}get namespaceURI(){return`http://www.w3.org/1999/xhtml`}get previousElementSibling(){return Ft(this)}get nextElementSibling(){return Pt(this)}before(...e){Lt(this,e)}after(...e){Rt(this,e)}replaceWith(...e){zt(this,e)}remove(){Bt(this[h],this,this[s][p])}get id(){return R.get(this,`id`)}set id(e){R.set(this,`id`,e)}get className(){return this.classList.value}set className(e){let{classList:t}=this;t.clear(),t.add(...Oe(e).split(/\s+/))}get nodeName(){return Fe(this)}get tagName(){return Fe(this)}get classList(){return this[t]||(this[t]=new pa(this))}get dataset(){return this[i]||(this[i]=new la(this))}getBoundingClientRect(){return{x:0,y:0,bottom:0,height:0,left:0,right:0,top:0,width:0}}get nonce(){return R.get(this,`nonce`)}set nonce(e){R.set(this,`nonce`,e)}get style(){return this[y]||(this[y]=new va(this))}get tabIndex(){return ht.get(this,`tabindex`)||-1}set tabIndex(e){ht.set(this,`tabindex`,e)}get slot(){return R.get(this,`slot`)}set slot(e){R.set(this,`slot`,e)}get innerText(){let e=[],{[p]:t,[s]:n}=this;for(;t!==n;)t.nodeType===3?e.push(t.textContent.replace(/\s+/g,` `)):e.length&&t[p]!=n&&be.has(t.tagName)&&e.push(`
7
+ `),t=t[p];return e.join(``)}get textContent(){let e=[],{[p]:t,[s]:n}=this;for(;t!==n;){let n=t.nodeType;(n===3||n===4)&&e.push(t.textContent),t=t[p]}return e.join(``)}set textContent(e){this.replaceChildren(),e!=null&&e!==``&&this.appendChild(new Ji(this.ownerDocument,e))}get innerHTML(){return ta(this)}set innerHTML(e){na(this,e)}get outerHTML(){return this.toString()}set outerHTML(e){let t=this.ownerDocument.createElement(``);t.innerHTML=e,this.replaceWith(...t.childNodes)}get attributes(){let e=new Ca(this),t=this[p];for(;t.nodeType===2;)e.push(t),t=t[p];return new Proxy(e,Ta)}focus(){this.dispatchEvent(new Sa(`focus`))}getAttribute(e){if(e===`class`)return this.className;let t=this.getAttributeNode(e);return t&&(Ae(this)?t.value:Dt(t.value))}getAttributeNode(e){let t=this[p];for(;t.nodeType===2;){if(t.name===e)return t;t=t[p]}return null}getAttributeNames(){let e=new bt,t=this[p];for(;t.nodeType===2;)e.push(t.name),t=t[p];return e}hasAttribute(e){return!!this.getAttributeNode(e)}hasAttributes(){return this[p].nodeType===2}removeAttribute(e){e===`class`&&this[t]&&this[t].clear();let n=this[p];for(;n.nodeType===2;){if(n.name===e){mt(this,n);return}n=n[p]}}removeAttributeNode(e){let t=this[p];for(;t.nodeType===2;){if(t===e){mt(this,t);return}t=t[p]}}setAttribute(e,t){if(e===`class`)this.className=t;else{let n=this.getAttributeNode(e);n?n.value=t:pt(this,new kt(this.ownerDocument,e,t))}}setAttributeNode(e){let{name:t}=e,n=this.getAttributeNode(t);if(n!==e){n&&this.removeAttributeNode(n);let{ownerElement:t}=e;t&&t.removeAttributeNode(e),pt(this,e)}return n}toggleAttribute(e,t){return this.hasAttribute(e)?t?!0:(this.removeAttribute(e),!1):t||arguments.length===1?(this.setAttribute(e,``),!0):!1}get shadowRoot(){if(Re.has(this)){let{mode:e,shadowRoot:t}=Re.get(this);if(e===`open`)return t}return null}attachShadow(e){if(Re.has(this))throw Error(`operation not supported`);let t=new wa(this);return Re.set(this,{mode:e.mode,shadowRoot:t}),t}matches(e){return qi(this,e)}closest(e){let t=this,n=Ki(t,e);for(;t&&!n(t);)t=t.parentElement;return t}insertAdjacentElement(e,t){let{parentElement:n}=this;switch(e){case`beforebegin`:if(n){n.insertBefore(t,this);break}return null;case`afterbegin`:this.insertBefore(t,this.firstChild);break;case`beforeend`:this.insertBefore(t,null);break;case`afterend`:if(n){n.insertBefore(t,this.nextSibling);break}return null}return t}insertAdjacentHTML(e,t){this.insertAdjacentElement(e,Le(this.ownerDocument,t))}insertAdjacentText(e,t){let n=this.ownerDocument.createTextNode(t);this.insertAdjacentElement(e,n)}cloneNode(e=!1){let{ownerDocument:t,localName:n}=this,r=e=>{e.parentNode=a,je(o,e),o=e},i=Ea(t,this,n),a=i,o=i,{[p]:c,[s]:l}=this;for(;c!==l&&(e||c.nodeType===2);){switch(c.nodeType){case-1:je(o,a[s]),o=a[s],a=a.parentNode;break;case 1:{let e=Ea(t,c,c.localName);r(e),a=e;break}case 2:{let t=c.cloneNode(e);t.ownerElement=a,r(t);break}case 3:case 8:case 4:r(c.cloneNode(e))}c=c[p]}return je(o,i[s]),i}toString(){let e=[],{[s]:t}=this,n={[p]:this},r=!1;do switch(n=n[p],n.nodeType){case 2:{let t=` `+n;switch(t){case` id`:case` class`:case` style`:break;default:e.push(t)}break}case-1:{let t=n[v];r?(`ownerSVGElement`in t?e.push(` />`):Da(t)?e.push(Ae(t)?`>`:` />`):e.push(`></${t.localName}>`),r=!1):e.push(`</${t.localName}>`);break}case 1:r&&e.push(`>`),n.toString===this.toString?(e.push(`<${n.localName}`),r=!0):(e.push(n.toString()),n=n[s],r=!1);break;case 3:case 8:case 4:e.push((r?`>`:``)+n),r=!1}while(n!==t);return e.join(``)}toJSON(){let e=[];return ot(this,e),e}getAttributeNS(e,t){return this.getAttribute(t)}getElementsByTagNameNS(e,t){return this.getElementsByTagName(t)}hasAttributeNS(e,t){return this.hasAttribute(t)}removeAttributeNS(e,t){this.removeAttribute(t)}setAttributeNS(e,t,n){this.setAttribute(t,n)}setAttributeNodeNS(e){return this.setAttributeNode(e)}};const ka=new WeakMap,Aa={get(e,t){return e[t]},set(e,t,n){return e[t]=n,!0}};let ja=class extends Oa{constructor(e,t,n=null){super(e,t),this.ownerSVGElement=n}get className(){return ka.has(this)||ka.set(this,new Proxy({baseVal:``,animVal:``},Aa)),ka.get(this)}set className(e){let{classList:t}=this;t.clear(),t.add(...Oe(e).split(/\s+/))}get namespaceURI(){return`http://www.w3.org/2000/svg`}getAttribute(e){return e===`class`?[...this.classList].join(` `):super.getAttribute(e)}setAttribute(e,t){if(e===`class`)this.className=t;else if(e===`style`){let{className:e}=this;e.baseVal=e.animVal=t}super.setAttribute(e,t)}};const Ma=()=>{throw TypeError(`Illegal constructor`)};function Na(){Ma()}De(Na,kt),Na.prototype=kt.prototype;function Pa(){Ma()}De(Pa,Ht),Pa.prototype=Ht.prototype;function Fa(){Ma()}De(Fa,Vt),Fa.prototype=Vt.prototype;function Ia(){Ma()}De(Ia,Ut),Ia.prototype=Ut.prototype;function La(){Ma()}De(La,$i),La.prototype=$i.prototype;function Ra(){Ma()}De(Ra,ea),Ra.prototype=ea.prototype;function za(){Ma()}De(za,Oa),za.prototype=Oa.prototype;function Ba(){Ma()}De(Ba,St),Ba.prototype=St.prototype;function Va(){Ma()}De(Va,wa),Va.prototype=wa.prototype;function Ha(){Ma()}De(Ha,Ji),Ha.prototype=Ji.prototype;function Ua(){Ma()}De(Ua,ja),Ua.prototype=ja.prototype;const Wa={Attr:Na,CDATASection:Pa,CharacterData:Fa,Comment:Ia,DocumentFragment:La,DocumentType:Ra,Element:za,Node:Ba,ShadowRoot:Va,Text:Ha,SVGElement:Ua},Ga=new WeakMap,H={get(e,t){return Ga.has(e)&&Ga.get(e)[t]||null},set(e,t,n){Ga.has(e)||Ga.set(e,{});let r=Ga.get(e),i=t.slice(2);r[t]&&e.removeEventListener(i,r[t],!1),(r[t]=n)&&e.addEventListener(i,n,!1)}};var U=class extends Oa{static get observedAttributes(){return[]}constructor(e=null,t=``){super(e,t);let n=!e,r;if(n){let{constructor:n}=this;if(!Be.has(n))throw Error(`unable to initialize this Custom Element`);({ownerDocument:e,localName:t,options:r}=Be.get(n))}if(e[b]){let{element:t,values:n}=e[b];e[b]=null;for(let[e,r]of n)t[e]=r;return t}n&&(this.ownerDocument=this[s].ownerDocument=e,this.localName=t,Ve.set(this,{connected:!1}),r.is&&this.setAttribute(`is`,r.is))}blur(){this.dispatchEvent(new Sa(`blur`))}click(){let e=new Sa(`click`,{bubbles:!0,cancelable:!0});e.button=0,this.dispatchEvent(e)}get accessKeyLabel(){let{accessKey:e}=this;return e&&`Alt+Shift+${e}`}get isContentEditable(){return this.hasAttribute(`contenteditable`)}get contentEditable(){return L.get(this,`contenteditable`)}set contentEditable(e){L.set(this,`contenteditable`,e)}get draggable(){return L.get(this,`draggable`)}set draggable(e){L.set(this,`draggable`,e)}get hidden(){return L.get(this,`hidden`)}set hidden(e){L.set(this,`hidden`,e)}get spellcheck(){return L.get(this,`spellcheck`)}set spellcheck(e){L.set(this,`spellcheck`,e)}get accessKey(){return R.get(this,`accesskey`)}set accessKey(e){R.set(this,`accesskey`,e)}get dir(){return R.get(this,`dir`)}set dir(e){R.set(this,`dir`,e)}get lang(){return R.get(this,`lang`)}set lang(e){R.set(this,`lang`,e)}get title(){return R.get(this,`title`)}set title(e){R.set(this,`title`,e)}get onabort(){return H.get(this,`onabort`)}set onabort(e){H.set(this,`onabort`,e)}get onblur(){return H.get(this,`onblur`)}set onblur(e){H.set(this,`onblur`,e)}get oncancel(){return H.get(this,`oncancel`)}set oncancel(e){H.set(this,`oncancel`,e)}get oncanplay(){return H.get(this,`oncanplay`)}set oncanplay(e){H.set(this,`oncanplay`,e)}get oncanplaythrough(){return H.get(this,`oncanplaythrough`)}set oncanplaythrough(e){H.set(this,`oncanplaythrough`,e)}get onchange(){return H.get(this,`onchange`)}set onchange(e){H.set(this,`onchange`,e)}get onclick(){return H.get(this,`onclick`)}set onclick(e){H.set(this,`onclick`,e)}get onclose(){return H.get(this,`onclose`)}set onclose(e){H.set(this,`onclose`,e)}get oncontextmenu(){return H.get(this,`oncontextmenu`)}set oncontextmenu(e){H.set(this,`oncontextmenu`,e)}get oncuechange(){return H.get(this,`oncuechange`)}set oncuechange(e){H.set(this,`oncuechange`,e)}get ondblclick(){return H.get(this,`ondblclick`)}set ondblclick(e){H.set(this,`ondblclick`,e)}get ondrag(){return H.get(this,`ondrag`)}set ondrag(e){H.set(this,`ondrag`,e)}get ondragend(){return H.get(this,`ondragend`)}set ondragend(e){H.set(this,`ondragend`,e)}get ondragenter(){return H.get(this,`ondragenter`)}set ondragenter(e){H.set(this,`ondragenter`,e)}get ondragleave(){return H.get(this,`ondragleave`)}set ondragleave(e){H.set(this,`ondragleave`,e)}get ondragover(){return H.get(this,`ondragover`)}set ondragover(e){H.set(this,`ondragover`,e)}get ondragstart(){return H.get(this,`ondragstart`)}set ondragstart(e){H.set(this,`ondragstart`,e)}get ondrop(){return H.get(this,`ondrop`)}set ondrop(e){H.set(this,`ondrop`,e)}get ondurationchange(){return H.get(this,`ondurationchange`)}set ondurationchange(e){H.set(this,`ondurationchange`,e)}get onemptied(){return H.get(this,`onemptied`)}set onemptied(e){H.set(this,`onemptied`,e)}get onended(){return H.get(this,`onended`)}set onended(e){H.set(this,`onended`,e)}get onerror(){return H.get(this,`onerror`)}set onerror(e){H.set(this,`onerror`,e)}get onfocus(){return H.get(this,`onfocus`)}set onfocus(e){H.set(this,`onfocus`,e)}get oninput(){return H.get(this,`oninput`)}set oninput(e){H.set(this,`oninput`,e)}get oninvalid(){return H.get(this,`oninvalid`)}set oninvalid(e){H.set(this,`oninvalid`,e)}get onkeydown(){return H.get(this,`onkeydown`)}set onkeydown(e){H.set(this,`onkeydown`,e)}get onkeypress(){return H.get(this,`onkeypress`)}set onkeypress(e){H.set(this,`onkeypress`,e)}get onkeyup(){return H.get(this,`onkeyup`)}set onkeyup(e){H.set(this,`onkeyup`,e)}get onload(){return H.get(this,`onload`)}set onload(e){H.set(this,`onload`,e)}get onloadeddata(){return H.get(this,`onloadeddata`)}set onloadeddata(e){H.set(this,`onloadeddata`,e)}get onloadedmetadata(){return H.get(this,`onloadedmetadata`)}set onloadedmetadata(e){H.set(this,`onloadedmetadata`,e)}get onloadstart(){return H.get(this,`onloadstart`)}set onloadstart(e){H.set(this,`onloadstart`,e)}get onmousedown(){return H.get(this,`onmousedown`)}set onmousedown(e){H.set(this,`onmousedown`,e)}get onmouseenter(){return H.get(this,`onmouseenter`)}set onmouseenter(e){H.set(this,`onmouseenter`,e)}get onmouseleave(){return H.get(this,`onmouseleave`)}set onmouseleave(e){H.set(this,`onmouseleave`,e)}get onmousemove(){return H.get(this,`onmousemove`)}set onmousemove(e){H.set(this,`onmousemove`,e)}get onmouseout(){return H.get(this,`onmouseout`)}set onmouseout(e){H.set(this,`onmouseout`,e)}get onmouseover(){return H.get(this,`onmouseover`)}set onmouseover(e){H.set(this,`onmouseover`,e)}get onmouseup(){return H.get(this,`onmouseup`)}set onmouseup(e){H.set(this,`onmouseup`,e)}get onmousewheel(){return H.get(this,`onmousewheel`)}set onmousewheel(e){H.set(this,`onmousewheel`,e)}get onpause(){return H.get(this,`onpause`)}set onpause(e){H.set(this,`onpause`,e)}get onplay(){return H.get(this,`onplay`)}set onplay(e){H.set(this,`onplay`,e)}get onplaying(){return H.get(this,`onplaying`)}set onplaying(e){H.set(this,`onplaying`,e)}get onprogress(){return H.get(this,`onprogress`)}set onprogress(e){H.set(this,`onprogress`,e)}get onratechange(){return H.get(this,`onratechange`)}set onratechange(e){H.set(this,`onratechange`,e)}get onreset(){return H.get(this,`onreset`)}set onreset(e){H.set(this,`onreset`,e)}get onresize(){return H.get(this,`onresize`)}set onresize(e){H.set(this,`onresize`,e)}get onscroll(){return H.get(this,`onscroll`)}set onscroll(e){H.set(this,`onscroll`,e)}get onseeked(){return H.get(this,`onseeked`)}set onseeked(e){H.set(this,`onseeked`,e)}get onseeking(){return H.get(this,`onseeking`)}set onseeking(e){H.set(this,`onseeking`,e)}get onselect(){return H.get(this,`onselect`)}set onselect(e){H.set(this,`onselect`,e)}get onshow(){return H.get(this,`onshow`)}set onshow(e){H.set(this,`onshow`,e)}get onstalled(){return H.get(this,`onstalled`)}set onstalled(e){H.set(this,`onstalled`,e)}get onsubmit(){return H.get(this,`onsubmit`)}set onsubmit(e){H.set(this,`onsubmit`,e)}get onsuspend(){return H.get(this,`onsuspend`)}set onsuspend(e){H.set(this,`onsuspend`,e)}get ontimeupdate(){return H.get(this,`ontimeupdate`)}set ontimeupdate(e){H.set(this,`ontimeupdate`,e)}get ontoggle(){return H.get(this,`ontoggle`)}set ontoggle(e){H.set(this,`ontoggle`,e)}get onvolumechange(){return H.get(this,`onvolumechange`)}set onvolumechange(e){H.set(this,`onvolumechange`,e)}get onwaiting(){return H.get(this,`onwaiting`)}set onwaiting(e){H.set(this,`onwaiting`,e)}get onauxclick(){return H.get(this,`onauxclick`)}set onauxclick(e){H.set(this,`onauxclick`,e)}get ongotpointercapture(){return H.get(this,`ongotpointercapture`)}set ongotpointercapture(e){H.set(this,`ongotpointercapture`,e)}get onlostpointercapture(){return H.get(this,`onlostpointercapture`)}set onlostpointercapture(e){H.set(this,`onlostpointercapture`,e)}get onpointercancel(){return H.get(this,`onpointercancel`)}set onpointercancel(e){H.set(this,`onpointercancel`,e)}get onpointerdown(){return H.get(this,`onpointerdown`)}set onpointerdown(e){H.set(this,`onpointerdown`,e)}get onpointerenter(){return H.get(this,`onpointerenter`)}set onpointerenter(e){H.set(this,`onpointerenter`,e)}get onpointerleave(){return H.get(this,`onpointerleave`)}set onpointerleave(e){H.set(this,`onpointerleave`,e)}get onpointermove(){return H.get(this,`onpointermove`)}set onpointermove(e){H.set(this,`onpointermove`,e)}get onpointerout(){return H.get(this,`onpointerout`)}set onpointerout(e){H.set(this,`onpointerout`,e)}get onpointerover(){return H.get(this,`onpointerover`)}set onpointerover(e){H.set(this,`onpointerover`,e)}get onpointerup(){return H.get(this,`onpointerup`)}set onpointerup(e){H.set(this,`onpointerup`,e)}};const Ka=`template`;var qa=class extends U{constructor(e){super(e,Ka);let t=this.ownerDocument.createDocumentFragment();(this[r]=t)[g]=this}get content(){if(this.hasChildNodes()&&!this[r].hasChildNodes())for(let e of this.childNodes)this[r].appendChild(e.cloneNode(!0));return this[r]}};et(Ka,qa);var Ja=class extends U{constructor(e,t=`html`){super(e,t)}};const{toString:Ya}=U.prototype;var Xa=class extends U{get innerHTML(){return this.textContent}set innerHTML(e){this.textContent=e}toString(){return Ya.call(this.cloneNode()).replace(`><`,()=>`>${this.textContent}<`)}};const Za=`script`;var Qa=class extends Xa{constructor(e,t=Za){super(e,t)}get type(){return R.get(this,`type`)}set type(e){R.set(this,`type`,e)}get src(){return R.get(this,`src`)}set src(e){R.set(this,`src`,e)}get defer(){return L.get(this,`defer`)}set defer(e){L.set(this,`defer`,e)}get crossOrigin(){return R.get(this,`crossorigin`)}set crossOrigin(e){R.set(this,`crossorigin`,e)}get nomodule(){return L.get(this,`nomodule`)}set nomodule(e){L.set(this,`nomodule`,e)}get referrerPolicy(){return R.get(this,`referrerpolicy`)}set referrerPolicy(e){R.set(this,`referrerpolicy`,e)}get nonce(){return R.get(this,`nonce`)}set nonce(e){R.set(this,`nonce`,e)}get async(){return L.get(this,`async`)}set async(e){L.set(this,`async`,e)}get text(){return this.textContent}set text(e){this.textContent=e}};et(Za,Qa);var $a=class extends U{constructor(e,t=`frame`){super(e,t)}};const eo=`iframe`;var to=class extends U{constructor(e,t=eo){super(e,t)}get src(){return R.get(this,`src`)}set src(e){R.set(this,`src`,e)}get srcdoc(){return R.get(this,`srcdoc`)}set srcdoc(e){R.set(this,`srcdoc`,e)}get name(){return R.get(this,`name`)}set name(e){R.set(this,`name`,e)}get allow(){return R.get(this,`allow`)}set allow(e){R.set(this,`allow`,e)}get allowFullscreen(){return L.get(this,`allowfullscreen`)}set allowFullscreen(e){L.set(this,`allowfullscreen`,e)}get referrerPolicy(){return R.get(this,`referrerpolicy`)}set referrerPolicy(e){R.set(this,`referrerpolicy`,e)}get loading(){return R.get(this,`loading`)}set loading(e){R.set(this,`loading`,e)}};et(eo,to);var no=class extends U{constructor(e,t=`object`){super(e,t)}},ro=class extends U{constructor(e,t=`head`){super(e,t)}},io=class extends U{constructor(e,t=`body`){super(e,t)}},W={},ao={},oo={},so={},co={},lo;function uo(){if(lo)return co;lo=1;var e={};return e.StyleSheet=function(){this.parentStyleSheet=null},co.StyleSheet=e.StyleSheet,co}var fo={},po={},mo;function ho(){if(mo)return po;mo=1;var e={};return e.CSSRule=function(){this.parentRule=null,this.parentStyleSheet=null},e.CSSRule.UNKNOWN_RULE=0,e.CSSRule.STYLE_RULE=1,e.CSSRule.CHARSET_RULE=2,e.CSSRule.IMPORT_RULE=3,e.CSSRule.MEDIA_RULE=4,e.CSSRule.FONT_FACE_RULE=5,e.CSSRule.PAGE_RULE=6,e.CSSRule.KEYFRAMES_RULE=7,e.CSSRule.KEYFRAME_RULE=8,e.CSSRule.MARGIN_RULE=9,e.CSSRule.NAMESPACE_RULE=10,e.CSSRule.COUNTER_STYLE_RULE=11,e.CSSRule.SUPPORTS_RULE=12,e.CSSRule.DOCUMENT_RULE=13,e.CSSRule.FONT_FEATURE_VALUES_RULE=14,e.CSSRule.VIEWPORT_RULE=15,e.CSSRule.REGION_STYLE_RULE=16,e.CSSRule.prototype={constructor:e.CSSRule},po.CSSRule=e.CSSRule,po}var go;function _o(){if(go)return fo;go=1;var e={CSSStyleDeclaration:ds().CSSStyleDeclaration,CSSRule:ho().CSSRule};return e.CSSStyleRule=function(){e.CSSRule.call(this),this.selectorText=``,this.style=new e.CSSStyleDeclaration,this.style.parentRule=this},e.CSSStyleRule.prototype=new e.CSSRule,e.CSSStyleRule.prototype.constructor=e.CSSStyleRule,e.CSSStyleRule.prototype.type=1,Object.defineProperty(e.CSSStyleRule.prototype,"cssText",{get:function(){return this.selectorText?this.selectorText+` {`+this.style.cssText+`}`:``},set:function(t){var n=e.CSSStyleRule.parse(t);this.style=n.style,this.selectorText=n.selectorText}}),e.CSSStyleRule.parse=function(t){for(var n=0,r=`selector`,i,a=n,o=``,s={selector:!0,value:!0},c=new e.CSSStyleRule,l,u=``,d;d=t.charAt(n);n++)switch(d){case` `:case` `:case`\r`:case`
8
+ `:case`\f`:if(s[r])switch(t.charAt(n-1)){case` `:case` `:case`\r`:case`
9
+ `:case`\f`:break;default:o+=` `}break;case`"`:if(a=n+1,i=t.indexOf(`"`,a)+1,!i)throw`" is missing`;o+=t.slice(n,i),n=i-1;break;case`'`:if(a=n+1,i=t.indexOf(`'`,a)+1,!i)throw`' is missing`;o+=t.slice(n,i),n=i-1;break;case`/`:if(t.charAt(n+1)===`*`){if(n+=2,i=t.indexOf(`*/`,n),i===-1)throw SyntaxError(`Missing */`);n=i+1}else o+=d;break;case`{`:r===`selector`&&(c.selectorText=o.trim(),o=``,r=`name`);break;case`:`:r===`name`?(l=o.trim(),o=``,r=`value`):o+=d;break;case`!`:r===`value`&&t.indexOf(`!important`,n)===n?(u=`important`,n+=9):o+=d;break;case`;`:r===`value`?(c.style.setProperty(l,o.trim(),u),u=``,o=``,r=`name`):o+=d;break;case`}`:if(r===`value`)c.style.setProperty(l,o.trim(),u),u=``,o=``;else if(r===`name`)break;else o+=d;r=`selector`;break;default:o+=d}return c},fo.CSSStyleRule=e.CSSStyleRule,fo}var vo;function yo(){if(vo)return so;vo=1;var e={StyleSheet:uo().StyleSheet,CSSStyleRule:_o().CSSStyleRule};return e.CSSStyleSheet=function(){e.StyleSheet.call(this),this.cssRules=[]},e.CSSStyleSheet.prototype=new e.StyleSheet,e.CSSStyleSheet.prototype.constructor=e.CSSStyleSheet,e.CSSStyleSheet.prototype.insertRule=function(t,n){if(n<0||n>this.cssRules.length)throw RangeError(`INDEX_SIZE_ERR`);var r=e.parse(t).cssRules[0];return r.parentStyleSheet=this,this.cssRules.splice(n,0,r),n},e.CSSStyleSheet.prototype.deleteRule=function(e){if(e<0||e>=this.cssRules.length)throw RangeError(`INDEX_SIZE_ERR`);this.cssRules.splice(e,1)},e.CSSStyleSheet.prototype.toString=function(){for(var e=``,t=this.cssRules,n=0;n<t.length;n++)e+=t[n].cssText+`
10
+ `;return e},so.CSSStyleSheet=e.CSSStyleSheet,e.parse=ls().parse,so}var bo={},xo={},So;function Co(){if(So)return xo;So=1;var e={};return e.MediaList=function(){this.length=0},e.MediaList.prototype={constructor:e.MediaList,get mediaText(){return Array.prototype.join.call(this,`, `)},set mediaText(e){for(var t=e.split(`,`),n=this.length=t.length,r=0;r<n;r++)this[r]=t[r].trim()},appendMedium:function(e){Array.prototype.indexOf.call(this,e)===-1&&(this[this.length]=e,this.length++)},deleteMedium:function(e){var t=Array.prototype.indexOf.call(this,e);t!==-1&&Array.prototype.splice.call(this,t,1)}},xo.MediaList=e.MediaList,xo}var wo;function To(){if(wo)return bo;wo=1;var e={CSSRule:ho().CSSRule,CSSStyleSheet:yo().CSSStyleSheet,MediaList:Co().MediaList};return e.CSSImportRule=function(){e.CSSRule.call(this),this.href=``,this.media=new e.MediaList,this.styleSheet=new e.CSSStyleSheet},e.CSSImportRule.prototype=new e.CSSRule,e.CSSImportRule.prototype.constructor=e.CSSImportRule,e.CSSImportRule.prototype.type=3,Object.defineProperty(e.CSSImportRule.prototype,"cssText",{get:function(){var e=this.media.mediaText;return`@import url(`+this.href+`)`+(e?` `+e:``)+`;`},set:function(e){for(var t=0,n=``,r=``,i,a;a=e.charAt(t);t++)switch(a){case` `:case` `:case`\r`:case`
11
+ `:case`\f`:n===`after-import`?n=`url`:r+=a;break;case`@`:!n&&e.indexOf(`@import`,t)===t&&(n=`after-import`,t+=6,r=``);break;case`u`:if(n===`url`&&e.indexOf(`url(`,t)===t){if(i=e.indexOf(`)`,t+1),i===-1)throw t+`: ")" not found`;t+=4;var o=e.slice(t,i);o[0]===o[o.length-1]&&(o[0]===`"`||o[0]===`'`)&&(o=o.slice(1,-1)),this.href=o,t=i,n=`media`}break;case`"`:if(n===`url`){if(i=e.indexOf(`"`,t+1),!i)throw t+`: '"' not found`;this.href=e.slice(t+1,i),t=i,n=`media`}break;case`'`:if(n===`url`){if(i=e.indexOf(`'`,t+1),!i)throw t+`: "'" not found`;this.href=e.slice(t+1,i),t=i,n=`media`}break;case`;`:n===`media`&&r&&(this.media.mediaText=r.trim());break;default:n===`media`&&(r+=a)}}}),bo.CSSImportRule=e.CSSImportRule,bo}var Eo={},Do;function Oo(){if(Do)return Eo;Do=1;var e={CSSRule:ho().CSSRule};return e.CSSGroupingRule=function(){e.CSSRule.call(this),this.cssRules=[]},e.CSSGroupingRule.prototype=new e.CSSRule,e.CSSGroupingRule.prototype.constructor=e.CSSGroupingRule,e.CSSGroupingRule.prototype.insertRule=function(t,n){if(n<0||n>this.cssRules.length)throw RangeError(`INDEX_SIZE_ERR`);var r=e.parse(t).cssRules[0];return r.parentRule=this,this.cssRules.splice(n,0,r),n},e.CSSGroupingRule.prototype.deleteRule=function(e){if(e<0||e>=this.cssRules.length)throw RangeError(`INDEX_SIZE_ERR`);this.cssRules.splice(e,1)[0].parentRule=null},Eo.CSSGroupingRule=e.CSSGroupingRule,Eo}var ko={},Ao={},jo;function Mo(){if(jo)return Ao;jo=1;var e={CSSRule:ho().CSSRule,CSSGroupingRule:Oo().CSSGroupingRule};return e.CSSConditionRule=function(){e.CSSGroupingRule.call(this),this.cssRules=[]},e.CSSConditionRule.prototype=new e.CSSGroupingRule,e.CSSConditionRule.prototype.constructor=e.CSSConditionRule,e.CSSConditionRule.prototype.conditionText=``,e.CSSConditionRule.prototype.cssText=``,Ao.CSSConditionRule=e.CSSConditionRule,Ao}var No;function Po(){if(No)return ko;No=1;var e={CSSRule:ho().CSSRule,CSSGroupingRule:Oo().CSSGroupingRule,CSSConditionRule:Mo().CSSConditionRule,MediaList:Co().MediaList};return e.CSSMediaRule=function(){e.CSSConditionRule.call(this),this.media=new e.MediaList},e.CSSMediaRule.prototype=new e.CSSConditionRule,e.CSSMediaRule.prototype.constructor=e.CSSMediaRule,e.CSSMediaRule.prototype.type=4,Object.defineProperties(e.CSSMediaRule.prototype,{conditionText:{get:function(){return this.media.mediaText},set:function(e){this.media.mediaText=e},configurable:!0,enumerable:!0},cssText:{get:function(){for(var e=[],t=0,n=this.cssRules.length;t<n;t++)e.push(this.cssRules[t].cssText);return`@media `+this.media.mediaText+` {`+e.join(``)+`}`},configurable:!0,enumerable:!0}}),ko.CSSMediaRule=e.CSSMediaRule,ko}var Fo={},Io;function Lo(){if(Io)return Fo;Io=1;var e={CSSRule:ho().CSSRule,CSSGroupingRule:Oo().CSSGroupingRule,CSSConditionRule:Mo().CSSConditionRule};return e.CSSSupportsRule=function(){e.CSSConditionRule.call(this)},e.CSSSupportsRule.prototype=new e.CSSConditionRule,e.CSSSupportsRule.prototype.constructor=e.CSSSupportsRule,e.CSSSupportsRule.prototype.type=12,Object.defineProperty(e.CSSSupportsRule.prototype,"cssText",{get:function(){for(var e=[],t=0,n=this.cssRules.length;t<n;t++)e.push(this.cssRules[t].cssText);return`@supports `+this.conditionText+` {`+e.join(``)+`}`}}),Fo.CSSSupportsRule=e.CSSSupportsRule,Fo}var Ro={},zo;function Bo(){if(zo)return Ro;zo=1;var e={CSSStyleDeclaration:ds().CSSStyleDeclaration,CSSRule:ho().CSSRule};return e.CSSFontFaceRule=function(){e.CSSRule.call(this),this.style=new e.CSSStyleDeclaration,this.style.parentRule=this},e.CSSFontFaceRule.prototype=new e.CSSRule,e.CSSFontFaceRule.prototype.constructor=e.CSSFontFaceRule,e.CSSFontFaceRule.prototype.type=5,Object.defineProperty(e.CSSFontFaceRule.prototype,"cssText",{get:function(){return`@font-face {`+this.style.cssText+`}`}}),Ro.CSSFontFaceRule=e.CSSFontFaceRule,Ro}var Vo={},Ho;function Uo(){if(Ho)return Vo;Ho=1;var e={CSSRule:ho().CSSRule};return e.CSSHostRule=function(){e.CSSRule.call(this),this.cssRules=[]},e.CSSHostRule.prototype=new e.CSSRule,e.CSSHostRule.prototype.constructor=e.CSSHostRule,e.CSSHostRule.prototype.type=1001,Object.defineProperty(e.CSSHostRule.prototype,"cssText",{get:function(){for(var e=[],t=0,n=this.cssRules.length;t<n;t++)e.push(this.cssRules[t].cssText);return`@host {`+e.join(``)+`}`}}),Vo.CSSHostRule=e.CSSHostRule,Vo}var Wo={},Go;function Ko(){if(Go)return Wo;Go=1;var e={CSSRule:ho().CSSRule,CSSStyleDeclaration:ds().CSSStyleDeclaration};return e.CSSKeyframeRule=function(){e.CSSRule.call(this),this.keyText=``,this.style=new e.CSSStyleDeclaration,this.style.parentRule=this},e.CSSKeyframeRule.prototype=new e.CSSRule,e.CSSKeyframeRule.prototype.constructor=e.CSSKeyframeRule,e.CSSKeyframeRule.prototype.type=8,Object.defineProperty(e.CSSKeyframeRule.prototype,"cssText",{get:function(){return this.keyText+` {`+this.style.cssText+`} `}}),Wo.CSSKeyframeRule=e.CSSKeyframeRule,Wo}var qo={},Jo;function Yo(){if(Jo)return qo;Jo=1;var e={CSSRule:ho().CSSRule};return e.CSSKeyframesRule=function(){e.CSSRule.call(this),this.name=``,this.cssRules=[]},e.CSSKeyframesRule.prototype=new e.CSSRule,e.CSSKeyframesRule.prototype.constructor=e.CSSKeyframesRule,e.CSSKeyframesRule.prototype.type=7,Object.defineProperty(e.CSSKeyframesRule.prototype,"cssText",{get:function(){for(var e=[],t=0,n=this.cssRules.length;t<n;t++)e.push(` `+this.cssRules[t].cssText);return`@`+(this._vendorPrefix||``)+`keyframes `+this.name+` {
12
+ `+e.join(`
13
+ `)+`
14
+ }`}}),qo.CSSKeyframesRule=e.CSSKeyframesRule,qo}var Xo={},Zo={},Qo;function $o(){if(Qo)return Zo;Qo=1;var e={};return e.CSSValue=function(){},e.CSSValue.prototype={constructor:e.CSSValue,set cssText(e){var t=this._getConstructorName();throw Error(`DOMException: property "cssText" of "`+t+`" is readonly and can not be replaced with "`+e+`"!`)},get cssText(){var e=this._getConstructorName();throw Error(`getter "cssText" of "`+e+`" is not implemented!`)},_getConstructorName:function(){return this.constructor.toString().match(/function\s([^\(]+)/)[1]}},Zo.CSSValue=e.CSSValue,Zo}var es;function ts(){if(es)return Xo;es=1;var e={CSSValue:$o().CSSValue};return e.CSSValueExpression=function(e,t){this._token=e,this._idx=t},e.CSSValueExpression.prototype=new e.CSSValue,e.CSSValueExpression.prototype.constructor=e.CSSValueExpression,e.CSSValueExpression.prototype.parse=function(){for(var e=this._token,t=this._idx,n=``,r=``,i=``,a,o=[];;++t){if(n=e.charAt(t),n===``){i=`css expression error: unfinished expression!`;break}switch(n){case`(`:o.push(n),r+=n;break;case`)`:o.pop(n),r+=n;break;case`/`:(a=this._parseJSComment(e,t))?a.error?i=`css expression error: unfinished comment in expression!`:t=a.idx:(a=this._parseJSRexExp(e,t))?(t=a.idx,r+=a.text):r+=n;break;case`'`:case`"`:a=this._parseJSString(e,t,n),a?(t=a.idx,r+=a.text):r+=n;break;default:r+=n}if(i||o.length===0)break}return i?{error:i}:{idx:t,expression:r}},e.CSSValueExpression.prototype._parseJSComment=function(e,t){var n=e.charAt(t+1),r;if(n===`/`||n===`*`){var i=t,a,o;return n===`/`?o=`
15
+ `:n===`*`&&(o=`*/`),a=e.indexOf(o,i+1+1),a===-1?{error:`css expression error: unfinished comment in expression!`}:(a=a+o.length-1,r=e.substring(t,a+1),{idx:a,text:r})}return!1},e.CSSValueExpression.prototype._parseJSString=function(e,t,n){var r=this._findMatchedIdx(e,t,n),i;return r!==-1&&(i=e.substring(t,r+n.length),{idx:r,text:i})},e.CSSValueExpression.prototype._parseJSRexExp=function(e,t){var n=e.substring(0,t).replace(/\s+$/,``);return[/^$/,/\($/,/\[$/,/\!$/,/\+$/,/\-$/,/\*$/,/\/\s+/,/\%$/,/\=$/,/\>$/,/<$/,/\&$/,/\|$/,/\^$/,/\~$/,/\?$/,/\,$/,/delete$/,/in$/,/instanceof$/,/new$/,/typeof$/,/void$/].some(function(e){return e.test(n)})?this._parseJSString(e,t,`/`):!1},e.CSSValueExpression.prototype._findMatchedIdx=function(e,t,n){for(var r=t,i,a=-1;;){if(i=e.indexOf(n,r+1),i===-1){i=a;break}var o=e.substring(t+1,i).match(/\\+$/);if(!o||o[0]%2==0)break;r=i}return e.indexOf(`
16
+ `,t+1)<i&&(i=a),i},Xo.CSSValueExpression=e.CSSValueExpression,Xo}var ns={},rs={},is;function as(){if(is)return rs;is=1;var e={};return e.MatcherList=function(){this.length=0},e.MatcherList.prototype={constructor:e.MatcherList,get matcherText(){return Array.prototype.join.call(this,`, `)},set matcherText(e){for(var t=e.split(`,`),n=this.length=t.length,r=0;r<n;r++)this[r]=t[r].trim()},appendMatcher:function(e){Array.prototype.indexOf.call(this,e)===-1&&(this[this.length]=e,this.length++)},deleteMatcher:function(e){var t=Array.prototype.indexOf.call(this,e);t!==-1&&Array.prototype.splice.call(this,t,1)}},rs.MatcherList=e.MatcherList,rs}var os;function ss(){if(os)return ns;os=1;var e={CSSRule:ho().CSSRule,MatcherList:as().MatcherList};return e.CSSDocumentRule=function(){e.CSSRule.call(this),this.matcher=new e.MatcherList,this.cssRules=[]},e.CSSDocumentRule.prototype=new e.CSSRule,e.CSSDocumentRule.prototype.constructor=e.CSSDocumentRule,e.CSSDocumentRule.prototype.type=10,Object.defineProperty(e.CSSDocumentRule.prototype,"cssText",{get:function(){for(var e=[],t=0,n=this.cssRules.length;t<n;t++)e.push(this.cssRules[t].cssText);return`@-moz-document `+this.matcher.matcherText+` {`+e.join(``)+`}`}}),ns.CSSDocumentRule=e.CSSDocumentRule,ns}var cs;function ls(){if(cs)return oo;cs=1;var e={};return e.parse=function(t){for(var n=0,r=`before-selector`,i,a=``,o=0,s={selector:!0,value:!0,"value-parenthesis":!0,atRule:!0,"importRule-begin":!0,importRule:!0,atBlock:!0,conditionBlock:!0,"documentRule-begin":!0},c=new e.CSSStyleSheet,l=c,u,d=[],f=!1,p,m,h=``,g,_,v,y,b,x,S,C,w=/@(-(?:\w+-)+)?keyframes/g,T=function(e){var r=t.substring(0,n).split(`
17
+ `),i=r.length,a=r.pop().length+1,o=Error(e+` (line `+i+`, char `+a+`)`);throw o.line=i,o.char=a,o.styleSheet=c,o},E;E=t.charAt(n);n++)switch(E){case` `:case` `:case`\r`:case`
18
+ `:case`\f`:s[r]&&(a+=E);break;case`"`:i=n+1;do i=t.indexOf(`"`,i)+1,i||T(`Unmatched "`);while(t[i-2]===`\\`);switch(a+=t.slice(n,i),n=i-1,r){case`before-value`:r=`value`;break;case`importRule-begin`:r=`importRule`}break;case`'`:i=n+1;do i=t.indexOf(`'`,i)+1,i||T(`Unmatched '`);while(t[i-2]===`\\`);switch(a+=t.slice(n,i),n=i-1,r){case`before-value`:r=`value`;break;case`importRule-begin`:r=`importRule`}break;case`/`:t.charAt(n+1)===`*`?(n+=2,i=t.indexOf(`*/`,n),i===-1?T(`Missing */`):n=i+1):a+=E,r===`importRule-begin`&&(a+=` `,r=`importRule`);break;case`@`:if(t.indexOf(`@-moz-document`,n)===n){r=`documentRule-begin`,S=new e.CSSDocumentRule,S.__starts=n,n+=13,a=``;break}if(t.indexOf(`@media`,n)===n){r=`atBlock`,_=new e.CSSMediaRule,_.__starts=n,n+=5,a=``;break}if(t.indexOf(`@supports`,n)===n){r=`conditionBlock`,v=new e.CSSSupportsRule,v.__starts=n,n+=8,a=``;break}if(t.indexOf(`@host`,n)===n){r=`hostRule-begin`,n+=4,C=new e.CSSHostRule,C.__starts=n,a=``;break}if(t.indexOf(`@import`,n)===n){r=`importRule-begin`,n+=6,a+=`@import`;break}if(t.indexOf(`@font-face`,n)===n){r=`fontFaceRule-begin`,n+=9,b=new e.CSSFontFaceRule,b.__starts=n,a=``;break}w.lastIndex=n;var D=w.exec(t);if(D&&D.index===n){r=`keyframesRule-begin`,x=new e.CSSKeyframesRule,x.__starts=n,x._vendorPrefix=D[1],n+=D[0].length-1,a=``;break}r===`selector`&&(r=`atRule`),a+=E;break;case`{`:r===`selector`||r===`atRule`?(g.selectorText=a.trim(),g.style.__starts=n,a=``,r=`before-name`):r===`atBlock`?(_.media.mediaText=a.trim(),u&&d.push(u),l=u=_,_.parentStyleSheet=c,a=``,r=`before-selector`):r===`conditionBlock`?(v.conditionText=a.trim(),u&&d.push(u),l=u=v,v.parentStyleSheet=c,a=``,r=`before-selector`):r===`hostRule-begin`?(u&&d.push(u),l=u=C,C.parentStyleSheet=c,a=``,r=`before-selector`):r===`fontFaceRule-begin`?(u&&(b.parentRule=u),b.parentStyleSheet=c,g=b,a=``,r=`before-name`):r===`keyframesRule-begin`?(x.name=a.trim(),u&&(d.push(u),x.parentRule=u),x.parentStyleSheet=c,l=u=x,a=``,r=`keyframeRule-begin`):r===`keyframeRule-begin`?(g=new e.CSSKeyframeRule,g.keyText=a.trim(),g.__starts=n,a=``,r=`before-name`):r===`documentRule-begin`&&(S.matcher.matcherText=a.trim(),u&&(d.push(u),S.parentRule=u),l=u=S,S.parentStyleSheet=c,a=``,r=`before-selector`);break;case`:`:r===`name`?(m=a.trim(),a=``,r=`before-value`):a+=E;break;case`(`:if(r===`value`){if(a.trim()===`expression`){var O=new e.CSSValueExpression(t,n).parse();O.error?T(O.error):(a+=O.expression,n=O.idx)}else r=`value-parenthesis`,o=1,a+=E}else r===`value-parenthesis`&&o++,a+=E;break;case`)`:r===`value-parenthesis`&&(o--,o===0&&(r=`value`)),a+=E;break;case`!`:r===`value`&&t.indexOf(`!important`,n)===n?(h=`important`,n+=9):a+=E;break;case`;`:switch(r){case`value`:g.style.setProperty(m,a.trim(),h),h=``,a=``,r=`before-name`;break;case`atRule`:a=``,r=`before-selector`;break;case`importRule`:y=new e.CSSImportRule,y.parentStyleSheet=y.styleSheet.parentStyleSheet=c,y.cssText=a+E,c.cssRules.push(y),a=``,r=`before-selector`;break;default:a+=E}break;case`}`:switch(r){case`value`:g.style.setProperty(m,a.trim(),h),h=``;case`before-name`:case`name`:g.__ends=n+1,u&&(g.parentRule=u),g.parentStyleSheet=c,l.cssRules.push(g),a=``,r=l.constructor===e.CSSKeyframesRule?`keyframeRule-begin`:`before-selector`;break;case`keyframeRule-begin`:case`before-selector`:case`selector`:for(u||T(`Unexpected }`),f=d.length>0;d.length>0;){if(u=d.pop(),u.constructor.name===`CSSMediaRule`||u.constructor.name===`CSSSupportsRule`){p=l,l=u,l.cssRules.push(p);break}d.length===0&&(f=!1)}f||(l.__ends=n+1,c.cssRules.push(l),l=c,u=null),a=``,r=`before-selector`}break;default:switch(r){case`before-selector`:r=`selector`,g=new e.CSSStyleRule,g.__starts=n;break;case`before-name`:r=`name`;break;case`before-value`:r=`value`;break;case`importRule-begin`:r=`importRule`}a+=E}return c},oo.parse=e.parse,e.CSSStyleSheet=yo().CSSStyleSheet,e.CSSStyleRule=_o().CSSStyleRule,e.CSSImportRule=To().CSSImportRule,e.CSSGroupingRule=Oo().CSSGroupingRule,e.CSSMediaRule=Po().CSSMediaRule,e.CSSConditionRule=Mo().CSSConditionRule,e.CSSSupportsRule=Lo().CSSSupportsRule,e.CSSFontFaceRule=Bo().CSSFontFaceRule,e.CSSHostRule=Uo().CSSHostRule,e.CSSStyleDeclaration=ds().CSSStyleDeclaration,e.CSSKeyframeRule=Ko().CSSKeyframeRule,e.CSSKeyframesRule=Yo().CSSKeyframesRule,e.CSSValueExpression=ts().CSSValueExpression,e.CSSDocumentRule=ss().CSSDocumentRule,oo}var us;function ds(){if(us)return ao;us=1;var e={};return e.CSSStyleDeclaration=function(){this.length=0,this.parentRule=null,this._importants={}},e.CSSStyleDeclaration.prototype={constructor:e.CSSStyleDeclaration,getPropertyValue:function(e){return this[e]||``},setProperty:function(e,t,n){this[e]?Array.prototype.indexOf.call(this,e)<0&&(this[this.length]=e,this.length++):(this[this.length]=e,this.length++),this[e]=t+``,this._importants[e]=n},removeProperty:function(e){if(!(e in this))return``;var t=Array.prototype.indexOf.call(this,e);if(t<0)return``;var n=this[e];return this[e]=``,Array.prototype.splice.call(this,t,1),n},getPropertyCSSValue:function(){},getPropertyPriority:function(e){return this._importants[e]||``},getPropertyShorthand:function(){},isPropertyImplicit:function(){},get cssText(){for(var e=[],t=0,n=this.length;t<n;++t){var r=this[t],i=this.getPropertyValue(r),a=this.getPropertyPriority(r);a&&=` !`+a,e[t]=r+`: `+i+a+`;`}return e.join(` `)},set cssText(t){var n,r;for(n=this.length;n--;)r=this[n],this[r]=``;Array.prototype.splice.call(this,0,this.length),this._importants={};var i=e.parse(`#bogus{`+t+`}`).cssRules[0].style,a=i.length;for(n=0;n<a;++n)r=i[n],this.setProperty(i[n],i.getPropertyValue(r),i.getPropertyPriority(r))}},ao.CSSStyleDeclaration=e.CSSStyleDeclaration,e.parse=ls().parse,ao}var fs={},ps;function ms(){if(ps)return fs;ps=1;var e={CSSStyleSheet:yo().CSSStyleSheet,CSSRule:ho().CSSRule,CSSStyleRule:_o().CSSStyleRule,CSSGroupingRule:Oo().CSSGroupingRule,CSSConditionRule:Mo().CSSConditionRule,CSSMediaRule:Po().CSSMediaRule,CSSSupportsRule:Lo().CSSSupportsRule,CSSStyleDeclaration:ds().CSSStyleDeclaration,CSSKeyframeRule:Ko().CSSKeyframeRule,CSSKeyframesRule:Yo().CSSKeyframesRule};return e.clone=function t(n){var r=new e.CSSStyleSheet,i=n.cssRules;if(!i)return r;for(var a=0,o=i.length;a<o;a++){var s=i[a],c=r.cssRules[a]=new s.constructor,l=s.style;if(l){for(var u=c.style=new e.CSSStyleDeclaration,d=0,f=l.length;d<f;d++){var p=u[d]=l[d];u[p]=l[p],u._importants[p]=l.getPropertyPriority(p)}u.length=l.length}s.hasOwnProperty(`keyText`)&&(c.keyText=s.keyText),s.hasOwnProperty(`selectorText`)&&(c.selectorText=s.selectorText),s.hasOwnProperty(`mediaText`)&&(c.mediaText=s.mediaText),s.hasOwnProperty(`conditionText`)&&(c.conditionText=s.conditionText),s.hasOwnProperty(`cssRules`)&&(c.cssRules=t(s).cssRules)}return r},fs.clone=e.clone,fs}var hs;function gs(){return hs?W:(hs=1,W.CSSStyleDeclaration=ds().CSSStyleDeclaration,W.CSSRule=ho().CSSRule,W.CSSGroupingRule=Oo().CSSGroupingRule,W.CSSConditionRule=Mo().CSSConditionRule,W.CSSStyleRule=_o().CSSStyleRule,W.MediaList=Co().MediaList,W.CSSMediaRule=Po().CSSMediaRule,W.CSSSupportsRule=Lo().CSSSupportsRule,W.CSSImportRule=To().CSSImportRule,W.CSSFontFaceRule=Bo().CSSFontFaceRule,W.CSSHostRule=Uo().CSSHostRule,W.StyleSheet=uo().StyleSheet,W.CSSStyleSheet=yo().CSSStyleSheet,W.CSSKeyframesRule=Yo().CSSKeyframesRule,W.CSSKeyframeRule=Ko().CSSKeyframeRule,W.MatcherList=as().MatcherList,W.CSSDocumentRule=ss().CSSDocumentRule,W.CSSValue=$o().CSSValue,W.CSSValueExpression=ts().CSSValueExpression,W.parse=ls().parse,W.clone=ms().clone,W)}var _s=gs();const vs=`style`;var ys=class extends Xa{constructor(e,t=vs){super(e,t),this[_]=null}get sheet(){let e=this[_];return e===null?this[_]=_s.parse(this.textContent):e}get innerHTML(){return super.innerHTML||``}set innerHTML(e){super.textContent=e,this[_]=null}get innerText(){return super.innerText||``}set innerText(e){super.textContent=e,this[_]=null}get textContent(){return super.textContent||``}set textContent(e){super.textContent=e,this[_]=null}};et(vs,ys);var bs=class extends U{constructor(e,t=`time`){super(e,t)}get dateTime(){return R.get(this,`datetime`)}set dateTime(e){R.set(this,`datetime`,e)}};et(`time`,bs);var xs=class extends U{constructor(e,t=`fieldset`){super(e,t)}},Ss=class extends U{constructor(e,t=`embed`){super(e,t)}},Cs=class extends U{constructor(e,t=`hr`){super(e,t)}},ws=class extends U{constructor(e,t=`progress`){super(e,t)}},Ts=class extends U{constructor(e,t=`p`){super(e,t)}},Es=class extends U{constructor(e,t=`table`){super(e,t)}},Ds=class extends U{constructor(e,t=`frameset`){super(e,t)}},Os=class extends U{constructor(e,t=`li`){super(e,t)}},ks=class extends U{constructor(e,t=`base`){super(e,t)}},As=class extends U{constructor(e,t=`datalist`){super(e,t)}};const js=`input`;var Ms=class extends U{constructor(e,t=js){super(e,t)}get autofocus(){return L.get(this,`autofocus`)||-1}set autofocus(e){L.set(this,`autofocus`,e)}get disabled(){return L.get(this,`disabled`)}set disabled(e){L.set(this,`disabled`,e)}get name(){return this.getAttribute(`name`)}set name(e){this.setAttribute(`name`,e)}get placeholder(){return this.getAttribute(`placeholder`)}set placeholder(e){this.setAttribute(`placeholder`,e)}get type(){return this.getAttribute(`type`)}set type(e){this.setAttribute(`type`,e)}get value(){return R.get(this,`value`)}set value(e){R.set(this,`value`,e)}};et(js,Ms);var Ns=class extends U{constructor(e,t=`param`){super(e,t)}},Ps=class extends U{constructor(e,t=`media`){super(e,t)}},Fs=class extends U{constructor(e,t=`audio`){super(e,t)}},Is=class extends U{constructor(e,t=`h1`){super(e,t)}};et([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Is);var Ls=class extends U{constructor(e,t=`dir`){super(e,t)}},Rs=class extends U{constructor(e,t=`quote`){super(e,t)}},zs=class{constructor(e,t){this.width=e,this.height=t}getContext(){return null}toDataURL(){return``}};const{createCanvas:Bs}={createCanvas:(e,t)=>new zs(e,t)},Vs=`canvas`;var Hs=class extends U{constructor(e,t=Vs){super(e,t),this[u]=Bs(300,150)}get width(){return this[u].width}set width(e){ht.set(this,`width`,e),this[u].width=e}get height(){return this[u].height}set height(e){ht.set(this,`height`,e),this[u].height=e}getContext(e){return this[u].getContext(e)}toDataURL(...e){return this[u].toDataURL(...e)}};et(Vs,Hs);var Us=class extends U{constructor(e,t=`legend`){super(e,t)}};const Ws=`option`;var Gs=class extends U{constructor(e,t=Ws){super(e,t)}get value(){return R.get(this,`value`)}set value(e){R.set(this,`value`,e)}get selected(){return L.get(this,`selected`)}set selected(e){let t=this.parentElement?.querySelector(`option[selected]`);t&&t!==this&&(t.selected=!1),L.set(this,`selected`,e)}};et(Ws,Gs);var Ks=class extends U{constructor(e,t=`span`){super(e,t)}},qs=class extends U{constructor(e,t=`meter`){super(e,t)}},Js=class extends U{constructor(e,t=`video`){super(e,t)}},Ys=class extends U{constructor(e,t=`td`){super(e,t)}};const Xs=`title`;var Zs=class extends Xa{constructor(e,t=Xs){super(e,t)}};et(Xs,Zs);var Qs=class extends U{constructor(e,t=`output`){super(e,t)}},$s=class extends U{constructor(e,t=`tr`){super(e,t)}},ec=class extends U{constructor(e,t=`data`){super(e,t)}},tc=class extends U{constructor(e,t=`menu`){super(e,t)}};const nc=`select`;var rc=class extends U{constructor(e,t=nc){super(e,t)}get options(){let e=new bt,{firstElementChild:t}=this;for(;t;)t.tagName===`OPTGROUP`?e.push(...t.children):e.push(t),t=t.nextElementSibling;return e}get disabled(){return L.get(this,`disabled`)}set disabled(e){L.set(this,`disabled`,e)}get name(){return this.getAttribute(`name`)}set name(e){this.setAttribute(`name`,e)}get value(){return this.querySelector(`option[selected]`)?.value}};et(nc,rc);var ic=class extends U{constructor(e,t=`br`){super(e,t)}};const ac=`button`;var oc=class extends U{constructor(e,t=ac){super(e,t)}get disabled(){return L.get(this,`disabled`)}set disabled(e){L.set(this,`disabled`,e)}get name(){return this.getAttribute(`name`)}set name(e){this.setAttribute(`name`,e)}get type(){return this.getAttribute(`type`)}set type(e){this.setAttribute(`type`,e)}};et(ac,oc);var sc=class extends U{constructor(e,t=`map`){super(e,t)}},cc=class extends U{constructor(e,t=`optgroup`){super(e,t)}},lc=class extends U{constructor(e,t=`dl`){super(e,t)}};const uc=`textarea`;var dc=class extends Xa{constructor(e,t=uc){super(e,t)}get disabled(){return L.get(this,`disabled`)}set disabled(e){L.set(this,`disabled`,e)}get name(){return this.getAttribute(`name`)}set name(e){this.setAttribute(`name`,e)}get placeholder(){return this.getAttribute(`placeholder`)}set placeholder(e){this.setAttribute(`placeholder`,e)}get type(){return this.getAttribute(`type`)}set type(e){this.setAttribute(`type`,e)}get value(){return this.textContent}set value(e){this.textContent=e}};et(uc,dc);var fc=class extends U{constructor(e,t=`font`){super(e,t)}},pc=class extends U{constructor(e,t=`div`){super(e,t)}};const mc=`link`;var hc=class extends U{constructor(e,t=mc){super(e,t)}get disabled(){return L.get(this,`disabled`)}set disabled(e){L.set(this,`disabled`,e)}get href(){return R.get(this,`href`).trim()}set href(e){R.set(this,`href`,e)}get hreflang(){return R.get(this,`hreflang`)}set hreflang(e){R.set(this,`hreflang`,e)}get media(){return R.get(this,`media`)}set media(e){R.set(this,`media`,e)}get rel(){return R.get(this,`rel`)}set rel(e){R.set(this,`rel`,e)}get type(){return R.get(this,`type`)}set type(e){R.set(this,`type`,e)}};et(mc,hc);const gc=`slot`;var _c=class extends U{constructor(e,t=gc){super(e,t)}get name(){return this.getAttribute(`name`)}set name(e){this.setAttribute(`name`,e)}assign(){}assignedNodes(e){let t=!!this.name,n=this.getRootNode().host?.childNodes??[],r;if(r=t?[...n].filter(e=>e.slot===this.name):[...n].filter(e=>!e.slot),e?.flatten){let e=[];for(let t of r)t.localName===`slot`?e.push(...t.assignedNodes({flatten:!0})):e.push(t);r=e}return r.length?r:[...this.childNodes]}assignedElements(e){let t=this.assignedNodes(e).filter(e=>e.nodeType===1);return t.length?t:[...this.children]}};et(gc,_c);var vc=class extends U{constructor(e,t=`form`){super(e,t)}},yc=class extends U{constructor(e,t=`img`){super(e,t)}get alt(){return R.get(this,`alt`)}set alt(e){R.set(this,`alt`,e)}get sizes(){return R.get(this,`sizes`)}set sizes(e){R.set(this,`sizes`,e)}get src(){return R.get(this,`src`)}set src(e){R.set(this,`src`,e)}get srcset(){return R.get(this,`srcset`)}set srcset(e){R.set(this,`srcset`,e)}get title(){return R.get(this,`title`)}set title(e){R.set(this,`title`,e)}get width(){return ht.get(this,`width`)}set width(e){ht.set(this,`width`,e)}get height(){return ht.get(this,`height`)}set height(e){ht.set(this,`height`,e)}};et(`img`,yc);var bc=class extends U{constructor(e,t=`pre`){super(e,t)}},xc=class extends U{constructor(e,t=`ul`){super(e,t)}};const Sc=`meta`;var Cc=class extends U{constructor(e,t=Sc){super(e,t)}get name(){return R.get(this,`name`)}set name(e){R.set(this,`name`,e)}get httpEquiv(){return R.get(this,`http-equiv`)}set httpEquiv(e){R.set(this,`http-equiv`,e)}get content(){return R.get(this,`content`)}set content(e){R.set(this,`content`,e)}get charset(){return R.get(this,`charset`)}set charset(e){R.set(this,`charset`,e)}get media(){return R.get(this,`media`)}set media(e){R.set(this,`media`,e)}};et(Sc,Cc);var wc=class extends U{constructor(e,t=`picture`){super(e,t)}},Tc=class extends U{constructor(e,t=`area`){super(e,t)}},Ec=class extends U{constructor(e,t=`ol`){super(e,t)}},Dc=class extends U{constructor(e,t=`caption`){super(e,t)}},Oc=class extends U{constructor(e,t=`a`){super(e,t)}get href(){return encodeURI(decodeURI(R.get(this,`href`))).trim()}set href(e){R.set(this,`href`,decodeURI(e))}get download(){return encodeURI(decodeURI(R.get(this,`download`)))}set download(e){R.set(this,`download`,decodeURI(e))}get target(){return R.get(this,`target`)}set target(e){R.set(this,`target`,e)}get type(){return R.get(this,`type`)}set type(e){R.set(this,`type`,e)}get rel(){return R.get(this,`rel`)}set rel(e){R.set(this,`rel`,e)}};et(`a`,Oc);var kc=class extends U{constructor(e,t=`label`){super(e,t)}},Ac=class extends U{constructor(e,t=`unknown`){super(e,t)}},jc=class extends U{constructor(e,t=`mod`){super(e,t)}},Mc=class extends U{constructor(e,t=`details`){super(e,t)}};const Nc=`source`;var Pc=class extends U{constructor(e,t=Nc){super(e,t)}get src(){return R.get(this,`src`)}set src(e){R.set(this,`src`,e)}get srcset(){return R.get(this,`srcset`)}set srcset(e){R.set(this,`srcset`,e)}get sizes(){return R.get(this,`sizes`)}set sizes(e){R.set(this,`sizes`,e)}get type(){return R.get(this,`type`)}set type(e){R.set(this,`type`,e)}};et(Nc,Pc);const Fc={HTMLElement:U,HTMLTemplateElement:qa,HTMLHtmlElement:Ja,HTMLScriptElement:Qa,HTMLFrameElement:$a,HTMLIFrameElement:to,HTMLObjectElement:no,HTMLHeadElement:ro,HTMLBodyElement:io,HTMLStyleElement:ys,HTMLTimeElement:bs,HTMLFieldSetElement:xs,HTMLEmbedElement:Ss,HTMLHRElement:Cs,HTMLProgressElement:ws,HTMLParagraphElement:Ts,HTMLTableElement:Es,HTMLFrameSetElement:Ds,HTMLLIElement:Os,HTMLBaseElement:ks,HTMLDataListElement:As,HTMLInputElement:Ms,HTMLParamElement:Ns,HTMLMediaElement:Ps,HTMLAudioElement:Fs,HTMLHeadingElement:Is,HTMLDirectoryElement:Ls,HTMLQuoteElement:Rs,HTMLCanvasElement:Hs,HTMLLegendElement:Us,HTMLOptionElement:Gs,HTMLSpanElement:Ks,HTMLMeterElement:qs,HTMLVideoElement:Js,HTMLTableCellElement:Ys,HTMLTitleElement:Zs,HTMLOutputElement:Qs,HTMLTableRowElement:$s,HTMLDataElement:ec,HTMLMenuElement:tc,HTMLSelectElement:rc,HTMLBRElement:ic,HTMLButtonElement:oc,HTMLMapElement:sc,HTMLOptGroupElement:cc,HTMLDListElement:lc,HTMLTextAreaElement:dc,HTMLFontElement:fc,HTMLDivElement:pc,HTMLLinkElement:hc,HTMLSlotElement:_c,HTMLFormElement:vc,HTMLImageElement:yc,HTMLPreElement:bc,HTMLUListElement:xc,HTMLMetaElement:Cc,HTMLPictureElement:wc,HTMLAreaElement:Tc,HTMLOListElement:Ec,HTMLTableCaptionElement:Dc,HTMLAnchorElement:Oc,HTMLLabelElement:kc,HTMLUnknownElement:Ac,HTMLModElement:jc,HTMLDetailsElement:Mc,HTMLSourceElement:Pc,HTMLTrackElement:class extends U{constructor(e,t=`track`){super(e,t)}},HTMLMarqueeElement:class extends U{constructor(e,t=`marquee`){super(e,t)}}},Ic={test:()=>!0},Lc={"text/html":{docType:`<!DOCTYPE html>`,ignoreCase:!0,voidElements:/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i},"image/svg+xml":{docType:`<?xml version="1.0" encoding="utf-8"?>`,ignoreCase:!1,voidElements:Ic},"text/xml":{docType:`<?xml version="1.0" encoding="utf-8"?>`,ignoreCase:!1,voidElements:Ic},"application/xml":{docType:`<?xml version="1.0" encoding="utf-8"?>`,ignoreCase:!1,voidElements:Ic},"application/xhtml+xml":{docType:`<?xml version="1.0" encoding="utf-8"?>`,ignoreCase:!1,voidElements:Ic}};var Rc=class extends Sa{constructor(e,t={}){super(e,t),this.detail=t.detail}},zc=class extends Sa{constructor(e,t={}){super(e,t),this.inputType=t.inputType,this.data=t.data,this.dataTransfer=t.dataTransfer,this.isComposing=t.isComposing||!1,this.ranges=t.ranges}};const Bc=e=>class extends yc{constructor(t,n){switch(super(e),arguments.length){case 1:this.height=t,this.width=t;break;case 2:this.height=n,this.width=t}}},Vc=({[v]:e,[s]:t},n=null)=>{Ie(e[h],t[p]);do{let r=ke(e),i=r===t?r:r[p];n?n.insertBefore(e,n[s]):e.remove(),e=i}while(e!==t)};var Hc=class e{constructor(){this[v]=null,this[s]=null,this.commonAncestorContainer=null}insertNode(e){this[s].parentNode.insertBefore(e,this[v])}selectNode(e){this[v]=e,this[s]=ke(e)}selectNodeContents(e){this.selectNode(e),this.commonAncestorContainer=e}surroundContents(e){e.replaceChildren(this.extractContents())}setStartBefore(e){this[v]=e}setStartAfter(e){this[v]=e.nextSibling}setEndBefore(e){this[s]=ke(e.previousSibling)}setEndAfter(e){this[s]=ke(e)}cloneContents(){let{[v]:e,[s]:t}=this,n=e.ownerDocument.createDocumentFragment();for(;e!==t;)n.insertBefore(e.cloneNode(!0),n[s]),e=ke(e),e!==t&&(e=e[p]);return n}deleteContents(){Vc(this)}extractContents(){let e=this[v].ownerDocument.createDocumentFragment();return Vc(this,e),e}createContextualFragment(e){let{commonAncestorContainer:t}=this,n=`ownerSVGElement`in t,r=n?t.ownerDocument:t,i=Le(r,e);if(n){let e=[...i.childNodes];i=r.createDocumentFragment(),Object.setPrototypeOf(i,ja.prototype),i.ownerSVGElement=r;for(let t of e)Object.setPrototypeOf(t,ja.prototype),t.ownerSVGElement=r,i.appendChild(t)}else this.selectNode(i);return i}cloneRange(){let t=new e;return t[v]=this[v],t[s]=this[s],t}};const Uc=({nodeType:e},t)=>{switch(e){case 1:return t&1;case 3:return t&4;case 8:return t&128;case 4:return t&8}return 0};var Wc=class{constructor(e,t=-1){this.root=e,this.currentNode=e,this.whatToShow=t;let{[p]:n,[s]:r}=e;if(e.nodeType===9){let{documentElement:t}=e;n=t,r=t[s]}let i=[];for(;n&&n!==r;)Uc(n,t)&&i.push(n),n=n[p];this[g]={i:0,nodes:i}}nextNode(){let e=this[g];return this.currentNode=e.i<e.nodes.length?e.nodes[e.i++]:null,this.currentNode}};const Gc=(e,t,n)=>{let{[p]:r,[s]:i}=t;return e.call({ownerDocument:t,[p]:r,[s]:i},n)},Kc=Se({},Wa,Fc,{CustomEvent:Rc,Event:Sa,EventTarget:yt,InputEvent:zc,NamedNodeMap:Ca,NodeList:bt}),qc=new WeakMap;let Jc=class extends Qi{constructor(e){super(null,`#document`,9),this[n]={active:!1,registry:null},this[f]={active:!1,class:null},this[d]=Lc[e],this[a]=null,this[o]=null,this[l]=null,this[u]=null,this[b]=null}get defaultView(){return qc.has(this)||qc.set(this,new Proxy(globalThis,{set:(e,t,n)=>{switch(t){case`addEventListener`:case`removeEventListener`:case`dispatchEvent`:this[c][t]=n;break;default:e[t]=n}return!0},get:(e,t)=>{switch(t){case`addEventListener`:case`removeEventListener`:case`dispatchEvent`:if(!this[c]){let e=this[c]=new yt;e.dispatchEvent=e.dispatchEvent.bind(e),e.addEventListener=e.addEventListener.bind(e),e.removeEventListener=e.removeEventListener.bind(e)}return this[c][t];case`document`:return this;case`navigator`:return{userAgent:`Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36`};case`window`:return qc.get(this);case`customElements`:return this[n].registry||(this[n]=new Je(this)),this[n];case`performance`:return e.performance;case`DOMParser`:return this[o];case`Image`:return this[u]||(this[u]=Bc(this)),this[u];case`MutationObserver`:return this[f].class||(this[f]=new dt(this)),this[f].class}return this[l]&&this[l][t]||Kc[t]||e[t]}})),qc.get(this)}get doctype(){let e=this[a];if(e)return e;let{firstChild:t}=this;return t&&t.nodeType===10?this[a]=t:null}set doctype(e){if(/^([a-z:]+)(\s+system|\s+public(\s+"([^"]+)")?)?(\s+"([^"]+)")?/i.test(e)){let{$1:e,$4:t,$6:n}=RegExp;this[a]=new ea(this,e,t,n),Pe(this,this[a],this[p])}}get documentElement(){return this.firstElementChild}get isConnected(){return!0}_getParent(){return this[c]}createAttribute(e){return new kt(this,e)}createCDATASection(e){return new Ht(this,e)}createComment(e){return new Ut(this,e)}createDocumentFragment(){return new $i(this)}createDocumentType(e,t,n){return new ea(this,e,t,n)}createElement(e){return new Oa(this,e)}createRange(){let e=new Hc;return e.commonAncestorContainer=this,e}createTextNode(e){return new Ji(this,e)}createTreeWalker(e,t=-1){return new Wc(e,t)}createNodeIterator(e,t=-1){return this.createTreeWalker(e,t)}createEvent(e){let t=Ce(e===`Event`?new Sa(``):new Rc(``));return t.initEvent=t.initCustomEvent=(e,n=!1,r=!1,i)=>{t.bubbles=!!n,we(t,{type:{value:e},canBubble:{value:n},cancelable:{value:r},detail:{value:i}})},t}cloneNode(e=!1){let{constructor:t,[n]:r,[a]:i}=this,o=new t;if(o[n]=r,e){let e=o[s],{childNodes:t}=this;for(let{length:n}=t,r=0;r<n;r++)o.insertBefore(t[r].cloneNode(!0),e);i&&(o[a]=t[0])}return o}importNode(e){let t=1<arguments.length&&!!arguments[1],r=e.cloneNode(t),{[n]:i}=this,{active:a}=i,o=e=>{let{ownerDocument:t,nodeType:n}=e;e.ownerDocument=this,a&&t!==this&&n===1&&i.upgrade(e)};if(o(r),t)switch(r.nodeType){case 1:case 11:{let{[p]:e,[s]:t}=r;for(;e!==t;)e.nodeType===1&&o(e),e=e[p];break}}return r}toString(){return this.childNodes.join(``)}querySelector(e){return Gc(super.querySelector,this,e)}querySelectorAll(e){return Gc(super.querySelectorAll,this,e)}getElementsByTagNameNS(e,t){return this.getElementsByTagName(t)}createAttributeNS(e,t){return this.createAttribute(t)}createElementNS(e,t,n){return e===xe?new ja(this,t,null):this.createElement(t,n)}};De(Kc.Document=function(){Ma()},Jc).prototype=Jc.prototype;const Yc=(e,t,r,i)=>{if(!t&&$e.has(r))return new($e.get(r))(e,r);let{[n]:{active:a,registry:o}}=e;if(a){let n=t?i.is:r;if(o.has(n)){let{Class:t}=o.get(n),i=new t(e,r);return Ve.set(i,{connected:!1}),i}}return new U(e,r)};var Xc=class extends Jc{constructor(){super(`text/html`)}get all(){let e=new bt,{[p]:t,[s]:n}=this;for(;t!==n;)t.nodeType===1&&e.push(t),t=t[p];return e}get head(){let{documentElement:e}=this,{firstElementChild:t}=e;return(!t||t.tagName!==`HEAD`)&&(t=this.createElement(`head`),e.prepend(t)),t}get body(){let{head:e}=this,{nextElementSibling:t}=e;return(!t||t.tagName!==`BODY`)&&(t=this.createElement(`body`),e.after(t)),t}get title(){let{head:e}=this;return e.getElementsByTagName(`title`).at(0)?.textContent||``}set title(e){let{head:t}=this,n=t.getElementsByTagName(`title`).at(0);n?n.textContent=e:t.insertBefore(this.createElement(`title`),t.firstChild).textContent=e}createElement(e,t){let n=!!(t&&t.is),r=Yc(this,n,e,t);return n&&r.setAttribute(`is`,t.is),r}},Zc=class extends Jc{constructor(){super(`image/svg+xml`)}toString(){return this[d].docType+super.toString()}},Qc=class extends Jc{constructor(){super(`text/xml`)}toString(){return this[d].docType+super.toString()}},$c=class e{parseFromString(t,n,r=null){let i=!1,a;return n===`text/html`?(i=!0,a=new Xc):a=n===`image/svg+xml`?new Zc:new Qc,a[o]=e,r&&(a[l]=r),i&&t===`...`&&(t=`<!doctype html><html><head></head><body></body></html>`),t?Qe(a,i,t):a}};const{parse:el}=JSON;function tl(){Ma()}De(tl,Jc).prototype=Jc.prototype
19
+ /**
20
+ * @license
21
+ * Copyright 2010-2026 Three.js Authors
22
+ * SPDX-License-Identifier: MIT
23
+ */
24
+ ;const nl=1e3,rl=1001,il=1002,al=1003,ol=1009,sl=1015,cl=1023,ll=2300,ul=2301,dl=2302,fl=2303,pl=2400,ml=2401,hl=2402,gl=`srgb`,_l=`srgb-linear`,vl=`linear`,yl=7680,bl=2e3;function xl(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Sl(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Cl(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}const wl={};function Tl(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function G(...e){e=Tl(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function K(...e){e=Tl(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function El(...e){let t=e.join(` `);t in wl||(wl[t]=!0,G(...e))}var Dl=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n<r;n++)t[n].call(this,e);e.target=null}}};const Ol=`00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff`.split(`.`);let kl=1234567;const Al=Math.PI/180,jl=180/Math.PI;function Ml(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(Ol[e&255]+Ol[e>>8&255]+Ol[e>>16&255]+Ol[e>>24&255]+`-`+Ol[t&255]+Ol[t>>8&255]+`-`+Ol[t>>16&15|64]+Ol[t>>24&255]+`-`+Ol[n&63|128]+Ol[n>>8&255]+`-`+Ol[n>>16&255]+Ol[n>>24&255]+Ol[r&255]+Ol[r>>8&255]+Ol[r>>16&255]+Ol[r>>24&255]).toLowerCase()}function q(e,t,n){return Math.max(t,Math.min(n,e))}function Nl(e,t){return(e%t+t)%t}function Pl(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Fl(e,t,n){return e===t?0:(n-e)/(t-e)}function Il(e,t,n){return(1-n)*e+n*t}function Ll(e,t,n,r){return Il(e,t,1-Math.exp(-n*r))}function Rl(e,t=1){return t-Math.abs(Nl(e,t*2)-t)}function zl(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Bl(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Vl(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Hl(e,t){return e+Math.random()*(t-e)}function Ul(e){return e*(.5-Math.random())}function Wl(e){e!==void 0&&(kl=e);let t=kl+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Gl(e){return e*Al}function Kl(e){return e*jl}function ql(e){return!(e&e-1)&&e!==0}function Jl(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function Yl(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function Xl(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:G(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function Zl(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function Ql(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}const $l={DEG2RAD:Al,RAD2DEG:jl,generateUUID:Ml,clamp:q,euclideanModulo:Nl,mapLinear:Pl,inverseLerp:Fl,lerp:Il,damp:Ll,pingpong:Rl,smoothstep:zl,smootherstep:Bl,randInt:Vl,randFloat:Hl,randFloatSpread:Ul,seededRandom:Wl,degToRad:Gl,radToDeg:Kl,isPowerOfTwo:ql,ceilPowerOfTwo:Jl,floorPowerOfTwo:Yl,setQuaternionFromProperEuler:Xl,normalize:Ql,denormalize:Zl};var J=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},eu=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:G(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(q(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},Y=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(nu.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(nu.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this.z=q(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this.z=q(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return tu.copy(this).projectOnVector(e),this.sub(tu)}reflect(e){return this.sub(tu.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};const tu=new Y,nu=new eu;var ru=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return El(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(iu.makeScale(e,t)),this}rotate(e){return El(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(iu.makeRotation(-e)),this}translate(e,t){return El(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(iu.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}};const iu=new ru,au=new ru().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),ou=new ru().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function su(){let e={enabled:!0,workingColorSpace:_l,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=lu(e.r),e.g=lu(e.g),e.b=lu(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=uu(e.r),e.g=uu(e.g),e.b=uu(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?vl:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return El(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return El(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[_l]:{primaries:t,whitePoint:r,transfer:vl,toXYZ:au,fromXYZ:ou,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:gl},outputColorSpaceConfig:{drawingBufferColorSpace:gl}},[gl]:{primaries:t,whitePoint:r,transfer:`srgb`,toXYZ:au,fromXYZ:ou,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:gl}}}),e}const cu=su();function lu(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function uu(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}let du;var fu=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{du===void 0&&(du=Cl(`canvas`)),du.width=e.width,du.height=e.height;let t=du.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=du}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Cl(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e<i.length;e++)i[e]=lu(i[e]/255)*255;return n.putImageData(r,0,0),t}if(e.data){let t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(lu(t[e]/255)*255):t[e]=lu(t[e]);return{data:t,width:e.width,height:e.height}}return G(`ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied.`),e}};let pu=0;var mu=class{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:pu++}),this.uuid=Ml(),this.data=e,this.dataReady=!0,this.version=0}getSize(e){let t=this.data;return typeof HTMLVideoElement<`u`&&t instanceof HTMLVideoElement?e.set(t.videoWidth,t.videoHeight,0):typeof VideoFrame<`u`&&t instanceof VideoFrame?e.set(t.displayWidth,t.displayHeight,0):t===null?e.set(0,0,0):e.set(t.width,t.height,t.depth||0),e}set needsUpdate(e){e===!0&&this.version++}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];let n={uuid:this.uuid,url:``},r=this.data;if(r!==null){let e;if(Array.isArray(r)){e=[];for(let t=0,n=r.length;t<n;t++)r[t].isDataTexture?e.push(hu(r[t].image)):e.push(hu(r[t]))}else e=hu(r);n.url=e}return t||(e.images[this.uuid]=n),n}};function hu(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap?fu.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(G(`Texture: Unable to serialize Texture.`),{})}let gu=0;const _u=new Y;var vu=class e extends Dl{constructor(t=e.DEFAULT_IMAGE,n=e.DEFAULT_MAPPING,r=rl,i=rl,a=1006,o=1008,s=cl,c=ol,l=e.DEFAULT_ANISOTROPY,u=``){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:gu++}),this.uuid=Ml(),this.name=``,this.source=new mu(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=o,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=c,this.offset=new J(0,0),this.repeat=new J(1,1),this.center=new J(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new ru,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.updateRanges=[],this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.isArrayTexture=!!(t&&t.depth&&t.depth>1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(_u).x}get height(){return this.source.getSize(_u).y}get depth(){return this.source.getSize(_u).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){G(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case nl:e.x-=Math.floor(e.x);break;case rl:e.x=e.x<0?0:1;break;case il:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case nl:e.y-=Math.floor(e.y);break;case rl:e.y=e.y<0?0:1;break;case il:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};vu.DEFAULT_IMAGE=null,vu.DEFAULT_MAPPING=300,vu.DEFAULT_ANISOTROPY=1;var yu=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)<a&&Math.abs(u-m)<a&&Math.abs(p-h)<a){if(Math.abs(l+d)<o&&Math.abs(u+m)<o&&Math.abs(p+h)<o&&Math.abs(c+f+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;let e=(c+1)/2,s=(f+1)/2,_=(g+1)/2,v=(l+d)/4,y=(u+m)/4,b=(p+h)/4;return e>s&&e>_?e<a?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(e),r=v/n,i=y/n):s>_?s<a?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(s),n=v/r,i=b/r):_<a?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(_),n=y/i,r=b/i),this.set(n,r,i,t),this}let _=Math.sqrt((h-p)*(h-p)+(u-m)*(u-m)+(d-l)*(d-l));return Math.abs(_)<.001&&(_=1),this.x=(h-p)/_,this.y=(u-m)/_,this.z=(d-l)/_,this.w=Math.acos((c+f+g-1)/2),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this.z=q(this.z,e.z,t.z),this.w=q(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this.z=q(this.z,e,t),this.w=q(this.w,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}},X=class e{static{e.prototype.isMatrix4=!0}constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h)}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=a,g[9]=o,g[13]=s,g[2]=c,g[6]=l,g[10]=u,g[14]=d,g[3]=f,g[7]=p,g[11]=m,g[15]=h,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new e().fromArray(this.elements)}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){let t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){let t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return this.determinantAffine()===0?(e.set(1,0,0),t.set(0,1,0),n.set(0,0,1),this):(e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this)}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){if(e.determinantAffine()===0)return this.identity();let t=this.elements,n=e.elements,r=1/bu.setFromMatrixColumn(e,0).length(),i=1/bu.setFromMatrixColumn(e,1).length(),a=1/bu.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){let t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(r),c=Math.sin(r),l=Math.cos(i),u=Math.sin(i);if(e.order===`XYZ`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=-s*u,t[8]=c,t[1]=n+r*c,t[5]=e-i*c,t[9]=-o*s,t[2]=i-e*c,t[6]=r+n*c,t[10]=a*s}else if(e.order===`YXZ`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e+i*o,t[4]=r*o-n,t[8]=a*c,t[1]=a*u,t[5]=a*l,t[9]=-o,t[2]=n*o-r,t[6]=i+e*o,t[10]=a*s}else if(e.order===`ZXY`){let e=s*l,n=s*u,r=c*l,i=c*u;t[0]=e-i*o,t[4]=-a*u,t[8]=r+n*o,t[1]=n+r*o,t[5]=a*l,t[9]=i-e*o,t[2]=-a*c,t[6]=o,t[10]=a*s}else if(e.order===`ZYX`){let e=a*l,n=a*u,r=o*l,i=o*u;t[0]=s*l,t[4]=r*c-n,t[8]=e*c+i,t[1]=s*u,t[5]=i*c+e,t[9]=n*c-r,t[2]=-c,t[6]=o*s,t[10]=a*s}else if(e.order===`YZX`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=a*l,t[9]=-o*l,t[2]=-c*l,t[6]=n*u+r,t[10]=e-i*u}else if(e.order===`XZY`){let e=a*s,n=a*c,r=o*s,i=o*c;t[0]=s*l,t[4]=-u,t[8]=c*l,t[1]=e*u+i,t[5]=a*l,t[9]=n*u-r,t[2]=r*u-n,t[6]=o*l,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Su,e,Cu)}lookAt(e,t,n){let r=this.elements;return Eu.subVectors(e,t),Eu.lengthSq()===0&&(Eu.z=1),Eu.normalize(),wu.crossVectors(n,Eu),wu.lengthSq()===0&&(Math.abs(n.z)===1?Eu.x+=1e-4:Eu.z+=1e-4,Eu.normalize(),wu.crossVectors(n,Eu)),wu.normalize(),Tu.crossVectors(Eu,wu),r[0]=wu.x,r[4]=Tu.x,r[8]=Eu.x,r[1]=wu.y,r[5]=Tu.y,r[9]=Eu.y,r[2]=wu.z,r[6]=Tu.z,r[10]=Eu.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[4],s=n[8],c=n[12],l=n[1],u=n[5],d=n[9],f=n[13],p=n[2],m=n[6],h=n[10],g=n[14],_=n[3],v=n[7],y=n[11],b=n[15],x=r[0],S=r[4],C=r[8],w=r[12],T=r[1],E=r[5],D=r[9],O=r[13],k=r[2],A=r[6],ee=r[10],te=r[14],ne=r[3],j=r[7],M=r[11],re=r[15];return i[0]=a*x+o*T+s*k+c*ne,i[4]=a*S+o*E+s*A+c*j,i[8]=a*C+o*D+s*ee+c*M,i[12]=a*w+o*O+s*te+c*re,i[1]=l*x+u*T+d*k+f*ne,i[5]=l*S+u*E+d*A+f*j,i[9]=l*C+u*D+d*ee+f*M,i[13]=l*w+u*O+d*te+f*re,i[2]=p*x+m*T+h*k+g*ne,i[6]=p*S+m*E+h*A+g*j,i[10]=p*C+m*D+h*ee+g*M,i[14]=p*w+m*O+h*te+g*re,i[3]=_*x+v*T+y*k+b*ne,i[7]=_*S+v*E+y*A+b*j,i[11]=_*C+v*D+y*ee+b*M,i[15]=_*w+v*O+y*te+b*re,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],o=e[5],s=e[9],c=e[13],l=e[2],u=e[6],d=e[10],f=e[14],p=e[3],m=e[7],h=e[11],g=e[15],_=s*f-c*d,v=o*f-c*u,y=o*d-s*u,b=a*f-c*l,x=a*d-s*l,S=a*u-o*l;return t*(m*_-h*v+g*y)-n*(p*_-h*b+g*x)+r*(p*v-m*b+g*S)-i*(p*y-m*x+h*S)}determinantAffine(){let e=this.elements,t=e[0],n=e[4],r=e[8],i=e[1],a=e[5],o=e[9],s=e[2],c=e[6],l=e[10];return t*(a*l-o*c)-n*(i*l-o*s)+r*(i*c-a*s)}transpose(){let e=this.elements,t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){let r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=e[9],d=e[10],f=e[11],p=e[12],m=e[13],h=e[14],g=e[15],_=t*o-n*a,v=t*s-r*a,y=t*c-i*a,b=n*s-r*o,x=n*c-i*o,S=r*c-i*s,C=l*m-u*p,w=l*h-d*p,T=l*g-f*p,E=u*h-d*m,D=u*g-f*m,O=d*g-f*h,k=_*O-v*D+y*E+b*T-x*w+S*C;if(k===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let A=1/k;return e[0]=(o*O-s*D+c*E)*A,e[1]=(r*D-n*O-i*E)*A,e[2]=(m*S-h*x+g*b)*A,e[3]=(d*x-u*S-f*b)*A,e[4]=(s*T-a*O-c*w)*A,e[5]=(t*O-r*T+i*w)*A,e[6]=(h*y-p*S-g*v)*A,e[7]=(l*S-d*y+f*v)*A,e[8]=(a*D-o*T+c*C)*A,e[9]=(n*T-t*D-i*C)*A,e[10]=(p*x-m*y+g*_)*A,e[11]=(u*y-l*x-f*_)*A,e[12]=(o*w-a*E-s*C)*A,e[13]=(t*E-n*w+r*C)*A,e[14]=(m*v-p*b-h*_)*A,e[15]=(l*b-u*v+d*_)*A,this}scale(e){let t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){let e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){let t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){let n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,o=e.y,s=e.z,c=i*a,l=i*o;return this.set(c*a+n,c*o-r*s,c*s+r*o,0,c*o+r*s,l*o+n,l*s-r*a,0,c*s-r*o,l*s+r*a,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){let r=this.elements,i=t._x,a=t._y,o=t._z,s=t._w,c=i+i,l=a+a,u=o+o,d=i*c,f=i*l,p=i*u,m=a*l,h=a*u,g=o*u,_=s*c,v=s*l,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(m+g))*b,r[1]=(f+y)*b,r[2]=(p-v)*b,r[3]=0,r[4]=(f-y)*x,r[5]=(1-(d+g))*x,r[6]=(h+_)*x,r[7]=0,r[8]=(p+v)*S,r[9]=(h-_)*S,r[10]=(1-(d+m))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){let r=this.elements;e.x=r[12],e.y=r[13],e.z=r[14];let i=this.determinantAffine();if(i===0)return n.set(1,1,1),t.identity(),this;let a=bu.set(r[0],r[1],r[2]).length(),o=bu.set(r[4],r[5],r[6]).length(),s=bu.set(r[8],r[9],r[10]).length();i<0&&(a=-a),xu.copy(this);let c=1/a,l=1/o,u=1/s;return xu.elements[0]*=c,xu.elements[1]*=c,xu.elements[2]*=c,xu.elements[4]*=l,xu.elements[5]*=l,xu.elements[6]*=l,xu.elements[8]*=u,xu.elements[9]*=u,xu.elements[10]*=u,t.setFromRotationMatrix(xu),n.x=a,n.y=o,n.z=s,this}makePerspective(e,t,n,r,i,a,o=bl,s=!1){let c=this.elements,l=2*i/(t-e),u=2*i/(n-r),d=(t+e)/(t-e),f=(n+r)/(n-r),p,m;if(s)p=i/(a-i),m=a*i/(a-i);else if(o===2e3)p=-(a+i)/(a-i),m=-2*a*i/(a-i);else if(o===2001)p=-a/(a-i),m=-a*i/(a-i);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=d,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,n,r,i,a,o=bl,s=!1){let c=this.elements,l=2/(t-e),u=2/(n-r),d=-(t+e)/(t-e),f=-(n+r)/(n-r),p,m;if(s)p=1/(a-i),m=a/(a-i);else if(o===2e3)p=-2/(a-i),m=-(a+i)/(a-i);else if(o===2001)p=-1/(a-i),m=-i/(a-i);else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+o);return c[0]=l,c[4]=0,c[8]=0,c[12]=d,c[1]=0,c[5]=u,c[9]=0,c[13]=f,c[2]=0,c[6]=0,c[10]=p,c[14]=m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}};const bu=new Y,xu=new X,Su=new Y(0,0,0),Cu=new Y(1,1,1),wu=new Y,Tu=new Y,Eu=new Y,Du=new X,Ou=new eu;var ku=class e{constructor(t=0,n=0,r=0,i=e.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){let r=e.elements,i=r[0],a=r[4],o=r[8],s=r[1],c=r[5],l=r[9],u=r[2],d=r[6],f=r[10];switch(t){case`XYZ`:this._y=Math.asin(q(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(d,c),this._z=0);break;case`YXZ`:this._x=Math.asin(-q(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,f),this._z=Math.atan2(s,c)):(this._y=Math.atan2(-u,i),this._z=0);break;case`ZXY`:this._x=Math.asin(q(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,f),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(s,i));break;case`ZYX`:this._y=Math.asin(-q(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-a,c));break;case`YZX`:this._z=Math.asin(q(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(o,f));break;case`XZY`:this._z=Math.asin(-q(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(o,i)):(this._x=Math.atan2(-l,f),this._y=0);break;default:G(`Euler: .setFromRotationMatrix() encountered an unknown order: `+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Du.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Du,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Ou.setFromEuler(this),this.setFromQuaternion(Ou,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};ku.DEFAULT_ORDER=`XYZ`;var Au=class{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return!!(this.mask&(1<<e|0))}};let ju=0;const Mu=new Y,Nu=new eu,Pu=new X,Fu=new Y,Iu=new Y,Lu=new Y,Ru=new eu,zu=new Y(1,0,0),Bu=new Y(0,1,0),Vu=new Y(0,0,1),Hu={type:`added`},Uu={type:`removed`},Wu={type:`childadded`,child:null},Gu={type:`childremoved`,child:null};var Ku=class e extends Dl{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:ju++}),this.uuid=Ml(),this.name=``,this.type=`Object3D`,this.parent=null,this.children=[],this.up=e.DEFAULT_UP.clone();let t=new Y,n=new ku,r=new eu,i=new Y(1,1,1);function a(){r.setFromEuler(n,!1)}function o(){n.setFromQuaternion(r,void 0,!1)}n._onChange(a),r._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new X},normalMatrix:{value:new ru}}),this.matrix=new X,this.matrixWorld=new X,this.matrixAutoUpdate=e.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new Au,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.customDepthMaterial=void 0,this.customDistanceMaterial=void 0,this.static=!1,this.userData={},this.pivot=null}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return Nu.setFromAxisAngle(e,t),this.quaternion.multiply(Nu),this}rotateOnWorldAxis(e,t){return Nu.setFromAxisAngle(e,t),this.quaternion.premultiply(Nu),this}rotateX(e){return this.rotateOnAxis(zu,e)}rotateY(e){return this.rotateOnAxis(Bu,e)}rotateZ(e){return this.rotateOnAxis(Vu,e)}translateOnAxis(e,t){return Mu.copy(e).applyQuaternion(this.quaternion),this.position.add(Mu.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(zu,e)}translateY(e){return this.translateOnAxis(Bu,e)}translateZ(e){return this.translateOnAxis(Vu,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Pu.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?Fu.copy(e):Fu.set(e,t,n);let r=this.parent;this.updateWorldMatrix(!0,!1),Iu.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Pu.lookAt(Iu,Fu,this.up):Pu.lookAt(Fu,Iu,this.up),this.quaternion.setFromRotationMatrix(Pu),r&&(Pu.extractRotation(r.matrixWorld),Nu.setFromRotationMatrix(Pu),this.quaternion.premultiply(Nu.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(K(`Object3D.add: object can't be added as a child of itself.`,e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(Hu),Wu.child=e,this.dispatchEvent(Wu),Wu.child=null):K(`Object3D.add: object not an instance of THREE.Object3D.`,e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}let t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Uu),Gu.child=e,this.dispatchEvent(Gu),Gu.child=null),this}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Pu.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Pu.multiply(e.parent.matrixWorld)),e.applyMatrix4(Pu),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(Hu),Wu.child=e,this.dispatchEvent(Wu),Wu.child=null,this}getObjectById(e){return this.getObjectByProperty(`id`,e)}getObjectByName(e){return this.getObjectByProperty(`name`,e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,r=this.children.length;n<r;n++){let r=this.children[n].getObjectByProperty(e,t);if(r!==void 0)return r}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);let r=this.children;for(let i=0,a=r.length;i<a;i++)r[i].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Iu,e,Lu),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Iu,Ru,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);let t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].traverseVisible(e)}traverseAncestors(e){let t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale);let e=this.pivot;if(e!==null){let t=e.x,n=e.y,r=e.z,i=this.matrix.elements;i[12]+=t-i[0]*t-i[4]*n-i[8]*r,i[13]+=n-i[1]*t-i[5]*n-i[9]*r,i[14]+=r-i[2]*t-i[6]*n-i[10]*r}this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);let t=this.children;for(let n=0,r=t.length;n<r;n++)t[n].updateMatrixWorld(e)}updateWorldMatrix(e,t,n=!1){let r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||n)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,n=!0),t===!0){let e=this.children;for(let t=0,r=e.length;t<r;t++)e[t].updateWorldMatrix(!1,!0,n)}}toJSON(e){let t=e===void 0||typeof e==`string`,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.7,type:`Object`,generator:`Object3D.toJSON`});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==``&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),this.static!==!1&&(r.static=this.static),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++){let r=n[t];i(e.shapes,r)}else i(e.shapes,n)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0){if(Array.isArray(this.material)){let t=[];for(let n=0,r=this.material.length;n<r;n++)t.push(i(e.materials,this.material[n]));r.material=t}else r.material=i(e.materials,this.material)}if(this.children.length>0){r.children=[];for(let t=0;t<this.children.length;t++)r.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let t=0;t<this.animations.length;t++){let n=this.animations[t];r.animations.push(i(e.animations,n))}}if(t){let t=a(e.geometries),r=a(e.materials),i=a(e.textures),o=a(e.images),s=a(e.shapes),c=a(e.skeletons),l=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t<e.children.length;t++){let n=e.children[t];this.add(n.clone())}return this}};Ku.DEFAULT_UP=new Y(0,1,0),Ku.DEFAULT_MATRIX_AUTO_UPDATE=!0,Ku.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var qu=class extends Ku{constructor(){super(),this.isGroup=!0,this.type=`Group`}};const Ju={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Yu={h:0,s:0,l:0},Xu={h:0,s:0,l:0};function Zu(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Qu=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=gl){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,cu.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=cu.workingColorSpace){return this.r=e,this.g=t,this.b=n,cu.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=cu.workingColorSpace){if(e=Nl(e,1),t=q(t,0,1),n=q(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Zu(i,r,e+1/3),this.g=Zu(i,r,e),this.b=Zu(i,r,e-1/3)}return cu.colorSpaceToWorking(this,r),this}setStyle(e,t=gl){function n(t){t!==void 0&&parseFloat(t)<1&&G(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:G(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);G(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=gl){let n=Ju[e.toLowerCase()];return n===void 0?G(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=lu(e.r),this.g=lu(e.g),this.b=lu(e.b),this}copyLinearToSRGB(e){return this.r=uu(e.r),this.g=uu(e.g),this.b=uu(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=gl){return cu.workingToColorSpace($u.copy(this),e),Math.round(q($u.r*255,0,255))*65536+Math.round(q($u.g*255,0,255))*256+Math.round(q($u.b*255,0,255))}getHexString(e=gl){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=cu.workingColorSpace){cu.workingToColorSpace($u.copy(this),t);let n=$u.r,r=$u.g,i=$u.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r<i?6:0);break;case r:s=(i-n)/e+2;break;case i:s=(n-r)/e+4}s/=6}return e.h=s,e.s=c,e.l=l,e}getRGB(e,t=cu.workingColorSpace){return cu.workingToColorSpace($u.copy(this),t),e.r=$u.r,e.g=$u.g,e.b=$u.b,e}getStyle(e=gl){cu.workingToColorSpace($u.copy(this),e);let t=$u.r,n=$u.g,r=$u.b;return e===`srgb`?`rgb(${Math.round(t*255)},${Math.round(n*255)},${Math.round(r*255)})`:`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`}offsetHSL(e,t,n){return this.getHSL(Yu),this.setHSL(Yu.h+e,Yu.s+t,Yu.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Yu),e.getHSL(Xu);let n=Il(Yu.h,Xu.h,t),r=Il(Yu.s,Xu.s,t),i=Il(Yu.l,Xu.l,t);return this.setHSL(n,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){let t=this.r,n=this.g,r=this.b,i=e.elements;return this.r=i[0]*t+i[3]*n+i[6]*r,this.g=i[1]*t+i[4]*n+i[7]*r,this.b=i[2]*t+i[5]*n+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};const $u=new Qu;Qu.NAMES=Ju;const ed=new Y,td=new Y,nd=new Y,rd=new Y,id=new Y,ad=new Y,od=new Y,sd=new Y,cd=new Y,ld=new Y,ud=new yu,dd=new yu,fd=new yu;var pd=class e{constructor(e=new Y,t=new Y,n=new Y){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),ed.subVectors(e,t),r.cross(ed);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){ed.subVectors(r,t),td.subVectors(n,t),nd.subVectors(e,t);let a=ed.dot(ed),o=ed.dot(td),s=ed.dot(nd),c=td.dot(td),l=td.dot(nd),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,rd)!==null&&rd.x>=0&&rd.y>=0&&rd.x+rd.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,rd)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,rd.x),s.addScaledVector(a,rd.y),s.addScaledVector(o,rd.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return ud.setScalar(0),dd.setScalar(0),fd.setScalar(0),ud.fromBufferAttribute(e,t),dd.fromBufferAttribute(e,n),fd.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(ud,i.x),a.addScaledVector(dd,i.y),a.addScaledVector(fd,i.z),a}static isFrontFacing(e,t,n,r){return ed.subVectors(n,t),td.subVectors(e,t),ed.cross(td).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ed.subVectors(this.c,this.b),td.subVectors(this.a,this.b),ed.cross(td).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;id.subVectors(r,n),ad.subVectors(i,n),sd.subVectors(e,n);let s=id.dot(sd),c=ad.dot(sd);if(s<=0&&c<=0)return t.copy(n);cd.subVectors(e,r);let l=id.dot(cd),u=ad.dot(cd);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(id,a);ld.subVectors(e,i);let f=id.dot(ld),p=ad.dot(ld);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(ad,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return od.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(od,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(id,a).addScaledVector(ad,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},md=class{constructor(e=new Y(1/0,1/0,1/0),t=new Y(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(gd.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(gd.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){let n=gd.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);let n=e.geometry;if(n!==void 0){let r=n.getAttribute(`position`);if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let t=0,n=r.count;t<n;t++)e.isMesh===!0?e.getVertexPosition(t,gd):gd.fromBufferAttribute(r,t),gd.applyMatrix4(e.matrixWorld),this.expandByPoint(gd);else e.boundingBox===void 0?(n.boundingBox===null&&n.computeBoundingBox(),_d.copy(n.boundingBox)):(e.boundingBox===null&&e.computeBoundingBox(),_d.copy(e.boundingBox)),_d.applyMatrix4(e.matrixWorld),this.union(_d)}let r=e.children;for(let e=0,n=r.length;e<n;e++)this.expandByObject(r[e],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,gd),gd.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(wd),Td.subVectors(this.max,wd),vd.subVectors(e.a,wd),yd.subVectors(e.b,wd),bd.subVectors(e.c,wd),xd.subVectors(yd,vd),Sd.subVectors(bd,yd),Cd.subVectors(vd,bd);let t=[0,-xd.z,xd.y,0,-Sd.z,Sd.y,0,-Cd.z,Cd.y,xd.z,0,-xd.x,Sd.z,0,-Sd.x,Cd.z,0,-Cd.x,-xd.y,xd.x,0,-Sd.y,Sd.x,0,-Cd.y,Cd.x,0];return!Od(t,vd,yd,bd,Td)||(t=[1,0,0,0,1,0,0,0,1],!Od(t,vd,yd,bd,Td))?!1:(Ed.crossVectors(xd,Sd),t=[Ed.x,Ed.y,Ed.z],Od(t,vd,yd,bd,Td))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,gd).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(gd).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(hd[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),hd[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),hd[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),hd[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),hd[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),hd[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),hd[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),hd[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(hd),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}};const hd=[new Y,new Y,new Y,new Y,new Y,new Y,new Y,new Y],gd=new Y,_d=new md,vd=new Y,yd=new Y,bd=new Y,xd=new Y,Sd=new Y,Cd=new Y,wd=new Y,Td=new Y,Ed=new Y,Dd=new Y;function Od(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Dd.fromArray(e,a);let o=i.x*Math.abs(Dd.x)+i.y*Math.abs(Dd.y)+i.z*Math.abs(Dd.z),s=t.dot(Dd),c=n.dot(Dd),l=r.dot(Dd);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}const Z=new Y,kd=new J;let Ad=0;var jd=class extends Dl{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Ad++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=35044,this.updateRanges=[],this.gpuType=sl,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r<i;r++)this.array[e+r]=t.array[n+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,n=this.count;t<n;t++)kd.fromBufferAttribute(this,t),kd.applyMatrix3(e),this.setXY(t,kd.x,kd.y);else if(this.itemSize===3)for(let t=0,n=this.count;t<n;t++)Z.fromBufferAttribute(this,t),Z.applyMatrix3(e),this.setXYZ(t,Z.x,Z.y,Z.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Z.fromBufferAttribute(this,t),Z.applyMatrix4(e),this.setXYZ(t,Z.x,Z.y,Z.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Z.fromBufferAttribute(this,t),Z.applyNormalMatrix(e),this.setXYZ(t,Z.x,Z.y,Z.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Z.fromBufferAttribute(this,t),Z.transformDirection(e),this.setXYZ(t,Z.x,Z.y,Z.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Zl(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Ql(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Zl(t,this.array)),t}setX(e,t){return this.normalized&&(t=Ql(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Zl(t,this.array)),t}setY(e,t){return this.normalized&&(t=Ql(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Zl(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Ql(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Zl(t,this.array)),t}setW(e,t){return this.normalized&&(t=Ql(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Ql(t,this.array),n=Ql(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,r){return e*=this.itemSize,this.normalized&&(t=Ql(t,this.array),n=Ql(n,this.array),r=Ql(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this}setXYZW(e,t,n,r,i){return e*=this.itemSize,this.normalized&&(t=Ql(t,this.array),n=Ql(n,this.array),r=Ql(r,this.array),i=Ql(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=r,this.array[e+3]=i,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){let e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==``&&(e.name=this.name),this.usage!==35044&&(e.usage=this.usage),e}dispose(){this.dispatchEvent({type:`dispose`})}},Md=class extends jd{constructor(e,t,n){super(new Uint16Array(e),t,n)}},Nd=class extends jd{constructor(e,t,n){super(new Uint32Array(e),t,n)}},Pd=class extends jd{constructor(e,t,n){super(new Float32Array(e),t,n)}};const Fd=new md,Id=new Y,Ld=new Y;var Rd=class{constructor(e=new Y,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){let n=this.center;t===void 0?Fd.setFromPoints(e).getCenter(n):n.copy(t);let r=0;for(let t=0,i=e.length;t<i;t++)r=Math.max(r,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){let t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){let n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Id.subVectors(e,this.center);let t=Id.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Id,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Ld.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Id.copy(e.center).add(Ld)),this.expandByPoint(Id.copy(e.center).sub(Ld))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}};let zd=0;const Bd=new X,Vd=new Ku,Hd=new Y,Ud=new md,Wd=new md,Gd=new Y;var Kd=class e extends Dl{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:zd++}),this.uuid=Ml(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(xl(e)?Nd:Md)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new ru().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return Bd.makeRotationFromQuaternion(e),this.applyMatrix4(Bd),this}rotateX(e){return Bd.makeRotationX(e),this.applyMatrix4(Bd),this}rotateY(e){return Bd.makeRotationY(e),this.applyMatrix4(Bd),this}rotateZ(e){return Bd.makeRotationZ(e),this.applyMatrix4(Bd),this}translate(e,t,n){return Bd.makeTranslation(e,t,n),this.applyMatrix4(Bd),this}scale(e,t,n){return Bd.makeScale(e,t,n),this.applyMatrix4(Bd),this}lookAt(e){return Vd.lookAt(e),Vd.updateMatrix(),this.applyMatrix4(Vd.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Hd).negate(),this.translate(Hd.x,Hd.y,Hd.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];t.push(r.x,r.y,r.z||0)}this.setAttribute(`position`,new Pd(t,3))}else{let n=Math.min(e.length,t.count);for(let r=0;r<n;r++){let n=e[r];t.setXYZ(r,n.x,n.y,n.z||0)}e.length>t.count&&G(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new md);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){K(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new Y(-1/0,-1/0,-1/0),new Y(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Ud.setFromBufferAttribute(n),this.morphTargetsRelative?(Gd.addVectors(this.boundingBox.min,Ud.min),this.boundingBox.expandByPoint(Gd),Gd.addVectors(this.boundingBox.max,Ud.max),this.boundingBox.expandByPoint(Gd)):(this.boundingBox.expandByPoint(Ud.min),this.boundingBox.expandByPoint(Ud.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&K(`BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.`,this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Rd);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){K(`BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.`,this),this.boundingSphere.set(new Y,1/0);return}if(e){let n=this.boundingSphere.center;if(Ud.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){let n=t[e];Wd.setFromBufferAttribute(n),this.morphTargetsRelative?(Gd.addVectors(Ud.min,Wd.min),Ud.expandByPoint(Gd),Gd.addVectors(Ud.max,Wd.max),Ud.expandByPoint(Gd)):(Ud.expandByPoint(Wd.min),Ud.expandByPoint(Wd.max))}Ud.getCenter(n);let r=0;for(let t=0,i=e.count;t<i;t++)Gd.fromBufferAttribute(e,t),r=Math.max(r,n.distanceToSquared(Gd));if(t)for(let i=0,a=t.length;i<a;i++){let a=t[i],o=this.morphTargetsRelative;for(let t=0,i=a.count;t<i;t++)Gd.fromBufferAttribute(a,t),o&&(Hd.fromBufferAttribute(e,t),Gd.add(Hd)),r=Math.max(r,n.distanceToSquared(Gd))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&K(`BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.`,this)}}computeTangents(){let e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){K(`BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)`);return}let n=t.position,r=t.normal,i=t.uv,a=this.getAttribute(`tangent`);(a===void 0||a.count!==n.count)&&(a=new jd(new Float32Array(4*n.count),4),this.setAttribute(`tangent`,a));let o=[],s=[];for(let e=0;e<n.count;e++)o[e]=new Y,s[e]=new Y;let c=new Y,l=new Y,u=new Y,d=new J,f=new J,p=new J,m=new Y,h=new Y;function g(e,t,r){c.fromBufferAttribute(n,e),l.fromBufferAttribute(n,t),u.fromBufferAttribute(n,r),d.fromBufferAttribute(i,e),f.fromBufferAttribute(i,t),p.fromBufferAttribute(i,r),l.sub(c),u.sub(c),f.sub(d),p.sub(d);let a=1/(f.x*p.y-p.x*f.y);isFinite(a)&&(m.copy(l).multiplyScalar(p.y).addScaledVector(u,-f.y).multiplyScalar(a),h.copy(u).multiplyScalar(f.x).addScaledVector(l,-p.x).multiplyScalar(a),o[e].add(m),o[t].add(m),o[r].add(m),s[e].add(h),s[t].add(h),s[r].add(h))}let _=this.groups;_.length===0&&(_=[{start:0,count:e.count}]);for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}let v=new Y,y=new Y,b=new Y,x=new Y;function S(e){b.fromBufferAttribute(r,e),x.copy(b);let t=o[e];v.copy(t),v.sub(b.multiplyScalar(b.dot(t))).normalize(),y.crossVectors(x,t);let n=y.dot(s[e])<0?-1:1;a.setXYZW(e,v.x,v.y,v.z,n)}for(let t=0,n=_.length;t<n;++t){let n=_[t],r=n.start,i=n.count;for(let t=r,n=r+i;t<n;t+=3)S(e.getX(t+0)),S(e.getX(t+1)),S(e.getX(t+2))}this._transformed=!0}computeVertexNormals(){let e=this.index,t=this.getAttribute(`position`);if(t!==void 0){let n=this.getAttribute(`normal`);if(n===void 0||n.count!==t.count)n=new jd(new Float32Array(t.count*3),3),this.setAttribute(`normal`,n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);let r=new Y,i=new Y,a=new Y,o=new Y,s=new Y,c=new Y,l=new Y,u=new Y;if(e)for(let d=0,f=e.count;d<f;d+=3){let f=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);r.fromBufferAttribute(t,f),i.fromBufferAttribute(t,p),a.fromBufferAttribute(t,m),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),o.fromBufferAttribute(n,f),s.fromBufferAttribute(n,p),c.fromBufferAttribute(n,m),o.add(l),s.add(l),c.add(l),n.setXYZ(f,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(m,c.x,c.y,c.z)}else for(let e=0,o=t.count;e<o;e+=3)r.fromBufferAttribute(t,e+0),i.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),l.subVectors(a,i),u.subVectors(r,i),l.cross(u),n.setXYZ(e+0,l.x,l.y,l.z),n.setXYZ(e+1,l.x,l.y,l.z),n.setXYZ(e+2,l.x,l.y,l.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){let e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Gd.fromBufferAttribute(e,t),Gd.normalize(),e.setXYZ(t,Gd.x,Gd.y,Gd.z)}toNonIndexed(){function t(e,t){let n=e.array,r=e.itemSize,i=e.normalized,a=new n.constructor(t.length*r),o=0,s=0;for(let i=0,c=t.length;i<c;i++){o=e.isInterleavedBufferAttribute?t[i]*e.data.stride+e.offset:t[i]*r;for(let e=0;e<r;e++)a[s++]=n[o++]}return new jd(a,r,i)}if(this.index===null)return G(`BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.`),this;let n=new e,r=this.index.array,i=this.attributes;for(let e in i){let a=i[e],o=t(a,r);n.setAttribute(e,o)}let a=this.morphAttributes;for(let e in a){let i=[],o=a[e];for(let e=0,n=o.length;e<n;e++){let n=o[e],a=t(n,r);i.push(a)}n.morphAttributes[e]=i}n.morphTargetsRelative=this.morphTargetsRelative;let o=this.groups;for(let e=0,t=o.length;e<t;e++){let t=o[e];n.addGroup(t.start,t.count,t.materialIndex)}return n}toJSON(){let e={metadata:{version:4.7,type:`BufferGeometry`,generator:`BufferGeometry.toJSON`}};if(e.uuid=this.uuid,e.type=this.parameters!==void 0&&this._transformed===!0?`BufferGeometry`:this.type,this.name!==``&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t<r;t++){let r=n[t];a.push(r.toJSON(e.data))}a.length>0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e<i;e++)n.push(r[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;let a=e.groups;for(let e=0,t=a.length;e<t;e++){let t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}let o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());let s=e.boundingSphere;return s!==null&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this._transformed=e._transformed,this}dispose(){this.dispatchEvent({type:`dispose`})}};let qd=0;var Jd=class extends Dl{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:qd++}),this.uuid=Ml(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Qu(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=yl,this.stencilZFail=yl,this.stencilZPass=yl,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){G(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new Qu().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new J().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new J().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}};const Yd=new Y,Xd=new Y,Zd=new Y,Qd=new Y,$d=new Y,ef=new Y,tf=new Y;var nf=class{constructor(e=new Y,t=new Y(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Yd)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Yd.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Yd.copy(this.origin).addScaledVector(this.direction,t),Yd.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Xd.copy(e).add(t).multiplyScalar(.5),Zd.copy(t).sub(e).normalize(),Qd.copy(this.origin).sub(Xd);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Zd),o=Qd.dot(this.direction),s=-Qd.dot(Zd),c=Qd.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Xd).addScaledVector(Zd,d),f}intersectSphere(e,t){Yd.subVectors(e.center,this.origin);let n=Yd.dot(this.direction),r=Yd.dot(Yd)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a<r||isNaN(r))&&(r=a),u>=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s<r||r!==r)&&(r=s),r<0)?null:this.at(n>=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Yd)!==null}intersectTriangle(e,t,n,r,i){$d.subVectors(t,e),ef.subVectors(n,e),tf.crossVectors($d,ef);let a=this.direction.dot(tf),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;Qd.subVectors(this.origin,e);let s=o*this.direction.dot(ef.crossVectors(Qd,ef));if(s<0)return null;let c=o*this.direction.dot($d.cross(Qd));if(c<0||s+c>a)return null;let l=-o*Qd.dot(tf);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},rf=class extends Jd{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Qu(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ku,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}};const af=new X,of=new nf,sf=new Rd,cf=new Y,lf=new Y,uf=new Y,df=new Y,ff=new Y,pf=new Y,mf=new Y,hf=new Y;var gf=class extends Ku{constructor(e=new Kd,t=new rf){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){let n=this.geometry,r=n.attributes.position,i=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(r,e);let o=this.morphTargetInfluences;if(i&&o){pf.set(0,0,0);for(let n=0,r=i.length;n<r;n++){let r=o[n],s=i[n];r!==0&&(ff.fromBufferAttribute(s,e),a?pf.addScaledVector(ff,r):pf.addScaledVector(ff.sub(t),r))}t.add(pf)}return t}raycast(e,t){let n=this.geometry,r=this.material,i=this.matrixWorld;r!==void 0&&(n.boundingSphere===null&&n.computeBoundingSphere(),sf.copy(n.boundingSphere),sf.applyMatrix4(i),of.copy(e.ray).recast(e.near),!(sf.containsPoint(of.origin)===!1&&(of.intersectSphere(sf,cf)===null||of.origin.distanceToSquared(cf)>(e.far-e.near)**2))&&(af.copy(i).invert(),of.copy(e.ray).applyMatrix4(af),(n.boundingBox===null||of.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,of)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;i<s;i++){let s=d[i],p=a[s.materialIndex],m=Math.max(s.start,f.start),h=Math.min(o.count,Math.min(s.start+s.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=o.getX(i),d=o.getX(i+1),f=o.getX(i+2);r=vf(this,p,e,n,c,l,u,a,d,f),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=s.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),s=Math.min(o.count,f.start+f.count);for(let d=i,f=s;d<f;d+=3){let i=o.getX(d),s=o.getX(d+1),f=o.getX(d+2);r=vf(this,a,e,n,c,l,u,i,s,f),r&&(r.faceIndex=Math.floor(d/3),t.push(r))}}}else if(s!==void 0){if(Array.isArray(a))for(let i=0,o=d.length;i<o;i++){let o=d[i],p=a[o.materialIndex],m=Math.max(o.start,f.start),h=Math.min(s.count,Math.min(o.start+o.count,f.start+f.count));for(let i=m,a=h;i<a;i+=3){let a=i,s=i+1,d=i+2;r=vf(this,p,e,n,c,l,u,a,s,d),r&&(r.faceIndex=Math.floor(i/3),r.face.materialIndex=o.materialIndex,t.push(r))}}else{let i=Math.max(0,f.start),o=Math.min(s.count,f.start+f.count);for(let s=i,d=o;s<d;s+=3){let i=s,o=s+1,d=s+2;r=vf(this,a,e,n,c,l,u,i,o,d),r&&(r.faceIndex=Math.floor(s/3),t.push(r))}}}}};function _f(e,t,n,r,i,a,o,s){let c;if(c=t.side===1?r.intersectTriangle(o,a,i,!0,s):r.intersectTriangle(i,a,o,t.side===0,s),c===null)return null;hf.copy(s),hf.applyMatrix4(e.matrixWorld);let l=n.ray.origin.distanceTo(hf);return l<n.near||l>n.far?null:{distance:l,point:hf.clone(),object:e}}function vf(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,lf),e.getVertexPosition(c,uf),e.getVertexPosition(l,df);let u=_f(e,t,n,r,lf,uf,df,mf);if(u){let e=new Y;pd.getBarycoord(mf,lf,uf,df,e),i&&(u.uv=pd.getInterpolatedAttribute(i,s,c,l,e,new J)),a&&(u.uv1=pd.getInterpolatedAttribute(a,s,c,l,e,new J)),o&&(u.normal=pd.getInterpolatedAttribute(o,s,c,l,e,new Y),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new Y,materialIndex:0};pd.getNormal(lf,uf,df,t.normal),u.face=t,u.barycoord=e}return u}const yf=new yu,bf=new yu,xf=new yu,Sf=new yu,Cf=new X,wf=new Y,Tf=new Rd,Ef=new X,Df=new nf;var Of=class extends gf{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=`attached`,this.bindMatrix=new X,this.bindMatrixInverse=new X,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new md),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e<t.count;e++)this.getVertexPosition(e,wf),this.boundingBox.expandByPoint(wf)}computeBoundingSphere(){let e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new Rd),this.boundingSphere.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e<t.count;e++)this.getVertexPosition(e,wf),this.boundingSphere.expandByPoint(wf)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){let n=this.material,r=this.matrixWorld;n!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),Tf.copy(this.boundingSphere),Tf.applyMatrix4(r),e.ray.intersectsSphere(Tf)!==!1&&(Ef.copy(r).invert(),Df.copy(e.ray).applyMatrix4(Ef),(this.boundingBox===null||Df.intersectsBox(this.boundingBox)!==!1)&&this._computeIntersections(e,t,Df)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){let e=new yu,t=this.geometry.attributes.skinWeight;for(let n=0,r=t.count;n<r;n++){e.fromBufferAttribute(t,n);let r=1/e.manhattanLength();r===1/0?e.set(1,0,0,0):e.multiplyScalar(r),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===`attached`?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===`detached`?this.bindMatrixInverse.copy(this.bindMatrix).invert():G(`SkinnedMesh: Unrecognized bindMode: `+this.bindMode)}applyBoneTransform(e,t){let n=this.skeleton,r=this.geometry;bf.fromBufferAttribute(r.attributes.skinIndex,e),xf.fromBufferAttribute(r.attributes.skinWeight,e),t.isVector4?(yf.copy(t),t.set(0,0,0,0)):(yf.set(...t,1),t.set(0,0,0)),yf.applyMatrix4(this.bindMatrix);for(let e=0;e<4;e++){let r=xf.getComponent(e);if(r!==0){let i=bf.getComponent(e);Cf.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),t.addScaledVector(Sf.copy(yf).applyMatrix4(Cf),r)}}return t.isVector4&&(t.w=yf.w),t.applyMatrix4(this.bindMatrixInverse)}},kf=class extends Ku{constructor(){super(),this.isBone=!0,this.type=`Bone`}},Af=class extends vu{constructor(e=null,t=1,n=1,r,i,a,o,s,c=al,l=al,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}};const jf=new X,Mf=new X;var Nf=class e{constructor(e=[],t=[]){this.uuid=Ml(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){let e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){G(`Skeleton: Number of inverse bone matrices does not match amount of bones.`),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new X)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){let t=new X;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){let t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){let t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){let e=this.bones,t=this.boneInverses,n=this.boneMatrices,r=this.boneTexture;for(let r=0,i=e.length;r<i;r++){let i=e[r]?e[r].matrixWorld:Mf;jf.multiplyMatrices(i,t[r]),jf.toArray(n,r*16)}r!==null&&(r.needsUpdate=!0)}clone(){return new e(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);let t=new Float32Array(e*e*4);t.set(this.boneMatrices);let n=new Af(t,e,e,cl,sl);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){let n=this.bones[t];if(n.name===e)return n}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let n=0,r=e.bones.length;n<r;n++){let r=e.bones[n],i=t[r];i===void 0&&(G(`Skeleton: No bone found with UUID:`,r),i=new kf),this.bones.push(i),this.boneInverses.push(new X().fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){let e={metadata:{version:4.7,type:`Skeleton`,generator:`Skeleton.toJSON`},bones:[],boneInverses:[]};e.uuid=this.uuid;let t=this.bones,n=this.boneInverses;for(let r=0,i=t.length;r<i;r++){let i=t[r];e.bones.push(i.uuid);let a=n[r];e.boneInverses.push(a.toArray())}return e}};const Pf=new Y,Ff=new Y,If=new ru;var Lf=class{constructor(e=new Y(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=Pf.subVectors(n,t).cross(Ff.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(Pf),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||If.getNormalMatrix(e),r=this.coplanarPoint(Pf).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}};const Rf=new Rd,zf=new J(.5,.5),Bf=new Y;var Vf=class{constructor(e=new Lf,t=new Lf,n=new Lf,r=new Lf,i=new Lf,a=new Lf){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=bl,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Rf.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Rf.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Rf)}intersectsSprite(e){Rf.center.set(0,0,0);let t=zf.distanceTo(e.center);return Rf.radius=.7071067811865476+t,Rf.applyMatrix4(e.matrixWorld),this.intersectsSphere(Rf)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)<r)return!1;return!0}intersectsBox(e){let t=this.planes;for(let n=0;n<6;n++){let r=t[n];if(Bf.x=r.normal.x>0?e.max.x:e.min.x,Bf.y=r.normal.y>0?e.max.y:e.min.y,Bf.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Bf)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Hf=class extends Jd{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new Qu(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}};const Uf=new Y,Wf=new Y,Gf=new X,Kf=new nf,qf=new Rd,Jf=new Y,Yf=new Y;var Xf=class extends Ku{constructor(e=new Kd,t=new Hf){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e<r;e++)Uf.fromBufferAttribute(t,e-1),Wf.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Uf.distanceTo(Wf);e.setAttribute(`lineDistance`,new Pd(n,1))}else G(`Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.`);return this}raycast(e,t){let n=this.geometry,r=this.matrixWorld,i=e.params.Line.threshold,a=n.drawRange;if(n.boundingSphere===null&&n.computeBoundingSphere(),qf.copy(n.boundingSphere),qf.applyMatrix4(r),qf.radius+=i,e.ray.intersectsSphere(qf)===!1)return;Gf.copy(r).invert(),Kf.copy(e.ray).applyMatrix4(Gf);let o=i/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,c=this.isLineSegments?2:1,l=n.index,u=n.attributes.position;if(l!==null){let n=Math.max(0,a.start),r=Math.min(l.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=l.getX(i),r=l.getX(i+1),a=Zf(this,e,Kf,s,n,r,i);a&&t.push(a)}if(this.isLineLoop){let i=l.getX(r-1),a=l.getX(n),o=Zf(this,e,Kf,s,i,a,r-1);o&&t.push(o)}}else{let n=Math.max(0,a.start),r=Math.min(u.count,a.start+a.count);for(let i=n,a=r-1;i<a;i+=c){let n=Zf(this,e,Kf,s,i,i+1,i);n&&t.push(n)}if(this.isLineLoop){let i=Zf(this,e,Kf,s,r-1,n,r-1);i&&t.push(i)}}}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){let t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}};function Zf(e,t,n,r,i,a,o){let s=e.geometry.attributes.position;if(Uf.fromBufferAttribute(s,i),Wf.fromBufferAttribute(s,a),n.distanceSqToSegment(Uf,Wf,Jf,Yf)>r)return;Jf.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Jf);if(!(c<t.near||c>t.far))return{distance:c,point:Yf.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}const Qf=new Y,$f=new Y;var ep=class extends Xf{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e<r;e+=2)Qf.fromBufferAttribute(t,e),$f.fromBufferAttribute(t,e+1),n[e]=e===0?0:n[e-1],n[e+1]=n[e]+Qf.distanceTo($f);e.setAttribute(`lineDistance`,new Pd(n,1))}else G(`LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.`);return this}},tp=class{constructor(){this.type=`Curve`,this.arcLengthDivisions=200,this.needsUpdate=!1,this.cacheArcLengths=null}getPoint(){G(`Curve: .getPoint() not implemented.`)}getPointAt(e,t){let n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){let t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){let e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;let t=[],n,r=this.getPoint(0),i=0;t.push(0);for(let a=1;a<=e;a++)n=this.getPoint(a/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t=null){let n=this.getLengths(),r=0,i=n.length,a;a=t||e*n[i-1];let o=0,s=i-1,c;for(;o<=s;)if(r=Math.floor(o+(s-o)/2),c=n[r]-a,c<0)o=r+1;else if(c>0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new J:new Y);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new Y,r=[],i=[],a=[],o=new Y,s=new X;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new Y)}i[0]=new Y,a[0]=new Y;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(q(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(q(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}};function np(e,t,n=2){let r=t&&t.length,i=r?t[0]*n:e.length,a=rp(e,0,i,n,!0),o=[];if(!a||a.next===a.prev)return o;let s,c,l;if(r&&(a=up(e,t,a,n)),e.length>80*n){s=e[0],c=e[1];let t=s,r=c;for(let a=n;a<i;a+=n){let n=e[a],i=e[a+1];n<s&&(s=n),i<c&&(c=i),n>t&&(t=n),i>r&&(r=i)}l=Math.max(t-s,r-c),l=l===0?0:32767/l}return ap(a,o,n,s,c,l,0),o}function rp(e,t,n,r,i){let a;if(i===Np(e,t,n,r)>0)for(let i=t;i<n;i+=r)a=Ap(i/r|0,e[i],e[i+1],a);else for(let i=n-r;i>=t;i-=r)a=Ap(i/r|0,e[i],e[i+1],a);return a&&Sp(a,a.next)&&(jp(a),a=a.next),a}function ip(e,t){if(!e)return e;t||=e;let n=e,r;do if(r=!1,!n.steiner&&(Sp(n,n.next)||Q(n.prev,n,n.next)===0)){if(jp(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function ap(e,t,n,r,i,a,o){if(!e)return;!o&&a&&hp(e,r,i,a);let s=e;for(;e.prev!==e.next;){let c=e.prev,l=e.next;if(a?sp(e,r,i,a):op(e)){t.push(c.i,e.i,l.i),jp(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=cp(ip(e),t),ap(e,t,n,r,i,a,2)):o===2&&lp(e,t,n,r,i,a):ap(ip(e),t,n,r,i,a,1);break}}}function op(e){let t=e.prev,n=e,r=e.next;if(Q(t,n,r)>=0)return!1;let i=t.x,a=n.x,o=r.x,s=t.y,c=n.y,l=r.y,u=Math.min(i,a,o),d=Math.min(s,c,l),f=Math.max(i,a,o),p=Math.max(s,c,l),m=r.next;for(;m!==t;){if(m.x>=u&&m.x<=f&&m.y>=d&&m.y<=p&&bp(i,s,a,c,o,l,m.x,m.y)&&Q(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function sp(e,t,n,r){let i=e.prev,a=e,o=e.next;if(Q(i,a,o)>=0)return!1;let s=i.x,c=a.x,l=o.x,u=i.y,d=a.y,f=o.y,p=Math.min(s,c,l),m=Math.min(u,d,f),h=Math.max(s,c,l),g=Math.max(u,d,f),_=_p(p,m,t,n,r),v=_p(h,g,t,n,r),y=e.prevZ,b=e.nextZ;for(;y&&y.z>=_&&b&&b.z<=v;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&bp(s,u,c,d,l,f,y.x,y.y)&&Q(y.prev,y,y.next)>=0||(y=y.prevZ,b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&bp(s,u,c,d,l,f,b.x,b.y)&&Q(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;y&&y.z>=_;){if(y.x>=p&&y.x<=h&&y.y>=m&&y.y<=g&&y!==i&&y!==o&&bp(s,u,c,d,l,f,y.x,y.y)&&Q(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=v;){if(b.x>=p&&b.x<=h&&b.y>=m&&b.y<=g&&b!==i&&b!==o&&bp(s,u,c,d,l,f,b.x,b.y)&&Q(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function cp(e,t){let n=e;do{let r=n.prev,i=n.next.next;!Sp(r,i)&&Cp(r,n,n.next,i)&&Dp(r,i)&&Dp(i,r)&&(t.push(r.i,n.i,i.i),jp(n),jp(n.next),n=e=i),n=n.next}while(n!==e);return ip(n)}function lp(e,t,n,r,i,a){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&xp(o,e)){let s=kp(o,e);o=ip(o,o.next),s=ip(s,s.next),ap(o,t,n,r,i,a,0),ap(s,t,n,r,i,a,0);return}e=e.next}o=o.next}while(o!==e)}function up(e,t,n,r){let i=[];for(let n=0,a=t.length;n<a;n++){let o=rp(e,t[n]*r,n<a-1?t[n+1]*r:e.length,r,!1);o===o.next&&(o.steiner=!0),i.push(vp(o))}i.sort(dp);for(let e=0;e<i.length;e++)n=fp(i[e],n);return n}function dp(e,t){let n=e.x-t.x;return n===0&&(n=e.y-t.y,n===0&&(n=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x))),n}function fp(e,t){let n=pp(e,t);if(!n)return t;let r=kp(n,e);return ip(r,r.next),ip(n,n.next)}function pp(e,t){let n=t,r=e.x,i=e.y,a=-1/0,o;if(Sp(e,n))return n;do{if(Sp(e,n.next))return n.next;if(i<=n.y&&i>=n.next.y&&n.next.y!==n.y){let e=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=r&&e>a&&(a=e,o=n.x<n.next.x?n:n.next,e===r))return o}n=n.next}while(n!==t);if(!o)return null;let s=o,c=o.x,l=o.y,u=1/0;n=o;do{if(r>=n.x&&n.x>=c&&r!==n.x&&yp(i<l?r:a,i,c,l,i<l?a:r,i,n.x,n.y)){let t=Math.abs(i-n.y)/(r-n.x);Dp(n,e)&&(t<u||t===u&&(n.x>o.x||n.x===o.x&&mp(o,n)))&&(o=n,u=t)}n=n.next}while(n!==s);return o}function mp(e,t){return Q(e.prev,e,t.prev)<0&&Q(t.next,e,e.next)<0}function hp(e,t,n,r){let i=e;do i.z===0&&(i.z=_p(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,gp(i)}function gp(e){let t,n=1;do{let r=e,i;e=null;let a=null;for(t=0;r;){t++;let o=r,s=0;for(let e=0;e<n&&(s++,o=o.nextZ,o);e++);let c=n;for(;s>0||c>0&&o;)s!==0&&(c===0||!o||r.z<=o.z)?(i=r,r=r.nextZ,s--):(i=o,o=o.nextZ,c--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=o}a.nextZ=null,n*=2}while(t>1);return e}function _p(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function vp(e){let t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function yp(e,t,n,r,i,a,o,s){return(i-o)*(t-s)>=(e-o)*(a-s)&&(e-o)*(r-s)>=(n-o)*(t-s)&&(n-o)*(a-s)>=(i-o)*(r-s)}function bp(e,t,n,r,i,a,o,s){return(e!==o||t!==s)&&yp(e,t,n,r,i,a,o,s)}function xp(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Ep(e,t)&&(Dp(e,t)&&Dp(t,e)&&Op(e,t)&&(Q(e.prev,e,t.prev)||Q(e,t.prev,t))||Sp(e,t)&&Q(e.prev,e,e.next)>0&&Q(t.prev,t,t.next)>0)}function Q(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Sp(e,t){return e.x===t.x&&e.y===t.y}function Cp(e,t,n,r){let i=Tp(Q(e,t,n)),a=Tp(Q(e,t,r)),o=Tp(Q(n,r,e)),s=Tp(Q(n,r,t));return!!(i!==a&&o!==s||i===0&&wp(e,n,t)||a===0&&wp(e,r,t)||o===0&&wp(n,e,r)||s===0&&wp(n,t,r))}function wp(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Tp(e){return e>0?1:e<0?-1:0}function Ep(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Cp(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Dp(e,t){return Q(e.prev,e,e.next)<0?Q(e,t,e.next)>=0&&Q(e,e.prev,t)>=0:Q(e,t,e.prev)<0||Q(e,e.next,t)<0}function Op(e,t){let n=e,r=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do n.y>a!=n.next.y>a&&n.next.y!==n.y&&i<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function kp(e,t){let n=Mp(e.i,e.x,e.y),r=Mp(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function Ap(e,t,n,r){let i=Mp(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function jp(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Mp(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Np(e,t,n,r){let i=0;for(let a=t,o=n-r;a<n;a+=r)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}var Pp=class{static triangulate(e,t,n=2){return np(e,t,n)}},Fp=class e{static area(e){let t=e.length,n=0;for(let r=t-1,i=0;i<t;r=i++)n+=e[r].x*e[i].y-e[i].x*e[r].y;return n*.5}static isClockWise(t){return e.area(t)<0}static triangulateShape(e,t){let n=[],r=[],i=[];Ip(e),Lp(n,e);let a=e.length;t.forEach(Ip);for(let e=0;e<t.length;e++)r.push(a),a+=t[e].length,Lp(n,t[e]);let o=Pp.triangulate(n,r);for(let e=0;e<o.length;e+=3)i.push(o.slice(e,e+3));return i}};function Ip(e){let t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Lp(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}var Rp=class extends Jd{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Qu(16777215),this.specular=new Qu(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qu(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ku,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},zp=class extends Jd{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new Qu(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qu(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new J(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new ku,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}};function Bp(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function Vp(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Hp(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function Up(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Wp=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e<r)){for(let a=n+2;;){if(r===void 0){if(e<i)break forward_scan;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(i=r,r=t[++n],e<r)break seek}a=t.length;break linear_scan}if(!(e>=i)){let o=t[1];e<o&&(n=2,i=o);for(let a=n-2;;){if(i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(r=i,i=t[--n-1],e>=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n<a;){let r=n+a>>>1;e<t[r]?a=r:n=r+1}if(r=t[n],i=t[n-1],i===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,e,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){let t=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=e*r;for(let e=0;e!==r;++e)t[e]=n[i+e];return t}interpolate_(){throw Error(`THREE.Interpolant: Call to abstract method.`)}intervalChanged_(){}},Gp=class extends Wp{constructor(e,t,n,r){super(e,t,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:pl,endingEnd:pl}}intervalChanged_(e,t,n){let r=this.parameterPositions,i=e-2,a=e+1,o=r[i],s=r[a];if(o===void 0)switch(this.getSettings_().endingStart){case ml:i=e,o=2*t-n;break;case hl:i=r.length-2,o=t+r[i]-r[i+1];break;default:i=e,o=n}if(s===void 0)switch(this.getSettings_().endingEnd){case ml:a=e,s=2*n-t;break;case hl:a=1,s=n+r[1]-r[0];break;default:a=e-1,s=t}let c=(n-t)*.5,l=this.valueSize;this._weightPrev=c/(t-o),this._weightNext=c/(s-n),this._offsetPrev=i*l,this._offsetNext=a*l}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this._offsetPrev,u=this._offsetNext,d=this._weightPrev,f=this._weightNext,p=(n-t)/(r-t),m=p*p,h=m*p,g=-d*h+2*d*m-d*p,_=(1+d)*h+(-1.5-2*d)*m+(-.5+d)*p+1,v=(-1-f)*h+(1.5+f)*m+.5*p,y=f*h-f*m;for(let e=0;e!==o;++e)i[e]=g*a[l+e]+_*a[c+e]+v*a[s+e]+y*a[u+e];return i}},Kp=class extends Wp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=(n-t)/(r-t),u=1-l;for(let e=0;e!==o;++e)i[e]=a[c+e]*u+a[s+e]*l;return i}},qp=class extends Wp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e){return this.copySampleValue_(e-1)}},Jp=class extends Wp{interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,c=s-o,l=this.inTangents,u=this.outTangents;if(!l||!u){let e=(n-t)/(r-t),l=1-e;for(let t=0;t!==o;++t)i[t]=a[c+t]*l+a[s+t]*e;return i}let d=o*2,f=e-1;for(let p=0;p!==o;++p){let o=a[c+p],m=a[s+p],h=f*d+p*2,g=u[h],_=u[h+1],v=e*d+p*2,y=l[v],b=l[v+1],x=(n-t)/(r-t),S,C,w,T,E;for(let e=0;e<8;e++){S=x*x,C=S*x,w=1-x,T=w*w,E=T*w;let e=E*t+3*T*x*g+3*w*S*y+C*r-n;if(Math.abs(e)<1e-10)break;let i=3*T*(g-t)+6*w*x*(y-g)+3*S*(r-y);if(Math.abs(i)<1e-10)break;x-=e/i,x=Math.max(0,Math.min(1,x))}i[p]=E*o+3*T*x*_+3*w*S*b+C*m}return i}},Yp=class{constructor(e,t,n,r){if(e===void 0)throw Error(`THREE.KeyframeTrack: track name is undefined`);if(t===void 0||t.length===0)throw Error(`THREE.KeyframeTrack: no keyframes in track named `+e);this.name=e,this.times=Bp(t,this.TimeBufferType),this.values=Bp(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(e){let t=e.constructor,n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:Bp(e.times,Array),values:Bp(e.values,Array)};let t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new qp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new Kp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new Gp(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodBezier(e){let t=new Jp(this.times,this.values,this.getValueSize(),e);return this.settings&&(t.inTangents=this.settings.inTangents,t.outTangents=this.settings.outTangents),t}setInterpolation(e){let t;switch(e){case ll:t=this.InterpolantFactoryMethodDiscrete;break;case ul:t=this.InterpolantFactoryMethodLinear;break;case dl:t=this.InterpolantFactoryMethodSmooth;break;case fl:t=this.InterpolantFactoryMethodBezier}if(t===void 0){let t=`unsupported interpolation for `+this.ValueTypeName+` keyframe track named `+this.name;if(this.createInterpolant===void 0){if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(t)}return G(`KeyframeTrack:`,t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return ll;case this.InterpolantFactoryMethodLinear:return ul;case this.InterpolantFactoryMethodSmooth:return dl;case this.InterpolantFactoryMethodBezier:return fl}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]+=e}return this}scale(e){if(e!==1){let t=this.times;for(let n=0,r=t.length;n!==r;++n)t[n]*=e}return this}trim(e,t){let n=this.times,r=n.length,i=0,a=r-1;for(;i!==r&&n[i]<e;)++i;for(;a!==-1&&n[a]>t;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(K(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(K(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){K(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){K(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Sl(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){K(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===dl,i=e.length-1,a=1;for(let o=1;o<i;++o){let i=!1,s=e[o];if(s!==e[o+1]&&(o!==1||s!==e[0])){if(r)i=!0;else{let e=o*n,r=e-n,a=e+n;for(let o=0;o!==n;++o){let n=t[e+o];if(n!==t[r+o]||n!==t[a+o]){i=!0;break}}}}if(i){if(o!==a){e[a]=e[o];let r=o*n,i=a*n;for(let e=0;e!==n;++e)t[i+e]=t[r+e]}++a}}if(i>0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};Yp.prototype.ValueTypeName=``,Yp.prototype.TimeBufferType=Float32Array,Yp.prototype.ValueBufferType=Float32Array,Yp.prototype.DefaultInterpolation=ul;var Xp=class extends Yp{constructor(e,t,n){super(e,t,n)}};Xp.prototype.ValueTypeName=`bool`,Xp.prototype.ValueBufferType=Array,Xp.prototype.DefaultInterpolation=ll,Xp.prototype.InterpolantFactoryMethodLinear=void 0,Xp.prototype.InterpolantFactoryMethodSmooth=void 0;var Zp=class extends Yp{constructor(e,t,n,r){super(e,t,n,r)}};Zp.prototype.ValueTypeName=`color`;var Qp=class extends Yp{constructor(e,t,n,r){super(e,t,n,r)}};Qp.prototype.ValueTypeName=`number`;var $p=class extends Wp{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)eu.slerpFlat(i,0,a,c-o,a,c,s);return i}},em=class extends Yp{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new $p(this.times,this.values,this.getValueSize(),e)}};em.prototype.ValueTypeName=`quaternion`,em.prototype.InterpolantFactoryMethodSmooth=void 0;var tm=class extends Yp{constructor(e,t,n){super(e,t,n)}};tm.prototype.ValueTypeName=`string`,tm.prototype.ValueBufferType=Array,tm.prototype.DefaultInterpolation=ll,tm.prototype.InterpolantFactoryMethodLinear=void 0,tm.prototype.InterpolantFactoryMethodSmooth=void 0;var nm=class extends Yp{constructor(e,t,n,r){super(e,t,n,r)}};nm.prototype.ValueTypeName=`vector`;var rm=class{constructor(e=``,t=-1,n=[],r=2500){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Ml(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(am(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(Yp.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e<i;e++){let o=[],s=[];o.push((e+i-1)%i,e,(e+1)%i),s.push(0,1,0);let c=Vp(o);o=Hp(o,1,c),s=Hp(s,1,c),!r&&o[0]===0&&(o.push(i),s.push(s[0])),a.push(new Qp(`.morphTargetInfluences[`+t[e].name+`]`,o,s).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){let t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let e=0;e<n.length;e++)if(n[e].name===t)return n[e];return null}static CreateClipsFromMorphTargetSequences(e,t,n){let r={},i=/^([\w-]*?)([\d]+)$/;for(let t=0,n=e.length;t<n;t++){let n=e[t],a=n.name.match(i);if(a&&a.length>1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e&&=this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){let e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());let t=new this.constructor(this.name,this.duration,e,this.blendMode);return t.userData=JSON.parse(JSON.stringify(this.userData)),t}toJSON(){return this.constructor.toJSON(this)}};function im(e){switch(e.toLowerCase()){case`scalar`:case`double`:case`float`:case`number`:case`integer`:return Qp;case`vector`:case`vector2`:case`vector3`:case`vector4`:return nm;case`color`:return Zp;case`quaternion`:return em;case`bool`:case`boolean`:return Xp;case`string`:return tm}throw Error(`THREE.KeyframeTrack: Unsupported typeName: `+e)}function am(e){if(e.type===void 0)throw Error(`THREE.KeyframeTrack: track type undefined, can not parse`);let t=im(e.type);if(e.times===void 0){let t=[],n=[];Up(e.keys,t,n,`value`),e.times=t,e.values=n}return t.parse===void 0?new t(e.name,e.times,e.values,e.interpolation):t.parse(e)}const om={enabled:!1,files:{},add:function(e,t){this.enabled!==!1&&(sm(e)||(this.files[e]=t))},get:function(e){if(this.enabled!==!1&&!sm(e))return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};function sm(e){try{let t=e.slice(e.indexOf(`:`)+1);return new URL(t).protocol===`blob:`}catch{return!1}}var cm=class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return e=e.normalize(`NFC`),s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;t<n;t+=2){let n=c[t],r=c[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return r}return null},this.abort=function(){return this.abortController.abort(),this._abortController=null,this}}get abortController(){return this._abortController||=new AbortController,this._abortController}};const lm=new cm;var um=class{constructor(e){this.manager=e===void 0?lm:e,this.crossOrigin=`anonymous`,this.withCredentials=!1,this.path=``,this.resourcePath=``,this.requestHeader={},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}load(){}loadAsync(e,t){let n=this;return new Promise(function(r,i){n.load(e,r,t,i)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}abort(){return this}};um.DEFAULT_MATERIAL_NAME=`__DEFAULT`;const dm={};var fm=class extends Error{constructor(e,t){super(e),this.response=t}},pm=class extends um{constructor(e){super(e),this.mimeType=``,this.responseType=``,this._abortController=new AbortController}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=om.get(`file:${e}`);if(i!==void 0){this.manager.itemStart(e),setTimeout(()=>{t&&t(i),this.manager.itemEnd(e)},0);return}if(dm[e]!==void 0){dm[e].push({onLoad:t,onProgress:n,onError:r});return}dm[e]=[],dm[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&G(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=dm[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e<t;e++){let t=n[e];t.onProgress&&t.onProgress(r)}e.enqueue(i),t()}},t=>{e.error(t)})}}});return new Response(c)}throw new fm(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{om.add(`file:${e}`,t);let n=dm[e];delete dm[e];for(let e=0,r=n.length;e<r;e++){let r=n[e];r.onLoad&&r.onLoad(t)}}).catch(t=>{let n=dm[e];if(n===void 0)throw this.manager.itemError(e),t;delete dm[e];for(let e=0,r=n.length;e<r;e++){let r=n[e];r.onError&&r.onError(t)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}};const mm=new WeakMap;var hm=class extends um{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=om.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=mm.get(a);e===void 0&&(e=[],mm.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=Cl(`img`);function s(){l(),t&&t(this);let n=mm.get(this)||[];for(let e=0;e<n.length;e++){let t=n[e];t.onLoad&&t.onLoad(this)}mm.delete(this),i.manager.itemEnd(e)}function c(t){l(),r&&r(t),om.remove(`image:${e}`);let n=mm.get(this)||[];for(let e=0;e<n.length;e++){let r=n[e];r.onError&&r.onError(t)}mm.delete(this),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){o.removeEventListener(`load`,s,!1),o.removeEventListener(`error`,c,!1)}return o.addEventListener(`load`,s,!1),o.addEventListener(`error`,c,!1),e.slice(0,5)!==`data:`&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),om.add(`image:${e}`,o),i.manager.itemStart(e),o.src=e,o}},gm=class extends um{constructor(e){super(e)}load(e,t,n,r){let i=new vu,a=new hm(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(e){i.image=e,i.needsUpdate=!0,t!==void 0&&t(i)},n,r),i}},_m=class extends Ku{constructor(e,t=1){super(),this.isLight=!0,this.type=`Light`,this.color=new Qu(e),this.intensity=t}dispose(){this.dispatchEvent({type:`dispose`})}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){let t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,t}};const vm=new X,ym=new Y,bm=new Y;var xm=class{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.biasNode=null,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new J(512,512),this.mapType=ol,this.map=null,this.mapPass=null,this.matrix=new X,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Vf,this._frameExtents=new J(1,1),this._viewportCount=1,this._viewports=[new yu(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){let t=this.camera,n=this.matrix;ym.setFromMatrixPosition(e.matrixWorld),t.position.copy(ym),bm.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(bm),t.updateMatrixWorld(),vm.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(vm,t.coordinateSystem,t.reversedDepth),t.coordinateSystem===2001||t.reversedDepth?n.set(.5,0,0,.5,0,.5,0,.5,0,0,1,0,0,0,0,1):n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(vm)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.autoUpdate=e.autoUpdate,this.needsUpdate=e.needsUpdate,this.normalBias=e.normalBias,this.blurSamples=e.blurSamples,this.mapSize.copy(e.mapSize),this.biasNode=e.biasNode,this}clone(){return new this.constructor().copy(this)}toJSON(){let e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}};const Sm=new Y,Cm=new eu,wm=new Y;var Tm=class extends Ku{constructor(){super(),this.isCamera=!0,this.type=`Camera`,this.matrixWorldInverse=new X,this.projectionMatrix=new X,this.projectionMatrixInverse=new X,this.coordinateSystem=bl,this._reversedDepth=!1}get reversedDepth(){return this._reversedDepth}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorld.decompose(Sm,Cm,wm),wm.x===1&&wm.y===1&&wm.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Sm,Cm,wm.set(1,1,1)).invert()}updateWorldMatrix(e,t,n=!1){super.updateWorldMatrix(e,t,n),this.matrixWorld.decompose(Sm,Cm,wm),wm.x===1&&wm.y===1&&wm.z===1?this.matrixWorldInverse.copy(this.matrixWorld).invert():this.matrixWorldInverse.compose(Sm,Cm,wm.set(1,1,1)).invert()}clone(){return new this.constructor().copy(this)}};const Em=new Y,Dm=new J,Om=new J;var km=class extends Tm{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type=`PerspectiveCamera`,this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){let t=.5*this.getFilmHeight()/e;this.fov=jl*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){let e=Math.tan(Al*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return jl*2*Math.atan(Math.tan(Al*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){Em.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(Em.x,Em.y).multiplyScalar(-e/Em.z),Em.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Em.x,Em.y).multiplyScalar(-e/Em.z)}getViewSize(e,t){return this.getViewBounds(e,Dm,Om),t.subVectors(Om,Dm)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=this.near,t=e*Math.tan(Al*.5*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r,a=this.view;if(this.view!==null&&this.view.enabled){let e=a.fullWidth,o=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/o,r*=a.width/e,n*=a.height/o}let o=this.filmOffset;o!==0&&(i+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}},Am=class extends xm{constructor(){super(new km(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1,this.aspect=1}updateMatrices(e){let t=this.camera,n=jl*2*e.angle*this.focus,r=this.mapSize.width/this.mapSize.height*this.aspect,i=e.distance||t.far;(n!==t.fov||r!==t.aspect||i!==t.far)&&(t.fov=n,t.aspect=r,t.far=i,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}},jm=class extends _m{constructor(e,t,n=0,r=Math.PI/3,i=0,a=2){super(e,t),this.isSpotLight=!0,this.type=`SpotLight`,this.position.copy(Ku.DEFAULT_UP),this.updateMatrix(),this.target=new Ku,this.distance=n,this.angle=r,this.penumbra=i,this.decay=a,this.map=null,this.shadow=new Am}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){super.dispose(),this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.map=e.map,this.shadow=e.shadow.clone(),this}toJSON(e){let t=super.toJSON(e);return t.object.distance=this.distance,t.object.angle=this.angle,t.object.decay=this.decay,t.object.penumbra=this.penumbra,t.object.target=this.target.uuid,this.map&&this.map.isTexture&&(t.object.map=this.map.toJSON(e).uuid),t.object.shadow=this.shadow.toJSON(),t}},Mm=class extends xm{constructor(){super(new km(90,1,.5,500)),this.isPointLightShadow=!0}},Nm=class extends _m{constructor(e,t,n=0,r=2){super(e,t),this.isPointLight=!0,this.type=`PointLight`,this.distance=n,this.decay=r,this.shadow=new Mm}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){super.dispose(),this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}toJSON(e){let t=super.toJSON(e);return t.object.distance=this.distance,t.object.decay=this.decay,t.object.shadow=this.shadow.toJSON(),t}},Pm=class extends Tm{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type=`OrthographicCamera`,this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,a){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){let e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2,i=n-e,a=n+e,o=r+t,s=r-t;if(this.view!==null&&this.view.enabled){let e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,o-=t*this.view.offsetY,s=o-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,o,s,this.near,this.far,this.coordinateSystem,this.reversedDepth),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){let t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}},Fm=class extends xm{constructor(){super(new Pm(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}},Im=class extends _m{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type=`DirectionalLight`,this.position.copy(Ku.DEFAULT_UP),this.updateMatrix(),this.target=new Ku,this.shadow=new Fm}dispose(){super.dispose(),this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}toJSON(e){let t=super.toJSON(e);return t.object.shadow=this.shadow.toJSON(),t.object.target=this.target.uuid,t}},Lm=class extends _m{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type=`AmbientLight`}},Rm=class{static extractUrlBase(e){let t=e.lastIndexOf(`/`);return t===-1?`./`:e.slice(0,t+1)}static resolveURL(e,t){return typeof e!=`string`||e===``?``:(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}};const zm=RegExp(`[\\[\\]\\.:\\/]`,`g`),Bm=RegExp(`^((?:[^\\[\\]\\.:\\/]+[\\/:])*)([^\\[\\]:\\/]+)?(?:\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?)?\\.([^\\[\\]\\.:\\/]+)(?:\\[(.+)\\])?$`),Vm=[`material`,`materials`,`bones`,`map`];var Hm=class{constructor(e,t,n){let r=n||$.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},$=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(zm,``)}static parseTrackName(e){let t=Bm.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);Vm.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r<e.length;r++){let i=e[r];if(i.name===t||i.uuid===t)return i;let a=n(i.children);if(a)return a}return null},r=n(e.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)e[t++]=n[r]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++]}_setValue_array_setNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){let n=this.resolvedProperty;for(let r=0,i=n.length;r!==i;++r)n[r]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let t=this.node,n=this.parsedPath,r=n.objectName,i=n.propertyName,a=n.propertyIndex;if(t||(t=e.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){G(`PropertyBinding: No target node found for track: `+this.path+`.`);return}if(r){let e=n.objectIndex;switch(r){case`materials`:if(!t.material){K(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.materials){K(`PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.`,this);return}t=t.material.materials;break;case`bones`:if(!t.skeleton){K(`PropertyBinding: Can not bind to bones as node does not have a skeleton.`,this);return}t=t.skeleton.bones;for(let n=0;n<t.length;n++)if(t[n].name===e){e=n;break}break;case`map`:if(`map`in t){t=t.map;break}if(!t.material){K(`PropertyBinding: Can not bind to material as node does not have a material.`,this);return}if(!t.material.map){K(`PropertyBinding: Can not bind to material.map as node.material does not have a map.`,this);return}t=t.material.map;break;default:if(t[r]===void 0){K(`PropertyBinding: Can not bind to objectName of node undefined.`,this);return}t=t[r]}if(e!==void 0){if(t[e]===void 0){K(`PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.`,this,t);return}t=t[e]}}let o=t[i];if(o===void 0){let e=n.nodeName;K(`PropertyBinding: Trying to update property for track: `+e+`.`+i+` but it wasn't found.`,t);return}let s=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?s=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(s=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i===`morphTargetInfluences`){if(!t.geometry){K(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.`,this);return}if(!t.geometry.morphAttributes){K(`PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.`,this);return}t.morphTargetDictionary[a]!==void 0&&(a=t.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=a}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};$.Composite=Hm,$.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},$.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},$.prototype.GetterByBindingType=[$.prototype._getValue_direct,$.prototype._getValue_array,$.prototype._getValue_arrayElement,$.prototype._getValue_toArray],$.prototype.SetterByBindingTypeAndVersioning=[[$.prototype._setValue_direct,$.prototype._setValue_direct_setNeedsUpdate,$.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[$.prototype._setValue_array,$.prototype._setValue_array_setNeedsUpdate,$.prototype._setValue_array_setMatrixWorldNeedsUpdate],[$.prototype._setValue_arrayElement,$.prototype._setValue_arrayElement_setNeedsUpdate,$.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[$.prototype._setValue_fromArray,$.prototype._setValue_fromArray_setNeedsUpdate,$.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]],class e{static{e.prototype.isMatrix2=!0}constructor(e,t,n,r){this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,n,r)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let n=0;n<4;n++)this.elements[n]=e[n+t];return this}set(e,t,n,r){let i=this.elements;return i[0]=e,i[2]=t,i[1]=n,i[3]=r,this}},typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:`185`}})),typeof window<`u`&&(window.__THREE__?G(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=`185`),new TextEncoder,new TextDecoder(`utf-8`);function Um(e){let t=new Set;e.traverse(e=>{let n=e;n.geometry&&t.add(n.geometry);for(let e of[n.material].flat())if(e){t.add(e);for(let n of Object.values(e))n instanceof vu&&t.add(n)}});for(let e of t)e instanceof vu&&typeof ImageBitmap<`u`&&e.image instanceof ImageBitmap&&e.image.close(),e.dispose();e.clear()}function Wm(e){let t=0,n=0,r=0,i=0,a=new Set;if(e.traverse(e=>{let o=e.geometry;if(!o||(r+=Math.max(1,o.groups.length),e instanceof gf&&(i+=(o.index?.count??o.getAttribute(`position`)?.count??0)/3),a.has(o)))return;a.add(o);let s=o.getAttribute(`position`);if(!s||!s.count)throw Error(`Empty geometry`);t+=s.count;for(let e=0;e<s.count;e++)if(![s.getX(e),s.getY(e),s.getZ(e)].every(Number.isFinite))throw Error(`Non-finite vertex`);let c=o.getIndex();if(c)for(let e=0;e<c.count;e++){let t=c.getX(e);if(t<0||t>=s.count)throw Error(`Invalid index`)}for(let e of Object.values(o.attributes))n+=e.array.byteLength;n+=c?.array.byteLength??0}),!t)throw Error(`Empty scene`);if(t>6e6||n>268435456||r>4096)throw RangeError(`Scene budget exceeded`);let o=new md().setFromObject(e),s=o.getSize(new Y);if(![...o.min,...o.max,...s].every(Number.isFinite))throw Error(`Invalid bounds`);return{vertices:t,triangles:i,bytes:n,draws:r,bounds:o,size:s}}var Gm=Uint8Array,Km=Uint16Array,qm=Int32Array,Jm=new Gm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ym=new Gm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Xm=new Gm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Zm=function(e,t){for(var n=new Km(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new qm(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Qm=Zm(Jm,2),$m=Qm.b,eh=Qm.r;$m[28]=258,eh[258]=28;var th=Zm(Ym,0),nh=th.b;th.r;for(var rh=new Km(32768),ih=0;ih<32768;++ih){var ah=(ih&43690)>>1|(ih&21845)<<1;ah=(ah&52428)>>2|(ah&13107)<<2,ah=(ah&61680)>>4|(ah&3855)<<4,rh[ih]=((ah&65280)>>8|(ah&255)<<8)>>1}for(var oh=(function(e,t,n){for(var r=e.length,i=0,a=new Km(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Km(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Km(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[rh[d]>>c]=l}else for(s=new Km(r),i=0;i<r;++i)e[i]&&(s[i]=rh[o[e[i]-1]++]>>15-e[i]);return s}),sh=new Gm(288),ih=0;ih<144;++ih)sh[ih]=8;for(var ih=144;ih<256;++ih)sh[ih]=9;for(var ih=256;ih<280;++ih)sh[ih]=7;for(var ih=280;ih<288;++ih)sh[ih]=8;for(var ch=new Gm(32),ih=0;ih<32;++ih)ch[ih]=5;var lh=oh(sh,9,1),uh=oh(ch,5,1),dh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},fh=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},ph=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},mh=function(e){return(e+7)/8|0},hh=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Gm(e.subarray(t,n))},gh=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],_h=function(e,t,n){var r=Error(t||gh[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,_h),!n)throw r;return r},vh=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new Gm(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Gm(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Gm(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=fh(e,d,1);var v=fh(e,d+1,3);if(d+=3,!v){var y=mh(d)+4,b=e[y-4]|e[y-3]<<8,x=y+b;if(x>i){c&&_h(0);break}s&&l(f+b),n.set(e.subarray(y,x),f),t.b=f+=b,t.p=d=x*8,t.f=u;continue}if(v==1)p=lh,m=uh,h=9,g=5;else if(v==2){var S=fh(e,d,31)+257,C=fh(e,d+10,15)+4,w=S+fh(e,d+5,31)+1;d+=14;for(var T=new Gm(w),E=new Gm(19),D=0;D<C;++D)E[Xm[D]]=fh(e,d+D*3,7);d+=C*3;for(var O=dh(E),k=(1<<O)-1,A=oh(E,O,1),D=0;D<w;){var ee=A[fh(e,d,k)];d+=ee&15;var y=ee>>4;if(y<16)T[D++]=y;else{var te=0,ne=0;for(y==16?(ne=3+fh(e,d,3),d+=2,te=T[D-1]):y==17?(ne=3+fh(e,d,7),d+=3):y==18&&(ne=11+fh(e,d,127),d+=7);ne--;)T[D++]=te}}var j=T.subarray(0,S),M=T.subarray(S);h=dh(j),g=dh(M),p=oh(j,h,1),m=oh(M,g,1)}else _h(1);if(d>_){c&&_h(0);break}}s&&l(f+131072);for(var re=(1<<h)-1,ie=(1<<g)-1,N=d;;N=d){var te=p[ph(e,d)&re],P=te>>4;if(d+=te&15,d>_){c&&_h(0);break}if(te||_h(2),P<256)n[f++]=P;else if(P==256){N=d,p=null;break}else{var ae=P-254;if(P>264){var D=P-257,oe=Jm[D];ae=fh(e,d,(1<<oe)-1)+$m[D],d+=oe}var se=m[ph(e,d)&ie],ce=se>>4;se||_h(3),d+=se&15;var M=nh[ce];if(ce>3){var oe=Ym[ce];M+=ph(e,d)&(1<<oe)-1,d+=oe}if(d>_){c&&_h(0);break}s&&l(f+131072);var F=f+ae;if(f<M){var le=a-M,ue=Math.min(M,F);for(le+f<0&&_h(3);f<ue;++f)n[f]=r[le+f]}for(;f<F;++f)n[f]=n[f-M]}}t.l=p,t.p=N,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?hh(n,0,f):n.subarray(0,f)},yh=new Gm(0),bh=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&_h(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&_h(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2},xh=function(){function e(e,t){typeof e==`function`&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new Gm(32768),this.p=new Gm(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||_h(5),this.d&&_h(4),!this.p.length)this.p=e;else if(e.length){var t=new Gm(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=vh(this.p,this.s,this.o);this.ondata(hh(n,t,this.s.b),this.d),this.o=hh(n,this.s.b-32768),this.s.b=this.o.length,this.p=hh(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Sh=function(){function e(e,t){xh.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(xh.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(bh(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&_h(6,`invalid zlib data`),this.p=this.p.subarray(0,-4)),xh.prototype.c.call(this,t)},e}(),Ch=typeof TextDecoder<`u`&&new TextDecoder;try{Ch.decode(yh,{stream:!0})}catch{}function wh(e){let t=new TextDecoder().decode(e);return t.startsWith(`Kaydara FBX Binary \0\0`)?e.length>=27?new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(23,!0):0:Number(/\bFBXVersion\s*:\s*(\d+)/.exec(t)?.[1]??0)}function Th(e){return/<COLLADA\b[^>]*\bxmlns\s*=\s*["']http:\/\/www\.collada\.org\/(?:2005\/11|2008\/03)\/COLLADASchema["']/.test(e)}const Eh=12e6;function Dh(e,t){if(e.byteLength>134217728)throw RangeError(`Scene input budget`);let n=new Uint8Array(e),r=new TextDecoder().decode(n.subarray(0,65536));if(t===`fbx`&&r.startsWith(`Kaydara FBX Binary`)){if(wh(n.subarray(0,32))<6400)throw Error(`Unsupported binary FBX`);Oh(n);return}let i=new TextDecoder().decode(n);if(t===`fbx`?wh(n.subarray(0,65536))<7e3:!Th(r))throw Error(`Invalid scene header`);if(t===`dae`&&/<!DOCTYPE|<!ENTITY/i.test(i))throw Error(`Unsupported XML declarations`);let a=0,o=0;for(let e of i.matchAll(t===`fbx`?/\*(\d+)\s*\{/g:/<(?:float_array|int_array|Name_array)\b[^>]*\bcount\s*=\s*["'](\d+)["']/g))if(o+=Number(e[1]),o>Eh)throw RangeError(`Scene array budget`);let s=/[-+]?\d+(?:\.\d*)?(?:[eE][-+]?\d+)?/g;for(;s.exec(i);)if(++a>Eh)throw RangeError(`Scene scalar budget`);let c=0,l=t===`fbx`?/\{/g:/<\w/g;for(;l.exec(i);)if(++c>1e5)throw RangeError(`Scene node budget`)}function Oh(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint32(23,!0)>=7500,r=n?25:13,i=e=>n?Number(t.getBigUint64(e,!0)):t.getUint32(e,!0),a=0,o=0,s=0,c=(l,u,d)=>{if(++a>1e5||d>64)throw RangeError(`FBX hierarchy budget`);if(l+r>u)throw Error(`Truncated FBX node`);let f=i(l),p=i(l+(n?8:4)),m=i(l+(n?16:8));if(!f)return l+r;if(![f,p,m].every(Number.isSafeInteger)||f>u||f<=l+r)throw Error(`Invalid FBX node range`);let h=l+r+e[l+r-1],g=h+m;if(g>f)throw Error(`Invalid FBX property range`);if(o+=p,o>Eh)throw RangeError(`FBX property budget`);for(let n=0;n<p;n++){if(h>=g)throw Error(`Truncated FBX property`);let n=String.fromCharCode(e[h++]),r={Y:2,C:1,I:4,F:4,D:8,L:8};if(r[n])h+=r[n];else if(n===`S`||n===`R`){if(h+4>g)throw Error(`Truncated FBX string`);let e=t.getUint32(h,!0);h+=4+e}else if(`bcdfil`.includes(n)){if(h+12>g)throw Error(`Truncated FBX array`);let r=t.getUint32(h,!0),i=t.getUint32(h+4,!0),a=t.getUint32(h+8,!0),c=r*{b:1,c:1,d:8,f:4,i:4,l:8}[n];if(o+=r,s+=c,o>Eh||s>134217728)throw RangeError(`FBX decoded array budget`);if(h+=12,h+a>g||i>1||!i&&a!==c)throw Error(`Invalid FBX array`);if(i){let t=0,n=new Sh(e=>{if(t+=e.length,t>c)throw RangeError(`FBX compressed array overflow`)});for(let t=0;t<a;t+=1024)n.push(e.subarray(h+t,h+Math.min(t+1024,a)),t+1024>=a);if(t!==c)throw Error(`Invalid FBX decoded array length`)}h+=a}else throw Error(`Unknown FBX property`);if(h>g)throw Error(`Truncated FBX property`)}if(h!==g)throw Error(`Invalid FBX property length`);for(;h<f;)h=c(h,f,d+1);if(h!==f)throw Error(`Invalid FBX children`);return f},l=27;for(;l+r<=e.length&&i(l);)l=c(l,e.length,0)}var kh=class extends gm{constructor(...e){super(...e),this.images=[]}load(e){if(this.images.length>=256)throw RangeError(`Scene texture budget`);let t=new vu;return this.images.push({id:t.uuid,uri:e}),t}};async function Ah(e,t){Dh(e,t);let n=new cm;n.setURLModifier(()=>{throw Error(`Scene parser network access blocked`)});let r=new kh(n);n.addHandler(/.*/,r);let i,a;try{if(t===`fbx`){let{FBXLoader:t}=await import(`./FBXLoader-D1vDnL3o.js`),r=new t(n).parse(e,``);i=r;let o=r.userData.unitScaleFactor;if(o!==void 0){if(!Number.isFinite(o)||o<=0)throw Error(`Invalid FBX unit`);let e=new qu;e.add(r),e.scale.setScalar(o/100),e.animations=r.animations,i=e,a=`m`}}else{let[{ColladaParser:t},{ColladaComposer:n}]=await Promise.all([import(`./ColladaParser-BHTzbhBz.js`),import(`./ColladaComposer-TCm9fgZa.js`)]),o=new t().parse(new TextDecoder().decode(e));if(!o)throw Error(`Invalid COLLADA`);if(!Number.isFinite(o.asset.unit)||o.asset.unit<=0)throw Error(`Invalid COLLADA unit`);let s=new n(o.library,o.collada,r,r).compose();if(i=s.scene,i.animations=s.animations,o.asset.upAxis===`Z_UP`)i.rotation.x=-Math.PI/2;else if(o.asset.upAxis===`X_UP`)i.rotation.z=Math.PI/2;else if(o.asset.upAxis!==`Y_UP`)throw Error(`Unknown COLLADA up axis`);i.scale.multiplyScalar(o.asset.unit),a=`m`}let o=0;i.traverse(e=>{if(++o>16384)throw RangeError(`Scene hierarchy budget`);e.isLight&&(e.visible=!1),e instanceof gf&&!e.geometry.getAttribute(`normal`)&&e.geometry.computeVertexNormals()}),Wm(i);let s=i.toJSON();for(let e of s.images??[])e.url={};for(let e of r.images)e.uri?.startsWith(`blob:`)&&(e.blob=await(await fetch(e.uri)).blob(),URL.revokeObjectURL(e.uri),delete e.uri);return{json:s,images:r.images,units:a}}finally{for(let e of r.images)e.uri?.startsWith(`blob:`)&&URL.revokeObjectURL(e.uri);i&&Um(i)}}globalThis.DOMParser=$c,self.onmessage=async({data:e})=>{try{self.postMessage({result:await Ah(e.bytes,e.format)})}catch(e){self.postMessage({error:e instanceof RangeError?`resource-limit`:`invalid-file`})}};export{Pm as A,Of as B,X as C,Rp as D,zp as E,em as F,Md as G,vu as H,nl as I,yu as J,J as K,gl as L,Nm as M,$ as N,Qp as O,eu as P,Fp as R,ru as S,rf as T,gm as U,jm as V,pd as W,nm as Y,Hf as _,rl as a,Rm as b,tp as c,pm as d,Pd as f,Xf as g,ll as h,Kd as i,km as j,Ku as k,Im as l,fl as m,rm as n,Qu as o,qu as p,Y as q,kf as r,cu as s,Lm as t,ku as u,ep as v,gf as w,$l as x,um as y,Nf as z};