@shopify/cli 4.7.0 → 4.8.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 (324) hide show
  1. package/dist/analytics-3IIUBZ3B.js +1 -0
  2. package/dist/analytics-OOT5AB52.js +1 -0
  3. package/dist/assets/hydrogen/starter/AGENTS.md +5 -0
  4. package/dist/assets/hydrogen/starter/CHANGELOG.md +9 -0
  5. package/dist/assets/hydrogen/starter/CLAUDE.md +1 -0
  6. package/dist/assets/hydrogen/starter/package.json +3 -3
  7. package/dist/bootstrap.js +1 -1
  8. package/dist/{chunk-6ENBE43F.js → chunk-2AK44UYM.js} +1 -1
  9. package/dist/{chunk-XCBEYRQI.js → chunk-2CIZE537.js} +1 -1
  10. package/dist/{chunk-YHPBDS52.js → chunk-2EAFYCCS.js} +1 -1
  11. package/dist/{chunk-U2Z5NMXV.js → chunk-2KGPH7YG.js} +1 -1
  12. package/dist/{chunk-6VGJVXZI.js → chunk-2O224ZPO.js} +1 -1
  13. package/dist/{chunk-RY2SJVWM.js → chunk-2XDUJQQN.js} +3 -3
  14. package/dist/{chunk-GSCWZR22.js → chunk-36ROOKQB.js} +1 -1
  15. package/dist/{chunk-YIZZ5LZN.js → chunk-3DCN3N23.js} +1 -1
  16. package/dist/{chunk-YN6A26QL.js → chunk-3JXPOOFV.js} +39 -39
  17. package/dist/{chunk-KIYHEMHD.js → chunk-4QBJ5JBX.js} +15 -16
  18. package/dist/chunk-4ZNV5YSL.js +1 -0
  19. package/dist/chunk-5L63PRJL.js +2 -0
  20. package/dist/{chunk-MRCWOOSF.js → chunk-5N6HNQQ5.js} +1 -1
  21. package/dist/{chunk-4JY2P2A5.js → chunk-5SEEDOQ5.js} +1 -1
  22. package/dist/chunk-67Z34HN5.js +5 -0
  23. package/dist/chunk-6BDAJ6UD.js +5 -0
  24. package/dist/chunk-6CXG3XLP.js +1 -0
  25. package/dist/{chunk-QEB3HUQE.js → chunk-6MWWJZFN.js} +1 -1
  26. package/dist/{chunk-LRQYUWWB.js → chunk-6RQOEPEC.js} +1 -1
  27. package/dist/{chunk-LJM2DUXN.js → chunk-72ZY3KTF.js} +1 -1
  28. package/dist/{chunk-WKUGSFTB.js → chunk-742XXXGL.js} +1 -1
  29. package/dist/{chunk-37TEEITE.js → chunk-7HFHL5SO.js} +1 -1
  30. package/dist/{chunk-6VRXGEIW.js → chunk-7ISJRIPT.js} +1 -1
  31. package/dist/{chunk-CZJZCJRX.js → chunk-7LWUHQIF.js} +1 -1
  32. package/dist/{chunk-MLZLDL6B.js → chunk-7T6M7FAC.js} +1 -1
  33. package/dist/{chunk-LWJA2DQG.js → chunk-A6BMJISP.js} +1 -1
  34. package/dist/{chunk-TY4W7AYX.js → chunk-AWUX36VG.js} +1 -1
  35. package/dist/chunk-BWJIZYAG.js +1 -0
  36. package/dist/{chunk-EW55WWT7.js → chunk-BZ73NV3L.js} +1 -1
  37. package/dist/chunk-C3RUVXG2.js +6 -0
  38. package/dist/{chunk-QKGZWOOY.js → chunk-C4YLE3NS.js} +1 -1
  39. package/dist/chunk-CEYIZC3M.js +2 -0
  40. package/dist/{chunk-WCRZJY3P.js → chunk-CIWKN4HF.js} +1 -1
  41. package/dist/{chunk-P5MNNBSO.js → chunk-CULTZLC4.js} +1 -1
  42. package/dist/{chunk-X4XP2RQJ.js → chunk-CX75OKZK.js} +1 -1
  43. package/dist/{chunk-LDF4PQ3B.js → chunk-DASVZTAX.js} +46 -46
  44. package/dist/{chunk-UPJLZHHR.js → chunk-DX3JLOUA.js} +1 -1
  45. package/dist/{chunk-ZCNIR6YU.js → chunk-E55KS3GZ.js} +1 -1
  46. package/dist/{chunk-WHLGNDRE.js → chunk-E5FXOLQO.js} +1 -1
  47. package/dist/{chunk-JQ2B3VHR.js → chunk-E6N4PZZR.js} +1 -1
  48. package/dist/{chunk-CIH6LPTG.js → chunk-EB574SY6.js} +1 -1
  49. package/dist/chunk-EX5GVHGE.js +1 -0
  50. package/dist/chunk-F3NYCSXT.js +273 -0
  51. package/dist/{chunk-FWPJEL6Q.js → chunk-F6X6OXXB.js} +1 -1
  52. package/dist/{chunk-QPWMD2VR.js → chunk-FDBHQLFK.js} +1 -1
  53. package/dist/{chunk-TCTVI6PK.js → chunk-FDYW3UQC.js} +1 -1
  54. package/dist/{chunk-2SZOPJYI.js → chunk-FEDVVYK2.js} +1 -1
  55. package/dist/{chunk-SSJGWLCW.js → chunk-FJ6F4XRV.js} +1 -1
  56. package/dist/{chunk-E5T4YRGW.js → chunk-FOREMLFZ.js} +1 -1
  57. package/dist/{chunk-QXHENYJH.js → chunk-FUYDGK33.js} +1 -1
  58. package/dist/{chunk-CYOFLJ3Z.js → chunk-FX3L344E.js} +1 -1
  59. package/dist/{chunk-FCGKO2KY.js → chunk-G5XIGN5D.js} +1 -1
  60. package/dist/{chunk-HHVHVGRT.js → chunk-GAYKYEIM.js} +1 -1
  61. package/dist/{chunk-2U4P6UFZ.js → chunk-GCY7LPEF.js} +1 -1
  62. package/dist/{chunk-OORWOTAP.js → chunk-GNBRCK7L.js} +1 -1
  63. package/dist/{chunk-KOVAFUYN.js → chunk-GRPKF5ZB.js} +1 -1
  64. package/dist/{chunk-QZBSCOJV.js → chunk-GRSF7456.js} +1 -1
  65. package/dist/chunk-H2TQ4ODI.js +1 -0
  66. package/dist/{chunk-AMLWPYNA.js → chunk-H6XEESUN.js} +1 -1
  67. package/dist/{chunk-I3N6NPHF.js → chunk-HB347DXT.js} +1 -1
  68. package/dist/chunk-HFSCXTJQ.js +97 -0
  69. package/dist/chunk-HHN6KZXX.js +1 -0
  70. package/dist/{chunk-QBIVQXUJ.js → chunk-HP64ZTEJ.js} +1 -1
  71. package/dist/{chunk-U7R6LYPJ.js → chunk-IARCMH7G.js} +1 -1
  72. package/dist/{chunk-YOO7DLOT.js → chunk-IBI5UCJO.js} +1 -1
  73. package/dist/{chunk-UVQL7RUY.js → chunk-IKUSLRGD.js} +1 -1
  74. package/dist/{chunk-HLNJL4B6.js → chunk-IT4HYLTY.js} +1 -1
  75. package/dist/{chunk-GZ64KWHX.js → chunk-J4T73EAS.js} +1 -1
  76. package/dist/chunk-JG4HH54Q.js +1 -0
  77. package/dist/{chunk-DKL6N3L2.js → chunk-JIYSCWCG.js} +1 -1
  78. package/dist/chunk-JWRK5KLD.js +560 -0
  79. package/dist/{chunk-DHU57LKD.js → chunk-JX7FYWPO.js} +1 -1
  80. package/dist/{chunk-N6YTJXIS.js → chunk-K42WBNJQ.js} +1 -1
  81. package/dist/{chunk-5CR5YJTU.js → chunk-KDU7VW3L.js} +1 -1
  82. package/dist/{chunk-CTRXLZAJ.js → chunk-KWVOJWO7.js} +1 -1
  83. package/dist/{chunk-RUFQCXBX.js → chunk-LANUJ7LX.js} +1 -1
  84. package/dist/{chunk-PAAKBWSF.js → chunk-LUKQ5HLC.js} +1 -1
  85. package/dist/{chunk-3K6VHXC2.js → chunk-M2XHIN57.js} +1 -1
  86. package/dist/{chunk-TYIGOVRQ.js → chunk-MNOQAXJW.js} +1 -1
  87. package/dist/chunk-MYQUYU4U.js +2 -0
  88. package/dist/{chunk-T5JXQ7KO.js → chunk-N65F7ET2.js} +1 -1
  89. package/dist/{chunk-PWSI275S.js → chunk-N6RBRPGW.js} +1 -1
  90. package/dist/chunk-N75VOJHO.js +15 -0
  91. package/dist/{chunk-4W3UE2ZI.js → chunk-NBFMP5XQ.js} +1 -1
  92. package/dist/{chunk-CFWHR74L.js → chunk-NE3ZFSMS.js} +1 -1
  93. package/dist/{chunk-D2K2ZBKH.js → chunk-NGLMZYS7.js} +2 -2
  94. package/dist/{chunk-JQISGC7D.js → chunk-NHAUJWEG.js} +1 -1
  95. package/dist/chunk-NILETICC.js +11 -0
  96. package/dist/{chunk-SYADOUBB.js → chunk-NNZXKFOS.js} +1 -1
  97. package/dist/{chunk-E2W5OYYM.js → chunk-NQK2VCDA.js} +1 -1
  98. package/dist/{chunk-U6HYEGAE.js → chunk-NROVZETL.js} +1 -1
  99. package/dist/{chunk-TSLQZTXR.js → chunk-NW6NUGN7.js} +1 -1
  100. package/dist/{chunk-JZMRBJH3.js → chunk-O7DZXO3O.js} +1 -1
  101. package/dist/{chunk-5CADTCJE.js → chunk-OBYQSIYU.js} +1 -1
  102. package/dist/{chunk-5NO5OXYP.js → chunk-OEG3N5PG.js} +1 -1
  103. package/dist/{chunk-VRVP2GQL.js → chunk-OGBZTY2G.js} +1 -1
  104. package/dist/chunk-OMHR423H.js +1 -0
  105. package/dist/{chunk-XHZ5BWXL.js → chunk-OV6SRRXR.js} +1 -1
  106. package/dist/{chunk-2JDCVEFK.js → chunk-OVV5YGKN.js} +1 -1
  107. package/dist/{chunk-SEVSMWNX.js → chunk-OZL5FTT7.js} +1 -1
  108. package/dist/{chunk-JUKAWTYY.js → chunk-OZMQ2EJB.js} +1 -1
  109. package/dist/{chunk-7WTNEG2F.js → chunk-P57P7UAN.js} +1 -1
  110. package/dist/{chunk-JZXA3H5K.js → chunk-PATTG7YZ.js} +1 -1
  111. package/dist/{chunk-2HK4MFWP.js → chunk-PG5YNPJB.js} +1 -1
  112. package/dist/chunk-PP4L2JJ6.js +3 -0
  113. package/dist/{chunk-CZPGC2E7.js → chunk-Q5JX23QU.js} +1 -1
  114. package/dist/{chunk-L67BU25M.js → chunk-Q5KVMLBK.js} +1 -1
  115. package/dist/{chunk-ZRLEAF7M.js → chunk-Q5LIJGT7.js} +1 -1
  116. package/dist/{chunk-JQVXH26X.js → chunk-Q6ADIMJM.js} +1 -1
  117. package/dist/{chunk-YUVE2I3C.js → chunk-QERQARMC.js} +1 -1
  118. package/dist/{chunk-GLWQMLUC.js → chunk-QOV43E26.js} +1 -1
  119. package/dist/{chunk-KCS75ZM4.js → chunk-QTFUYKMF.js} +1 -1
  120. package/dist/{chunk-7DOWT5JZ.js → chunk-QTJCCOAG.js} +3 -3
  121. package/dist/{chunk-XAOYKECS.js → chunk-R6ICQT2D.js} +1 -1
  122. package/dist/{chunk-4LRG5YBS.js → chunk-R7T3LYJL.js} +1 -1
  123. package/dist/{chunk-DMXQLI35.js → chunk-RXQJCJDV.js} +1 -1
  124. package/dist/{chunk-BR6DBMQA.js → chunk-S2TLBBSS.js} +1 -1
  125. package/dist/{chunk-FULWTZS6.js → chunk-S5FOQY35.js} +1 -1
  126. package/dist/{chunk-6OFGSZD6.js → chunk-SYLHT42O.js} +1 -1
  127. package/dist/{chunk-CHMEDVDZ.js → chunk-T4AA6TSF.js} +1 -1
  128. package/dist/{chunk-XRT2W5Y2.js → chunk-T4QWK5GG.js} +1 -1
  129. package/dist/{chunk-63CIFL36.js → chunk-T7PJDT5O.js} +1 -1
  130. package/dist/{chunk-6EBLULOC.js → chunk-TEY4LRY7.js} +1 -1
  131. package/dist/{chunk-PANGX7SA.js → chunk-TFBRVLDN.js} +1 -1
  132. package/dist/{chunk-MB7E5GEY.js → chunk-TUVDJ3PG.js} +1 -1
  133. package/dist/{chunk-HZIX3DIT.js → chunk-U2DWBZK2.js} +1 -1
  134. package/dist/chunk-U53OLUOE.js +3 -0
  135. package/dist/{chunk-GKOBFX4A.js → chunk-UAETNFN4.js} +1 -1
  136. package/dist/{chunk-EOMCXBCS.js → chunk-UAFEFKAQ.js} +1 -1
  137. package/dist/{chunk-Q5DQGV3M.js → chunk-ULRJDKWQ.js} +1 -1
  138. package/dist/chunk-UZARYOLN.js +1 -0
  139. package/dist/chunk-VASGXHYA.js +1 -0
  140. package/dist/chunk-VD4XJ6BX.js +1 -0
  141. package/dist/{chunk-Y34LWI3S.js → chunk-VFM2KQRM.js} +3 -3
  142. package/dist/{chunk-CMYQXGLO.js → chunk-VSDRNYA5.js} +1 -1
  143. package/dist/{chunk-OE3F7XXU.js → chunk-VVZSYHDG.js} +1 -1
  144. package/dist/chunk-VXEYO3ZP.js +1 -0
  145. package/dist/{chunk-7JIQXGDE.js → chunk-VYDSOAV4.js} +1 -1
  146. package/dist/{chunk-DQFSKPKL.js → chunk-WBYAGS6B.js} +1 -1
  147. package/dist/chunk-WGAFCKGD.js +1 -0
  148. package/dist/{chunk-AH2ZGMDM.js → chunk-WYBTC356.js} +1 -1
  149. package/dist/{chunk-TTAPXLI5.js → chunk-XF2KTEID.js} +1 -1
  150. package/dist/{chunk-XUEMMLXK.js → chunk-XH5YGJQR.js} +1 -1
  151. package/dist/chunk-XHKWITLA.js +1705 -0
  152. package/dist/chunk-XOCB4KNX.js +2 -0
  153. package/dist/{chunk-2WJAAJVX.js → chunk-XUUAKGEX.js} +1 -1
  154. package/dist/{chunk-LQCR4TGH.js → chunk-XUYVJEZG.js} +1 -1
  155. package/dist/chunk-Y47C3LSX.js +3 -0
  156. package/dist/{chunk-KK24VGVE.js → chunk-Y5PRPHLQ.js} +1 -1
  157. package/dist/{chunk-K4KTNINH.js → chunk-YD2VQEN5.js} +1 -1
  158. package/dist/{chunk-KUNDCAQN.js → chunk-YESGYUEL.js} +1 -1
  159. package/dist/{chunk-JJJTPEMD.js → chunk-YEVGLC5X.js} +1 -1
  160. package/dist/{chunk-GMTNOCMS.js → chunk-YFINLODF.js} +3 -3
  161. package/dist/{chunk-LZ3GZ7NS.js → chunk-YKL3BLWC.js} +1 -1
  162. package/dist/{chunk-5HPBQ6U5.js → chunk-YLXPYXQP.js} +1 -1
  163. package/dist/{chunk-7AALWJAO.js → chunk-YNDIZCD2.js} +1 -1
  164. package/dist/{chunk-6WZYX5RO.js → chunk-YPWHD3NL.js} +1 -1
  165. package/dist/{chunk-4HV6A6UH.js → chunk-YSAFHVV6.js} +1 -1
  166. package/dist/{chunk-AGOEROAI.js → chunk-YZMY2CTU.js} +1 -1
  167. package/dist/{chunk-S3P5WWJD.js → chunk-Z4AFEO36.js} +1 -1
  168. package/dist/{chunk-7MHANY34.js → chunk-Z5WPP6ME.js} +1 -1
  169. package/dist/chunk-Z65E4UAP.js +1 -0
  170. package/dist/{chunk-V2HCVJYF.js → chunk-ZDRIQC7O.js} +1 -1
  171. package/dist/{chunk-2CYVZUYT.js → chunk-ZH44BDUR.js} +1 -1
  172. package/dist/{chunk-SJMTETSU.js → chunk-ZL5LU4U2.js} +1 -1
  173. package/dist/{chunk-DQCIORGH.js → chunk-ZYX7UHCQ.js} +1 -1
  174. package/dist/{chunk-ACTDYTAV.js → chunk-ZZRFG6ME.js} +114 -114
  175. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  176. package/dist/cli/commands/app/build.js +1 -1
  177. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  178. package/dist/cli/commands/app/bulk/execute.js +1 -1
  179. package/dist/cli/commands/app/bulk/status.js +1 -1
  180. package/dist/cli/commands/app/config/link.js +1 -1
  181. package/dist/cli/commands/app/config/pull.js +1 -1
  182. package/dist/cli/commands/app/config/use.js +1 -1
  183. package/dist/cli/commands/app/config/validate.js +1 -1
  184. package/dist/cli/commands/app/demo/watcher.js +1 -1
  185. package/dist/cli/commands/app/deploy.js +1 -1
  186. package/dist/cli/commands/app/dev/clean.js +1 -1
  187. package/dist/cli/commands/app/dev.js +1 -1
  188. package/dist/cli/commands/app/doctor/instructions.js +1 -0
  189. package/dist/cli/commands/app/doctor.js +1 -0
  190. package/dist/cli/commands/app/env/pull.js +1 -1
  191. package/dist/cli/commands/app/env/show.js +1 -1
  192. package/dist/cli/commands/app/execute.js +1 -1
  193. package/dist/cli/commands/app/function/build.js +1 -1
  194. package/dist/cli/commands/app/function/info.js +1 -1
  195. package/dist/cli/commands/app/function/replay.js +1 -1
  196. package/dist/cli/commands/app/function/run.js +1 -1
  197. package/dist/cli/commands/app/function/schema.js +1 -1
  198. package/dist/cli/commands/app/function/typegen.js +1 -1
  199. package/dist/cli/commands/app/generate/extension.js +1 -1
  200. package/dist/cli/commands/app/graphiql.js +1 -1
  201. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  202. package/dist/cli/commands/app/import-extensions.js +1 -1
  203. package/dist/cli/commands/app/info.js +1 -1
  204. package/dist/cli/commands/app/init.js +1 -1
  205. package/dist/cli/commands/app/logs.js +1 -1
  206. package/dist/cli/commands/app/release.js +1 -1
  207. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -0
  208. package/dist/cli/commands/app/subscription-migrations/list.js +1 -0
  209. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -0
  210. package/dist/cli/commands/app/subscription-migrations/status.js +1 -0
  211. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -0
  212. package/dist/cli/commands/app/versions/list.js +1 -1
  213. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  214. package/dist/cli/commands/auth/login.js +1 -1
  215. package/dist/cli/commands/auth/logout.js +1 -1
  216. package/dist/cli/commands/cache/clear.js +1 -1
  217. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  218. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  219. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  220. package/dist/cli/commands/debug/command-flags.js +1 -1
  221. package/dist/cli/commands/doc/fetch.js +1 -1
  222. package/dist/cli/commands/doc/search.js +1 -1
  223. package/dist/cli/commands/docs/generate.js +1 -1
  224. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  225. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  226. package/dist/cli/commands/help.js +1 -1
  227. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  228. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  229. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  230. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  231. package/dist/cli/commands/notifications/generate.js +1 -1
  232. package/dist/cli/commands/notifications/list.js +1 -1
  233. package/dist/cli/commands/organization/list.js +1 -1
  234. package/dist/cli/commands/search.js +1 -1
  235. package/dist/cli/commands/send-analytics.js +1 -1
  236. package/dist/cli/commands/theme/check.js +1 -1
  237. package/dist/cli/commands/theme/console.js +1 -1
  238. package/dist/cli/commands/theme/delete.js +1 -1
  239. package/dist/cli/commands/theme/dev.js +1 -1
  240. package/dist/cli/commands/theme/duplicate.js +1 -1
  241. package/dist/cli/commands/theme/info.js +1 -1
  242. package/dist/cli/commands/theme/init.js +1 -1
  243. package/dist/cli/commands/theme/language-server.js +1 -1
  244. package/dist/cli/commands/theme/list.js +1 -1
  245. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  246. package/dist/cli/commands/theme/open.js +1 -1
  247. package/dist/cli/commands/theme/package.js +1 -1
  248. package/dist/cli/commands/theme/preview.js +1 -1
  249. package/dist/cli/commands/theme/profile.js +1 -1
  250. package/dist/cli/commands/theme/publish.js +1 -1
  251. package/dist/cli/commands/theme/pull.js +1 -1
  252. package/dist/cli/commands/theme/push.js +1 -1
  253. package/dist/cli/commands/theme/rename.js +1 -1
  254. package/dist/cli/commands/theme/share.js +1 -1
  255. package/dist/cli/commands/upgrade.js +1 -1
  256. package/dist/cli/commands/version.js +1 -1
  257. package/dist/command-registry.js +1 -1
  258. package/dist/{conf-store-OAGJBITE.js → conf-store-ASDCTDQ4.js} +1 -1
  259. package/dist/configs/all.yml +60 -0
  260. package/dist/configs/recommended.yml +60 -0
  261. package/dist/data/filters.json +31 -2
  262. package/dist/data/setting.json +129 -4
  263. package/dist/data/shopify_system_translations.json +154 -13
  264. package/dist/{deprecations-K3NPRKBF.js → deprecations-VBQV7Q4O.js} +1 -1
  265. package/dist/dist-FZLOAKU7.js +1 -0
  266. package/dist/dist-HTY6UHG5.js +1 -0
  267. package/dist/environments-HSTNEQRG.js +1 -0
  268. package/dist/{error-YX56C43A.js → error-2LZYKRMA.js} +1 -1
  269. package/dist/error-handler-PIGEJ7BT.js +1 -0
  270. package/dist/{fs-SKHQZZTQ.js → fs-BJHNJDDK.js} +1 -1
  271. package/dist/hooks/did-you-mean.js +1 -1
  272. package/dist/hooks/hydrogen-init.js +1 -1
  273. package/dist/hooks/postrun.js +1 -1
  274. package/dist/hooks/prerun.js +1 -1
  275. package/dist/hooks/public-metadata.js +1 -1
  276. package/dist/hooks/sensitive-metadata.js +1 -1
  277. package/dist/hooks/tunnel-provider.js +1 -1
  278. package/dist/hooks/tunnel-start.js +1 -1
  279. package/dist/index.js +14 -16
  280. package/dist/{is-global-V5VORI3F.js → is-global-6SCOAJVG.js} +1 -1
  281. package/dist/{local-GX5AN6ZS.js → local-PZWPRFU7.js} +1 -1
  282. package/dist/{metadata-XUJUTBTB.js → metadata-VVBHB3HL.js} +1 -1
  283. package/dist/{node-package-manager-3WIYU7Y3.js → node-package-manager-ETYQN7OM.js} +1 -1
  284. package/dist/notifications-system-652OG5KL.js +1 -0
  285. package/dist/os-7D6NT4O3.js +1 -0
  286. package/dist/{output-X47P6ICP.js → output-74VDGYJD.js} +1 -1
  287. package/dist/{prettier-RVUAAWC7.js → prettier-EGVCP5CY.js} +1 -1
  288. package/dist/{system-SR5G7WEW.js → system-P5QIJALL.js} +1 -1
  289. package/dist/tsconfig.tsbuildinfo +1 -1
  290. package/dist/{ui-VYWSLAQ6.js → ui-H5I5YVKV.js} +1 -1
  291. package/dist/upgrade-34HSYBXI.js +1 -0
  292. package/dist/version-EKXEAF6Q.js +1 -0
  293. package/dist/{version-FK4ETQ22.js → version-J2PYO6M5.js} +1 -1
  294. package/dist/{workerd-NAPS5TA7.js → workerd-X4TGHEG3.js} +1 -1
  295. package/oclif.manifest.json +903 -133
  296. package/package.json +9 -8
  297. package/dist/analytics-6LI5GLWS.js +0 -1
  298. package/dist/analytics-UNRIIG4Y.js +0 -1
  299. package/dist/chunk-5CYJG63I.js +0 -1
  300. package/dist/chunk-6PDR2IUL.js +0 -11
  301. package/dist/chunk-F5HCSUXC.js +0 -16
  302. package/dist/chunk-H5KWM27L.js +0 -1
  303. package/dist/chunk-NEMPLS7C.js +0 -1
  304. package/dist/chunk-OUZGGWFN.js +0 -1
  305. package/dist/chunk-PIFW2R3S.js +0 -1382
  306. package/dist/chunk-QRT4A2RV.js +0 -3
  307. package/dist/chunk-R2R6JDNH.js +0 -1
  308. package/dist/chunk-RZFBGBNA.js +0 -1
  309. package/dist/chunk-V5SC2RYQ.js +0 -2
  310. package/dist/chunk-VKSR6MJG.js +0 -2
  311. package/dist/chunk-XLURZ6GL.js +0 -559
  312. package/dist/chunk-Z5K4J7HQ.js +0 -1
  313. package/dist/chunk-ZO74GSWC.js +0 -5
  314. package/dist/chunk-ZSFAURIH.js +0 -3
  315. package/dist/dist-EXJEE23W.js +0 -1
  316. package/dist/dist-S62Z6IFV.js +0 -1
  317. package/dist/environments-ALH2N36U.js +0 -1
  318. package/dist/error-handler-FDCH72NH.js +0 -1
  319. package/dist/notifications-system-RHULO564.js +0 -1
  320. package/dist/os-M6X7KOR4.js +0 -1
  321. package/dist/upgrade-PFQ7JMXG.js +0 -1
  322. package/dist/version-U4GM2LNG.js +0 -1
  323. /package/dist/{chunk-NJPL5BTN.js → chunk-YLQ3LNNY.js} +0 -0
  324. /package/dist/{morph-77RHJICZ.js → morph-BMYYMQNX.js} +0 -0
@@ -0,0 +1,273 @@
1
+ import{a as Zw}from"./chunk-IWOTLFOY.js";import{a as B$}from"./chunk-FFSDGRAN.js";import{a as Xw,b as F$,c as V$}from"./chunk-F3TMLDLC.js";import{Ca as j$,Da as Yw,m as Qw}from"./chunk-3JXPOOFV.js";import{q as Kw}from"./chunk-TR4OWSEX.js";import{a as ce,b as Te,c as x,d as Ey,e as oa,f as Ay,g as p}from"./chunk-VKWPEFWQ.js";var Ny=x(Oy=>{"use strict";p();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.deepGet=$$;function $$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var ex=x(Xi=>{"use strict";p();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.first=U$;Xi.last=H$;Xi.findLast=W$;Xi.findLastIndex=Py;Xi.findLastAndIndex=z$;function U$(e){return e[0]}function H$(e,t=0){return e[e.length-1+t]}function W$(e,t){return e[Py(e,t)]}function Py(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function z$(e,t){let r=Py(e,t);return[e[r],r]}});var rx=x((Hde,tx)=>{"use strict";p();var G$=Xw();tx.exports=function(t){return t!=null&&typeof t=="object"&&G$(t)===!1}});var qy=x((Gde,nx)=>{"use strict";p();var J$=Xw(),K$=rx(),zde=Array.prototype.slice;nx.exports=ca;function ca(e,t){if(!(this instanceof ca))return typeof t=="number"?new ca(e).fromIndex(t):new ca(e,t);this.str=e||"",this.lineToIndex=Q$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}ca.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=Y$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};ca.prototype.toIndex=function(e,t){if(typeof t>"u")return J$(e)&&e.length>=2?this.toIndex(e[0],e[1]):K$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function Q$(e){for(var t=e.split(`
2
+ `),r=new Array(t.length),n=0,i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return r}function Y$(e,t){if(e>=t[t.length-1])return t.length-1;for(var r=0,n=t.length-2,i;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}return r}});var sx=x(ua=>{"use strict";p();var X$=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.getPosition=Z$;ua.getOffset=e3;var ix=X$(qy());function Z$(e,t){let r=(0,ix.default)(e,{origin:0}).fromIndex(Math.min(t,e.length-1));return{index:t,line:r?r.line:-1,character:r?r.col:-1}}function e3(e,t,r){return(0,ix.default)(e,{origin:1}).toIndex(t,r)}});var rf=x(tf=>{"use strict";p();Object.defineProperty(tf,"__esModule",{value:!0});tf.isError=r3;tf.asError=n3;var t3={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function r3(e){return e instanceof Error}function n3(e){return e instanceof Error?e:typeof e=="string"?new Error(e):e&&typeof e=="object"&&"error"in e?new Error(i3(e)):e&&typeof e.toString=="function"?new Error(e.toString()):new Error("An unknown error occurred")}function i3(e){return t3[e.error]||"Unknown parse error."}});var Cy=x(Ly=>{"use strict";p();Object.defineProperty(Ly,"__esModule",{value:!0});Ly.assertNever=s3;function s3(e){throw new Error(`We should never reach this code, you are missing a case for ${e}`)}});var My=x(nf=>{"use strict";p();Object.defineProperty(nf,"__esModule",{value:!0});nf.memo=a3;nf.memoize=o3;var Iy=Symbol("Unset");function a3(e){let t=Iy,r=(...n)=>(t===Iy&&(t=e(...n)),t);return r.clearCache=()=>{t=Iy},r}function o3(e,t){let r={},n=(...i)=>{let s=t(...i);return r[s]||(r[s]=e(...i)),r[s]};return n.force=(...i)=>(n.invalidate(...i),n(...i)),n.invalidate=(...i)=>{let s=t(...i);delete r[s]},n.clearCache=()=>{r={}},n}});var Dy=x(Ry=>{"use strict";p();Object.defineProperty(Ry,"__esModule",{value:!0});Ry.indexBy=c3;function c3(e,t){let r={};for(let n of t)r[e(n)]=n;return r}});function Zi(e,t=!1){let r=e.length,n=0,i="",s=0,a=16,o=0,c=0,l=0,f=0,m=0;function d(T,y){let A=0,O=0;for(;A<T||!y;){let N=e.charCodeAt(n);if(N>=48&&N<=57)O=O*16+N-48;else if(N>=65&&N<=70)O=O*16+N-65+10;else if(N>=97&&N<=102)O=O*16+N-97+10;else break;n++,A++}return A<T&&(O=-1),O}function g(T){n=T,i="",s=0,a=16,m=0}function _(){let T=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&la(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&la(e.charCodeAt(n)))for(n++;n<e.length&&la(e.charCodeAt(n));)n++;else return m=3,e.substring(T,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&la(e.charCodeAt(n))){for(n++;n<e.length&&la(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(T,y)}function k(){let T="",y=n;for(;;){if(n>=r){T+=e.substring(y,n),m=2;break}let A=e.charCodeAt(n);if(A===34){T+=e.substring(y,n),n++;break}if(A===92){if(T+=e.substring(y,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:T+='"';break;case 92:T+="\\";break;case 47:T+="/";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+=`
3
+ `;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let N=d(4,!0);N>=0?T+=String.fromCharCode(N):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(Yo(A)){T+=e.substring(y,n),m=2;break}else m=6;n++}return T}function b(){if(i="",m=0,s=n,c=o,f=l,n>=r)return s=r,a=17;let T=e.charCodeAt(n);if(jy(T)){do n++,i+=String.fromCharCode(T),T=e.charCodeAt(n);while(jy(T));return a=15}if(Yo(T))return n++,i+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,i+=`
4
+ `),o++,l=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=k(),a=10;case 47:let y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!Yo(e.charCodeAt(n));)n++;return i=e.substring(y,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;let A=r-1,O=!1;for(;n<A;){let N=e.charCodeAt(n);if(N===42&&e.charCodeAt(n+1)===47){n+=2,O=!0;break}n++,Yo(N)&&(N===13&&e.charCodeAt(n)===10&&n++,o++,l=n)}return O||(n++,m=1),i=e.substring(y,n),a=13}return i+=String.fromCharCode(T),n++,a=16;case 45:if(i+=String.fromCharCode(T),n++,n===r||!la(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=_(),a=11;default:for(;n<r&&v(T);)n++,T=e.charCodeAt(n);if(s!==n){switch(i=e.substring(s,n),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(T),n++,a=16}}function v(T){if(jy(T)||Yo(T))return!1;switch(T){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){let T;do T=b();while(T>=12&&T<=15);return T}return{setPosition:g,getPosition:()=>n,scan:t?w:b,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>c,getTokenStartCharacter:()=>s-f,getTokenError:()=>m}}function jy(e){return e===32||e===9}function Yo(e){return e===10||e===13}function la(e){return e>=48&&e<=57}var ax,sf=Te(()=>{"use strict";p();(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ax||(ax={}))});var sr,fa,Fy,ox,cx=Te(()=>{p();sr=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),fa=200,Fy={" ":{"\n":new Array(fa).fill(0).map((e,t)=>`
5
+ `+" ".repeat(t)),"\r":new Array(fa).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fa).fill(0).map((e,t)=>`\r
6
+ `+" ".repeat(t))}," ":{"\n":new Array(fa).fill(0).map((e,t)=>`
7
+ `+" ".repeat(t)),"\r":new Array(fa).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(fa).fill(0).map((e,t)=>`\r
8
+ `+" ".repeat(t))}},ox=[`
9
+ `,"\r",`\r
10
+ `]});function af(e,t,r){let n,i,s,a,o;if(t){for(a=t.offset,o=a+t.length,s=a;s>0&&!Xo(e,s-1);)s--;let A=o;for(;A<e.length&&!Xo(e,A);)A++;i=e.substring(s,A),n=l3(i,r)}else i=e,n=0,s=0,a=0,o=e.length;let c=f3(r,e),l=ox.includes(c),f=0,m=0,d;r.insertSpaces?d=sr[r.tabSize||4]??da(sr[1],r.tabSize||4):d=" ";let g=d===" "?" ":" ",_=Zi(i,!1),k=!1;function b(){if(f>1)return da(c,f)+da(d,n+m);let A=d.length*(n+m);return!l||A>Fy[g][c].length?c+da(d,n+m):A<=0?c:Fy[g][c][A]}function v(){let A=_.scan();for(f=0;A===15||A===14;)A===14&&r.keepLines?f+=1:A===14&&(f=1),A=_.scan();return k=A===16||_.getTokenError()!==0,A}let w=[];function T(A,O,N){!k&&(!t||O<o&&N>a)&&e.substring(O,N)!==A&&w.push({offset:O,length:N-O,content:A})}let y=v();if(r.keepLines&&f>0&&T(da(c,f),0,0),y!==17){let A=_.getTokenOffset()+s,O=d.length*n<20&&r.insertSpaces?sr[d.length*n]:da(d,n);T(O,s,A)}for(;y!==17;){let A=_.getTokenOffset()+_.getTokenLength()+s,O=v(),N="",q=!1;for(;f===0&&(O===12||O===13);){let M=_.getTokenOffset()+s;T(sr[1],A,M),A=_.getTokenOffset()+_.getTokenLength()+s,q=O===12,N=q?b():"",O=v()}if(O===2)y!==1&&m--,r.keepLines&&f>0||!r.keepLines&&y!==1?N=b():r.keepLines&&(N=sr[1]);else if(O===4)y!==3&&m--,r.keepLines&&f>0||!r.keepLines&&y!==3?N=b():r.keepLines&&(N=sr[1]);else{switch(y){case 3:case 1:m++,r.keepLines&&f>0||!r.keepLines?N=b():N=sr[1];break;case 5:r.keepLines&&f>0||!r.keepLines?N=b():N=sr[1];break;case 12:N=b();break;case 13:f>0?N=b():q||(N=sr[1]);break;case 6:r.keepLines&&f>0?N=b():q||(N=sr[1]);break;case 10:r.keepLines&&f>0?N=b():O===6&&!q&&(N="");break;case 7:case 8:case 9:case 11:case 2:case 4:r.keepLines&&f>0?N=b():(O===12||O===13)&&!q?N=sr[1]:O!==5&&O!==17&&(k=!0);break;case 16:k=!0;break}f>0&&(O===12||O===13)&&(N=b())}O===17&&(r.keepLines&&f>0?N=b():N=r.insertFinalNewline?c:"");let B=_.getTokenOffset()+s;T(N,A,B),y=O}return w}function da(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}function l3(e,t){let r=0,n=0,i=t.tabSize||4;for(;r<e.length;){let s=e.charAt(r);if(s===sr[1])n++;else if(s===" ")n+=i;else break;r++}return Math.floor(n/i)}function f3(e,t){for(let r=0;r<t.length;r++){let n=t.charAt(r);if(n==="\r")return r+1<t.length&&t.charAt(r+1)===`
11
+ `?`\r
12
+ `:"\r";if(n===`
13
+ `)return`
14
+ `}return e&&e.eol||`
15
+ `}function Xo(e,t){return`\r
16
+ `.indexOf(e.charAt(t))!==-1}var By=Te(()=>{"use strict";p();sf();cx()});function ux(e,t){let r=[],n=new Object,i,s={value:{},offset:0,length:0,type:"object",parent:void 0},a=!1;function o(c,l,f,m){s.value=c,s.offset=l,s.length=f,s.type=m,s.colonOffset=void 0,i=s}try{tc(e,{onObjectBegin:(c,l)=>{if(t<=c)throw n;i=void 0,a=t>c,r.push("")},onObjectProperty:(c,l,f)=>{if(t<l||(o(c,l,f,"property"),r[r.length-1]=c,t<=l+f))throw n},onObjectEnd:(c,l)=>{if(t<=c)throw n;i=void 0,r.pop()},onArrayBegin:(c,l)=>{if(t<=c)throw n;i=void 0,r.push(0)},onArrayEnd:(c,l)=>{if(t<=c)throw n;i=void 0,r.pop()},onLiteralValue:(c,l,f)=>{if(t<l||(o(c,l,f,dx(c)),t<=l+f))throw n},onSeparator:(c,l,f)=>{if(t<=l)throw n;if(c===":"&&i&&i.type==="property")i.colonOffset=l,a=!1,i=void 0;else if(c===","){let m=r[r.length-1];typeof m=="number"?r[r.length-1]=m+1:(a=!0,r[r.length-1]=""),i=void 0}}})}catch(c){if(c!==n)throw c}return{path:r,previousNode:i,isAtPropertyKey:a,matches:c=>{let l=0;for(let f=0;l<c.length&&f<r.length;f++)if(c[l]===r[f]||c[l]==="*")l++;else if(c[l]!=="**")return!1;return l===c.length}}}function lx(e,t=[],r=Zo.DEFAULT){let n=null,i=[],s=[];function a(c){Array.isArray(i)?i.push(c):n!==null&&(i[n]=c)}return tc(e,{onObjectBegin:()=>{let c={};a(c),s.push(i),i=c,n=null},onObjectProperty:c=>{n=c},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{let c=[];a(c),s.push(i),i=c,n=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(c,l,f)=>{t.push({error:c,offset:l,length:f})}},r),i[0]}function cf(e,t=[],r=Zo.DEFAULT){let n={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(c){n.type==="property"&&(n.length=c-n.offset,n=n.parent)}function s(c){return n.children.push(c),c}tc(e,{onObjectBegin:c=>{n=s({type:"object",offset:c,length:-1,parent:n,children:[]})},onObjectProperty:(c,l,f)=>{n=s({type:"property",offset:l,length:-1,parent:n,children:[]}),n.children.push({type:"string",value:c,offset:l,length:f,parent:n})},onObjectEnd:(c,l)=>{i(c+l),n.length=c+l-n.offset,n=n.parent,i(c+l)},onArrayBegin:(c,l)=>{n=s({type:"array",offset:c,length:-1,parent:n,children:[]})},onArrayEnd:(c,l)=>{n.length=c+l-n.offset,n=n.parent,i(c+l)},onLiteralValue:(c,l,f)=>{s({type:dx(c),offset:l,length:f,parent:n,value:c}),i(l+f)},onSeparator:(c,l,f)=>{n.type==="property"&&(c===":"?n.colonOffset=l:c===","&&i(l))},onError:(c,l,f)=>{t.push({error:c,offset:l,length:f})}},r);let o=n.children[0];return o&&delete o.parent,o}function ec(e,t){if(!e)return;let r=e;for(let n of t)if(typeof n=="string"){if(r.type!=="object"||!Array.isArray(r.children))return;let i=!1;for(let s of r.children)if(Array.isArray(s.children)&&s.children[0].value===n&&s.children.length===2){r=s.children[1],i=!0;break}if(!i)return}else{let i=n;if(r.type!=="array"||i<0||!Array.isArray(r.children)||i>=r.children.length)return;r=r.children[i]}return r}function Vy(e){if(!e.parent||!e.parent.children)return[];let t=Vy(e.parent);if(e.parent.type==="property"){let r=e.parent.children[0].value;t.push(r)}else if(e.parent.type==="array"){let r=e.parent.children.indexOf(e);r!==-1&&t.push(r)}return t}function of(e){switch(e.type){case"array":return e.children.map(of);case"object":let t=Object.create(null);for(let r of e.children){let n=r.children[1];n&&(t[r.children[0].value]=of(n))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function p3(e,t,r=!1){return t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}function $y(e,t,r=!1){if(p3(e,t,r)){let n=e.children;if(Array.isArray(n))for(let i=0;i<n.length&&n[i].offset<=t;i++){let s=$y(n[i],t,r);if(s)return s}return e}}function tc(e,t,r=Zo.DEFAULT){let n=Zi(e,!1),i=[],s=0;function a(V){return V?()=>s===0&&V(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function o(V){return V?I=>s===0&&V(I,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function c(V){return V?I=>s===0&&V(I,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(V){return V?()=>{s>0?s++:V(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice())===!1&&(s=1)}:()=>!0}function f(V){return V?()=>{s>0&&s--,s===0&&V(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}let m=l(t.onObjectBegin),d=c(t.onObjectProperty),g=f(t.onObjectEnd),_=l(t.onArrayBegin),k=f(t.onArrayEnd),b=c(t.onLiteralValue),v=o(t.onSeparator),w=a(t.onComment),T=o(t.onError),y=r&&r.disallowComments,A=r&&r.allowTrailingComma;function O(){for(;;){let V=n.scan();switch(n.getTokenError()){case 4:N(14);break;case 5:N(15);break;case 3:N(13);break;case 1:y||N(11);break;case 2:N(12);break;case 6:N(16);break}switch(V){case 12:case 13:y?N(10):w();break;case 16:N(1);break;case 15:case 14:break;default:return V}}}function N(V,I=[],F=[]){if(T(V),I.length+F.length>0){let U=n.getToken();for(;U!==17;){if(I.indexOf(U)!==-1){O();break}else if(F.indexOf(U)!==-1)break;U=O()}}}function q(V){let I=n.getTokenValue();return V?b(I):(d(I),i.push(I)),O(),!0}function B(){switch(n.getToken()){case 11:let V=n.getTokenValue(),I=Number(V);isNaN(I)&&(N(2),I=0),b(I);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return O(),!0}function M(){return n.getToken()!==10?(N(3,[],[2,5]),!1):(q(!1),n.getToken()===6?(v(":"),O(),$()||N(4,[],[2,5])):N(5,[],[2,5]),i.pop(),!0)}function L(){m(),O();let V=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(V||N(4,[],[]),v(","),O(),n.getToken()===2&&A)break}else V&&N(6,[],[]);M()||N(4,[],[2,5]),V=!0}return g(),n.getToken()!==2?N(7,[2],[]):O(),!0}function C(){_(),O();let V=!0,I=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(I||N(4,[],[]),v(","),O(),n.getToken()===4&&A)break}else I&&N(6,[],[]);V?(i.push(0),V=!1):i[i.length-1]++,$()||N(4,[],[4,5]),I=!0}return k(),V||i.pop(),n.getToken()!==4?N(8,[4],[]):O(),!0}function $(){switch(n.getToken()){case 3:return C();case 1:return L();case 10:return q(!0);default:return B()}}return O(),n.getToken()===17?r.allowEmptyContent?!0:(N(4,[],[]),!1):$()?(n.getToken()!==17&&N(9,[],[]),!0):(N(4,[],[]),!1)}function fx(e,t){let r=Zi(e),n=[],i,s=0,a;do switch(a=r.getPosition(),i=r.scan(),i){case 12:case 13:case 17:s!==a&&n.push(e.substring(s,a)),t!==void 0&&n.push(r.getTokenValue().replace(/[^\r\n]/g,t)),s=r.getPosition();break}while(i!==17);return n.join("")}function dx(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var Zo,Uy=Te(()=>{"use strict";p();sf();(function(e){e.DEFAULT={allowTrailingComma:!1}})(Zo||(Zo={}))});function px(e,t,r,n){let i=t.slice(),a=cf(e,[]),o,c;for(;i.length>0&&(c=i.pop(),o=ec(a,i),o===void 0&&r!==void 0);)typeof c=="string"?r={[c]:r}:r=[r];if(o)if(o.type==="object"&&typeof c=="string"&&Array.isArray(o.children)){let l=ec(o,[c]);if(l!==void 0)if(r===void 0){if(!l.parent)throw new Error("Malformed AST");let f=o.children.indexOf(l.parent),m,d=l.parent.offset+l.parent.length;if(f>0){let g=o.children[f-1];m=g.offset+g.length}else m=o.offset+1,o.children.length>1&&(d=o.children[1].offset);return es(e,{offset:m,length:d-m,content:""},n)}else return es(e,{offset:l.offset,length:l.length,content:JSON.stringify(r)},n);else{if(r===void 0)return[];let f=`${JSON.stringify(c)}: ${JSON.stringify(r)}`,m=n.getInsertionIndex?n.getInsertionIndex(o.children.map(g=>g.children[0].value)):o.children.length,d;if(m>0){let g=o.children[m-1];d={offset:g.offset+g.length,length:0,content:","+f}}else o.children.length===0?d={offset:o.offset+1,length:0,content:f}:d={offset:o.offset+1,length:0,content:f+","};return es(e,d,n)}}else if(o.type==="array"&&typeof c=="number"&&Array.isArray(o.children)){let l=c;if(l===-1){let f=`${JSON.stringify(r)}`,m;if(o.children.length===0)m={offset:o.offset+1,length:0,content:f};else{let d=o.children[o.children.length-1];m={offset:d.offset+d.length,length:0,content:","+f}}return es(e,m,n)}else if(r===void 0&&o.children.length>=0){let f=c,m=o.children[f],d;if(o.children.length===1)d={offset:o.offset+1,length:o.length-2,content:""};else if(o.children.length-1===f){let g=o.children[f-1],_=g.offset+g.length,k=o.offset+o.length;d={offset:_,length:k-2-_,content:""}}else d={offset:m.offset,length:o.children[f+1].offset-m.offset,content:""};return es(e,d,n)}else if(r!==void 0){let f,m=`${JSON.stringify(r)}`;if(!n.isArrayInsertion&&o.children.length>c){let d=o.children[c];f={offset:d.offset,length:d.length,content:m}}else if(o.children.length===0||c===0)f={offset:o.offset+1,length:0,content:o.children.length===0?m:m+","};else{let d=c>o.children.length?o.children.length:c,g=o.children[d-1];f={offset:g.offset+g.length,length:0,content:","+m}}return es(e,f,n)}else throw new Error(`Can not ${r===void 0?"remove":n.isArrayInsertion?"insert":"modify"} Array index ${l} as length is not sufficient`)}else throw new Error(`Can not add ${typeof c!="number"?"index":"property"} to parent of type ${o.type}`);else{if(r===void 0)throw new Error("Can not delete in empty document");return es(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(r)},n)}}function es(e,t,r){if(!r.formattingOptions)return[t];let n=uf(e,t),i=t.offset,s=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!Xo(n,i-1);)i--;for(;s<n.length&&!Xo(n,s);)s++}let a=af(n,{offset:i,length:s-i},{...r.formattingOptions,keepLines:!1});for(let c=a.length-1;c>=0;c--){let l=a[c];n=uf(n,l),i=Math.min(i,l.offset),s=Math.max(s,l.offset+l.length),s+=l.content.length-l.length}let o=e.length-(n.length-s)-i;return[{offset:i,length:o,content:n.substring(i,s)}]}function uf(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}var hx=Te(()=>{"use strict";p();By();Uy()});var pa={};Ey(pa,{ParseErrorCode:()=>zy,ScanError:()=>Hy,SyntaxKind:()=>Wy,applyEdits:()=>T3,createScanner:()=>ar,findNodeAtLocation:()=>_3,findNodeAtOffset:()=>Jy,format:()=>Yy,getLocation:()=>g3,getNodePath:()=>Ky,getNodeValue:()=>Qy,modify:()=>S3,parse:()=>Gy,parseTree:()=>y3,printParseErrorCode:()=>k3,stripComments:()=>b3,visit:()=>v3});function k3(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function Yy(e,t,r){return af(e,t,r)}function S3(e,t,r,n){return px(e,t,r,n)}function T3(e,t){let r=t.slice(0).sort((i,s)=>{let a=i.offset-s.offset;return a===0?i.length-s.length:a}),n=e.length;for(let i=r.length-1;i>=0;i--){let s=r[i];if(s.offset+s.length<=n)e=uf(e,s);else throw new Error("Overlapping edit");n=s.offset}return e}var ar,Hy,Wy,g3,Gy,y3,_3,Jy,Ky,Qy,v3,b3,zy,fn=Te(()=>{"use strict";p();By();hx();sf();Uy();ar=Zi;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Hy||(Hy={}));(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Wy||(Wy={}));g3=ux,Gy=lx,y3=cf,_3=ec,Jy=$y,Ky=Vy,Qy=of,v3=tc,b3=fx;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(zy||(zy={}))});var We=x(ha=>{"use strict";p();Object.defineProperty(ha,"__esModule",{value:!0});ha.parseJSON=A3;ha.nodeAtPath=O3;ha.getLocStart=N3;ha.getLocEnd=P3;var w3=(fn(),Ay(pa)),x3=qe(),E3={disallowComments:!1,allowTrailingComma:!0,allowEmptyContent:!1};function A3(e,t,r){try{let n=[],i=(0,w3.parse)(e,n,E3);if(n.length&&r)throw n[0];return i}catch(n){return t!==void 0?t:(0,x3.asError)(n)}}function O3(e,t){return t.reduce((r,n)=>{if(r)switch(r.type){case"Object":{let i=r.children.find(s=>s.key.value===n);return i?i.value:void 0}case"Array":return r.children[n];case"Literal":return;case"Identifier":return;case"Property":return}},e)}function N3(e){return e.loc?.start.offset??0}function P3(e){return e.loc?.end.offset??0}});var gx=x((ts,mx)=>{p();var rc=Qw(),q3=rc.default||rc,lf=function(e,t){return/^\/\//.test(e)&&(e="https:"+e),q3.call(this,e,t)};lf.ponyfill=!0;mx.exports=ts=lf;ts.fetch=lf;ts.Headers=rc.Headers;ts.Request=rc.Request;ts.Response=rc.Response;ts.default=lf});var Vr=x(rs=>{"use strict";p();Object.defineProperty(rs,"__esModule",{value:!0});rs.doesFileExist=yx;rs.doesFileExceedThreshold=_x;rs.getFileSize=vx;rs.hasRemoteAssetSizeExceededThreshold=C3;rs.hasLocalAssetSizeExceededThreshold=I3;var L3=gx();async function yx(e,t){let r=e.toUri(t);return await e.fileExists(r)}async function _x(e,t,r){let n=e.toUri(t);if(!e.fileSize)return[!1,0];let i=await e.fileSize(n);return[i>r,i]}async function vx(e){try{let t=await(0,L3.fetch)(e,{method:"HEAD"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);let r=t.headers.get("Content-Length");return r===null?0:parseFloat(r)}catch{return 0}}async function C3(e,t){return await vx(e)>t}async function I3(e,t,r){if(!await yx(e,t))return!1;let[i,s]=await _x(e,t,r);return i}});var xx=x(ni=>{"use strict";p();Object.defineProperty(ni,"__esModule",{value:!0});ni.getBlocks=kx;ni.isInvalidPresetBlock=Sx;ni.isInvalidDefaultBlock=R3;ni.validateNestedBlocks=Tx;ni.reportWarning=Zy;ni.validateBlockFileExistence=wx;var Xy=We(),M3=Vr();function kx(e){let t=[],r=[],n={},i=[],s=e.blocks,a=e.presets;function o(f,m){if(!f)return;"name"in f?r.push({node:f,path:["blocks",String(m),"type"]}):f.type!=="@app"&&t.push({node:f,path:["blocks",String(m),"type"]})}function c(f,m,d=0){f&&(n[d]||(n[d]=[]),n[d].push({node:f,path:m.concat("type")}),"blocks"in f&&(Array.isArray(f.blocks)?f.blocks.forEach((g,_)=>{c(g,m.concat("blocks",String(_)),d+1)}):typeof f.blocks=="object"&&f.blocks!==null&&Object.entries(f.blocks).forEach(([g,_])=>{c(_,m.concat("blocks",g),d+1)})))}function l(f,m){"name"in f&&i.push({node:f,path:["default","blocks",String(m),"type"]})}return Array.isArray(s)&&s.forEach((f,m)=>{o(f,m)}),a&&a.forEach((f,m)=>{"blocks"in f&&f.blocks&&(Array.isArray(f.blocks)?f.blocks.forEach((d,g)=>{c(d,["presets",String(m),"blocks",String(g)],0)}):typeof f.blocks=="object"&&Object.entries(f.blocks).forEach(([d,g])=>{c(g,["presets",String(m),"blocks",d],0)}))}),"default"in e&&e.default?.blocks?.forEach((f,m)=>{l(f,m)}),{rootLevelThemeBlocks:t,rootLevelLocalBlocks:r,presetLevelBlocks:n,defaultLevelBlocks:i,hasRootBlocksDeclaration:Array.isArray(s)}}function Sx(e,t,r,n,i=!0){if(t.static)return!n.some(l=>l.type===t.type&&l.id===e);let s=t.type.startsWith("_");if(s&&!i)return!1;let a=r.some(l=>l.node.type==="@theme"),o=s||!a;return!r.some(l=>l.node.type===t.type)&&o}function R3(e,t,r=!0){let n=e.type.startsWith("_");if(n&&!r)return!1;let i=t.some(o=>o.node.type==="@theme"),s=n||!i;return!t.some(o=>o.node.type===e.type)&&s}async function bx(e,t,r,n,i,s,a,o,c=[]){let l=(0,Xy.nodeAtPath)(o,t),f="id"in e?e.id:t.at(-2);if(l){if(Sx(f,e,i,c)){let d=!!e.static,g=e.type.startsWith("_"),_=d?`Could not find a static block of type "${e.type}" with id "${f}" in "blocks/${n.type}.liquid".`:g?`Private block type "${e.type}" is not allowed in "${n.type}" blocks.`:`Block type "${e.type}" is not allowed in "${n.type}" blocks. Allowed types are: ${s.join(", ")}.`;Zy(_,a,l,r)}await wx(e.type,r)||Zy(`Theme block 'blocks/${e.type}.liquid' does not exist.`,a,l,r)}"blocks"in e&&e.blocks&&Tx(r,e,e.blocks,t.slice(0,-1),a,o)}async function Tx(e,t,r,n,i,s){if(!r)return;let a=await e.getBlockSchema?.(t.type);if(!a||a instanceof Error)return;let{validSchema:o,staticBlockDefs:c}=a;if(!o||o instanceof Error)return;let{rootLevelThemeBlocks:l}=kx(o),f=l.map(m=>m.node.type);Array.isArray(r)?Promise.all(r.map((m,d)=>{let g=n.concat(["blocks",String(d),"type"]);return bx(m,g,e,t,l,f,i,s,c)})):typeof r=="object"&&Promise.all(Object.entries(r).map(([m,d])=>{let g=n.concat(["blocks",m,"type"]);return bx(d,g,e,t,l,f,i,s,c)}))}function Zy(e,t,r,n){n.report({message:e,startIndex:t+(0,Xy.getLocStart)(r),endIndex:t+(0,Xy.getLocEnd)(r)})}async function wx(e,t){if(e==="@theme"||e==="@app")return!0;let r=`blocks/${e}.liquid`;return await(0,M3.doesFileExist)(t,r)}});var Qe=x(_t=>{"use strict";p();Object.defineProperty(_t,"__esModule",{value:!0});_t.nonTraversableProperties=_t.LoopNamedTags=_t.LiquidNodeTypes=_t.HtmlNodeTypes=_t.Comparators=_t.RawTags=_t.NamedTags=_t.NodeTypes=void 0;var $r;(function(e){e.Document="Document",e.LiquidRawTag="LiquidRawTag",e.LiquidTag="LiquidTag",e.LiquidBranch="LiquidBranch",e.LiquidVariableOutput="LiquidVariableOutput",e.HtmlSelfClosingElement="HtmlSelfClosingElement",e.HtmlVoidElement="HtmlVoidElement",e.HtmlDoctype="HtmlDoctype",e.HtmlComment="HtmlComment",e.HtmlElement="HtmlElement",e.HtmlDanglingMarkerClose="HtmlDanglingMarkerClose",e.HtmlRawNode="HtmlRawNode",e.AttrSingleQuoted="AttrSingleQuoted",e.AttrDoubleQuoted="AttrDoubleQuoted",e.AttrUnquoted="AttrUnquoted",e.AttrEmpty="AttrEmpty",e.TextNode="TextNode",e.YAMLFrontmatter="YAMLFrontmatter",e.LiquidVariable="LiquidVariable",e.LiquidFilter="LiquidFilter",e.NamedArgument="NamedArgument",e.LiquidLiteral="LiquidLiteral",e.BooleanExpression="BooleanExpression",e.String="String",e.Number="Number",e.Range="Range",e.VariableLookup="VariableLookup",e.Comparison="Comparison",e.LogicalExpression="LogicalExpression",e.AssignMarkup="AssignMarkup",e.BlockMarkup="BlockMarkup",e.ContentForMarkup="ContentForMarkup",e.CycleMarkup="CycleMarkup",e.ForMarkup="ForMarkup",e.PaginateMarkup="PaginateMarkup",e.RawMarkup="RawMarkup",e.RenderMarkup="RenderMarkup",e.SectionMarkup="SectionMarkup",e.RenderVariableExpression="RenderVariableExpression",e.RenderAliasExpression="RenderAliasExpression",e.LiquidDocDescriptionNode="LiquidDocDescriptionNode",e.LiquidDocParamNode="LiquidDocParamNode",e.LiquidDocExampleNode="LiquidDocExampleNode",e.LiquidDocPromptNode="LiquidDocPromptNode",e.LiquidErrorNode="LiquidErrorNode"})($r||(_t.NodeTypes=$r={}));var ff;(function(e){e.assign="assign",e.block="block",e.capture="capture",e.case="case",e.content_for="content_for",e.cycle="cycle",e.decrement="decrement",e.echo="echo",e.elsif="elsif",e.for="for",e.form="form",e.if="if",e.ifchanged="ifchanged",e.include="include",e.increment="increment",e.layout="layout",e.liquid="liquid",e.paginate="paginate",e.partial="partial",e.render="render",e.section="section",e.sections="sections",e.tablerow="tablerow",e.unless="unless",e.when="when"})(ff||(_t.NamedTags=ff={}));var Ex;(function(e){e.comment="comment",e.doc="doc",e.javascript="javascript",e.raw="raw",e.schema="schema",e.style="style",e.stylesheet="stylesheet"})(Ex||(_t.RawTags=Ex={}));var Ax;(function(e){e.CONTAINS="contains",e.EQUAL="==",e.GREATER_THAN=">",e.GREATER_THAN_OR_EQUAL=">=",e.LESS_THAN="<",e.LESS_THAN_OR_EQUAL="<=",e.NOT_EQUAL="!="})(Ax||(_t.Comparators=Ax={}));_t.HtmlNodeTypes=[$r.HtmlElement,$r.HtmlDanglingMarkerClose,$r.HtmlRawNode,$r.HtmlVoidElement,$r.HtmlSelfClosingElement];_t.LiquidNodeTypes=[$r.LiquidTag,$r.LiquidVariableOutput,$r.LiquidBranch,$r.LiquidRawTag];_t.LoopNamedTags=[ff.for,ff.tablerow];_t.nonTraversableProperties=new Set(["parentNode","prev","next","firstChild","lastChild"])});var In=x(ns=>{"use strict";p();Object.defineProperty(ns,"__esModule",{value:!0});ns.assertNever=D3;ns.locStart=j3;ns.locEnd=F3;ns.deepGet=B3;ns.dropLast=V3;function D3(e){throw new Error(`Unexpected object: ${e.type}`)}function j3(e){return e.position.start}function F3(e){return e.position.end}function B3(e,t){return e.reduce((r,n)=>{if(r&&r[n]!==void 0)return r[n]},t)}function V3(e,t){let r=[...t];for(let n=0;n<e;n++)r.pop();return r}});var Yt=x(nc=>{"use strict";p();Object.defineProperty(nc,"__esModule",{value:!0});nc.TokenType=void 0;nc.tokenize=U3;var $3=In(),Ye;(function(e){e.Text="Text",e.LiquidTagOpen="LiquidTagOpen",e.LiquidTagClose="LiquidTagClose",e.LiquidVariableOutputOpen="LiquidVariableOutputOpen",e.LiquidVariableOutputClose="LiquidVariableOutputClose",e.HtmlTagOpen="HtmlTagOpen",e.HtmlCloseTagOpen="HtmlCloseTagOpen",e.HtmlTagClose="HtmlTagClose",e.HtmlSelfClose="HtmlSelfClose",e.HtmlCommentOpen="HtmlCommentOpen",e.HtmlCommentClose="HtmlCommentClose",e.HtmlDoctypeOpen="HtmlDoctypeOpen",e.HtmlEquals="HtmlEquals",e.HtmlQuoteOpen="HtmlQuoteOpen",e.HtmlQuoteClose="HtmlQuoteClose",e.YamlFrontmatter="YamlFrontmatter",e.EndOfInput="EndOfInput"})(Ye||(nc.TokenType=Ye={}));function U3(e,t={}){let r=[],n=[],i=ft.Default,s=0,a=-1,o="";t.insideQuotedAttribute?(o=t.insideQuotedAttribute,n.push(ft.HtmlTag),i=ft.QuotedValue):t.insideHtmlTag&&(i=ft.HtmlTag);function c(b){let v=s+b;return v<e.length?e[v]:""}function l(b){return e.startsWith(b,s)}function f(){a!==-1&&(r.push({type:Ye.Text,start:a,end:s}),a=-1)}function m(b,v){f(),r.push({type:b,start:s,end:s+v}),s+=v}function d(b){n.push(i),i=b}function g(){i=n.length>0?n.pop():ft.Default}function _(){a===-1&&(a=s)}if(!t.skipFrontmatter&&(l(`---
17
+ `)||l(`---\r
18
+ `))){let b=e.indexOf(`
19
+ `,0)+1,v=e.indexOf(`
20
+ ---`,b);if(v!==-1){let w=v+4;w<e.length&&e[w]==="\r"&&w++,w<e.length&&e[w]===`
21
+ `&&w++,r.push({type:Ye.YamlFrontmatter,start:0,end:w}),s=w}}function k(){return l("{{-")?(m(Ye.LiquidVariableOutputOpen,3),d(ft.LiquidVariableOutput),!0):l("{{")?(m(Ye.LiquidVariableOutputOpen,2),d(ft.LiquidVariableOutput),!0):l("{%-")?(m(Ye.LiquidTagOpen,3),d(ft.LiquidTag),!0):l("{%")?(m(Ye.LiquidTagOpen,2),d(ft.LiquidTag),!0):!1}for(;s<e.length;)switch(i){case ft.LiquidTag:{l("-%}")?(m(Ye.LiquidTagClose,3),g()):l("%}")?(m(Ye.LiquidTagClose,2),g()):(_(),s++);break}case ft.LiquidVariableOutput:{l("-}}")?(m(Ye.LiquidVariableOutputClose,3),g()):l("}}")?(m(Ye.LiquidVariableOutputClose,2),g()):(_(),s++);break}case ft.Default:{if(k())continue;if(l("<!--")){m(Ye.HtmlCommentOpen,4);continue}if(l("-->")){m(Ye.HtmlCommentClose,3);continue}if(l("<!")){m(Ye.HtmlDoctypeOpen,2),d(ft.HtmlTag);continue}if(l("</")){let b=c(2);if(/[a-zA-Z]/.test(b)||b==="{"){m(Ye.HtmlCloseTagOpen,2),d(ft.HtmlTag);continue}}if(c(0)==="<"){let b=c(1);if(/[a-zA-Z]/.test(b)||b==="{"){m(Ye.HtmlTagOpen,1),d(ft.HtmlTag);continue}}_(),s++;break}case ft.HtmlTag:{if(k())continue;if(l("/>")){m(Ye.HtmlSelfClose,2),g();continue}if(c(0)===">"){m(Ye.HtmlTagClose,1),g();continue}if(c(0)==="="){m(Ye.HtmlEquals,1);continue}if(c(0)==='"'||c(0)==="'"||c(0)==="\u201C"||c(0)==="\u201D"||c(0)==="\u2018"||c(0)==="\u2019"){o=c(0),m(Ye.HtmlQuoteOpen,1),d(ft.QuotedValue);continue}_(),s++;break}case ft.QuotedValue:{if(k())continue;if(c(0)===H3(o)||c(0)===o){m(Ye.HtmlQuoteClose,1),g();continue}_(),s++;break}default:(0,$3.assertNever)(i)}return f(),r.push({type:Ye.EndOfInput,start:e.length,end:e.length}),r}var ft;(function(e){e.Default="Default",e.HtmlTag="HtmlTag",e.QuotedValue="QuotedValue",e.LiquidTag="LiquidTag",e.LiquidVariableOutput="LiquidVariableOutput"})(ft||(ft={}));function H3(e){switch(e){case"\u201C":return"\u201D";case"\u201D":return"\u201C";case"\u2018":return"\u2019";case"\u2019":return"\u2018";default:return e}}});var Ur=x(ma=>{"use strict";p();var W3=ma&&ma.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ma,"__esModule",{value:!0});ma.LiquidHTMLASTParsingError=void 0;var z3=W3(qy()),e_=class extends SyntaxError{loc;unclosed;constructor(t,r,n,i,s){super(t),this.name="LiquidHTMLParsingError",this.unclosed=s??null;let a=(0,z3.default)(r),o=Math.max(0,r.length-1),c=a.fromIndex(Math.min(Math.max(n,0),o)),l=a.fromIndex(Math.min(Math.max(i,0),o));this.loc={start:{line:c?.line??1,column:c?.col??1},end:{line:l?.line??1,column:l?.col??1}}}};ma.LiquidHTMLASTParsingError=e_});var Ox=x(df=>{"use strict";p();Object.defineProperty(df,"__esModule",{value:!0});df.ParserBase=void 0;var Mn=Yt(),G3=Ur(),t_=class{tokens;source;p;constructor(t,r){this.tokens=t,this.source=r,this.p=0}consume(t){let r=this.tokens[this.p];if(r.type!==t)throw new G3.LiquidHTMLASTParsingError(`Expected ${t} but got ${r.type}`,this.source,r.start,r.end);return this.p++,r}accept(t){return this.tokens[this.p].type===t?this.tokens[this.p++]:null}check(t,r=0){let n=this.p+r;return n<this.tokens.length&&this.tokens[n].type===t}peek(){return this.tokens[this.p]}advance(){return this.tokens[this.p++]}isAtEnd(){return this.tokens[this.p].type===Mn.TokenType.EndOfInput}getSource(){return this.source}isTolerant(){return!1}tokenAt(t){return this.tokens[t]}tokenCount(){return this.tokens.length}getPosition(){return this.p}setPosition(t){this.p=t}seekToSourceOffset(t){let r=0;for(;r<this.tokens.length&&this.tokens[r].start<t;)r++;this.p=r}openQuoteCharBefore(t){let r;for(let n of t)n.type===Mn.TokenType.HtmlQuoteOpen?r=n:n.type===Mn.TokenType.HtmlQuoteClose&&(r=void 0);return r?this.source[r.start]:void 0}insideOpenHtmlTag(t){let r=!1;for(let n of t)n.type===Mn.TokenType.HtmlTagOpen||n.type===Mn.TokenType.HtmlCloseTagOpen||n.type===Mn.TokenType.HtmlDoctypeOpen?r=!0:(n.type===Mn.TokenType.HtmlTagClose||n.type===Mn.TokenType.HtmlSelfClose)&&(r=!1);return r}resliceTokensFrom(t){if(this.tokens.some(i=>i.start<t&&i.end>t)){let i=this.tokens.filter(c=>c.end<=t),s=this.openQuoteCharBefore(i),a=!s&&this.insideOpenHtmlTag(i),o=(0,Mn.tokenize)(this.source.slice(t),{skipFrontmatter:!0,insideQuotedAttribute:s,insideHtmlTag:a}).map(c=>({type:c.type,start:c.start+t,end:c.end+t}));this.tokens=[...i,...o],this.p=i.length;return}let n=0;for(;n<this.tokens.length&&this.tokens[n].start<t;)n++;this.p=n}};df.ParserBase=t_});var Hr=x(ze=>{"use strict";p();Object.defineProperty(ze,"__esModule",{value:!0});ze.makeDocumentNode=J3;ze.envelopeFromTokens=K3;ze.makeLiquidTagBaseCase=Q3;ze.makeLiquidTagNamed=Y3;ze.makeLiquidBranchUnnamed=X3;ze.makeLiquidBranchNamed=Z3;ze.makeLiquidRawTag=eU;ze.makeLiquidVariableOutput=tU;ze.makeTextNode=rU;ze.makeRawMarkup=nU;ze.makeYamlFrontmatter=iU;ze.makeHtmlElement=sU;ze.makeHtmlVoidElement=aU;ze.makeHtmlSelfClosingElement=oU;ze.makeHtmlRawNode=cU;ze.makeHtmlComment=uU;ze.makeHtmlDoctype=lU;ze.makeAttrDoubleQuoted=fU;ze.makeAttrSingleQuoted=dU;ze.makeAttrUnquoted=pU;ze.makeAttrEmpty=hU;ze.makeHtmlDanglingMarkerClose=mU;var st=Qe();function J3(e,t){return{type:st.NodeTypes.Document,children:e,name:"#document",_source:t,position:{start:0,end:t.length},source:t}}function K3(e,t,r){let n=r.slice(e.end,t.start),i=n.trimStart(),s=n.length-i.length,a=i.search(/\s/),o=a===-1?i.trim():i.slice(0,a),l=s+o.length,f=n.slice(l),m=l;for(;m<n.length&&(n[m]===" "||n[m]===" ");)m++;let d=e.end+m,g=e.end-e.start>2?"-":"",_=t.end-t.start>2?"-":"";return{tagName:o,markupString:f,markupOffset:d,markupEnd:t.start,whitespaceStart:g,whitespaceEnd:_,blockStartPosition:{start:e.start,end:t.end},source:r}}function Q3(e,t,r,n,i,s=!1){let a=r?r.end:e.blockStartPosition.end;return{type:st.NodeTypes.LiquidTag,name:e.tagName,markup:s?e.markupString:e.markupString.trim(),children:t,whitespaceStart:e.whitespaceStart,whitespaceEnd:e.whitespaceEnd,delimiterWhitespaceStart:n?.start,delimiterWhitespaceEnd:n?.end,blockStartPosition:e.blockStartPosition,blockEndPosition:r,markupPosition:{start:e.markupOffset,end:e.markupEnd},position:{start:e.blockStartPosition.start,end:a},source:e.source,reason:i}}function Y3(e,t,r,n,i){let s=n?n.end:e.blockStartPosition.end;return{type:st.NodeTypes.LiquidTag,name:e.tagName,markup:t,children:r,whitespaceStart:e.whitespaceStart,whitespaceEnd:e.whitespaceEnd,delimiterWhitespaceStart:i?.start,delimiterWhitespaceEnd:i?.end,blockStartPosition:e.blockStartPosition,blockEndPosition:n,markupPosition:{start:e.markupOffset,end:e.markupEnd},position:{start:e.blockStartPosition.start,end:s},source:e.source}}function X3(e,t){return{type:st.NodeTypes.LiquidBranch,name:null,markup:"",children:[],whitespaceStart:"",whitespaceEnd:"",markupPosition:{start:e,end:e},blockStartPosition:{start:e,end:e},blockEndPosition:{start:-1,end:-1},position:{start:e,end:e},source:t}}function Z3(e,t){return{type:st.NodeTypes.LiquidBranch,name:e.tagName,markup:t,children:[],whitespaceStart:e.whitespaceStart,whitespaceEnd:e.whitespaceEnd,markupPosition:{start:e.markupOffset,end:e.markupEnd},blockStartPosition:e.blockStartPosition,blockEndPosition:{start:-1,end:-1},position:{start:e.blockStartPosition.start,end:e.blockStartPosition.end},source:e.source}}function eU(e,t,r,n){let i=e.markupEnd;for(;i>e.markupOffset&&(e.source[i-1]===" "||e.source[i-1]===" ");)i--;return{type:st.NodeTypes.LiquidRawTag,name:e.tagName,markup:e.markupString.trim(),markupPosition:{start:e.markupOffset,end:i},body:t,whitespaceStart:e.whitespaceStart,whitespaceEnd:e.whitespaceEnd,delimiterWhitespaceStart:n.start,delimiterWhitespaceEnd:n.end,blockStartPosition:e.blockStartPosition,blockEndPosition:r,position:{start:e.blockStartPosition.start,end:r.end},source:e.source}}function tU(e,t,r,n){return{type:st.NodeTypes.LiquidVariableOutput,markup:r,whitespaceStart:e.end-e.start>2?"-":"",whitespaceEnd:t.end-t.start>2?"-":"",markupPosition:{start:e.end,end:t.start},position:{start:e.start,end:t.end},source:n}}function rU(e,t,r,n){return{type:st.NodeTypes.TextNode,value:e,position:{start:t,end:r},source:n}}function nU(e,t,r,n,i,s){return{type:st.NodeTypes.RawMarkup,kind:e,value:t,nodes:r,position:{start:n,end:i},source:s}}function iU(e,t,r,n){return{type:st.NodeTypes.YAMLFrontmatter,body:e,position:{start:t,end:r},source:n}}function sU(e,t,r,n,i,s){return{type:st.NodeTypes.HtmlElement,name:e,attributes:t,children:r,blockStartPosition:n,blockEndPosition:i,position:{start:n.start,end:i.end},source:s}}function aU(e,t,r,n){return{type:st.NodeTypes.HtmlVoidElement,name:e,attributes:t,blockStartPosition:r,position:r,source:n}}function oU(e,t,r,n){return{type:st.NodeTypes.HtmlSelfClosingElement,name:e,attributes:t,blockStartPosition:r,position:r,source:n}}function cU(e,t,r,n,i,s){return{type:st.NodeTypes.HtmlRawNode,name:e,attributes:t,body:r,blockStartPosition:n,blockEndPosition:i,position:{start:n.start,end:i.end},source:s}}function uU(e,t,r,n){return{type:st.NodeTypes.HtmlComment,body:e,position:{start:t,end:r},source:n}}function lU(e,t,r,n){return{type:st.NodeTypes.HtmlDoctype,legacyDoctypeString:e,position:{start:t,end:r},source:n}}function fU(e,t,r,n,i,s){return{type:st.NodeTypes.AttrDoubleQuoted,name:e,value:t,attributePosition:r,position:{start:n,end:i},source:s}}function dU(e,t,r,n,i,s){return{type:st.NodeTypes.AttrSingleQuoted,name:e,value:t,attributePosition:r,position:{start:n,end:i},source:s}}function pU(e,t,r,n,i,s){return{type:st.NodeTypes.AttrUnquoted,name:e,value:t,attributePosition:r,position:{start:n,end:i},source:s}}function hU(e,t,r,n){return{type:st.NodeTypes.AttrEmpty,name:e,position:{start:t,end:r},source:n}}function mU(e,t,r,n){return{type:st.NodeTypes.HtmlDanglingMarkerClose,name:e,blockStartPosition:{start:t,end:r},position:{start:t,end:r},source:n}}});var ga=x(Rn=>{"use strict";p();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ChildFilterMode=void 0;Rn.filterChildren=yU;Rn.mergeAdjacentTextNodes=hf;Rn.mergeAdjacentTextNodesTrimmed=Cx;Rn.mergeAdjacentTextNodesStripEdges=Ix;Rn.compoundNamesMatch=_U;var pf=Qe(),Lx=Hr(),gU=In(),ic;(function(e){e[e.Syntactic=0]="Syntactic",e[e.Preserve=1]="Preserve",e[e.StripEdges=2]="StripEdges"})(ic||(Rn.ChildFilterMode=ic={}));function yU(e,t,r){switch(e){case ic.Syntactic:return Cx(t,r);case ic.Preserve:return hf(t,r);case ic.StripEdges:return Ix(t,r);default:(0,gU.assertNever)(e)}}function is(e){return e.type===pf.NodeTypes.TextNode}function Nx(e){return e.type===pf.NodeTypes.LiquidVariableOutput}function hf(e,t){if(e.length<=1)return e;let r=[],n=-1;for(let i=0;i<=e.length;i++){let s=e[i],a=n!==-1,o=s!==void 0&&is(s);if(o&&!a){n=i;continue}if(!o&&a){let c=i-1;if(n===c)r.push(e[n]);else{let l=e[n],f=e[c];r.push((0,Lx.makeTextNode)(t.slice(l.position.start,f.position.end),l.position.start,f.position.end,t))}n=-1}s!==void 0&&!o&&r.push(s)}return r}function Cx(e,t){let r=hf(e,t);if(r.length===0)return r;let n=[];for(let i=0;i<r.length;i++){let s=r[i];if(!is(s)){n.push(s);continue}let a=s.value,o=s.position.start,c=s.position.end,l=r[i-1];if(!l||!is(l)){let m=a.replace(/^\s+/,""),d=a.length-m.length;a=m,o+=d}let f=r[i+1];if(!f||!is(f)){let m=a.replace(/\s+$/,""),d=a.length-m.length;a=m,c-=d}a.length>0&&n.push((0,Lx.makeTextNode)(a,o,c,t))}return n}function Ix(e,t){let r=hf(e,t),n=0,i=r.length;for(;n<i&&Px(r[n]);)n++;for(;i>n&&Px(r[i-1]);)i--;return n===0&&i===r.length?r:r.slice(n,i)}function Px(e){return is(e)&&/^\s+$/.test(e.value)}function _U(e,t){if(qx(e)&&qx(t))return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n.type!==i.type)return!1;if(is(n)&&is(i)){if(n.value!==i.value)return!1;continue}if(Nx(n)&&Nx(i)){let s=typeof n.markup=="string"?n.markup:n.markup.rawSource,a=typeof i.markup=="string"?i.markup:i.markup.rawSource;if(s!==a)return!1;continue}if(n.type===i.type&&"source"in n&&"source"in i){let s=n.source.slice(n.position.start,n.position.end),a=i.source.slice(i.position.start,i.position.end);if(s!==a)return!1;continue}return!1}return!0}function qx(e){return e.length===1&&(e[0].type===pf.NodeTypes.LiquidTag||e[0].type===pf.NodeTypes.LiquidRawTag)}});var Re=x(mf=>{"use strict";p();Object.defineProperty(mf,"__esModule",{value:!0});mf.TagKind=void 0;var Mx;(function(e){e.Block="block",e.Tag="tag",e.Raw="raw",e.Hybrid="hybrid"})(Mx||(mf.TagKind=Mx={}))});var gf=x(ss=>{"use strict";p();Object.defineProperty(ss,"__esModule",{value:!0});ss.unlessTag=ss.ifTag=void 0;ss.elsifBranchParse=vU;var Rx=Re();function Dx(e,t,r){return t.conditionalExpression()}ss.ifTag={kind:Rx.TagKind.Block,branches:["elsif","else"],parse:Dx};ss.unlessTag={kind:Rx.TagKind.Block,branches:["elsif","else"],parse:Dx};function vU(e,t){return t.conditionalExpression()}});var vt=x(ac=>{"use strict";p();Object.defineProperty(ac,"__esModule",{value:!0});ac.MarkupTokenType=void 0;ac.tokenizeMarkup=SU;var we;(function(e){e.Id="Id",e.String="String",e.Number="Number",e.Dot="Dot",e.DotDot="DotDot",e.Pipe="Pipe",e.Colon="Colon",e.Comma="Comma",e.OpenRound="OpenRound",e.CloseRound="CloseRound",e.OpenSquare="OpenSquare",e.CloseSquare="CloseSquare",e.Dash="Dash",e.Comparison="Comparison",e.Equality="Equality",e.Logical="Logical",e.EndOfString="EndOfString"})(we||(ac.MarkupTokenType=we={}));var sc=/[a-zA-Z_][\w-]*\??/y,ii=/\d[\d_]*(\.\d[\d_]*)?/y,r_=/\s+/y,bU=/'[^']*'/y,kU=/"[^"]*"/y;function SU(e,t=0){let r=[],n=0,i;for(;n<e.length;){if(r_.lastIndex=n,r_.test(e)){n=r_.lastIndex;continue}let s=e[n],a=n+1<e.length?e[n+1]:"";if(s==="'"||s==='"'){let c=s==="'"?bU:kU;if(c.lastIndex=n,c.test(e)){let l=e.slice(n,c.lastIndex);r.push({type:we.String,value:l,start:n+t,end:c.lastIndex+t}),i=we.String,n=c.lastIndex;continue}}if(s==="-"&&/\d/.test(a)&&(ii.lastIndex=n+1,ii.test(e))){let c=e.slice(n,ii.lastIndex);r.push({type:we.Number,value:c,start:n+t,end:ii.lastIndex+t}),i=we.Number,n=ii.lastIndex;continue}if(/\d/.test(s)&&(ii.lastIndex=n,ii.test(e))){let c=ii.lastIndex,l=e.slice(n,c);r.push({type:we.Number,value:l,start:n+t,end:c+t}),i=we.Number,n=c;continue}if(sc.lastIndex=n,sc.test(e)){let c=e.slice(n,sc.lastIndex),l=we.Id;i!==we.Dot&&(c==="contains"?l=we.Comparison:(c==="and"||c==="or")&&(l=we.Logical)),r.push({type:l,value:c,start:n+t,end:sc.lastIndex+t}),i=l,n=sc.lastIndex;continue}if(a!==""){let c=s+a;if(c==="=="||c==="!="){r.push({type:we.Equality,value:c,start:n+t,end:n+2+t}),i=we.Equality,n+=2;continue}if(c===">="||c==="<="){r.push({type:we.Comparison,value:c,start:n+t,end:n+2+t}),i=we.Comparison,n+=2;continue}if(c===".."){r.push({type:we.DotDot,value:"..",start:n+t,end:n+2+t}),i=we.DotDot,n+=2;continue}}let o=TU(s);if(o!==void 0){r.push({type:o,value:s,start:n+t,end:n+1+t}),i=o,n+=1;continue}n+=1}return r.push({type:we.EndOfString,value:"",start:e.length+t,end:e.length+t}),r}function TU(e){switch(e){case".":return we.Dot;case"|":return we.Pipe;case":":return we.Colon;case",":return we.Comma;case"(":return we.OpenRound;case")":return we.CloseRound;case"[":return we.OpenSquare;case"]":return we.CloseSquare;case"-":return we.Dash;case">":return we.Comparison;case"<":return we.Comparison;case"=":return we.Equality;default:return}}});var cc=x(oc=>{"use strict";p();Object.defineProperty(oc,"__esModule",{value:!0});oc.caseTag=void 0;oc.whenBranchParse=EU;var ya=vt(),wU=Re(),xU=Qe();oc.caseTag={kind:wU.TagKind.Block,branches:["when","else"],parse(e,t,r){return t.valueExpression()}};function EU(e,t){let r=[t.valueExpression()];for(;;){if(t.consumeOptional(ya.MarkupTokenType.Comma)){if(t.isLax()&&!t.atValueStart())break;r.push(t.valueExpression());continue}let s=t.peek();if(s.type===ya.MarkupTokenType.Logical&&s.value==="or"){if(t.consume(ya.MarkupTokenType.Logical),t.isLax()&&!t.atValueStart())break;r.push(t.valueExpression());continue}break}let n=t.peek(),i=r[r.length-1];return n.type===ya.MarkupTokenType.Colon&&t.look(ya.MarkupTokenType.EndOfString,1)&&i.type===xU.NodeTypes.String&&i.position.end===n.start&&t.consume(ya.MarkupTokenType.Colon),t.isLax()&&!t.isAtEnd()&&t.discardTrailing(),r}});var Vx=x(_a=>{"use strict";p();Object.defineProperty(_a,"__esModule",{value:!0});_a.tablerowTag=_a.forTag=void 0;var jx=vt(),AU=Qe(),Fx=Re();function Bx(e,t,r){let n=t.consume(jx.MarkupTokenType.Id);if(!t.id("in"))throw new Error("Expected 'in'");let i=t.valueExpression(),s=t.id("reversed"),a=[];for(;!t.isAtEnd();)if(t.consumeOptional(jx.MarkupTokenType.Comma),t.isLax())try{a.push(t.namedArgument())}catch{break}else a.push(t.namedArgument());return{type:AU.NodeTypes.ForMarkup,variableName:n.value,collection:i,reversed:s,args:a,position:{start:n.start,end:t.peek().start},source:i.source}}_a.forTag={kind:Fx.TagKind.Block,branches:["else"],parse:Bx};_a.tablerowTag={kind:Fx.TagKind.Block,branches:["else"],parse:Bx}});var $x=x(yf=>{"use strict";p();Object.defineProperty(yf,"__esModule",{value:!0});yf.assignTag=void 0;var n_=vt(),OU=Qe(),NU=Re();yf.assignTag={kind:NU.TagKind.Tag,parse(e,t,r){let n=t.peek().start,i;if(t.isLax()){let c=t.consumeRawUntil(n_.MarkupTokenType.Equality).match(/[\w\-.[\]()]+/g);if(i=c?c[c.length-1]:"",i.length===0)throw new Error("Expected an assignment target before '=' in assign tag")}else i=t.consume(n_.MarkupTokenType.Id).value;if(t.consume(n_.MarkupTokenType.Equality).value!=="=")throw new Error("Expected '=' in assign tag");let a=t.liquidVariable();return{type:OU.NodeTypes.AssignMarkup,name:i,value:a,position:{start:n,end:t.peek().start},source:a.source}}}});var Ux=x(_f=>{"use strict";p();Object.defineProperty(_f,"__esModule",{value:!0});_f.echoTag=void 0;var PU=Re();_f.echoTag={kind:PU.TagKind.Tag,parse(e,t,r){return t.liquidVariable()}}});var zx=x(va=>{"use strict";p();Object.defineProperty(va,"__esModule",{value:!0});va.includeTag=va.renderTag=void 0;var lc=vt(),uc=Qe(),Hx=Re();function qU(e){return e.look(lc.MarkupTokenType.Id)&&e.look(lc.MarkupTokenType.Colon,1)}function Wx(e,t,r,n=!1){let i=t.valueExpression();if(!n&&i.type!==uc.NodeTypes.String&&i.type!==uc.NodeTypes.VariableLookup)throw new Error(`Expected string or variable lookup for snippet, got ${i.type}`);let s=null,a=null,o=null,c=t.peek().start;if(t.id("for")?o="for":t.id("with")&&(o="with"),o!==null){let d=t.valueExpression();s={type:uc.NodeTypes.RenderVariableExpression,kind:o,name:d,position:{start:c,end:d.position.end},source:d.source}}let l=t.peek().start;if(t.id("as")){let d=t.consume(lc.MarkupTokenType.Id);a={type:uc.NodeTypes.RenderAliasExpression,value:d.value,position:{start:l,end:d.end},source:i.source}}let f=[];for(t.consumeOptional(lc.MarkupTokenType.Comma);qU(t);)f.push(t.namedArgument()),t.consumeOptional(lc.MarkupTokenType.Comma);let m=t.peek().start;return{type:uc.NodeTypes.RenderMarkup,snippet:i,variable:s,alias:a,args:f,position:{start:i.position.start,end:m},source:i.source}}va.renderTag={kind:Hx.TagKind.Tag,parse:Wx};va.includeTag={kind:Hx.TagKind.Tag,parse:(e,t,r)=>Wx(e,t,r,!0)}});var Jx=x(vf=>{"use strict";p();Object.defineProperty(vf,"__esModule",{value:!0});vf.cycleTag=void 0;var Gx=vt(),LU=Qe(),CU=Re();vf.cycleTag={kind:CU.TagKind.Tag,parse(e,t,r){let n=t.valueExpression(),i=null,s=[];for(t.consumeOptional(Gx.MarkupTokenType.Colon)?(i=n,s.push(t.valueExpression())):s.push(n);t.consumeOptional(Gx.MarkupTokenType.Comma)&&!(t.isLax()&&t.isAtEnd());)s.push(t.valueExpression());return{type:LU.NodeTypes.CycleMarkup,groupName:i,args:s,position:{start:n.position.start,end:t.peek().start},source:n.source}}}});var Qx=x(bf=>{"use strict";p();Object.defineProperty(bf,"__esModule",{value:!0});bf.sectionTag=void 0;var IU=vt(),Kx=Qe(),MU=Re();bf.sectionTag={kind:MU.TagKind.Hybrid,parse(e,t,r){let n=t.valueExpression();if(n.type!==Kx.NodeTypes.String)throw new Error(`Expected string for section name, got ${n.type}`);let i=[];return t.consumeOptional(IU.MarkupTokenType.Comma)&&i.push(...t.blockNamedArguments()),{type:Kx.NodeTypes.SectionMarkup,name:n,args:i,position:{start:n.position.start,end:t.peek().start},source:n.source}}}});var Xx=x(kf=>{"use strict";p();Object.defineProperty(kf,"__esModule",{value:!0});kf.contentForTag=void 0;var i_=vt(),Yx=Qe(),RU=Re();kf.contentForTag={kind:RU.TagKind.Tag,parse(e,t,r){let n=t.valueExpression();if(n.type!==Yx.NodeTypes.String)throw new Error(`Expected string for content_for type, got ${n.type}`);let i=[];for(t.consumeOptional(i_.MarkupTokenType.Comma);t.look(i_.MarkupTokenType.Id);){try{i.push(t.namedArgument())}catch{break}t.consumeOptional(i_.MarkupTokenType.Comma)}return{type:Yx.NodeTypes.ContentForMarkup,contentForType:n,args:i,position:{start:n.position.start,end:t.peek().start},source:n.source}}}});var eE=x(Sf=>{"use strict";p();Object.defineProperty(Sf,"__esModule",{value:!0});Sf.blockTag=void 0;var DU=vt(),Zx=Qe(),jU=Re(),FU=/^_?[a-zA-Z0-9][\w-]*$/;Sf.blockTag={kind:jU.TagKind.Block,branches:[],parse(e,t,r){if(t.isAtEnd())throw new Error("in 'block' - missing block type");let n=t.valueExpression();if(n.type!==Zx.NodeTypes.String)throw new Error("in 'block' - file name must be a string literal");if(!FU.test(n.value))throw new Error(`in 'block' - '${n.value}' is not a valid block type`);let i=[];if(t.consumeOptional(DU.MarkupTokenType.Comma)&&!t.isAtEnd()&&(i=t.blockNamedArguments()),!t.isAtEnd()){let s=t.peek();throw new Error(`Unexpected token in 'block' tag: ${s.value}`)}return{type:Zx.NodeTypes.BlockMarkup,name:n,args:i,position:{start:n.position.start,end:t.peek().start},source:n.source}}}});var rE=x(Tf=>{"use strict";p();Object.defineProperty(Tf,"__esModule",{value:!0});Tf.paginateTag=void 0;var tE=vt(),BU=Qe(),VU=Re();Tf.paginateTag={kind:VU.TagKind.Block,branches:[],parse(e,t,r){let n=t.valueExpression();if(!t.id("by"))throw new Error("Expected 'by' in paginate tag");let i=t.valueExpression(),s=[];return t.consumeOptional(tE.MarkupTokenType.Comma)?s.push(...t.namedArguments()):t.isTolerant()&&t.peek().type===tE.MarkupTokenType.Id&&s.push(...t.namedArguments()),{type:BU.NodeTypes.PaginateMarkup,collection:n,pageSize:i,args:s,position:{start:n.position.start,end:t.peek().start},source:n.source}}}});var nE=x(wf=>{"use strict";p();Object.defineProperty(wf,"__esModule",{value:!0});wf.formTag=void 0;var $U=Re();wf.formTag={kind:$U.TagKind.Block,branches:[],parse(e,t,r){return t.arguments()}}});var iE=x(xf=>{"use strict";p();Object.defineProperty(xf,"__esModule",{value:!0});xf.incrementTag=void 0;var UU=Re();xf.incrementTag={kind:UU.TagKind.Tag,parse(e,t,r){return t.variableLookup()}}});var sE=x(Ef=>{"use strict";p();Object.defineProperty(Ef,"__esModule",{value:!0});Ef.decrementTag=void 0;var HU=Re();Ef.decrementTag={kind:HU.TagKind.Tag,parse(e,t,r){return t.variableLookup()}}});var aE=x(Af=>{"use strict";p();Object.defineProperty(Af,"__esModule",{value:!0});Af.captureTag=void 0;var WU=Qe(),zU=Re(),GU=/((?:\(?[\w\-.[\]]\)?)+)/;Af.captureTag={kind:zU.TagKind.Block,branches:[],parse(e,t,r){if(t.isLax()){let{source:n,bodyStart:i,bodyEnd:s}=t.bodyContext(),a=GU.exec(n.slice(i,s));if(a)return{type:WU.NodeTypes.VariableLookup,name:a[1],lookups:[],position:{start:i,end:s},source:n}}return t.variableLookup()}}});var oE=x(Of=>{"use strict";p();Object.defineProperty(Of,"__esModule",{value:!0});Of.layoutTag=void 0;var JU=Re();Of.layoutTag={kind:JU.TagKind.Tag,parse(e,t,r){return t.valueExpression()}}});var cE=x(Nf=>{"use strict";p();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.sectionsTag=void 0;var KU=Qe(),QU=Re();Nf.sectionsTag={kind:QU.TagKind.Tag,parse(e,t,r){let n=t.valueExpression();if(n.type!==KU.NodeTypes.String)throw new Error(`Expected string for sections name, got ${n.type}`);return n}}});var uE=x(Pf=>{"use strict";p();Object.defineProperty(Pf,"__esModule",{value:!0});Pf.partialTag=void 0;var YU=Qe(),XU=Re();Pf.partialTag={kind:XU.TagKind.Block,branches:[],parse(e,t,r){let n=t.valueExpression();if(n.type!==YU.NodeTypes.String)throw new Error(`Expected string for partial name, got ${n.type}`);return n}}});var lE=x(qf=>{"use strict";p();Object.defineProperty(qf,"__esModule",{value:!0});qf.ifchangedTag=void 0;var ZU=Re();qf.ifchangedTag={kind:ZU.TagKind.Block,branches:[],parse(e,t,r){return null}}});var fE=x(Lf=>{"use strict";p();Object.defineProperty(Lf,"__esModule",{value:!0});Lf.breakTag=void 0;var e7=Re();Lf.breakTag={kind:e7.TagKind.Tag,parse(e,t,r){if(!t.isAtEnd())throw new Error(`'${e}' tag does not accept markup`);return""}}});var dE=x(Cf=>{"use strict";p();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.continueTag=void 0;var t7=Re();Cf.continueTag={kind:t7.TagKind.Tag,parse(e,t,r){if(!t.isAtEnd())throw new Error(`'${e}' tag does not accept markup`);return""}}});var pE=x(Ft=>{"use strict";p();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.stylesheetRaw=Ft.styleRaw=Ft.schemaRaw=Ft.javascriptRaw=Ft.rawRaw=Ft.docRaw=Ft.commentRaw=void 0;var as=Re();function os(e,t,r){if(!t.isAtEnd())throw new Error(`'${e}' tag does not accept markup`)}Ft.commentRaw={kind:as.TagKind.Raw,parseLiquidInBody:!1,parse:os};Ft.docRaw={kind:as.TagKind.Raw,parse:os};Ft.rawRaw={kind:as.TagKind.Raw,parseLiquidInBody:!1,parse:os};Ft.javascriptRaw={kind:as.TagKind.Raw,parseLiquidInBody:!0,parse:os};Ft.schemaRaw={kind:as.TagKind.Raw,parseLiquidInBody:!1,parse:os};Ft.styleRaw={kind:as.TagKind.Raw,parseLiquidInBody:!0,parse:os};Ft.stylesheetRaw={kind:as.TagKind.Raw,parseLiquidInBody:!0,parse:os}});var hE=x(If=>{"use strict";p();Object.defineProperty(If,"__esModule",{value:!0});If.liquidTag=void 0;var r7=Re();function n7(e,t){return e.endsWith(",")?/^\w+\s*:/.test(t):!1}function i7(e,t){let r=[],n=e.split(`
22
+ `),i=[],s=0;for(let a=0;a<n.length;a++){let o=n[a],c=t+s,l=o.trimStart();if(l.length>0&&i.length>0){let f=i[i.length-1],m=f.raw.trimEnd();if(n7(m,l)){f.raw+=`
23
+ `+o,s+=o.length+1;continue}}i.push({raw:o,startIndex:c}),s+=o.length+1}for(let{raw:a,startIndex:o}of i){let c=a.trimStart(),l=a.length-c.length,f=a.lastIndexOf(`
24
+ `),m=f===-1?a:a.slice(f+1),d=f===-1?o+a.trimEnd().length:o+f+1+m.trimEnd().length;if(c.length>0){let g,_,k,b,v=c.indexOf(`
25
+ `),w=v===-1?c:c.slice(0,v);if(w.startsWith("#"))g="#",_=c.slice(1).replace(/^[ \t]/,""),b=o+l,k=o+l+1+(c.length-1-_.length);else{let T=w.search(/\s/);if(T===-1)g=w,_="",b=o+l,k=o+l+w.length;else{g=w.slice(0,T);let y=c.slice(T);_=y.trimStart(),b=o+l,k=o+l+T+(y.length-_.length)}}r.push({tagName:g,markup:_,markupOffset:k,nameOffset:b,lineEnd:d})}}return r}If.liquidTag={kind:r7.TagKind.Tag,parse(e,t,r){let{source:n,bodyStart:i,bodyEnd:s}=t.bodyContext(),a=n.slice(i,s),c={lines:i7(a,i),index:0},l=[];for(;c.index<c.lines.length;){let f=c.lines[c.index];c.index++,l.push(r.parseLiquidStatement(f.tagName,f.markup,f.markupOffset,c))}return l}}});var Rf=x(Mf=>{"use strict";p();Object.defineProperty(Mf,"__esModule",{value:!0});Mf.builtinTags=void 0;var mE=gf(),s7=cc(),gE=Vx(),a7=$x(),o7=Ux(),yE=zx(),c7=Jx(),u7=Qx(),l7=Xx(),f7=eE(),d7=rE(),p7=nE(),h7=iE(),m7=sE(),g7=aE(),y7=oE(),_7=cE(),v7=uE(),b7=lE(),k7=fE(),S7=dE(),cs=pE(),T7=hE();Mf.builtinTags={assign:a7.assignTag,block:f7.blockTag,break:k7.breakTag,capture:g7.captureTag,case:s7.caseTag,content_for:l7.contentForTag,continue:S7.continueTag,cycle:c7.cycleTag,decrement:m7.decrementTag,echo:o7.echoTag,for:gE.forTag,form:p7.formTag,if:mE.ifTag,ifchanged:b7.ifchangedTag,include:yE.includeTag,increment:h7.incrementTag,layout:y7.layoutTag,liquid:T7.liquidTag,paginate:d7.paginateTag,partial:v7.partialTag,render:yE.renderTag,section:u7.sectionTag,sections:_7.sectionsTag,tablerow:gE.tablerowTag,unless:mE.unlessTag,comment:cs.commentRaw,doc:cs.docRaw,javascript:cs.javascriptRaw,raw:cs.rawRaw,schema:cs.schemaRaw,style:cs.styleRaw,stylesheet:cs.stylesheetRaw}});var ka=x(ba=>{"use strict";p();Object.defineProperty(ba,"__esModule",{value:!0});ba.Environment=ba.TagKind=void 0;var w7=Re();Object.defineProperty(ba,"TagKind",{enumerable:!0,get:function(){return w7.TagKind}});var x7=Rf(),s_=class e{builtins;custom;static _default;constructor(t={}){this.builtins=t,this.custom=new Map}tagForName(t){return this.custom.get(t)??this.builtins[t]}registerTag(t,r){this.custom.set(t,r)}static default(){return e._default||(e._default=new e(x7.builtinTags)),e._default}static resetDefault(){e._default=void 0}};ba.Environment=s_});var vE=x(xt=>{"use strict";p();Object.defineProperty(xt,"__esModule",{value:!0});xt.COMPARISON_OPERATORS=xt.EQUALITY_OPERATORS=xt.LOGICAL_OPERATORS=xt.ComparisonOperator=xt.EqualityOperator=xt.LogicalOperator=void 0;xt.isBinaryExpression=a_;xt.adaptConditional=Df;xt.adaptComplex=O7;var Wr=Qe(),_E=In(),fc;(function(e){e.And="and",e.Or="or"})(fc||(xt.LogicalOperator=fc={}));var dc;(function(e){e.Equal="==",e.NotEqual="!="})(dc||(xt.EqualityOperator=dc={}));var si;(function(e){e.LessThan="<",e.GreaterThan=">",e.LessThanOrEqual="<=",e.GreaterThanOrEqual=">=",e.Contains="contains"})(si||(xt.ComparisonOperator=si={}));xt.LOGICAL_OPERATORS=new Set(Object.values(fc));xt.EQUALITY_OPERATORS=new Set(Object.values(dc));xt.COMPARISON_OPERATORS=new Set(Object.values(si));function a_(e){return"kind"in e}function E7(e){switch(e){case fc.And:return"and";case fc.Or:return"or";default:return(0,_E.assertNever)(e)}}function A7(e){switch(e){case dc.Equal:return Wr.Comparators.EQUAL;case dc.NotEqual:return Wr.Comparators.NOT_EQUAL;case si.LessThan:return Wr.Comparators.LESS_THAN;case si.GreaterThan:return Wr.Comparators.GREATER_THAN;case si.LessThanOrEqual:return Wr.Comparators.LESS_THAN_OR_EQUAL;case si.GreaterThanOrEqual:return Wr.Comparators.GREATER_THAN_OR_EQUAL;case si.Contains:return Wr.Comparators.CONTAINS;default:return e}}function Df(e){if(!a_(e))return e;switch(e.kind){case"logical":{let t=Df(e.right);return t.type===Wr.NodeTypes.LogicalExpression&&(t.position={...t.position,start:e.opStart}),{type:Wr.NodeTypes.LogicalExpression,relation:E7(e.op),left:Df(e.left),right:t,position:e.position,source:e.source}}case"comparison":return{type:Wr.NodeTypes.Comparison,comparator:A7(e.op),left:e.left,right:e.right,position:e.position,source:e.source};default:return(0,_E.assertNever)(e)}}function O7(e){return a_(e)?{type:Wr.NodeTypes.BooleanExpression,condition:Df(e),position:e.position,source:e.source}:e}});var oi=x(jf=>{"use strict";p();Object.defineProperty(jf,"__esModule",{value:!0});jf.MarkupParser=void 0;var ai=Ur(),bE=Sa(),pc=vE(),at=Qe(),H=vt(),c_=class e{static WORD_SEGMENT_RE=/[\w-]+\??/y;tokens;source;p;markupStart;markupEnd;lax;tolerant;inCondition;constructor(t,r,n,i){this.tokens=t,this.source=r,this.p=0,this.markupStart=n??t[0]?.start??0,this.markupEnd=i??this.computeLastTokenEnd(),this.lax=!1,this.tolerant=!1,this.inCondition=!1}enableLax(){return this.lax=!0,this}isLax(){return this.lax}enableTolerant(){return this.tolerant=!0,this}isTolerant(){return this.tolerant}consumeRawUntil(t){let r=this.peek().start,n=r;for(;!this.isAtEnd()&&this.peek().type!==t;)n=this.peek().end,this.p+=1;return this.source.slice(r,n).trim()}discardRemaining(){for(;!this.isAtEnd();)this.p+=1}discardTrailing(){this.lax&&this.discardRemaining()}atValueStart(){switch(this.peek().type){case H.MarkupTokenType.String:case H.MarkupTokenType.Number:case H.MarkupTokenType.Id:case H.MarkupTokenType.OpenSquare:case H.MarkupTokenType.OpenRound:return!0;case H.MarkupTokenType.Dash:return this.lax;default:return!1}}atArgumentStart(){switch(this.peek().type){case H.MarkupTokenType.String:case H.MarkupTokenType.Number:case H.MarkupTokenType.Id:case H.MarkupTokenType.OpenSquare:case H.MarkupTokenType.OpenRound:return!0;default:return!1}}openSquareContinuesLookup(t,r){return this.lax?!/\S/.test(this.source.slice(t,r.start)):!0}skipToNextPipe(){for(;!this.isAtEnd()&&!this.look(H.MarkupTokenType.Pipe);)this.p+=1}consume(t){let r=this.tokens[this.p];if(r.type!==t)throw new ai.LiquidHTMLASTParsingError(`Expected ${t} but found ${r.type} (${r.value})`,this.source,r.start,r.end);return this.p+=1,r}consumeOptional(t){let r=this.tokens[this.p];return r.type!==t?null:(this.p+=1,r)}look(t,r=0){let n=this.p+r;return n<0||n>=this.tokens.length?!1:this.tokens[n].type===t}peek(){return this.tokens[this.p]}id(t){let r=this.tokens[this.p];return r.type!==H.MarkupTokenType.Id||r.value!==t?!1:(this.p+=1,!0)}isAtEnd(){return this.tokens[this.p].type===H.MarkupTokenType.EndOfString}eosStart(){return this.tokens[this.tokens.length-1].start}bodyContext(){for(;!this.isAtEnd();)this.p++;return{source:this.source,bodyStart:this.markupStart,bodyEnd:this.markupEnd}}remainingSource(){let t=this.tokens[this.p];if(t.type===H.MarkupTokenType.EndOfString)return"";let r=this.tokens[this.tokens.length-1];return this.source.slice(t.start,r.start).trim()}valueExpression(){let t=this.peek();switch(t.type){case H.MarkupTokenType.String:return this.p+=1,{type:at.NodeTypes.String,single:t.value[0]==="'",value:t.value.slice(1,-1),position:{start:t.start,end:t.end},source:this.source};case H.MarkupTokenType.Number:{if(this.lax){let r=this.tokens[this.p+1];if(r&&r.type===H.MarkupTokenType.Id&&r.start===t.end)return this.p+=2,{type:at.NodeTypes.VariableLookup,name:this.source.slice(t.start,r.end),lookups:[],position:{start:t.start,end:r.end},source:this.source};if(this.laxLookupSeparatorFollows(t.end))return this.variableLookup()}return this.p+=1,{type:at.NodeTypes.Number,value:t.value,position:{start:t.start,end:t.end},source:this.source}}case H.MarkupTokenType.Id:{let r=this.tokens[this.p+1],n=r?.type===H.MarkupTokenType.OpenSquare&&this.openSquareContinuesLookup(t.end,r);return P7(t.value)&&!this.look(H.MarkupTokenType.Dot,1)&&!n&&!(this.lax&&this.laxLookupSeparatorFollows(t.end))?(this.p+=1,{type:at.NodeTypes.LiquidLiteral,keyword:t.value,value:bE.LiquidLiteralValues[t.value],position:{start:t.start,end:t.end},source:this.source}):this.variableLookup()}case H.MarkupTokenType.OpenSquare:return this.variableLookup();case H.MarkupTokenType.Dot:if(this.lax){let r=this.tokens[this.p+1];if(r&&r.type===H.MarkupTokenType.Number&&r.start===t.end){let n=r.value.split(".")[0],i=r.end,s=2;if(!r.value.includes(".")){let a=this.tokens[this.p+s];for(;a&&a.start===i&&!a.value.includes(".")&&(a.type===H.MarkupTokenType.Id||a.type===H.MarkupTokenType.Dash||a.type===H.MarkupTokenType.Number);)n+=a.value,i=a.end,s+=1,a=this.tokens[this.p+s]}return this.p+=s,{type:at.NodeTypes.VariableLookup,name:n,lookups:[],position:{start:t.start,end:i},source:this.source}}}throw new ai.LiquidHTMLASTParsingError(`Expected expression but found ${t.type} (${t.value})`,this.source,t.start,t.end);case H.MarkupTokenType.OpenRound:{let r=this.consume(H.MarkupTokenType.OpenRound);if(this.lax&&!this.parenContainsRange()){let o=this.consumeRawUntil(H.MarkupTokenType.CloseRound);return this.consumeOptional(H.MarkupTokenType.CloseRound),this.discardRemaining(),{type:at.NodeTypes.VariableLookup,name:o,lookups:[],position:{start:r.start,end:this.eosStart()},source:this.source}}let n=this.valueExpression();if(this.consume(H.MarkupTokenType.DotDot),this.lax)for(;this.look(H.MarkupTokenType.Dot)||this.look(H.MarkupTokenType.DotDot);)this.p+=1;let i=this.valueExpression(),s=this.lax?this.consumeOptional(H.MarkupTokenType.CloseRound):this.consume(H.MarkupTokenType.CloseRound),a=s?s.end:i.position.end;return{type:at.NodeTypes.Range,start:n,end:i,position:{start:r.start,end:a},source:this.source}}case H.MarkupTokenType.Dash:if(this.lax)return this.p+=1,{type:at.NodeTypes.VariableLookup,name:"-",lookups:[],position:{start:t.start,end:t.end},source:this.source};throw new ai.LiquidHTMLASTParsingError(`Expected expression but found ${t.type} (${t.value})`,this.source,t.start,t.end);default:throw new ai.LiquidHTMLASTParsingError(`Expected expression but found ${t.type} (${t.value})`,this.source,t.start,t.end)}}parenContainsRange(){let t=0;for(let r=this.p;r<this.tokens.length;r++){let n=this.tokens[r];if(n.type===H.MarkupTokenType.EndOfString)break;if(n.type===H.MarkupTokenType.OpenRound)t+=1;else if(n.type===H.MarkupTokenType.CloseRound){if(t===0)break;t-=1}else if(n.type===H.MarkupTokenType.DotDot&&t===0)return!0}return!1}variableLookup(){let t,r,n=this.peek();if(n.type===H.MarkupTokenType.Id){let c=this.consume(H.MarkupTokenType.Id);t=c.value,r=c.start}else if(n.type===H.MarkupTokenType.OpenSquare)t=null,r=n.start;else if(this.lax&&n.type===H.MarkupTokenType.Number&&this.laxLookupSeparatorFollows(n.end))this.p+=1,t=n.value,r=n.start;else throw new ai.LiquidHTMLASTParsingError(`Expected identifier or [ but found ${n.type} (${n.value})`,this.source,n.start,n.end);let i=[],s=[],a=t!==null?this.tokens[this.p-1].end:r,o=null;for(;!this.isAtEnd();)if(this.consumeOptional(H.MarkupTokenType.Dot)){let c=this.consume(H.MarkupTokenType.Id);i.push({type:at.NodeTypes.String,value:c.value,position:{start:c.start,end:c.end},source:this.source}),s.push("bareword"),a=c.end}else if(this.look(H.MarkupTokenType.OpenSquare)&&this.openSquareContinuesLookup(a,this.peek())){this.consume(H.MarkupTokenType.OpenSquare);let c=this.valueExpression(),l=this.lax?this.consumeOptional(H.MarkupTokenType.CloseSquare):this.consume(H.MarkupTokenType.CloseSquare);if(i.push(c),s.push("subscript"),a=l?l.end:c.position.end,this.lax&&!l&&!this.look(H.MarkupTokenType.Dot)&&!this.look(H.MarkupTokenType.OpenSquare))break}else if(this.lax&&!this.inCondition&&(o=this.tryConsumeLaxLookupSeparator(a)))i.push({type:at.NodeTypes.String,value:o.value,position:{start:o.start,end:o.end},source:this.source}),s.push("bareword"),a=o.end;else break;if(this.lax&&t===null&&i.length===1&&i[0].type===at.NodeTypes.VariableLookup&&i[0].name===null&&i[0].lookups.length===1){let c=i[0].lookupModes?.[0];return{type:at.NodeTypes.VariableLookup,name:null,lookups:[i[0].lookups[0]],lookupModes:c?[c]:["subscript"],position:{start:r,end:a},source:this.source}}return{type:at.NodeTypes.VariableLookup,name:t,lookups:i,lookupModes:s,position:{start:r,end:a},source:this.source}}tryConsumeLaxLookupSeparator(t){let r=this.p,n=t;for(;r<this.tokens.length;){let c=this.tokens[r];if(c.type===H.MarkupTokenType.EndOfString||c.start!==n)return null;if(!((c.type===H.MarkupTokenType.Equality||c.type===H.MarkupTokenType.Comparison)&&/^[=<>!]+$/.test(c.value)))break;n=c.end,r+=1}if(r===this.p)return null;e.WORD_SEGMENT_RE.lastIndex=n;let i=e.WORD_SEGMENT_RE.exec(this.source);if(!i||i.index!==n)return null;let s=i[0],a=n+s.length,o=r;for(;o<this.tokens.length&&this.tokens[o].type!==H.MarkupTokenType.EndOfString&&this.tokens[o].start>=n&&this.tokens[o].end<=a;)o+=1;return this.p=o,{value:s,start:n,end:a}}laxLookupSeparatorFollows(t){let r=this.p+1,n=r,i=t;for(;n<this.tokens.length;){let a=this.tokens[n];if(a.type===H.MarkupTokenType.EndOfString||a.start!==i||!((a.type===H.MarkupTokenType.Equality||a.type===H.MarkupTokenType.Comparison)&&/^[=<>!]+$/.test(a.value)))break;i=a.end,n+=1}if(n===r)return!1;if(!this.inCondition)return!0;e.WORD_SEGMENT_RE.lastIndex=i;let s=e.WORD_SEGMENT_RE.exec(this.source);return!!s&&s.index===i}comparison(){this.lax&&this.inCondition&&this.skipLaxConditionParens();let t=this.valueExpression(),r=this.peek();if(this.lax&&this.inCondition&&r.type!==H.MarkupTokenType.Logical){let i=this.laxConditionOperatorRun(t.position.end);if(i&&!o_(i.value))return this.unknownOperatorComparison(t,i);if(i&&o_(i.value)&&r.type!==H.MarkupTokenType.Comparison&&r.type!==H.MarkupTokenType.Equality)return this.mergedOperatorComparison(t,i)}if(r.type!==H.MarkupTokenType.Comparison&&r.type!==H.MarkupTokenType.Equality)return this.lax&&this.consumeOptional(H.MarkupTokenType.CloseRound),t;if(!o_(r.value)){if(this.lax)return t;throw new ai.LiquidHTMLASTParsingError(`Unknown operator ${r.value}`,this.source,r.start,r.end)}if(this.p+=1,this.lax&&!this.atValueStart())return t;let n=this.valueExpression();return this.lax&&this.consumeOptional(H.MarkupTokenType.CloseRound),{kind:"comparison",left:t,op:r.value,right:n,position:{start:t.position.start,end:n.position.end},source:this.source}}laxConditionOperatorRun(t){let r=t;for(;r<this.markupEnd&&/\s/.test(this.source[r]);)r+=1;let n=/^[=!<>a-z_]+/.exec(this.source.slice(r,this.markupEnd));return n?{value:n[0],start:r,end:r+n[0].length}:null}unknownOperatorComparison(t,r){for(;this.peek().type!==H.MarkupTokenType.EndOfString&&this.peek().start<r.end;)this.p+=1;let n=t;if(this.atValueStart()){let i=this.p;try{n=this.valueExpression()}catch{for(this.p=i;this.peek().type!==H.MarkupTokenType.EndOfString&&this.peek().type!==H.MarkupTokenType.Logical;)this.p+=1;n=t}}return this.consumeOptional(H.MarkupTokenType.CloseRound),{kind:"comparison",left:t,op:r.value,right:n,position:{start:t.position.start,end:n.position.end},source:this.source}}mergedOperatorComparison(t,r){for(;this.peek().type!==H.MarkupTokenType.EndOfString&&this.peek().start<r.end;)this.p+=1;let n=this.source.slice(r.end,this.markupEnd),i=new e((0,H.tokenizeMarkup)(n,r.end),this.source,r.end,this.markupEnd).enableLax(),s={type:at.NodeTypes.VariableLookup,name:null,lookups:[],position:{start:r.end,end:r.end},source:this.source};for(i.atValueStart()&&(s=i.valueExpression());this.peek().type!==H.MarkupTokenType.EndOfString&&this.peek().start<s.position.end;)this.p+=1;return this.consumeOptional(H.MarkupTokenType.CloseRound),{kind:"comparison",left:t,op:r.value,right:s,position:{start:t.position.start,end:s.position.end},source:this.source}}skipLaxConditionParens(){for(;this.look(H.MarkupTokenType.OpenRound)&&!this.parenAtCursorContainsRange();)this.p+=1}parenAtCursorContainsRange(){let t=0;for(let r=this.p;r<this.tokens.length;r++){let n=this.tokens[r];if(n.type===H.MarkupTokenType.EndOfString)break;if(n.type===H.MarkupTokenType.OpenRound)t+=1;else if(n.type===H.MarkupTokenType.CloseRound){if(t-=1,t===0)break}else if(n.type===H.MarkupTokenType.DotDot&&t===1)return!0}return!1}logicalExpr(){let t=this.comparison(),r=this.peek();if(r.type!==H.MarkupTokenType.Logical)return t;if(!N7(r.value)){if(this.lax)return t;throw new ai.LiquidHTMLASTParsingError(`Unknown logical operator: ${r.value}`,this.source,r.start,r.end)}let n=r.start;this.p+=1;let i=this.logicalExpr();return{kind:"logical",left:t,op:r.value,right:i,opStart:n,position:{start:t.position.start,end:i.position.end},source:this.source}}conditionalExpression(){let t=this.inCondition;this.inCondition=!0;let r;try{r=(0,pc.adaptConditional)(this.logicalExpr())}finally{this.inCondition=t}return this.lax&&this.discardRemaining(),r.type===at.NodeTypes.LogicalExpression&&kE(r,this.eosStart()),r}expression(){return(0,pc.adaptComplex)(this.logicalExpr())}liquidVariable(){let t=this.expression(),r=this.filters(t.position.end);this.lax&&this.discardRemaining();let n=r.length>0?r[r.length-1].position.end:t.position.end,i=t.position.start,a=this.tokens[this.tokens.length-1].start;return{type:at.NodeTypes.LiquidVariable,expression:t,filters:r,rawSource:this.source.slice(i,n),position:{start:i,end:a},source:this.source}}filters(t=0){let r=[];for(;this.consumeOptional(H.MarkupTokenType.Pipe);){if((this.lax||this.tolerant)&&!this.look(H.MarkupTokenType.Id)){this.skipToNextPipe();continue}let n=this.filter(t);r.push(n),t=n.position.end,this.lax&&!this.isAtEnd()&&!this.look(H.MarkupTokenType.Pipe)&&this.skipToNextPipe()}return r}filter(t){let r=this.consume(H.MarkupTokenType.Id),n=[],i=r.end;return this.consumeOptional(H.MarkupTokenType.Colon)&&((!(this.lax||this.tolerant)||this.atArgumentStart())&&(n=this.arguments()),n.length>0&&(i=n[n.length-1].position.end)),{type:at.NodeTypes.LiquidFilter,name:r.value,args:n,position:{start:t,end:i},source:this.source}}argument(){return this.look(H.MarkupTokenType.Id)&&this.lookaheadForNamedArgument()?this.namedArgument():this.valueExpression()}lookaheadForNamedArgument(){let t=1;for(;this.look(H.MarkupTokenType.Dot,t)&&this.look(H.MarkupTokenType.Id,t+1);)t+=2;return this.look(H.MarkupTokenType.Colon,t)}namedArgument(){let t=this.consume(H.MarkupTokenType.Id),r=t.value;for(;this.consumeOptional(H.MarkupTokenType.Dot);){let i=this.consume(H.MarkupTokenType.Id);r+="."+i.value}this.consume(H.MarkupTokenType.Colon);let n=this.valueExpression();return{type:at.NodeTypes.NamedArgument,name:r,value:n,position:{start:t.start,end:n.position.end},source:this.source}}arguments(){let t=[];for(t.push(this.argument());this.consumeOptional(H.MarkupTokenType.Comma)&&!((this.lax||this.tolerant)&&!this.atArgumentStart());)t.push(this.argument());return t}namedArguments(){let t=[];for(t.push(this.namedArgument());this.consumeOptional(H.MarkupTokenType.Comma)&&this.look(H.MarkupTokenType.Id);)t.push(this.namedArgument());return t}blockNamedArguments(){let t=[];for(this.pushBlockNamedArgument(t);this.consumeOptional(H.MarkupTokenType.Comma)&&this.look(H.MarkupTokenType.Id);)this.pushBlockNamedArgument(t);return t}pushBlockNamedArgument(t){let r=this.consume(H.MarkupTokenType.Id),n=r.value;for(;this.consumeOptional(H.MarkupTokenType.Dot);){let a=this.consume(H.MarkupTokenType.Id);n+="."+a.value}this.consume(H.MarkupTokenType.Colon);let i=this.blockValueExpression(),s={start:r.start,end:i.position.end};i.type==="BlockArrayLiteral"?t.push({type:at.NodeTypes.NamedArgument,name:n,value:i,position:s,source:this.source}):t.push({type:at.NodeTypes.NamedArgument,name:n,value:i,position:s,source:this.source})}blockValueExpression(){return this.look(H.MarkupTokenType.OpenSquare)?this.blockArrayLiteral():this.valueExpression()}assertNotNestedArray(){if(this.look(H.MarkupTokenType.OpenSquare)){let t=this.peek();throw new ai.LiquidHTMLASTParsingError("nested arrays are not supported in block array literal",this.source,t.start,t.end)}}blockArrayLiteral(){let t=this.consume(H.MarkupTokenType.OpenSquare),r=[];for(;!this.look(H.MarkupTokenType.CloseSquare);)this.assertNotNestedArray(),r.push(this.valueExpression()),this.look(H.MarkupTokenType.CloseSquare)||this.consume(H.MarkupTokenType.Comma);let n=this.consume(H.MarkupTokenType.CloseSquare);return{type:"BlockArrayLiteral",elements:r,position:{start:t.start,end:n.end},source:this.source}}computeLastTokenEnd(){for(let t=this.tokens.length-1;t>=0;t--)if(this.tokens[t].type!==H.MarkupTokenType.EndOfString)return this.tokens[t].end;return this.tokens[0]?.start??0}};jf.MarkupParser=c_;function kE(e,t){e.type===at.NodeTypes.LogicalExpression&&(e.position={...e.position,end:t},kE(e.right,t))}function o_(e){return pc.EQUALITY_OPERATORS.has(e)||pc.COMPARISON_OPERATORS.has(e)}function N7(e){return pc.LOGICAL_OPERATORS.has(e)}function P7(e){return e in bE.LiquidLiteralValues}});var SE=x(f_=>{"use strict";p();Object.defineProperty(f_,"__esModule",{value:!0});f_.parseLiquidVariableOutput=C7;var u_=Yt(),l_=Hr(),q7=oi(),L7=vt();function C7(e){let t=e.consume(u_.TokenType.LiquidVariableOutputOpen);e.accept(u_.TokenType.Text);let r=e.consume(u_.TokenType.LiquidVariableOutputClose),n=e.getSource(),i=n.slice(t.end,r.start);try{let s=(0,L7.tokenizeMarkup)(i,t.end),a=new q7.MarkupParser(s,n);e.isTolerant()&&a.enableTolerant();let o=a.liquidVariable();return a.isAtEnd()?(0,l_.makeLiquidVariableOutput)(t,r,o,n):(0,l_.makeLiquidVariableOutput)(t,r,i.trim(),n)}catch{return(0,l_.makeLiquidVariableOutput)(t,r,i.trim(),n)}}});var wa=x(zr=>{"use strict";p();Object.defineProperty(zr,"__esModule",{value:!0});zr.parseBlockTag=D7;zr.parseBlockBody=TE;zr.parseBranchedBody=wE;zr.finalizeBranch=Ff;zr.parseBranchMarkup=xE;zr.peekTagName=h_;zr.isBlockTerminator=j7;zr.consumeEndTag=F7;zr.isBranchName=AE;var or=Yt(),us=Hr(),Dn=ga(),Ta=Ur(),I7=In(),d_=oi(),p_=vt(),M7=gf(),R7=cc();function D7(e,t,r,n){let i,s=!1,a;try{let c=n.start-r.markupString.length,l=(0,p_.tokenizeMarkup)(r.markupString,c),f=new d_.MarkupParser(l,e.getSource());e.isTolerant()&&f.enableTolerant(),i=t.parse(r.tagName,f,e),f.isAtEnd()?s=!0:(i=void 0,a="unexpected tokens after markup")}catch(c){i=void 0,a=c instanceof Error?c.message:"unknown error"}let o=e.blockAllowUnclosedHtml;e.blockAllowUnclosedHtml=B7.has(r.tagName);try{if(t.branches.length===0){let{children:m,endPosition:d,endWhitespace:g}=TE(e,r);return s?(0,us.makeLiquidTagNamed)(r,i,m,d,g):(0,us.makeLiquidTagBaseCase)(r,m,d,g,a)}let{branches:c,endPosition:l,endWhitespace:f}=wE(e,r,t);return s?(0,us.makeLiquidTagNamed)(r,i,c,l,f):(0,us.makeLiquidTagBaseCase)(r,c,l,f,a)}finally{e.blockAllowUnclosedHtml=o}}function TE(e,t){let r=t.tagName,n=[];for(;!e.isAtEnd();){if(e.check(or.TokenType.LiquidTagOpen)){let s=e.peekTagName();if(s===`end${r}`){let a=e.consumeEndTag();return{children:(0,Dn.filterChildren)(Dn.ChildFilterMode.Syntactic,n,e.getSource()),endPosition:a.position,endWhitespace:a.whitespace}}if(s&&s.startsWith("end")){let a=s.slice(3);if(e.blockEnv.tagForName(a))throw new Ta.LiquidHTMLASTParsingError(`Attempting to close LiquidTag '${a}' before LiquidTag '${r}' was closed`,e.getSource(),t.blockStartPosition.start,t.blockStartPosition.end)}if(s&&(s==="else"||s==="elsif"||s==="when"))throw new Ta.LiquidHTMLASTParsingError(`Attempting to open LiquidBranch '${s}' before LiquidTag '${r}' was closed`,e.getSource(),t.blockStartPosition.start,t.blockStartPosition.end)}let i=e.getPosition();if(e.blockInAttributeContext&&!e.blockInAttributeValueContext?n.push(...e.parseBranchAttributes()):n.push(e.parseNode()),e.getPosition()===i){if(e.blockAllowUnclosedDocumentNode||EE(e,r),e.check(or.TokenType.LiquidTagOpen)){n.push(e.parseLiquidTag());continue}break}}{let i=(0,Dn.filterChildren)(Dn.ChildFilterMode.Syntactic,n,e.getSource()),s=e.peek().start,a={start:s,end:s};if(e.blockAllowUnclosedDocumentNode)return{children:i,endPosition:a,endWhitespace:{start:"",end:""}};throw new Ta.LiquidHTMLASTParsingError(`Attempting to end parsing before LiquidTag '${r}' was closed`,e.getSource(),t.blockStartPosition.start,t.blockStartPosition.end)}}function wE(e,t,r){let n=t.tagName,i=t.blockStartPosition.end,s=[],a=(0,us.makeLiquidBranchUnnamed)(i,e.getSource()),o=[],c=e.blockInAttributeValueContext?Dn.ChildFilterMode.Preserve:Dn.ChildFilterMode.Syntactic;for(;!e.isAtEnd();){if(e.check(or.TokenType.LiquidTagOpen)){let f=e.peekTagName();if(f===`end${n}`){Ff(a,o,e.peek().start,e.getSource(),c),s.push(a);let m=e.consumeEndTag();return{branches:s,endPosition:m.position,endWhitespace:m.whitespace}}if(AE(f)&&r.branches.includes(f)){Ff(a,o,e.peek().start,e.getSource(),c),s.push(a);let m=e.consume(or.TokenType.LiquidTagOpen);e.accept(or.TokenType.Text);let d=e.consume(or.TokenType.LiquidTagClose),g=(0,us.envelopeFromTokens)(m,d,e.getSource()),_=xE(e,f,g);a=(0,us.makeLiquidBranchNamed)(g,_),o=[];continue}if(f&&f.startsWith("end")){let m=f.slice(3);if(e.blockEnv.tagForName(m))throw new Ta.LiquidHTMLASTParsingError(`Attempting to close LiquidTag '${m}' before LiquidTag '${n}' was closed`,e.getSource(),t.blockStartPosition.start,t.blockStartPosition.end)}}let l=e.getPosition();if(e.blockInAttributeContext&&!e.blockInAttributeValueContext?o.push(...e.parseBranchAttributes()):o.push(e.parseNode()),e.getPosition()===l){if(e.blockAllowUnclosedDocumentNode||EE(e,n),e.check(or.TokenType.LiquidTagOpen)){o.push(e.parseLiquidTag());continue}break}}{let l=e.peek().start;Ff(a,o,l,e.getSource(),c),s.push(a);let f={start:l,end:l};if(e.blockAllowUnclosedDocumentNode)return{branches:s,endPosition:f,endWhitespace:{start:"",end:""}};throw new Ta.LiquidHTMLASTParsingError(`Attempting to end parsing before LiquidTag '${n}' was closed`,e.getSource(),t.blockStartPosition.start,t.blockStartPosition.end)}}function Ff(e,t,r,n,i=Dn.ChildFilterMode.StripEdges){let s=(0,Dn.mergeAdjacentTextNodes)(t,n);if(e.children=(0,Dn.filterChildren)(i,t,n),e.blockEndPosition={start:r,end:r},e.position.end=r,s.length>0){let a=s[s.length-1].position.end;a>r&&(e.position.end=a)}}function xE(e,t,r){let n=r.whitespaceEnd==="-"?3:2,s=r.blockStartPosition.end-n-r.markupString.length;switch(t){case"elsif":try{let a=(0,p_.tokenizeMarkup)(r.markupString,s),o=new d_.MarkupParser(a,e.getSource());e.isTolerant()&&o.enableTolerant();let c=(0,M7.elsifBranchParse)(t,o);return o.isAtEnd()?c:r.markupString.trim()}catch{return r.markupString.trim()}case"when":try{let a=(0,p_.tokenizeMarkup)(r.markupString,s),o=new d_.MarkupParser(a,e.getSource());e.isTolerant()&&o.enableTolerant();let c=(0,R7.whenBranchParse)(t,o);return o.isAtEnd()?c:r.markupString.trim()}catch{return r.markupString.trim()}case"else":return"";default:return(0,I7.assertNever)(t)}}function h_(e){if(!e.check(or.TokenType.LiquidTagOpen))return null;let r=(e.check(or.TokenType.Text,1)?e.getSource().slice(e.tokenAt(e.getPosition()+1).start,e.tokenAt(e.getPosition()+1).end):"").trimStart(),n=r.search(/\s/);return n===-1?r.trim():r.slice(0,n)}function j7(e){if(!e.check(or.TokenType.LiquidTagOpen))return!1;let t=h_(e);return t?t.startsWith("end")||t==="elsif"||t==="else"||t==="when":!1}function EE(e,t){let r=e.peek(),n=h_(e);throw new Ta.LiquidHTMLASTParsingError(`Unexpected Liquid tag '${n??r.type}' inside LiquidTag '${t}'`,e.getSource(),r.start,r.end)}function F7(e){let t=e.consume(or.TokenType.LiquidTagOpen);e.accept(or.TokenType.Text);let r=e.consume(or.TokenType.LiquidTagClose),n=t.end-t.start>2?"-":"",i=r.end-r.start>2?"-":"";return{position:{start:t.start,end:r.end},whitespace:{start:n,end:i}}}function AE(e){return e==="elsif"||e==="else"||e==="when"}var B7=new Set(["if","unless","case"])});var k_=x(ui=>{"use strict";p();Object.defineProperty(ui,"__esModule",{value:!0});ui.ParamTokenType=ui.LiquidDocTokenType=void 0;ui.tokenizeLiquidDoc=V7;ui.tokenizeParamContent=$7;var Ea;(function(e){e.Annotation="Annotation",e.TextLine="TextLine",e.Newline="Newline",e.EndOfInput="EndOfInput"})(Ea||(ui.LiquidDocTokenType=Ea={}));var ci;(function(e){e.Type="Type",e.OptionalName="OptionalName",e.Word="Word",e.Dash="Dash",e.Text="Text",e.EndOfInput="EndOfInput"})(ci||(ui.ParamTokenType=ci={}));function V7(e,t){let r=[],n=0,i=!1;for(;n<e.length;){if(g_.lastIndex=n,g_.test(e)){let f=g_.lastIndex;r.push({type:Ea.Newline,value:e.slice(n,f),start:n+t,end:f+t}),n=f,i=!1;continue}xa.lastIndex=n;let s=xa.test(e)?xa.lastIndex:n;if(m_.lastIndex=s,m_.test(e)){let f=m_.lastIndex;r.push({type:Ea.Annotation,value:e.slice(s+1,f),start:s+t,end:f+t}),n=f,i=!0,xa.lastIndex=n,xa.test(e)&&(n=xa.lastIndex);continue}let a=e.indexOf(`
26
+ `,n),o=a===-1?e.length:a,c=o;if(!i){let f=e.slice(n,o);OE.lastIndex=0;let m=OE.exec(f);m&&(c=n+m.index+1)}let l=e.slice(n,c);l.length>0&&r.push({type:Ea.TextLine,value:l,start:n+t,end:c+t}),n=c,i=!1}return r.push({type:Ea.EndOfInput,value:"",start:e.length+t,end:e.length+t}),r}function $7(e,t){let r=[],n=0;for(;n<e.length;){if(b_.lastIndex=n,b_.test(e)){n=b_.lastIndex;continue}if(y_.lastIndex=n,y_.test(e)){let s=y_.lastIndex;r.push({type:ci.Type,value:e.slice(n+1,s-1),start:n+t,end:s+t}),n=s;continue}if(__.lastIndex=n,__.test(e)){let s=__.lastIndex;r.push({type:ci.OptionalName,value:e.slice(n+1,s-1),start:n+t,end:s+t}),n=s;continue}if(e[n]==="-"&&(n+1>=e.length||e[n+1]===" "||e[n+1]===" ")){r.push({type:ci.Dash,value:"-",start:n+t,end:n+1+t}),n+=1;continue}if(v_.lastIndex=n,v_.test(e)){let s=v_.lastIndex;r.push({type:ci.Word,value:e.slice(n,s),start:n+t,end:s+t}),n=s;continue}let i=e.slice(n);r.push({type:ci.Text,value:i,start:n+t,end:e.length+t}),n=e.length}return r.push({type:ci.EndOfInput,value:"",start:e.length+t,end:e.length+t}),r}var m_=/@(\w+)/y,xa=/[ \t]+/y,g_=/\r?\n/y,OE=/.@\w+/g,y_=/\{([^}]*)\}/y,__=/\[([^\]]*)\]/y,v_=/[\w][\w-]*/y,b_=/[ \t]+/y});var NE=x(ls=>{"use strict";p();Object.defineProperty(ls,"__esModule",{value:!0});ls.makeTextNode=U7;ls.makeLiquidDocParamNode=H7;ls.makeLiquidDocDescriptionNode=W7;ls.makeLiquidDocExampleNode=z7;ls.makeLiquidDocPromptNode=G7;var hc=Qe();function U7(e,t,r,n){return{type:hc.NodeTypes.TextNode,value:e,position:{start:t,end:r},source:n}}function H7(e,t,r,n,i,s,a){return{type:hc.NodeTypes.LiquidDocParamNode,name:"param",paramName:e,paramType:t,paramDescription:r,required:n,position:{start:i,end:s},source:a}}function W7(e,t,r,n,i,s){return{type:hc.NodeTypes.LiquidDocDescriptionNode,name:"description",content:e,isImplicit:t,isInline:r,position:{start:n,end:i},source:s}}function z7(e,t,r,n,i){return{type:hc.NodeTypes.LiquidDocExampleNode,name:"example",content:e,isInline:t,position:{start:r,end:n},source:i}}function G7(e,t,r,n){return{type:hc.NodeTypes.LiquidDocPromptNode,name:"prompt",content:e,position:{start:t,end:r},source:n}}});var qE=x(mc=>{"use strict";p();Object.defineProperty(mc,"__esModule",{value:!0});mc.LiquidDocParser=void 0;mc.parseLiquidDoc=K7;var be=k_(),PE=k_(),De=NE(),J7=In();function K7(e,t,r){let n=(0,PE.tokenizeLiquidDoc)(e,t);return new Bf(n,r).parse()}var Bf=class{tokens;source;p;constructor(t,r){this.tokens=t,this.source=r,this.p=0}parse(){let t=[];for(this.skipBlankLines(),this.check(be.LiquidDocTokenType.TextLine)&&t.push(this.parseImplicitDescription()),this.skipBlankLines();!this.isAtEnd();){if(this.check(be.LiquidDocTokenType.Newline)){this.skipNewlines();continue}if(this.check(be.LiquidDocTokenType.Annotation)){t.push(this.parseAnnotation());continue}if(this.check(be.LiquidDocTokenType.TextLine)&&this.peek().value.trim()===""){this.advance();continue}if(this.check(be.LiquidDocTokenType.TextLine)){let{value:n,startPos:i,endPos:s}=this.collectContentLines({trimTrailingNewlines:!0});n.trim().length>0&&t.push((0,De.makeTextNode)(n,i,s,this.source));continue}let r=this.advance();t.push((0,De.makeTextNode)(r.value,r.start,r.end,this.source))}return t}parseImplicitDescription(){let{value:t,startPos:r,endPos:n}=this.collectContentLines(),i=(0,De.makeTextNode)(t,r,n,this.source);return(0,De.makeLiquidDocDescriptionNode)(i,!0,!0,r,n,this.source)}parseAnnotation(){let t=this.consume(be.LiquidDocTokenType.Annotation),r=t.value;if(r!==cr.Description&&r.startsWith(cr.Description))return this.parseGluedDescription(t);if(!Q7(r))return this.parseUnsupportedAnnotation(t);switch(r){case cr.Param:return this.parseParam(t);case cr.Description:return this.parseDescription(t);case cr.Example:return this.parseExample(t);case cr.Prompt:return this.parsePrompt(t);default:(0,J7.assertNever)(r)}}parseParam(t){let r=t.start,n=this.accept(be.LiquidDocTokenType.TextLine);if(!n){let y=(0,De.makeTextNode)("",t.end,t.end,this.source);return(0,De.makeLiquidDocParamNode)(y,null,null,!0,r,t.end,this.source)}let i=new S_((0,PE.tokenizeParamContent)(n.value,n.start)),s=null,a=i.accept(be.ParamTokenType.Type);a&&(s=(0,De.makeTextNode)(a.value,a.start+1,a.end-1,this.source));let o,c,l=i.accept(be.ParamTokenType.OptionalName);if(l)c=!1,o=(0,De.makeTextNode)(l.value,l.start+1,l.end-1,this.source);else{c=!0;let y=i.accept(be.ParamTokenType.Word);y?o=(0,De.makeTextNode)(y.value,y.start,y.end,this.source):o=(0,De.makeTextNode)("",t.end,t.end,this.source)}let f=null,m=i.accept(be.ParamTokenType.Dash),d=-1,g=-1;for(;!i.isAtEnd();){let y=i.advance();d===-1&&(d=y.start),g=y.end}let _=d!==-1?this.source.slice(d,g):"",{value:k,startPos:b,endPos:v}=this.collectContentLines({stopAtParagraphBreak:!0,trimTrailingNewlines:!0}),w=k.trim().length>0;if(_||w){let y=w?_+k:_,A=d!==-1?d:m?m.end+1:t.end,O=w?v:g;f=(0,De.makeTextNode)(y,A,O,this.source)}let T=f?.position.end??n.end;return(0,De.makeLiquidDocParamNode)(o,s,f,c,r,T,this.source)}parseDescription(t){let r=t.start,n=this.accept(be.LiquidDocTokenType.TextLine);if(n!==null){let{value:f,endPos:m}=this.collectContentLines(),d=f.trim().length>0,g=d?n.value+f:n.value,_=d?m:n.end,k=(0,De.makeTextNode)(g,n.start,_,this.source);return(0,De.makeLiquidDocDescriptionNode)(k,!1,!0,r,_,this.source)}this.skipBlankLines();let{value:s,startPos:a,endPos:o}=this.collectContentLines(),c=s?a:t.end,l=(0,De.makeTextNode)(s||"",c,s?o:c,this.source);return(0,De.makeLiquidDocDescriptionNode)(l,!1,!1,r,s?o:c,this.source)}parseGluedDescription(t){let r=t.start,n=r+1+cr.Description.length,i=this.accept(be.LiquidDocTokenType.TextLine),{value:s,endPos:a}=this.collectContentLines(),o=s.trim().length>0,c;o?c=a:i?c=i.end:c=t.end;let l=(0,De.makeTextNode)(this.source.slice(n,c),n,c,this.source);return(0,De.makeLiquidDocDescriptionNode)(l,!1,!0,r,c,this.source)}parseExample(t){let r=t.start,n=this.accept(be.LiquidDocTokenType.TextLine);if(n!==null){let{value:f,endPos:m}=this.collectContentLines(),d=f.trim().length>0,g=d?n.value+f:n.value,_=d?m:n.end,k=(0,De.makeTextNode)(g,n.start,_,this.source);return(0,De.makeLiquidDocExampleNode)(k,!0,r,_,this.source)}this.skipBlankLines();let{value:s,startPos:a,endPos:o}=this.collectContentLines(),c=s?a:t.end,l=(0,De.makeTextNode)(s||"",c,s?o:c,this.source);return(0,De.makeLiquidDocExampleNode)(l,!1,r,s?o:c,this.source)}parsePrompt(t){let r=t.start,{value:n,startPos:i,endPos:s}=this.collectContentLines(),a=n?i:t.end,o=(0,De.makeTextNode)(n||"",a,n?s:a,this.source);return(0,De.makeLiquidDocPromptNode)(o,r,n?s:a,this.source)}parseUnsupportedAnnotation(t){let r=t.start,n=this.accept(be.LiquidDocTokenType.TextLine);if(n){let s=this.source.slice(r,n.end);return(0,De.makeTextNode)(s,r,n.end,this.source)}let i="@"+t.value;return(0,De.makeTextNode)(i,r,t.end,this.source)}peek(){return this.tokens[this.p]}consume(t){let r=this.peek();if(r.type!==t)throw new Error(`Expected ${t} but found ${r.type} (${JSON.stringify(r.value)})`);return this.advance(),r}accept(t){return this.peek().type!==t?null:this.advance()}check(t){return this.tokens[this.p].type===t}isAtEnd(){return this.check(be.LiquidDocTokenType.EndOfInput)}advance(){return this.tokens[this.p++]}skipNewlines(){let t=!1;for(;this.check(be.LiquidDocTokenType.Newline);)this.advance(),t=!0;return t}skipBlankLines(){for(;!this.isAtEnd();){if(this.check(be.LiquidDocTokenType.Newline)){this.advance();continue}if(this.check(be.LiquidDocTokenType.TextLine)&&this.peek().value.trim()===""){this.advance();continue}break}}collectContentLines(t={}){let{stopAtParagraphBreak:r=!1,trimTrailingNewlines:n=!1}=t,i="",s=this.tokens[this.p]?.start??this.tokens[this.p-1].end,a=s;for(;!this.isAtEnd();){let o=this.peek();if(this.check(be.LiquidDocTokenType.Annotation))break;if(this.check(be.LiquidDocTokenType.Newline)){let l=this.p+1;for(;l<this.tokens.length;){let m=this.tokens[l];if(m.type===be.LiquidDocTokenType.Newline){l++;continue}if(m.type===be.LiquidDocTokenType.TextLine&&m.value.trim()===""){l++;continue}break}let f=l-this.p;if(r&&f>=2&&l<this.tokens.length&&this.tokens[l].type===be.LiquidDocTokenType.TextLine&&this.tokens[l].value.trim()!=="")break;if(l<this.tokens.length&&this.tokens[l].type===be.LiquidDocTokenType.Annotation){for(;this.p<l&&(this.check(be.LiquidDocTokenType.Newline)||this.check(be.LiquidDocTokenType.TextLine)&&this.peek().value.trim()==="");)n||(this.check(be.LiquidDocTokenType.Newline)&&(i+=`
27
+ `),a=this.peek().end),this.advance();break}if(l>=this.tokens.length||this.tokens[l].type===be.LiquidDocTokenType.EndOfInput){for(;!this.isAtEnd()&&(this.check(be.LiquidDocTokenType.Newline)||this.check(be.LiquidDocTokenType.TextLine)&&this.peek().value.trim()==="");)n||(this.check(be.LiquidDocTokenType.Newline)&&(i+=`
28
+ `),a=this.peek().end),this.advance();break}i+=`
29
+ `,a=o.end,this.advance();continue}if(this.check(be.LiquidDocTokenType.TextLine)&&o.value.trim()===""){this.advance();continue}if(i===""){let l=o.value.length-o.value.trimStart().length;s=o.start+l}let c=i===""?o.value.trimStart():o.value;i+=c,a=o.end,this.advance()}return{value:i,startPos:s,endPos:a}}};mc.LiquidDocParser=Bf;var cr;(function(e){e.Param="param",e.Description="description",e.Example="example",e.Prompt="prompt"})(cr||(cr={}));function Q7(e){return e===cr.Param||e===cr.Description||e===cr.Example||e===cr.Prompt}var S_=class{tokens;p=0;constructor(t){this.tokens=t}accept(t){return this.tokens[this.p].type!==t?null:this.tokens[this.p++]}check(t){return this.tokens[this.p].type===t}isAtEnd(){return this.check(be.ParamTokenType.EndOfInput)}current(){return this.tokens[this.p]}advance(){return this.tokens[this.p++]}}});var $f=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.parseRawTag=Z7;fs.parseLiquidInRange=LE;fs.parseRawTagBody=CE;fs.scanForEndTag=IE;fs.rawMarkupKindForTag=ME;var Aa=Yt(),gc=Hr(),Vf=ga(),li=Sa(),Y7=Ur(),X7=qE();function Z7(e,t,r,n){let i=r.tagName,s=`end${i}`,a=IE(e,s);if(!a)throw new Y7.LiquidHTMLASTParsingError(`Attempting to end parsing before LiquidRawTag '${i}' was closed`,e.getSource(),r.blockStartPosition.start,r.blockStartPosition.end);let o=n.end,c=a.tagStart,l=e.getSource().slice(o,c),f=CE(e,t,i,o,c),m=(0,gc.makeRawMarkup)(ME(i,l),l,f,o,c,e.getSource());e.resliceTokensFrom(a.tagEnd);let d={start:a.tagStart,end:a.tagEnd};return(0,gc.makeLiquidRawTag)(r,m,d,{start:a.wsStart,end:a.wsEnd})}function LE(e,t,r){let n=[],i=e.getSource(),s=e.rawParseHtml;e.rawParseHtml=!1;let a=e.getPosition();for(;a<e.tokenCount()&&e.tokenAt(a).start<r;){let o=e.tokenAt(a);if(o.type===Aa.TokenType.LiquidVariableOutputOpen||o.type===Aa.TokenType.LiquidTagOpen){let c=o.type===Aa.TokenType.LiquidVariableOutputOpen?Aa.TokenType.LiquidVariableOutputClose:Aa.TokenType.LiquidTagClose,l=a+1;for(;l<e.tokenCount()&&e.tokenAt(l).type!==c;)l++;if(!(l<e.tokenCount()&&e.tokenAt(l).end<=r)){for(n.push((0,gc.makeTextNode)(i.slice(o.start,r),o.start,r,i));a<e.tokenCount()&&e.tokenAt(a).start<r;)a++;break}e.setPosition(a),n.push(o.type===Aa.TokenType.LiquidVariableOutputOpen?e.parseLiquidVariableOutput():e.parseLiquidTag()),a=e.getPosition();continue}n.push((0,gc.makeTextNode)(i.slice(o.start,o.end),o.start,o.end,i)),a++}return e.rawParseHtml=s,e.setPosition(a),(0,Vf.filterChildren)(Vf.ChildFilterMode.Syntactic,n,i)}function CE(e,t,r,n,i){if(r==="doc"){let c=e.getSource().slice(n,i);return(0,X7.parseLiquidDoc)(c,n,e.getSource())}if(t.parseLiquidInBody===!0)return LE(e,n,i);if(n>=i)return[];let s=e.getSource(),a=s.slice(n,i),o=(0,gc.makeTextNode)(a,n,i,s);return(0,Vf.filterChildren)(Vf.ChildFilterMode.Syntactic,[o],s)}function IE(e,t){let r=e.getSource(),n=e.tokenAt(e.getPosition()).start;if(t==="endcomment"||t==="enddoc")return e5(r,n,t);let s=new RegExp(`\\{%(-?)\\s*${t}\\s*(-?)%\\}`).exec(r.slice(n));if(!s)return null;let a=n+s.index,o=a+s[0].length,c=s[1]==="-"?"-":"",l=s[2]==="-"?"-":"";return{tagStart:a,tagEnd:o,wsStart:c,wsEnd:l}}function e5(e,t,r){let n=r.slice(3),i=new RegExp(`\\{%(-?)\\s*(${n}|${r}|raw|endraw)\\b\\s*(-?)%\\}`,"g");i.lastIndex=t;let s=0,a=!1,o;for(;(o=i.exec(e))!==null;){let c=o[2];if(a){c==="endraw"&&(a=!1);continue}if(c==="raw")a=!0;else if(c===n)s++;else if(c===r){if(s===0){let l=o.index,f=l+o[0].length,m=o[1]==="-"?"-":"",d=o[3]==="-"?"-":"";return{tagStart:l,tagEnd:f,wsStart:m,wsEnd:d}}s--}}return null}function ME(e,t=""){switch(e){case"javascript":return li.RawMarkupKinds.javascript;case"stylesheet":return/\{[{%]/.test(t)?li.RawMarkupKinds.text:li.RawMarkupKinds.css;case"style":return/\{[{%]/.test(t)?li.RawMarkupKinds.text:li.RawMarkupKinds.css;case"schema":return li.RawMarkupKinds.json;case"raw":case"comment":case"doc":return li.RawMarkupKinds.text;default:return li.RawMarkupKinds.text}}});var jE=x(Hf=>{"use strict";p();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.parseHybridTag=i5;Hf.scanForEndTagNested=DE;var RE=Yt(),Uf=Hr(),t5=oi(),r5=vt(),n5=wa();function i5(e,t,r,n){let i,s=!1,a;try{let m=n.start-r.markupString.length,d=(0,r5.tokenizeMarkup)(r.markupString,m),g=new t5.MarkupParser(d,e.getSource());e.isTolerant()&&g.enableTolerant(),i=t.parse(r.tagName,g,e),g.isAtEnd()?s=!0:(i=void 0,a="unexpected tokens after markup")}catch(m){i=void 0,a=m instanceof Error?m.message:"unknown error"}if(DE(e,r.tagName)===-1)return s?(0,Uf.makeLiquidTagNamed)(r,i):(0,Uf.makeLiquidTagBaseCase)(r,void 0,void 0,void 0,a);let{children:c,endPosition:l,endWhitespace:f}=(0,n5.parseBlockBody)(e,r);return s?(0,Uf.makeLiquidTagNamed)(r,i,c,l,f):(0,Uf.makeLiquidTagBaseCase)(r,c,l,f,a)}function DE(e,t){let r=0,n=`end${t}`,i=e.getSource(),s=e.tokenCount(),a=e.getPosition();for(let o=a;o<s;o++){if(e.tokenAt(o).type!==RE.TokenType.LiquidTagOpen)continue;let c=o+1;if(c>=s||e.tokenAt(c).type!==RE.TokenType.Text)continue;let l=e.tokenAt(c),m=i.slice(l.start,l.end).trimStart(),d=m.search(/\s/),g=d===-1?m.trim():m.slice(0,d);if(g===t)r++;else if(g===n){if(r===0)return o;r--}}return-1}});var FE=x(w_=>{"use strict";p();Object.defineProperty(w_,"__esModule",{value:!0});w_.parseLiquidTag=d5;var T_=Yt(),Oa=Hr(),Wf=ka(),s5=Ur(),a5=In(),o5=oi(),c5=vt(),u5=wa(),l5=$f(),f5=jE();function d5(e){let t=e.consume(T_.TokenType.LiquidTagOpen);e.accept(T_.TokenType.Text);let r=e.consume(T_.TokenType.LiquidTagClose),n=(0,Oa.envelopeFromTokens)(t,r,e.getSource());if(n.tagName.startsWith("#")){let s=n.tagName.slice(1)+n.markupString,a=n.markupEnd-s.length;return(0,Oa.makeLiquidTagBaseCase)({...n,tagName:"#",markupString:s,markupOffset:a})}if(n.tagName.startsWith("end")){let s=n.tagName.slice(3);if(e.tagForName(s))throw new s5.LiquidHTMLASTParsingError(`Attempting to close LiquidTag '${s}' before it was opened without a matching '${s}'`,e.getSource(),t.start,r.end)}let i=e.tagForName(n.tagName);if(!i)return(0,Oa.makeLiquidTagBaseCase)(n);switch(i.kind){case Wf.TagKind.Tag:return p5(e,i,n,r);case Wf.TagKind.Block:return(0,u5.parseBlockTag)(e,i,n,r);case Wf.TagKind.Raw:return(0,l5.parseRawTag)(e,i,n,r);case Wf.TagKind.Hybrid:return(0,f5.parseHybridTag)(e,i,n,r);default:return(0,a5.assertNever)(i)}}function p5(e,t,r,n){let i;try{let s=n.start-r.markupString.length,a=s+r.markupString.length,o=(0,c5.tokenizeMarkup)(r.markupString,s),c=new o5.MarkupParser(o,e.getSource(),s,a);e.isTolerant()&&c.enableTolerant();let l=t.parse(r.tagName,c,e);return c.isAtEnd()?(0,Oa.makeLiquidTagNamed)(r,l):(0,Oa.makeLiquidTagBaseCase)(r,void 0,void 0,void 0,"unexpected tokens after markup")}catch(s){return i=s instanceof Error?s.message:"unknown error",(0,Oa.makeLiquidTagBaseCase)(r,void 0,void 0,void 0,i)}}});var x_=x(wr=>{"use strict";p();Object.defineProperty(wr,"__esModule",{value:!0});wr.HTML_RAW_TAGS=wr.VOID_ELEMENTS=wr.RAW_TAGS=wr.BLOCKS=wr.TAGS_WITHOUT_MARKUP=void 0;wr.TAGS_WITHOUT_MARKUP=["style","schema","javascript","else","break","continue","comment","raw","doc"];wr.BLOCKS=["if","unless","for","case","tablerow","capture","form","paginate","block","ifchanged","partial"];wr.RAW_TAGS=["raw","javascript","schema","stylesheet","style","comment","doc"];wr.VOID_ELEMENTS=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];wr.HTML_RAW_TAGS=["script","style","svg"]});var HE=x(bt=>{"use strict";p();Object.defineProperty(bt,"__esModule",{value:!0});bt.parseHtmlElement=h5;bt.parseHtmlRawBody=BE;bt.parseHtmlComment=m5;bt.parseHtmlDoctype=g5;bt.parseOrphanedHtmlCloseTag=y5;bt.parseHtmlDanglingMarkerClose=_5;bt.parseBranchAttributesImpl=v5;bt.parseCompoundName=di;bt.parseAttributes=VE;bt.parseQuotedAttributeValue=A_;bt.parseUnquotedAttributeValue=O_;bt.consumeTextPrefix=N_;bt.extractPlainName=yc;bt.peekHtmlCloseTagMatches=w5;bt.scanForHtmlCloseTag=$E;bt.rawMarkupKindForHtmlTag=UE;var se=Yt(),dt=Hr(),Na=ga(),zf=Qe(),fi=Sa(),E_=x_(),ds=Ur();function h5(e){let t=e.getSource(),r=e.peek().start;e.consume(se.TokenType.HtmlTagOpen);let n=di(e),i=VE(e);if(e.accept(se.TokenType.HtmlSelfClose)){let _=e.tokenAt(e.getPosition()-1).end,k={start:r,end:_};return(0,dt.makeHtmlSelfClosingElement)(n,i,k,t)}e.consume(se.TokenType.HtmlTagClose);let s=e.tokenAt(e.getPosition()-1).end,a={start:r,end:s},o=yc(n);if(o!==null&&E_.VOID_ELEMENTS.includes(o.toLowerCase()))return(0,dt.makeHtmlVoidElement)(o,i,a,t);if(o!==null&&E_.HTML_RAW_TAGS.includes(o.toLowerCase()))return BE(e,o,i,a);let c=[];for(;!e.isAtEnd()&&!e.check(se.TokenType.HtmlCloseTagOpen);){if(e.isBlockTerminator()){if(!e.htmlAllowUnclosedHtml){let _=e.peekTagName();throw new ds.LiquidHTMLASTParsingError(`Attempting to close LiquidTag '${_}' before HtmlElement '${o||"compound"}' was closed`,t,r,s)}break}c.push(e.parseNode())}if(e.isAtEnd()||e.htmlAllowUnclosedHtml&&e.isBlockTerminator()){if(!e.htmlAllowUnclosedHtml)throw new ds.LiquidHTMLASTParsingError(`Attempting to end parsing before HtmlElement '${o||"compound"}' was closed`,t,r,s);let _=c.length>0?c[c.length-1].position.end:s,k={start:_,end:_},b=(0,Na.filterChildren)(Na.ChildFilterMode.Syntactic,c,t);return(0,dt.makeHtmlElement)(n,i,b,a,k,t)}let l=e.peek().start;e.consume(se.TokenType.HtmlCloseTagOpen);let f=di(e);for(;e.check(se.TokenType.Text);){let _=t.slice(e.tokenAt(e.getPosition()).start,e.tokenAt(e.getPosition()).end);if(/^\s*$/.test(_))e.advance();else break}e.consume(se.TokenType.HtmlTagClose);let m=e.tokenAt(e.getPosition()-1).end;if(!(0,Na.compoundNamesMatch)(n,f)){let _=yc(f);throw new ds.LiquidHTMLASTParsingError(`Attempting to close HtmlElement '${_||"compound"}' before HtmlElement '${o||"compound"}' was closed`,t,l,m)}let d={start:l,end:m},g=(0,Na.filterChildren)(Na.ChildFilterMode.Syntactic,c,t);return(0,dt.makeHtmlElement)(n,i,g,a,d,t)}function BE(e,t,r,n){let i=e.getSource(),s=n.end,a=$E(e,t);if(a===-1)throw new ds.LiquidHTMLASTParsingError(`Attempting to end parsing before HtmlRawNode '${t}' was closed`,i,n.start,n.end);let o=e.tokenAt(a).start,c=i.slice(s,o),l=e.parseLiquidInRange(s,o),f=UE(t,r,c),m=(0,dt.makeRawMarkup)(f,c,l,s,o,i);e.seekToSourceOffset(o);let d=e.peek().start;for(e.consume(se.TokenType.HtmlCloseTagOpen);e.check(se.TokenType.Text);)e.advance();let g=e.consume(se.TokenType.HtmlTagClose).end,_={start:d,end:g};return(0,dt.makeHtmlRawNode)(t,r,m,n,_,i)}function m5(e){let t=e.getSource(),r=e.consume(se.TokenType.HtmlCommentOpen),n=r.end,i=t.indexOf("-->",n);if(i===-1)throw new ds.LiquidHTMLASTParsingError("Attempting to end parsing before HtmlComment '<!--' was closed",t,r.start,r.end);let s=i,a=i+3,o=t.slice(n,s).trim();return e.seekToSourceOffset(a),(0,dt.makeHtmlComment)(o,r.start,a,t)}function g5(e){let t=e.getSource(),r=e.consume(se.TokenType.HtmlDoctypeOpen);for(;!e.isAtEnd()&&!e.check(se.TokenType.HtmlTagClose);)e.advance();let n=e.consume(se.TokenType.HtmlTagClose),i=t.slice(r.end,n.start).trim(),s=i.match(/^doctype\s+html\s*(.*)/i),a=s?s[1].length>0?s[1]:null:i;return(0,dt.makeHtmlDoctype)(a,r.start,n.end,t)}function y5(e){let t=e.getSource(),r=e.peek().start;e.consume(se.TokenType.HtmlCloseTagOpen);let n=di(e);for(;e.check(se.TokenType.Text);){let a=t.slice(e.tokenAt(e.getPosition()).start,e.tokenAt(e.getPosition()).end);if(/^\s*$/.test(a))e.advance();else break}let i=e.consume(se.TokenType.HtmlTagClose).end,s=yc(n);throw new ds.LiquidHTMLASTParsingError(`Attempting to close HtmlElement '${s||"compound"}' before it was opened`,t,r,i)}function _5(e){let t=e.getSource(),r=e.peek().start;e.consume(se.TokenType.HtmlCloseTagOpen);let n=di(e);for(;e.check(se.TokenType.Text);){let s=t.slice(e.tokenAt(e.getPosition()).start,e.tokenAt(e.getPosition()).end);if(/^\s*$/.test(s))e.advance();else break}e.consume(se.TokenType.HtmlTagClose);let i=e.tokenAt(e.getPosition()-1).end;return(0,dt.makeHtmlDanglingMarkerClose)(n,r,i,t)}function v5(e){let t=[],r=e.getSource();for(;!e.isAtEnd()&&!(e.check(se.TokenType.HtmlTagClose)||e.check(se.TokenType.HtmlSelfClose)||e.isBlockTerminator());){if(e.check(se.TokenType.Text)){let s=e.tokenAt(e.getPosition()),a=r.slice(s.start,s.end);if(/^\s+$/.test(a)){e.advance();continue}let o=a.search(/\S/);o>0&&(s.start=s.start+o)}if(e.check(se.TokenType.LiquidTagOpen)){let s=e.htmlInAttributeContext;e.htmlInAttributeContext=!0,t.push(e.parseLiquidTag()),e.htmlInAttributeContext=s;continue}if(e.check(se.TokenType.LiquidVariableOutputOpen)){t.push(e.parseLiquidVariableOutput());continue}let n=e.peek().start,i=di(e);if(i.length===0){e.advance();continue}if(e.accept(se.TokenType.HtmlEquals)){let s=e.accept(se.TokenType.HtmlQuoteOpen);if(s){let a=r[s.start],o=s.end,c=A_(e),l=e.consume(se.TokenType.HtmlQuoteClose),f=l.start,m=l.end,d={start:o,end:f};a==='"'?t.push((0,dt.makeAttrDoubleQuoted)(i,c,d,n,m,r)):t.push((0,dt.makeAttrSingleQuoted)(i,c,d,n,m,r))}else{let{value:a,end:o}=O_(e),c={start:a.length>0?a[0].position.start:e.peek().start,end:o};t.push((0,dt.makeAttrUnquoted)(i,a,c,n,o,r))}}else{let a=i[i.length-1].position.end;t.push((0,dt.makeAttrEmpty)(i,n,a,r))}}return t}function di(e){let t=[];for(;!e.isAtEnd();){if(e.check(se.TokenType.LiquidVariableOutputOpen)){t.push(e.parseLiquidVariableOutput());continue}if(!e.htmlInAttributeContext&&e.check(se.TokenType.LiquidTagOpen)&&!t.some(n=>n.type===zf.NodeTypes.LiquidVariableOutput)&&!k5(e,t)){t.push(e.parseLiquidTag());continue}let r=N_(e);if(r!==null){t.push(r);continue}break}return t}function VE(e){let t=e.htmlInAttributeContext;e.htmlInAttributeContext=!0;try{return b5(e)}finally{e.htmlInAttributeContext=t}}function b5(e){let t=[],r=e.getSource();for(;!e.isAtEnd()&&!(e.check(se.TokenType.HtmlTagClose)||e.check(se.TokenType.HtmlSelfClose));){if(e.check(se.TokenType.Text)){let s=e.tokenAt(e.getPosition()),a=r.slice(s.start,s.end);if(/^\s+$/.test(a)){e.advance();continue}let o=a.search(/\S/);o>0&&(s.start=s.start+o)}if(e.check(se.TokenType.LiquidTagOpen)){let s=e.htmlInAttributeContext;e.htmlInAttributeContext=!0,t.push(e.parseLiquidTag()),e.htmlInAttributeContext=s;continue}if(e.check(se.TokenType.LiquidVariableOutputOpen)){t.push(e.parseLiquidVariableOutput());continue}let n=e.peek().start,i=di(e);if(i.length===0){e.advance();continue}if(e.accept(se.TokenType.HtmlEquals)){let s=e.accept(se.TokenType.HtmlQuoteOpen);if(s){let a=r[s.start],o=s.end,c=A_(e),l=e.consume(se.TokenType.HtmlQuoteClose),f=l.start,m=l.end,d={start:o,end:f};a==='"'||a==="\u201C"||a==="\u201D"?t.push((0,dt.makeAttrDoubleQuoted)(i,c,d,n,m,r)):t.push((0,dt.makeAttrSingleQuoted)(i,c,d,n,m,r))}else{let{value:a,end:o}=O_(e),c={start:a.length>0?a[0].position.start:e.peek().start,end:o};t.push((0,dt.makeAttrUnquoted)(i,a,c,n,o,r))}}else{let a=i[i.length-1].position.end;t.push((0,dt.makeAttrEmpty)(i,n,a,r))}}return t}function A_(e){let t=[],r=e.getSource();for(;!e.isAtEnd()&&!e.check(se.TokenType.HtmlQuoteClose);)if(e.check(se.TokenType.LiquidVariableOutputOpen))t.push(e.parseLiquidVariableOutput());else if(e.check(se.TokenType.LiquidTagOpen)){let n=e.peekTagName();if(n&&(A5.has(n)||n.startsWith("end"))){let s=e.peek();throw new ds.LiquidHTMLASTParsingError(`Unexpected Liquid tag '${n}' inside quoted attribute value`,r,s.start,s.end)}let i=e.htmlInAttributeValueContext;e.htmlInAttributeValueContext=!0,t.push(e.parseLiquidTag()),e.htmlInAttributeValueContext=i}else if(e.check(se.TokenType.Text)){let n=e.advance();t.push((0,dt.makeTextNode)(r.slice(n.start,n.end),n.start,n.end,r))}else break;return t}function O_(e){let t=[],r=e.peek().start;for(;!e.isAtEnd()&&!(e.check(se.TokenType.HtmlTagClose)||e.check(se.TokenType.HtmlSelfClose));){if(e.check(se.TokenType.Text)){let n=e.tokenAt(e.getPosition()),s=e.getSource().slice(n.start,n.end);if(/^\s/.test(s))break;let a=N_(e);if(a){t.push(a),r=a.position.end;continue}break}if(e.check(se.TokenType.LiquidVariableOutputOpen)){let n=e.parseLiquidVariableOutput();t.push(n),r=n.position.end;continue}break}return{value:t,end:r}}function N_(e){if(!e.check(se.TokenType.Text))return null;let t=e.tokenAt(e.getPosition()),r=e.getSource(),n=r.slice(t.start,t.end),i=n.search(/\s/);if(i===0)return null;if(i===-1)return e.advance(),(0,dt.makeTextNode)(n,t.start,t.end,r);let s=(0,dt.makeTextNode)(n.slice(0,i),t.start,t.start+i,r);return t.start=t.start+i,s}function k5(e,t){if(!t.some(n=>n.type===zf.NodeTypes.TextNode))return!1;let r=e.peekTagName();return r===null||!E_.BLOCKS.includes(r)?!1:T5(e)}function S5(e){return e!==void 0&&(e.type===se.TokenType.LiquidVariableOutputOpen||e.type===se.TokenType.LiquidTagOpen)&&e.end-e.start===3}function T5(e){let t=e.getSource(),r=e.tokenCount(),n=!1,i=!1;for(let s=e.getPosition();s<r;s++){let a=e.tokenAt(s);switch(a.type){case se.TokenType.LiquidTagOpen:n=!0;break;case se.TokenType.LiquidTagClose:n=!1,i=a.end-a.start===3;break;case se.TokenType.Text:if(!n){let o=t.slice(a.start,a.end);if(i&&(o=o.replace(/^\s+/,"")),i=!1,o.length===0||/^\s+$/.test(o)&&S5(e.tokenAt(s+1)))break;return/^\s/.test(o)}break;case se.TokenType.LiquidVariableOutputOpen:if(!n)return!1;break;case se.TokenType.HtmlTagClose:case se.TokenType.HtmlSelfClose:case se.TokenType.EndOfInput:if(!n)return!1;break}}return!1}function yc(e){return e.length===1&&e[0].type===zf.NodeTypes.TextNode?e[0].value:null}function w5(e,t){if(!e.check(se.TokenType.HtmlCloseTagOpen))return!1;let r=e.getPosition();e.advance();let n=di(e);return e.setPosition(r),(0,Na.compoundNamesMatch)(t,n)}function $E(e,t){let r=t.toLowerCase(),n=e.getSource(),i=e.tokenCount(),s=e.getPosition(),a=0;for(let o=s;o<i;o++){let c=e.tokenAt(o);if(c.type===se.TokenType.HtmlTagOpen){let m=o+1;if(m>=i||e.tokenAt(m).type!==se.TokenType.Text)continue;let d=n.slice(e.tokenAt(m).start,e.tokenAt(m).end).trimStart(),g=d.search(/\s/);(g===-1?d.trim():d.slice(0,g)).toLowerCase()===r&&a++;continue}if(c.type!==se.TokenType.HtmlCloseTagOpen)continue;let l=o+1;if(l>=i||e.tokenAt(l).type!==se.TokenType.Text)continue;if(n.slice(e.tokenAt(l).start,e.tokenAt(l).end).trim().toLowerCase()===r){if(a===0)return o;a--}}return-1}function UE(e,t=[],r=""){switch(e.toLowerCase()){case"script":return x5(t);case"style":return/\{[{%]/.test(r)?fi.RawMarkupKinds.text:fi.RawMarkupKinds.css;default:return fi.RawMarkupKinds.text}}function x5(e){let t=E5(e,"type");return t===null?fi.RawMarkupKinds.javascript:t==="text/html"?fi.RawMarkupKinds.html:t==="text/markdown"?fi.RawMarkupKinds.markdown:t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules"?fi.RawMarkupKinds.json:fi.RawMarkupKinds.javascript}function E5(e,t){for(let r of e){if(!("name"in r)||!("value"in r))continue;let n=r,i=yc(n.name);if(i===null||i.toLowerCase()!==t)continue;let s=n.value;return s.length===1&&s[0].type===zf.NodeTypes.TextNode?s[0].value:null}return null}var A5=new Set(["else","elsif","when"])});var WE=x(P_=>{"use strict";p();Object.defineProperty(P_,"__esModule",{value:!0});P_.envelopeFromLine=O5;function O5(e,t){return{tagName:e.tagName,markupString:e.markup,markupOffset:e.markupOffset,markupEnd:e.markupOffset+e.markup.length,whitespaceStart:"",whitespaceEnd:"",blockStartPosition:{start:e.nameOffset,end:e.lineEnd},source:t}}});var ZE=x(jn=>{"use strict";p();Object.defineProperty(jn,"__esModule",{value:!0});jn.parseLiquidStatement=q_;jn.parseLineBlockTag=JE;jn.parseLineRawTag=KE;jn.parseLineHybridTag=QE;jn.parseLineBlockBody=L_;jn.parseLineBranchedBody=YE;jn.parseLineBranchMarkup=XE;var kt=Hr(),Gf=ka(),Kf=Ur(),zE=In(),_c=oi(),vc=vt(),N5=gf(),P5=cc(),GE=WE(),Jf=wa(),pi=ga(),q5=$f();function q_(e,t,r,n,i){let s=i.lines[i.index-1],a=(0,GE.envelopeFromLine)(s,e.getSource());if(t==="#")return(0,kt.makeLiquidTagBaseCase)(a,void 0,void 0,void 0,void 0,!0);if(t.startsWith("end"))throw new Kf.LiquidHTMLASTParsingError(`Unexpected end tag '${t}' in {% liquid %} block`,e.getSource(),s.nameOffset,s.lineEnd);let o=e.lineEnv.tagForName(t);if(!o)return(0,kt.makeLiquidTagBaseCase)(a);switch(o.kind){case Gf.TagKind.Tag:{let c;try{let l=(0,vc.tokenizeMarkup)(r,n),f=new _c.MarkupParser(l,e.getSource(),n,a.markupEnd);e.isTolerant()&&f.enableTolerant();let m=o.parse(t,f,e);return f.isAtEnd()?(0,kt.makeLiquidTagNamed)(a,m):(0,kt.makeLiquidTagBaseCase)(a,void 0,void 0,void 0,"unexpected tokens after markup")}catch(l){return c=l instanceof Error?l.message:"unknown error",(0,kt.makeLiquidTagBaseCase)(a,void 0,void 0,void 0,c)}}case Gf.TagKind.Block:return JE(e,o,a,r,n,i);case Gf.TagKind.Raw:return KE(e,o,a,i);case Gf.TagKind.Hybrid:return QE(e,o,a,r,n,i);default:return(0,zE.assertNever)(o)}}function JE(e,t,r,n,i,s){let a,o=!1,c;try{let g=(0,vc.tokenizeMarkup)(n,i),_=new _c.MarkupParser(g,e.getSource());e.isTolerant()&&_.enableTolerant(),a=t.parse(r.tagName,_,e),_.isAtEnd()?o=!0:(a=void 0,c="unexpected tokens after markup")}catch(g){a=void 0,c=g instanceof Error?g.message:"unknown error"}let l=3+r.tagName.length;if(t.branches.length===0){let{children:g,endNameOffset:_}=L_(e,r.tagName,s),k={start:_,end:_+l};return o?(0,kt.makeLiquidTagNamed)(r,a,g,k,{start:"",end:""}):(0,kt.makeLiquidTagBaseCase)(r,g,k,{start:"",end:""},c)}let{branches:f,endNameOffset:m}=YE(e,r.tagName,t,s),d={start:m,end:m+l};return o?(0,kt.makeLiquidTagNamed)(r,a,f,d,{start:"",end:""}):(0,kt.makeLiquidTagBaseCase)(r,f,d,{start:"",end:""},c)}function KE(e,t,r,n){let i=r.tagName,s=`end${i}`,a=n.index>0&&n.index<=n.lines.length?n.lines[n.index-1].lineEnd:r.blockStartPosition.end,o=n.index>0&&n.index<=n.lines.length?n.lines[n.index-1].lineEnd+1:r.blockStartPosition.end,c=i==="comment"||i==="doc",l=-1;if(c){let v=0;for(let w=n.index;w<n.lines.length;w++){let T=n.lines[w].tagName;if(T==="raw"){for(w++;w<n.lines.length&&n.lines[w].tagName!=="endraw";)w++;continue}if(T===i)v++;else if(T===s){if(v===0){l=w;break}v--}}}else for(let v=n.index;v<n.lines.length;v++)if(n.lines[v].tagName===s){l=v;break}if(l===-1)throw new Kf.LiquidHTMLASTParsingError(`Unclosed raw tag '${i}' in {% liquid %} block`,e.getSource(),r.blockStartPosition.start,r.blockStartPosition.end);let f=n.lines[l],m=f.nameOffset,d=e.getSource(),g=d.slice(o,m),_=o<m?(0,pi.filterChildren)(pi.ChildFilterMode.Syntactic,[(0,kt.makeTextNode)(g,o,m,d)],d):[],k=(0,kt.makeRawMarkup)((0,q5.rawMarkupKindForTag)(i,g),g,_,a,m,d),b={start:f.nameOffset,end:f.nameOffset+s.length};return n.index=l+1,(0,kt.makeLiquidRawTag)(r,k,b,{start:"",end:""})}function QE(e,t,r,n,i,s){let a,o=!1,c;try{let b=(0,vc.tokenizeMarkup)(n,i),v=new _c.MarkupParser(b,e.getSource());e.isTolerant()&&v.enableTolerant(),a=t.parse(r.tagName,v,e),v.isAtEnd()?o=!0:(a=void 0,c="unexpected tokens after markup")}catch(b){a=void 0,c=b instanceof Error?b.message:"unknown error"}let l=`end${r.tagName}`,f=!1,m=0;for(let b=s.index;b<s.lines.length;b++)if(s.lines[b].tagName===r.tagName)m++;else if(s.lines[b].tagName===l){if(m===0){f=!0;break}m--}if(!f)return o?(0,kt.makeLiquidTagNamed)(r,a):(0,kt.makeLiquidTagBaseCase)(r,void 0,void 0,void 0,c);let{children:d,endNameOffset:g}=L_(e,r.tagName,s),_=3+r.tagName.length,k={start:g,end:g+_};return o?(0,kt.makeLiquidTagNamed)(r,a,d,k,{start:"",end:""}):(0,kt.makeLiquidTagBaseCase)(r,d,k,{start:"",end:""},c)}function L_(e,t,r){let n=[];for(;r.index<r.lines.length;){let i=r.lines[r.index];if(i.tagName===`end${t}`)return r.index++,{children:n,endNameOffset:i.nameOffset};r.index++,n.push(q_(e,i.tagName,i.markup,i.markupOffset,r))}if(e.lineAllowUnclosedDocumentNode){let i=r.lines.length>0?r.lines[r.lines.length-1].lineEnd:0;return{children:n,endNameOffset:i}}throw new Kf.LiquidHTMLASTParsingError(`Unclosed block tag '${t}' in {% liquid %} block`,e.getSource(),0,0)}function YE(e,t,r,n){let i=[],s=n.index>0?n.lines[n.index-1].lineEnd:0,a=(0,kt.makeLiquidBranchUnnamed)(s,e.getSource()),o=[];for(;n.index<n.lines.length;){let c=n.lines[n.index];if(c.tagName===`end${t}`)return(0,Jf.finalizeBranch)(a,o,c.nameOffset,e.getSource(),e.lineParseHtml?pi.ChildFilterMode.StripEdges:pi.ChildFilterMode.Syntactic),i.push(a),n.index++,{branches:i,endNameOffset:c.nameOffset};if((0,Jf.isBranchName)(c.tagName)&&r.branches.includes(c.tagName)){(0,Jf.finalizeBranch)(a,o,c.nameOffset,e.getSource(),e.lineParseHtml?pi.ChildFilterMode.StripEdges:pi.ChildFilterMode.Syntactic),i.push(a);let l=(0,GE.envelopeFromLine)(c,e.getSource()),f=XE(c.tagName,l,e.getSource(),e.isTolerant());a=(0,kt.makeLiquidBranchNamed)(l,f),o=[],n.index++;continue}n.index++,o.push(q_(e,c.tagName,c.markup,c.markupOffset,n))}if(e.lineAllowUnclosedDocumentNode){let c=n.lines.length>0?n.lines[n.lines.length-1].lineEnd:0;return(0,Jf.finalizeBranch)(a,o,c,e.getSource(),e.lineParseHtml?pi.ChildFilterMode.StripEdges:pi.ChildFilterMode.Syntactic),i.push(a),{branches:i,endNameOffset:c}}throw new Kf.LiquidHTMLASTParsingError(`Unclosed block tag '${t}' in {% liquid %} block`,e.getSource(),0,0)}function XE(e,t,r,n=!1){switch(e){case"elsif":try{let i=(0,vc.tokenizeMarkup)(t.markupString,t.markupOffset),s=new _c.MarkupParser(i,r);n&&s.enableTolerant();let a=(0,N5.elsifBranchParse)(e,s);return s.isAtEnd()?a:t.markupString.trim()}catch{return t.markupString.trim()}case"when":try{let i=(0,vc.tokenizeMarkup)(t.markupString,t.markupOffset),s=new _c.MarkupParser(i,r);n&&s.enableTolerant();let a=(0,P5.whenBranchParse)(e,s);return s.isAtEnd()?a:t.markupString.trim()}catch{return t.markupString.trim()}case"else":return"";default:return(0,zE.assertNever)(e)}}});var tA=x(bc=>{"use strict";p();Object.defineProperty(bc,"__esModule",{value:!0});bc.parseNode=I5;bc.parseYamlFrontmatter=eA;bc.advanceAsText=ps;var Et=Yt(),C_=Hr(),L5=Ur(),C5=In();function I5(e){let t=e.peek();switch(t.type){case Et.TokenType.Text:return e.advance(),(0,C_.makeTextNode)(e.getSource().slice(t.start,t.end),t.start,t.end,e.getSource());case Et.TokenType.YamlFrontmatter:return eA(e);case Et.TokenType.EndOfInput:throw new L5.LiquidHTMLASTParsingError("Unexpected end of input in parseNode",e.getSource(),t.start,t.end);case Et.TokenType.LiquidVariableOutputOpen:return e.parseLiquidVariableOutput();case Et.TokenType.LiquidTagOpen:return e.parseLiquidTag();case Et.TokenType.LiquidTagClose:case Et.TokenType.LiquidVariableOutputClose:return ps(e);case Et.TokenType.HtmlTagOpen:return e.dispatchParseHtml?e.parseHtmlElement():ps(e);case Et.TokenType.HtmlCloseTagOpen:return e.dispatchParseHtml&&e.dispatchAllowUnclosedHtml?e.parseHtmlDanglingMarkerClose():e.dispatchParseHtml?e.parseOrphanedHtmlCloseTag():ps(e);case Et.TokenType.HtmlCommentOpen:return e.dispatchParseHtml?e.parseHtmlComment():ps(e);case Et.TokenType.HtmlDoctypeOpen:return e.dispatchParseHtml?e.parseHtmlDoctype():ps(e);case Et.TokenType.HtmlTagClose:case Et.TokenType.HtmlSelfClose:case Et.TokenType.HtmlCommentClose:case Et.TokenType.HtmlEquals:case Et.TokenType.HtmlQuoteOpen:case Et.TokenType.HtmlQuoteClose:return ps(e);default:return(0,C5.assertNever)(t.type)}}function eA(e){let t=e.advance(),r=e.getSource(),n=r.slice(t.start,t.end),i=n.indexOf(`
30
+ `),s=n.lastIndexOf("---"),a=i!==-1&&s>i?n.slice(i+1,s):"";return(0,C_.makeYamlFrontmatter)(a,t.start,t.end,r)}function ps(e){let t=e.advance(),r=e.getSource();return(0,C_.makeTextNode)(r.slice(t.start,t.end),t.start,t.end,r)}});var R_=x(qa=>{"use strict";p();Object.defineProperty(qa,"__esModule",{value:!0});qa.finalizeBranch=qa.DocumentParser=void 0;var M5=Yt(),R5=Ox(),D5=Hr(),rA=ga();ka();var j5=SE(),I_=wa(),F5=$f(),B5=FE(),Pa=HE(),V5=ZE(),nA=tA(),M_=class extends R5.ParserBase{env;_parseHtml;_allowUnclosedHtml;_allowUnclosedDocumentNode;_inAttributeContext=!1;_inAttributeValueContext=!1;constructor(t,r,n,i,s=!1){super(t,r),this.env=n,this._parseHtml=i,this._allowUnclosedHtml=s,this._allowUnclosedDocumentNode=s}get rawParseHtml(){return this._parseHtml}set rawParseHtml(t){this._parseHtml=t}get blockEnv(){return this.env}get blockParseHtml(){return this._parseHtml}get blockAllowUnclosedHtml(){return this._allowUnclosedHtml}set blockAllowUnclosedHtml(t){this._allowUnclosedHtml=t}get blockAllowUnclosedDocumentNode(){return this._allowUnclosedDocumentNode}get blockInAttributeContext(){return this._inAttributeContext}get blockInAttributeValueContext(){return this._inAttributeValueContext}set blockInAttributeValueContext(t){this._inAttributeValueContext=t}get htmlParseHtml(){return this._parseHtml}get htmlAllowUnclosedHtml(){return this._allowUnclosedHtml}set htmlAllowUnclosedHtml(t){this._allowUnclosedHtml=t}get htmlInAttributeContext(){return this._inAttributeContext}set htmlInAttributeContext(t){this._inAttributeContext=t}get htmlInAttributeValueContext(){return this._inAttributeValueContext}set htmlInAttributeValueContext(t){this._inAttributeValueContext=t}get lineEnv(){return this.env}get lineParseHtml(){return this._parseHtml}get lineAllowUnclosedDocumentNode(){return this._allowUnclosedDocumentNode}get dispatchParseHtml(){return this._parseHtml}get dispatchAllowUnclosedHtml(){return this._allowUnclosedHtml}tagForName(t){return this.env.tagForName(t)}parseDocument(){let t=[];for(this.check(M5.TokenType.YamlFrontmatter)&&t.push((0,nA.parseNode)(this));!this.isAtEnd();)t.push(this.parseNode());return(0,D5.makeDocumentNode)((0,rA.filterChildren)(rA.ChildFilterMode.Syntactic,t,this.source),this.source)}parseNode(){return(0,nA.parseNode)(this)}parseLiquidTag(){return(0,B5.parseLiquidTag)(this)}parseLiquidVariableOutput(){return(0,j5.parseLiquidVariableOutput)(this)}peekTagName(){return(0,I_.peekTagName)(this)}isBlockTerminator(){return(0,I_.isBlockTerminator)(this)}consumeEndTag(){return(0,I_.consumeEndTag)(this)}parseLiquidInRange(t,r){return(0,F5.parseLiquidInRange)(this,t,r)}parseBranchAttributes(){return(0,Pa.parseBranchAttributesImpl)(this)}parseLiquidStatement(t,r,n,i){return(0,V5.parseLiquidStatement)(this,t,r,n,i)}parseHtmlElement(){return(0,Pa.parseHtmlElement)(this)}parseHtmlComment(){return(0,Pa.parseHtmlComment)(this)}parseHtmlDoctype(){return(0,Pa.parseHtmlDoctype)(this)}parseOrphanedHtmlCloseTag(){return(0,Pa.parseOrphanedHtmlCloseTag)(this)}parseHtmlDanglingMarkerClose(){return(0,Pa.parseHtmlDanglingMarkerClose)(this)}};qa.DocumentParser=M_;var $5=wa();Object.defineProperty(qa,"finalizeBranch",{enumerable:!0,get:function(){return $5.finalizeBranch}})});var Sa=x(Gr=>{"use strict";p();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.RawMarkupKinds=Gr.LiquidLiteralValues=void 0;Gr.isBranchedTag=U5;Gr.toLiquidAST=H5;Gr.toLiquidHtmlAST=W5;Gr.walk=D_;Gr.isLiquidHtmlNode=j_;var F_=Qe(),sA=R_(),aA=Yt(),oA=ka();Gr.LiquidLiteralValues={nil:null,null:null,true:!0,false:!1,blank:"",empty:""};var iA;(function(e){e.css="css",e.html="html",e.javascript="javascript",e.json="json",e.markdown="markdown",e.typescript="typescript",e.text="text"})(iA||(Gr.RawMarkupKinds=iA={}));function U5(e){return e.type===F_.NodeTypes.LiquidTag&&["if","for","unless","case"].includes(e.name)}function H5(e,t={allowUnclosedDocumentNode:!0,mode:"tolerant"}){let r=t.environment??oA.Environment.default(),n=(0,aA.tokenize)(e);return new sA.DocumentParser(n,e,r,!1,t.allowUnclosedDocumentNode).parseDocument()}function W5(e,t={allowUnclosedDocumentNode:!1,mode:"tolerant"}){let r=t.environment??oA.Environment.default(),n=(0,aA.tokenize)(e);return new sA.DocumentParser(n,e,r,!0,t.allowUnclosedDocumentNode).parseDocument()}function D_(e,t,r){for(let n of Object.keys(e)){if(F_.nonTraversableProperties.has(n))continue;let i=e[n];Array.isArray(i)?i.filter(j_).forEach(s=>D_(s,t,e)):j_(i)&&D_(i,t,e)}t(e,r)}function j_(e){return e!==null&&typeof e=="object"&&"type"in e&&F_.NodeTypes.hasOwnProperty(e.type)}});var lA=x(dn=>{"use strict";p();Object.defineProperty(dn,"__esModule",{value:!0});dn.TolerantDocumentParser=dn.RESYNC_TOKENS=void 0;dn.isResyncToken=cA;dn.tokenTypeName=K5;dn.makeLiquidErrorNode=uA;var z5=R_(),hs=Yt(),G5=Qe(),J5=Ur();dn.RESYNC_TOKENS=new Set([hs.TokenType.LiquidTagOpen,hs.TokenType.LiquidVariableOutputOpen,hs.TokenType.HtmlTagOpen,hs.TokenType.HtmlCloseTagOpen,hs.TokenType.HtmlCommentOpen,hs.TokenType.HtmlDoctypeOpen,hs.TokenType.EndOfInput]);function cA(e){return dn.RESYNC_TOKENS.has(e)}function K5(e){return e}function uA(e,t,r,n,i){return{type:G5.NodeTypes.LiquidErrorNode,position:{start:e,end:t},source:r,message:n,found:i}}var B_=class extends z5.DocumentParser{isTolerant(){return!0}parseNode(){let t=this.peek(),r=this.getPosition();try{return super.parseNode()}catch(n){if(!(n instanceof J5.LiquidHTMLASTParsingError))throw n;let i=this.getSource(),s=this.peek().type;for(this.getPosition()<=r&&this.advance();!this.isAtEnd()&&!cA(this.peek().type);)this.advance();let a=this.peek().start;return uA(t.start,a,i,n.message,s)}}};dn.TolerantDocumentParser=B_});var hA=x(kc=>{"use strict";p();Object.defineProperty(kc,"__esModule",{value:!0});kc.toTolerantLiquidAST=X5;kc.toTolerantLiquidHtmlAST=Z5;kc.findErrorNodeAtOffset=e9;var Q5=Sa(),fA=lA(),dA=Yt(),pA=ka(),Y5=Qe();function X5(e,t={allowUnclosedDocumentNode:!0,mode:"tolerant"}){let r=t.environment??pA.Environment.default(),n=(0,dA.tokenize)(e);return new fA.TolerantDocumentParser(n,e,r,!1,t.allowUnclosedDocumentNode).parseDocument()}function Z5(e,t={allowUnclosedDocumentNode:!0,mode:"tolerant"}){let r=t.environment??pA.Environment.default(),n=(0,dA.tokenize)(e);return new fA.TolerantDocumentParser(n,e,r,!0,t.allowUnclosedDocumentNode).parseDocument()}function e9(e,t){let r=new Map,n=[];if((0,Q5.walk)(e,(o,c)=>{r.set(o,c),o.type===Y5.NodeTypes.LiquidErrorNode&&t>=o.position.start&&t<=o.position.end&&n.push(o)}),n.length===0)return null;let i=o=>{let c=[],l=r.get(o);for(;l!==void 0;)c.push(l),l=r.get(l);return c.reverse()},s=n[0],a=i(s).length;for(let o=1;o<n.length;o++){let c=i(n[o]).length;c>a&&(s=n[o],a=c)}return{node:s,ancestors:i(s)}}});var mA=x(Qf=>{"use strict";p();Object.defineProperty(Qf,"__esModule",{value:!0});Qf.getConditionalComment=void 0;var t9=/(<!--\[if[^\]]*]>)((.|\n)*)(<!\[endif\]-->)$/,r9=e=>{let t=e.match(t9);if(t)return{startTag:t[1],body:t[2].trim(),endTag:t[4]}};Qf.getConditionalComment=r9});var yA=x(ms=>{"use strict";p();Object.defineProperty(ms,"__esModule",{value:!0});ms.LaxTagRecoveryError=void 0;ms.laxRecoverVariable=a9;ms.laxRecoverTagMarkup=o9;ms.laxRecoverWhenValues=c9;var V_=oi(),$_=vt(),n9=Rf(),i9=cc(),gA=Re(),s9={parseLiquidStatement(e,t,r,n){throw new Error("lax-recover: nested statement parsing is not supported during recovery")}};function a9(e,t,r){try{let n=(0,$_.tokenizeMarkup)(e,r);return new V_.MarkupParser(n,t,r,r+e.length).enableLax().liquidVariable()}catch{return}}function o9(e,t,r,n,i){let s=n9.builtinTags[e];if(!s||s.kind!==gA.TagKind.Tag&&s.kind!==gA.TagKind.Block)throw new Yf(`Unknown tag '${e}'`);if((e==="increment"||e==="decrement")&&t.trim()==="")return;let a=(0,$_.tokenizeMarkup)(t,n),o=new V_.MarkupParser(a,r,n,i).enableLax();return s.parse(e,o,s9)}var Yf=class extends Error{constructor(t){super(t),this.name="LaxTagRecoveryError"}};ms.LaxTagRecoveryError=Yf;function c9(e,t,r,n){try{let i=(0,$_.tokenizeMarkup)(e,r),s=new V_.MarkupParser(i,t,r,n).enableLax();return(0,i9.whenBranchParse)("when",s)}catch{return}}});var oe=x(me=>{"use strict";p();var u9=me&&me.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),U_=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&u9(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.LaxTagRecoveryError=me.laxRecoverWhenValues=me.laxRecoverTagMarkup=me.laxRecoverVariable=me.builtinTags=me.MarkupParser=me.MarkupTokenType=me.tokenizeMarkup=me.TokenType=me.tokenize=me.getConditionalComment=me.BLOCKS=me.VOID_ELEMENTS=me.RAW_TAGS=me.TAGS_WITHOUT_MARKUP=me.toTolerantLiquidHtmlAST=me.toTolerantLiquidAST=me.findErrorNodeAtOffset=void 0;U_(Sa(),me);U_(Qe(),me);U_(Ur(),me);var H_=hA();Object.defineProperty(me,"findErrorNodeAtOffset",{enumerable:!0,get:function(){return H_.findErrorNodeAtOffset}});Object.defineProperty(me,"toTolerantLiquidAST",{enumerable:!0,get:function(){return H_.toTolerantLiquidAST}});Object.defineProperty(me,"toTolerantLiquidHtmlAST",{enumerable:!0,get:function(){return H_.toTolerantLiquidHtmlAST}});var Xf=x_();Object.defineProperty(me,"TAGS_WITHOUT_MARKUP",{enumerable:!0,get:function(){return Xf.TAGS_WITHOUT_MARKUP}});Object.defineProperty(me,"RAW_TAGS",{enumerable:!0,get:function(){return Xf.RAW_TAGS}});Object.defineProperty(me,"VOID_ELEMENTS",{enumerable:!0,get:function(){return Xf.VOID_ELEMENTS}});Object.defineProperty(me,"BLOCKS",{enumerable:!0,get:function(){return Xf.BLOCKS}});var l9=mA();Object.defineProperty(me,"getConditionalComment",{enumerable:!0,get:function(){return l9.getConditionalComment}});var _A=Yt();Object.defineProperty(me,"tokenize",{enumerable:!0,get:function(){return _A.tokenize}});Object.defineProperty(me,"TokenType",{enumerable:!0,get:function(){return _A.TokenType}});var vA=vt();Object.defineProperty(me,"tokenizeMarkup",{enumerable:!0,get:function(){return vA.tokenizeMarkup}});Object.defineProperty(me,"MarkupTokenType",{enumerable:!0,get:function(){return vA.MarkupTokenType}});var f9=oi();Object.defineProperty(me,"MarkupParser",{enumerable:!0,get:function(){return f9.MarkupParser}});var d9=Rf();Object.defineProperty(me,"builtinTags",{enumerable:!0,get:function(){return d9.builtinTags}});var Zf=yA();Object.defineProperty(me,"laxRecoverVariable",{enumerable:!0,get:function(){return Zf.laxRecoverVariable}});Object.defineProperty(me,"laxRecoverTagMarkup",{enumerable:!0,get:function(){return Zf.laxRecoverTagMarkup}});Object.defineProperty(me,"laxRecoverWhenValues",{enumerable:!0,get:function(){return Zf.laxRecoverWhenValues}});Object.defineProperty(me,"LaxTagRecoveryError",{enumerable:!0,get:function(){return Zf.LaxTagRecoveryError}})});var z_=x((Ome,W_)=>{p();var td=process||{},bA=td.argv||[],ed=td.env||{},p9=!(ed.NO_COLOR||bA.includes("--no-color"))&&(!!ed.FORCE_COLOR||bA.includes("--color")||td.platform==="win32"||(td.stdout||{}).isTTY&&ed.TERM!=="dumb"||!!ed.CI),h9=(e,t,r=e)=>n=>{let i=""+n,s=i.indexOf(t,e.length);return~s?e+m9(i,t,r,s)+t:e+i+t},m9=(e,t,r,n)=>{let i="",s=0;do i+=e.substring(s,n)+r,s=n+t.length,n=e.indexOf(t,s);while(~n);return i+e.substring(s)},kA=(e=p9)=>{let t=e?h9:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};W_.exports=kA();W_.exports.createColors=kA});var id=x((Pme,TA)=>{"use strict";p();var rd=/[\t\n\f\r "#'()/;[\\\]{}]/g,nd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g9=/.[\r\n"'(/\\]/,SA=/[\da-f]/i;TA.exports=function(t,r={}){let n=t.css.valueOf(),i=r.ignoreErrors,s,a,o,c,l,f,m,d,g,_,k=n.length,b=0,v=[],w=[],T=-1;function y(){return b}function A(B){throw t.error("Unclosed "+B,b)}function O(){return w.length===0&&b>=k}function N(B){if(w.length)return w.pop();if(b>=k)return;let M=B?B.ignoreUnclosed:!1;switch(s=n.charCodeAt(b),s){case 10:case 32:case 9:case 13:case 12:{c=b;do c+=1,s=n.charCodeAt(c);while(s===32||s===10||s===9||s===13||s===12);f=["space",n.slice(b,c)],b=c-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let L=String.fromCharCode(s);f=[L,L,b];break}case 40:{if(_=v.length?v.pop()[1]:"",g=n.charCodeAt(b+1),_==="url"&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){c=b;do{if(m=!1,c=n.indexOf(")",c+1),c===-1)if(i||M){c=b;break}else A("bracket");for(d=c;n.charCodeAt(d-1)===92;)d-=1,m=!m}while(m);f=["brackets",n.slice(b,c+1),b,c],b=c}else b<=T?f=["(","(",b]:(c=n.indexOf(")",b+1),a=n.slice(b,c+1),c===-1||g9.test(a)?(T=c===-1?k:c,f=["(","(",b]):(f=["brackets",a,b,c],b=c));break}case 39:case 34:{l=s===39?"'":'"',c=b;do{if(m=!1,c=n.indexOf(l,c+1),c===-1)if(i||M){c=b+1;break}else A("string");for(d=c;n.charCodeAt(d-1)===92;)d-=1,m=!m}while(m);f=["string",n.slice(b,c+1),b,c],b=c;break}case 64:{rd.lastIndex=b+1,rd.test(n),rd.lastIndex===0?c=n.length-1:c=rd.lastIndex-2,f=["at-word",n.slice(b,c+1),b,c],b=c;break}case 92:{for(c=b,o=!0;n.charCodeAt(c+1)===92;)c+=1,o=!o;if(s=n.charCodeAt(c+1),o&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(c+=1,SA.test(n.charAt(c)))){for(;SA.test(n.charAt(c+1));)c+=1;n.charCodeAt(c+1)===32&&(c+=1)}f=["word",n.slice(b,c+1),b,c],b=c;break}default:{s===47&&n.charCodeAt(b+1)===42?(c=n.indexOf("*/",b+2)+1,c===0&&(i||M?c=n.length:A("comment")),f=["comment",n.slice(b,c+1),b,c],b=c):(nd.lastIndex=b+1,nd.test(n),nd.lastIndex===0?c=n.length-1:c=nd.lastIndex-2,f=["word",n.slice(b,c+1),b,c],v.push(f),b=c);break}}return b++,f}function q(B){w.push(B)}return{back:q,endOfFile:O,nextToken:N,position:y}}});var G_=x((Lme,EA)=>{"use strict";p();var Ut=z_(),y9=id(),wA;function _9(e){wA=e}var v9={";":Ut.yellow,":":Ut.yellow,"(":Ut.cyan,")":Ut.cyan,"[":Ut.yellow,"]":Ut.yellow,"{":Ut.yellow,"}":Ut.yellow,"at-word":Ut.cyan,brackets:Ut.cyan,call:Ut.cyan,class:Ut.yellow,comment:Ut.gray,hash:Ut.magenta,string:Ut.green};function b9([e,t],r){if(e==="word"){if(t[0]===".")return"class";if(t[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return e}function xA(e){let t=y9(new wA(e),{ignoreErrors:!0}),r="";for(;!t.endOfFile();){let n=t.nextToken(),i=v9[b9(n,t)];i?r+=n[1].split(/\r?\n/).map(s=>i(s)).join(`
31
+ `):r+=n[1]}return r}xA.registerInput=_9;EA.exports=xA});var sd=x((Ime,NA)=>{"use strict";p();var AA=z_(),OA=G_(),Sc=class e extends Error{constructor(t,r,n,i,s,a){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),i&&(this.source=i),a&&(this.plugin=a),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;t==null&&(t=AA.isColorSupported);let n=f=>f,i=f=>f,s=f=>f;if(t){let{bold:f,gray:m,red:d}=AA.createColors(!0);i=g=>f(d(g)),n=g=>m(g),OA&&(s=g=>OA(g))}let a=r.split(/\r?\n/),o=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length;return a.slice(o,c).map((f,m)=>{let d=o+1+m,g=" "+(" "+d).slice(-l)+" | ";if(d===this.line){if(f.length>160){let k=20,b=Math.max(0,this.column-k),v=Math.max(this.column+k,this.endColumn+k),w=f.slice(b,v),T=n(g.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,k-1)).replace(/[^\t]/g," ");return i(">")+n(g)+s(w)+`
32
+ `+T+i("^")}let _=n(g.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(g)+s(f)+`
33
+ `+_+i("^")}return" "+n(g)+s(f)}).join(`
34
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
35
+
36
+ `+t+`
37
+ `),this.name+": "+this.message+t}};NA.exports=Sc;Sc.default=Sc});var J_=x((Rme,IA)=>{"use strict";p();var k9=/(<)(\/?style\b)/gi,S9=/(<)(!--)/g,T9=/[\t\n\f\r "#'()/;[\\\]{}]/;function Jr(e){return typeof e!="string"||!e.includes("<")?e:e.replace(k9,"\\3c $2").replace(S9,"\\3c $2")}var PA={after:`
38
+ `,beforeClose:`
39
+ `,beforeComment:`
40
+ `,beforeDecl:`
41
+ `,beforeOpen:" ",beforeRule:`
42
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function w9(e){return e[0].toUpperCase()+e.slice(1)}function qA(e,t){let r="@"+t.name,n=t.params?e.rawValue(t,"params"):"",i=t.raws.afterName;return typeof i>"u"?i=n?" ":"":i===""&&n&&!T9.test(n[0])&&(i=" "),r+i+n}function CA(e,t,r){let n=r.nodes,i=n.length-1;for(;i>0&&n[i].type==="comment";)i-=1;let s=e.raw(r,"semicolon"),a=r.type==="document";for(let o=n.length-1;o>=0;o--){let c=n[o],l=i!==o||s;!l&&o<n.length-1&&(c.type==="atrule"&&!c.nodes||c.type==="decl"&&c.prop.startsWith("--"))&&(l=!0),t.push({document:a,node:c,semicolon:l})}}function LA(e,t,r,n){let i=e.raw(r,"between","beforeOpen");e.builder(Jr(n+i)+"{",r,"start");let s=r.nodes&&r.nodes.length,a=()=>{let o=s?e.raw(r,"after"):e.raw(r,"after","emptyBody");o&&e.builder(Jr(o)),e.builder("}",r,"end"),r.type==="rule"&&r.raws.ownSemicolon&&e.builder(Jr(r.raws.ownSemicolon),r,"end")};s?(t.push(a),CA(e,t,r)):a()}var Tc=class e{constructor(t){this.builder=t}atrule(t,r){let n=qA(this,t);if(t.nodes)this.block(t,n);else{let i=(t.raws.between||"")+(r?";":"");this.builder(Jr(n+i),t)}}beforeAfter(t,r){let n;t.type==="decl"?n=this.raw(t,null,"beforeDecl"):t.type==="comment"?n=this.raw(t,null,"beforeComment"):r==="before"?n=this.raw(t,null,"beforeRule"):n=this.raw(t,null,"beforeClose");let i=t.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
43
+ `)){let a=this.raw(t,null,"indent");if(a.length)for(let o=0;o<s;o++)n+=a}return n}block(t,r){let n=this.raw(t,"between","beforeOpen");this.builder(Jr(r+n)+"{",t,"start");let i;t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(Jr(i)),this.builder("}",t,"end")}body(t){let r=e.prototype,n=["atrule","block","body","rule","stringify"].every(s=>this[s]===r[s]),i=[];for(CA(this,i,t);i.length>0;){let s=i.pop();if(typeof s=="function"){s();continue}let a=s.node,o=this.raw(a,"before");o&&this.builder(s.document?o:Jr(o)),n&&a.type==="rule"?LA(this,i,a,this.rawValue(a,"selector")):n&&a.type==="atrule"&&a.nodes?LA(this,i,a,qA(this,a)):this.stringify(a,s.semicolon)}}comment(t){let r=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder(Jr("/*"+r+t.text+n+"*/"),t)}decl(t,r){let n=t.raws,i=this.raw(t,"between","colon"),s=t.prop+i+this.rawValue(t,"value");t.important&&(s+=n.important||" !important"),r&&(s+=";"),this.builder(Jr(s),t)}document(t){this.body(t)}raw(t,r,n){let i;if(n||(n=r),r&&(i=t.raws[r],typeof i<"u"))return i;let s=t.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===t||s&&s.type==="document"))return"";if(!s)return PA[n];let a=t.root(),o=a.rawCache||(a.rawCache={});if(typeof o[n]<"u")return o[n];if(n==="before"||n==="after")return this.beforeAfter(t,n);{let c="raw"+w9(n);this[c]?i=this[c](a,t):a.walk(l=>{if(i=l.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=PA[n]),o[n]=i,i}rawBeforeClose(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
44
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(t,r){let n;return t.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
45
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,r){let n;return t.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
46
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let r;return t.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(t){let r;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
47
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(t){let r;return t.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk(n=>{let i=n.parent;if(i&&i!==t&&i.parent&&i.parent===t&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
48
+ `);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(t){let r;return t.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(t,r){let n=t[r],i=t.raws[r];return i&&i.value===n?i.raw:n}root(t){if(t.source&&t.source.input.hasBOM&&this.builder("\uFEFF",t,"start"),this.body(t),t.raws.after){let r=t.raws.after,n=t.parent&&t.parent.type==="document";this.builder(n?r:Jr(r))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(Jr(t.raws.ownSemicolon),t,"end")}stringify(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}};IA.exports=Tc;Tc.default=Tc});var wc=x((jme,MA)=>{"use strict";p();var x9=J_();function K_(e,t){new x9(t).stringify(e)}MA.exports=K_;K_.default=K_});var xc=x((Bme,Q_)=>{"use strict";p();Q_.exports.isClean=Symbol("isClean");Q_.exports.my=Symbol("my")});var Oc=x(($me,RA)=>{"use strict";p();var E9=sd(),A9=J_(),O9=wc(),{isClean:Ec,my:N9}=xc();function P9(e,t){let r=new e.constructor,n=[[e,r,t]];for(;n.length>0;){let[i,s,a]=n.pop();for(let o in i){if(!Object.prototype.hasOwnProperty.call(i,o)||o==="proxyCache")continue;let c=i[o],l=typeof c;if(o==="parent"&&l==="object")a&&(s[o]=a);else if(o==="source")s[o]=c;else if(Array.isArray(c)){let f=[];s[o]=f;for(let m of c){let d=new m.constructor;f.push(d),n.push([m,d,s])}}else{if(l==="object"&&c!==null){let f=new c.constructor;n.push([c,f,void 0]),c=f}s[o]=c}}}return r}function pn(e,t){if(t&&typeof t.offset<"u")return t.offset;let r=1,n=1,i=0;for(let s=0;s<e.length;s++){if(n===t.line&&r===t.column){i=s;break}e[s]===`
49
+ `?(r=1,n+=1):r+=1}return i}var Ac=class e{get proxyOf(){return this}constructor(t={}){this.raws={},this[Ec]=!1,this[N9]=!0;for(let r of Object.keys(t))if(r!=="__proto__")if(r==="nodes"){this.nodes=[];for(let n of t[r])typeof n.clone=="function"&&n.parent?this.append(n.clone()):this.append(n)}else this[r]=t[r]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let r in t)this[r]=t[r];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let r=P9(this);for(let n in t)r[n]=t[n];return r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}error(t,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(t,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new E9(t)}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:r==="root"?()=>t.root().toProxy():t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&t.markDirty()),!0}}}markClean(){this[Ec]=!0}markDirty(){if(this[Ec]){this[Ec]=!1;let t=this;for(;t=t.parent;)t[Ec]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:pn(r,this.source.start)};if(t.index)n=this.positionInside(t.index);else if(t.word){let s=r.slice(pn(r,this.source.start),pn(r,this.source.end)).indexOf(t.word);s!==-1&&(n=this.positionInside(s))}return n}positionInside(t){let r=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=pn(i,this.source.start),a=s+t;for(let o=s;o<a;o++)i[o]===`
50
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:a}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:pn(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:pn(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let a=r.slice(pn(r,this.source.start),pn(r,this.source.end)).indexOf(t.word);a!==-1&&(n=this.positionInside(a),i=this.positionInside(a+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:pn(r,t.start)}:typeof t.index=="number"&&(n=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:pn(r,t.end)}:typeof t.endIndex=="number"?i=this.positionInside(t.endIndex):typeof t.index=="number"&&(i=this.positionInside(t.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(t,r){return new A9().raw(this,t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,n=!1;for(let i of t)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,r){let n=r==null;r=r||new Map;let i=[],s=[[this,i,0]];for(let o=0;o<s.length;o++){let[c,l,f]=s[o],m={};l[f]=m;for(let d in c){if(!Object.prototype.hasOwnProperty.call(c,d)||d==="parent"||d==="proxyCache")continue;let g=c[d];if(Array.isArray(g)){let _=[];m[d]=_;for(let k=0;k<g.length;k++){let b=g[k];typeof b=="object"&&b.toJSON?b.toJSON===e.prototype.toJSON?s.push([b,_,k]):_[k]=b.toJSON(null,r):_[k]=b}}else if(typeof g=="object"&&g.toJSON)g.toJSON===e.prototype.toJSON?s.push([g,m,d]):m[d]=g.toJSON(null,r);else if(d==="source"){if(g==null)continue;let _=r.get(g.input);_==null&&(_=r.size,r.set(g.input,_)),m[d]={end:g.end,inputId:_,start:g.start}}else m[d]=g}}let a=i[0];return n&&(a.inputs=[...r.keys()].map(o=>o.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=O9){t.stringify&&(t=t.stringify);let r="";return t(this,n=>{r+=n}),r}warn(t,r,n={}){let i={node:this};for(let s in n)i[s]=n[s];return t.warn(r,i)}};RA.exports=Ac;Ac.default=Ac});var La=x((Hme,DA)=>{"use strict";p();var q9=Oc(),Nc=class extends q9{constructor(t){super(t),this.type="comment"}};DA.exports=Nc;Nc.default=Nc});var qc=x((zme,jA)=>{"use strict";p();var L9=Oc(),Pc=class extends L9{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}};jA.exports=Pc;Pc.default=Pc});var Fn=x((Jme,zA)=>{"use strict";p();var BA=La(),VA=qc(),FA=Oc(),{isClean:$A,my:UA}=xc(),Y_,HA,WA,X_;function C9(e){let t=e.slice();for(;t.length>0;){let r=t.pop();if(delete r.source,r.nodes){r.nodes=r.nodes.slice();for(let n of r.nodes)t.push(n)}}return e.slice()}function I9(e){let t=[e];for(;t.length>0;){let r=t.pop();if(r[$A]=!1,r.proxyOf.nodes)for(let n of r.proxyOf.nodes)t.push(n)}}var hn=class e extends FA{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let r of t){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(t){let r=[this];for(;r.length>0;){let n=r.pop();if(n!==this&&n.cleanRaws!==e.prototype.cleanRaws){n.cleanRaws(t);continue}if(FA.prototype.cleanRaws.call(n,t),n.nodes)for(let i of n.nodes)r.push(i)}}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=t(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){return r==="proxyOf"?t:t[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>t[r](...n.map(i=>typeof i=="function"?(s,a)=>i(s.toProxy(),a):i)):r==="every"||r==="some"?n=>t[r]((i,...s)=>n(i.toProxy(),...s)):r==="root"?()=>t.root().toProxy():r==="nodes"?t.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?t[r].toProxy():t[r]:t[r]},set(t,r,n){return t[r]===n||(t[r]=n,(r==="name"||r==="params"||r==="selector")&&t.markDirty()),!0}}}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,r){let n=this.index(t),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let a of i)this.proxyOf.nodes.splice(n+1,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n<s&&(this.indexes[a]=s+i.length);return this.markDirty(),this}insertBefore(t,r){let n=this.index(t),i=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(t);for(let o of s)this.proxyOf.nodes.splice(n,0,o);let a;for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+s.length);return this.markDirty(),this}normalize(t,r){if(typeof t=="string")t=C9(HA(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let i of t)i.parent&&i.parent.removeChild(i,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let i of t)i.parent&&i.parent.removeChild(i,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new VA(t)]}else if(t.selector||t.selectors)t=[new X_(t)];else if(t.name)t=[new Y_(t)];else if(t.text)t=[new BA(t)];else throw new Error("Unknown node type in node creation");return t.map(i=>(i[UA]||e.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[$A]&&I9(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...t){t=t.reverse();for(let r of t){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=t&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(t,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let r=[{iterator:this.getIterator(),node:this.proxyOf}];for(;r.length>0;){let{iterator:n,node:i}=r[r.length-1],s=i.indexes[n];if(s>=i.proxyOf.nodes.length){delete i.indexes[n],r.pop();let c=r[r.length-1];c&&(c.node.indexes[c.iterator]+=1);continue}let a=i.proxyOf.nodes[s],o;try{o=t(a,s)}catch(c){throw a.addToError(c)}if(o===!1){for(let c of r)delete c.node.indexes[c.iterator];return!1}a.walk&&a.proxyOf.nodes?r.push({iterator:a.getIterator(),node:a}):i.indexes[n]+=1}}walkAtRules(t,r){return r?t instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&t.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===t)return r(n,i)}):(r=t,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(t){return this.walk((r,n)=>{if(r.type==="comment")return t(r,n)})}walkDecls(t,r){return r?t instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&t.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===t)return r(n,i)}):(r=t,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(t,r){return r?t instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&t.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===t)return r(n,i)}):(r=t,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};hn.registerParse=e=>{HA=e};hn.registerRule=e=>{X_=e};hn.registerAtRule=e=>{Y_=e};hn.registerRoot=e=>{WA=e};zA.exports=hn;hn.default=hn;hn.rebuild=e=>{let t=[e];for(;t.length>0;){let r=t.pop();if(r.type==="atrule"?Object.setPrototypeOf(r,Y_.prototype):r.type==="rule"?Object.setPrototypeOf(r,X_.prototype):r.type==="decl"?Object.setPrototypeOf(r,VA.prototype):r.type==="comment"?Object.setPrototypeOf(r,BA.prototype):r.type==="root"&&Object.setPrototypeOf(r,WA.prototype),r[UA]=!0,r.nodes)for(let n of r.nodes)t.push(n)}}});var ad=x((Qme,JA)=>{"use strict";p();var GA=Fn(),Ca=class extends GA{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};JA.exports=Ca;Ca.default=Ca;GA.registerAtRule(Ca)});var od=x((Xme,YA)=>{"use strict";p();var M9=Fn(),KA,QA,gs=class extends M9{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new KA(new QA,this,t).stringify()}};gs.registerLazyResult=e=>{KA=e};gs.registerProcessor=e=>{QA=e};YA.exports=gs;gs.default=gs});var ZA=x((ege,XA)=>{p();var R9="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",D9=(e,t=21)=>(r=t)=>{let n="",i=r|0;for(;i--;)n+=e[Math.random()*e.length|0];return n},j9=(e=21)=>{let t="",r=e|0;for(;r--;)t+=R9[Math.random()*64|0];return t};XA.exports={nanoid:j9,customAlphabet:D9}});var tO=x(Z_=>{p();var eO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Z_.encode=function(e){if(0<=e&&e<eO.length)return eO[e];throw new TypeError("Must be between 0 and 63: "+e)};Z_.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,o=43,c=47,l=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+f:e==o?62:e==c?63:-1}});var rv=x(tv=>{p();var rO=tO(),ev=5,nO=1<<ev,iO=nO-1,sO=nO;function F9(e){return e<0?(-e<<1)+1:(e<<1)+0}function B9(e){var t=(e&1)===1,r=e>>1;return t?-r:r}tv.encode=function(t){var r="",n,i=F9(t);do n=i&iO,i>>>=ev,i>0&&(n|=sO),r+=rO.encode(n);while(i>0);return r};tv.decode=function(t,r,n){var i=t.length,s=0,a=0,o,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=rO.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(c&sO),c&=iO,s=s+(c<<a),a+=ev}while(o);n.value=B9(s),n.rest=r}});var Ma=x(St=>{p();function V9(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}St.getArg=V9;var aO=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,$9=/^data:.+\,.+$/;function Lc(e){var t=e.match(aO);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}St.urlParse=Lc;function Ia(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}St.urlGenerate=Ia;var U9=32;function H9(e){var t=[];return function(r){for(var n=0;n<t.length;n++)if(t[n].input===r){var i=t[0];return t[0]=t[n],t[n]=i,t[0].result}var s=e(r);return t.unshift({input:r,result:s}),t.length>U9&&t.pop(),s}}var nv=H9(function(t){var r=t,n=Lc(t);if(n){if(!n.path)return t;r=n.path}for(var i=St.isAbsolute(r),s=[],a=0,o=0;;)if(a=o,o=r.indexOf("/",a),o===-1){s.push(r.slice(a));break}else for(s.push(r.slice(a,o));o<r.length&&r[o]==="/";)o++;for(var c,l=0,o=s.length-1;o>=0;o--)c=s[o],c==="."?s.splice(o,1):c===".."?l++:l>0&&(c===""?(s.splice(o+1,l),l=0):(s.splice(o,2),l--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Ia(n)):r});St.normalize=nv;function oO(e,t){e===""&&(e="."),t===""&&(t=".");var r=Lc(t),n=Lc(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ia(r);if(r||t.match($9))return t;if(n&&!n.host&&!n.path)return n.host=t,Ia(n);var i=t.charAt(0)==="/"?t:nv(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Ia(n)):i}St.join=oO;St.isAbsolute=function(e){return e.charAt(0)==="/"||aO.test(e)};function W9(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}St.relative=W9;var cO=(function(){var e=Object.create(null);return!("__proto__"in e)})();function uO(e){return e}function z9(e){return lO(e)?"$"+e:e}St.toSetString=cO?uO:z9;function G9(e){return lO(e)?e.slice(1):e}St.fromSetString=cO?uO:G9;function lO(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function J9(e,t,r){var n=Bn(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Bn(e.name,t.name)}St.compareByOriginalPositions=J9;function K9(e,t,r){var n;return n=e.originalLine-t.originalLine,n!==0||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Bn(e.name,t.name)}St.compareByOriginalPositionsNoSource=K9;function Q9(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Bn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Bn(e.name,t.name)}St.compareByGeneratedPositionsDeflated=Q9;function Y9(e,t,r){var n=e.generatedColumn-t.generatedColumn;return n!==0||r||(n=Bn(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Bn(e.name,t.name)}St.compareByGeneratedPositionsDeflatedNoLine=Y9;function Bn(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function X9(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Bn(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Bn(e.name,t.name)}St.compareByGeneratedPositionsInflated=X9;function Z9(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}St.parseSourceMapInput=Z9;function e6(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Lc(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=oO(Ia(n),t)}return nv(t)}St.computeSourceURL=e6});var av=x(fO=>{p();var iv=Ma(),sv=Object.prototype.hasOwnProperty,ys=typeof Map<"u";function Vn(){this._array=[],this._set=ys?new Map:Object.create(null)}Vn.fromArray=function(t,r){for(var n=new Vn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};Vn.prototype.size=function(){return ys?this._set.size:Object.getOwnPropertyNames(this._set).length};Vn.prototype.add=function(t,r){var n=ys?t:iv.toSetString(t),i=ys?this.has(t):sv.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(ys?this._set.set(t,s):this._set[n]=s)};Vn.prototype.has=function(t){if(ys)return this._set.has(t);var r=iv.toSetString(t);return sv.call(this._set,r)};Vn.prototype.indexOf=function(t){if(ys){var r=this._set.get(t);if(r>=0)return r}else{var n=iv.toSetString(t);if(sv.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Vn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Vn.prototype.toArray=function(){return this._array.slice()};fO.ArraySet=Vn});var hO=x(pO=>{p();var dO=Ma();function t6(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||dO.compareByGeneratedPositionsInflated(e,t)<=0}function cd(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}cd.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};cd.prototype.add=function(t){t6(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};cd.prototype.toArray=function(){return this._sorted||(this._array.sort(dO.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};pO.MappingList=cd});var ov=x(mO=>{p();var Cc=rv(),ot=Ma(),ud=av().ArraySet,r6=hO().MappingList;function xr(e){e||(e={}),this._file=ot.getArg(e,"file",null),this._sourceRoot=ot.getArg(e,"sourceRoot",null),this._skipValidation=ot.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=ot.getArg(e,"ignoreInvalidMapping",!1),this._sources=new ud,this._names=new ud,this._mappings=new r6,this._sourcesContents=null}xr.prototype._version=3;xr.fromSourceMap=function(t,r){var n=t.sourceRoot,i=new xr(Object.assign(r||{},{file:t.file,sourceRoot:n}));return t.eachMapping(function(s){var a={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(a.source=s.source,n!=null&&(a.source=ot.relative(n,a.source)),a.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(a.name=s.name)),i.addMapping(a)}),t.sources.forEach(function(s){var a=s;n!==null&&(a=ot.relative(n,s)),i._sources.has(a)||i._sources.add(a);var o=t.sourceContentFor(s);o!=null&&i.setSourceContent(s,o)}),i};xr.prototype.addMapping=function(t){var r=ot.getArg(t,"generated"),n=ot.getArg(t,"original",null),i=ot.getArg(t,"source",null),s=ot.getArg(t,"name",null);!this._skipValidation&&this._validateMapping(r,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};xr.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=ot.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ot.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ot.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};xr.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=ot.relative(s,i));var a=new ud,o=new ud;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=ot.join(n,c.source)),s!=null&&(c.source=ot.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var f=c.source;f!=null&&!a.has(f)&&a.add(f);var m=c.name;m!=null&&!o.has(m)&&o.add(m)},this),this._sources=a,this._names=o,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=ot.join(n,c)),s!=null&&(c=ot.relative(s,c)),this.setSourceContent(c,l))},this)};xr.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};xr.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,o="",c,l,f,m,d=this._mappings.toArray(),g=0,_=d.length;g<_;g++){if(l=d[g],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(g>0){if(!ot.compareByGeneratedPositionsInflated(l,d[g-1]))continue;c+=","}c+=Cc.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(m=this._sources.indexOf(l.source),c+=Cc.encode(m-a),a=m,c+=Cc.encode(l.originalLine-1-i),i=l.originalLine-1,c+=Cc.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(f=this._names.indexOf(l.name),c+=Cc.encode(f-s),s=f)),o+=c}return o};xr.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ot.relative(r,n));var i=ot.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};xr.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};xr.prototype.toString=function(){return JSON.stringify(this.toJSON())};mO.SourceMapGenerator=xr});var gO=x(_s=>{p();_s.GREATEST_LOWER_BOUND=1;_s.LEAST_UPPER_BOUND=2;function cv(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,o=i(r,n[a],!0);return o===0?a:o>0?t-a>1?cv(a,t,r,n,i,s):s==_s.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?cv(e,a,r,n,i,s):s==_s.LEAST_UPPER_BOUND?a:e<0?-1:e}_s.search=function(t,r,n,i){if(r.length===0)return-1;var s=cv(-1,r.length,t,r,n,i||_s.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var vO=x(_O=>{p();function n6(e){function t(i,s,a){var o=i[s];i[s]=i[a],i[a]=o}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,a,o){if(a<o){var c=r(a,o),l=a-1;t(i,c,o);for(var f=i[o],m=a;m<o;m++)s(i[m],f,!1)<=0&&(l+=1,t(i,l,m));t(i,l+1,m);var d=l+1;n(i,s,a,d-1),n(i,s,d+1,o)}}return n}function i6(e){let t=n6.toString();return new Function(`return ${t}`)()(e)}var yO=new WeakMap;_O.quickSort=function(e,t,r=0){let n=yO.get(t);n===void 0&&(n=i6(t),yO.set(t,n)),n(e,t,r,e.length-1)}});var SO=x(ld=>{p();var ie=Ma(),lv=gO(),Ra=av().ArraySet,s6=rv(),Ic=vO().quickSort;function Ue(e,t){var r=e;return typeof e=="string"&&(r=ie.parseSourceMapInput(e)),r.sections!=null?new Kr(r,t):new At(r,t)}Ue.fromSourceMap=function(e,t){return At.fromSourceMap(e,t)};Ue.prototype._version=3;Ue.prototype.__generatedMappings=null;Object.defineProperty(Ue.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ue.prototype.__originalMappings=null;Object.defineProperty(Ue.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ue.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};Ue.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Ue.GENERATED_ORDER=1;Ue.ORIGINAL_ORDER=2;Ue.GREATEST_LOWER_BOUND=1;Ue.LEAST_UPPER_BOUND=2;Ue.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||Ue.GENERATED_ORDER,a;switch(s){case Ue.GENERATED_ORDER:a=this._generatedMappings;break;case Ue.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,c=t.bind(i),l=this._names,f=this._sources,m=this._sourceMapURL,d=0,g=a.length;d<g;d++){var _=a[d],k=_.source===null?null:f.at(_.source);k!==null&&(k=ie.computeSourceURL(o,k,m)),c({source:k,generatedLine:_.generatedLine,generatedColumn:_.generatedColumn,originalLine:_.originalLine,originalColumn:_.originalColumn,name:_.name===null?null:l.at(_.name)})}};Ue.prototype.allGeneratedPositionsFor=function(t){var r=ie.getArg(t,"line"),n={source:ie.getArg(t,"source"),originalLine:r,originalColumn:ie.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ie.compareByOriginalPositions,lv.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)i.push({line:ie.getArg(a,"generatedLine",null),column:ie.getArg(a,"generatedColumn",null),lastColumn:ie.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==c;)i.push({line:ie.getArg(a,"generatedLine",null),column:ie.getArg(a,"generatedColumn",null),lastColumn:ie.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};ld.SourceMapConsumer=Ue;function At(e,t){var r=e;typeof e=="string"&&(r=ie.parseSourceMapInput(e));var n=ie.getArg(r,"version"),i=ie.getArg(r,"sources"),s=ie.getArg(r,"names",[]),a=ie.getArg(r,"sourceRoot",null),o=ie.getArg(r,"sourcesContent",null),c=ie.getArg(r,"mappings"),l=ie.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=ie.normalize(a)),i=i.map(String).map(ie.normalize).map(function(f){return a&&ie.isAbsolute(a)&&ie.isAbsolute(f)?ie.relative(a,f):f}),this._names=Ra.fromArray(s.map(String),!0),this._sources=Ra.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return ie.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=c,this._sourceMapURL=t,this.file=l}At.prototype=Object.create(Ue.prototype);At.prototype.consumer=Ue;At.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=ie.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};At.fromSourceMap=function(t,r){var n=Object.create(At.prototype),i=n._names=Ra.fromArray(t._names.toArray(),!0),s=n._sources=Ra.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(g){return ie.computeSourceURL(n.sourceRoot,g,r)});for(var a=t._mappings.toArray().slice(),o=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,f=a.length;l<f;l++){var m=a[l],d=new kO;d.generatedLine=m.generatedLine,d.generatedColumn=m.generatedColumn,m.source&&(d.source=s.indexOf(m.source),d.originalLine=m.originalLine,d.originalColumn=m.originalColumn,m.name&&(d.name=i.indexOf(m.name)),c.push(d)),o.push(d)}return Ic(n.__originalMappings,ie.compareByOriginalPositions),n};At.prototype._version=3;Object.defineProperty(At.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function kO(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var uv=ie.compareByGeneratedPositionsDeflatedNoLine;function bO(e,t){let r=e.length,n=e.length-t;if(!(n<=1))if(n==2){let i=e[t],s=e[t+1];uv(i,s)>0&&(e[t]=s,e[t+1]=i)}else if(n<20)for(let i=t;i<r;i++)for(let s=i;s>t;s--){let a=e[s-1],o=e[s];if(uv(a,o)<=0)break;e[s-1]=o,e[s]=a}else Ic(e,uv,t)}At.prototype._parseMappings=function(t,r){var n=1,i=0,s=0,a=0,o=0,c=0,l=t.length,f=0,m={},d={},g=[],_=[],k,b,v,w,T;let y=0;for(;f<l;)if(t.charAt(f)===";")n++,f++,i=0,bO(_,y),y=_.length;else if(t.charAt(f)===",")f++;else{for(k=new kO,k.generatedLine=n,w=f;w<l&&!this._charIsMappingSeparator(t,w);w++);for(b=t.slice(f,w),v=[];f<w;)s6.decode(t,f,d),T=d.value,f=d.rest,v.push(T);if(v.length===2)throw new Error("Found a source, but no line and column");if(v.length===3)throw new Error("Found a source and line, but no column");if(k.generatedColumn=i+v[0],i=k.generatedColumn,v.length>1&&(k.source=o+v[1],o+=v[1],k.originalLine=s+v[2],s=k.originalLine,k.originalLine+=1,k.originalColumn=a+v[3],a=k.originalColumn,v.length>4&&(k.name=c+v[4],c+=v[4])),_.push(k),typeof k.originalLine=="number"){let O=k.source;for(;g.length<=O;)g.push(null);g[O]===null&&(g[O]=[]),g[O].push(k)}}bO(_,y),this.__generatedMappings=_;for(var A=0;A<g.length;A++)g[A]!=null&&Ic(g[A],ie.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)};At.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return lv.search(t,r,s,a)};At.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};At.prototype.originalPositionFor=function(t){var r={generatedLine:ie.getArg(t,"line"),generatedColumn:ie.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",ie.compareByGeneratedPositionsDeflated,ie.getArg(t,"bias",Ue.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=ie.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=ie.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=ie.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:ie.getArg(i,"originalLine",null),column:ie.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};At.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};At.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=ie.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=ie.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};At.prototype.generatedPositionFor=function(t){var r=ie.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:ie.getArg(t,"line"),originalColumn:ie.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",ie.compareByOriginalPositions,ie.getArg(t,"bias",Ue.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:ie.getArg(s,"generatedLine",null),column:ie.getArg(s,"generatedColumn",null),lastColumn:ie.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ld.BasicSourceMapConsumer=At;function Kr(e,t){var r=e;typeof e=="string"&&(r=ie.parseSourceMapInput(e));var n=ie.getArg(r,"version"),i=ie.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ra,this._names=new Ra;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=ie.getArg(a,"offset"),c=ie.getArg(o,"line"),l=ie.getArg(o,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Ue(ie.getArg(a,"map"),t)}})}Kr.prototype=Object.create(Ue.prototype);Kr.prototype.constructor=Ue;Kr.prototype._version=3;Object.defineProperty(Kr.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});Kr.prototype.originalPositionFor=function(t){var r={generatedLine:ie.getArg(t,"line"),generatedColumn:ie.getArg(t,"column")},n=lv.search(r,this._sections,function(s,a){var o=s.generatedLine-a.generatedOffset.generatedLine;return o||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Kr.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Kr.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s||s==="")return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Kr.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(ie.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Kr.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var o=s[a],c=i.consumer._sources.at(o.source);c!==null&&(c=ie.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL)),this._sources.add(c),c=this._sources.indexOf(c);var l=null;o.name&&(l=i.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var f={source:c,generatedLine:o.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(i.generatedOffset.generatedLine===o.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Ic(this.__generatedMappings,ie.compareByGeneratedPositionsDeflated),Ic(this.__originalMappings,ie.compareByOriginalPositions)};ld.IndexedSourceMapConsumer=Kr});var wO=x(TO=>{p();var a6=ov().SourceMapGenerator,fd=Ma(),o6=/(\r?\n)/,c6=10,Da="$$$isSourceNode$$$";function ur(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Da]=!0,n!=null&&this.add(n)}ur.fromStringWithSourceMap=function(t,r,n){var i=new ur,s=t.split(o6),a=0,o=function(){var d=_(),g=_()||"";return d+g;function _(){return a<s.length?s[a++]:void 0}},c=1,l=0,f=null;return r.eachMapping(function(d){if(f!==null)if(c<d.generatedLine)m(f,o()),c++,l=0;else{var g=s[a]||"",_=g.substr(0,d.generatedColumn-l);s[a]=g.substr(d.generatedColumn-l),l=d.generatedColumn,m(f,_),f=d;return}for(;c<d.generatedLine;)i.add(o()),c++;if(l<d.generatedColumn){var g=s[a]||"";i.add(g.substr(0,d.generatedColumn)),s[a]=g.substr(d.generatedColumn),l=d.generatedColumn}f=d},this),a<s.length&&(f&&m(f,o()),i.add(s.splice(a).join(""))),r.sources.forEach(function(d){var g=r.sourceContentFor(d);g!=null&&(n!=null&&(d=fd.join(n,d)),i.setSourceContent(d,g))}),i;function m(d,g){if(d===null||d.source===void 0)i.add(g);else{var _=n?fd.join(n,d.source):d.source;i.add(new ur(d.originalLine,d.originalColumn,_,g,d.name))}}};ur.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Da]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ur.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Da]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ur.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Da]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};ur.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};ur.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[Da]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};ur.prototype.setSourceContent=function(t,r){this.sourceContents[fd.toSetString(t)]=r};ur.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Da]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(fd.fromSetString(i[r]),this.sourceContents[i[r]])};ur.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};ur.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new a6(t),i=!1,s=null,a=null,o=null,c=null;return this.walk(function(l,f){r.code+=l,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||o!==f.column||c!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,o=f.column,c=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var m=0,d=l.length;m<d;m++)l.charCodeAt(m)===c6?(r.line++,r.column=0,m+1===d?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(l,f){n.setSourceContent(l,f)}),{code:r.code,map:n}};TO.SourceNode=ur});var pd=x(dd=>{p();dd.SourceMapGenerator=ov().SourceMapGenerator;dd.SourceMapConsumer=SO().SourceMapConsumer;dd.SourceNode=wO().SourceNode});var fv=x((wge,OO)=>{"use strict";p();var{existsSync:u6,readFileSync:l6,realpathSync:f6}=ce("fs"),{dirname:hd,isAbsolute:d6,join:p6,relative:h6,sep:m6}=ce("path"),{SourceMapConsumer:xO,SourceMapGenerator:EO}=pd();function AO(e){try{return f6(e)}catch{return e}}function g6(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Mc=class{constructor(t,r){if(r.map===!1)return;r.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=hd(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new xO(this.json||this.text)),this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,a=t.match(i)||t.match(s);if(a)return decodeURIComponent(t.substr(a[0].length));let o=t.match(r)||t.match(n);if(o)return g6(t.substr(o[0].length));let c=t.slice(22);throw c=c.slice(0,c.indexOf(",")),new Error("Unsupported source map encoding "+c)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=t.lastIndexOf(r.pop()),i=t.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,i)))}loadFile(t,r,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(t)||!r)return;let i=h6(AO(hd(r)),AO(t));if(i===".."||i.startsWith(".."+m6)||d6(i))return}if(this.root=hd(t),u6(t))return this.mapFile=t,l6(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(t);if(n){let i=this.loadFile(n,t,!0);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof xO)return EO.fromSourceMap(r).toString();if(r instanceof EO)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;t&&(n=p6(hd(t),n));let i=this.loadFile(n,t,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}}startWith(t,r){return t?t.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};OO.exports=Mc;Mc.default=Mc});var Rc=x((Ege,CO)=>{"use strict";p();var{nanoid:y6}=ZA(),{isAbsolute:hv,resolve:mv}=ce("path"),{SourceMapConsumer:_6,SourceMapGenerator:v6}=pd(),{fileURLToPath:NO,pathToFileURL:md}=ce("url"),PO=sd(),b6=fv(),dv=G_(),pv=Symbol("lineToIndexCache"),k6=!!(_6&&v6),qO=!!(mv&&hv);function LO(e){if(e[pv])return e[pv];let t=e.css.split(`
51
+ `),r=new Array(t.length),n=0;for(let i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return e[pv]=r,r}var ja=class{get from(){return this.file||this.id}constructor(t,r={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!qO||/^\w+:\/\//.test(r.from)||hv(r.from)?this.file=r.from:this.file=mv(r.from)),qO&&k6){let n=new b6(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+y6(6)+">"),this.map&&(this.map.file=this.from)}error(t,r,n,i={}){let s,a,o,c,l;if(r&&typeof r=="object"){let m=r,d=n;if(typeof m.offset=="number"){c=m.offset;let g=this.fromOffset(c);r=g.line,n=g.col}else r=m.line,n=m.column,c=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){o=d.offset;let g=this.fromOffset(o);a=g.line,s=g.col}else a=d.line,s=d.column,o=this.fromLineAndColumn(d.line,d.column)}else if(n)c=this.fromLineAndColumn(r,n);else{c=r;let m=this.fromOffset(c);r=m.line,n=m.col}let f=this.origin(r,n,a,s);return f?l=new PO(t,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,i.plugin):l=new PO(t,a===void 0?r:{column:n,line:r},a===void 0?n:{column:s,line:a},this.css,this.file,i.plugin),l.input={column:n,endColumn:s,endLine:a,endOffset:o,line:r,offset:c,source:this.css},this.file&&(md&&(l.input.url=md(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,r){return LO(this)[t-1]+r-1}fromOffset(t){let r=LO(this),n=r[r.length-1],i=0;if(t>=n)i=r.length-1;else{let s=r.length-2,a;for(;i<s;)if(a=i+(s-i>>1),t<r[a])s=a-1;else if(t>=r[a+1])i=a+1;else{i=a;break}}return{col:t-r[i]+1,line:i+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:mv(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,n,i){if(!this.map)return!1;let s=this.map.consumer(),a=s.originalPositionFor({column:r-1,line:t});if(!a.source)return!1;let o;if(typeof n=="number"){let m=s.originalPositionFor({column:i-1,line:n});m.source&&(o=m)}let c;hv(a.source)?c=md(a.source):c=new URL(a.source,this.map.consumer().sourceRoot||md(this.map.mapFile));let l={column:a.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:a.line,url:c.toString()};if(c.protocol==="file:")if(NO)l.file=NO(c);else throw new Error("file: protocol is not available in this PostCSS build");let f=s.sourceContentFor(a.source);return f&&(l.source=f),l}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(t[r]=this[r]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}};CO.exports=ja;ja.default=ja;dv&&dv.registerInput&&dv.registerInput(ja)});var Fa=x((Oge,DO)=>{"use strict";p();var IO=Fn(),MO,RO,hi=class extends IO{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,r,n){let i=new Set;for(let a of Array.isArray(t)?t:[t])a&&typeof a=="object"&&!a.parent&&a.raws&&typeof a.raws.before<"u"&&i.add(a.raws);let s=super.normalize(t);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of s)i.has(a.raws)||(a.raws.before=r.raws.before)}return s}removeChild(t,r){let n=this.index(t);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new MO(new RO,this,t).stringify()}};hi.registerLazyResult=e=>{MO=e};hi.registerProcessor=e=>{RO=e};DO.exports=hi;hi.default=hi;IO.registerRoot(hi)});var gv=x((Pge,jO)=>{"use strict";p();var Dc={comma(e){return Dc.split(e,[","],!0)},space(e){let t=[" ",`
52
+ `," "];return Dc.split(e,t)},split(e,t,r){if(typeof e!="string")return[];let n=[],i="",s=!1,a=0,o=!1,c="",l=!1;for(let f of e)l?l=!1:f==="\\"?l=!0:o?f===c&&(o=!1):f==='"'||f==="'"?(o=!0,c=f):f==="("?a+=1:f===")"?a>0&&(a-=1):a===0&&t.includes(f)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=f;return(r||i!=="")&&n.push(i.trim()),n}};jO.exports=Dc;Dc.default=Dc});var gd=x((Lge,BO)=>{"use strict";p();var FO=Fn(),S6=gv(),Ba=class extends FO{get selectors(){return S6.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}};BO.exports=Ba;Ba.default=Ba;FO.registerRule(Ba)});var UO=x((Ige,$O)=>{"use strict";p();var T6=ad(),w6=La(),x6=qc(),E6=Rc(),A6=fv(),O6=Fa(),N6=gd();function VO(e,t){return e.inputs?e.inputs.map(r=>{let n={...r,__proto__:E6.prototype};return n.map&&(n.map={...n.map,__proto__:A6.prototype}),n}):t}function P6(e,t,r){let n={...e};if(delete n.inputs,delete n.nodes,n.source){let{inputId:s,...a}=n.source;n.source=a,s!=null&&(n.source.input=t[s])}let i;if(n.type==="root")i=new O6(n);else if(n.type==="decl")i=new x6(n);else if(n.type==="rule")i=new N6(n);else if(n.type==="comment")i=new w6(n);else if(n.type==="atrule")i=new T6(n);else throw new Error("Unknown node type: "+e.type);if(r){i.nodes=r;for(let s of r)s.parent=i}return i}function yd(e,t){if(Array.isArray(e))return e.map(i=>yd(i));let r,n=[{childIndex:0,children:[],inputs:VO(e,t),json:e}];for(;n.length>0;){let i=n[n.length-1],s=i.json.nodes;if(s&&i.childIndex<s.length){let o=s[i.childIndex];i.childIndex+=1,n.push({childIndex:0,children:[],inputs:VO(o,i.inputs),json:o});continue}n.pop();let a=P6(i.json,i.inputs,s?i.children:void 0);n.length>0?n[n.length-1].children.push(a):r=a}return r}$O.exports=yd;yd.default=yd});var _v=x((Rge,KO)=>{"use strict";p();var{dirname:_d,relative:WO,resolve:zO,sep:GO}=ce("path"),{SourceMapConsumer:JO,SourceMapGenerator:vd}=pd(),{pathToFileURL:HO}=ce("url"),q6=Rc(),L6=!!(JO&&vd),C6=!!(_d&&zO&&WO&&GO),yv=class{constructor(t,r,n,i){this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let r=`
53
+ `;this.css.includes(`\r
54
+ `)&&(r=`\r
55
+ `),this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),n=t.root||_d(t.file),i;this.mapOpts.sourcesContent===!1?(i=new JO(t.text),i.sourcesContent&&(i.sourcesContent=null)):i=t.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else if(this.css){let t;for(;(t=this.css.lastIndexOf("/*#"))!==-1;){let r=this.css.indexOf("*/",t+3);if(r===-1)break;for(;t>0&&this.css[t-1]===`
56
+ `;)t--;this.css=this.css.slice(0,t)+this.css.slice(r+2)}}}}generate(){if(this.clearAnnotation(),C6&&L6&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,r=>{t+=r}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=vd.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new vd({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new vd({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,a;this.stringify(this.root,(o,c,l)=>{if(this.css+=o,c&&l!=="end"&&(i.generated.line=t,i.generated.column=r-1,c.source&&c.source.start?(i.source=this.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=o.match(/\n/g),a?(t+=a.length,s=o.lastIndexOf(`
57
+ `),r=o.length-s):r+=o.length,c&&l!=="start"){let f=c.parent||{raws:{}};(!(c.type==="decl"||c.type==="atrule"&&!c.nodes)||c!==f.last||f.raws.semicolon)&&(c.source&&c.source.end?(i.source=this.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let n=this.opts.to?_d(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=_d(zO(n,this.mapOpts.annotation)));let i=WO(n,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let r=t.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let t=new q6(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!t[n]){t[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(HO){let n=HO(t).toString();return this.memoizedFileURLs.set(t,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;GO==="\\"&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}};KO.exports=yv});var kv=x((jge,XO)=>{"use strict";p();var I6=ad(),M6=La(),R6=qc(),D6=Fa(),QO=gd(),j6=id(),YO={empty:!0,space:!0};function F6(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}function vv(e,t,r){let n="";for(let i=t;i<r;i++)n+=e[i][1];return n}var bv=class{constructor(t){this.input=t,this.root=new D6,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new I6;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);let n,i,s,a=!1,o=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){o=!0;break}else if(n==="}"){if(c.length>0){for(s=c.length-1,i=c[s];i&&i[0]==="space";)i=c[--s];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(t);break}else c.push(t);else c.push(t);if(this.tokenizer.endOfFile()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),a&&(t=c[c.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),o&&(r.nodes=[],this.current=r)}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let n=0,i;for(let s=r-1;s>=0&&(i=t[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let r=0,n,i,s;for(let[a,o]of t.entries()){if(i=o,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=i}return!1}comment(t){let r=new M6;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let n=t[1].slice(2,-2);if(!n.trim())r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=j6(this.input)}decl(t,r){let n=new R6;this.init(n,t[0][2]);let i=t[t.length-1];i[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||F6(t)),n.source.end.offset++;let s=0;for(;t[s][0]!=="word";)s===t.length-1&&this.unknownWord([t[s]]),s++;n.raws.before+=vv(t,0,s),n.source.start=this.getPosition(t[s][2]);let a=s;for(;s<t.length;){let d=t[s][0];if(d===":"||d==="space"||d==="comment")break;s++}n.prop=vv(t,a,s);let o=s,c;for(;s<t.length&&(c=t[s],s++,c[0]!==":");)c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=vv(t,o,s),(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=s;for(;s<t.length;){let d=t[s][0];if(d!=="space"&&d!=="comment")break;s++}let f=t.slice(l,s);t=t.slice(s),this.precheckMissedSemicolon(t);for(let d=t.length-1;d>=0;d--){if(c=t[d],c[1].toLowerCase()==="!important"){n.important=!0;let g=this.stringFrom(t,d);g=this.spacesFromEnd(t)+g,g!==" !important"&&(n.raws.important=g);break}else if(c[1].toLowerCase()==="important"){let g=t.slice(0),_="";for(let k=d;k>0;k--){let b=g[k][0];if(_.trim().startsWith("!")&&b!=="space")break;_=g.pop()[1]+_}_.trim().startsWith("!")&&(n.important=!0,n.raws.important=_,t=g)}if(c[0]!=="space"&&c[0]!=="comment")break}t.some(d=>d[0]!=="space"&&d[0]!=="comment")&&(n.raws.between+=f.map(d=>d[1]).join(""),f=[]),this.raw(n,"value",f.concat(t),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new QO;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(t[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let r=!1,n=null,i=!1,s=null,a=[],o=t[1].startsWith("--"),c=[],l=t;for(;l;){if(n=l[0],c.push(l),n==="("||n==="[")s||(s=l),a.push(n==="("?")":"]");else if(o&&i&&n==="{")s||(s=l),a.push("}");else if(a.length===0)if(n===";")if(i){this.decl(c,o);return}else break;else if(n==="{"){this.rule(c);return}else if(n==="}"){this.tokenizer.back(c.pop()),r=!0;break}else n===":"&&(i=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(s),r&&i){if(!o)for(;c.length&&(l=c[c.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,o)}else this.unknownWord(c)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,n,i){let s,a,o=n.length,c="",l=!0,f,m;for(let d=0;d<o;d+=1)s=n[d],a=s[0],a==="space"&&d===o-1&&!i?l=!1:a==="comment"?(m=n[d-1]?n[d-1][0]:"empty",f=n[d+1]?n[d+1][0]:"empty",!YO[m]&&!YO[f]?c.slice(-1)===","?l=!1:c+=s[1]:l=!1):c+=s[1];if(!l){let d=n.reduce((g,_)=>g+_[1],"");t.raws[r]={raw:d,value:c}}t[r]=c}rule(t){t.pop();let r=new QO;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let r,n="";for(;t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let r,n="";for(;t.length&&(r=t[t.length-1][0],r==="space");)n=t.pop()[1]+n;return n}stringFrom(t,r){let n="";for(let i=r;i<t.length;i++)n+=t[i][1];return t.splice(r,t.length-r),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};XO.exports=bv});var kd=x((Bge,ZO)=>{"use strict";p();var B6=Fn(),V6=Rc(),$6=kv();function bd(e,t){let r=new V6(e,t),n=new $6(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&t&&t.from&&(/\.scss$/i.test(t.from)?i.message+=`
58
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(t.from)?i.message+=`
59
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(t.from)&&(i.message+=`
60
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}ZO.exports=bd;bd.default=bd;B6.registerParse(bd)});var Sv=x(($ge,eN)=>{"use strict";p();var U6=Fn(),{my:H6}=xc(),jc=class{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){r.node[H6]||U6.rebuild(r.node);let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};eN.exports=jc;jc.default=jc});var Sd=x((Hge,tN)=>{"use strict";p();var W6=Sv(),Fc=class{get content(){return this.css}constructor(t,r,n){this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new W6(t,r);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>t.type==="warning")}};tN.exports=Fc;Fc.default=Fc});var Tv=x((zge,nN)=>{"use strict";p();var rN={};nN.exports=function(t){rN[t]||(rN[t]=!0,typeof console<"u"&&console.warn&&console.warn(t))}});var Ev=x((Jge,oN)=>{"use strict";p();var z6=Fn(),G6=od(),J6=_v(),K6=kd(),iN=Sd(),Q6=Fa(),Y6=wc(),{isClean:Qr,my:X6}=xc(),Z6=Tv(),eH={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tH={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rH={Once:!0,postcssPlugin:!0,prepare:!0},Va=0;function Bc(e){return typeof e=="object"&&typeof e.then=="function"}function wv(e){let t=!1,r=eH[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Va,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Va,r+"Exit"]:[r,r+"Exit"]}function sN(e){let t;return e.type==="document"?t=["Document",Va,"DocumentExit"]:e.type==="root"?t=["Root",Va,"RootExit"]:t=wv(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function aN(e){let t=[e];for(;t.length>0;){let r=t.pop();if(r[Qr]=!1,r.nodes)for(let n of r.nodes)t.push(n)}return e}var xv={},mi=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=aN(r);else if(r instanceof e||r instanceof iN)i=aN(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=K6;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[X6]&&z6.rebuild(i)}this.result=new iN(t,i,n),this.helpers={...xv,postcss:xv,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=n.postcssPlugin,t.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,s=n.postcssVersion,a=this.result.processor.version,o=s.split("."),c=a.split(".");(o[0]!==c[0]||parseInt(o[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return t}prepareVisitors(){this.listeners={};let t=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!tH[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!rH[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?t(r,n,r[n][i]):t(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&t(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],n=this.runOnRoot(r);if(Bc(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Qr];){t[Qr]=!0;let r=[sN(t)];for(;r.length>0;){let n=this.visitTick(r);if(Bc(n))try{await n}catch(i){let s=r[r.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let i=t.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(t,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>t.Once(n,this.helpers));return Bc(r[0])?Promise.all(r):r}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=Y6;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);let n=this.result.root.source;if(t.map===void 0&&!(n&&n.input&&n.input.map)){let a="";return r(this.result.root,o=>{a+=o}),this.result.css=a,this.result}let s=new J6(r,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(Bc(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Qr];)t[Qr]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Z6("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[n,i]of t){this.result.lastPlugin=n;let s;try{s=i(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Bc(s))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){t.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[a,o]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(c){throw this.handleError(c,n)}}if(r.iterator!==0){let a=r.iterator;r.descending&&(r.descending=!1,n.indexes[a]+=1);let o;for(;o=n.nodes[n.indexes[a]];){if(!o[Qr]){o[Qr]=!0,r.descending=!0,t.push(sN(o));return}n.indexes[a]+=1}r.iterator=0,delete n.indexes[a]}let s=r.events;for(;r.eventIndex<s.length;){let a=s[r.eventIndex];if(r.eventIndex+=1,a===Va){n.nodes&&n.nodes.length&&(n[Qr]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}t.pop()}walkSync(t){t[Qr]=!0;let r=[{eventIndex:0,events:wv(t),iterator:0,node:t}];for(;r.length>0;){let n=r[r.length-1],i=n.node;if(n.iterator!==0){let s=n.iterator;n.descending&&(n.descending=!1,i.indexes[s]+=1);let a,o=!1;for(;a=i.nodes[i.indexes[s]];){if(!a[Qr]){a[Qr]=!0,n.descending=!0,r.push({eventIndex:0,events:wv(a),iterator:0,node:a}),o=!0;break}i.indexes[s]+=1}if(o)continue;n.iterator=0,delete i.indexes[s]}if(n.eventIndex<n.events.length){let s=n.events[n.eventIndex];if(n.eventIndex+=1,s===Va)i.nodes&&i.nodes.length&&(n.iterator=i.getIterator());else{let a=this.listeners[s];a&&this.visitSync(a,i.toProxy())&&r.pop()}continue}r.pop()}}warnings(){return this.sync().warnings()}};mi.registerPostcss=e=>{xv=e};oN.exports=mi;mi.default=mi;Q6.registerLazyResult(mi);G6.registerLazyResult(mi)});var uN=x((Qge,cN)=>{"use strict";p();var nH=_v(),iH=kd(),sH=Sd(),aH=wc(),oH=Tv(),Vc=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=iH;try{t=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,n){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=n,this._map=void 0;let i=aH;this.result=new sH(this._processor,void 0,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new nH(i,void 0,this._opts,r);if(a.isMap()){let[o,c]=a.generate();o&&(this.result.css=o),c&&(this.result.map=c)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||oH("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this._css}warnings(){return[]}};cN.exports=Vc;Vc.default=Vc});var fN=x((Xge,lN)=>{"use strict";p();var cH=od(),uH=Ev(),lH=uN(),fH=Fa(),vs=class{constructor(t=[]){this.version="8.5.26",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let n of t)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(t,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new lH(this,t,r):new uH(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};lN.exports=vs;vs.default=vs;fH.registerProcessor(vs);cH.registerProcessor(vs)});var vN=x((eye,_N)=>{"use strict";p();var dN=ad(),pN=La(),dH=Fn(),pH=sd(),hN=qc(),mN=od(),hH=UO(),mH=Rc(),gH=Ev(),yH=gv(),_H=Oc(),vH=kd(),Av=fN(),bH=Sd(),gN=Fa(),yN=gd(),kH=wc(),SH=Sv();function Le(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Av(e)}Le.plugin=function(t,r){let n=!1;function i(...a){console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
61
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
62
+ https://www.w3ctech.com/topic/2226`));let o=r(...a);return o.postcssPlugin=t,o.postcssVersion=new Av().version,o}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(a,o,c){return Le([i(c)]).process(a,o)},i};Le.stringify=kH;Le.parse=vH;Le.fromJSON=hH;Le.list=yH;Le.comment=e=>new pN(e);Le.atRule=e=>new dN(e);Le.decl=e=>new hN(e);Le.rule=e=>new yN(e);Le.root=e=>new gN(e);Le.document=e=>new mN(e);Le.CssSyntaxError=pH;Le.Declaration=hN;Le.Container=dH;Le.Processor=Av;Le.Document=mN;Le.Comment=pN;Le.Warning=SH;Le.AtRule=dN;Le.Result=bH;Le.Input=mH;Le.Rule=yN;Le.Root=gN;Le.Node=_H;gH.registerPostcss(Le);_N.exports=Le;Le.default=Le});var kN=x((rye,bN)=>{p();var TH=La(),wH=kv(),xH=id(),Ov=class extends wH{checkMissedSemicolon(){}comment(t){let r=new TH;this.init(r,t[2]);let n=this.input.fromOffset(t[3])||this.input.fromOffset(this.input.css.length-1);r.source.end={column:n.col,line:n.line,offset:t[3]+1};let i=t[1].slice(2);if(i.slice(-2)==="*/"&&(i=i.slice(0,-2)),/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}}createTokenizer(){this.tokenizer=xH(this.input,{ignoreErrors:!0})}decl(t){t.length>1&&t.some(r=>r[0]==="word")&&super.decl(t)}doubleColon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after="";this.root.source.end=this.getPosition(this.tokenizer.position())}precheckMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let n,i;for(n=r-1;n>=0&&t[n][0]!=="word";n--);if(n===0||n<0)return;for(i=n-1;i>=0;i--)if(t[i][0]!=="space"){i+=1;break}let s=t.slice(n),a=t.slice(i,n);t.splice(i,t.length-i),this.spaces=a.map(o=>o[1]).join(""),this.decl(s)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(t){this.spaces+=t.map(r=>r[1]).join("")}unnamedAtrule(t){t.name=""}};bN.exports=Ov});var TN=x((iye,SN)=>{p();var{Input:EH}=vN(),AH=kN();SN.exports=function(t,r){let n=new EH(t,r),i=new AH(n);return i.parse(),i.root}});var Nv=x((Td,wN)=>{"use strict";p();Td.__esModule=!0;Td.default=PH;function OH(e){for(var t=e.toLowerCase(),r="",n=!1,i=0;i<6&&t[i]!==void 0;i++){var s=t.charCodeAt(i),a=s>=97&&s<=102||s>=48&&s<=57;if(n=s===32,!a)break;r+=t[i]}if(r.length!==0){var o=parseInt(r,16),c=o>=55296&&o<=57343;return c||o===0||o>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(o),r.length+(n?1:0)]}}var NH=/\\/;function PH(e){var t=NH.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=OH(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}wN.exports=Td.default});var EN=x((wd,xN)=>{"use strict";p();wd.__esModule=!0;wd.default=qH;function qH(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}xN.exports=wd.default});var ON=x((xd,AN)=>{"use strict";p();xd.__esModule=!0;xd.default=LH;function LH(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}AN.exports=xd.default});var PN=x((Ed,NN)=>{"use strict";p();Ed.__esModule=!0;Ed.default=CH;function CH(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}NN.exports=Ed.default});var $c=x(mn=>{"use strict";p();mn.__esModule=!0;mn.unesc=mn.stripComments=mn.getProp=mn.ensureObject=void 0;var IH=Ad(Nv());mn.unesc=IH.default;var MH=Ad(EN());mn.getProp=MH.default;var RH=Ad(ON());mn.ensureObject=RH.default;var DH=Ad(PN());mn.stripComments=DH.default;function Ad(e){return e&&e.__esModule?e:{default:e}}});var $n=x((Uc,CN)=>{"use strict";p();Uc.__esModule=!0;Uc.default=void 0;var qN=$c();function LN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jH(e,t,r){return t&&LN(e.prototype,t),r&&LN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var FH=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var s=t[i],a=typeof s;i==="parent"&&a==="object"?r&&(n[i]=r):s instanceof Array?n[i]=s.map(function(o){return e(o,n)}):n[i]=e(s,n)}return n},BH=(function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var n in arguments)this.parent.insertBefore(this,arguments[n]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(n){n===void 0&&(n={});var i=FH(this);for(var s in n)i[s]=n[s];return i},t.appendToPropertyAndEscape=function(n,i,s){this.raws||(this.raws={});var a=this[n],o=this.raws[n];this[n]=a+i,o||s!==i?this.raws[n]=(o||a)+s:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,s){this.raws||(this.raws={}),this[n]=i,this.raws[n]=s},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},jH(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,qN.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,qN.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e})();Uc.default=BH;CN.exports=Uc.default});var Ot=x(je=>{"use strict";p();je.__esModule=!0;je.UNIVERSAL=je.TAG=je.STRING=je.SELECTOR=je.ROOT=je.PSEUDO=je.NESTING=je.ID=je.COMMENT=je.COMBINATOR=je.CLASS=je.ATTRIBUTE=void 0;var VH="tag";je.TAG=VH;var $H="string";je.STRING=$H;var UH="selector";je.SELECTOR=UH;var HH="root";je.ROOT=HH;var WH="pseudo";je.PSEUDO=WH;var zH="nesting";je.NESTING=zH;var GH="id";je.ID=GH;var JH="comment";je.COMMENT=JH;var KH="combinator";je.COMBINATOR=KH;var QH="class";je.CLASS=QH;var YH="attribute";je.ATTRIBUTE=YH;var XH="universal";je.UNIVERSAL=XH});var Od=x((Hc,DN)=>{"use strict";p();Hc.__esModule=!0;Hc.default=void 0;var ZH=t8($n()),Un=e8(Ot());function RN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(RN=function(i){return i?r:t})(e)}function e8(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=RN(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function t8(e){return e&&e.__esModule?e:{default:e}}function r8(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=n8(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
63
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n8(e,t){if(e){if(typeof e=="string")return IN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IN(e,t)}}function IN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i8(e,t,r){return t&&MN(e.prototype,t),r&&MN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pv(e,t)}function Pv(e,t){return Pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pv(e,t)}var a8=(function(e){s8(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){i.parent=this,this.nodes.unshift(i);for(var s in this.indexes)this.indexes[s]++;return this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var s;for(var a in this.indexes)s=this.indexes[a],s>=i&&(this.indexes[a]=s-1);return this},r.removeAll=function(){for(var i=r8(this.nodes),s;!(s=i()).done;){var a=s.value;a.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(i,s){var a;s.parent=this;for(var o=this.index(i),c=[],l=2;l<arguments.length;l++)c.push(arguments[l]);(a=this.nodes).splice.apply(a,[o+1,0,s].concat(c)),s.parent=this;var f;for(var m in this.indexes)f=this.indexes[m],o<f&&(this.indexes[m]=f+arguments.length-1);return this},r.insertBefore=function(i,s){var a;s.parent=this;for(var o=this.index(i),c=[],l=2;l<arguments.length;l++)c.push(arguments[l]);(a=this.nodes).splice.apply(a,[o,0,s].concat(c)),s.parent=this;var f;for(var m in this.indexes)f=this.indexes[m],f>=o&&(this.indexes[m]=f+arguments.length-1);return this},r._findChildAtPosition=function(i,s){var a=void 0;return this.each(function(o){if(o.atPosition){var c=o.atPosition(i,s);if(c)return a=c,!1}else if(o.isAtPosition(i,s))return a=o,!1}),a},r.atPosition=function(i,s){if(this.isAtPosition(i,s))return this._findChildAtPosition(i,s)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var s=this.lastEach;if(this.indexes[s]=0,!!this.length){for(var a,o;this.indexes[s]<this.length&&(a=this.indexes[s],o=i(this.at(a),a),o!==!1);)this.indexes[s]+=1;if(delete this.indexes[s],o===!1)return!1}},r.walk=function(i){return this.each(function(s,a){var o=i(s,a);if(o!==!1&&s.length&&(o=s.walk(i)),o===!1)return!1})},r.walkAttributes=function(i){var s=this;return this.walk(function(a){if(a.type===Un.ATTRIBUTE)return i.call(s,a)})},r.walkClasses=function(i){var s=this;return this.walk(function(a){if(a.type===Un.CLASS)return i.call(s,a)})},r.walkCombinators=function(i){var s=this;return this.walk(function(a){if(a.type===Un.COMBINATOR)return i.call(s,a)})},r.walkComments=function(i){var s=this;return this.walk(function(a){if(a.type===Un.COMMENT)return i.call(s,a)})},r.walkIds=function(i){var s=this;return this.walk(function(a){if(a.type===Un.ID)return i.call(s,a)})},r.walkNesting=function(i){var s=this;return this.walk(function(a){if(a.type===Un.NESTING)return i.call(s,a)})},r.walkPseudos=function(i){var s=this;return this.walk(function(a){if(a.type===Un.PSEUDO)return i.call(s,a)})},r.walkTags=function(i){var s=this;return this.walk(function(a){if(a.type===Un.TAG)return i.call(s,a)})},r.walkUniversals=function(i){var s=this;return this.walk(function(a){if(a.type===Un.UNIVERSAL)return i.call(s,a)})},r.split=function(i){var s=this,a=[];return this.reduce(function(o,c,l){var f=i.call(s,c);return a.push(c),f?(o.push(a),a=[]):l===s.length-1&&o.push(a),o},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,s){return this.nodes.reduce(i,s)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},i8(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t})(ZH.default);Hc.default=a8;DN.exports=Hc.default});var Lv=x((Wc,FN)=>{"use strict";p();Wc.__esModule=!0;Wc.default=void 0;var o8=u8(Od()),c8=Ot();function u8(e){return e&&e.__esModule?e:{default:e}}function jN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l8(e,t,r){return t&&jN(e.prototype,t),r&&jN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qv(e,t)}var d8=(function(e){f8(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=c8.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(s,a){return s.push(String(a)),s},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,s){return this._error?this._error(i,s):new Error(i)},l8(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t})(o8.default);Wc.default=d8;FN.exports=Wc.default});var Iv=x((zc,BN)=>{"use strict";p();zc.__esModule=!0;zc.default=void 0;var p8=m8(Od()),h8=Ot();function m8(e){return e&&e.__esModule?e:{default:e}}function g8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cv(e,t)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cv(e,t)}var y8=(function(e){g8(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=h8.SELECTOR,n}return t})(p8.default);zc.default=y8;BN.exports=zc.default});var Nd=x((_ye,VN)=>{"use strict";p();var _8={},v8=_8.hasOwnProperty,b8=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=v8.call(t,i)?t[i]:r[i];return n},k8=/[ -,\.\/:-@\[-\^`\{-~]/,S8=/[ -,\.\/:-@\[\]\^`\{-~]/,T8=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Mv=function e(t,r){r=b8(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,s=t.charAt(0),a="",o=0,c=t.length;o<c;){var l=t.charAt(o++),f=l.charCodeAt(),m=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&o<c){var d=t.charCodeAt(o++);(d&64512)==56320?f=((f&1023)<<10)+(d&1023)+65536:o--}m="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?k8.test(l)?m="\\"+l:m="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?m="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&S8.test(l)?m="\\"+l:m=l;a+=m}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(s)&&(a="\\3"+s+" "+a.slice(1))),a=a.replace(T8,function(g,_,k){return _&&_.length%2?g:(_||"")+k}),!i&&r.wrap?n+a+n:a};Mv.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Mv.version="3.0.0";VN.exports=Mv});var Dv=x((Gc,HN)=>{"use strict";p();Gc.__esModule=!0;Gc.default=void 0;var w8=UN(Nd()),x8=$c(),E8=UN($n()),A8=Ot();function UN(e){return e&&e.__esModule?e:{default:e}}function $N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O8(e,t,r){return t&&$N(e.prototype,t),r&&$N(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function N8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rv(e,t)}function Rv(e,t){return Rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rv(e,t)}var P8=(function(e){N8(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=A8.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},O8(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=(0,w8.default)(i,{isIdentifier:!0});s!==i?((0,x8.ensureObject)(this,"raws"),this.raws.value=s):this.raws&&delete this.raws.value}this._value=i}}]),t})(E8.default);Gc.default=P8;HN.exports=Gc.default});var Fv=x((Jc,WN)=>{"use strict";p();Jc.__esModule=!0;Jc.default=void 0;var q8=C8($n()),L8=Ot();function C8(e){return e&&e.__esModule?e:{default:e}}function I8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jv(e,t)}function jv(e,t){return jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jv(e,t)}var M8=(function(e){I8(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=L8.COMMENT,n}return t})(q8.default);Jc.default=M8;WN.exports=Jc.default});var Vv=x((Kc,zN)=>{"use strict";p();Kc.__esModule=!0;Kc.default=void 0;var R8=j8($n()),D8=Ot();function j8(e){return e&&e.__esModule?e:{default:e}}function F8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bv(e,t)}function Bv(e,t){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bv(e,t)}var B8=(function(e){F8(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=D8.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t})(R8.default);Kc.default=B8;zN.exports=Kc.default});var Pd=x((Qc,KN)=>{"use strict";p();Qc.__esModule=!0;Qc.default=void 0;var V8=JN(Nd()),$8=$c(),U8=JN($n());function JN(e){return e&&e.__esModule?e:{default:e}}function GN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function H8(e,t,r){return t&&GN(e.prototype,t),r&&GN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function W8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$v(e,t)}function $v(e,t){return $v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$v(e,t)}var z8=(function(e){W8(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},H8(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var s=(0,V8.default)(i,{isIdentifier:!0});this._namespace=i,s!==i?((0,$8.ensureObject)(this,"raws"),this.raws.namespace=s):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t})(U8.default);Qc.default=z8;KN.exports=Qc.default});var Hv=x((Yc,QN)=>{"use strict";p();Yc.__esModule=!0;Yc.default=void 0;var G8=K8(Pd()),J8=Ot();function K8(e){return e&&e.__esModule?e:{default:e}}function Q8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uv(e,t)}function Uv(e,t){return Uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Uv(e,t)}var Y8=(function(e){Q8(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=J8.TAG,n}return t})(G8.default);Yc.default=Y8;QN.exports=Yc.default});var zv=x((Xc,YN)=>{"use strict";p();Xc.__esModule=!0;Xc.default=void 0;var X8=eW($n()),Z8=Ot();function eW(e){return e&&e.__esModule?e:{default:e}}function tW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wv(e,t)}var rW=(function(e){tW(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Z8.STRING,n}return t})(X8.default);Xc.default=rW;YN.exports=Xc.default});var Jv=x((Zc,XN)=>{"use strict";p();Zc.__esModule=!0;Zc.default=void 0;var nW=sW(Od()),iW=Ot();function sW(e){return e&&e.__esModule?e:{default:e}}function aW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gv(e,t)}var oW=(function(e){aW(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=iW.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t})(nW.default);Zc.default=oW;XN.exports=Zc.default});var eb=x(ru=>{"use strict";p();ru.__esModule=!0;ru.default=void 0;ru.unescapeValue=Zv;var eu=Xv(Nd()),cW=Xv(Nv()),uW=Xv(Pd()),lW=Ot(),Kv;function Xv(e){return e&&e.__esModule?e:{default:e}}function ZN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fW(e,t,r){return t&&ZN(e.prototype,t),r&&ZN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yv(e,t)}function Yv(e,t){return Yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yv(e,t)}var tu=F$(),pW=/^('|")([^]*)\1$/,hW=tu(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),mW=tu(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),gW=tu(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Zv(e){var t=!1,r=null,n=e,i=n.match(pW);return i&&(r=i[1],n=i[2]),n=(0,cW.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function yW(e){if(e.quoteMark!==void 0||e.value===void 0)return e;gW();var t=Zv(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var qd=(function(e){dW(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,yW(n))||this,i.type=lW.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:tu(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:tu(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var s=this._determineQuoteMark(i),a=Qv[s],o=(0,eu.default)(this._value,a);return o},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,s){s===void 0&&(s={}),this._value=i,this._quoteMark=this._determineQuoteMark(s),this._syncRawValue()},r.smartQuoteMark=function(i){var s=this.value,a=s.replace(/[^']/g,"").length,o=s.replace(/[^"]/g,"").length;if(a+o===0){var c=(0,eu.default)(s,{isIdentifier:!0});if(c===s)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,m=Qv[f],d=(0,eu.default)(s,m);if(d.length<c.length)return f}return l}else return o===a?this.preferredQuoteMark(i):o<a?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.preferredQuoteMark=function(i){var s=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return s===void 0&&(s=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),s===void 0&&(s=t.DOUBLE_QUOTE),s},r._syncRawValue=function(){var i=(0,eu.default)(this._value,Qv[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,s){if(this._constructed){var a=(0,eu.default)(s,{isIdentifier:!0});a!==s?this.raws[i]=a:delete this.raws[i]}},r._spacesFor=function(i){var s={before:"",after:""},a=this.spaces[i]||{},o=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(s,a,o)},r._stringFor=function(i,s,a){s===void 0&&(s=i),a===void 0&&(a=eP);var o=this._spacesFor(s);return a(this.stringifyProperty(i),o)},r.offsetOf=function(i){var s=1,a=this._spacesFor("attribute");if(s+=a.before.length,i==="namespace"||i==="ns")return this.namespace?s:-1;if(i==="attributeNS"||(s+=this.namespaceString.length,this.namespace&&(s+=1),i==="attribute"))return s;s+=this.stringifyProperty("attribute").length,s+=a.after.length;var o=this._spacesFor("operator");s+=o.before.length;var c=this.stringifyProperty("operator");if(i==="operator")return c?s:-1;s+=c.length,s+=o.after.length;var l=this._spacesFor("value");s+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?s:-1;s+=f.length,s+=l.after.length;var m=this._spacesFor("insensitive");return s+=m.before.length,i==="insensitive"&&this.insensitive?s:-1},r.toString=function(){var i=this,s=[this.rawSpaceBefore,"["];return s.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(s.push(this._stringFor("operator")),s.push(this._stringFor("value")),s.push(this._stringFor("insensitiveFlag","insensitive",function(a,o){return a.length>0&&!i.quoted&&o.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(o.before=" "),eP(a,o)}))),s.push("]"),s.push(this.rawSpaceAfter),s.join("")},fW(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){mW()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var s=Zv(i),a=s.deprecatedUsage,o=s.unescaped,c=s.quoteMark;if(a&&hW(),o===this._value&&c===this._quoteMark)return;this._value=o,this._quoteMark=c,this._syncRawValue()}else this._value=i}},{key:"insensitive",get:function(){return this._insensitive},set:function(i){i||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t})(uW.default);ru.default=qd;qd.NO_QUOTE=null;qd.SINGLE_QUOTE="'";qd.DOUBLE_QUOTE='"';var Qv=(Kv={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Kv[null]={isIdentifier:!0},Kv);function eP(e,t){return""+t.before+e+t.after}});var rb=x((nu,tP)=>{"use strict";p();nu.__esModule=!0;nu.default=void 0;var _W=bW(Pd()),vW=Ot();function bW(e){return e&&e.__esModule?e:{default:e}}function kW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tb(e,t)}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tb(e,t)}var SW=(function(e){kW(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=vW.UNIVERSAL,n.value="*",n}return t})(_W.default);nu.default=SW;tP.exports=nu.default});var ib=x((iu,rP)=>{"use strict";p();iu.__esModule=!0;iu.default=void 0;var TW=xW($n()),wW=Ot();function xW(e){return e&&e.__esModule?e:{default:e}}function EW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nb(e,t)}function nb(e,t){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nb(e,t)}var AW=(function(e){EW(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=wW.COMBINATOR,n}return t})(TW.default);iu.default=AW;rP.exports=iu.default});var ab=x((su,nP)=>{"use strict";p();su.__esModule=!0;su.default=void 0;var OW=PW($n()),NW=Ot();function PW(e){return e&&e.__esModule?e:{default:e}}function qW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sb(e,t)}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sb(e,t)}var LW=(function(e){qW(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=NW.NESTING,n.value="&",n}return t})(OW.default);su.default=LW;nP.exports=su.default});var sP=x((Ld,iP)=>{"use strict";p();Ld.__esModule=!0;Ld.default=CW;function CW(e){return e.sort(function(t,r){return t-r})}iP.exports=Ld.default});var ob=x(re=>{"use strict";p();re.__esModule=!0;re.word=re.tilde=re.tab=re.str=re.space=re.slash=re.singleQuote=re.semicolon=re.plus=re.pipe=re.openSquare=re.openParenthesis=re.newline=re.greaterThan=re.feed=re.equals=re.doubleQuote=re.dollar=re.cr=re.comment=re.comma=re.combinator=re.colon=re.closeSquare=re.closeParenthesis=re.caret=re.bang=re.backslash=re.at=re.asterisk=re.ampersand=void 0;var IW=38;re.ampersand=IW;var MW=42;re.asterisk=MW;var RW=64;re.at=RW;var DW=44;re.comma=DW;var jW=58;re.colon=jW;var FW=59;re.semicolon=FW;var BW=40;re.openParenthesis=BW;var VW=41;re.closeParenthesis=VW;var $W=91;re.openSquare=$W;var UW=93;re.closeSquare=UW;var HW=36;re.dollar=HW;var WW=126;re.tilde=WW;var zW=94;re.caret=zW;var GW=43;re.plus=GW;var JW=61;re.equals=JW;var KW=124;re.pipe=KW;var QW=62;re.greaterThan=QW;var YW=32;re.space=YW;var aP=39;re.singleQuote=aP;var XW=34;re.doubleQuote=XW;var ZW=47;re.slash=ZW;var ez=33;re.bang=ez;var tz=92;re.backslash=tz;var rz=13;re.cr=rz;var nz=12;re.feed=nz;var iz=10;re.newline=iz;var sz=9;re.tab=sz;var az=aP;re.str=az;var oz=-1;re.comment=oz;var cz=-2;re.word=cz;var uz=-3;re.combinator=uz});var uP=x(au=>{"use strict";p();au.__esModule=!0;au.FIELDS=void 0;au.default=gz;var X=lz(ob()),$a,Ie;function cP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(cP=function(i){return i?r:t})(e)}function lz(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=cP(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}var fz=($a={},$a[X.tab]=!0,$a[X.newline]=!0,$a[X.cr]=!0,$a[X.feed]=!0,$a),dz=(Ie={},Ie[X.space]=!0,Ie[X.tab]=!0,Ie[X.newline]=!0,Ie[X.cr]=!0,Ie[X.feed]=!0,Ie[X.ampersand]=!0,Ie[X.asterisk]=!0,Ie[X.bang]=!0,Ie[X.comma]=!0,Ie[X.colon]=!0,Ie[X.semicolon]=!0,Ie[X.openParenthesis]=!0,Ie[X.closeParenthesis]=!0,Ie[X.openSquare]=!0,Ie[X.closeSquare]=!0,Ie[X.singleQuote]=!0,Ie[X.doubleQuote]=!0,Ie[X.plus]=!0,Ie[X.pipe]=!0,Ie[X.tilde]=!0,Ie[X.greaterThan]=!0,Ie[X.equals]=!0,Ie[X.dollar]=!0,Ie[X.caret]=!0,Ie[X.slash]=!0,Ie),cb={},oP="0123456789abcdefABCDEF";for(Cd=0;Cd<oP.length;Cd++)cb[oP.charCodeAt(Cd)]=!0;var Cd;function pz(e,t){var r=t,n;do{if(n=e.charCodeAt(r),dz[n])return r-1;n===X.backslash?r=hz(e,r)+1:r++}while(r<e.length);return r-1}function hz(e,t){var r=t,n=e.charCodeAt(r+1);if(!fz[n])if(cb[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(cb[n]&&i<6);i<6&&n===X.space&&r++}else r++;return r}var mz={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};au.FIELDS=mz;function gz(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,s=-1,a=1,o=0,c=0,l,f,m,d,g,_,k,b,v,w,T,y,A;function O(N,q){if(e.safe)r+=q,v=r.length-1;else throw e.error("Unclosed "+N,a,o-s,o)}for(;o<i;){switch(l=r.charCodeAt(o),l===X.newline&&(s=o,a+=1),l){case X.space:case X.tab:case X.newline:case X.cr:case X.feed:v=o;do v+=1,l=r.charCodeAt(v),l===X.newline&&(s=v,a+=1);while(l===X.space||l===X.newline||l===X.tab||l===X.cr||l===X.feed);A=X.space,d=a,m=v-s-1,c=v;break;case X.plus:case X.greaterThan:case X.tilde:case X.pipe:v=o;do v+=1,l=r.charCodeAt(v);while(l===X.plus||l===X.greaterThan||l===X.tilde||l===X.pipe);A=X.combinator,d=a,m=o-s,c=v;break;case X.asterisk:case X.ampersand:case X.bang:case X.comma:case X.equals:case X.dollar:case X.caret:case X.openSquare:case X.closeSquare:case X.colon:case X.semicolon:case X.openParenthesis:case X.closeParenthesis:v=o,A=l,d=a,m=o-s,c=v+1;break;case X.singleQuote:case X.doubleQuote:y=l===X.singleQuote?"'":'"',v=o;do for(g=!1,v=r.indexOf(y,v+1),v===-1&&O("quote",y),_=v;r.charCodeAt(_-1)===X.backslash;)_-=1,g=!g;while(g);A=X.str,d=a,m=o-s,c=v+1;break;default:l===X.slash&&r.charCodeAt(o+1)===X.asterisk?(v=r.indexOf("*/",o+2)+1,v===0&&O("comment","*/"),f=r.slice(o,v+1),b=f.split(`
64
+ `),k=b.length-1,k>0?(w=a+k,T=v-b[k].length):(w=a,T=s),A=X.comment,a=w,d=w,m=v-T):l===X.slash?(v=o,A=l,d=a,m=o-s,c=v+1):(v=pz(r,o),A=X.word,d=a,m=v-s),c=v+1;break}t.push([A,a,o-s,d,m,o,c]),T&&(s=T,T=null),o=c}return t}});var yP=x((ou,gP)=>{"use strict";p();ou.__esModule=!0;ou.default=void 0;var yz=Er(Lv()),ub=Er(Iv()),_z=Er(Dv()),lP=Er(Fv()),vz=Er(Vv()),bz=Er(Hv()),lb=Er(zv()),kz=Er(Jv()),fP=Id(eb()),Sz=Er(rb()),fb=Er(ib()),Tz=Er(ab()),wz=Er(sP()),z=Id(uP()),ee=Id(ob()),xz=Id(Ot()),Ge=$c(),bs,db;function mP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(mP=function(i){return i?r:t})(e)}function Id(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=mP(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function Er(e){return e&&e.__esModule?e:{default:e}}function dP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ez(e,t,r){return t&&dP(e.prototype,t),r&&dP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var mb=(bs={},bs[ee.space]=!0,bs[ee.cr]=!0,bs[ee.feed]=!0,bs[ee.newline]=!0,bs[ee.tab]=!0,bs),Az=Object.assign({},mb,(db={},db[ee.comment]=!0,db));function pP(e){return{line:e[z.FIELDS.START_LINE],column:e[z.FIELDS.START_COL]}}function hP(e){return{line:e[z.FIELDS.END_LINE],column:e[z.FIELDS.END_COL]}}function ks(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Ua(e){return ks(e[z.FIELDS.START_LINE],e[z.FIELDS.START_COL],e[z.FIELDS.END_LINE],e[z.FIELDS.END_COL])}function pb(e,t){if(e)return ks(e[z.FIELDS.START_LINE],e[z.FIELDS.START_COL],t[z.FIELDS.END_LINE],t[z.FIELDS.END_COL])}function Ha(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,Ge.ensureObject)(e,"raws"),e[t]=(0,Ge.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function hb(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function Oz(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var Nz=(function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,z.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=pb(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new yz.default({source:i}),this.root.errorGenerator=this._errorGenerator();var s=new ub.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(s),this.current=s,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var n=this;return function(i,s){return typeof n.rule=="string"?new Error(i):n.rule.error(i,s)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[z.FIELDS.TYPE]!==ee.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[z.FIELDS.TYPE]!==ee.closeSquare)return this.expected("closing square bracket",this.currToken[z.FIELDS.START_POS]);var s=n.length,a={source:ks(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[z.FIELDS.START_POS]};if(s===1&&!~[ee.word].indexOf(n[0][z.FIELDS.TYPE]))return this.expected("attribute",n[0][z.FIELDS.START_POS]);for(var o=0,c="",l="",f=null,m=!1;o<s;){var d=n[o],g=this.content(d),_=n[o+1];switch(d[z.FIELDS.TYPE]){case ee.space:if(m=!0,this.options.lossy)break;if(f){(0,Ge.ensureObject)(a,"spaces",f);var k=a.spaces[f].after||"";a.spaces[f].after=k+g;var b=(0,Ge.getProp)(a,"raws","spaces",f,"after")||null;b&&(a.raws.spaces[f].after=b+g)}else c=c+g,l=l+g;break;case ee.asterisk:if(_[z.FIELDS.TYPE]===ee.equals)a.operator=g,f="operator";else if((!a.namespace||f==="namespace"&&!m)&&_){c&&((0,Ge.ensureObject)(a,"spaces","attribute"),a.spaces.attribute.before=c,c=""),l&&((0,Ge.ensureObject)(a,"raws","spaces","attribute"),a.raws.spaces.attribute.before=c,l=""),a.namespace=(a.namespace||"")+g;var v=(0,Ge.getProp)(a,"raws","namespace")||null;v&&(a.raws.namespace+=g),f="namespace"}m=!1;break;case ee.dollar:if(f==="value"){var w=(0,Ge.getProp)(a,"raws","value");a.value+="$",w&&(a.raws.value=w+"$");break}case ee.caret:_[z.FIELDS.TYPE]===ee.equals&&(a.operator=g,f="operator"),m=!1;break;case ee.combinator:if(g==="~"&&_[z.FIELDS.TYPE]===ee.equals&&(a.operator=g,f="operator"),g!=="|"){m=!1;break}_[z.FIELDS.TYPE]===ee.equals?(a.operator=g,f="operator"):!a.namespace&&!a.attribute&&(a.namespace=!0),m=!1;break;case ee.word:if(_&&this.content(_)==="|"&&n[o+2]&&n[o+2][z.FIELDS.TYPE]!==ee.equals&&!a.operator&&!a.namespace)a.namespace=g,f="namespace";else if(!a.attribute||f==="attribute"&&!m){c&&((0,Ge.ensureObject)(a,"spaces","attribute"),a.spaces.attribute.before=c,c=""),l&&((0,Ge.ensureObject)(a,"raws","spaces","attribute"),a.raws.spaces.attribute.before=l,l=""),a.attribute=(a.attribute||"")+g;var T=(0,Ge.getProp)(a,"raws","attribute")||null;T&&(a.raws.attribute+=g),f="attribute"}else if(!a.value&&a.value!==""||f==="value"&&!(m||a.quoteMark)){var y=(0,Ge.unesc)(g),A=(0,Ge.getProp)(a,"raws","value")||"",O=a.value||"";a.value=O+y,a.quoteMark=null,(y!==g||A)&&((0,Ge.ensureObject)(a,"raws"),a.raws.value=(A||O)+g),f="value"}else{var N=g==="i"||g==="I";(a.value||a.value==="")&&(a.quoteMark||m)?(a.insensitive=N,(!N||g==="I")&&((0,Ge.ensureObject)(a,"raws"),a.raws.insensitiveFlag=g),f="insensitive",c&&((0,Ge.ensureObject)(a,"spaces","insensitive"),a.spaces.insensitive.before=c,c=""),l&&((0,Ge.ensureObject)(a,"raws","spaces","insensitive"),a.raws.spaces.insensitive.before=l,l="")):(a.value||a.value==="")&&(f="value",a.value+=g,a.raws.value&&(a.raws.value+=g))}m=!1;break;case ee.str:if(!a.attribute||!a.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:d[z.FIELDS.START_POS]});var q=(0,fP.unescapeValue)(g),B=q.unescaped,M=q.quoteMark;a.value=B,a.quoteMark=M,f="value",(0,Ge.ensureObject)(a,"raws"),a.raws.value=g,m=!1;break;case ee.equals:if(!a.attribute)return this.expected("attribute",d[z.FIELDS.START_POS],g);if(a.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:d[z.FIELDS.START_POS]});a.operator=a.operator?a.operator+g:g,f="operator",m=!1;break;case ee.comment:if(f)if(m||_&&_[z.FIELDS.TYPE]===ee.space||f==="insensitive"){var L=(0,Ge.getProp)(a,"spaces",f,"after")||"",C=(0,Ge.getProp)(a,"raws","spaces",f,"after")||L;(0,Ge.ensureObject)(a,"raws","spaces",f),a.raws.spaces[f].after=C+g}else{var $=a[f]||"",V=(0,Ge.getProp)(a,"raws",f)||$;(0,Ge.ensureObject)(a,"raws"),a.raws[f]=V+g}else l=l+g;break;default:return this.error('Unexpected "'+g+'" found.',{index:d[z.FIELDS.START_POS]})}o++}Ha(a,"attribute"),Ha(a,"namespace"),this.newNode(new fP.default(a)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,s=[],a="",o=void 0;do if(mb[this.currToken[z.FIELDS.TYPE]])this.options.lossy||(a+=this.content());else if(this.currToken[z.FIELDS.TYPE]===ee.comment){var c={};a&&(c.before=a,a=""),o=new lP.default({value:this.content(),source:Ua(this.currToken),sourceIndex:this.currToken[z.FIELDS.START_POS],spaces:c}),s.push(o)}while(++this.position<n);if(a){if(o)o.spaces.after=a;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];s.push(new lb.default({value:"",source:ks(l[z.FIELDS.START_LINE],l[z.FIELDS.START_COL],f[z.FIELDS.END_LINE],f[z.FIELDS.END_COL]),sourceIndex:l[z.FIELDS.START_POS],spaces:{before:a,after:""}}))}}return s},t.convertWhitespaceNodesToSpace=function(n,i){var s=this;i===void 0&&(i=!1);var a="",o="";n.forEach(function(l){var f=s.lossySpace(l.spaces.before,i),m=s.lossySpace(l.rawSpaceBefore,i);a+=f+s.lossySpace(l.spaces.after,i&&f.length===0),o+=f+l.value+s.lossySpace(l.rawSpaceAfter,i&&m.length===0)}),o===a&&(o=void 0);var c={space:a,rawSpace:o};return c},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][z.FIELDS.TYPE]===ee.slash&&this.tokens[n+1]&&this.tokens[n+1][z.FIELDS.TYPE]===ee.word&&this.tokens[n+2]&&this.tokens[n+2][z.FIELDS.TYPE]===ee.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,Ge.unesc)(n).toLowerCase(),s={};i!==n&&(s.value="/"+n+"/");var a=new fb.default({value:"/"+i+"/",source:ks(this.currToken[z.FIELDS.START_LINE],this.currToken[z.FIELDS.START_COL],this.tokens[this.position+2][z.FIELDS.END_LINE],this.tokens[this.position+2][z.FIELDS.END_COL]),sourceIndex:this.currToken[z.FIELDS.START_POS],raws:s});return this.position=this.position+3,a}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][z.FIELDS.TYPE]===ee.comma||this.tokens[i][z.FIELDS.TYPE]===ee.closeParenthesis){var s=this.parseWhitespaceEquivalentTokens(i);if(s.length>0){var a=this.current.last;if(a){var o=this.convertWhitespaceNodesToSpace(s),c=o.space,l=o.rawSpace;l!==void 0&&(a.rawSpaceAfter+=l),a.spaces.after+=c}else s.forEach(function(A){return n.newNode(A)})}return}var f=this.currToken,m=void 0;i>this.position&&(m=this.parseWhitespaceEquivalentTokens(i));var d;if(this.isNamedCombinator()?d=this.namedCombinator():this.currToken[z.FIELDS.TYPE]===ee.combinator?(d=new fb.default({value:this.content(),source:Ua(this.currToken),sourceIndex:this.currToken[z.FIELDS.START_POS]}),this.position++):mb[this.currToken[z.FIELDS.TYPE]]||m||this.unexpected(),d){if(m){var g=this.convertWhitespaceNodesToSpace(m),_=g.space,k=g.rawSpace;d.spaces.before=_,d.rawSpaceBefore=k}}else{var b=this.convertWhitespaceNodesToSpace(m,!0),v=b.space,w=b.rawSpace;w||(w=v);var T={},y={spaces:{}};v.endsWith(" ")&&w.endsWith(" ")?(T.before=v.slice(0,v.length-1),y.spaces.before=w.slice(0,w.length-1)):v[0]===" "&&w[0]===" "?(T.after=v.slice(1),y.spaces.after=w.slice(1)):y.value=w,d=new fb.default({value:" ",source:pb(f,this.tokens[this.position-1]),sourceIndex:f[z.FIELDS.START_POS],spaces:T,raws:y})}return this.currToken&&this.currToken[z.FIELDS.TYPE]===ee.space&&(d.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(d)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new ub.default({source:{start:pP(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][z.FIELDS.START_POS]});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new lP.default({value:this.content(),source:Ua(n),sourceIndex:n[z.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[z.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[z.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[z.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[z.FIELDS.START_POS])},t.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[z.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[z.FIELDS.TYPE]===ee.word)return this.position++,this.word(n);if(this.nextToken[z.FIELDS.TYPE]===ee.asterisk)return this.position++,this.universal(n);this.unexpectedPipe()},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Tz.default({value:this.content(),source:Ua(i),sourceIndex:i[z.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===xz.PSEUDO){var s=new ub.default({source:{start:pP(this.tokens[this.position])},sourceIndex:this.tokens[this.position][z.FIELDS.START_POS]}),a=this.current;for(n.append(s),this.current=s;this.position<this.tokens.length&&i;)this.currToken[z.FIELDS.TYPE]===ee.openParenthesis&&i++,this.currToken[z.FIELDS.TYPE]===ee.closeParenthesis&&i--,i?this.parse():(this.current.source.end=hP(this.currToken),this.current.parent.source.end=hP(this.currToken),this.position++);this.current=a}else{for(var o=this.currToken,c="(",l;this.position<this.tokens.length&&i;)this.currToken[z.FIELDS.TYPE]===ee.openParenthesis&&i++,this.currToken[z.FIELDS.TYPE]===ee.closeParenthesis&&i--,l=this.currToken,c+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",c,c):this.newNode(new lb.default({value:c,source:ks(o[z.FIELDS.START_LINE],o[z.FIELDS.START_COL],l[z.FIELDS.END_LINE],l[z.FIELDS.END_COL]),sourceIndex:o[z.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[z.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",s=this.currToken;this.currToken&&this.currToken[z.FIELDS.TYPE]===ee.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[z.FIELDS.TYPE]===ee.word)this.splitWord(!1,function(a,o){i+=a,n.newNode(new kz.default({value:i,source:pb(s,n.currToken),sourceIndex:s[z.FIELDS.START_POS]})),o>1&&n.nextToken&&n.nextToken[z.FIELDS.TYPE]===ee.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[z.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[z.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[z.FIELDS.TYPE]===ee.comma||this.prevToken[z.FIELDS.TYPE]===ee.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[z.FIELDS.TYPE]===ee.comma||this.nextToken[z.FIELDS.TYPE]===ee.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new lb.default({value:this.content(),source:Ua(n),sourceIndex:n[z.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new Sz.default({value:this.content(),source:Ua(s),sourceIndex:s[z.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var s=this,a=this.nextToken,o=this.content();a&&~[ee.dollar,ee.caret,ee.equals,ee.word].indexOf(a[z.FIELDS.TYPE]);){this.position++;var c=this.content();if(o+=c,c.lastIndexOf("\\")===c.length-1){var l=this.nextToken;l&&l[z.FIELDS.TYPE]===ee.space&&(o+=this.requiredSpace(this.content(l)),this.position++)}a=this.nextToken}var f=hb(o,".").filter(function(_){var k=o[_-1]==="\\",b=/^\d+\.\d+%$/.test(o);return!k&&!b}),m=hb(o,"#").filter(function(_){return o[_-1]!=="\\"}),d=hb(o,"#{");d.length&&(m=m.filter(function(_){return!~d.indexOf(_)}));var g=(0,wz.default)(Oz([0].concat(f,m)));g.forEach(function(_,k){var b=g[k+1]||o.length,v=o.slice(_,b);if(k===0&&i)return i.call(s,v,g.length);var w,T=s.currToken,y=T[z.FIELDS.START_POS]+g[k],A=ks(T[1],T[2]+_,T[3],T[2]+(b-1));if(~f.indexOf(_)){var O={value:v.slice(1),source:A,sourceIndex:y};w=new _z.default(Ha(O,"value"))}else if(~m.indexOf(_)){var N={value:v.slice(1),source:A,sourceIndex:y};w=new vz.default(Ha(N,"value"))}else{var q={value:v,source:A,sourceIndex:y};Ha(q,"value"),w=new bz.default(q)}s.newNode(w,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[z.FIELDS.TYPE]){case ee.space:this.space();break;case ee.comment:this.comment();break;case ee.openParenthesis:this.parentheses();break;case ee.closeParenthesis:n&&this.missingParenthesis();break;case ee.openSquare:this.attribute();break;case ee.dollar:case ee.caret:case ee.equals:case ee.word:this.word();break;case ee.colon:this.pseudo();break;case ee.comma:this.comma();break;case ee.asterisk:this.universal();break;case ee.ampersand:this.nesting();break;case ee.slash:case ee.combinator:this.combinator();break;case ee.str:this.string();break;case ee.closeSquare:this.missingSquareBracket();case ee.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(n,i,s){if(Array.isArray(n)){var a=n.pop();n=n.join(", ")+" or "+a}var o=/^[aeiou]/.test(n[0])?"an":"a";return s?this.error("Expected "+o+" "+n+', found "'+s+'" instead.',{index:i}):this.error("Expected "+o+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[z.FIELDS.TYPE]===ee.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Ha(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[z.FIELDS.START_POS],n[z.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(Az[this.tokens[i][z.FIELDS.TYPE]]){i++;continue}else return i;return-1},Ez(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e})();ou.default=Nz;gP.exports=ou.default});var vP=x((cu,_P)=>{"use strict";p();cu.__esModule=!0;cu.default=void 0;var Pz=qz(yP());function qz(e){return e&&e.__esModule?e:{default:e}}var Lz=(function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var s=Object.assign({},this.options,i);return s.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var s=new Pz.default(n,this._parseOptions(i));return s.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var s=this;return i===void 0&&(i={}),new Promise(function(a,o){try{var c=s._root(n,i);Promise.resolve(s.func(c)).then(function(l){var f=void 0;return s._shouldUpdateSelector(n,i)&&(f=c.toString(),n.selector=f),{transform:l,root:c,string:f}}).then(a,o)}catch(l){o(l);return}})},t._runSync=function(n,i){i===void 0&&(i={});var s=this._root(n,i),a=this.func(s);if(a&&typeof a.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var o=void 0;return i.updateSelector&&typeof n!="string"&&(o=s.toString(),n.selector=o),{transform:a,root:s,string:o}},t.ast=function(n,i){return this._run(n,i).then(function(s){return s.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(s){return s.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(s){return s.string||s.root.toString()})},t.processSync=function(n,i){var s=this._runSync(n,i);return s.string||s.root.toString()},e})();cu.default=Lz;_P.exports=cu.default});var bP=x(Fe=>{"use strict";p();Fe.__esModule=!0;Fe.universal=Fe.tag=Fe.string=Fe.selector=Fe.root=Fe.pseudo=Fe.nesting=Fe.id=Fe.comment=Fe.combinator=Fe.className=Fe.attribute=void 0;var Cz=Ar(eb()),Iz=Ar(Dv()),Mz=Ar(ib()),Rz=Ar(Fv()),Dz=Ar(Vv()),jz=Ar(ab()),Fz=Ar(Jv()),Bz=Ar(Lv()),Vz=Ar(Iv()),$z=Ar(zv()),Uz=Ar(Hv()),Hz=Ar(rb());function Ar(e){return e&&e.__esModule?e:{default:e}}var Wz=function(t){return new Cz.default(t)};Fe.attribute=Wz;var zz=function(t){return new Iz.default(t)};Fe.className=zz;var Gz=function(t){return new Mz.default(t)};Fe.combinator=Gz;var Jz=function(t){return new Rz.default(t)};Fe.comment=Jz;var Kz=function(t){return new Dz.default(t)};Fe.id=Kz;var Qz=function(t){return new jz.default(t)};Fe.nesting=Qz;var Yz=function(t){return new Fz.default(t)};Fe.pseudo=Yz;var Xz=function(t){return new Bz.default(t)};Fe.root=Xz;var Zz=function(t){return new Vz.default(t)};Fe.selector=Zz;var eG=function(t){return new $z.default(t)};Fe.string=eG;var tG=function(t){return new Uz.default(t)};Fe.tag=tG;var rG=function(t){return new Hz.default(t)};Fe.universal=rG});var wP=x(xe=>{"use strict";p();xe.__esModule=!0;xe.isComment=xe.isCombinator=xe.isClassName=xe.isAttribute=void 0;xe.isContainer=hG;xe.isIdentifier=void 0;xe.isNamespace=mG;xe.isNesting=void 0;xe.isNode=gb;xe.isPseudo=void 0;xe.isPseudoClass=pG;xe.isPseudoElement=TP;xe.isUniversal=xe.isTag=xe.isString=xe.isSelector=xe.isRoot=void 0;var Je=Ot(),Xt,nG=(Xt={},Xt[Je.ATTRIBUTE]=!0,Xt[Je.CLASS]=!0,Xt[Je.COMBINATOR]=!0,Xt[Je.COMMENT]=!0,Xt[Je.ID]=!0,Xt[Je.NESTING]=!0,Xt[Je.PSEUDO]=!0,Xt[Je.ROOT]=!0,Xt[Je.SELECTOR]=!0,Xt[Je.STRING]=!0,Xt[Je.TAG]=!0,Xt[Je.UNIVERSAL]=!0,Xt);function gb(e){return typeof e=="object"&&nG[e.type]}function Or(e,t){return gb(t)&&t.type===e}var kP=Or.bind(null,Je.ATTRIBUTE);xe.isAttribute=kP;var iG=Or.bind(null,Je.CLASS);xe.isClassName=iG;var sG=Or.bind(null,Je.COMBINATOR);xe.isCombinator=sG;var aG=Or.bind(null,Je.COMMENT);xe.isComment=aG;var oG=Or.bind(null,Je.ID);xe.isIdentifier=oG;var cG=Or.bind(null,Je.NESTING);xe.isNesting=cG;var yb=Or.bind(null,Je.PSEUDO);xe.isPseudo=yb;var uG=Or.bind(null,Je.ROOT);xe.isRoot=uG;var lG=Or.bind(null,Je.SELECTOR);xe.isSelector=lG;var fG=Or.bind(null,Je.STRING);xe.isString=fG;var SP=Or.bind(null,Je.TAG);xe.isTag=SP;var dG=Or.bind(null,Je.UNIVERSAL);xe.isUniversal=dG;function TP(e){return yb(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function pG(e){return yb(e)&&!TP(e)}function hG(e){return!!(gb(e)&&e.walk)}function mG(e){return kP(e)||SP(e)}});var xP=x(Yr=>{"use strict";p();Yr.__esModule=!0;var _b=Ot();Object.keys(_b).forEach(function(e){e==="default"||e==="__esModule"||e in Yr&&Yr[e]===_b[e]||(Yr[e]=_b[e])});var vb=bP();Object.keys(vb).forEach(function(e){e==="default"||e==="__esModule"||e in Yr&&Yr[e]===vb[e]||(Yr[e]=vb[e])});var bb=wP();Object.keys(bb).forEach(function(e){e==="default"||e==="__esModule"||e in Yr&&Yr[e]===bb[e]||(Yr[e]=bb[e])})});var OP=x((uu,AP)=>{"use strict";p();uu.__esModule=!0;uu.default=void 0;var gG=vG(vP()),yG=_G(xP());function EP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(EP=function(i){return i?r:t})(e)}function _G(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=EP(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function vG(e){return e&&e.__esModule?e:{default:e}}var kb=function(t){return new gG.default(t)};Object.assign(kb,yG);delete kb.__esModule;var bG=kb;uu.default=bG;AP.exports=uu.default});var Be=x(Ht=>{"use strict";p();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isNodeOfType=gi;Ht.isLiquidBranch=kG;Ht.getHtmlNodeName=SG;Ht.isHtmlTag=TG;Ht.isAttr=wG;Ht.isHtmlAttribute=xG;Ht.isValuedHtmlAttribute=EG;Ht.valueIncludes=AG;Ht.hasAttributeValueOf=OG;Ht.isLiquidString=NG;Ht.isLoopScopedVariable=PG;Ht.isLoopLiquidTag=NP;Ht.isWithinRawTagThatDoesNotParseItsContents=CG;var Nt=oe();function gi(e,t){return t?.type===e}function kG(e){return gi(Nt.NodeTypes.LiquidBranch,e)}function SG(e){if(typeof e.name=="string")return e.name;if(e.name.length===1&&gi(Nt.NodeTypes.TextNode,e.name[0]))return e.name[0].value}function TG(e,t){return e.name.length===1&&e.name[0].type===Nt.NodeTypes.TextNode&&e.name[0].value===t&&!!e.blockEndPosition}function wG(e,t){return e.name.length===1&&gi(Nt.NodeTypes.TextNode,e.name[0])&&e.name[0].value===t}function xG(e){return[Nt.NodeTypes.AttrUnquoted,Nt.NodeTypes.AttrDoubleQuoted,Nt.NodeTypes.AttrSingleQuoted,Nt.NodeTypes.AttrEmpty].some(t=>gi(t,e))}function EG(e){return[Nt.NodeTypes.AttrUnquoted,Nt.NodeTypes.AttrDoubleQuoted,Nt.NodeTypes.AttrSingleQuoted].some(t=>gi(t,e))}function AG(e,t){let r=new RegExp(`(^|\\s)${t}(\\s|$)`,"g");return e.value.filter(n=>gi(Nt.NodeTypes.TextNode,n)).some(n=>r.test(n.value))}function OG(e,t){return e.value.length===1&&gi(Nt.NodeTypes.TextNode,e.value[0])&&e.value[0].value===t}function NG(e){return e.type===Nt.NodeTypes.String}function PG(e,t){return t.some(r=>r.type===Nt.NodeTypes.LiquidTag&&NP(r)&&typeof r.markup!="string"&&r.markup.variableName===e)}function NP(e){return Nt.LoopNamedTags.includes(e.name)}var qG=["raw","stylesheet","javascript","schema"];function LG(e){return e.type===Nt.NodeTypes.LiquidRawTag&&qG.includes(e.name)}function CG(e){return e.some(LG)}});var gn=x(Wa=>{"use strict";p();Object.defineProperty(Wa,"__esModule",{value:!0});Wa.visit=IG;Wa.forEachChildNodes=Rd;Wa.findCurrentNode=MG;Wa.findJSONNode=jG;var Md=oe();function PP(e){return e!==null&&typeof e=="object"&&typeof e.type=="string"}function IG(e,t){let r=[],n=[{node:e,lineage:[]}],i=(s,a)=>n.push({node:s,lineage:a});for(;n.length>0;){let{node:s,lineage:a}=n.pop(),o=t[s.type],c=o?o(s,a):void 0;Array.isArray(c)?r.push(...c):c!==void 0&&r.push(c),Rd(s,a.concat(s),i)}return r}function Rd(e,t,r){for(let n of Object.values(e))if(Array.isArray(n))for(let i=n.length-1;i>=0;i--)PP(n[i])&&r(n[i],t);else PP(n)&&r(n,t)}function MG(e,t){let r,n=e,i=[];for(;n!==r;)r=n,Rd(n,i.concat(n),(s,a)=>{(DG(s)||RG(s,t)&&qP(s)<=qP(n))&&(n=s,i=a)});return[n,i]}function RG(e,t){switch(e.type){case Md.NodeTypes.String:case Md.NodeTypes.VariableLookup:case Md.NodeTypes.LogicalExpression:case Md.NodeTypes.Comparison:return e.position.start<=t&&t<=e.position.end;default:return e.position.start<t&&t<=e.position.end}}function qP(e){return e.position.end-e.position.start}function DG(e){return"blockEndPosition"in e?e.blockEndPosition?.end===-1:"children"in e?e.children.length>0:!1}function jG(e,t){let r,n=e,i=[],s=t;for(;n!==r;)r=n,Rd(n,i.concat(n),(a,o)=>{a.loc.start.offset<=s&&s<a.loc.end.offset&&(n=a,i=o)});return[n,i]}});var Dd=x(yn=>{"use strict";p();var LP=yn&&yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0});yn.extractCSSClassNames=Sb;yn.extractCSSClassesFromLiquidAST=IP;yn.extractCSSClassesFromLiquidUri=$G;yn.extractCSSClassesFromAssetUri=UG;yn.collectUsedClasses=lu;yn.collectUsedClassesFromSvg=WG;var za=oe(),FG=LP(TN()),BG=LP(OP()),VG=Be(),CP=gn();function Sb(e){let t=new Set;return(0,FG.default)(e).walkRules(n=>{try{(0,BG.default)().astSync(n.selector).walk(s=>{s.type==="class"&&t.add(s.value)})}catch{}}),t}function IP(e){let t=new Set,r=(0,CP.visit)(e,{LiquidRawTag(n){if(n.name==="stylesheet")return n.body.value}});for(let n of r)for(let i of Sb(n))t.add(i);return t}async function $G(e,t){let r=new Set;try{let n=await t.readFile(e);if(!/\{%-?\s*stylesheet/.test(n))return r;let i=(0,za.toLiquidHtmlAST)(n);if(i instanceof Error)return r;for(let s of IP(i))r.add(s)}catch{}return r}async function UG(e,t){try{let r=await t.readFile(e);return Sb(r)}catch{return new Set}}function HG(e){return e.name.length===1&&e.name[0].type===za.NodeTypes.TextNode&&e.name[0].value.toLowerCase()==="class"}function lu(e,t){for(let r of e){if(!(0,VG.isValuedHtmlAttribute)(r)||!HG(r))continue;let n=r.value;for(let i=0;i<n.length;i++){let s=n[i];if(s.type!==za.NodeTypes.TextNode)continue;let a=s,o=a.value,c=a.position.start,l=i>0&&n[i-1].type!==za.NodeTypes.TextNode,f=i<n.length-1&&n[i+1].type!==za.NodeTypes.TextNode,m=[],d=/\S+/g,g;for(;(g=d.exec(o))!==null;)m.push({className:g[0],startIndex:c+g.index,endIndex:c+g.index+g[0].length});m.length!==0&&(l&&!/^\s/.test(o)&&m.shift(),f&&!/\s$/.test(o)&&m.pop(),t.push(...m))}}}function WG(e,t,r,n){lu(e,n);try{let i=(0,za.toLiquidHtmlAST)(t);if(i instanceof Error)return;let s=[],a={HtmlElement(o){lu(o.attributes,s)},HtmlVoidElement(o){lu(o.attributes,s)},HtmlSelfClosingElement(o){lu(o.attributes,s)}};(0,CP.visit)(i,a);for(let o of s)n.push({className:o.className,startIndex:o.startIndex+r,endIndex:o.endIndex+r})}catch{}}});var du=x((fu,Tb)=>{p();(function(e,t){if(typeof fu=="object"&&typeof Tb=="object")Tb.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var r=t();for(var n in r)(typeof fu=="object"?fu:e)[n]=r[n]}})(fu,(()=>(()=>{"use strict";var e={975:i=>{function s(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function a(c,l){for(var f,m="",d=0,g=-1,_=0,k=0;k<=c.length;++k){if(k<c.length)f=c.charCodeAt(k);else{if(f===47)break;f=47}if(f===47){if(!(g===k-1||_===1))if(g!==k-1&&_===2){if(m.length<2||d!==2||m.charCodeAt(m.length-1)!==46||m.charCodeAt(m.length-2)!==46){if(m.length>2){var b=m.lastIndexOf("/");if(b!==m.length-1){b===-1?(m="",d=0):d=(m=m.slice(0,b)).length-1-m.lastIndexOf("/"),g=k,_=0;continue}}else if(m.length===2||m.length===1){m="",d=0,g=k,_=0;continue}}l&&(m.length>0?m+="/..":m="..",d=2)}else m.length>0?m+="/"+c.slice(g+1,k):m=c.slice(g+1,k),d=k-g-1;g=k,_=0}else f===46&&_!==-1?++_:_=-1}return m}var o={resolve:function(){for(var c,l="",f=!1,m=arguments.length-1;m>=-1&&!f;m--){var d;m>=0?d=arguments[m]:(c===void 0&&(c=process.cwd()),d=c),s(d),d.length!==0&&(l=d+"/"+l,f=d.charCodeAt(0)===47)}return l=a(l,!f),f?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(c){if(s(c),c.length===0)return".";var l=c.charCodeAt(0)===47,f=c.charCodeAt(c.length-1)===47;return(c=a(c,!l)).length!==0||l||(c="."),c.length>0&&f&&(c+="/"),l?"/"+c:c},isAbsolute:function(c){return s(c),c.length>0&&c.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var c,l=0;l<arguments.length;++l){var f=arguments[l];s(f),f.length>0&&(c===void 0?c=f:c+="/"+f)}return c===void 0?".":o.normalize(c)},relative:function(c,l){if(s(c),s(l),c===l||(c=o.resolve(c))===(l=o.resolve(l)))return"";for(var f=1;f<c.length&&c.charCodeAt(f)===47;++f);for(var m=c.length,d=m-f,g=1;g<l.length&&l.charCodeAt(g)===47;++g);for(var _=l.length-g,k=d<_?d:_,b=-1,v=0;v<=k;++v){if(v===k){if(_>k){if(l.charCodeAt(g+v)===47)return l.slice(g+v+1);if(v===0)return l.slice(g+v)}else d>k&&(c.charCodeAt(f+v)===47?b=v:v===0&&(b=0));break}var w=c.charCodeAt(f+v);if(w!==l.charCodeAt(g+v))break;w===47&&(b=v)}var T="";for(v=f+b+1;v<=m;++v)v!==m&&c.charCodeAt(v)!==47||(T.length===0?T+="..":T+="/..");return T.length>0?T+l.slice(g+b):(g+=b,l.charCodeAt(g)===47&&++g,l.slice(g))},_makeLong:function(c){return c},dirname:function(c){if(s(c),c.length===0)return".";for(var l=c.charCodeAt(0),f=l===47,m=-1,d=!0,g=c.length-1;g>=1;--g)if((l=c.charCodeAt(g))===47){if(!d){m=g;break}}else d=!1;return m===-1?f?"/":".":f&&m===1?"//":c.slice(0,m)},basename:function(c,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');s(c);var f,m=0,d=-1,g=!0;if(l!==void 0&&l.length>0&&l.length<=c.length){if(l.length===c.length&&l===c)return"";var _=l.length-1,k=-1;for(f=c.length-1;f>=0;--f){var b=c.charCodeAt(f);if(b===47){if(!g){m=f+1;break}}else k===-1&&(g=!1,k=f+1),_>=0&&(b===l.charCodeAt(_)?--_==-1&&(d=f):(_=-1,d=k))}return m===d?d=k:d===-1&&(d=c.length),c.slice(m,d)}for(f=c.length-1;f>=0;--f)if(c.charCodeAt(f)===47){if(!g){m=f+1;break}}else d===-1&&(g=!1,d=f+1);return d===-1?"":c.slice(m,d)},extname:function(c){s(c);for(var l=-1,f=0,m=-1,d=!0,g=0,_=c.length-1;_>=0;--_){var k=c.charCodeAt(_);if(k!==47)m===-1&&(d=!1,m=_+1),k===46?l===-1?l=_:g!==1&&(g=1):l!==-1&&(g=-1);else if(!d){f=_+1;break}}return l===-1||m===-1||g===0||g===1&&l===m-1&&l===f+1?"":c.slice(l,m)},format:function(c){if(c===null||typeof c!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof c);return(function(l,f){var m=f.dir||f.root,d=f.base||(f.name||"")+(f.ext||"");return m?m===f.root?m+d:m+"/"+d:d})(0,c)},parse:function(c){s(c);var l={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return l;var f,m=c.charCodeAt(0),d=m===47;d?(l.root="/",f=1):f=0;for(var g=-1,_=0,k=-1,b=!0,v=c.length-1,w=0;v>=f;--v)if((m=c.charCodeAt(v))!==47)k===-1&&(b=!1,k=v+1),m===46?g===-1?g=v:w!==1&&(w=1):g!==-1&&(w=-1);else if(!b){_=v+1;break}return g===-1||k===-1||w===0||w===1&&g===k-1&&g===_+1?k!==-1&&(l.base=l.name=_===0&&d?c.slice(1,k):c.slice(_,k)):(_===0&&d?(l.name=c.slice(1,g),l.base=c.slice(1,k)):(l.name=c.slice(_,g),l.base=c.slice(_,k)),l.ext=c.slice(g,k)),_>0?l.dir=c.slice(0,_-1):d&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o},70:(i,s)=>{if(Object.defineProperty(s,"__esModule",{value:!0}),s.isWindows=void 0,typeof process=="object")s.isWindows=process.platform==="win32";else if(typeof navigator=="object"){let a=navigator.userAgent;s.isWindows=a.indexOf("Windows")>=0}},231:(i,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.uriToFsPath=s.URI=void 0;let o=a(70),c=/^\w[\w\d+.-]*$/,l=/^\//,f=/^\/\//;function m(M,L){if(!M.scheme&&L)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${M.authority}", path: "${M.path}", query: "${M.query}", fragment: "${M.fragment}"}`);if(M.scheme&&!c.test(M.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(M.path){if(M.authority){if(!l.test(M.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(f.test(M.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let d="",g="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class k{static isUri(L){return L instanceof k||!!L&&typeof L.authority=="string"&&typeof L.fragment=="string"&&typeof L.path=="string"&&typeof L.query=="string"&&typeof L.scheme=="string"&&typeof L.fsPath=="string"&&typeof L.with=="function"&&typeof L.toString=="function"}scheme;authority;path;query;fragment;constructor(L,C,$,V,I,F=!1){typeof L=="object"?(this.scheme=L.scheme||d,this.authority=L.authority||d,this.path=L.path||d,this.query=L.query||d,this.fragment=L.fragment||d):(this.scheme=(function(U,J){return U||J?U:"file"})(L,F),this.authority=C||d,this.path=(function(U,J){switch(U){case"https":case"http":case"file":J?J[0]!==g&&(J=g+J):J=g}return J})(this.scheme,$||d),this.query=V||d,this.fragment=I||d,m(this,F))}get fsPath(){return A(this,!1)}with(L){if(!L)return this;let{scheme:C,authority:$,path:V,query:I,fragment:F}=L;return C===void 0?C=this.scheme:C===null&&(C=d),$===void 0?$=this.authority:$===null&&($=d),V===void 0?V=this.path:V===null&&(V=d),I===void 0?I=this.query:I===null&&(I=d),F===void 0?F=this.fragment:F===null&&(F=d),C===this.scheme&&$===this.authority&&V===this.path&&I===this.query&&F===this.fragment?this:new v(C,$,V,I,F)}static parse(L,C=!1){let $=_.exec(L);return $?new v($[2]||d,B($[4]||d),B($[5]||d),B($[7]||d),B($[9]||d),C):new v(d,d,d,d,d)}static file(L){let C=d;if(o.isWindows&&(L=L.replace(/\\/g,g)),L[0]===g&&L[1]===g){let $=L.indexOf(g,2);$===-1?(C=L.substring(2),L=g):(C=L.substring(2,$),L=L.substring($)||g)}return new v("file",C,L,d,d)}static from(L){let C=new v(L.scheme,L.authority,L.path,L.query,L.fragment);return m(C,!0),C}toString(L=!1){return O(this,L)}toJSON(){return this}static revive(L){if(L){if(L instanceof k)return L;{let C=new v(L);return C._formatted=L.external,C._fsPath=L._sep===b?L.fsPath:null,C}}return L}}s.URI=k;let b=o.isWindows?1:void 0;class v extends k{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath}toString(L=!1){return L?O(this,!0):(this._formatted||(this._formatted=O(this,!1)),this._formatted)}toJSON(){let L={$mid:1};return this._fsPath&&(L.fsPath=this._fsPath,L._sep=b),this._formatted&&(L.external=this._formatted),this.path&&(L.path=this.path),this.scheme&&(L.scheme=this.scheme),this.authority&&(L.authority=this.authority),this.query&&(L.query=this.query),this.fragment&&(L.fragment=this.fragment),L}}let w={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function T(M,L,C){let $,V=-1;for(let I=0;I<M.length;I++){let F=M.charCodeAt(I);if(F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===45||F===46||F===95||F===126||L&&F===47||C&&F===91||C&&F===93||C&&F===58)V!==-1&&($+=encodeURIComponent(M.substring(V,I)),V=-1),$!==void 0&&($+=M.charAt(I));else{$===void 0&&($=M.substr(0,I));let U=w[F];U!==void 0?(V!==-1&&($+=encodeURIComponent(M.substring(V,I)),V=-1),$+=U):V===-1&&(V=I)}}return V!==-1&&($+=encodeURIComponent(M.substring(V))),$!==void 0?$:M}function y(M){let L;for(let C=0;C<M.length;C++){let $=M.charCodeAt(C);$===35||$===63?(L===void 0&&(L=M.substr(0,C)),L+=w[$]):L!==void 0&&(L+=M[C])}return L!==void 0?L:M}function A(M,L){let C;return C=M.authority&&M.path.length>1&&M.scheme==="file"?`//${M.authority}${M.path}`:M.path.charCodeAt(0)===47&&(M.path.charCodeAt(1)>=65&&M.path.charCodeAt(1)<=90||M.path.charCodeAt(1)>=97&&M.path.charCodeAt(1)<=122)&&M.path.charCodeAt(2)===58?L?M.path.substr(1):M.path[1].toLowerCase()+M.path.substr(2):M.path,o.isWindows&&(C=C.replace(/\//g,"\\")),C}function O(M,L){let C=L?y:T,$="",{scheme:V,authority:I,path:F,query:U,fragment:J}=M;if(V&&($+=V,$+=":"),(I||V==="file")&&($+=g,$+=g),I){let Y=I.indexOf("@");if(Y!==-1){let Q=I.substr(0,Y);I=I.substr(Y+1),Y=Q.lastIndexOf(":"),Y===-1?$+=C(Q,!1,!1):($+=C(Q.substr(0,Y),!1,!1),$+=":",$+=C(Q.substr(Y+1),!1,!0)),$+="@"}I=I.toLowerCase(),Y=I.lastIndexOf(":"),Y===-1?$+=C(I,!1,!0):($+=C(I.substr(0,Y),!1,!0),$+=I.substr(Y))}if(F){if(F.length>=3&&F.charCodeAt(0)===47&&F.charCodeAt(2)===58){let Y=F.charCodeAt(1);Y>=65&&Y<=90&&(F=`/${String.fromCharCode(Y+32)}:${F.substr(3)}`)}else if(F.length>=2&&F.charCodeAt(1)===58){let Y=F.charCodeAt(0);Y>=65&&Y<=90&&(F=`${String.fromCharCode(Y+32)}:${F.substr(2)}`)}$+=C(F,!0,!1)}return U&&($+="?",$+=C(U,!1,!1)),J&&($+="#",$+=L?J:T(J,!1,!1)),$}function N(M){try{return decodeURIComponent(M)}catch{return M.length>3?M.substr(0,3)+N(M.substr(3)):M}}s.uriToFsPath=A;let q=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function B(M){return M.match(q)?M.replace(q,(L=>N(L))):M}},552:function(i,s,a){var o=this&&this.__createBinding||(Object.create?function(_,k,b,v){v===void 0&&(v=b);var w=Object.getOwnPropertyDescriptor(k,b);w&&!("get"in w?!k.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return k[b]}}),Object.defineProperty(_,v,w)}:function(_,k,b,v){v===void 0&&(v=b),_[v]=k[b]}),c=this&&this.__setModuleDefault||(Object.create?function(_,k){Object.defineProperty(_,"default",{enumerable:!0,value:k})}:function(_,k){_.default=k}),l=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var k={};if(_!=null)for(var b in _)b!=="default"&&Object.prototype.hasOwnProperty.call(_,b)&&o(k,_,b);return c(k,_),k};Object.defineProperty(s,"__esModule",{value:!0}),s.Utils=void 0;let f=l(a(975)),m=f.posix||f,d="/";var g;(function(_){_.joinPath=function(k,...b){return k.with({path:m.join(k.path,...b)})},_.resolvePath=function(k,...b){let v=k.path,w=!1;v[0]!==d&&(v=d+v,w=!0);let T=m.resolve(v,...b);return w&&T[0]===d&&!k.authority&&(T=T.substring(1)),k.with({path:T})},_.dirname=function(k){if(k.path.length===0||k.path===d)return k;let b=m.dirname(k.path);return b.length===1&&b.charCodeAt(0)===46&&(b=""),k.with({path:b})},_.basename=function(k){return m.basename(k.path)},_.extname=function(k){return m.extname(k.path)}})(g||(s.Utils=g={}))}},t={};function r(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,r),a.exports}var n={};return(()=>{var i=n;Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.URI=void 0;let s=r(231);Object.defineProperty(i,"URI",{enumerable:!0,get:function(){return s.URI}});let a=r(552);Object.defineProperty(i,"Utils",{enumerable:!0,get:function(){return a.Utils}})})(),n})()))});var Ss=x(lr=>{"use strict";p();Object.defineProperty(lr,"__esModule",{value:!0});lr.Utils=lr.URI=void 0;lr.relative=zG;lr.join=GG;lr.resolve=JG;lr.normalize=pu;lr.dirname=KG;lr.basename=QG;lr.fsPath=YG;var yi=du();Object.defineProperty(lr,"URI",{enumerable:!0,get:function(){return yi.URI}});Object.defineProperty(lr,"Utils",{enumerable:!0,get:function(){return yi.Utils}});function zG(e,t){return pu(e).replace(t,"").replace(/\\\\/g,"/").replace(/^\/+/,"")}function GG(e,...t){return pu(yi.Utils.joinPath(Ga(e),...t))}function JG(e,t){return pu(yi.Utils.resolvePath(Ga(e),t))}function pu(e){return Ga(e).toString(!0).replace(/\\/g,"/")}function KG(e){return pu(yi.Utils.dirname(Ga(e)))}function QG(e,t){let r=yi.Utils.basename(Ga(e));return t?r.replace(new RegExp(`${t.replace(/\./g,"\\.")}$`),""):r}function YG(e){return Ga(e).fsPath}function Ga(e){return yi.URI.isUri(e)?e:yi.URI.parse(e)}});var wb=x(Nr=>{"use strict";p();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.location=Nr.JSONCParseErrors=void 0;Nr.toJSONNode=eJ;var XG=qe(),ZG=(fn(),Ay(pa)),jd=class extends Error{errors;constructor(t,r){super(t),this.errors=r}};Nr.JSONCParseErrors=jd;function eJ(e){let t=[],r=(0,ZG.parseTree)(e,t,{allowTrailingComma:!0,disallowComments:!1});if(t.length||r===void 0)throw new jd("Failed to parse JSONC",t);return Fd(r)}function Fd(e){switch(e.type){case"object":return tJ(e);case"property":return nJ(e);case"array":return rJ(e);case"boolean":case"null":case"number":case"string":return sJ(e);default:(0,XG.assertNever)(e.type)}}function tJ(e){return{type:"Object",children:(e.children??[]).map(Fd),loc:(0,Nr.location)(e.offset,e.offset+e.length)}}function rJ(e){return{type:"Array",children:e.children.map(Fd),loc:(0,Nr.location)(e.offset,e.offset+e.length)}}function nJ(e){return{type:"Property",key:iJ(e.children[0]),value:Fd(e.children[1]),loc:(0,Nr.location)(e.offset,e.offset+e.length)}}function iJ(e){return{type:"Identifier",value:e.value,raw:JSON.stringify(e.value),loc:(0,Nr.location)(e.offset,e.offset+e.length)}}function sJ(e){return{type:"Literal",value:e.value,raw:JSON.stringify(e.value),loc:(0,Nr.location)(e.offset,e.offset+e.length)}}var aJ=(e,t)=>({start:MP(e),end:MP(t)});Nr.location=aJ;var MP=e=>({offset:e})});var DP=x(RP=>{"use strict";p();Object.defineProperty(RP,"__esModule",{value:!0})});var jP=x(Bd=>{"use strict";p();Object.defineProperty(Bd,"__esModule",{value:!0});Bd.SchemaProp=void 0;var xb=class e{options;constructor(t){this.options=t}static string(t){return new e({type:"string",defaultValue:t})}static number(t){return new e({type:"number",defaultValue:t})}static boolean(t){return new e({type:"boolean",defaultValue:t})}static object(t,r){return new e({type:"object",defaultValue:r,properties:t})}static array(t,r){return new e({type:"array",defaultValue:r,itemType:t})}optional(){return this.options.optional=!0,this}defaultValue(){return this.options.defaultValue}};Bd.SchemaProp=xb});var BP=x(FP=>{"use strict";p();Object.defineProperty(FP,"__esModule",{value:!0})});var $P=x(VP=>{"use strict";p();Object.defineProperty(VP,"__esModule",{value:!0})});var UP=x(Vd=>{"use strict";p();Object.defineProperty(Vd,"__esModule",{value:!0});Vd.Setting=void 0;var oJ=$P();Object.defineProperty(Vd,"Setting",{enumerable:!0,get:function(){return oJ.Setting}})});var WP=x(Hn=>{"use strict";p();var cJ=Hn&&Hn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),uJ=Hn&&Hn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cJ(t,e,r)};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.ThemeSchemaType=void 0;uJ(UP(),Hn);var HP;(function(e){e.AppBlock="app-block",e.Block="block",e.Section="section"})(HP||(Hn.ThemeSchemaType=HP={}))});var G=x(Ae=>{"use strict";p();var lJ=Ae&&Ae.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),$d=Ae&&Ae.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&lJ(t,e,r)};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.ConfigTarget=Ae.Severity=Ae.LiquidHtmlNodeTypes=Ae.SourceCodeType=Ae.Modes=Ae.isLiteralNode=Ae.isValueNode=Ae.isPropertyNode=Ae.isArrayNode=Ae.isObjectNode=void 0;var fJ=oe();Object.defineProperty(Ae,"LiquidHtmlNodeTypes",{enumerable:!0,get:function(){return fJ.NodeTypes}});$d(DP(),Ae);$d(jP(),Ae);$d(BP(),Ae);$d(WP(),Ae);var dJ=e=>e?.type==="Object";Ae.isObjectNode=dJ;var pJ=e=>e?.type==="Array";Ae.isArrayNode=pJ;var hJ=e=>e?.type==="Property";Ae.isPropertyNode=hJ;var mJ=e=>e?.type==="Value";Ae.isValueNode=mJ;var gJ=e=>e?.type==="Literal";Ae.isLiteralNode=gJ;Ae.Modes=["theme","app"];var zP;(function(e){e.JSON="JSON",e.LiquidHtml="LiquidHtml"})(zP||(Ae.SourceCodeType=zP={}));var GP;(function(e){e[e.ERROR=0]="ERROR",e[e.WARNING=1]="WARNING",e[e.INFO=2]="INFO"})(GP||(Ae.Severity=GP={}));var JP;(function(e){e.All="all",e.Recommended="recommended",e.ThemeAppExtension="theme-app-extension"})(JP||(Ae.ConfigTarget=JP={}))});var Ja=x(Xr=>{"use strict";p();var yJ=Xr&&Xr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),_J=Xr&&Xr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),vJ=Xr&&Xr.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),i=0;i<n.length;i++)n[i]!=="default"&&yJ(r,t,n[i]);return _J(r,t),r}})();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.toLiquidHTMLAST=XP;Xr.toJSONAST=ZP;Xr.toSourceCode=SJ;var bJ=oe(),kJ=wb(),KP=vJ(Ss()),QP=G(),YP=rf();function XP(e){try{return(0,bJ.toLiquidHtmlAST)(e)}catch(t){return(0,YP.asError)(t)}}function ZP(e){try{return(0,kJ.toJSONNode)(e)}catch(t){return(0,YP.asError)(t)}}function SJ(e,t,r){return e.endsWith(".liquid")?{uri:KP.normalize(e),source:t,type:QP.SourceCodeType.LiquidHtml,ast:XP(t),version:r}:{uri:KP.normalize(e),source:t,type:QP.SourceCodeType.JSON,ast:ZP(t),version:r}}});var ct=x(mt=>{"use strict";p();var TJ=mt&&mt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),wJ=mt&&mt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),xJ=mt&&mt.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),i=0;i<n.length;i++)n[i]!=="default"&&TJ(r,t,n[i]);return wJ(r,t),r}})();Object.defineProperty(mt,"__esModule",{value:!0});mt.toSchema=EJ;mt.isBlock=Ud;mt.isSection=Ab;mt.isSnippet=AJ;mt.isBlockSchema=OJ;mt.isSectionSchema=NJ;mt.toBlockSchema=iq;mt.toSectionSchema=sq;mt.toAppBlockSchema=aq;mt.getSchema=PJ;mt.getSchemaFromJSON=qJ;var Eb=oe(),eq=We(),Ts=xJ(Ss()),tq=Ja(),Ka=G(),rq=gn();async function EJ(e,t,r,n,i=!0){if(r.type===Ka.SourceCodeType.LiquidHtml)switch(!0){case(e==="app"&&Ud(t)):return aq(t,r.ast,i);case(e==="theme"&&Ud(t)):return iq(t,r.ast,n,i);case(e==="theme"&&Ab(t)):return sq(t,r.ast,n,i);default:return}}function Ud(e){return Ts.dirname(e).endsWith("blocks")}function Ab(e){return Ts.dirname(e).endsWith("sections")}function AJ(e){return Ts.dirname(e).endsWith("snippets")}function OJ(e){return e?.type===Ka.ThemeSchemaType.Block}function NJ(e){return e?.type===Ka.ThemeSchemaType.Section}async function nq(e,t,r,n){return n?t instanceof Error||await n(e,t.body.value)?r:new Error("Invalid schema"):new Error("No JSON validator provided")}async function iq(e,t,r,n){let i=Ts.basename(e,".liquid"),s=Ob(t),a=oq(t),o=Nb(s,n),c=Pb(s);return{type:Ka.ThemeSchemaType.Block,validSchema:await nq(e,s,o,r),offset:s instanceof Error?0:s.blockStartPosition.end,name:i,parsed:o,ast:c,value:s instanceof Error?"":s.body.value,staticBlockDefs:a}}async function sq(e,t,r,n){let i=Ts.basename(e,".liquid"),s=Ob(t),a=oq(t),o=Nb(s,n),c=Pb(s);return{type:Ka.ThemeSchemaType.Section,validSchema:await nq(e,s,o,r),offset:s instanceof Error?0:s.blockStartPosition.end,name:i,parsed:o,ast:c,value:s instanceof Error?"":s.body.value,staticBlockDefs:a}}async function aq(e,t,r){let n=Ts.basename(e,".liquid"),i=Ob(t),s=Nb(i,r),a=Pb(i);return{type:Ka.ThemeSchemaType.AppBlock,offset:i instanceof Error?0:i.blockStartPosition.end,name:n,parsed:s,ast:a,value:i instanceof Error?"":i.body.value}}function Ob(e){return e instanceof Error?e:(0,rq.visit)(e,{LiquidRawTag(t){if(t.name==="schema")return t}})[0]??new Error("No schema tag found")}function oq(e){return e instanceof Error?[]:(0,rq.visit)(e,{LiquidTag(t){if(t.name!==Eb.NamedTags.content_for||typeof t.markup=="string")return;let r=t.markup;if(r.contentForType.value!=="block")return;let n=r.args.find(s=>s.name==="type"),i=r.args.find(s=>s.name==="id");if(!(!n||!i)&&n.value.type===Eb.NodeTypes.String&&i.value.type===Eb.NodeTypes.String)return{type:n.value.value,id:i.value.value}}})}function PJ(e){let t=Ts.basename(e.file.uri,".liquid");switch(!0){case Ud(e.file.uri):return e.getBlockSchema?.(t);case Ab(e.file.uri):return e.getSectionSchema?.(t);default:return}}async function qJ(e){let t=e.file.source,r=(0,eq.parseJSON)(t),n=(0,tq.toJSONAST)(t);return{parsed:r,ast:n}}function Nb(e,t){return e instanceof Error?e:(0,eq.parseJSON)(e.body.value,void 0,t)}function Pb(e){return e instanceof Error?e:(0,tq.toJSONAST)(e.body.value)}});var Hd=x(hu=>{"use strict";p();Object.defineProperty(hu,"__esModule",{value:!0});hu.getAncestorUris=LJ;hu.getAllSnippetDescendantUris=CJ;hu.getRenderedSnippetUris=IJ;var cq=ct();async function LJ(e,t){let r=[],n=new Set,i=[e];for(;i.length>0;){let s=i.shift();if(n.has(s))continue;n.add(s);let a=await t(s);for(let o of a)o.type==="direct"&&!n.has(o.source.uri)&&(r.push(o.source.uri),i.push(o.source.uri))}return r}async function CJ(e,t){let r=[],n=new Set,i=[...e];for(;i.length>0;){let s=i.shift();if(n.has(s))continue;n.add(s),r.push(s);let a=await t(s);for(let o of a)o.type==="direct"&&(0,cq.isSnippet)(o.target.uri)&&!n.has(o.target.uri)&&i.push(o.target.uri)}return r}async function IJ(e,t){return(await t(e)).filter(n=>n.type==="direct"&&(0,cq.isSnippet)(n.target.uri)).map(n=>n.target.uri)}});var qe=x(Bt=>{"use strict";p();var MJ=Bt&&Bt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),_n=Bt&&Bt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MJ(t,e,r)};Object.defineProperty(Bt,"__esModule",{value:!0});_n(Ny(),Bt);_n(ex(),Bt);_n(sx(),Bt);_n(rf(),Bt);_n(Cy(),Bt);_n(My(),Bt);_n(Dy(),Bt);_n(xx(),Bt);_n(Dd(),Bt);_n(Hd(),Bt)});var Lb=x(Wd=>{"use strict";p();Object.defineProperty(Wd,"__esModule",{value:!0});Wd.AugmentedThemeDocset=void 0;var mu=qe(),uq=e=>({name:e}),RJ=[["camelcase","camelize"],["handle","handleize"],["t","translate"]],DJ=e=>([t,r])=>{let n=e.find(i=>i.name===r);return n?{...n,name:t}:uq(t)},jJ=["_online_store_editor_live_setting","addresses_url","app_block_path?","app_block_path_for","app_extension_path?","app_snippet_path?","cancel_customer_order_link","debug","delete_customer_address_link","dev_shop?","distance_from","edit_customer_address_link","encode_url_component","excerpt","format_code","global_block_type?","h","handle_from","installments_pricing","link_to_theme","login_button","login_url","logout_url","pad_spaces","paragraphize","recover_password_link","recover_url","register_url","registration_uuid_from","root_account_url","sentence","theme_url","unit","weight"],FJ=["locale","direction","skip_to_content_link","checkout_html_classes","checkout_stylesheets","checkout_scripts","content_for_logo","breadcrumb","order_summary_toggle","content_for_order_summary","alternative_payment_methods","content_for_footer","tracking_code"],lq=(e,t,r)=>({name:e,...t&&{access:t},...r&&{return_type:r}}),BJ=["customer_address","product_variant"],VJ=FJ.map(e=>lq(e,{global:!1,parents:[],template:[]},[{type:"string",name:""}])),$J=e=>({name:e}),UJ=["elsif","ifchanged","when","schema"],qb=class{themeDocset;constructor(t){this.themeDocset=t}isAugmented=!0;filters=(0,mu.memo)(async()=>{let t=await this.themeDocset.filters();return[...t,...RJ.map(DJ(t)),...jJ.map(uq)]});objects=(0,mu.memo)(async()=>[...await this.themeDocset.objects(),...BJ.map(t=>lq(t)),...VJ]);liquidDrops=(0,mu.memo)(async()=>(await this.themeDocset.objects()).filter(t=>t.access?t.deprecated?!1:!t.access.global||t.access.global&&t.access.parents.length>0:!0));tags=(0,mu.memo)(async()=>[...await this.themeDocset.tags(),...UJ.map($J)]);systemTranslations=(0,mu.memo)(async()=>this.themeDocset.systemTranslations())};Wd.AugmentedThemeDocset=qb});function ws(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!ws(e[r],t[r]))return!1}else{let i=[];for(n in e)i.push(n);i.sort();let s=[];for(n in t)s.push(n);if(s.sort(),!ws(i,s))return!1;for(r=0;r<i.length;r++)if(!ws(e[i[r]],t[i[r]]))return!1}return!0}function Pt(e){return typeof e=="number"}function fr(e){return typeof e<"u"}function Pr(e){return typeof e=="boolean"}function zd(e){return typeof e=="string"}function vn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gu=Te(()=>{p()});function HJ(e,t){if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}function _i(e,t){let r=e.length-t.length;return r>0?e.lastIndexOf(t)===r:r===0?e===t:!1}function xs(e){let t="";HJ(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch{try{return new RegExp(e,t)}catch{return}}}function Cb(e){let t=0;for(let r=0;r<e.length;r++){t++;let n=e.charCodeAt(r);55296<=n&&n<=56319&&r++}return t}var yu=Te(()=>{p()});var Gd,Ib,dq,Jd,Me,ue,Wn,pq,_u,Kd,Qd,vi,Yd,Mb,qt,hq,mq,dr,bi,Vt,Rb,Qa,gq,vu,Db,jb,Fb,bu,yq,Xd,Bb,_q,bn,Es,Lt,Xe,Zd,vq,bq,kq,Ya,ep,Xa,tp,Sq,Tq,rp,np,pr,wq,ip,xq,sp,ap,op,cp,up,Eq,Aq,lp,As,Oq,Nq,Pq,qq,Lq,Cq,Iq,Vb,$b,Mq,Rq,Dq,jq,Fq,Bq,Vq,$q,Uq,Ub,D,Hb=Te(()=>{"use strict";p();(function(e){function t(r){return typeof r=="string"}e.is=t})(Gd||(Gd={}));(function(e){function t(r){return typeof r=="string"}e.is=t})(Ib||(Ib={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(dq||(dq={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Jd||(Jd={}));(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Jd.MAX_VALUE),i===Number.MAX_VALUE&&(i=Jd.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&D.uinteger(i.line)&&D.uinteger(i.character)}e.is=r})(Me||(Me={}));(function(e){function t(n,i,s,a){if(D.uinteger(n)&&D.uinteger(i)&&D.uinteger(s)&&D.uinteger(a))return{start:Me.create(n,i),end:Me.create(s,a)};if(Me.is(n)&&Me.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${s}, ${a}]`)}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&Me.is(i.start)&&Me.is(i.end)}e.is=r})(ue||(ue={}));(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&ue.is(i.range)&&(D.string(i.uri)||D.undefined(i.uri))}e.is=r})(Wn||(Wn={}));(function(e){function t(n,i,s,a){return{targetUri:n,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&ue.is(i.targetRange)&&D.string(i.targetUri)&&ue.is(i.targetSelectionRange)&&(ue.is(i.originSelectionRange)||D.undefined(i.originSelectionRange))}e.is=r})(pq||(pq={}));(function(e){function t(n,i,s,a){return{red:n,green:i,blue:s,alpha:a}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&D.numberRange(i.red,0,1)&&D.numberRange(i.green,0,1)&&D.numberRange(i.blue,0,1)&&D.numberRange(i.alpha,0,1)}e.is=r})(_u||(_u={}));(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&ue.is(i.range)&&_u.is(i.color)}e.is=r})(Kd||(Kd={}));(function(e){function t(n,i,s){return{label:n,textEdit:i,additionalTextEdits:s}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&D.string(i.label)&&(D.undefined(i.textEdit)||Vt.is(i))&&(D.undefined(i.additionalTextEdits)||D.typedArray(i.additionalTextEdits,Vt.is))}e.is=r})(Qd||(Qd={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(vi||(vi={}));(function(e){function t(n,i,s,a,o,c){let l={startLine:n,endLine:i};return D.defined(s)&&(l.startCharacter=s),D.defined(a)&&(l.endCharacter=a),D.defined(o)&&(l.kind=o),D.defined(c)&&(l.collapsedText=c),l}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&D.uinteger(i.startLine)&&D.uinteger(i.startLine)&&(D.undefined(i.startCharacter)||D.uinteger(i.startCharacter))&&(D.undefined(i.endCharacter)||D.uinteger(i.endCharacter))&&(D.undefined(i.kind)||D.string(i.kind))}e.is=r})(Yd||(Yd={}));(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&Wn.is(i.location)&&D.string(i.message)}e.is=r})(Mb||(Mb={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(qt||(qt={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(hq||(hq={}));(function(e){function t(r){let n=r;return D.objectLiteral(n)&&D.string(n.href)}e.is=t})(mq||(mq={}));(function(e){function t(n,i,s,a,o,c){let l={range:n,message:i};return D.defined(s)&&(l.severity=s),D.defined(a)&&(l.code=a),D.defined(o)&&(l.source=o),D.defined(c)&&(l.relatedInformation=c),l}e.create=t;function r(n){var i;let s=n;return D.defined(s)&&ue.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,Mb.is))}e.is=r})(dr||(dr={}));(function(e){function t(n,i,...s){let a={title:n,command:i};return D.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function r(n){let i=n;return D.defined(i)&&D.string(i.title)&&D.string(i.command)}e.is=r})(bi||(bi={}));(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function r(s,a){return{range:{start:s,end:s},newText:a}}e.insert=r;function n(s){return{range:s,newText:""}}e.del=n;function i(s){let a=s;return D.objectLiteral(a)&&D.string(a.newText)&&ue.is(a.range)}e.is=i})(Vt||(Vt={}));(function(e){function t(n,i,s){let a={label:n};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&D.string(i.label)&&(D.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(D.string(i.description)||i.description===void 0)}e.is=r})(Rb||(Rb={}));(function(e){function t(r){let n=r;return D.string(n)}e.is=t})(Qa||(Qa={}));(function(e){function t(s,a,o){return{range:s,newText:a,annotationId:o}}e.replace=t;function r(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}e.insert=r;function n(s,a){return{range:s,newText:"",annotationId:a}}e.del=n;function i(s){let a=s;return Vt.is(a)&&(Rb.is(a.annotationId)||Qa.is(a.annotationId))}e.is=i})(gq||(gq={}));(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&Bb.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(vu||(vu={}));(function(e){function t(n,i,s){let a={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&D.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||D.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||D.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qa.is(i.annotationId))}e.is=r})(Db||(Db={}));(function(e){function t(n,i,s,a){let o={kind:"rename",oldUri:n,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&D.string(i.oldUri)&&D.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||D.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||D.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qa.is(i.annotationId))}e.is=r})(jb||(jb={}));(function(e){function t(n,i,s){let a={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&D.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||D.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||D.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Qa.is(i.annotationId))}e.is=r})(Fb||(Fb={}));(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>D.string(i.kind)?Db.is(i)||jb.is(i)||Fb.is(i):vu.is(i)))}e.is=t})(bu||(bu={}));(function(e){function t(n){return{uri:n}}e.create=t;function r(n){let i=n;return D.defined(i)&&D.string(i.uri)}e.is=r})(yq||(yq={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&D.string(i.uri)&&D.integer(i.version)}e.is=r})(Xd||(Xd={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&D.string(i.uri)&&(i.version===null||D.integer(i.version))}e.is=r})(Bb||(Bb={}));(function(e){function t(n,i,s,a){return{uri:n,languageId:i,version:s,text:a}}e.create=t;function r(n){let i=n;return D.defined(i)&&D.string(i.uri)&&D.string(i.languageId)&&D.integer(i.version)&&D.string(i.text)}e.is=r})(_q||(_q={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(bn||(bn={}));(function(e){function t(r){let n=r;return D.objectLiteral(r)&&bn.is(n.kind)&&D.string(n.value)}e.is=t})(Es||(Es={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Lt||(Lt={}));(function(e){e.PlainText=1,e.Snippet=2})(Xe||(Xe={}));(function(e){e.Deprecated=1})(Zd||(Zd={}));(function(e){function t(n,i,s){return{newText:n,insert:i,replace:s}}e.create=t;function r(n){let i=n;return i&&D.string(i.newText)&&ue.is(i.insert)&&ue.is(i.replace)}e.is=r})(vq||(vq={}));(function(e){e.asIs=1,e.adjustIndentation=2})(bq||(bq={}));(function(e){function t(r){let n=r;return n&&(D.string(n.detail)||n.detail===void 0)&&(D.string(n.description)||n.description===void 0)}e.is=t})(kq||(kq={}));(function(e){function t(r){return{label:r}}e.create=t})(Ya||(Ya={}));(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(ep||(ep={}));(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){let i=n;return D.string(i)||D.objectLiteral(i)&&D.string(i.language)&&D.string(i.value)}e.is=r})(Xa||(Xa={}));(function(e){function t(r){let n=r;return!!n&&D.objectLiteral(n)&&(Es.is(n.contents)||Xa.is(n.contents)||D.typedArray(n.contents,Xa.is))&&(r.range===void 0||ue.is(r.range))}e.is=t})(tp||(tp={}));(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(Sq||(Sq={}));(function(e){function t(r,n,...i){let s={label:r};return D.defined(n)&&(s.documentation=n),D.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(Tq||(Tq={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(rp||(rp={}));(function(e){function t(r,n){let i={range:r};return D.number(n)&&(i.kind=n),i}e.create=t})(np||(np={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(pr||(pr={}));(function(e){e.Deprecated=1})(wq||(wq={}));(function(e){function t(r,n,i,s,a){let o={name:r,kind:n,location:{uri:s,range:i}};return a&&(o.containerName=a),o}e.create=t})(ip||(ip={}));(function(e){function t(r,n,i,s){return s!==void 0?{name:r,kind:n,location:{uri:i,range:s}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(xq||(xq={}));(function(e){function t(n,i,s,a,o,c){let l={name:n,detail:i,kind:s,range:a,selectionRange:o};return c!==void 0&&(l.children=c),l}e.create=t;function r(n){let i=n;return i&&D.string(i.name)&&D.number(i.kind)&&ue.is(i.range)&&ue.is(i.selectionRange)&&(i.detail===void 0||D.string(i.detail))&&(i.deprecated===void 0||D.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(sp||(sp={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ap||(ap={}));(function(e){e.Invoked=1,e.Automatic=2})(op||(op={}));(function(e){function t(n,i,s){let a={diagnostics:n};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function r(n){let i=n;return D.defined(i)&&D.typedArray(i.diagnostics,dr.is)&&(i.only===void 0||D.typedArray(i.only,D.string))&&(i.triggerKind===void 0||i.triggerKind===op.Invoked||i.triggerKind===op.Automatic)}e.is=r})(cp||(cp={}));(function(e){function t(n,i,s){let a={title:n},o=!0;return typeof i=="string"?(o=!1,a.kind=i):bi.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}e.create=t;function r(n){let i=n;return i&&D.string(i.title)&&(i.diagnostics===void 0||D.typedArray(i.diagnostics,dr.is))&&(i.kind===void 0||D.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bi.is(i.command))&&(i.isPreferred===void 0||D.boolean(i.isPreferred))&&(i.edit===void 0||bu.is(i.edit))}e.is=r})(up||(up={}));(function(e){function t(n,i){let s={range:n};return D.defined(i)&&(s.data=i),s}e.create=t;function r(n){let i=n;return D.defined(i)&&ue.is(i.range)&&(D.undefined(i.command)||bi.is(i.command))}e.is=r})(Eq||(Eq={}));(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&D.uinteger(i.tabSize)&&D.boolean(i.insertSpaces)}e.is=r})(Aq||(Aq={}));(function(e){function t(n,i,s){return{range:n,target:i,data:s}}e.create=t;function r(n){let i=n;return D.defined(i)&&ue.is(i.range)&&(D.undefined(i.target)||D.string(i.target))}e.is=r})(lp||(lp={}));(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&ue.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(As||(As={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Oq||(Oq={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Nq||(Nq={}));(function(e){function t(r){let n=r;return D.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(Pq||(Pq={}));(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){let i=n;return i!=null&&ue.is(i.range)&&D.string(i.text)}e.is=r})(qq||(qq={}));(function(e){function t(n,i,s){return{range:n,variableName:i,caseSensitiveLookup:s}}e.create=t;function r(n){let i=n;return i!=null&&ue.is(i.range)&&D.boolean(i.caseSensitiveLookup)&&(D.string(i.variableName)||i.variableName===void 0)}e.is=r})(Lq||(Lq={}));(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){let i=n;return i!=null&&ue.is(i.range)&&(D.string(i.expression)||i.expression===void 0)}e.is=r})(Cq||(Cq={}));(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){let i=n;return D.defined(i)&&ue.is(n.stoppedLocation)}e.is=r})(Iq||(Iq={}));(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(Vb||(Vb={}));(function(e){function t(n){return{value:n}}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&(i.tooltip===void 0||D.string(i.tooltip)||Es.is(i.tooltip))&&(i.location===void 0||Wn.is(i.location))&&(i.command===void 0||bi.is(i.command))}e.is=r})($b||($b={}));(function(e){function t(n,i,s){let a={position:n,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function r(n){let i=n;return D.objectLiteral(i)&&Me.is(i.position)&&(D.string(i.label)||D.typedArray(i.label,$b.is))&&(i.kind===void 0||Vb.is(i.kind))&&i.textEdits===void 0||D.typedArray(i.textEdits,Vt.is)&&(i.tooltip===void 0||D.string(i.tooltip)||Es.is(i.tooltip))&&(i.paddingLeft===void 0||D.boolean(i.paddingLeft))&&(i.paddingRight===void 0||D.boolean(i.paddingRight))}e.is=r})(Mq||(Mq={}));(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(Rq||(Rq={}));(function(e){function t(r,n,i,s){return{insertText:r,filterText:n,range:i,command:s}}e.create=t})(Dq||(Dq={}));(function(e){function t(r){return{items:r}}e.create=t})(jq||(jq={}));(function(e){e.Invoked=0,e.Automatic=1})(Fq||(Fq={}));(function(e){function t(r,n){return{range:r,text:n}}e.create=t})(Bq||(Bq={}));(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}e.create=t})(Vq||(Vq={}));(function(e){function t(r){let n=r;return D.objectLiteral(n)&&Ib.is(n.uri)&&D.string(n.name)}e.is=t})($q||($q={}));(function(e){function t(s,a,o,c){return new Ub(s,a,o,c)}e.create=t;function r(s){let a=s;return!!(D.defined(a)&&D.string(a.uri)&&(D.undefined(a.languageId)||D.string(a.languageId))&&D.uinteger(a.lineCount)&&D.func(a.getText)&&D.func(a.positionAt)&&D.func(a.offsetAt))}e.is=r;function n(s,a){let o=s.getText(),c=i(a,(f,m)=>{let d=f.range.start.line-m.range.start.line;return d===0?f.range.start.character-m.range.start.character:d}),l=o.length;for(let f=c.length-1;f>=0;f--){let m=c[f],d=s.offsetAt(m.range.start),g=s.offsetAt(m.range.end);if(g<=l)o=o.substring(0,d)+m.newText+o.substring(g,o.length);else throw new Error("Overlapping edit");l=d}return o}e.applyEdits=n;function i(s,a){if(s.length<=1)return s;let o=s.length/2|0,c=s.slice(0,o),l=s.slice(o);i(c,a),i(l,a);let f=0,m=0,d=0;for(;f<c.length&&m<l.length;)a(c[f],l[m])<=0?s[d++]=c[f++]:s[d++]=l[m++];for(;f<c.length;)s[d++]=c[f++];for(;m<l.length;)s[d++]=l[m++];return s}})(Uq||(Uq={}));Ub=class{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,n=!0;for(let i=0;i<r.length;i++){n&&(t.push(i),n=!1);let s=r.charAt(i);n=s==="\r"||s===`
65
+ `,s==="\r"&&i+1<r.length&&r.charAt(i+1)===`
66
+ `&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return Me.create(0,t);for(;n<i;){let a=Math.floor((n+i)/2);r[a]>t?i=a:n=a+1}let s=n-1;return Me.create(s,t-r[s])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function r(g){return typeof g<"u"}e.defined=r;function n(g){return typeof g>"u"}e.undefined=n;function i(g){return g===!0||g===!1}e.boolean=i;function s(g){return t.call(g)==="[object String]"}e.string=s;function a(g){return t.call(g)==="[object Number]"}e.number=a;function o(g,_,k){return t.call(g)==="[object Number]"&&_<=g&&g<=k}e.numberRange=o;function c(g){return t.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=c;function l(g){return t.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=l;function f(g){return t.call(g)==="[object Function]"}e.func=f;function m(g){return g!==null&&typeof g=="object"}e.objectLiteral=m;function d(g,_){return Array.isArray(g)&&g.every(_)}e.typedArray=d})(D||(D={}))});var zJ={};Ey(zJ,{TextDocument:()=>Zt});function Wb(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Wb(n,t),Wb(i,t);let s=0,a=0,o=0;for(;s<n.length&&a<i.length;)t(n[s],i[a])<=0?e[o++]=n[s++]:e[o++]=i[a++];for(;s<n.length;)e[o++]=n[s++];for(;a<i.length;)e[o++]=i[a++];return e}function Hq(e,t,r=0){let n=t?[r]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);Wq(s)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}function Wq(e){return e===13||e===10}function zq(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function WJ(e){let t=zq(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var fp,Zt,Gq=Te(()=>{"use strict";p();fp=class e{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let i=zq(n.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+n.text+this._content.substring(a,this._content.length);let o=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,f=Hq(n.text,!1,s);if(c-o===f.length)for(let d=0,g=f.length;d<g;d++)l[d+o+1]=f[d];else f.length<1e4?l.splice(o+1,c-o,...f):this._lineOffsets=l=l.slice(0,o+1).concat(f,l.slice(c+1));let m=n.text.length-(a-s);if(m!==0)for(let d=o+1+f.length,g=l.length;d<g;d++)l[d]=l[d]+m}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Hq(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return{line:0,character:t};for(;n<i;){let a=Math.floor((n+i)/2);r[a]>t?i=a:n=a+1}let s=n-1;return t=this.ensureBeforeEOL(t,r[s]),{line:s,character:t-r[s]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let i=t.line+1<r.length?r[t.line+1]:this._content.length,s=Math.min(n+t.character,i);return this.ensureBeforeEOL(s,n)}ensureBeforeEOL(t,r){for(;t>r&&Wq(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}};(function(e){function t(i,s,a,o){return new fp(i,s,a,o)}e.create=t;function r(i,s,a){if(i instanceof fp)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,s){let a=i.getText(),o=Wb(s.map(WJ),(f,m)=>{let d=f.range.start.line-m.range.start.line;return d===0?f.range.start.character-m.range.start.character:d}),c=0,l=[];for(let f of o){let m=i.offsetAt(f.range.start);if(m<c)throw new Error("Overlapping edit");m>c&&l.push(a.substring(c,m)),f.newText.length&&l.push(f.newText),c=i.offsetAt(f.range.end)}return l.push(a.substr(c)),l.join("")}e.applyEdits=n})(Zt||(Zt={}))});function GJ(e){return e>=fe.SchemaResolveError}var fe,Wt,zb,hr=Te(()=>{p();Hb();Gq();(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",e[e.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature",e[e.SchemaResolveError=65536]="SchemaResolveError"})(fe||(fe={}));(function(e){e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v6=6]="v6",e[e.v7=7]="v7",e[e.v2019_09=19]="v2019_09",e[e.v2020_12=20]="v2020_12"})(Wt||(Wt={}));(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[bn.Markdown,bn.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}}})(zb||(zb={}))});var Jq,Za,D_e,Gb=Te(()=>{p();(()=>{"use strict";var e={975:L=>{function C(I){if(typeof I!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(I))}function $(I,F){for(var U,J="",Y=0,Q=-1,he=0,ye=0;ye<=I.length;++ye){if(ye<I.length)U=I.charCodeAt(ye);else{if(U===47)break;U=47}if(U===47){if(!(Q===ye-1||he===1))if(Q!==ye-1&&he===2){if(J.length<2||Y!==2||J.charCodeAt(J.length-1)!==46||J.charCodeAt(J.length-2)!==46){if(J.length>2){var it=J.lastIndexOf("/");if(it!==J.length-1){it===-1?(J="",Y=0):Y=(J=J.slice(0,it)).length-1-J.lastIndexOf("/"),Q=ye,he=0;continue}}else if(J.length===2||J.length===1){J="",Y=0,Q=ye,he=0;continue}}F&&(J.length>0?J+="/..":J="..",Y=2)}else J.length>0?J+="/"+I.slice(Q+1,ye):J=I.slice(Q+1,ye),Y=ye-Q-1;Q=ye,he=0}else U===46&&he!==-1?++he:he=-1}return J}var V={resolve:function(){for(var I,F="",U=!1,J=arguments.length-1;J>=-1&&!U;J--){var Y;J>=0?Y=arguments[J]:(I===void 0&&(I=process.cwd()),Y=I),C(Y),Y.length!==0&&(F=Y+"/"+F,U=Y.charCodeAt(0)===47)}return F=$(F,!U),U?F.length>0?"/"+F:"/":F.length>0?F:"."},normalize:function(I){if(C(I),I.length===0)return".";var F=I.charCodeAt(0)===47,U=I.charCodeAt(I.length-1)===47;return(I=$(I,!F)).length!==0||F||(I="."),I.length>0&&U&&(I+="/"),F?"/"+I:I},isAbsolute:function(I){return C(I),I.length>0&&I.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var I,F=0;F<arguments.length;++F){var U=arguments[F];C(U),U.length>0&&(I===void 0?I=U:I+="/"+U)}return I===void 0?".":V.normalize(I)},relative:function(I,F){if(C(I),C(F),I===F||(I=V.resolve(I))===(F=V.resolve(F)))return"";for(var U=1;U<I.length&&I.charCodeAt(U)===47;++U);for(var J=I.length,Y=J-U,Q=1;Q<F.length&&F.charCodeAt(Q)===47;++Q);for(var he=F.length-Q,ye=Y<he?Y:he,it=-1,Ce=0;Ce<=ye;++Ce){if(Ce===ye){if(he>ye){if(F.charCodeAt(Q+Ce)===47)return F.slice(Q+Ce+1);if(Ce===0)return F.slice(Q+Ce)}else Y>ye&&(I.charCodeAt(U+Ce)===47?it=Ce:Ce===0&&(it=0));break}var un=I.charCodeAt(U+Ce);if(un!==F.charCodeAt(Q+Ce))break;un===47&&(it=Ce)}var Ji="";for(Ce=U+it+1;Ce<=J;++Ce)Ce!==J&&I.charCodeAt(Ce)!==47||(Ji.length===0?Ji+="..":Ji+="/..");return Ji.length>0?Ji+F.slice(Q+it):(Q+=it,F.charCodeAt(Q)===47&&++Q,F.slice(Q))},_makeLong:function(I){return I},dirname:function(I){if(C(I),I.length===0)return".";for(var F=I.charCodeAt(0),U=F===47,J=-1,Y=!0,Q=I.length-1;Q>=1;--Q)if((F=I.charCodeAt(Q))===47){if(!Y){J=Q;break}}else Y=!1;return J===-1?U?"/":".":U&&J===1?"//":I.slice(0,J)},basename:function(I,F){if(F!==void 0&&typeof F!="string")throw new TypeError('"ext" argument must be a string');C(I);var U,J=0,Y=-1,Q=!0;if(F!==void 0&&F.length>0&&F.length<=I.length){if(F.length===I.length&&F===I)return"";var he=F.length-1,ye=-1;for(U=I.length-1;U>=0;--U){var it=I.charCodeAt(U);if(it===47){if(!Q){J=U+1;break}}else ye===-1&&(Q=!1,ye=U+1),he>=0&&(it===F.charCodeAt(he)?--he==-1&&(Y=U):(he=-1,Y=ye))}return J===Y?Y=ye:Y===-1&&(Y=I.length),I.slice(J,Y)}for(U=I.length-1;U>=0;--U)if(I.charCodeAt(U)===47){if(!Q){J=U+1;break}}else Y===-1&&(Q=!1,Y=U+1);return Y===-1?"":I.slice(J,Y)},extname:function(I){C(I);for(var F=-1,U=0,J=-1,Y=!0,Q=0,he=I.length-1;he>=0;--he){var ye=I.charCodeAt(he);if(ye!==47)J===-1&&(Y=!1,J=he+1),ye===46?F===-1?F=he:Q!==1&&(Q=1):F!==-1&&(Q=-1);else if(!Y){U=he+1;break}}return F===-1||J===-1||Q===0||Q===1&&F===J-1&&F===U+1?"":I.slice(F,J)},format:function(I){if(I===null||typeof I!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof I);return(function(F,U){var J=U.dir||U.root,Y=U.base||(U.name||"")+(U.ext||"");return J?J===U.root?J+Y:J+"/"+Y:Y})(0,I)},parse:function(I){C(I);var F={root:"",dir:"",base:"",ext:"",name:""};if(I.length===0)return F;var U,J=I.charCodeAt(0),Y=J===47;Y?(F.root="/",U=1):U=0;for(var Q=-1,he=0,ye=-1,it=!0,Ce=I.length-1,un=0;Ce>=U;--Ce)if((J=I.charCodeAt(Ce))!==47)ye===-1&&(it=!1,ye=Ce+1),J===46?Q===-1?Q=Ce:un!==1&&(un=1):Q!==-1&&(un=-1);else if(!it){he=Ce+1;break}return Q===-1||ye===-1||un===0||un===1&&Q===ye-1&&Q===he+1?ye!==-1&&(F.base=F.name=he===0&&Y?I.slice(1,ye):I.slice(he,ye)):(he===0&&Y?(F.name=I.slice(1,Q),F.base=I.slice(1,ye)):(F.name=I.slice(he,Q),F.base=I.slice(he,ye)),F.ext=I.slice(Q,ye)),he>0?F.dir=I.slice(0,he-1):Y&&(F.dir="/"),F},sep:"/",delimiter:":",win32:null,posix:null};V.posix=V,L.exports=V}},t={};function r(L){var C=t[L];if(C!==void 0)return C.exports;var $=t[L]={exports:{}};return e[L]($,$.exports,r),$.exports}r.d=(L,C)=>{for(var $ in C)r.o(C,$)&&!r.o(L,$)&&Object.defineProperty(L,$,{enumerable:!0,get:C[$]})},r.o=(L,C)=>Object.prototype.hasOwnProperty.call(L,C),r.r=L=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})};var n={};let i;r.r(n),r.d(n,{URI:()=>d,Utils:()=>M}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function c(L,C){if(!L.scheme&&C)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${L.authority}", path: "${L.path}", query: "${L.query}", fragment: "${L.fragment}"}`);if(L.scheme&&!s.test(L.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(L.path){if(L.authority){if(!a.test(L.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(L.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",f="/",m=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(C){return C instanceof d||!!C&&typeof C.authority=="string"&&typeof C.fragment=="string"&&typeof C.path=="string"&&typeof C.query=="string"&&typeof C.scheme=="string"&&typeof C.fsPath=="string"&&typeof C.with=="function"&&typeof C.toString=="function"}scheme;authority;path;query;fragment;constructor(C,$,V,I,F,U=!1){typeof C=="object"?(this.scheme=C.scheme||l,this.authority=C.authority||l,this.path=C.path||l,this.query=C.query||l,this.fragment=C.fragment||l):(this.scheme=(function(J,Y){return J||Y?J:"file"})(C,U),this.authority=$||l,this.path=(function(J,Y){switch(J){case"https":case"http":case"file":Y?Y[0]!==f&&(Y=f+Y):Y=f}return Y})(this.scheme,V||l),this.query=I||l,this.fragment=F||l,c(this,U))}get fsPath(){return w(this,!1)}with(C){if(!C)return this;let{scheme:$,authority:V,path:I,query:F,fragment:U}=C;return $===void 0?$=this.scheme:$===null&&($=l),V===void 0?V=this.authority:V===null&&(V=l),I===void 0?I=this.path:I===null&&(I=l),F===void 0?F=this.query:F===null&&(F=l),U===void 0?U=this.fragment:U===null&&(U=l),$===this.scheme&&V===this.authority&&I===this.path&&F===this.query&&U===this.fragment?this:new _($,V,I,F,U)}static parse(C,$=!1){let V=m.exec(C);return V?new _(V[2]||l,O(V[4]||l),O(V[5]||l),O(V[7]||l),O(V[9]||l),$):new _(l,l,l,l,l)}static file(C){let $=l;if(i&&(C=C.replace(/\\/g,f)),C[0]===f&&C[1]===f){let V=C.indexOf(f,2);V===-1?($=C.substring(2),C=f):($=C.substring(2,V),C=C.substring(V)||f)}return new _("file",$,C,l,l)}static from(C){let $=new _(C.scheme,C.authority,C.path,C.query,C.fragment);return c($,!0),$}toString(C=!1){return T(this,C)}toJSON(){return this}static revive(C){if(C){if(C instanceof d)return C;{let $=new _(C);return $._formatted=C.external,$._fsPath=C._sep===g?C.fsPath:null,$}}return C}}let g=i?1:void 0;class _ extends d{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=w(this,!1)),this._fsPath}toString(C=!1){return C?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){let C={$mid:1};return this._fsPath&&(C.fsPath=this._fsPath,C._sep=g),this._formatted&&(C.external=this._formatted),this.path&&(C.path=this.path),this.scheme&&(C.scheme=this.scheme),this.authority&&(C.authority=this.authority),this.query&&(C.query=this.query),this.fragment&&(C.fragment=this.fragment),C}}let k={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function b(L,C,$){let V,I=-1;for(let F=0;F<L.length;F++){let U=L.charCodeAt(F);if(U>=97&&U<=122||U>=65&&U<=90||U>=48&&U<=57||U===45||U===46||U===95||U===126||C&&U===47||$&&U===91||$&&U===93||$&&U===58)I!==-1&&(V+=encodeURIComponent(L.substring(I,F)),I=-1),V!==void 0&&(V+=L.charAt(F));else{V===void 0&&(V=L.substr(0,F));let J=k[U];J!==void 0?(I!==-1&&(V+=encodeURIComponent(L.substring(I,F)),I=-1),V+=J):I===-1&&(I=F)}}return I!==-1&&(V+=encodeURIComponent(L.substring(I))),V!==void 0?V:L}function v(L){let C;for(let $=0;$<L.length;$++){let V=L.charCodeAt($);V===35||V===63?(C===void 0&&(C=L.substr(0,$)),C+=k[V]):C!==void 0&&(C+=L[$])}return C!==void 0?C:L}function w(L,C){let $;return $=L.authority&&L.path.length>1&&L.scheme==="file"?`//${L.authority}${L.path}`:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?C?L.path.substr(1):L.path[1].toLowerCase()+L.path.substr(2):L.path,i&&($=$.replace(/\//g,"\\")),$}function T(L,C){let $=C?v:b,V="",{scheme:I,authority:F,path:U,query:J,fragment:Y}=L;if(I&&(V+=I,V+=":"),(F||I==="file")&&(V+=f,V+=f),F){let Q=F.indexOf("@");if(Q!==-1){let he=F.substr(0,Q);F=F.substr(Q+1),Q=he.lastIndexOf(":"),Q===-1?V+=$(he,!1,!1):(V+=$(he.substr(0,Q),!1,!1),V+=":",V+=$(he.substr(Q+1),!1,!0)),V+="@"}F=F.toLowerCase(),Q=F.lastIndexOf(":"),Q===-1?V+=$(F,!1,!0):(V+=$(F.substr(0,Q),!1,!0),V+=F.substr(Q))}if(U){if(U.length>=3&&U.charCodeAt(0)===47&&U.charCodeAt(2)===58){let Q=U.charCodeAt(1);Q>=65&&Q<=90&&(U=`/${String.fromCharCode(Q+32)}:${U.substr(3)}`)}else if(U.length>=2&&U.charCodeAt(1)===58){let Q=U.charCodeAt(0);Q>=65&&Q<=90&&(U=`${String.fromCharCode(Q+32)}:${U.substr(2)}`)}V+=$(U,!0,!1)}return J&&(V+="?",V+=$(J,!1,!1)),Y&&(V+="#",V+=C?Y:b(Y,!1,!1)),V}function y(L){try{return decodeURIComponent(L)}catch{return L.length>3?L.substr(0,3)+y(L.substr(3)):L}}let A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(L){return L.match(A)?L.replace(A,(C=>y(C))):L}var N=r(975);let q=N.posix||N,B="/";var M;(function(L){L.joinPath=function(C,...$){return C.with({path:q.join(C.path,...$)})},L.resolvePath=function(C,...$){let V=C.path,I=!1;V[0]!==B&&(V=B+V,I=!0);let F=q.resolve(V,...$);return I&&F[0]===B&&!C.authority&&(F=F.substring(1)),C.with({path:F})},L.dirname=function(C){if(C.path.length===0||C.path===B)return C;let $=q.dirname(C.path);return $.length===1&&$.charCodeAt(0)===46&&($=""),C.with({path:$})},L.basename=function(C){return q.basename(C.path)},L.extname=function(C){return q.extname(C.path)}})(M||(M={})),Jq=n})();({URI:Za,Utils:D_e}=Jq)});var Os=x((B_e,Xq)=>{"use strict";p();var Jb=Object.defineProperty,JJ=Object.getOwnPropertyDescriptor,KJ=Object.getOwnPropertyNames,QJ=Object.prototype.hasOwnProperty,YJ=(e,t)=>{for(var r in t)Jb(e,r,{get:t[r],enumerable:!0})},XJ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of KJ(t))!QJ.call(e,i)&&i!==r&&Jb(e,i,{get:()=>t[i],enumerable:!(n=JJ(t,i))||n.enumerable});return e},ZJ=e=>XJ(Jb({},"__esModule",{value:!0}),e),Qq={};YJ(Qq,{config:()=>iK,t:()=>Yq});Xq.exports=ZJ(Qq);var eK=ce("fs"),tK=ce("fs/promises");async function rK(e){if(e.protocol==="file:")return await(0,tK.readFile)(e,"utf8");if(e.protocol==="http:"||e.protocol==="https:"){let t=await fetch(e.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!t.ok){let n=`Unexpected ${t.status} response while trying to read ${e}`;try{n+=`: ${await t.text()}`}catch{}throw new Error(n)}return await t.text()}throw new Error("Unsupported protocol")}function nK(e){return(0,eK.readFileSync)(e,"utf8")}var ku;function iK(e){if("contents"in e){typeof e.contents=="string"?ku=JSON.parse(e.contents):ku=e.contents;return}if("fsPath"in e){let t=nK(e.fsPath),r=JSON.parse(t);ku=Kq(r)?r.contents.bundle:r;return}if(e.uri){let t=e.uri;return typeof e.uri=="string"&&(t=new URL(e.uri)),new Promise((r,n)=>{rK(t).then(i=>{try{let s=JSON.parse(i);ku=Kq(s)?s.contents.bundle:s,r()}catch(s){n(s)}}).catch(i=>{n(i)})})}}function Yq(...e){let t=e[0],r,n,i;if(typeof t=="string")r=t,n=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){let a=e.slice(1);if(t.length!==a.length+1)throw new Error("expected a string as the first argument to l10n.t");let o=t[0];for(let c=1;c<t.length;c++)o+=`{${c-1}}`+t[c];return Yq(o,...a)}else n=t.message,r=n,t.comment&&t.comment.length>0&&(r+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{};let s=ku?.[r];return s?typeof s=="string"?dp(s,i):s.comment?dp(s.message,i):dp(n,i):dp(n,i)}var sK=/{([^}]+)}/g;function dp(e,t){return Object.keys(t).length===0?e:e.replace(sK,(r,n)=>t[n]??r)}function Kq(e){return typeof e?.contents?.bundle=="object"&&typeof e?.version=="string"}});function Ct(e){return Pr(e)?e?{}:{not:{}}:e}function Gn(e){e.startsWith(eL)&&(e=oK+e.substring(eL.length));try{return Za.parse(e).toString(!0)}catch{return e}}function tk(e){return cK[Gn(e)]??void 0}function rL(e,t=[],r=[]){return new mp(e,t,r)}function kn(e){return Qy(e)}function Tu(e){return Ky(e)}function rk(e,t,r=!1){return t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}function tL(e,t=Wt.v2020_12){let r=e.$schema;return r?tk(r)??t:t}function Tt(e,t,r,n,i){if(!e||!n.include(e))return;if(e.type==="property")return Tt(e.valueNode,t,r,n,i);let s=e;switch(a(),s.type){case"object":m(s);break;case"array":f(s);break;case"string":l(s);break;case"number":c(s);break}n.add({node:s,schema:t});function a(){function d(T){return s.type===T||T==="integer"&&s.type==="number"&&s.isInteger}if(Array.isArray(t.type)?t.type.some(d)||r.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||Z.t("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(d(t.type)||r.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||Z.t('Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(let T of t.allOf){let y=new wt,A=n.newSub();Tt(s,Ct(T),y,A,i),r.merge(y),n.merge(A)}let g=Ct(t.not);if(g){let T=new wt,y=n.newSub();Tt(s,g,T,y,i),T.hasProblems()||r.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||Z.t("Matches a schema that is not allowed.")});for(let A of y.schemas)A.inverted=!A.inverted,n.add(A)}let _=(T,y)=>{let A=[],O=o(T)??T,N;for(let q of O){let B=Ct(q),M=new wt,L=n.newSub();if(Tt(s,B,M,L,i),M.hasProblems()||A.push(B),!N)N={schema:B,validationResult:M,matchingSchemas:L};else if(!y&&!M.hasProblems()&&!N.validationResult.hasProblems())N.matchingSchemas.merge(L),N.validationResult.propertiesMatches+=M.propertiesMatches,N.validationResult.propertiesValueMatches+=M.propertiesValueMatches,N.validationResult.mergeProcessedProperties(M);else{let C=M.compare(N.validationResult);C>0?N={schema:B,validationResult:M,matchingSchemas:L}:C===0&&(N.matchingSchemas.merge(L),N.validationResult.mergeEnumValues(M))}}return A.length>1&&y&&r.problems.push({location:{offset:s.offset,length:1},message:Z.t("Matches multiple schemas when only one must validate.")}),N&&(N.validationResult.updateEnumMismatchProblemMessages(),r.merge(N.validationResult),n.merge(N.matchingSchemas)),A.length};Array.isArray(t.anyOf)&&_(t.anyOf,!1),Array.isArray(t.oneOf)&&_(t.oneOf,!0);let k=T=>{let y=new wt,A=n.newSub();Tt(s,Ct(T),y,A,i),r.merge(y),n.merge(A)},b=(T,y,A)=>{let O=Ct(T),N=new wt,q=n.newSub();Tt(s,O,N,q,i),n.merge(q),r.mergeProcessedProperties(N),N.hasProblems()?A&&k(A):y&&k(y)},v=Ct(t.if);if(v&&b(v,Ct(t.then),Ct(t.else)),Array.isArray(t.enum)){let T=kn(s),y=!1;for(let A of t.enum)if(ws(T,A)){y=!0;break}r.enumValues=t.enum,r.enumValueMatch=y,y||r.problems.push({location:{offset:s.offset,length:s.length},code:fe.EnumValueMismatch,message:t.errorMessage||Z.t("Value is not accepted. Valid values: {0}.",t.enum.map(A=>JSON.stringify(A)).join(", "))})}if(fr(t.const)){let T=kn(s);ws(T,t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:s.offset,length:s.length},code:fe.EnumValueMismatch,message:t.errorMessage||Z.t("Value must be {0}.",JSON.stringify(t.const))}),r.enumValueMatch=!1),r.enumValues=[t.const]}let w=t.deprecationMessage;if(w||t.deprecated){w=w||Z.t("Value is deprecated");let T=s.parent?.type==="property"?s.parent:s;r.problems.push({location:{offset:T.offset,length:T.length},severity:qt.Warning,message:w,code:fe.Deprecated})}}function o(d){if(d.length<2)return;let g=k=>{let b=new Map;for(let v=0;v<d.length;v++){let w=k(Ct(d[v]),v);if(!w)return;w.forEach(([T,y])=>{if(y.const!==void 0){b.has(T)||b.set(T,new Map);let A=b.get(T);A.has(y.const)||A.set(y.const,[]),A.get(y.const).push(v)}})}return b},_=(k,b)=>{for(let[v,w]of k){let T=new Set;if(w.forEach(y=>y.forEach(A=>T.add(A))),T.size===d.length){let y=b(v),A=w.get(y);if(A?.length)return A.map(O=>d[O]);break}}};if(s.type==="object"&&s.properties?.length){let k=g(b=>b.properties?Object.entries(b.properties).map(([v,w])=>[v,Ct(w)]):void 0);if(k)return _(k,b=>{let v=s.properties.find(w=>w.keyNode.value===b);return v?.valueNode?.type==="string"?v.valueNode.value:void 0})}else if(s.type==="array"&&s.items?.length){let k=g(b=>{let v=b.prefixItems||(Array.isArray(b.items)?b.items:void 0);return v?v.map((w,T)=>[T,Ct(w)]):void 0});if(k)return _(k,b=>{let v=s.items[b];return v?.type==="string"?v.value:void 0})}}function c(d){let g=d.value;function _(A){let O=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(A.toString());return O&&{value:Number(O[1]+(O[2]||"")),multiplier:(O[2]?.length||0)-(parseInt(O[3])||0)}}if(Pt(t.multipleOf)){let A=-1;if(Number.isInteger(t.multipleOf))A=g%t.multipleOf;else{let O=_(t.multipleOf),N=_(g);if(O&&N){let q=10**Math.abs(N.multiplier-O.multiplier);N.multiplier<O.multiplier?N.value*=q:O.value*=q,A=N.value%O.value}}A!==0&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Value is not divisible by {0}.",t.multipleOf)})}function k(A,O){if(Pt(O))return O;if(Pr(O)&&O)return A}function b(A,O){if(!Pr(O)||!O)return A}let v=k(t.minimum,t.exclusiveMinimum);Pt(v)&&g<=v&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Value is below the exclusive minimum of {0}.",v)});let w=k(t.maximum,t.exclusiveMaximum);Pt(w)&&g>=w&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Value is above the exclusive maximum of {0}.",w)});let T=b(t.minimum,t.exclusiveMinimum);Pt(T)&&g<T&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Value is below the minimum of {0}.",T)});let y=b(t.maximum,t.exclusiveMaximum);Pt(y)&&g>y&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Value is above the maximum of {0}.",y)})}function l(d){if(Pt(t.minLength)&&Cb(d.value)<t.minLength&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("String is shorter than the minimum length of {0}.",t.minLength)}),Pt(t.maxLength)&&Cb(d.value)>t.maxLength&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("String is longer than the maximum length of {0}.",t.maxLength)}),zd(t.pattern)){let g=xs(t.pattern);g&&!g.test(d.value)&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.patternErrorMessage||t.errorMessage||Z.t('String does not match the pattern of "{0}".',t.pattern)})}if(t.format)switch(t.format){case"uri":case"uri-reference":{let _;if(!d.value)_=Z.t("URI expected.");else{let k=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(d.value);k?!k[2]&&t.format==="uri"&&(_=Z.t("URI with a scheme is expected.")):_=Z.t("URI is expected.")}_&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.patternErrorMessage||t.errorMessage||Z.t("String is not a URI: {0}",_)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":let g=aK[t.format];(!d.value||!g.pattern.exec(d.value))&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.patternErrorMessage||t.errorMessage||g.errorMessage});default:}}function f(d){let g,_;i.schemaDraft>=Wt.v2020_12?(g=t.prefixItems,_=Array.isArray(t.items)?void 0:t.items):(g=Array.isArray(t.items)?t.items:void 0,_=Array.isArray(t.items)?t.additionalItems:t.items);let k=0;if(g!==void 0){let w=Math.min(g.length,d.items.length);for(;k<w;k++){let T=g[k],y=Ct(T),A=new wt,O=d.items[k];O&&(Tt(O,y,A,n,i),r.mergePropertyMatch(A)),r.processedProperties.add(String(k))}}if(_!==void 0&&k<d.items.length)if(typeof _=="boolean")for(_===!1&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Array has too many items according to schema. Expected {0} or fewer.",k)});k<d.items.length;k++)r.processedProperties.add(String(k)),r.propertiesValueMatches++;else for(;k<d.items.length;k++){let w=new wt;Tt(d.items[k],_,w,n,i),r.mergePropertyMatch(w),r.processedProperties.add(String(k))}let b=Ct(t.contains);if(b){let w=0;for(let T=0;T<d.items.length;T++){let y=d.items[T],A=new wt;Tt(y,b,A,eo.instance,i),A.hasProblems()||(w++,i.schemaDraft>=Wt.v2020_12&&r.processedProperties.add(String(T)))}w===0&&!Pt(t.minContains)&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.errorMessage||Z.t("Array does not contain required item.")}),Pt(t.minContains)&&w<t.minContains&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.errorMessage||Z.t("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),Pt(t.maxContains)&&w>t.maxContains&&r.problems.push({location:{offset:d.offset,length:d.length},message:t.errorMessage||Z.t("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}let v=t.unevaluatedItems;if(v!==void 0)for(let w=0;w<d.items.length;w++){if(!r.processedProperties.has(String(w)))if(v===!1)r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Item does not match any validation rule from the array.")});else{let T=new wt;Tt(d.items[w],t.unevaluatedItems,T,n,i),r.mergePropertyMatch(T)}r.processedProperties.add(String(w)),r.propertiesValueMatches++}if(Pt(t.minItems)&&d.items.length<t.minItems&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Array has too few items. Expected {0} or more.",t.minItems)}),Pt(t.maxItems)&&d.items.length>t.maxItems&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Array has too many items. Expected {0} or fewer.",t.maxItems)}),t.uniqueItems===!0){let T=function(){for(let y=0;y<w.length-1;y++){let A=w[y];for(let O=y+1;O<w.length;O++)if(ws(A,w[O]))return!0}return!1},w=kn(d);T()&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Array has duplicate items.")})}}function m(d){let g=Object.create(null),_=new Set;for(let y of d.properties){let A=y.keyNode.value;g[A]=y.valueNode,_.add(A)}if(Array.isArray(t.required)){for(let y of t.required)if(!g[y]){let A=d.parent&&d.parent.type==="property"&&d.parent.keyNode,O=A?{offset:A.offset,length:A.length}:{offset:d.offset,length:1};r.problems.push({location:O,message:Z.t('Missing property "{0}".',y)})}}let k=y=>{_.delete(y),r.processedProperties.add(y)};if(t.properties)for(let y of Object.keys(t.properties)){k(y);let A=t.properties[y],O=g[y];if(O)if(Pr(A))if(A)r.propertiesMatches++,r.propertiesValueMatches++;else{let N=O.parent;r.problems.push({location:{offset:N.keyNode.offset,length:N.keyNode.length},message:t.errorMessage||Z.t("Property {0} is not allowed.",y)})}else{let N=new wt;Tt(O,A,N,n,i),r.mergePropertyMatch(N)}}if(t.patternProperties)for(let y of Object.keys(t.patternProperties)){let A=xs(y);if(A){let O=[];for(let N of _)if(A.test(N)){O.push(N);let q=g[N];if(q){let B=t.patternProperties[y];if(Pr(B))if(B)r.propertiesMatches++,r.propertiesValueMatches++;else{let M=q.parent;r.problems.push({location:{offset:M.keyNode.offset,length:M.keyNode.length},message:t.errorMessage||Z.t("Property {0} is not allowed.",N)})}else{let M=new wt;Tt(q,B,M,n,i),r.mergePropertyMatch(M)}}}O.forEach(k)}}let b=t.additionalProperties;if(b!==void 0)for(let y of _){k(y);let A=g[y];if(A){if(b===!1){let O=A.parent;r.problems.push({location:{offset:O.keyNode.offset,length:O.keyNode.length},message:t.errorMessage||Z.t("Property {0} is not allowed.",y)})}else if(b!==!0){let O=new wt;Tt(A,b,O,n,i),r.mergePropertyMatch(O)}}}let v=t.unevaluatedProperties;if(v!==void 0){let y=[];for(let A of _)if(!r.processedProperties.has(A)){y.push(A);let O=g[A];if(O){if(v===!1){let N=O.parent;r.problems.push({location:{offset:N.keyNode.offset,length:N.keyNode.length},message:t.errorMessage||Z.t("Property {0} is not allowed.",A)})}else if(v!==!0){let N=new wt;Tt(O,v,N,n,i),r.mergePropertyMatch(N)}}}y.forEach(k)}if(Pt(t.maxProperties)&&d.properties.length>t.maxProperties&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Object has more properties than limit of {0}.",t.maxProperties)}),Pt(t.minProperties)&&d.properties.length<t.minProperties&&r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependentRequired)for(let y in t.dependentRequired){let A=g[y],O=t.dependentRequired[y];A&&Array.isArray(O)&&T(y,O)}if(t.dependentSchemas)for(let y in t.dependentSchemas){let A=g[y],O=t.dependentSchemas[y];A&&vn(O)&&T(y,O)}if(t.dependencies)for(let y in t.dependencies)g[y]&&T(y,t.dependencies[y]);let w=Ct(t.propertyNames);if(w)for(let y of d.properties){let A=y.keyNode;A&&Tt(A,w,r,n,i)}function T(y,A){if(Array.isArray(A))for(let O of A)g[O]?r.propertiesValueMatches++:r.problems.push({location:{offset:d.offset,length:d.length},message:Z.t("Object is missing property {0} required by property {1}.",O,y)});else{let O=Ct(A);if(O){let N=new wt;Tt(d,O,N,n,i),r.mergePropertyMatch(N)}}}}}function nL(e,t){let r=[],n=-1,i=e.getText(),s=ar(i,!1),a=t&&t.collectComments?[]:void 0;function o(){for(;;){let N=s.scan();switch(m(),N){case 12:case 13:Array.isArray(a)&&a.push(ue.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return N}}}function c(N){return s.getToken()===N?(o(),!0):!1}function l(N,q,B,M,L=qt.Error){if(r.length===0||B!==n){let C=ue.create(e.positionAt(B),e.positionAt(M));r.push(dr.create(C,N,L,q,e.languageId)),n=B}}function f(N,q,B=void 0,M=[],L=[]){let C=s.getTokenOffset(),$=s.getTokenOffset()+s.getTokenLength();if(C===$&&C>0){for(C--;C>0&&/\s/.test(i.charAt(C));)C--;$=C+1}if(l(N,q,C,$),B&&d(B,!1),M.length+L.length>0){let V=s.getToken();for(;V!==17;){if(M.indexOf(V)!==-1){o();break}else if(L.indexOf(V)!==-1)break;V=o()}}return B}function m(){switch(s.getTokenError()){case 4:return f(Z.t("Invalid unicode sequence in string."),fe.InvalidUnicode),!0;case 5:return f(Z.t("Invalid escape character in string."),fe.InvalidEscapeCharacter),!0;case 3:return f(Z.t("Unexpected end of number."),fe.UnexpectedEndOfNumber),!0;case 1:return f(Z.t("Unexpected end of comment."),fe.UnexpectedEndOfComment),!0;case 2:return f(Z.t("Unexpected end of string."),fe.UnexpectedEndOfString),!0;case 6:return f(Z.t("Invalid characters in string. Control characters must be escaped."),fe.InvalidCharacter),!0}return!1}function d(N,q){return N.length=s.getTokenOffset()+s.getTokenLength()-N.offset,q&&o(),N}function g(N){if(s.getToken()!==3)return;let q=new Qb(N,s.getTokenOffset());o();let B=0,M=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){M||f(Z.t("Value expected"),fe.ValueExpected);let C=s.getTokenOffset();if(o(),s.getToken()===4){M&&l(Z.t("Trailing comma"),fe.TrailingComma,C,C+1);continue}}else M&&f(Z.t("Expected comma"),fe.CommaExpected);let L=y(q);L?q.items.push(L):f(Z.t("Value expected"),fe.ValueExpected,void 0,[],[4,5]),M=!0}return s.getToken()!==4?f(Z.t("Expected comma or closing bracket"),fe.CommaOrCloseBacketExpected,q):d(q,!0)}let _=new Su(void 0,0,0);function k(N,q){let B=new Xb(N,s.getTokenOffset(),_),M=v(B);if(!M)if(s.getToken()===16){f(Z.t("Property keys must be doublequoted"),fe.PropertyKeysMustBeDoublequoted);let C=new Su(B,s.getTokenOffset(),s.getTokenLength());C.value=s.getTokenValue(),M=C,o()}else return;if(B.keyNode=M,M.value!=="//"){let C=q[M.value];C?(l(Z.t("Duplicate object key"),fe.DuplicateKey,B.keyNode.offset,B.keyNode.offset+B.keyNode.length,qt.Warning),vn(C)&&l(Z.t("Duplicate object key"),fe.DuplicateKey,C.keyNode.offset,C.keyNode.offset+C.keyNode.length,qt.Warning),q[M.value]=!0):q[M.value]=B}if(s.getToken()===6)B.colonOffset=s.getTokenOffset(),o();else if(f(Z.t("Colon expected"),fe.ColonExpected),s.getToken()===10&&e.positionAt(M.offset+M.length).line<e.positionAt(s.getTokenOffset()).line)return B.length=M.length,B;let L=y(B);return L?(B.valueNode=L,B.length=L.offset+L.length-B.offset,B):f(Z.t("Value expected"),fe.ValueExpected,B,[],[2,5])}function b(N){if(s.getToken()!==1)return;let q=new Zb(N,s.getTokenOffset()),B=Object.create(null);o();let M=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){M||f(Z.t("Property expected"),fe.PropertyExpected);let C=s.getTokenOffset();if(o(),s.getToken()===2){M&&l(Z.t("Trailing comma"),fe.TrailingComma,C,C+1);continue}}else M&&f(Z.t("Expected comma"),fe.CommaExpected);let L=k(q,B);L?q.properties.push(L):f(Z.t("Property expected"),fe.PropertyExpected,void 0,[],[2,5]),M=!0}return s.getToken()!==2?f(Z.t("Expected comma or closing brace"),fe.CommaOrCloseBraceExpected,q):d(q,!0)}function v(N){if(s.getToken()!==10)return;let q=new Su(N,s.getTokenOffset());return q.value=s.getTokenValue(),d(q,!0)}function w(N){if(s.getToken()!==11)return;let q=new Yb(N,s.getTokenOffset());if(s.getTokenError()===0){let B=s.getTokenValue();try{let M=JSON.parse(B);if(!Pt(M))return f(Z.t("Invalid number format."),fe.Undefined,q);q.value=M}catch{return f(Z.t("Invalid number format."),fe.Undefined,q)}q.isInteger=B.indexOf(".")===-1}return d(q,!0)}function T(N){let q;switch(s.getToken()){case 7:return d(new Kb(N,s.getTokenOffset()),!0);case 8:return d(new pp(N,!0,s.getTokenOffset()),!0);case 9:return d(new pp(N,!1,s.getTokenOffset()),!0);default:return}}function y(N){return g(N)||b(N)||v(N)||w(N)||T(N)}let A;return o()!==17&&(A=y(A),A?s.getToken()!==17&&f(Z.t("End of file expected."),fe.Undefined):f(Z.t("Expected a JSON object, array or literal."),fe.Undefined)),new mp(A,r,a)}var Z,aK,zn,Kb,pp,Qb,Yb,Su,Xb,Zb,Zq,eL,oK,cK,hp,ek,eo,wt,mp,to=Te(()=>{p();fn();gu();yu();hr();Gb();Z=oa(Os()),aK={"color-hex":{errorMessage:Z.t("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Z.t("String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Z.t("String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Z.t("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Z.t("String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:Z.t("String is not a hostname."),pattern:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i},ipv4:{errorMessage:Z.t("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/},ipv6:{errorMessage:Z.t("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i}},zn=class{constructor(t,r,n=0){this.offset=r,this.length=n,this.parent=t}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Kb=class extends zn{constructor(t,r){super(t,r),this.type="null",this.value=null}},pp=class extends zn{constructor(t,r,n){super(t,n),this.type="boolean",this.value=r}},Qb=class extends zn{constructor(t,r){super(t,r),this.type="array",this.items=[]}get children(){return this.items}},Yb=class extends zn{constructor(t,r){super(t,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Su=class extends zn{constructor(t,r,n){super(t,r,n),this.type="string",this.value=""}},Xb=class extends zn{constructor(t,r,n){super(t,r),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Zb=class extends zn{constructor(t,r){super(t,r),this.type="object",this.properties=[]}get children(){return this.properties}};(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Zq||(Zq={}));eL="http://json-schema.org/",oK="https://json-schema.org/";cK={"https://json-schema.org/draft-03/schema":Wt.v3,"https://json-schema.org/draft-04/schema":Wt.v4,"https://json-schema.org/draft-06/schema":Wt.v6,"https://json-schema.org/draft-07/schema":Wt.v7,"https://json-schema.org/draft/2019-09/schema":Wt.v2019_09,"https://json-schema.org/draft/2020-12/schema":Wt.v2020_12},hp=class{constructor(t){this.schemaDraft=t}},ek=class e{constructor(t=-1,r){this.focusOffset=t,this.exclude=r,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){Array.prototype.push.apply(this.schemas,t.schemas)}include(t){return(this.focusOffset===-1||rk(t,this.focusOffset))&&t!==this.exclude}newSub(){return new e(-1,this.exclude)}},eo=class{constructor(){}get schemas(){return[]}add(t){}merge(t){}include(t){return!0}newSub(){return this}};eo.instance=new eo;wt=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(t){this.problems=this.problems.concat(t.problems),this.propertiesMatches+=t.propertiesMatches,this.propertiesValueMatches+=t.propertiesValueMatches,this.mergeProcessedProperties(t)}mergeEnumValues(t){!this.enumValueMatch&&!t.enumValueMatch&&this.enumValues&&t.enumValues&&(this.enumValues=this.enumValues.concat(t.enumValues))}updateEnumMismatchProblemMessages(){if(!this.enumValueMatch&&this.enumValues)for(let t of this.problems)t.code===fe.EnumValueMismatch&&(t.message=Z.t("Value is not accepted. Valid values: {0}.",this.enumValues.map(r=>JSON.stringify(r)).join(", ")))}mergePropertyMatch(t){this.problems=this.problems.concat(t.problems),this.propertiesMatches++,(t.enumValueMatch||!t.hasProblems()&&t.propertiesMatches)&&this.propertiesValueMatches++,t.enumValueMatch&&t.enumValues&&t.enumValues.length===1&&this.primaryValueMatches++}mergeProcessedProperties(t){t.processedProperties.forEach(r=>this.processedProperties.add(r))}compare(t){let r=this.hasProblems();return r!==t.hasProblems()?r?-1:1:this.enumValueMatch!==t.enumValueMatch?t.enumValueMatch?-1:1:this.primaryValueMatches!==t.primaryValueMatches?this.primaryValueMatches-t.primaryValueMatches:this.propertiesValueMatches!==t.propertiesValueMatches?this.propertiesValueMatches-t.propertiesValueMatches:this.propertiesMatches-t.propertiesMatches}};mp=class{constructor(t,r=[],n=[]){this.root=t,this.syntaxErrors=r,this.comments=n}getNodeFromOffset(t,r=!1){if(this.root)return Jy(this.root,t,r)}visit(t){if(this.root){let r=n=>{let i=t(n),s=n.children;if(Array.isArray(s))for(let a=0;a<s.length&&i;a++)i=r(s[a]);return i};r(this.root)}}validate(t,r,n=qt.Warning,i){if(this.root&&r){let s=new wt;return Tt(this.root,r,s,eo.instance,new hp(i??tL(r))),s.problems.map(a=>{let o=ue.create(t.positionAt(a.location.offset),t.positionAt(a.location.offset+a.location.length));return dr.create(o,a.message,a.severity??n,a.code)})}}getMatchingSchemas(t,r=-1,n){if(this.root&&t){let i=new ek(r,n),s=tL(t),a=new hp(s);return Tt(this.root,t,new wt,i,a),i.schemas}return[]}}});function gp(e,t,r){if(e!==null&&typeof e=="object"){let n=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";let i=`[
67
+ `;for(let s=0;s<e.length;s++)i+=n+gp(e[s],n,r),s<e.length-1&&(i+=","),i+=`
68
+ `;return i+=t+"]",i}else{let i=Object.keys(e);if(i.length===0)return"{}";let s=`{
69
+ `;for(let a=0;a<i.length;a++){let o=i[a];s+=n+JSON.stringify(o)+": "+gp(e[o],n,r),a<i.length-1&&(s+=","),s+=`
70
+ `}return s+=t+"}",s}}return r(e)}var iL=Te(()=>{p()});var wu,uK,lK,yp,sL=Te(()=>{p();to();fn();iL();yu();gu();hr();wu=oa(Os()),uK=[",","}","]"],lK=[":"],yp=class{constructor(t,r=[],n=Promise,i={}){this.schemaService=t,this.contributions=r,this.promiseConstructor=n,this.clientCapabilities=i}doResolve(t){for(let r=this.contributions.length-1;r>=0;r--){let n=this.contributions[r].resolveCompletion;if(n){let i=n(t);if(i)return i}}return this.promiseConstructor.resolve(t)}doComplete(t,r,n){let i={items:[],isIncomplete:!1},s=t.getText(),a=t.offsetAt(r),o=n.getNodeFromOffset(a,!0);if(this.isInComment(t,o?o.offset:0,a))return Promise.resolve(i);if(o&&a===o.offset+o.length&&a>0){let g=s[a-1];(o.type==="object"&&g==="}"||o.type==="array"&&g==="]")&&(o=o.parent)}let c=this.getCurrentWord(t,a),l;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null"))l=ue.create(t.positionAt(o.offset),t.positionAt(o.offset+o.length));else{let g=a-c.length;g>0&&s[g-1]==='"'&&g--,l=ue.create(t.positionAt(g),r)}let f=!1,m=new Map,d={add:g=>{let _=g.label,k=m.get(_);if(k)k.documentation||(k.documentation=g.documentation),k.detail||(k.detail=g.detail),k.labelDetails||(k.labelDetails=g.labelDetails);else{if(_=_.replace(/[\n]/g,"\u21B5"),_.length>60){let b=_.substr(0,57).trim()+"...";m.has(b)||(_=b)}g.textEdit=Vt.replace(l,g.insertText),f&&(g.commitCharacters=g.kind===Lt.Property?lK:uK),g.label=_,m.set(_,g),i.items.push(g)}},setAsIncomplete:()=>{i.isIncomplete=!0},error:g=>{console.error(g)},getNumberOfProposals:()=>i.items.length};return this.schemaService.getSchemaForResource(t.uri,n).then(g=>{let _=[],k=!0,b="",v;if(o&&o.type==="string"){let T=o.parent;T&&T.type==="property"&&T.keyNode===o&&(k=!T.valueNode,v=T,b=s.substr(o.offset+1,o.length-2),T&&(o=T.parent))}if(o&&o.type==="object"){if(o.offset===a)return i;o.properties.forEach(O=>{(!v||v!==O)&&m.set(O.keyNode.value,Ya.create("__"))});let y="";k&&(y=this.evaluateSeparatorAfter(t,t.offsetAt(l.end))),g?this.getPropertyCompletions(g,n,o,k,y,d):this.getSchemaLessPropertyCompletions(n,o,b,d);let A=Tu(o);this.contributions.forEach(O=>{let N=O.collectPropertyCompletions(t.uri,A,c,k,y==="",d);N&&_.push(N)}),!g&&c.length>0&&s.charAt(a-c.length-1)!=='"'&&(d.add({kind:Lt.Property,label:this.getLabelForValue(c),insertText:this.getInsertTextForProperty(c,void 0,!1,y),insertTextFormat:Xe.Snippet,documentation:""}),d.setAsIncomplete())}let w={};return g?this.getValueCompletions(g,n,o,a,t,d,w):this.getSchemaLessValueCompletions(n,o,a,t,d),this.contributions.length>0&&this.getContributedValueCompletions(n,o,a,t,d,_),this.promiseConstructor.all(_).then(()=>{if(d.getNumberOfProposals()===0){let T=a;o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(T=o.offset+o.length);let y=this.evaluateSeparatorAfter(t,T);this.addFillerValueCompletions(w,y,d)}return i})})}getPropertyCompletions(t,r,n,i,s,a){r.getMatchingSchemas(t.schema,n.offset).forEach(c=>{if(c.node===n&&!c.inverted){let l=c.schema.properties;l&&Object.keys(l).forEach(m=>{let d=l[m];if(typeof d=="object"&&!d.deprecationMessage&&!d.doNotSuggest){let g={kind:Lt.Property,label:m,insertText:this.getInsertTextForProperty(m,d,i,s),insertTextFormat:Xe.Snippet,filterText:this.getFilterTextForValue(m),documentation:this.fromMarkup(d.markdownDescription)||d.description||""};d.completionDetail!==void 0&&(g.detail=d.completionDetail),d.suggestSortText!==void 0&&(g.sortText=d.suggestSortText),g.insertText&&_i(g.insertText,`$1${s}`)&&(g.command={title:"Suggest",command:"editor.action.triggerSuggest"}),a.add(g)}});let f=c.schema.propertyNames;if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){let m=(d,g,_,k)=>{let b={kind:Lt.Property,label:d,insertText:this.getInsertTextForProperty(d,void 0,i,s),insertTextFormat:Xe.Snippet,filterText:this.getFilterTextForValue(d),documentation:g||this.fromMarkup(f.markdownDescription)||f.description||"",sortText:k,detail:_};b.insertText&&_i(b.insertText,`$1${s}`)&&(b.command={title:"Suggest",command:"editor.action.triggerSuggest"}),a.add(b)};if(f.enum)for(let d=0;d<f.enum.length;d++){let g;f.markdownEnumDescriptions&&d<f.markdownEnumDescriptions.length?g=this.fromMarkup(f.markdownEnumDescriptions[d]):f.enumDescriptions&&d<f.enumDescriptions.length&&(g=f.enumDescriptions[d]);let _=f.enumSortTexts?.[d],k=f.enumDetails?.[d];m(f.enum[d],g,k,_)}if(f.examples)for(let d=0;d<f.examples.length;d++)m(f.examples[d],void 0,void 0,void 0);f.const&&m(f.const,void 0,f.completionDetail,f.suggestSortText)}}})}getSchemaLessPropertyCompletions(t,r,n,i){let s=a=>{a.properties.forEach(o=>{let c=o.keyNode.value;i.add({kind:Lt.Property,label:c,insertText:this.getInsertTextForValue(c,""),insertTextFormat:Xe.Snippet,filterText:this.getFilterTextForValue(c),documentation:""})})};if(r.parent)if(r.parent.type==="property"){let a=r.parent.keyNode.value;t.visit(o=>(o.type==="property"&&o!==r.parent&&o.keyNode.value===a&&o.valueNode&&o.valueNode.type==="object"&&s(o.valueNode),!0))}else r.parent.type==="array"&&r.parent.items.forEach(a=>{a.type==="object"&&a!==r&&s(a)});else r.type==="object"&&i.add({kind:Lt.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:Xe.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(t,r,n,i,s){let a=n;if(r&&(r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(a=r.offset+r.length,r=r.parent),!r){s.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Xe.Snippet,documentation:""}),s.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Xe.Snippet,documentation:""});return}let o=this.evaluateSeparatorAfter(i,a),c=l=>{l.parent&&!rk(l.parent,n,!0)&&s.add({kind:this.getSuggestionKind(l.type),label:this.getLabelTextForMatchingNode(l,i),insertText:this.getInsertTextForMatchingNode(l,i,o),insertTextFormat:Xe.Snippet,documentation:""}),l.type==="boolean"&&this.addBooleanValueCompletion(!l.value,o,s)};if(r.type==="property"&&n>(r.colonOffset||0)){let l=r.valueNode;if(l&&(n>l.offset+l.length||l.type==="object"||l.type==="array"))return;let f=r.keyNode.value;t.visit(m=>(m.type==="property"&&m.keyNode.value===f&&m.valueNode&&c(m.valueNode),!0)),f==="$schema"&&r.parent&&!r.parent.parent&&this.addDollarSchemaCompletions(o,s)}if(r.type==="array")if(r.parent&&r.parent.type==="property"){let l=r.parent.keyNode.value;t.visit(f=>(f.type==="property"&&f.keyNode.value===l&&f.valueNode&&f.valueNode.type==="array"&&f.valueNode.items.forEach(c),!0))}else r.items.forEach(c)}getValueCompletions(t,r,n,i,s,a,o){let c=i,l,f;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(c=n.offset+n.length,f=n,n=n.parent),!n){this.addSchemaValueCompletions(t.schema,"",a,o);return}if(n.type==="property"&&i>(n.colonOffset||0)){let m=n.valueNode;if(m&&i>m.offset+m.length)return;l=n.keyNode.value,n=n.parent}if(n&&(l!==void 0||n.type==="array")){let m=this.evaluateSeparatorAfter(s,c),d=r.getMatchingSchemas(t.schema,n.offset,f);for(let g of d)if(g.node===n&&!g.inverted&&g.schema){if(n.type==="array"&&g.schema.items){let _=a;if(g.schema.uniqueItems){let k=new Set;n.children.forEach(b=>{b.type!=="array"&&b.type!=="object"&&k.add(this.getLabelForValue(kn(b)))}),_={...a,add(b){k.has(b.label)||a.add(b)}}}if(Array.isArray(g.schema.items)){let k=this.findItemAtOffset(n,s,i);k<g.schema.items.length&&this.addSchemaValueCompletions(g.schema.items[k],m,_,o)}else this.addSchemaValueCompletions(g.schema.items,m,_,o)}if(l!==void 0){let _=!1;if(g.schema.properties){let k=g.schema.properties[l];k&&(_=!0,this.addSchemaValueCompletions(k,m,a,o))}if(g.schema.patternProperties&&!_){for(let k of Object.keys(g.schema.patternProperties))if(xs(k)?.test(l)){_=!0;let v=g.schema.patternProperties[k];this.addSchemaValueCompletions(v,m,a,o)}}if(g.schema.additionalProperties&&!_){let k=g.schema.additionalProperties;this.addSchemaValueCompletions(k,m,a,o)}}}l==="$schema"&&!n.parent&&this.addDollarSchemaCompletions(m,a),o.boolean&&(this.addBooleanValueCompletion(!0,m,a),this.addBooleanValueCompletion(!1,m,a)),o.null&&this.addNullValueCompletion(m,a)}}getContributedValueCompletions(t,r,n,i,s,a){if(!r)this.contributions.forEach(o=>{let c=o.collectDefaultCompletions(i.uri,s);c&&a.push(c)});else if((r.type==="string"||r.type==="number"||r.type==="boolean"||r.type==="null")&&(r=r.parent),r&&r.type==="property"&&n>(r.colonOffset||0)){let o=r.keyNode.value,c=r.valueNode;if((!c||n<=c.offset+c.length)&&r.parent){let l=Tu(r.parent);this.contributions.forEach(f=>{let m=f.collectValueCompletions(i.uri,l,o,s);m&&a.push(m)})}}}addSchemaValueCompletions(t,r,n,i){typeof t=="object"&&(this.addEnumValueCompletions(t,r,n),this.addDefaultValueCompletions(t,r,n),this.collectTypes(t,i),Array.isArray(t.allOf)&&t.allOf.forEach(s=>this.addSchemaValueCompletions(s,r,n,i)),Array.isArray(t.anyOf)&&t.anyOf.forEach(s=>this.addSchemaValueCompletions(s,r,n,i)),Array.isArray(t.oneOf)&&t.oneOf.forEach(s=>this.addSchemaValueCompletions(s,r,n,i)))}addDefaultValueCompletions(t,r,n,i=0){let s=!1;if(fr(t.default)){let a=t.type,o=t.default;for(let l=i;l>0;l--)o=[o],a="array";let c={kind:this.getSuggestionKind(a),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,r),insertTextFormat:Xe.Snippet};this.doesSupportsLabelDetails()?c.labelDetails={description:wu.t("Default value")}:c.detail=wu.t("Default value"),n.add(c),s=!0}Array.isArray(t.examples)&&t.examples.forEach(a=>{let o=t.type,c=a;for(let l=i;l>0;l--)c=[c],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(c),insertText:this.getInsertTextForValue(c,r),insertTextFormat:Xe.Snippet}),s=!0}),Array.isArray(t.defaultSnippets)&&t.defaultSnippets.forEach(a=>{let o=t.type,c=a.body,l=a.label,f,m;if(fr(c)){let d=t.type;for(let g=i;g>0;g--)c=[c],d="array";f=this.getInsertTextForSnippetValue(c,r),m=this.getFilterTextForSnippetValue(c),l=l||this.getLabelForSnippetValue(c)}else if(typeof a.bodyText=="string"){let d="",g="",_="";for(let k=i;k>0;k--)d=d+_+`[
71
+ `,g=g+`
72
+ `+_+"]",_+=" ",o="array";f=d+_+a.bodyText.split(`
73
+ `).join(`
74
+ `+_)+g+r,l=l||f,m=f.replace(/[\n]/g,"")}else return;n.add({kind:this.getSuggestionKind(o),label:l,documentation:this.fromMarkup(a.markdownDescription)||a.description,insertText:f,insertTextFormat:Xe.Snippet,filterText:m}),s=!0}),!s&&typeof t.items=="object"&&!Array.isArray(t.items)&&i<5&&this.addDefaultValueCompletions(t.items,r,n,i+1)}addEnumValueCompletions(t,r,n){if(fr(t.const)&&n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(t.const),insertText:this.getInsertTextForValue(t.const,r),insertTextFormat:Xe.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description}),Array.isArray(t.enum))for(let i=0,s=t.enum.length;i<s;i++){let a=t.enum[i],o=this.fromMarkup(t.markdownDescription)||t.description;t.markdownEnumDescriptions&&i<t.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(t.markdownEnumDescriptions[i]):t.enumDescriptions&&i<t.enumDescriptions.length&&(o=t.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(t.type),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,r),insertTextFormat:Xe.Snippet,sortText:t.enumSortTexts?.[i],detail:t.enumDetails?.[i],documentation:o})}}collectTypes(t,r){if(Array.isArray(t.enum)||fr(t.const))return;let n=t.type;Array.isArray(n)?n.forEach(i=>r[i]=!0):n&&(r[n]=!0)}addFillerValueCompletions(t,r,n){t.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},r),insertTextFormat:Xe.Snippet,detail:wu.t("New object"),documentation:""}),t.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],r),insertTextFormat:Xe.Snippet,detail:wu.t("New array"),documentation:""})}addBooleanValueCompletion(t,r,n){n.add({kind:this.getSuggestionKind("boolean"),label:t?"true":"false",insertText:this.getInsertTextForValue(t,r),insertTextFormat:Xe.Snippet,documentation:""})}addNullValueCompletion(t,r){r.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+t,insertTextFormat:Xe.Snippet,documentation:""})}addDollarSchemaCompletions(t,r){this.schemaService.getRegisteredSchemaIds(i=>i==="http"||i==="https").forEach(i=>{i.startsWith("https://json-schema.org/draft-")&&(i=i+"#"),r.add({kind:Lt.Module,label:this.getLabelForValue(i),filterText:this.getFilterTextForValue(i),insertText:this.getInsertTextForValue(i,t),insertTextFormat:Xe.Snippet,documentation:""})})}getLabelForValue(t){return JSON.stringify(t)}getValueFromLabel(t){return JSON.parse(t)}getFilterTextForValue(t){return JSON.stringify(t)}getFilterTextForSnippetValue(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getLabelForSnippetValue(t){return JSON.stringify(t).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getInsertTextForPlainText(t){return t.replace(/[\\\$\}]/g,"\\$&")}getInsertTextForValue(t,r){let n=JSON.stringify(t,null," ");return n==="{}"?"{$1}"+r:n==="[]"?"[$1]"+r:this.getInsertTextForPlainText(n+r)}getInsertTextForSnippetValue(t,r){return gp(t,"",i=>typeof i=="string"&&i[0]==="^"?i.substr(1):JSON.stringify(i))+r}getInsertTextForGuessedValue(t,r){switch(typeof t){case"object":return t===null?"${1:null}"+r:this.getInsertTextForValue(t,r);case"string":let n=JSON.stringify(t);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),'"${1:'+n+'}"'+r;case"number":case"boolean":return"${1:"+JSON.stringify(t)+"}"+r}return this.getInsertTextForValue(t,r)}getSuggestionKind(t){if(Array.isArray(t)){let r=t;t=r.length>0?r[0]:void 0}if(!t)return Lt.Value;switch(t){case"string":return Lt.Value;case"object":return Lt.Module;case"property":return Lt.Property;default:return Lt.Value}}getLabelTextForMatchingNode(t,r){switch(t.type){case"array":return"[]";case"object":return"{}";default:return r.getText().substr(t.offset,t.length)}}getInsertTextForMatchingNode(t,r,n){switch(t.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:let i=r.getText().substr(t.offset,t.length)+n;return this.getInsertTextForPlainText(i)}}getInsertTextForProperty(t,r,n,i){let s=this.getInsertTextForValue(t,"");if(!n)return s;let a=s+": ",o,c=0;if(r){if(Array.isArray(r.defaultSnippets)){if(r.defaultSnippets.length===1){let l=r.defaultSnippets[0].body;fr(l)&&(o=this.getInsertTextForSnippetValue(l,""))}c+=r.defaultSnippets.length}if(r.enum&&(!o&&r.enum.length===1&&(o=this.getInsertTextForGuessedValue(r.enum[0],"")),c+=r.enum.length),fr(r.const)&&(o||(o=this.getInsertTextForGuessedValue(r.const,"")),c++),fr(r.default)&&(o||(o=this.getInsertTextForGuessedValue(r.default,"")),c++),Array.isArray(r.examples)&&r.examples.length&&(o||(o=this.getInsertTextForGuessedValue(r.examples[0],"")),c+=r.examples.length),c===0){let l=Array.isArray(r.type)?r.type[0]:r.type;switch(l||(r.properties?l="object":r.items&&(l="array")),l){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return s}}}return(!o||c>1)&&(o="$1"),a+o+i}getCurrentWord(t,r){let n=r-1,i=t.getText();for(;n>=0&&`
75
+ \r\v":{[,]}`.indexOf(i.charAt(n))===-1;)n--;return i.substring(n+1,r)}evaluateSeparatorAfter(t,r){let n=ar(t.getText(),!0);switch(n.setPosition(r),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(t,r,n){let i=ar(r.getText(),!0),s=t.items;for(let a=s.length-1;a>=0;a--){let o=s[a];if(n>o.offset+o.length)return i.setPosition(o.offset+o.length),i.scan()===5&&n>=i.getTokenOffset()+i.getTokenLength()?a+1:a;if(n>=o.offset)return a}return 0}isInComment(t,r,n){let i=ar(t.getText(),!1);i.setPosition(r);let s=i.scan();for(;s!==17&&i.getTokenOffset()+i.getTokenLength()<n;)s=i.scan();return(s===12||s===13)&&i.getTokenOffset()<=n}fromMarkup(t){if(t&&this.doesSupportMarkdown())return{kind:bn.Markdown,value:t}}doesSupportMarkdown(){if(!fr(this.supportsMarkdown)){let t=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(t)&&t.indexOf(bn.Markdown)!==-1}return this.supportsMarkdown}doesSupportsCommitCharacters(){return fr(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return fr(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}}});function ik(e){if(e)return e.trim().replace(/[\\`*_{}[\]()<>#+\-.!]/g,"\\$&").replace(/(^ +)/mg,(t,r)=>"&nbsp;".repeat(r.length)).replace(/( {2,})/g,(t,r)=>" "+"&nbsp;".repeat(r.length-1)).replace(/(\t+)/g,(t,r)=>"&nbsp;".repeat(r.length*4)).replace(/\n/g,`\\
76
+ `)}function fK(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var _p,aL=Te(()=>{p();to();hr();_p=class{constructor(t,r=[],n){this.schemaService=t,this.contributions=r,this.promise=n||Promise}doHover(t,r,n){let i=t.offsetAt(r),s=n.getNodeFromOffset(i);if(!s||(s.type==="object"||s.type==="array")&&i>s.offset+1&&i<s.offset+s.length-1)return this.promise.resolve(null);let a=s;if(s.type==="string"){let f=s.parent;if(f&&f.type==="property"&&f.keyNode===s&&(s=f.valueNode,!s))return this.promise.resolve(null)}let o=ue.create(t.positionAt(a.offset),t.positionAt(a.offset+a.length)),c=f=>({contents:f,range:o}),l=Tu(s);for(let f=this.contributions.length-1;f>=0;f--){let d=this.contributions[f].getInfoContribution(t.uri,l);if(d)return d.then(g=>c(g))}return this.schemaService.getSchemaForResource(t.uri,n).then(f=>{if(!f)return null;let m,d,g,_,k=n.getMatchingSchemas(f.schema,s.offset).filter(v=>v.node===s&&!v.inverted).map(v=>v.schema);for(let v of k)if(m=m||v.title,d=d||v.markdownDescription||ik(v.description),v.enum){let w=v.enum.indexOf(kn(s));v.markdownEnumDescriptions?g=v.markdownEnumDescriptions[w]:v.enumDescriptions&&(g=ik(v.enumDescriptions[w])),g&&(_=v.enum[w],typeof _!="string"&&(_=JSON.stringify(_)))}let b="";return m&&(b=ik(m)),d&&(b.length>0&&(b+=`
77
+
78
+ `),b+=d),g&&(b.length>0&&(b+=`
79
+
80
+ `),b+=`\`${fK(_)}\`: ${g}`),c([b])})}}});function cL(e){if(e&&typeof e=="object"){if(Pr(e.allowComments))return e.allowComments;if(e.allOf)for(let t of e.allOf){let r=cL(t);if(Pr(r))return r}}}function uL(e){if(e&&typeof e=="object"){if(Pr(e.allowTrailingCommas))return e.allowTrailingCommas;let t=e;if(Pr(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(let r of e.allOf){let n=uL(r);if(Pr(n))return n}}}function vp(e){switch(e){case"error":return qt.Error;case"warning":return qt.Warning;case"ignore":return}}var oL,bp,dK,lL=Te(()=>{p();hr();oL=oa(Os());gu();bp=class{constructor(t,r){this.jsonSchemaService=t,this.promise=r,this.validationEnabled=!0}configure(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:qt.Error)}doValidation(t,r,n,i){if(!this.validationEnabled)return this.promise.resolve([]);let s=[],a={},o=l=>{let f=l.range.start.line+" "+l.range.start.character+" "+l.message;a[f]||(a[f]=!0,s.push(l))},c=l=>{let f=n?.trailingCommas?vp(n.trailingCommas):qt.Error,m=n?.comments?vp(n.comments):this.commentSeverity,d=n?.schemaValidation?vp(n.schemaValidation):qt.Warning,g=n?.schemaRequest?vp(n.schemaRequest):qt.Warning;if(l){let _=(k,b,v)=>{if(r.root&&g){let w=r.root,T=w.type==="object"?w.properties[0]:void 0;if(T&&T.keyNode.value==="$schema"){let y=T.valueNode||T,A=ue.create(t.positionAt(y.offset),t.positionAt(y.offset+y.length));o(dr.create(A,k,g,b,"json",v))}else{let y=ue.create(t.positionAt(w.offset),t.positionAt(w.offset+1));o(dr.create(y,k,g,b,"json",v))}}};if(l.errors.length){let k=l.errors[0];_(k.message,k.code,k.relatedInformation)}else if(d){for(let b of l.warnings)_(b.message,b.code,b.relatedInformation);let k=r.validate(t,l.schema,d,n?.schemaDraft);k&&k.forEach(o)}cL(l.schema)&&(m=void 0),uL(l.schema)&&(f=void 0)}for(let _ of r.syntaxErrors){if(_.code===fe.TrailingComma){if(typeof f!="number")continue;_.severity=f}o(_)}if(typeof m=="number"){let _=oL.t("Comments are not permitted in JSON.");r.comments.forEach(k=>{o(dr.create(k,_,m,fe.CommentNotPermitted))})}return s};if(i){let l=i.id||"schemaservice://untitled/"+dK++;return this.jsonSchemaService.registerExternalSchema({uri:l,schema:i}).getResolvedSchema().then(m=>c(m))}return this.jsonSchemaService.getSchemaForResource(t.uri,r).then(l=>c(l))}getLanguageStatus(t,r){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(t.uri,r)}}},dK=0});function ut(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function fL(e){if(e[0]==="#")switch(e.length){case 4:return{red:ut(e.charCodeAt(1))*17/255,green:ut(e.charCodeAt(2))*17/255,blue:ut(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:ut(e.charCodeAt(1))*17/255,green:ut(e.charCodeAt(2))*17/255,blue:ut(e.charCodeAt(3))*17/255,alpha:ut(e.charCodeAt(4))*17/255};case 7:return{red:(ut(e.charCodeAt(1))*16+ut(e.charCodeAt(2)))/255,green:(ut(e.charCodeAt(3))*16+ut(e.charCodeAt(4)))/255,blue:(ut(e.charCodeAt(5))*16+ut(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(ut(e.charCodeAt(1))*16+ut(e.charCodeAt(2)))/255,green:(ut(e.charCodeAt(3))*16+ut(e.charCodeAt(4)))/255,blue:(ut(e.charCodeAt(5))*16+ut(e.charCodeAt(6)))/255,alpha:(ut(e.charCodeAt(7))*16+ut(e.charCodeAt(8)))/255}}}var dL=Te(()=>{p()});function ki(e,t){return ue.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function pL(e){return kn(e)||hL.t("<empty>")}var hL,kp,mL=Te(()=>{p();to();yu();dL();hL=oa(Os());hr();kp=class{constructor(t){this.schemaService=t}findDocumentSymbols(t,r,n={resultLimit:Number.MAX_VALUE}){let i=r.root;if(!i)return[];let s=n.resultLimit||Number.MAX_VALUE,a=t.uri;if((a==="vscode://defaultsettings/keybindings.json"||_i(a.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){let d=[];for(let g of i.items)if(g.type==="object"){for(let _ of g.properties)if(_.keyNode.value==="key"&&_.valueNode){let k=Wn.create(t.uri,ki(t,g));if(d.push({name:pL(_.valueNode),kind:pr.Function,location:k}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),d}}return d}let o=[{node:i,containerName:""}],c=0,l=!1,f=[],m=(d,g)=>{d.type==="array"?d.items.forEach(_=>{_&&o.push({node:_,containerName:g})}):d.type==="object"&&d.properties.forEach(_=>{let k=_.valueNode;if(k)if(s>0){s--;let b=Wn.create(t.uri,ki(t,_)),v=g?g+"."+_.keyNode.value:_.keyNode.value;f.push({name:this.getKeyLabel(_),kind:this.getSymbolKind(k.type),location:b,containerName:g}),o.push({node:k,containerName:v})}else l=!0})};for(;c<o.length;){let d=o[c++];m(d.node,d.containerName)}return l&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),f}findDocumentSymbols2(t,r,n={resultLimit:Number.MAX_VALUE}){let i=r.root;if(!i)return[];let s=n.resultLimit||Number.MAX_VALUE,a=t.uri;if((a==="vscode://defaultsettings/keybindings.json"||_i(a.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){let d=[];for(let g of i.items)if(g.type==="object"){for(let _ of g.properties)if(_.keyNode.value==="key"&&_.valueNode){let k=ki(t,g),b=ki(t,_.keyNode);if(d.push({name:pL(_.valueNode),kind:pr.Function,range:k,selectionRange:b}),s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),d}}return d}let o=[],c=[{node:i,result:o}],l=0,f=!1,m=(d,g)=>{d.type==="array"?d.items.forEach((_,k)=>{if(_)if(s>0){s--;let b=ki(t,_),v=b,T={name:String(k),kind:this.getSymbolKind(_.type),range:b,selectionRange:v,children:[]};g.push(T),c.push({result:T.children,node:_})}else f=!0}):d.type==="object"&&d.properties.forEach(_=>{let k=_.valueNode;if(k)if(s>0){s--;let b=ki(t,_),v=ki(t,_.keyNode),w=[],T={name:this.getKeyLabel(_),kind:this.getSymbolKind(k.type),range:b,selectionRange:v,children:w,detail:this.getDetail(k)};g.push(T),c.push({result:w,node:k})}else f=!0})};for(;l<c.length;){let d=c[l++];m(d.node,d.result)}return f&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(a),o}getSymbolKind(t){switch(t){case"object":return pr.Module;case"string":return pr.String;case"number":return pr.Number;case"array":return pr.Array;case"boolean":return pr.Boolean;default:return pr.Variable}}getKeyLabel(t){let r=t.keyNode.value;return r&&(r=r.replace(/[\n]/g,"\u21B5")),r&&r.trim()?r:`"${r}"`}getDetail(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}}findDocumentColors(t,r,n){return this.schemaService.getSchemaForResource(t.uri,r).then(i=>{let s=[];if(i){let a=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE,o=r.getMatchingSchemas(i.schema),c={};for(let l of o)if(!l.inverted&&l.schema&&(l.schema.format==="color"||l.schema.format==="color-hex")&&l.node&&l.node.type==="string"){let f=String(l.node.offset);if(!c[f]){let m=fL(kn(l.node));if(m){let d=ki(t,l.node);s.push({color:m,range:d})}if(c[f]=!0,a--,a<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(t.uri),s}}}return s})}getColorPresentations(t,r,n,i){let s=[],a=Math.round(n.red*255),o=Math.round(n.green*255),c=Math.round(n.blue*255);function l(m){let d=m.toString(16);return d.length!==2?"0"+d:d}let f;return n.alpha===1?f=`#${l(a)}${l(o)}${l(c)}`:f=`#${l(a)}${l(o)}${l(c)}${l(Math.round(n.alpha*255))}`,s.push({label:f,textEdit:Vt.replace(i,JSON.stringify(f))}),s}}});var gL,yL=Te(()=>{p();gL={$id:"https://json-schema.org/draft/2019-09/schema",$schema:"https://json-schema.org/draft/2019-09/schema",title:"(Flattened static) Core and Validation specifications meta-schema",type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/$defs/stringArray"}]}},$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$ref:"#"},default:{}},additionalItems:{$ref:"#"},unevaluatedItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$ref:"#"},additionalProperties:{$ref:"#"},unevaluatedProperties:{$ref:"#"},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$ref:"#"}},propertyNames:{$ref:"#"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$ref:"#"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$ref:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var _L,vL=Te(()=>{p();_L={$id:"https://json-schema.org/draft/2020-12/schema",$schema:"https://json-schema.org/draft/2020-12/schema",title:"(Flattened static) Core and Validation specifications meta-schema",type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/$defs/stringArray"}]}},$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},$ref:{type:"string",format:"uri-reference"},$dynamicRef:{type:"string",format:"uri-reference"},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$ref:"#"},default:{}},prefixItems:{$ref:"#/$defs/schemaArray"},items:{$ref:"#"},contains:{$ref:"#"},additionalProperties:{$ref:"#"},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$ref:"#"}},propertyNames:{$ref:"#"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$ref:"#"},unevaluatedItems:{$ref:"#"},unevaluatedProperties:{$ref:"#"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$ref:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var de,Sp,pK,bL=Te(()=>{p();yL();vL();de=oa(Os()),Sp={schemaAssociations:[],schemas:{"https://json-schema.org/draft-04/schema":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"https://json-schema.org/draft-07/schema":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},"https://json-schema.org/draft/2020-12/schema":_L,"https://json-schema.org/draft/2019-09/schema":gL}},pK={id:de.t("A unique identifier for the schema."),$schema:de.t("The schema to verify this document against."),title:de.t("A descriptive title of the schema."),description:de.t("A long description of the schema. Used in hover menus and suggestions."),default:de.t("A default value. Used by suggestions."),multipleOf:de.t("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:de.t("The maximum numerical value, inclusive by default."),exclusiveMaximum:de.t("Makes the maximum property exclusive."),minimum:de.t("The minimum numerical value, inclusive by default."),exclusiveMinimum:de.t("Makes the minimum property exclusive."),maxLength:de.t("The maximum length of a string."),minLength:de.t("The minimum length of a string."),pattern:de.t("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:de.t("For arrays, only when items is set as an array. If items are a schema, this schema validates items after the ones specified by the items schema. If false, additional items will cause validation to fail."),items:de.t("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:de.t("The maximum number of items that can be inside an array. Inclusive."),minItems:de.t("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:de.t("If all of the items in the array must be unique. Defaults to false."),maxProperties:de.t("The maximum number of properties an object can have. Inclusive."),minProperties:de.t("The minimum number of properties an object can have. Inclusive."),required:de.t("An array of strings that lists the names of all properties required on this object."),additionalProperties:de.t("Either a schema or a boolean. If a schema, used to validate all properties not matched by 'properties', 'propertyNames', or 'patternProperties'. If false, any properties not defined by the adjacent keywords will cause this schema to fail."),definitions:de.t("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:de.t("A map of property names to schemas for each property."),patternProperties:de.t("A map of regular expressions on property names to schemas for matching properties."),dependencies:de.t("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:de.t("The set of literal values that are valid."),type:de.t("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:de.t("Describes the format expected for the value. By default, not used for validation"),allOf:de.t("An array of schemas, all of which must match."),anyOf:de.t("An array of schemas, where at least one must match."),oneOf:de.t("An array of schemas, exactly one of which must match."),not:de.t("A schema which must not match."),$id:de.t("A unique identifier for the schema."),$ref:de.t("Reference a definition hosted on any location."),$comment:de.t("Comments from schema authors to readers or maintainers of the schema."),readOnly:de.t("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:de.t("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:de.t('An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:de.t("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:de.t("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:de.t("Describes the media type of a string property."),contentEncoding:de.t("Describes the content encoding of a string property."),if:de.t('The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:de.t('The "then" subschema is used for validation when the "if" subschema succeeds.'),else:de.t('The "else" subschema is used for validation when the "if" subschema fails.')};for(let e in Sp.schemas){let t=Sp.schemas[e];for(let r in t.properties){let n=t.properties[r];typeof n=="boolean"&&(n=t.properties[r]={});let i=pK[r];i&&(n.description=i)}}});function kL(e,t){if(typeof e!="string")throw new TypeError("Expected a string");let r=String(e),n="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",c;for(let l=0,f=r.length;l<f;l++)switch(c=r[l],c){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+c;break;case"?":if(i){n+=".";break}case"[":case"]":if(i){n+=c;break}case"{":if(i){a=!0,n+="(";break}case"}":if(i){a=!1,n+=")";break}case",":if(a){n+="|";break}n+="\\"+c;break;case"*":let m=r[l-1],d=1;for(;r[l+1]==="*";)d++,l++;let g=r[l+1];s?d>1&&(m==="/"||m===void 0||m==="{"||m===",")&&(g==="/"||g===void 0||g===","||g==="}")?(g==="/"?l++:m==="/"&&n.endsWith("\\/")&&(n=n.substr(0,n.length-2)),n+="((?:[^/]*(?:/|$))*)"):n+="([^/]*)":n+=".*";break;default:n+=c}return(!o||!~o.indexOf("g"))&&(n="^"+n+"$"),new RegExp(n,o)}var SL=Te(()=>{p()});function Sn(e,t,r){let n=r?[{location:{uri:r,range:ue.create(0,0,0,0)},message:e}]:void 0;return{message:e,code:t,relatedInformation:n}}function TL(e){try{return Za.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function xu(e){try{let t=Za.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var Zr,hK,mK,sk,ak,Ns,Tp,wp,gK,wL=Te(()=>{p();fn();Gb();yu();to();hr();Zr=oa(Os());SL();gu();Hb();hK="!",mK="/",sk=class{constructor(t,r,n){this.folderUri=r,this.uris=n,this.globWrappers=[];try{for(let i of t){let s=i[0]!==hK;s||(i=i.substring(1)),i.length>0&&(i[0]===mK&&(i=i.substring(1)),this.globWrappers.push({regexp:kL("**/"+i,{extended:!0,globstar:!0}),include:s}))}r&&(r=TL(r),r.endsWith("/")||(r=r+"/"),this.folderUri=r)}catch{this.globWrappers.length=0,this.uris=[]}}matchesPattern(t){if(this.folderUri&&!t.startsWith(this.folderUri))return!1;let r=!1;for(let{regexp:n,include:i}of this.globWrappers)n.test(t)&&(r=i);return r}getURIs(){return this.uris}},ak=class{constructor(t,r,n){this.service=t,this.uri=r,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Ns(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(t=>this.service.resolveSchemaContent(t,this))),this.resolvedSchema}clearSchema(){let t=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,t}},Ns=class{constructor(t,r=[]){this.schema=t,this.errors=r}};Tp=class{constructor(t,r=[],n=[],i){this.schema=t,this.errors=r,this.warnings=n,this.schemaDraft=i}getSection(t){let r=this.getSectionRecursive(t,this.schema);if(r)return Ct(r)}getSectionRecursive(t,r){if(!r||typeof r=="boolean"||t.length===0)return r;let n=t.shift();if(r.properties&&typeof r.properties[n])return this.getSectionRecursive(t,r.properties[n]);if(r.patternProperties){for(let i of Object.keys(r.patternProperties))if(xs(i)?.test(n))return this.getSectionRecursive(t,r.patternProperties[i])}else{if(typeof r.additionalProperties=="object")return this.getSectionRecursive(t,r.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(r.items)){let i=parseInt(n,10);if(!isNaN(i)&&r.items[i])return this.getSectionRecursive(t,r.items[i])}else if(r.items)return this.getSectionRecursive(t,r.items)}}}},wp=class{constructor(t,r,n){this.contextService=r,this.requestService=t,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(t){return Object.keys(this.registeredSchemasIds).filter(r=>{let n=Za.parse(r).scheme;return n!=="schemaservice"&&(!t||t(n))})}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(t){this.cachedSchemaForResource=void 0;let r=!1;t=Gn(t);let n=[t],i=Object.keys(this.schemasById).map(s=>this.schemasById[s]);for(;n.length;){let s=n.pop();for(let a=0;a<i.length;a++){let o=i[a];o&&(o.uri===s||o.dependencies.has(s))&&(o.uri!==s&&n.push(o.uri),o.clearSchema()&&(r=!0),i[a]=void 0)}}return r}setSchemaContributions(t){if(t.schemas){let r=t.schemas;for(let n in r){let i=Gn(n);this.contributionSchemas[i]=this.addSchemaHandle(i,r[n])}}if(Array.isArray(t.schemaAssociations)){let r=t.schemaAssociations;for(let n of r){let i=n.uris.map(Gn),s=this.addFilePatternAssociation(n.pattern,n.folderUri,i);this.contributionAssociations.push(s)}}}addSchemaHandle(t,r){let n=new ak(this,t,r);return this.schemasById[t]=n,n}getOrAddSchemaHandle(t,r){return this.schemasById[t]||this.addSchemaHandle(t,r)}addFilePatternAssociation(t,r,n){let i=new sk(t,r,n);return this.filePatternAssociations.push(i),i}registerExternalSchema(t){let r=Gn(t.uri);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t.fileMatch&&t.fileMatch.length&&this.addFilePatternAssociation(t.fileMatch,t.folderUri,[r]),t.schema?this.addSchemaHandle(r,t.schema):this.getOrAddSchemaHandle(r)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(let t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(let t of this.contributionAssociations)this.filePatternAssociations.push(t)}getResolvedSchema(t){let r=Gn(t),n=this.schemasById[r];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(t){if(!this.requestService){let r=Zr.t("Unable to load schema from '{0}'. No schema request service available",xu(t));return this.promise.resolve(new Ns({},[Sn(r,fe.SchemaResolveError,t)]))}return this.requestService(t).then(r=>{if(!r){let a=Zr.t("Unable to load schema from '{0}': No content.",xu(t));return new Ns({},[Sn(a,fe.SchemaResolveError,t)])}let n=[];r.charCodeAt(0)===65279&&(n.push(Sn(Zr.t("Problem reading content from '{0}': UTF-8 with BOM detected, only UTF 8 is allowed.",xu(t)),fe.SchemaResolveError,t)),r=r.trimStart());let i={},s=[];return i=Gy(r,s),s.length&&n.push(Sn(Zr.t("Unable to parse content from '{0}': Parse error at offset {1}.",xu(t),s[0].offset),fe.SchemaResolveError,t)),new Ns(i,n)},r=>{let{message:n,code:i}=r;if(typeof n!="string"){let o=r.toString(),c=r.toString().split("Error: ");c.length>1&&(o=c[1]),_i(o,".")&&(o=o.substr(0,o.length-1)),n=o}let s=fe.SchemaResolveError;typeof i=="number"&&i<65536&&(s+=i);let a=Zr.t("Unable to load schema from '{0}': {1}.",xu(t),n);return new Ns({},[Sn(a,s,t)])})}resolveSchemaContent(t,r){let n=t.errors.slice(0),i=t.schema,s=i.$schema?tk(i.$schema):void 0;if(s===Wt.v3)return this.promise.resolve(new Tp({},[Sn(Zr.t("Draft-03 schemas are not supported."),fe.SchemaUnsupportedFeature)],[],s));let a=new Set,o=this.contextService,c=(k,b)=>{b=decodeURIComponent(b);let v=k;return b[0]==="/"&&(b=b.substring(1)),b.split("/").some(w=>(w=w.replace(/~1/g,"/").replace(/~0/g,"~"),v=v[w],!v)),v},l=(k,b,v)=>(b.anchors||(b.anchors=_(k)),b.anchors.get(v)),f=(k,b)=>{for(let v in b)b.hasOwnProperty(v)&&v!=="id"&&v!=="$id"&&(k[v]=b[v])},m=(k,b,v,w)=>{let T;if(w===void 0||w.length===0?T=b:w.charAt(0)==="/"?T=c(b,w):T=l(b,v,w),T)f(k,T);else{let y=Zr.t("$ref '{0}' in '{1}' can not be resolved.",w||"",v.uri);n.push(Sn(y,fe.SchemaResolveError))}},d=(k,b,v,w)=>{o&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/.*/.test(b)&&(b=o.resolveRelativePath(b,w.uri)),b=Gn(b);let T=this.getOrAddSchemaHandle(b);return T.getUnresolvedSchema().then(y=>{if(w.dependencies.add(b),y.errors.length){let A=y.errors[0],O=v?b+"#"+v:b,N=v?Zr.t("Problems loading reference '{0}': {1}",v,A.message):A.message;n.push(Sn(N,A.code,b))}return m(k,y.schema,T,v),g(k,y.schema,T)})},g=(k,b,v)=>{let w=[];return this.traverseNodes(k,T=>{let y=new Set;for(;T.$ref;){let A=T.$ref,O=A.split("#",2);if(delete T.$ref,O[0].length>0){w.push(d(T,O[0],O[1],v));return}else if(!y.has(A)){let N=O[1];m(T,b,v,N),y.add(A)}}T.$recursiveRef&&a.add("$recursiveRef"),T.$dynamicRef&&a.add("$dynamicRef")}),this.promise.all(w)},_=k=>{let b=new Map;return this.traverseNodes(k,v=>{let w=v.$id||v.id,T=zd(w)&&w.charAt(0)==="#"?w.substring(1):v.$anchor;T&&(b.has(T)?n.push(Sn(Zr.t("Duplicate anchor declaration: '{0}'",T),fe.SchemaResolveError)):b.set(T,v)),v.$recursiveAnchor&&a.add("$recursiveAnchor"),v.$dynamicAnchor&&a.add("$dynamicAnchor")}),b};return g(i,i,r).then(k=>{let b=[];return a.size&&b.push(Sn(Zr.t("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(a.keys()).join(", ")),fe.SchemaUnsupportedFeature)),new Tp(i,n,b,s)})}traverseNodes(t,r){if(!t||typeof t!="object")return Promise.resolve(null);let n=new Set,i=(...f)=>{for(let m of f)vn(m)&&c.push(m)},s=(...f)=>{for(let m of f)if(vn(m))for(let d in m){let _=m[d];vn(_)&&c.push(_)}},a=(...f)=>{for(let m of f)if(Array.isArray(m))for(let d of m)vn(d)&&c.push(d)},o=f=>{if(Array.isArray(f))for(let m of f)vn(m)&&c.push(m);else vn(f)&&c.push(f)},c=[t],l=c.pop();for(;l;)n.has(l)||(n.add(l),r(l),i(l.additionalItems,l.additionalProperties,l.not,l.contains,l.propertyNames,l.if,l.then,l.else,l.unevaluatedItems,l.unevaluatedProperties),s(l.definitions,l.$defs,l.properties,l.patternProperties,l.dependencies,l.dependentSchemas),a(l.anyOf,l.allOf,l.oneOf,l.prefixItems),o(l.items)),l=c.pop()}getSchemaFromProperty(t,r){if(r.root?.type==="object"){for(let n of r.root.properties)if(n.keyNode.value==="$schema"&&n.valueNode?.type==="string"){let i=n.valueNode.value;return this.contextService&&!/^\w[\w\d+.-]*:/.test(i)&&(i=this.contextService.resolveRelativePath(i,t)),i}}}getAssociatedSchemas(t){let r=Object.create(null),n=[],i=TL(t);for(let s of this.filePatternAssociations)if(s.matchesPattern(i))for(let a of s.getURIs())r[a]||(n.push(a),r[a]=!0);return n}getSchemaURIsForResource(t,r){let n=r&&this.getSchemaFromProperty(t,r);return n?[n]:this.getAssociatedSchemas(t)}getSchemaForResource(t,r){if(r){let s=this.getSchemaFromProperty(t,r);if(s){let a=Gn(s);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;let n=this.getAssociatedSchemas(t),i=n.length>0?this.createCombinedSchema(t,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:i},i}createCombinedSchema(t,r){if(r.length===1)return this.getOrAddSchemaHandle(r[0]);{let n="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:r.map(s=>({$ref:s}))};return this.addSchemaHandle(n,i)}}getMatchingSchemas(t,r,n){if(n){let i=n.id||"schemaservice://untitled/matchingSchemas/"+gK++;return this.addSchemaHandle(i,n).getResolvedSchema().then(a=>r.getMatchingSchemas(a.schema).filter(o=>!o.inverted))}return this.getSchemaForResource(t.uri,r).then(i=>i?r.getMatchingSchemas(i.schema).filter(s=>!s.inverted):[])}},gK=0});function xL(e,t){let r=[],n=[],i=[],s=-1,a=ar(e.getText(),!1),o=a.scan();function c(_){r.push(_),n.push(i.length)}for(;o!==17;){switch(o){case 1:case 3:{let _=e.positionAt(a.getTokenOffset()).line,k={startLine:_,endLine:_,kind:o===1?"object":"array"};i.push(k);break}case 2:case 4:{let _=o===2?"object":"array";if(i.length>0&&i[i.length-1].kind===_){let k=i.pop(),b=e.positionAt(a.getTokenOffset()).line;k&&b>k.startLine+1&&s!==k.startLine&&(k.endLine=b-1,c(k),s=k.startLine)}break}case 13:{let _=e.positionAt(a.getTokenOffset()).line,k=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&_+1<e.lineCount?a.setPosition(e.offsetAt(Me.create(_+1,0))):_<k&&(c({startLine:_,endLine:k,kind:vi.Comment}),s=_);break}case 12:{let k=e.getText().substr(a.getTokenOffset(),a.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(k){let b=e.positionAt(a.getTokenOffset()).line;if(k[1]){let v={startLine:b,endLine:b,kind:vi.Region};i.push(v)}else{let v=i.length-1;for(;v>=0&&i[v].kind!==vi.Region;)v--;if(v>=0){let w=i[v];i.length=v,b>w.startLine&&s!==w.startLine&&(w.endLine=b,c(w),s=w.startLine)}}}break}}o=a.scan()}let l=t&&t.rangeLimit;if(typeof l!="number"||r.length<=l)return r;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);let f=[];for(let _ of n)_<30&&(f[_]=(f[_]||0)+1);let m=0,d=0;for(let _=0;_<f.length;_++){let k=f[_];if(k){if(k+m>l){d=_;break}m+=k}}let g=[];for(let _=0;_<r.length;_++){let k=n[_];typeof k=="number"&&(k<d||k===d&&m++<l)&&g.push(r[_])}return g}var EL=Te(()=>{p();fn();hr()});function AL(e,t,r){function n(o){let c=e.offsetAt(o),l=r.getNodeFromOffset(c,!0),f=[];for(;l;){switch(l.type){case"string":case"object":case"array":let d=l.offset+1,g=l.offset+l.length-1;d<g&&c>=d&&c<=g&&f.push(i(d,g)),f.push(i(l.offset,l.offset+l.length));break;case"number":case"boolean":case"null":case"property":f.push(i(l.offset,l.offset+l.length));break}if(l.type==="property"||l.parent&&l.parent.type==="array"){let d=a(l.offset+l.length,5);d!==-1&&f.push(i(l.offset,d))}l=l.parent}let m;for(let d=f.length-1;d>=0;d--)m=As.create(f[d],m);return m||(m=As.create(ue.create(o,o))),m}function i(o,c){return ue.create(e.positionAt(o),e.positionAt(c))}let s=ar(e.getText(),!0);function a(o,c){return s.setPosition(o),s.scan()===c?s.getTokenOffset()+s.getTokenLength():-1}return t.map(n)}var OL=Te(()=>{p();hr();fn()});function Eu(e,t,r){let n;if(r){let s=e.offsetAt(r.start),a=e.offsetAt(r.end)-s;n={offset:s,length:a}}let i={tabSize:t?t.tabSize:4,insertSpaces:t?.insertSpaces===!0,insertFinalNewline:t?.insertFinalNewline===!0,eol:`
81
+ `,keepLines:t?.keepLines===!0};return Yy(e.getText(),n,i).map(s=>Vt.replace(ue.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),s.content))}var ok=Te(()=>{p();fn();hr()});function yK(e,t){let r=e.propertyName.toLowerCase(),n=t.propertyName.toLowerCase();return r<n?-1:r>n?1:0}function _K(e,t,r){let n=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(n<i)return 0;if(n>s)return e.length;let a=0,o=e.length-1;for(;a<=o;){let c=o+a>>1,l=r(t,e[c]);if(l>0)a=c+1;else if(l<0)o=c-1;else return c}return-a-1}var lt,Ps,NL=Te(()=>{p();(function(e){e[e.Object=0]="Object",e[e.Array=1]="Array"})(lt||(lt={}));Ps=class{constructor(t,r){this.propertyName=t??"",this.beginningLineNumber=r,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(t){if(t.parent=this,this.childrenProperties.length>0){let r=0;t.noKeyName?r=this.childrenProperties.length:r=_K(this.childrenProperties,t,yK),r<0&&(r=r*-1-1),this.childrenProperties.splice(r,0,t)}else this.childrenProperties.push(t);return t}}});function qL(e,t){let r={...t,keepLines:!1},n=Zt.applyEdits(e,Eu(e,r,void 0)),i=Zt.create("test://test.json","json",0,n),s=vK(i),a=bK(i,s),o=Eu(a,r,void 0),c=Zt.applyEdits(a,o);return[Vt.replace(ue.create(Me.create(0,0),e.positionAt(e.getText().length)),c)]}function vK(e){let t=e.getText(),r=ar(t,!1),n=new Ps,i=n,s=n,a=n,o,c=0,l=0,f,m,d=-1,g=-1,_=0,k=0,b=[],v=!1,w=!1;for(;(o=r.scan())!==17;){if(v===!0&&o!==14&&o!==15&&o!==12&&o!==13&&s.endLineNumber===void 0){let T=r.getTokenStartLine();m===2||m===4?a.endLineNumber=T-1:s.endLineNumber=T-1,_=T,v=!1}if(w===!0&&o!==14&&o!==15&&o!==12&&o!==13&&(_=r.getTokenStartLine(),w=!1),r.getTokenStartLine()!==c){for(let T=c;T<r.getTokenStartLine();T++){let y=e.getText(ue.create(Me.create(T,0),Me.create(T+1,0))).length;l=l+y}c=r.getTokenStartLine()}switch(o){case 10:{if(f===void 0||f===1||f===5&&b[b.length-1]===lt.Object){let T=new Ps(r.getTokenValue(),_);a=s,s=i.addChildProperty(T)}break}case 3:{if(n.beginningLineNumber===void 0&&(n.beginningLineNumber=r.getTokenStartLine()),b[b.length-1]===lt.Object)i=s;else if(b[b.length-1]===lt.Array){let T=new Ps(r.getTokenValue(),_);T.noKeyName=!0,a=s,s=i.addChildProperty(T),i=s}b.push(lt.Array),s.type=lt.Array,_=r.getTokenStartLine(),_++;break}case 1:{if(n.beginningLineNumber===void 0)n.beginningLineNumber=r.getTokenStartLine();else if(b[b.length-1]===lt.Array){let T=new Ps(r.getTokenValue(),_);T.noKeyName=!0,a=s,s=i.addChildProperty(T)}s.type=lt.Object,b.push(lt.Object),i=s,_=r.getTokenStartLine(),_++;break}case 4:{k=r.getTokenStartLine(),b.pop(),s.endLineNumber===void 0&&(f===2||f===4)&&(s.endLineNumber=k-1,s.lastProperty=!0,s.lineWhereToAddComma=d,s.indexWhereToAddComa=g,a=s,s=s?s.parent:void 0,i=s),n.endLineNumber=k,_=k+1;break}case 2:{k=r.getTokenStartLine(),b.pop(),f!==1&&(s.endLineNumber===void 0&&(s.endLineNumber=k-1,s.lastProperty=!0,s.lineWhereToAddComma=d,s.indexWhereToAddComa=g),a=s,s=s?s.parent:void 0,i=s),n.endLineNumber=r.getTokenStartLine(),_=k+1;break}case 5:{k=r.getTokenStartLine(),s.endLineNumber===void 0&&(b[b.length-1]===lt.Object||b[b.length-1]===lt.Array&&(f===2||f===4))&&(s.endLineNumber=k,s.commaIndex=r.getTokenOffset()-l,s.commaLine=k),(f===2||f===4)&&(a=s,s=s?s.parent:void 0,i=s),_=k+1;break}case 13:{f===5&&d===r.getTokenStartLine()&&(b[b.length-1]===lt.Array&&(m===2||m===4)||b[b.length-1]===lt.Object)&&(b[b.length-1]===lt.Array&&(m===2||m===4)||b[b.length-1]===lt.Object)&&(s.endLineNumber=void 0,v=!0),(f===1||f===3)&&d===r.getTokenStartLine()&&(w=!0);break}}o!==14&&o!==13&&o!==12&&o!==15&&(m=f,f=o,d=r.getTokenStartLine(),g=r.getTokenOffset()+r.getTokenLength()-l)}return n}function bK(e,t){if(t.childrenProperties.length===0)return e;let r=Zt.create("test://test.json","json",0,e.getText()),n=[];for(PL(n,t,t.beginningLineNumber);n.length>0;){let i=n.shift(),s=i.propertyTreeArray,a=i.beginningLineNumber;for(let o=0;o<s.length;o++){let c=s[o],l=ue.create(Me.create(c.beginningLineNumber,0),Me.create(c.endLineNumber+1,0)),f=e.getText(l),m=Zt.create("test://test.json","json",0,f);if(c.lastProperty===!0&&o!==s.length-1){let _=c.lineWhereToAddComma-c.beginningLineNumber,k=c.indexWhereToAddComa,b={range:ue.create(Me.create(_,k),Me.create(_,k)),text:","};Zt.update(m,[b],1)}else if(c.lastProperty===!1&&o===s.length-1){let _=c.commaIndex,b=c.commaLine-c.beginningLineNumber,v={range:ue.create(Me.create(b,_),Me.create(b,_+1)),text:""};Zt.update(m,[v],1)}let d=c.endLineNumber-c.beginningLineNumber+1,g={range:ue.create(Me.create(a,0),Me.create(a+d,0)),text:m.getText()};Zt.update(r,[g],1),PL(n,c,a),a=a+d}}return r}function kK(e){e.sort((t,r)=>t.propertyName.localeCompare(r.propertyName))}function PL(e,t,r){if(t.childrenProperties.length!==0)if(t.type===lt.Object){let n=1/0;for(let s of t.childrenProperties)s.beginningLineNumber<n&&(n=s.beginningLineNumber);let i=n-t.beginningLineNumber;r=r+i,kK(t.childrenProperties),e.push(new xp(r,t.childrenProperties))}else t.type===lt.Array&&LL(e,t,r)}function LL(e,t,r){for(let n of t.childrenProperties){if(n.type===lt.Object){let i=1/0;for(let a of n.childrenProperties)a.beginningLineNumber<i&&(i=a.beginningLineNumber);let s=i-n.beginningLineNumber;e.push(new xp(r+n.beginningLineNumber-t.beginningLineNumber+s,n.childrenProperties))}n.type===lt.Array&&LL(e,n,r+n.beginningLineNumber-t.beginningLineNumber)}}var xp,CL=Te(()=>{p();fn();hr();ok();NL();xp=class{constructor(t,r){this.beginningLineNumber=t,this.propertyTreeArray=r}}});function IL(e,t){let r=[];return t.visit(n=>{if(n.type==="property"&&n.keyNode.value==="$ref"&&n.valueNode?.type==="string"){let i=n.valueNode.value,s=TK(t,i);if(s){let a=e.positionAt(s.offset);r.push({target:`${e.uri}#${a.line+1},${a.character+1}`,range:SK(e,n.valueNode)})}}return!0}),Promise.resolve(r)}function SK(e,t){return ue.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function TK(e,t){let r=wK(t);return r?ck(r,e.root):null}function ck(e,t){if(!t)return null;if(e.length===0)return t;let r=e.shift();if(t&&t.type==="object"){let n=t.properties.find(i=>i.keyNode.value===r);return n?ck(e,n.valueNode):null}else if(t&&t.type==="array"&&r.match(/^(0|[1-9][0-9]*)$/)){let n=Number.parseInt(r),i=t.items[n];return i?ck(e,i):null}return null}function wK(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(xK)}function xK(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var ML=Te(()=>{p();hr()});var RL={};Ey(RL,{ClientCapabilities:()=>zb,CodeAction:()=>up,CodeActionContext:()=>cp,CodeActionKind:()=>ap,Color:()=>_u,ColorInformation:()=>Kd,ColorPresentation:()=>Qd,Command:()=>bi,CompletionItem:()=>Ya,CompletionItemKind:()=>Lt,CompletionItemTag:()=>Zd,CompletionList:()=>ep,Diagnostic:()=>dr,DiagnosticSeverity:()=>qt,DocumentHighlight:()=>np,DocumentHighlightKind:()=>rp,DocumentLink:()=>lp,DocumentSymbol:()=>sp,DocumentUri:()=>Gd,ErrorCode:()=>fe,FoldingRange:()=>Yd,FoldingRangeKind:()=>vi,Hover:()=>tp,InsertTextFormat:()=>Xe,Location:()=>Wn,MarkedString:()=>Xa,MarkupContent:()=>Es,MarkupKind:()=>bn,Position:()=>Me,Range:()=>ue,SchemaDraft:()=>Wt,SelectionRange:()=>As,SymbolInformation:()=>ip,SymbolKind:()=>pr,TextDocument:()=>Zt,TextDocumentEdit:()=>vu,TextEdit:()=>Vt,VersionedTextDocumentIdentifier:()=>Xd,WorkspaceEdit:()=>bu,getLanguageService:()=>EK,isSchemaResolveError:()=>GJ});function EK(e){let t=e.promiseConstructor||Promise,r=new wp(e.schemaRequestService,e.workspaceContext,t);r.setSchemaContributions(Sp);let n=new yp(r,e.contributions,t,e.clientCapabilities),i=new _p(r,e.contributions,t),s=new kp(r),a=new bp(r,t);return{configure:o=>{r.clearExternalSchemas(),o.schemas?.forEach(r.registerExternalSchema.bind(r)),a.configure(o)},resetSchema:o=>r.onResourceChange(o),doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:o=>nL(o,{collectComments:!0}),newJSONDocument:(o,c,l)=>rL(o,c,l),getMatchingSchemas:r.getMatchingSchemas.bind(r),doResolve:n.doResolve.bind(n),doComplete:n.doComplete.bind(n),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:xL,getSelectionRanges:AL,findDefinition:()=>Promise.resolve([]),findLinks:IL,format:(o,c,l)=>Eu(o,l,c),sort:(o,c)=>qL(o,c)}}var DL=Te(()=>{p();sL();aL();lL();mL();to();bL();wL();EL();OL();CL();ok();ML();hr()});var fk=x(Au=>{"use strict";p();Object.defineProperty(Au,"__esModule",{value:!0});Au.JSONValidator=void 0;Au.isValid=jL;var uk=(DL(),Ay(RL)),AK=qe(),lk=class e{service;schemas;static async create(t,r){if(t)return new e(await t.schemas(r.context))}constructor(t){this.schemas=(0,AK.indexBy)(r=>r.uri,t),this.service=(0,uk.getLanguageService)({schemaRequestService:this.getSchemaForURI.bind(this),workspaceContext:{resolveRelativePath:(r,n)=>new URL(r,n).toString()}}),this.service.configure({schemas:t.map(r=>({uri:r.uri,fileMatch:r.fileMatch}))})}validate=async(t,r)=>{let n=uk.TextDocument.create(t,"json",0,r);return(await this.getOffsetDiagnostics(n)).map(s=>({message:s.message,startIndex:n.offsetAt(s.range.start),endIndex:n.offsetAt(s.range.end)}))};isValid=async(t,r)=>jL(this.service,t,r);async getOffsetDiagnostics(t){let r=this.service.parseJSONDocument(t);return this.service.doValidation(t,r,{schemaValidation:"error",trailingCommas:"ignore",comments:"ignore"})}async getSchemaForURI(t){let r=this.schemas[t]?.schema;return r||`No schema for '${t}' found`}};Au.JSONValidator=lk;async function jL(e,t,r){let n=uk.TextDocument.create(t,"json",0,r),i=e.parseJSONDocument(n);return(await e.doValidation(n,i,{schemaValidation:"error",trailingCommas:"ignore",comments:"ignore"})).every(a=>a.severity!==1)}});var dk=x(Ep=>{"use strict";p();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.FileType=void 0;var FL;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(FL||(Ep.FileType=FL={}))});var Ap=x(He=>{"use strict";p();Object.defineProperty(He,"__esModule",{value:!0});He.makeGetMetafieldDefinitions=He.FETCHED_METAFIELD_CATEGORIES=He.makeGetDefaultSchemaTranslations=He.makeGetDefaultTranslations=He.makeGetDefaultSchemaLocale=He.makeGetDefaultLocale=He.makeGetDefaultSchemaLocaleFileUri=He.makeGetDefaultLocaleFileUri=He.makeFileSize=He.makeFileExists=void 0;He.recursiveReadDirectory=JL;He.isDirectory=pk;var BL=du(),VL=dk(),hk=We(),$L=Ss(),OK=G(),UL=qe(),NK=e=>async function(r){try{return await e.stat(r),!0}catch{return!1}};He.makeFileExists=NK;var PK=e=>async function(r){try{return(await e.stat(r)).size}catch{return 0}};He.makeFileSize=PK;He.makeGetDefaultLocaleFileUri=HL("default.json");He.makeGetDefaultSchemaLocaleFileUri=HL(".default.schema.json");function HL(e=".default.json"){return function(r){return n=>mk(r,n,e)}}He.makeGetDefaultLocale=WL(".default.json");He.makeGetDefaultSchemaLocale=WL(".default.schema.json");function WL(e=".default.json"){return function(r,n){return GL(()=>qK(r,n,e))}}He.makeGetDefaultTranslations=zL(".default.json");He.makeGetDefaultSchemaTranslations=zL(".default.schema.json");function zL(e=".default.json"){return function(r,n,i){return GL(()=>LK(r,n,i,e))}}async function mk(e,t,r=".default.json"){return(await e.readDirectory((0,$L.join)(t,"locales"))).find(([i])=>i.endsWith(r))?.[0]}async function qK(e,t,r){try{let n=await mk(e,t,r);return n?BL.Utils.basename(BL.URI.parse(n)).split(".")[0]:"en"}catch(n){return console.error(n),"en"}}async function LK(e,t,r,n){try{let i=CK(t,n);if(i)return i;let s=await mk(e,r,n);if(!s)return{};let a=await e.readFile(s);return(0,hk.parseJSON)(a,{})}catch(i){return console.error(i),{}}}function CK(e,t){let r=e.find(i=>i.type===OK.SourceCodeType.JSON&&i.uri.match(/locales/)&&i.uri.endsWith(t));if(!r)return;let n=(0,hk.parseJSON)(r.source);if(!(0,UL.isError)(n))return n}function GL(e){let t;return async(...r)=>(t||(t=e(...r)),t)}async function JL(e,t,r){let i=(await e.readDirectory(t)).filter(a=>!MK(a)&&(pk(a)||r(a)));return(await Promise.all(i.map(a=>pk(a)?JL(e,a[0],r):Promise.resolve([a[0]])))).flat()}function pk([e,t]){return t===VL.FileType.Directory}var IK=[".git","node_modules","dist","build","tmp","vendor"];function MK([e,t]){return t===VL.FileType.Directory&&IK.some(r=>e.endsWith(r))}He.FETCHED_METAFIELD_CATEGORIES=["article","blog","collection","company","company_location","location","market","order","page","product","variant","shop"];var RK=e=>async function(t){let r={article:[],blog:[],collection:[],company:[],company_location:[],location:[],market:[],order:[],page:[],product:[],variant:[],shop:[]};try{let n=await e.readFile((0,$L.join)(t,".shopify","metafields.json")),i=(0,hk.parseJSON)(n);return(0,UL.isError)(i)?r:He.FETCHED_METAFIELD_CATEGORIES.reduce((s,a)=>{try{s[a]=i[a].map(o=>({key:o.key,name:o.name,namespace:o.namespace,description:o.description,type:{category:o.type.category,name:o.type.name}}))}catch{}return s},r)}catch{return r}};He.makeGetMetafieldDefinitions=RK});var XL=x(Op=>{"use strict";p();Object.defineProperty(Op,"__esModule",{value:!0});Op.createDisabledChecksModule=FK;Op.findNextLinePosition=YL;var QL=G(),DK=gn(),jK=qe();function FK(){let e="@all",r=new Map;function n(a,o,c){let[l,f,m]=o.trim().match(/^(?:theme\-check\-(disable-next-line|disable|enable)) ?(.*)/)||[];(m?m.split(/,[ ]*/):[e]).forEach(g=>{let _=r.get(a.uri);if(f==="disable-next-line"&&!(0,jK.isError)(a.ast)){let k=YL(a.ast,c);k&&(_.has(g)||_.set(g,[]),_.get(g).push({from:k.start,to:k.end}))}if(f==="disable"&&(_.has(g)||_.set(g,[]),_.get(g).push({from:c.position.end})),f==="enable"){let k=_.get(g);if(k)k[k.length-1].to=c.position.start;else if(g===e)for(let b of _.values())for(let v of b)v.to||(v.to=c.position.start)}})}let i={meta:{schema:{}},create:({file:a})=>({async onCodePathStart(){r.set(a.uri,new Map)},async LiquidRawTag(o){o.name==="comment"&&n(a,o.body.value,o)},async LiquidTag(o){typeof o.markup!="string"||o.name!=="#"||n(a,o.markup,o)}})};function s(a){return[e,a.check].flatMap(c=>r.has(a.uri)?r.get(a.uri).has(c)?r.get(a.uri).get(c):[]:[]).some(c=>a.start.index>=c.from&&(!c.to||a.end.index<=c.to))}return{DisabledChecksVisitor:i,isDisabled:s}}function YL(e,t){let[r,n]=(0,DK.findCurrentNode)(e,t.position.end),i=n.at(-1),s=n.at(-2),a=KL(i,r);if(!(!a&&(i&&(a=KL(s,i)),!a)))return"blockStartPosition"in a?a.type===QL.LiquidHtmlNodeTypes.LiquidRawTag&&a.name==="doc"?a.position:a.blockStartPosition:a.position}function KL(e,t){if(!e)return;let r=[];e.type===QL.LiquidHtmlNodeTypes.LiquidTag&&Array.isArray(e.markup)?r=e.markup:"children"in e&&(r=e.children||[]);let n=r.findIndex(s=>s===t);return n===-1?void 0:r.at(n+1)}});var yk=x(gk=>{"use strict";p();Object.defineProperty(gk,"__esModule",{value:!0});gk.isIgnored=VK;var BK=Kw();function VK(e,t,r){return[...$K(r,t),...ZL(t.ignore)].map(i=>i.replace(/^\//,t.rootUri+"/").replace(/^([^\/])/,"**/$1").replace(/\/\*$/,"/**")).some(i=>(0,BK.minimatch)(e,i))}function $K(e,t){return e?ZL(t.settings[e.meta.code]?.ignore):[]}function ZL(e){return e??[]}});var tC=x(_k=>{"use strict";p();Object.defineProperty(_k,"__esModule",{value:!0});_k.visitLiquid=HK;var UK=oe();function eC(e){return!!e&&typeof e=="object"&&"type"in e}async function HK(e,t){let r=[{node:e,ancestors:[]}],n;for(;r.length>0;){let{node:i,ancestors:s}=r.pop(),a=s.concat(i);n=t[i.type],n&&await n(i,s);for(let o in i){if(!i.hasOwnProperty(o)||UK.nonTraversableProperties.has(o))continue;let c=i[o];if(Array.isArray(c))for(let l=c.length-1;l>=0;l--){let f=c[l];eC(f)&&r.push({node:f,ancestors:a})}else eC(c)&&r.push({node:c,ancestors:a})}n=t[`${i.type}:exit`],n&&await n(i,s)}}});var nC=x(vk=>{"use strict";p();Object.defineProperty(vk,"__esModule",{value:!0});vk.visitJSON=zK;function rC(e){return!!e&&typeof e=="object"&&"type"in e}var WK=new Set(["loc"]);async function zK(e,t){let r=[{node:e,ancestors:[]}],n;for(;r.length>0;){let{node:i,ancestors:s}=r.pop(),a=s.concat(i);n=t[i.type],n&&await n(i,s);for(let o in i){if(!i.hasOwnProperty(o)||WK.has(o))continue;let c=i[o];if(Array.isArray(c))for(let l=c.length-1;l>=0;l--){let f=c[l];rC(f)&&r.push({node:f,ancestors:a})}else rC(c)&&r.push({node:c,ancestors:a})}n=t[`${i.type}:exit`],n&&await n(i,s)}}});var iC=x(ro=>{"use strict";p();Object.defineProperty(ro,"__esModule",{value:!0});ro.visitJSON=ro.visitLiquid=void 0;var GK=tC();Object.defineProperty(ro,"visitLiquid",{enumerable:!0,get:function(){return GK.visitLiquid}});var JK=nC();Object.defineProperty(ro,"visitJSON",{enumerable:!0,get:function(){return JK.visitJSON}})});var sC=x(no=>{"use strict";p();Object.defineProperty(no,"__esModule",{value:!0});no.AppBlockValidTags=no.ForbiddenTag=void 0;var bk=G(),kk;(function(e){e.JavaScript="javascript",e.StyleSheet="stylesheet",e.Include="include",e.Layout="layout",e.Section="section",e.Sections="sections"})(kk||(no.ForbiddenTag=kk={}));var KK=e=>Object.values(kk).includes(e),QK=e=>`Theme app extension blocks cannot contain '${e}' tags`;no.AppBlockValidTags={meta:{code:"AppBlockValidTags",name:"App Block Valid Tags",docs:{description:"Identifies forbidden Liquid tags in theme app extension app block and app embed block code.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/app-block-valid-tags",recommended:!1},type:bk.SourceCodeType.LiquidHtml,severity:bk.Severity.ERROR,schema:{},targets:[bk.ConfigTarget.ThemeAppExtension]},create(e){let t=async r=>{if(KK(r.name)){let n=r.blockEndPosition?r.blockEndPosition.end:r.position.end,i=r.blockStartPosition.start,s=QK(r.name);return e.report({message:s,startIndex:i,endIndex:n})}};return{LiquidRawTag:t,LiquidTag:t}}}});var cC=x(Np=>{"use strict";p();Object.defineProperty(Np,"__esModule",{value:!0});Np.AssetPreload=void 0;var oC=oe(),aC=G(),Ou=Be();function YK(e){return(0,Ou.isAttr)(e,"rel")&&e.value.some(t=>t.type===oC.NodeTypes.TextNode&&t.value==="preload")}Np.AssetPreload={meta:{code:"AssetPreload",name:"Prevent Manual Preloading of Assets",docs:{description:"This check is aimed at discouraging the manual preloading of assets and encourages the use of appropriate Shopify filters.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/asset-preload",recommended:!0},type:aC.SourceCodeType.LiquidHtml,severity:aC.Severity.WARNING,schema:{},targets:[]},create(e){return{async HtmlVoidElement(t){let r=t.attributes.find(n=>(0,Ou.isValuedHtmlAttribute)(n)&&YK(n));if(t.name==="link"&&r){let i=t.attributes.filter(Ou.isValuedHtmlAttribute).find(a=>(0,Ou.isAttr)(a,"as"))?.value.find(a=>(0,Ou.isNodeOfType)(oC.NodeTypes.TextNode,a))?.value,s="";i==="style"?s="For better performance, prefer using the preload argument of the stylesheet_tag filter":i==="image"?s="For better performance, prefer using the preload argument of the image_tag filter":s="For better performance, prefer using the preload_tag filter",e.report({message:s,startIndex:t.position.start,endIndex:t.position.end})}}}}}});var lC=x(qp=>{"use strict";p();Object.defineProperty(qp,"__esModule",{value:!0});qp.AssetSizeAppBlockCSS=void 0;var XK=We(),Pp=G(),ZK=qe(),uC=Vr(),eQ={thresholdInBytes:Pp.SchemaProp.number(1e5)};qp.AssetSizeAppBlockCSS={meta:{code:"AssetSizeAppBlockCSS",name:"Asset Size App Block CSS",docs:{description:"This check is aimed at preventing large CSS bundles from being included via Theme App Extensions.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/asset-size-app-block-css",recommended:!0},type:Pp.SourceCodeType.LiquidHtml,severity:Pp.Severity.ERROR,schema:eQ,targets:[Pp.ConfigTarget.ThemeAppExtension]},create(e){return e.fileSize?{async LiquidRawTag(t){if(t.name!=="schema")return;let r=(0,XK.parseJSON)(t.body.value);if((0,ZK.isError)(r))return;let n=r.stylesheet;if(!n)return;let i=`assets/${n}`,s=e.settings.thresholdInBytes,a=t.body.position.start+t.body.value.indexOf(n),o=a+n.length;if(!await(0,uC.doesFileExist)(e,i)){e.report({message:`'${n}' does not exist.`,startIndex:a,endIndex:o});return}let[l,f]=await(0,uC.doesFileExceedThreshold)(e,i,s);l&&e.report({message:`The file size for '${n}' (${f} B) exceeds the configured threshold (${s} B)`,startIndex:a,endIndex:o})}}:{}}}});var dC=x(Cp=>{"use strict";p();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.AssetSizeAppBlockJavaScript=void 0;var tQ=We(),Lp=G(),rQ=qe(),fC=Vr(),nQ={thresholdInBytes:Lp.SchemaProp.number(1e4)};Cp.AssetSizeAppBlockJavaScript={meta:{code:"AssetSizeAppBlockJavaScript",name:"Asset Size App Block JavaScript",docs:{description:"This check is aimed at preventing large JavaScript bundles from being included via Theme App Extensions.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/asset-size-app-block-javascript",recommended:!0},type:Lp.SourceCodeType.LiquidHtml,severity:Lp.Severity.ERROR,schema:nQ,targets:[Lp.ConfigTarget.ThemeAppExtension]},create(e){return e.fileSize?{async LiquidRawTag(t){if(t.name!=="schema")return;let r=(0,tQ.parseJSON)(t.body.value);if((0,rQ.isError)(r))return;let n=r.javascript;if(!n)return;let i=`assets/${n}`,s=e.settings.thresholdInBytes,a=t.body.position.start+t.body.value.indexOf(n),o=a+n.length;if(!await(0,fC.doesFileExist)(e,i)){e.report({message:`'${n}' does not exist.`,startIndex:a,endIndex:o});return}let[l,f]=await(0,fC.doesFileExceedThreshold)(e,i,s);l&&e.report({message:`The file size for '${n}' (${f} B) exceeds the configured threshold (${s} B)`,startIndex:a,endIndex:o})}}:{}}}});var hC=x(Ip=>{"use strict";p();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.AssetSizeCSS=void 0;var so=oe(),Sk=G(),iQ=qe(),pC=Vr(),io=Be(),sQ={thresholdInBytes:Sk.SchemaProp.number(1e5)};function aQ(e){return e.type===so.NodeTypes.TextNode}function oQ(e){return e.type===so.NodeTypes.LiquidVariableOutput}function cQ(e){return typeof e!="string"&&e.type===so.NodeTypes.LiquidVariable}function uQ(e){return e.type===so.NodeTypes.String}Ip.AssetSizeCSS={meta:{code:"AssetSizeCSS",aliases:["AssetSizeCSSStylesheetTag"],name:"Prevent Large CSS bundles",docs:{description:"This check is aimed at preventing large CSS bundles for speed.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/asset-size-css",recommended:!1},type:Sk.SourceCodeType.LiquidHtml,severity:Sk.Severity.ERROR,schema:sQ,targets:[]},create(e){if(!e.fileSize)return{};let t=e.settings.thresholdInBytes;async function r(i,s){await(0,pC.hasRemoteAssetSizeExceededThreshold)(i,t)&&e.report({message:`The CSS file size exceeds the threshold of ${t} bytes`,startIndex:s.start,endIndex:s.end})}async function n(i,s){await(0,pC.hasLocalAssetSizeExceededThreshold)(e,`assets/${i}`,t)&&e.report({message:`The CSS file size exceeds the threshold of ${t} bytes`,startIndex:s.start,endIndex:s.end})}return{async HtmlVoidElement(i){if(i.name!=="link"||!i.attributes.filter(io.isValuedHtmlAttribute).find(o=>(0,io.isAttr)(o,"rel")&&(0,io.valueIncludes)(o,"stylesheet")))return;let a=i.attributes.filter(io.isValuedHtmlAttribute).find(o=>(0,io.isAttr)(o,"href"));if(a&&a.value.length===1){if(aQ(a.value[0])&&/(https?:)?\/\//.test(a.value[0].value)){let o=a.value[0].value;await r(o,a.attributePosition)}if(oQ(a.value[0])&&cQ(a.value[0].markup)&&uQ(a.value[0].markup.expression)&&a.value[0].markup.filters.length===1&&a.value[0].markup.filters[0].name==="asset_url"){let o=a.value[0].markup.expression.value;await n(o,a.attributePosition)}}},async LiquidFilter(i,s){if(i.name!=="stylesheet_tag")return;let a=(0,iQ.last)(s);if(!(!a||!(0,io.isNodeOfType)(so.NodeTypes.LiquidVariable,a))&&a.expression.type===so.NodeTypes.String){if(a.expression.value[0].length==1&&a.filters.length==1&&/(https?:)?\/\//.test(a.expression.value)){let o=a.expression.value;await r(o,a.expression.position)}if(a.expression.value[0].length==1&&a.filters.length==2&&a.filters[0].name==="asset_url"&&a.filters[1].name==="stylesheet_tag"){let o=a.expression.value;await n(o,a.position)}}}}}}});var gC=x(Mp=>{"use strict";p();Object.defineProperty(Mp,"__esModule",{value:!0});Mp.AssetSizeJavaScript=void 0;var ao=oe(),wk=G(),lQ=qe(),mC=Vr(),Tk=Be(),fQ={thresholdInBytes:wk.SchemaProp.number(1e4)};function dQ(e){return e.type===ao.NodeTypes.TextNode}function pQ(e){return e.type===ao.NodeTypes.LiquidVariableOutput}function hQ(e){return typeof e!="string"&&e.type===ao.NodeTypes.LiquidVariable}function mQ(e){return e.type===ao.NodeTypes.String}Mp.AssetSizeJavaScript={meta:{code:"AssetSizeJavaScript",name:"Prevent Large JavaScript bundles",docs:{description:"This check is aimed at preventing large JavaScript bundles for speed.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/asset-size-javascript",recommended:!1},type:wk.SourceCodeType.LiquidHtml,severity:wk.Severity.ERROR,schema:fQ,targets:[]},create(e){if(!e.fileSize)return{};let t=e.settings.thresholdInBytes;async function r(i,s){await(0,mC.hasRemoteAssetSizeExceededThreshold)(i,t)&&e.report({message:`JavaScript on every page load exceeds compressed size threshold (${t} Bytes), consider using the import on interaction pattern.`,startIndex:s.start,endIndex:s.end})}async function n(i,s){await(0,mC.hasLocalAssetSizeExceededThreshold)(e,`assets/${i}`,t)&&e.report({message:`JavaScript on every page load exceeds compressed size threshold (${t} Bytes), consider using the import on interaction pattern.`,startIndex:s.start,endIndex:s.end})}return{async HtmlRawNode(i){if(i.name!=="script")return;let s=i.attributes.filter(Tk.isValuedHtmlAttribute).find(a=>(0,Tk.isAttr)(a,"src"));if(s&&s.value.length===1){if(dQ(s.value[0])&&/(https?:)?\/\//.test(s.value[0].value)){let a=s.value[0].value;await r(a,s.attributePosition)}if(pQ(s.value[0])&&hQ(s.value[0].markup)&&mQ(s.value[0].markup.expression)&&s.value[0].markup.filters.length===1&&s.value[0].markup.filters[0].name==="asset_url"){let a=s.value[0].markup.expression.value;await n(a,s.attributePosition)}}},async LiquidFilter(i,s){if(i.name!=="script_tag")return;let a=(0,lQ.last)(s);if(!(!a||!(0,Tk.isNodeOfType)(ao.NodeTypes.LiquidVariable,a))&&a.expression.type===ao.NodeTypes.String){if(a.expression.value[0].length==1&&a.filters.length==1&&/(https?:)?\/\//.test(a.expression.value)){let o=a.expression.value;await r(o,a.expression.position)}if(a.expression.value[0].length==1&&a.filters.length==2&&a.filters[0].name==="asset_url"&&a.filters[1].name==="script_tag"){let o=a.expression.value;await n(o,a.position)}}}}}}});var bC=x(Dp=>{"use strict";p();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.BlockIdUsage=void 0;var Rp=oe(),yC=G();Dp.BlockIdUsage={meta:{code:"BlockIdUsage",name:"Do not rely on `block.id` in if/else/unless/case",docs:{description:"The ID is dynamically generated by Shopify and is subject to change. You should avoid relying on a literal value of this ID.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/block-id-usage",recommended:!0},type:yC.SourceCodeType.LiquidHtml,severity:yC.Severity.WARNING,schema:{},targets:[]},create(e){return{async Comparison(t,r){t.comparator==="=="&&t.left.type===Rp.NodeTypes.VariableLookup&&_C(t.left)&&vC(e,t.position)},async VariableLookup(t,r){let n=r.at(-1);n?.type===Rp.NodeTypes.LiquidTag&&n.name==="case"&&_C(t)&&vC(e,t.position)}}}};function _C(e){return e.type==Rp.NodeTypes.VariableLookup&&e.name==="block"&&e.lookups[0]&&e.lookups[0].type===Rp.NodeTypes.String&&e.lookups[0].value==="id"}function vC(e,t){e.report({message:"The ID is dynamically generated by Shopify and is subject to change. You should avoid relying on a literal value of this ID.",startIndex:t.start,endIndex:t.end})}});var SC=x(jp=>{"use strict";p();Object.defineProperty(jp,"__esModule",{value:!0});jp.CdnPreconnect=void 0;var kC=G(),qs=Be();jp.CdnPreconnect={meta:{code:"CdnPreconnect",name:"CDN Preconnect",docs:{description:"This check is aimed at signaling the redundant preconnect to Shopify's CDN",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/cdn-preconnect"},type:kC.SourceCodeType.LiquidHtml,severity:kC.Severity.ERROR,schema:{},targets:[]},create(e){function t(r){(0,qs.getHtmlNodeName)(r)!=="link"||!r.attributes.filter(qs.isValuedHtmlAttribute).some(s=>(0,qs.isAttr)(s,"rel")&&(0,qs.valueIncludes)(s,"preconnect"))||!r.attributes.filter(qs.isValuedHtmlAttribute).some(s=>(0,qs.isAttr)(s,"href")&&(0,qs.valueIncludes)(s,".+cdn.shopify.com.+"))||e.report({message:"Preconnecting to cdn.shopify.com is unnecessary and can lead to worse performance",startIndex:r.position.start,endIndex:r.position.end})}return{async HtmlVoidElement(r){t(r)},async HtmlSelfClosingElement(r){t(r)}}}}});var xC=x(Fp=>{"use strict";p();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.ContentForHeaderModification=void 0;var TC=oe(),wC=G(),gQ=Be();function yQ(e){return e.name==="assign"&&typeof e.markup!="string"}function _Q(e){return e.name==="capture"&&typeof e.markup!="string"}function vQ(e){return e.name==="echo"&&typeof e.markup!="string"}Fp.ContentForHeaderModification={meta:{code:"ContentForHeaderModification",name:"Do not depend on the content of content_for_header",docs:{description:"Do not rely on the content of content_for_header as it might change in the future, which could cause your Liquid code behavior to change.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/content-for-header-modification",recommended:!0},type:wC.SourceCodeType.LiquidHtml,severity:wC.Severity.ERROR,schema:{},targets:[]},create(e){function t(r,n){(0,gQ.isNodeOfType)(TC.NodeTypes.VariableLookup,r)&&r.name==="content_for_header"&&e.report({message:"Do not rely on the content of `content_for_header`",startIndex:n.start,endIndex:n.end})}return{async LiquidTag(r){if(yQ(r))t(r.markup.value.expression,r.position);else if(vQ(r))t(r.markup.expression,r.position);else if(_Q(r)&&r.children)for(let n of r.children)n.type===TC.NodeTypes.LiquidVariableOutput&&typeof n.markup!="string"&&t(n.markup.expression,n.position)},async LiquidVariableOutput(r){typeof r.markup!="string"&&r.markup.filters.length&&t(r.markup.expression,r.position)}}}}});var AC=x(Bp=>{"use strict";p();Object.defineProperty(Bp,"__esModule",{value:!0});Bp.DeprecateBgsizes=void 0;var EC=G(),Nu=Be();Bp.DeprecateBgsizes={meta:{code:"DeprecateBgsizes",name:"Deprecate Bgsizes",docs:{description:"This check is aimed at discouraging the use of the lazySizes bgset plugin.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecate-bgsizes"},type:EC.SourceCodeType.LiquidHtml,severity:EC.Severity.WARNING,schema:{},targets:[]},create(e){return{async HtmlElement(t){let r=t.attributes.filter(Nu.isValuedHtmlAttribute).find(i=>(0,Nu.isAttr)(i,"class")&&(0,Nu.valueIncludes)(i,"lazyload"));if(r){let i=r;e.report({message:'Use the native loading="lazy" attribute instead of lazysizes',startIndex:i.attributePosition.start,endIndex:i.attributePosition.end})}let n=t.attributes.find(i=>(0,Nu.isValuedHtmlAttribute)(i)&&(0,Nu.isAttr)(i,"data-bgset"));n&&e.report({message:"Use the CSS imageset attribute instead of data-bgset",startIndex:n.position.start,endIndex:n.position.end})}}}}});var NC=x(Vp=>{"use strict";p();Object.defineProperty(Vp,"__esModule",{value:!0});Vp.DeprecateLazysizes=void 0;var OC=G(),Tn=Be();function bQ(e){return(0,Tn.isAttr)(e,"data-srcset")||(0,Tn.isAttr)(e,"data-sizes")}Vp.DeprecateLazysizes={meta:{code:"DeprecateLazysizes",name:"Deprecate Lazysizes",docs:{description:"This check is aimed at discouraging the use of the lazysizes JavaScript library",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecate-lazysizes"},type:OC.SourceCodeType.LiquidHtml,severity:OC.Severity.WARNING,schema:{},targets:[]},create(e){function t(r){if((0,Tn.getHtmlNodeName)(r)!=="img")return;let n=r.attributes.filter(Tn.isHtmlAttribute),i=n.some(c=>(0,Tn.isAttr)(c,"src")),s=n.some(c=>(0,Tn.isAttr)(c,"loading"));i&&s||!r.attributes.filter(Tn.isValuedHtmlAttribute).some(c=>(0,Tn.isAttr)(c,"class")&&(0,Tn.valueIncludes)(c,"lazyload"))||!r.attributes.filter(Tn.isValuedHtmlAttribute).some(bQ)||e.report({message:'Use the native loading="lazy" attribute instead of lazysizes',startIndex:r.position.start,endIndex:r.position.end})}return{async HtmlVoidElement(r){t(r)},async HtmlSelfClosingElement(r){t(r)}}}}});var IC=x(co=>{"use strict";p();Object.defineProperty(co,"__esModule",{value:!0});co.fixHexToRgba=kQ;co.suggestImgTagFix=SQ;co.suggestImgUrlFix=TQ;co.suggestImageUrlFix=wQ;var zp=oe(),Gp=Be(),PC=5760,qC={pico:16,icon:32,thumb:50,small:100,compact:160,medium:240,large:480,grande:600,original:1024};function kQ(e){if(e.args.length>1)return;let{start:t,end:r}=Jp(e),n=oo(e,0),i;return n?i=` color_to_rgb | color_modify: 'alpha', ${n}`:i=" color_to_rgb",s=>s.replace(t,r,i)}function SQ(e){let t="Replace 'img_tag' with 'image_tag'.",r=oo(e,0),n=oo(e,1),i=oo(e,2),{width:s,height:a}=Ek(i,{width:-1,height:-1}),{start:o,end:c}=Jp(e),l=Ak({width:s,height:a}),f={width:s,height:a,alt:Hp(r),class:Hp(n)},m=Up("image_url",l),d=Up("image_tag",f);return[{message:t,fix:g=>{let _=`${m} |${d}`;g.replace(o,c,_)}}]}function TQ(e){let t="Replace 'img_url' with 'image_url'.",r=$p(e,"crop"),n=$p(e,"format"),i=$p(e,"scale"),s=oo(e,0),a=e.args.at(0);if(xk(i?.value)||xk(a))return;let{width:o,height:c}=Ak(xQ(e,Ek(s))),{start:l,end:f}=Jp(e),m={width:o,height:c};return Wp(r?.value)&&(m.crop=Hp(r.value.value)),Wp(n?.value)&&(m.format=Hp(n.value.value)),xk(n?.value)&&(m.format=n.value.name),[{message:t,fix:d=>{let g=Up("image_url",m);d.replace(l,f,g)}}]}function wQ(e,t){let r=`Replace '${e}' with 'image_url'.`,n=oo(t,0),{width:i,height:s}=Ak(Ek(n)),{start:a,end:o}=Jp(t);return[{message:r,fix:c=>{let l=Up("image_url",{width:i,height:s});c.replace(a,o,l)}}]}function Ek(e,t={width:100,height:100}){if(!e)return{...t};if(e in qC){let i=qC[e];return{width:i,height:i}}let[r,n]=e.split("x").map(i=>parseInt(i));return LC({width:r,height:n})}function xQ(e,t){let r=parseInt(EQ(e,"scale")||"0")||1;return LC({width:t.width*r,height:t.height*r})}function LC(e){return{width:Math.min(e.width,PC),height:Math.min(e.height,PC)}}function Ak(e){let{width:t,height:r}=e;return(!r||r===-1)&&(!t||t===-1)&&(t=100),{width:t,height:r}}function oo(e,t){let r=e.args.at(t);if(CC(r)||Wp(r))return r.value}function EQ(e,t){let n=$p(e,t)?.value;if(CC(n)||Wp(n))return n.value}function $p(e,t){return e.args.find(n=>(0,Gp.isNodeOfType)(zp.NodeTypes.NamedArgument,n)&&n.name===t)}function Up(e,t){let r=Object.entries(t).filter(([n,i])=>i&&i!==-1).map(([n,i])=>`${n}: ${i}`).join(", ");return r?` ${e}: ${r}`:` ${e}`}function Jp(e){let t=e.position,r=e.source.slice(t.start).indexOf("|");return{start:t.start+r+1,end:t.end}}function Hp(e){return e?`'${e}'`:null}function xk(e){return(0,Gp.isNodeOfType)(zp.NodeTypes.VariableLookup,e)}function Wp(e){return(0,Gp.isNodeOfType)(zp.NodeTypes.String,e)}function CC(e){return(0,Gp.isNodeOfType)(zp.NodeTypes.Number,e)}});var RC=x(Qp=>{"use strict";p();Object.defineProperty(Qp,"__esModule",{value:!0});Qp.DeprecatedFilter=void 0;var MC=G(),Kp=IC();Qp.DeprecatedFilter={meta:{code:"DeprecatedFilter",aliases:["DeprecatedFilters"],name:"Deprecated Filter",docs:{description:"Discourages using deprecated filters in themes.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-filter",recommended:!0},type:MC.SourceCodeType.LiquidHtml,severity:MC.Severity.WARNING,schema:{},targets:[]},create(e){return e.themeDocset?{LiquidFilter:async t=>{let r=await e.themeDocset.filters(),n=r.find(l=>l.deprecated&&l.name===t.name);if(!n)return;let i=PQ(n),s=r.find(l=>l.name===i),a=NQ(n,s),o=AQ(t),c=OQ(t);e.report({message:a,suggest:o,fix:c,startIndex:t.position.start+1,endIndex:t.position.end})}}:{}}};function AQ(e){let t=e.name;switch(t){case"img_tag":return(0,Kp.suggestImgTagFix)(e);case"img_url":return(0,Kp.suggestImgUrlFix)(e);case"article_img_url":case"collection_img_url":case"product_img_url":return(0,Kp.suggestImageUrlFix)(t,e);case"currency_selector":return}}function OQ(e){if(e.name==="hex_to_rgba")return(0,Kp.fixHexToRgba)(e)}function NQ(e,t){return t?`Deprecated filter '${e.name}', consider using '${t.name}'.`:`Deprecated filter '${e.name}'.`}function PQ(e){return e.deprecation_reason?.match(/replaced by \[`(.+?)`\]/)?.[1]}});var Xp=x(Yp=>{"use strict";p();Object.defineProperty(Yp,"__esModule",{value:!0});Yp.DEPRECATED_FONT_HANDLES=void 0;Yp.DEPRECATED_FONT_HANDLES=new Set(["agmena_i3","agmena_i4","agmena_i6","agmena_i7","agmena_n3","agmena_n4","agmena_n6","agmena_n7","akko_i2","akko_i3","akko_i4","akko_i5","akko_i7","akko_i9","akko_n2","akko_n3","akko_n4","akko_n5","akko_n7","akko_n9","alfie_n4","americana_i4","americana_n4","americana_n7","americana_n8","antique_olive_i4","antique_olive_n3","antique_olive_n4","antique_olive_n7","antique_olive_n9","armata_n4","avenir_next_i1","avenir_next_i2","avenir_next_i3","avenir_next_i4","avenir_next_i5","avenir_next_i6","avenir_next_i7","avenir_next_i8","avenir_next_n1","avenir_next_n2","avenir_next_n3","avenir_next_n4","avenir_next_n5","avenir_next_n6","avenir_next_n7","avenir_next_n8","avenir_next_rounded_i4","avenir_next_rounded_i5","avenir_next_rounded_i6","avenir_next_rounded_i7","avenir_next_rounded_n4","avenir_next_rounded_n5","avenir_next_rounded_n6","avenir_next_rounded_n7","azbuka_i3","azbuka_i4","azbuka_i5","azbuka_i6","azbuka_i7","azbuka_n2","azbuka_n3","azbuka_n4","azbuka_n5","azbuka_n6","azbuka_n7","azbuka_n8","azbuka_n9","basic_commercial_i3","basic_commercial_i4","basic_commercial_i7","basic_commercial_i8","basic_commercial_n3","basic_commercial_n4","basic_commercial_n7","basic_commercial_n8","basic_commercial_soft_rounded_n4","basic_commercial_soft_rounded_n7","basic_commercial_soft_rounded_n9","baskerville_no_2_i4","baskerville_no_2_i7","baskerville_no_2_n4","baskerville_no_2_n7","bauer_bodoni_i4","bauer_bodoni_i7","bauer_bodoni_i9","bauer_bodoni_n4","bauer_bodoni_n7","bauer_bodoni_n9","beefcakes_i4","beefcakes_n4","bembo_book_i4","bembo_book_i7","bembo_book_n4","bembo_book_n7","bernhard_modern_i4","bernhard_modern_i7","bernhard_modern_n4","bernhard_modern_n7","bio_rhyme_n2","bio_rhyme_n3","bio_rhyme_n4","bio_rhyme_n5","bio_rhyme_n6","bio_rhyme_n7","bio_rhyme_n8","bodoni_poster_i9","bodoni_poster_n9","burlingame_i1","burlingame_i2","burlingame_i3","burlingame_i4","burlingame_i5","burlingame_i6","burlingame_i7","burlingame_i8","burlingame_i9","burlingame_n1","burlingame_n2","burlingame_n3","burlingame_n4","burlingame_n5","burlingame_n6","burlingame_n7","burlingame_n8","burlingame_n9","cachet_i1","cachet_i2","cachet_i3","cachet_i4","cachet_i5","cachet_i6","cachet_i7","cachet_i8","cachet_n1","cachet_n2","cachet_n3","cachet_n4","cachet_n5","cachet_n6","cachet_n7","cachet_n8","cardamon_i4","cardamon_i5","cardamon_i6","cardamon_i7","cardamon_n4","cardamon_n5","cardamon_n6","cardamon_n7","carter_sans_i4","carter_sans_i5","carter_sans_i6","carter_sans_i7","carter_sans_n4","carter_sans_n5","carter_sans_n6","carter_sans_n7","caslon_bold_i4","caslon_bold_n4","caslon_old_face_i4","caslon_old_face_n4","caslon_old_face_n7","centaur_i4","centaur_i7","centaur_n4","centaur_n7","century_gothic_i4","century_gothic_i7","century_gothic_n4","century_gothic_n7","chong_modern_i3","chong_modern_i4","chong_modern_i7","chong_modern_n3","chong_modern_n4","chong_modern_n7","claire_news_n3","claire_news_n7","cooper_bt_i2","cooper_bt_i5","cooper_bt_i7","cooper_bt_i9","cooper_bt_n2","cooper_bt_n5","cooper_bt_n7","cooper_bt_n9","daytona_i2","daytona_i3","daytona_i4","daytona_i6","daytona_i7","daytona_n2","daytona_n3","daytona_n4","daytona_n6","daytona_n7","din_neuzeit_grotesk_n3","din_neuzeit_grotesk_n7","din_next_i2","din_next_i3","din_next_i4","din_next_i5","din_next_i7","din_next_i8","din_next_i9","din_next_n2","din_next_n3","din_next_n4","din_next_n5","din_next_n7","din_next_n8","din_next_n9","din_next_slab_i2","din_next_slab_i3","din_next_slab_i4","din_next_slab_i5","din_next_slab_i7","din_next_slab_i8","din_next_slab_i9","din_next_slab_n2","din_next_slab_n3","din_next_slab_n4","din_next_slab_n5","din_next_slab_n7","din_next_slab_n8","din_next_slab_n9","electra_i4","electra_i7","electra_n4","electra_n7","eurostile_next_i2","eurostile_next_i3","eurostile_next_i4","eurostile_next_i6","eurostile_next_i7","eurostile_next_n2","eurostile_next_n3","eurostile_next_n4","eurostile_next_n6","eurostile_next_n7","fette_gotisch_n4","ff_meta_i1","ff_meta_i2","ff_meta_i3","ff_meta_i4","ff_meta_i5","ff_meta_i6","ff_meta_i7","ff_meta_i9","ff_meta_n1","ff_meta_n2","ff_meta_n3","ff_meta_n4","ff_meta_n5","ff_meta_n6","ff_meta_n7","ff_meta_n9","ff_meta_serif_i3","ff_meta_serif_i4","ff_meta_serif_i5","ff_meta_serif_i7","ff_meta_serif_i8","ff_meta_serif_i9","ff_meta_serif_n3","ff_meta_serif_n4","ff_meta_serif_n5","ff_meta_serif_n7","ff_meta_serif_n8","ff_meta_serif_n9","ff_tisa_i2","ff_tisa_i3","ff_tisa_i4","ff_tisa_i5","ff_tisa_i7","ff_tisa_i8","ff_tisa_i9","ff_tisa_n2","ff_tisa_n3","ff_tisa_n4","ff_tisa_n5","ff_tisa_n7","ff_tisa_n8","ff_tisa_n9","ff_tisa_sans_i2","ff_tisa_sans_i3","ff_tisa_sans_i4","ff_tisa_sans_i5","ff_tisa_sans_i7","ff_tisa_sans_i8","ff_tisa_sans_i9","ff_tisa_sans_n2","ff_tisa_sans_n3","ff_tisa_sans_n4","ff_tisa_sans_n5","ff_tisa_sans_n7","ff_tisa_sans_n8","ff_tisa_sans_n9","ff_unit_i2","ff_unit_i3","ff_unit_i4","ff_unit_i5","ff_unit_i7","ff_unit_i8","ff_unit_i9","ff_unit_n2","ff_unit_n3","ff_unit_n4","ff_unit_n5","ff_unit_n7","ff_unit_n8","ff_unit_n9","ff_unit_rounded_i3","ff_unit_rounded_i4","ff_unit_rounded_i5","ff_unit_rounded_i7","ff_unit_rounded_i8","ff_unit_rounded_i9","ff_unit_rounded_n3","ff_unit_rounded_n4","ff_unit_rounded_n5","ff_unit_rounded_n7","ff_unit_rounded_n8","ff_unit_rounded_n9","ff_unit_slab_i2","ff_unit_slab_i3","ff_unit_slab_i4","ff_unit_slab_i5","ff_unit_slab_i7","ff_unit_slab_i8","ff_unit_slab_i9","ff_unit_slab_n2","ff_unit_slab_n3","ff_unit_slab_n4","ff_unit_slab_n5","ff_unit_slab_n7","ff_unit_slab_n8","ff_unit_slab_n9","friz_quadrata_i4","friz_quadrata_i7","friz_quadrata_n4","friz_quadrata_n7","frutiger_serif_i3","frutiger_serif_i4","frutiger_serif_i5","frutiger_serif_i7","frutiger_serif_i8","frutiger_serif_n3","frutiger_serif_n4","frutiger_serif_n5","frutiger_serif_n7","frutiger_serif_n8","fs_kim_i4","fs_kim_i5","fs_kim_i7","fs_kim_i8","fs_kim_i9","fs_kim_n4","fs_kim_n5","fs_kim_n7","fs_kim_n8","fs_kim_n9","fs_koopman_i1","fs_koopman_i3","fs_koopman_i4","fs_koopman_i5","fs_koopman_i7","fs_koopman_i8","fs_koopman_i9","fs_koopman_n1","fs_koopman_n3","fs_koopman_n4","fs_koopman_n5","fs_koopman_n7","fs_koopman_n8","fs_koopman_n9","fs_siena_i1","fs_siena_i2","fs_siena_i3","fs_siena_i4","fs_siena_i5","fs_siena_i6","fs_siena_i7","fs_siena_n1","fs_siena_n2","fs_siena_n3","fs_siena_n4","fs_siena_n5","fs_siena_n6","fs_siena_n7","futura_black_n4","futura_n3","futura_n4","futura_n5","futura_n6","futura_n7","futura_n8","futura_n9","futura_o3","futura_o4","futura_o5","futura_o6","futura_o7","futura_o8","geometric_415_i4","geometric_415_i6","geometric_415_i7","geometric_415_n4","geometric_415_n6","geometric_415_n7","georgia_pro_i3","georgia_pro_i4","georgia_pro_i6","georgia_pro_i7","georgia_pro_i9","georgia_pro_n3","georgia_pro_n4","georgia_pro_n6","georgia_pro_n7","georgia_pro_n9","gill_sans_nova_i1","gill_sans_nova_i2","gill_sans_nova_i3","gill_sans_nova_i4","gill_sans_nova_i5","gill_sans_nova_i6","gill_sans_nova_i7","gill_sans_nova_n1","gill_sans_nova_n2","gill_sans_nova_n3","gill_sans_nova_n4","gill_sans_nova_n5","gill_sans_nova_n6","gill_sans_nova_n7","gill_sans_nova_n8","gill_sans_nova_n9","glegoo_n4","glegoo_n7","goudy_old_style_i4","goudy_old_style_i7","goudy_old_style_n4","goudy_old_style_n7","goudy_old_style_n8","harmonia_sans_i3","harmonia_sans_i4","harmonia_sans_i6","harmonia_sans_i7","harmonia_sans_i9","harmonia_sans_n3","harmonia_sans_n4","harmonia_sans_n6","harmonia_sans_n7","harmonia_sans_n9","helvetica_n3","helvetica_n4","helvetica_n7","helvetica_n9","helvetica_o3","helvetica_o4","helvetica_o7","helvetica_o9","hope_sans_i1","hope_sans_i2","hope_sans_i3","hope_sans_i4","hope_sans_i6","hope_sans_i7","hope_sans_n1","hope_sans_n2","hope_sans_n3","hope_sans_n4","hope_sans_n6","hope_sans_n7","humanist_521_i2","humanist_521_i4","humanist_521_i7","humanist_521_n2","humanist_521_n4","humanist_521_n7","humanist_521_n8","humanist_521_n9","itc_avant_garde_gothic_n2","itc_avant_garde_gothic_n4","itc_avant_garde_gothic_n5","itc_avant_garde_gothic_n6","itc_avant_garde_gothic_n7","itc_avant_garde_gothic_o2","itc_avant_garde_gothic_o4","itc_avant_garde_gothic_o5","itc_avant_garde_gothic_o6","itc_avant_garde_gothic_o7","itc_benguiat_i4","itc_benguiat_i5","itc_benguiat_i7","itc_benguiat_n4","itc_benguiat_n5","itc_benguiat_n7","itc_berkeley_old_style_i4","itc_berkeley_old_style_i5","itc_berkeley_old_style_i7","itc_berkeley_old_style_i9","itc_berkeley_old_style_n4","itc_berkeley_old_style_n5","itc_berkeley_old_style_n7","itc_berkeley_old_style_n9","itc_bodoni_seventytwo_i4","itc_bodoni_seventytwo_i7","itc_bodoni_seventytwo_n4","itc_bodoni_seventytwo_n7","itc_bodoni_twelve_i4","itc_bodoni_twelve_i7","itc_bodoni_twelve_n4","itc_bodoni_twelve_n7","itc_caslon_no_224_i4","itc_caslon_no_224_i5","itc_caslon_no_224_i7","itc_caslon_no_224_i9","itc_caslon_no_224_n4","itc_caslon_no_224_n5","itc_caslon_no_224_n7","itc_caslon_no_224_n9","itc_charter_i4","itc_charter_i7","itc_charter_i9","itc_charter_n4","itc_charter_n7","itc_charter_n9","itc_cheltenham_i3","itc_cheltenham_i4","itc_cheltenham_i7","itc_cheltenham_i9","itc_cheltenham_n3","itc_cheltenham_n4","itc_cheltenham_n7","itc_cheltenham_n9","itc_clearface_i4","itc_clearface_i7","itc_clearface_i8","itc_clearface_i9","itc_clearface_n4","itc_clearface_n7","itc_clearface_n8","itc_clearface_n9","itc_conduit_i2","itc_conduit_i3","itc_conduit_i4","itc_conduit_i5","itc_conduit_i7","itc_conduit_i8","itc_conduit_i9","itc_conduit_n2","itc_conduit_n3","itc_conduit_n4","itc_conduit_n5","itc_conduit_n7","itc_conduit_n8","itc_conduit_n9","itc_esprit_i4","itc_esprit_i5","itc_esprit_i7","itc_esprit_i9","itc_esprit_n4","itc_esprit_n5","itc_esprit_n7","itc_esprit_n9","itc_founders_caslon_i4","itc_founders_caslon_n4","itc_franklin_gothic_i4","itc_franklin_gothic_i5","itc_franklin_gothic_i7","itc_franklin_gothic_i9","itc_franklin_gothic_n4","itc_franklin_gothic_n5","itc_franklin_gothic_n7","itc_franklin_gothic_n9","itc_galliard_i4","itc_galliard_i7","itc_galliard_i8","itc_galliard_i9","itc_galliard_n4","itc_galliard_n7","itc_galliard_n8","itc_galliard_n9","itc_gamma_i4","itc_gamma_i5","itc_gamma_i7","itc_gamma_i8","itc_gamma_n4","itc_gamma_n5","itc_gamma_n7","itc_gamma_n8","itc_goudy_sans_i4","itc_goudy_sans_i5","itc_goudy_sans_i7","itc_goudy_sans_i9","itc_goudy_sans_n4","itc_goudy_sans_n5","itc_goudy_sans_n7","itc_goudy_sans_n9","itc_johnston_i3","itc_johnston_i5","itc_johnston_i7","itc_johnston_n3","itc_johnston_n5","itc_johnston_n7","itc_mendoza_roman_i4","itc_mendoza_roman_i5","itc_mendoza_roman_i7","itc_mendoza_roman_n4","itc_mendoza_roman_n5","itc_mendoza_roman_n7","itc_modern_no_216_i3","itc_modern_no_216_i5","itc_modern_no_216_i7","itc_modern_no_216_i8","itc_modern_no_216_n3","itc_modern_no_216_n5","itc_modern_no_216_n7","itc_modern_no_216_n8","itc_new_baskerville_i4","itc_new_baskerville_i6","itc_new_baskerville_i7","itc_new_baskerville_i9","itc_new_baskerville_n4","itc_new_baskerville_n6","itc_new_baskerville_n7","itc_new_baskerville_n9","itc_new_esprit_i4","itc_new_esprit_i5","itc_new_esprit_i7","itc_new_esprit_i8","itc_new_esprit_n4","itc_new_esprit_n5","itc_new_esprit_n7","itc_new_esprit_n8","itc_new_veljovic_i3","itc_new_veljovic_i4","itc_new_veljovic_i5","itc_new_veljovic_i7","itc_new_veljovic_i9","itc_new_veljovic_n3","itc_new_veljovic_n4","itc_new_veljovic_n5","itc_new_veljovic_n7","itc_new_veljovic_n9","itc_novarese_i4","itc_novarese_i5","itc_novarese_i7","itc_novarese_n4","itc_novarese_n5","itc_novarese_n7","itc_novarese_n9","itc_officina_sans_i4","itc_officina_sans_i5","itc_officina_sans_i7","itc_officina_sans_i8","itc_officina_sans_i9","itc_officina_sans_n4","itc_officina_sans_n5","itc_officina_sans_n7","itc_officina_sans_n8","itc_officina_sans_n9","itc_officina_serif_i4","itc_officina_serif_i5","itc_officina_serif_i7","itc_officina_serif_i8","itc_officina_serif_i9","itc_officina_serif_n4","itc_officina_serif_n5","itc_officina_serif_n7","itc_officina_serif_n8","itc_officina_serif_n9","itc_stepp_i3","itc_stepp_i5","itc_stepp_i7","itc_stepp_i9","itc_stepp_n3","itc_stepp_n4","itc_stepp_n7","itc_stepp_n9","itc_stone_humanist_i5","itc_stone_humanist_i6","itc_stone_humanist_i7","itc_stone_humanist_n5","itc_stone_humanist_n6","itc_stone_humanist_n7","itc_stone_informal_i4","itc_stone_informal_i6","itc_stone_informal_i7","itc_stone_informal_n4","itc_stone_informal_n6","itc_stone_informal_n7","itc_stone_sans_ii_i3","itc_stone_sans_ii_i4","itc_stone_sans_ii_i5","itc_stone_sans_ii_i6","itc_stone_sans_ii_i7","itc_stone_sans_ii_i8","itc_stone_sans_ii_n3","itc_stone_sans_ii_n4","itc_stone_sans_ii_n5","itc_stone_sans_ii_n6","itc_stone_sans_ii_n7","itc_stone_sans_ii_n8","itc_stone_serif_i4","itc_stone_serif_i6","itc_stone_serif_i7","itc_stone_serif_n4","itc_stone_serif_n6","itc_stone_serif_n7","itc_tapioca_n5","joanna_nova_i1","joanna_nova_i2","joanna_nova_i3","joanna_nova_i4","joanna_nova_i5","joanna_nova_i6","joanna_nova_i7","joanna_nova_i8","joanna_nova_i9","joanna_nova_n1","joanna_nova_n2","joanna_nova_n3","joanna_nova_n4","joanna_nova_n5","joanna_nova_n6","joanna_nova_n7","joanna_nova_n8","joanna_nova_n9","joanna_sans_nova_i1","joanna_sans_nova_i2","joanna_sans_nova_i3","joanna_sans_nova_i4","joanna_sans_nova_i5","joanna_sans_nova_i7","joanna_sans_nova_i8","joanna_sans_nova_i9","joanna_sans_nova_n1","joanna_sans_nova_n2","joanna_sans_nova_n3","joanna_sans_nova_n4","joanna_sans_nova_n5","joanna_sans_nova_n7","joanna_sans_nova_n8","joanna_sans_nova_n9","kairos_i1","kairos_i2","kairos_i3","kairos_i4","kairos_i5","kairos_i7","kairos_i8","kairos_i9","kairos_n1","kairos_n2","kairos_n3","kairos_n4","kairos_n5","kairos_n7","kairos_n8","kairos_n9","laurentian_i4","laurentian_i6","laurentian_n4","laurentian_n6","laurentian_n7","libelle_n4","linotype_didot_i4","linotype_didot_i7","linotype_didot_n4","linotype_didot_n7","linotype_gianotten_i3","linotype_gianotten_i4","linotype_gianotten_i5","linotype_gianotten_i7","linotype_gianotten_i8","linotype_gianotten_n3","linotype_gianotten_n4","linotype_gianotten_n5","linotype_gianotten_n7","linotype_gianotten_n8","linotype_gianotten_n9","linotype_really_i5","linotype_really_i6","linotype_really_n5","linotype_really_n6","linotype_syntax_serif_i3","linotype_syntax_serif_i4","linotype_syntax_serif_i5","linotype_syntax_serif_i7","linotype_syntax_serif_i8","linotype_syntax_serif_i9","linotype_syntax_serif_n3","linotype_syntax_serif_n4","linotype_syntax_serif_n5","linotype_syntax_serif_n7","linotype_syntax_serif_n8","linotype_syntax_serif_n9","lobster_n4","lucia_n4","luthersche_fraktur_n4","madera_i1","madera_i2","madera_i3","madera_i4","madera_i5","madera_i6","madera_i7","madera_i8","madera_n1","madera_n2","madera_n3","madera_n4","madera_n5","madera_n6","madera_n7","madera_n8","malabar_i4","malabar_i7","malabar_i9","malabar_n4","malabar_n7","malabar_n9","mariposa_sans_i4","mariposa_sans_n4","mariposa_sans_n5","mariposa_sans_n7","mariposa_sans_n9","megrim_n4","melior_i4","melior_i7","melior_n4","melior_n7","memphis_i3","memphis_i5","memphis_i7","memphis_n3","memphis_n5","memphis_n7","memphis_n8","memphis_soft_rounded_n5","memphis_soft_rounded_n7","memphis_soft_rounded_n8","mentor_sans_i3","mentor_sans_i4","mentor_sans_i7","mentor_sans_i9","mentor_sans_n3","mentor_sans_n4","mentor_sans_n7","mentor_sans_n9","metro_nova_i2","metro_nova_i3","metro_nova_i4","metro_nova_i5","metro_nova_i7","metro_nova_i8","metro_nova_i9","metro_nova_n2","metro_nova_n3","metro_nova_n4","metro_nova_n5","metro_nova_n7","metro_nova_n8","metro_nova_n9","modern_no_20_i4","modern_no_20_n4","monotype_baskerville_i4","monotype_baskerville_i6","monotype_baskerville_i7","monotype_baskerville_n4","monotype_baskerville_n6","monotype_baskerville_n7","monotype_bodoni_i4","monotype_bodoni_i5","monotype_bodoni_i7","monotype_bodoni_i8","monotype_bodoni_i9","monotype_bodoni_n4","monotype_bodoni_n5","monotype_bodoni_n7","monotype_bodoni_n8","monotype_bodoni_n9","monotype_century_old_style_i5","monotype_century_old_style_i7","monotype_century_old_style_n5","monotype_century_old_style_n7","monotype_goudy_i4","monotype_goudy_i7","monotype_goudy_modern_i4","monotype_goudy_modern_i7","monotype_goudy_modern_n4","monotype_goudy_modern_n7","monotype_goudy_n4","monotype_goudy_n7","monotype_goudy_n8","monotype_italian_old_style_i4","monotype_italian_old_style_i7","monotype_italian_old_style_n4","monotype_italian_old_style_n7","monotype_new_clarendon_n5","monotype_new_clarendon_n7","monotype_news_gothic_i4","monotype_news_gothic_i7","monotype_news_gothic_n4","monotype_news_gothic_n7","monotype_sabon_i4","monotype_sabon_i6","monotype_sabon_n4","monotype_sabon_n6","mouse_memoirs_n4","mundo_sans_i2","mundo_sans_i3","mundo_sans_i4","mundo_sans_i5","mundo_sans_i7","mundo_sans_i8","mundo_sans_i9","mundo_sans_n2","mundo_sans_n3","mundo_sans_n4","mundo_sans_n5","mundo_sans_n7","mundo_sans_n8","mundo_sans_n9","neo_sans_i3","neo_sans_i4","neo_sans_i5","neo_sans_i7","neo_sans_i8","neo_sans_i9","neo_sans_n3","neo_sans_n4","neo_sans_n5","neo_sans_n7","neo_sans_n8","neo_sans_n9","neue_aachen_i1","neue_aachen_i2","neue_aachen_i3","neue_aachen_i4","neue_aachen_i5","neue_aachen_i6","neue_aachen_i7","neue_aachen_i8","neue_aachen_i9","neue_aachen_n1","neue_aachen_n2","neue_aachen_n3","neue_aachen_n4","neue_aachen_n5","neue_aachen_n6","neue_aachen_n7","neue_aachen_n8","neue_aachen_n9","neue_frutiger_1450_i3","neue_frutiger_1450_i4","neue_frutiger_1450_i6","neue_frutiger_1450_i7","neue_frutiger_1450_n3","neue_frutiger_1450_n4","neue_frutiger_1450_n6","neue_frutiger_1450_n7","neue_haas_unica_i1","neue_haas_unica_i2","neue_haas_unica_i3","neue_haas_unica_i4","neue_haas_unica_i5","neue_haas_unica_i6","neue_haas_unica_i7","neue_haas_unica_i8","neue_haas_unica_i9","neue_haas_unica_n1","neue_haas_unica_n2","neue_haas_unica_n3","neue_haas_unica_n4","neue_haas_unica_n5","neue_haas_unica_n6","neue_haas_unica_n7","neue_haas_unica_n8","neue_haas_unica_n9","neue_plak_i2","neue_plak_i3","neue_plak_i4","neue_plak_i6","neue_plak_i7","neue_plak_i9","neue_plak_n2","neue_plak_n3","neue_plak_n4","neue_plak_n6","neue_plak_n7","neue_plak_n9","neue_swift_i3","neue_swift_i4","neue_swift_i5","neue_swift_i6","neue_swift_i7","neue_swift_n3","neue_swift_n4","neue_swift_n5","neue_swift_n6","neue_swift_n7","neuzeit_office_i4","neuzeit_office_i7","neuzeit_office_n4","neuzeit_office_n7","neuzeit_office_soft_rounded_n4","neuzeit_office_soft_rounded_n7","neuzeit_s_n4","neuzeit_s_n9","new_century_schoolbook_i4","new_century_schoolbook_i7","new_century_schoolbook_n4","new_century_schoolbook_n7","news_702_i4","news_702_i7","news_702_n4","news_702_n7","news_705_i4","news_705_i7","news_705_n4","news_705_n7","news_cycle_n4","news_cycle_n7","news_gothic_no_2_i2","news_gothic_no_2_i3","news_gothic_no_2_i4","news_gothic_no_2_i5","news_gothic_no_2_i7","news_gothic_no_2_i8","news_gothic_no_2_n2","news_gothic_no_2_n3","news_gothic_no_2_n4","news_gothic_no_2_n5","news_gothic_no_2_n7","news_gothic_no_2_n8","news_plantin_i4","news_plantin_i7","news_plantin_n4","news_plantin_n7","noticia_text_i4","noticia_text_i7","noticia_text_n4","noticia_text_n7","optima_nova_i3","optima_nova_i4","optima_nova_i5","optima_nova_i6","optima_nova_i7","optima_nova_i8","optima_nova_i9","optima_nova_n3","optima_nova_n4","optima_nova_n5","optima_nova_n6","optima_nova_n7","optima_nova_n8","optima_nova_n9","oxygen_n3","oxygen_n4","oxygen_n7","parma_i4","parma_n4","parma_n7","perpetua_i4","perpetua_i7","perpetua_n4","perpetua_n7","plantin_i3","plantin_i4","plantin_i6","plantin_i7","plantin_n3","plantin_n4","plantin_n6","plantin_n7","pmn_caecilia_i3","pmn_caecilia_i4","pmn_caecilia_i7","pmn_caecilia_i9","pmn_caecilia_n3","pmn_caecilia_n4","pmn_caecilia_n7","pmn_caecilia_n9","prata_n4","pt_mono_n4","pt_sans_narrow_n4","pt_sans_narrow_n7","quattrocento_n4","quattrocento_n7","quire_sans_i1","quire_sans_i2","quire_sans_i3","quire_sans_i4","quire_sans_i5","quire_sans_i6","quire_sans_i7","quire_sans_i8","quire_sans_i9","quire_sans_n1","quire_sans_n2","quire_sans_n3","quire_sans_n4","quire_sans_n5","quire_sans_n6","quire_sans_n7","quire_sans_n8","quire_sans_n9","really_no_2_i3","really_no_2_i4","really_no_2_i5","really_no_2_i6","really_no_2_i7","really_no_2_i8","really_no_2_i9","really_no_2_n3","really_no_2_n4","really_no_2_n5","really_no_2_n6","really_no_2_n7","really_no_2_n8","really_no_2_n9","righteous_n4","rockwell_i4","rockwell_i7","rockwell_n4","rockwell_n7","rockwell_n8","sabon_next_i4","sabon_next_i6","sabon_next_i7","sabon_next_i8","sabon_next_i9","sabon_next_n4","sabon_next_n6","sabon_next_n7","sabon_next_n8","sabon_next_n9","sackers_square_gothic_n4","sagrantino_n4","scene_i3","scene_i4","scene_i5","scene_i7","scene_i8","scene_i9","scene_n3","scene_n4","scene_n5","scene_n7","scene_n8","scene_n9","scherzo_i4","scherzo_i6","scherzo_i7","scherzo_n4","scherzo_n6","scherzo_n7","slabo_13px_n4","slate_i2","slate_i3","slate_i4","slate_i5","slate_i7","slate_i9","slate_n2","slate_n3","slate_n4","slate_n5","slate_n7","slate_n9","soho_gothic_i2","soho_gothic_i3","soho_gothic_i4","soho_gothic_i5","soho_gothic_i7","soho_gothic_i8","soho_gothic_i9","soho_gothic_n2","soho_gothic_n3","soho_gothic_n4","soho_gothic_n5","soho_gothic_n7","soho_gothic_n8","soho_gothic_n9","soho_i1","soho_i2","soho_i3","soho_i4","soho_i5","soho_i6","soho_i7","soho_i8","soho_i9","soho_n1","soho_n2","soho_n3","soho_n4","soho_n5","soho_n6","soho_n7","soho_n8","soho_n9","stempel_schneidler_i3","stempel_schneidler_i4","stempel_schneidler_i5","stempel_schneidler_i7","stempel_schneidler_i8","stempel_schneidler_n3","stempel_schneidler_n4","stempel_schneidler_n5","stempel_schneidler_n7","stempel_schneidler_n8","swiss_721_i1","swiss_721_i2","swiss_721_i4","swiss_721_i5","swiss_721_i7","swiss_721_i8","swiss_721_i9","swiss_721_n1","swiss_721_n2","swiss_721_n4","swiss_721_n5","swiss_721_n7","swiss_721_n8","swiss_721_n9","swiss_721_rounded_n7","swiss_721_rounded_n9","tiemann_n3","tiemann_n4","tinos_i4","tinos_i7","tinos_n4","tinos_n7","trade_gothic_n3","trade_gothic_n4","trade_gothic_n7","trade_gothic_next_i3","trade_gothic_next_i4","trade_gothic_next_i7","trade_gothic_next_i8","trade_gothic_next_n3","trade_gothic_next_n4","trade_gothic_next_n7","trade_gothic_next_n8","trade_gothic_o3","trade_gothic_o4","trade_gothic_o7","twentieth_century_i3","twentieth_century_i5","twentieth_century_i7","twentieth_century_i8","twentieth_century_i9","twentieth_century_n3","twentieth_century_n4","twentieth_century_n5","twentieth_century_n6","twentieth_century_n7","twentieth_century_n8","twentieth_century_n9","univers_next_i1","univers_next_i2","univers_next_i3","univers_next_i4","univers_next_i5","univers_next_i6","univers_next_i7","univers_next_i8","univers_next_i9","univers_next_n1","univers_next_n2","univers_next_n3","univers_next_n4","univers_next_n5","univers_next_n6","univers_next_n7","univers_next_n8","univers_next_n9","univers_next_typewriter_i4","univers_next_typewriter_i7","univers_next_typewriter_n4","univers_next_typewriter_n7","unna_i4","unna_i7","unna_n4","unna_n7","vala_n4","varela_n4","varela_round_n4","verdana_pro_i3","verdana_pro_i4","verdana_pro_i6","verdana_pro_i7","verdana_pro_i9","verdana_pro_n3","verdana_pro_n4","verdana_pro_n6","verdana_pro_n7","verdana_pro_n9","vidaloka_n4","volkhov_i4","vollkorn_i5","volkhov_i7","vollkorn_i8","volkhov_n4","volkhov_n7","vollkorn_i4","vollkorn_i6","vollkorn_i7","vollkorn_i9","vollkorn_n4","vollkorn_n5","vollkorn_n6","vollkorn_n7","vollkorn_n8","vollkorn_n9","waza_n4","wola_n4","ysobel_i3","ysobel_i4","ysobel_i6","ysobel_i7","ysobel_n3","ysobel_n4","ysobel_n6","ysobel_n7","zurich_extended_n4","zurich_extended_n7","zurich_extended_n8","zurich_extended_n9","zurich_i3","zurich_i4","zurich_i7","zurich_i8","zurich_n3","zurich_n4","zurich_n7","zurich_n8","zurich_n9"])});var $C=x(eh=>{"use strict";p();Object.defineProperty(eh,"__esModule",{value:!0});eh.DeprecatedFontsOnSectionsAndBlocks=void 0;var qQ=ct(),DC=G(),Zp=We(),Ok=Xp();eh.DeprecatedFontsOnSectionsAndBlocks={meta:{code:"DeprecatedFontsOnSectionsAndBlocks",name:"Check for deprecated fonts in section and block schema settings values",docs:{description:"Warns on deprecated fonts in section and block schema settings values.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks"},type:DC.SourceCodeType.LiquidHtml,severity:DC.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=await(0,qQ.getSchema)(e),{validSchema:n,ast:i}=r??{};if(!n||n instanceof Error||!i||i instanceof Error)return;let s=t.blockStartPosition.end;LQ(n,s,i,e),CQ(n,s,i,e),await IQ(n,s,i,e),"default"in n&&await MQ(n,s,i,e)}}}};function LQ(e,t,r,n){let i=e.settings;i&&jC(i,t,r,["settings"],n)}function jC(e,t,r,n,i){e.forEach((s,a)=>{if(s.type==="font_picker"&&s.default&&Ok.DEPRECATED_FONT_HANDLES.has(s.default)){let o=n.concat([String(a),"default"]);Nk(i,t,r,o,`setting '${s.id}' is using deprecated font '${s.default}'`)}})}function CQ(e,t,r,n){let i=e.blocks;i&&i.forEach((s,a)=>{"settings"in s&&s.settings&&jC(s.settings,t,r,["blocks",String(a),"settings"],n)})}async function IQ(e,t,r,n){let i=e.presets;if(i)for(let[s,a]of i.entries()){let o=["presets",String(s)];await FC(a.settings??{},"blocks"in a?a.blocks:void 0,e,t,r,o,n)}}async function FC(e,t,r,n,i,s,a){e&&typeof e=="object"&&Object.entries(e).forEach(([o,c])=>{if(VC(r.settings??[],o)&&Ok.DEPRECATED_FONT_HANDLES.has(c)){let l=s.concat(["settings",o]);Nk(a,n,i,l,`setting '${o}' is using deprecated font '${c}'`)}}),t&&await BC(t,r,n,i,a,s)}async function BC(e,t,r,n,i,s){let a=Array.isArray(e)?e.entries():Object.entries(e);for(let[o,c]of a){let l=s.concat(["blocks",String(o)]),f=null;if(t.blocks?.forEach(m=>{m.type===c.type&&"name"in m&&(f=m)}),!f){let m=await i.getBlockSchema?.(c.type);if(!m||m instanceof Error||(f=m.validSchema,!f||f instanceof Error))continue}for(let[m,d]of Object.entries(c.settings??{}))d&&Ok.DEPRECATED_FONT_HANDLES.has(d)&&VC(f.settings??[],m)&&Nk(i,r,n,l.concat(["settings",m]),`setting '${m}' is using deprecated font '${d}'`);"blocks"in c&&c.blocks&&await BC(c.blocks,t,r,n,i,l)}}async function MQ(e,t,r,n){let i=e.default;if(!i||typeof i!="object")return;let s=["default"];await FC(i.settings??{},"blocks"in i?i.blocks:void 0,e,t,r,s,n)}function VC(e,t){return e.some(r=>r.id===t&&r.type==="font_picker")}function Nk(e,t,r,n,i,s=!0){let a=(0,Zp.nodeAtPath)(r,n),o=s?t+(0,Zp.getLocStart)(a):t+(0,Zp.getLocEnd)(a)-1,c=t+(0,Zp.getLocEnd)(a);e.report({message:i,startIndex:o,endIndex:c})}});var WC=x(th=>{"use strict";p();Object.defineProperty(th,"__esModule",{value:!0});th.DeprecatedFontsOnSettingsData=void 0;var UC=G(),HC=We(),RQ=Xp();th.DeprecatedFontsOnSettingsData={meta:{code:"DeprecatedFontsOnSettingsData",name:"Check for deprecated fonts in settings_data settings values",docs:{description:"Warns on deprecated fonts in settings_data settings values.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-data"},type:UC.SourceCodeType.JSON,severity:UC.Severity.WARNING,schema:{},targets:[]},create(e){return e.toRelativePath(e.file.uri)!=="config/settings_data.json"?{}:{async Property(r){r.value.type==="Literal"&&typeof r.value.value=="string"&&RQ.DEPRECATED_FONT_HANDLES.has(r.value.value)&&e.report({message:`The font "${r.value.value}" is deprecated`,startIndex:(0,HC.getLocStart)(r.value),endIndex:(0,HC.getLocEnd)(r.value)})}}}}});var GC=x(nh=>{"use strict";p();Object.defineProperty(nh,"__esModule",{value:!0});nh.DeprecatedFontsOnSettingsSchema=void 0;var rh=G(),zC=We(),DQ=Xp();nh.DeprecatedFontsOnSettingsSchema={meta:{code:"DeprecatedFontsOnSettingsSchema",name:"Check for deprecated fonts in settings_schema settings values",docs:{description:"Warns on deprecated fonts in settings_schema settings values.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-schema"},type:rh.SourceCodeType.JSON,severity:rh.Severity.WARNING,schema:{},targets:[]},create(e){return e.toRelativePath(e.file.uri)!=="config/settings_schema.json"?{}:{async Property(r){if(r.key.value==="settings"&&(0,rh.isArrayNode)(r.value)){for(let n of r.value.children)if((0,rh.isObjectNode)(n)){let i=n.children.find(s=>s.key.value==="type");if(i&&i.value.type==="Literal"&&i.value.value==="font_picker"){let s=n.children.find(a=>a.key.value==="default");if(s&&s.value.type==="Literal"&&typeof s.value.value=="string"){let a=s.value.value;DQ.DEPRECATED_FONT_HANDLES.has(a)&&e.report({message:`The font "${a}" is deprecated`,startIndex:(0,zC.getLocStart)(s.value),endIndex:(0,zC.getLocEnd)(s.value)})}}}}}}}}});var KC=x(ih=>{"use strict";p();Object.defineProperty(ih,"__esModule",{value:!0});ih.DeprecatedTag=void 0;var JC=G();ih.DeprecatedTag={meta:{code:"DeprecatedTag",aliases:["DeprecatedTags"],name:"Deprecated Tag",docs:{description:"This check is aimed at eliminating the use of deprecated tags.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-tag",recommended:!0},type:JC.SourceCodeType.LiquidHtml,severity:JC.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name==="include"){let n=t.source.substring(t.position.start).indexOf("include"),i=n+7,s=t.position.start+n,a=t.position.start+i;e.report({message:"Use the 'render' tag instead of 'include'",startIndex:s,endIndex:a,suggest:[{message:"Replace 'include' with 'render'",fix:o=>{o.replace(s,a,"render")}}]})}}}}}});var Ls=x(qr=>{"use strict";p();Object.defineProperty(qr,"__esModule",{value:!0});qr.SupportedDocTagTypes=qr.BasicParamTypes=void 0;qr.getDefaultValueForType=VQ;qr.inferArgumentType=$Q;qr.isTypeCompatible=UQ;qr.filePathSupportsLiquidDoc=HQ;qr.getValidParamTypes=WQ;qr.parseParamType=zQ;var Pu=oe(),jQ=qe(),FQ=ct(),BQ=ct(),zt;(function(e){e.String="string",e.Number="number",e.Boolean="boolean",e.Object="object"})(zt||(qr.BasicParamTypes=zt={}));var QC;(function(e){e.Param="param",e.Example="example",e.Description="description"})(QC||(qr.SupportedDocTagTypes=QC={}));function VQ(e){switch(e?.toLowerCase()){case zt.String:return"''";case zt.Number:return"0";case zt.Boolean:return"false";case zt.Object:default:return""}}function $Q(e){switch(e.type){case Pu.NodeTypes.String:return zt.String;case Pu.NodeTypes.Number:return zt.Number;case Pu.NodeTypes.LiquidLiteral:return zt.Boolean;case Pu.NodeTypes.Range:case Pu.NodeTypes.VariableLookup:return zt.Object;default:return(0,jQ.assertNever)(e)}}function UQ(e,t){let r=e.toLowerCase();return r===zt.Boolean?!0:r===t}function HQ(e){return(0,FQ.isSnippet)(e)||(0,BQ.isBlock)(e)}function WQ(e){let t=new Map([[zt.String,void 0],[zt.Number,void 0],[zt.Boolean,void 0],[zt.Object,"A generic type used to represent any liquid object or primitive value."]]);return e.forEach(r=>t.set(r.name,r.summary||r.description)),t}function zQ(e,t){let r=t.match(/^([a-z_]+)(\[\])?$/);if(!r)return;let n=r[1],i=!!r[2];if(e.has(n))return[n,i]}});var wn=x(mr=>{"use strict";p();Object.defineProperty(mr,"__esModule",{value:!0});mr.reportUnknownArguments=GQ;mr.reportMissingArguments=JQ;mr.reportDuplicateArguments=KQ;mr.findTypeMismatchParams=QQ;mr.reportTypeMismatches=YQ;mr.generateTypeMismatchSuggestions=XC;mr.getBlockName=ZQ;mr.getSnippetName=eY;mr.getLiquidDocParams=tY;mr.makeRemoveArgumentCorrector=Pk;mr.makeAddArgumentCorrector=ZC;var Si=oe(),uo=Ls(),YC=Be();function GQ(e,t,r,n){let i="";t.type===Si.NodeTypes.ContentForMarkup?i=` in content_for tag for static block '${n}'`:t.type===Si.NodeTypes.RenderMarkup&&(i=` in render tag for snippet '${n}'`);for(let s of r)e.report({message:`Unknown argument '${s.name}'${i}.`,startIndex:s.position.start,endIndex:s.position.end,suggest:[{message:`Remove '${s.name}'`,fix:Pk(t,s)}]})}function JQ(e,t,r,n){let i="";t.type===Si.NodeTypes.ContentForMarkup?i=` in content_for tag for static block '${n}'`:t.type===Si.NodeTypes.RenderMarkup&&(i=` in render tag for snippet '${n}'`);for(let s of r)e.report({message:`Missing required argument '${s.name}'${i}.`,startIndex:t.position.start,endIndex:t.position.end,suggest:[{message:`Add required argument '${s.name}'`,fix:ZC(t,s)}]})}function KQ(e,t,r,n){let i="";t.type===Si.NodeTypes.ContentForMarkup?i=` in content_for tag for static block '${n}'`:t.type===Si.NodeTypes.RenderMarkup&&(i=` in render tag for snippet '${n}'`);for(let s of r)e.report({message:`Duplicate argument '${s.name}'${i}.`,startIndex:s.position.start,endIndex:s.position.end,suggest:[{message:`Remove duplicate argument '${s.name}'`,fix:Pk(t,s)}]})}function QQ(e,t){let r=[];for(let n of t){if(n.value.type===Si.NodeTypes.VariableLookup)continue;let i=e.get(n.name);if(i&&i.type){let s=i.type.toLowerCase();if(!Object.keys(uo.BasicParamTypes).map(o=>o.toLowerCase()).includes(s))continue;(0,uo.isTypeCompatible)(s,(0,uo.inferArgumentType)(n.value))||r.push(n)}}return r}function YQ(e,t,r){for(let n of t){let i=r.get(n.name);if(!i||!i.type)continue;let s=i.type.toLowerCase(),a=(0,uo.inferArgumentType)(n.value),o=XC(s,n.value.position.start,n.value.position.end);e.report({message:`Type mismatch for argument '${n.name}': expected ${s}, got ${a}`,startIndex:n.value.position.start,endIndex:n.value.position.end,suggest:o})}}function XC(e,t,r){let n=(0,uo.getDefaultValueForType)(e),i=[];return n!==""&&i.push({message:`Replace with default value '${n}' for ${e}`,fix:s=>s.replace(t,r,n)}),i.push({message:"Remove value",fix:s=>s.remove(t,r)}),i}function XQ(e,t){return e.args.length==1||t.position.start==e.args[e.args.length-1].position.start}function ZQ(e){if(e.contentForType.value!=="block")return;let t=e.args.find(r=>r.name=="type")?.value;if(!(!t||!(0,YC.isLiquidString)(t)))return t.value}function eY(e){if((0,YC.isLiquidString)(e.snippet))return e.snippet.value}async function tY(e,t){let r=e.getDocDefinition&&await e.getDocDefinition(t);if(r?.liquidDoc?.parameters)return new Map(r.liquidDoc.parameters.map(n=>[n.name,n]))}function Pk(e,t){return r=>{let n=eI(e),i=n.slice(e.position.start,t.position.start),a=n.slice(t.position.end,e.position.end).match(/^\s*,\s*/);if(a){if(XQ(e,t)){let l=i.match(/,\s*$/),f=l?t.position.start-l[0].length:t.position.start;return r.remove(f,t.position.end+a[0].replace(/\s+$/,"").length)}return r.remove(t.position.start,t.position.end+a[0].length)}let o=i.match(/,\s*$/),c=o?t.position.start-o[0].length:t.position.start;return r.remove(c,t.position.end)}}function ZC(e,t){return r=>{let n=eI(e),i=`, ${t.name}: ${(0,uo.getDefaultValueForType)(t.type)}`;if(e.args.length==0)return r.insert(e.position.end-1,i);let s=e.args[e.args.length-1],o=n.substring(s.position.end,e.position.end).match(/\s*,\s*/);return o?r.replace(s.position.end,s.position.end+o[0].length,`${i} `):r.insert(s.position.end,i)}}function eI(e){return e.source?e.source:e.args.length>0?e.args[0].source:e.type===Si.NodeTypes.ContentForMarkup?e.contentForType.source:e.snippet.source}});var nI=x(sh=>{"use strict";p();Object.defineProperty(sh,"__esModule",{value:!0});sh.DuplicateRenderSnippetArguments=void 0;var tI=G(),rI=wn();sh.DuplicateRenderSnippetArguments={meta:{code:"DuplicateRenderSnippetArguments",name:"Duplicate Render Snippet Arguments",aliases:["DuplicateRenderSnippetParams"],docs:{description:"This check ensures that no duplicate argument names are provided when rendering a snippet.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/duplicate-render-snippet-arguments"},type:tI.SourceCodeType.LiquidHtml,severity:tI.Severity.WARNING,schema:{},targets:[]},create(e){return{async RenderMarkup(t){let r=(0,rI.getSnippetName)(t);if(!r)return;let n=new Set,i=[];t.alias?.value&&n.add(t.alias.value);for(let s of t.args)n.has(s.name)&&i.push(s),n.add(s.name);(0,rI.reportDuplicateArguments)(e,t,i,r)}}}}});var aI=x(ah=>{"use strict";p();Object.defineProperty(ah,"__esModule",{value:!0});ah.DuplicateContentForArguments=void 0;var iI=G(),sI=wn();ah.DuplicateContentForArguments={meta:{code:"DuplicateContentForArguments",name:"Duplicate ContentFor Arguments",docs:{description:"This check ensures that no duplicate argument names are provided when rendering a static block.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/duplicate-content-for-arguments"},type:iI.SourceCodeType.LiquidHtml,severity:iI.Severity.WARNING,schema:{},targets:[]},create(e){return{async ContentForMarkup(t){let r=(0,sI.getBlockName)(t);if(!r)return;let n=new Set,i=[];for(let s of t.args)n.has(s.name)&&i.push(s),n.add(s.name);(0,sI.reportDuplicateArguments)(e,t,i,r)}}}}});var cI=x(oh=>{"use strict";p();Object.defineProperty(oh,"__esModule",{value:!0});oh.EmptyBlockContent=void 0;var oI=G(),rY=ct();oh.EmptyBlockContent={meta:{code:"EmptyBlockContent",name:"Prevent empty block content",docs:{description:"This check exists to warn you when the blocks array at the root level of the schema is empty.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/empty-block-content"},type:oI.SourceCodeType.LiquidHtml,severity:oI.Severity.WARNING,schema:{},targets:[]},create(e){let t=!1,r={start:0,end:0};return{async LiquidTag(n){if(n.name!=="content_for")return;let i=n.markup;typeof i=="object"&&i.contentForType.value==="blocks"&&(r.start=n.blockStartPosition.start,r.end=n.blockStartPosition.end,t=!0)},async onCodePathEnd(){let n=await(0,rY.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error)return;let a=i.blocks;t&&!a?e.report({message:`The 'content_for "blocks"' tag is present, but the blocks array is not defined.`,startIndex:r.start,endIndex:r.end}):t&&a&&a.length===0&&e.report({message:`The 'content_for "blocks"' tag is present, but the blocks array is empty.`,startIndex:r.start,endIndex:r.end})}}}}});var dI=x(uh=>{"use strict";p();Object.defineProperty(uh,"__esModule",{value:!0});uh.HardcodedRoutes=void 0;var nY=oe(),uI=G(),ch=Be(),qk={"/":"root_url","/account":"account_url","/account/addresses":"account_addresses_url","/account/login":"account_login_url","/account/logout":"account_logout_url","/account/recover":"account_recover_url","/account/register":"account_register_url","/cart":"cart_url","/cart/add":"cart_add_url","/cart/change":"cart_change_url","/cart/clear":"cart_clear_url","/cart/update":"cart_update_url","/collections":"collections_url","/collections/all":"all_products_collection_url","/customer_authentication/login":"storefront_login_url","/recommendations/products":"product_recommendations_url","/search":"search_url","/search/suggest":"predictive_search_url"},fI=Object.keys(qk).reverse();uh.HardcodedRoutes={meta:{code:"HardcodedRoutes",name:"Hardcoded Routes",docs:{description:"This check encourages using the routes object instead of hardcoding URLs.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/hardcoded-routes"},type:uI.SourceCodeType.LiquidHtml,severity:uI.Severity.WARNING,schema:{},targets:[]},create(e){return{async HtmlElement(t){let r=t.attributes.filter(ch.isValuedHtmlAttribute).find(n=>((0,ch.isAttr)(n,"action")||(0,ch.isAttr)(n,"href"))&&lI(n));if(r){let n=r,i=lI(n),s=qk[i],a=n.attributePosition.start,o=a+i.length;e.report({message:`Use routes object {{ routes.${s} }} instead of hardcoding ${i}`,startIndex:a,endIndex:o})}},async LiquidFilter(t){if(t.name!=="link_to")return;let r=t.args[0],n=r.type==="String"?r.value:"",i=fI.find(s=>s==="/"?s===n:n.startsWith(s));if(i){let s=qk[i],a=r.position.start+1;e.report({message:`Use routes object {{ routes.${s} }} instead of hardcoding ${i}`,startIndex:a,endIndex:a+i.length})}}}}};function lI(e){if(!(0,ch.isNodeOfType)(nY.NodeTypes.TextNode,e.value[0]))return;let t=e.value[0].value;return fI.find(r=>r==="/"?r===t&&e.value.length===1:t.startsWith(r))}});var hI=x(fh=>{"use strict";p();Object.defineProperty(fh,"__esModule",{value:!0});fh.ImgWidthAndHeight=void 0;var pI=G(),lh=Be();fh.ImgWidthAndHeight={meta:{code:"ImgWidthAndHeight",name:"Width and height attributes on image tags",docs:{description:"This check is aimed at eliminating content layout shift in themes by enforcing the use of the width and height attributes on img tags.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/img-width-and-height"},type:pI.SourceCodeType.LiquidHtml,severity:pI.Severity.ERROR,schema:{},targets:[]},create(e){return{async HtmlVoidElement(t){if(t.name==="img"){let r=t.attributes.find(s=>(0,lh.isValuedHtmlAttribute)(s)&&(0,lh.isAttr)(s,"width")),n=t.attributes.find(s=>(0,lh.isValuedHtmlAttribute)(s)&&(0,lh.isAttr)(s,"height")),i=[];if(r||i.push("width"),n||i.push("height"),i.length>0){let s=i.length===1?"attribute":"attributes";e.report({message:`Missing ${i.join(" and ")} ${s} on img tag`,startIndex:t.position.start,endIndex:t.position.end})}}}}}}});var _I=x(dh=>{"use strict";p();Object.defineProperty(dh,"__esModule",{value:!0});dh.isPropertyNode=sY;dh.getAllBlocks=yI;var Lk=We(),iY=Vr();function sY(e){return typeof e=="object"&&e!==null}function gI(e){return e.filter(t=>t==="blocks").length>1}function mI(e,t,r,n){n.report({message:e,startIndex:t+(0,Lk.getLocStart)(r),endIndex:t+(0,Lk.getLocEnd)(r)})}async function aY(e,t){if(e==="@theme"||e==="@app")return!0;let r=`blocks/${e}.liquid`;return await(0,iY.doesFileExist)(t,r)}async function oY(e,t,r){let n=[];if(!e)return n;let i=gI(t)?await r.getBlockSchema?.(e):await r.getSectionSchema?.(e);if(!i||i instanceof Error)return n;let{validSchema:s}=i;return!s||s instanceof Error||Array.isArray(s.blocks)&&s.blocks.forEach(a=>{!("name"in a)&&a.type!=="@app"&&n.push(a.type)}),n}async function cY(e,t,r,n,i,s,a){let o=await oY(n,i,a);if(o.length===0)return;if(!await aY(e,a))mI(`Theme block 'blocks/${e}.liquid' does not exist.`,s,r,a);else{if(t)return;{let l=e.startsWith("_"),f=o.includes("@theme"),m=o.includes(e);if(l?m:m||f)return;{let d=gI(i)?"blocks":"sections";mI(`Block type '${e}' is not allowed in '${d}/${n}.liquid'.`,s,r,a)}}}}async function yI(e,t,r,n,i,s){await Promise.all(Object.entries(n).map(async([a,o])=>{if(o.type){let c=i.concat(a,"type"),l=(0,Lk.nodeAtPath)(e,c);l&&await cY(o.type,o.static,l,r,i,t,s)}"blocks"in o&&await yI(e,t,o.type,o.blocks,i.concat(a,"blocks"),s)}))}});var bI=x(ph=>{"use strict";p();Object.defineProperty(ph,"__esModule",{value:!0});ph.JSONMissingBlock=void 0;var uY=ct(),vI=G(),Ck=_I();ph.JSONMissingBlock={meta:{code:"JSONMissingBlock",name:"Check for missing blocks types in JSON templates",docs:{description:"This check ensures that JSON templates contain valid block types.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-missing-block"},type:vI.SourceCodeType.JSON,severity:vI.Severity.ERROR,schema:{},targets:[]},create(e){return e.toRelativePath(e.file.uri).startsWith("templates/")?{async onCodePathEnd(){let r=await(0,uY.getSchemaFromJSON)(e),{ast:n}=r??{};if(!n||n instanceof Error||!r)return;let i=r.parsed.sections;i&&await Promise.all(Object.entries(i).map(async([s,a])=>{(0,Ck.isPropertyNode)(a)&&"blocks"in a&&(0,Ck.isPropertyNode)(a.blocks)&&"type"in a&&await(0,Ck.getAllBlocks)(n,0,a.type,a.blocks,["sections",s,"blocks"],e)}))}}:{}}}});var SI=x(hh=>{"use strict";p();Object.defineProperty(hh,"__esModule",{value:!0});hh.JSONMissingSection=void 0;var Ik=We(),lY=ct(),kI=G(),fY=Vr(),dY=["apps","_blocks"];hh.JSONMissingSection={meta:{code:"JSONMissingSection",name:"Check for missing section files in JSON templates and section groups",docs:{description:"This check ensures that section types in JSON templates and section groups refer to existing section files.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-missing-section"},type:kI.SourceCodeType.JSON,severity:kI.Severity.ERROR,schema:{},targets:[]},create(e){let t=e.toRelativePath(e.file.uri),r=t.startsWith("templates/"),n=t.startsWith("sections/");return!r&&!n?{}:{async onCodePathEnd(){let i=await(0,lY.getSchemaFromJSON)(e),{ast:s}=i??{};if(!s||s instanceof Error)return;let a=(0,Ik.nodeAtPath)(s,["sections"]);!a||a.type!=="Object"||await Promise.all(a.children.map(async o=>{let c=o.value;if(c.type!=="Object")return;let l=c.children.find(d=>d.key.value==="type")?.value;if(!l||l.type!=="Literal")return;let f=l.value;typeof f!="string"||dY.includes(f)||await(0,fY.doesFileExist)(e,`sections/${f}.liquid`)||e.report({message:`Section type '${f}' does not refer to an existing section file`,startIndex:(0,Ik.getLocStart)(l),endIndex:(0,Ik.getLocEnd)(l)})}))}}}}});var wI=x(mh=>{"use strict";p();Object.defineProperty(mh,"__esModule",{value:!0});mh.JSONSyntaxError=void 0;var pY=wb(),TI=G(),hY=qe();function mY(e){return("rawMessage"in e?e.rawMessage:e.message).replace(/\s+at \d+:\d+/,"")}mh.JSONSyntaxError={meta:{code:"JSONSyntaxError",name:"Enforce valid JSON",docs:{description:"This check exists to prevent invalid JSON files in themes.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-syntax-error"},type:TI.SourceCodeType.JSON,severity:TI.Severity.ERROR,schema:{},targets:[],deprecated:!0},create(e){if(e.validateJSON)return{};let t=e.file.ast;return(0,hY.isError)(t)?{async onCodePathStart(r){if(r.ast instanceof pY.JSONCParseErrors)for(let n of r.ast.errors)e.report({message:gY(n.error),startIndex:n.offset,endIndex:n.offset+n.length});else e.report({message:mY(t),startIndex:0,endIndex:r.source.length})}}:{}}};function gY(e){switch(e){case 1:return"Invalid symbol";case 2:return"Invalid number format";case 3:return"Property name expected";case 4:return"Expecting a value";case 5:return"Expecting a colon after a property name (:)";case 6:return"Expecting a comma";case 7:return"Expecting a closing brace (})";case 8:return"Expecting a closing bracket (])";case 9:return"Expecting end of file";case 10:return"Invalid comment token";case 11:return"Unexpected end of comment";case 12:return"Unexpected end of string";case 13:return"Unexpected end of number";case 14:return"Invalid unicode";case 15:return"Invalid escape character";case 16:return"Invalid character";default:return"Something went wrong with this JSON"}}});var AI=x(gh=>{"use strict";p();Object.defineProperty(gh,"__esModule",{value:!0});gh.LiquidFreeSettings=void 0;var yY=Ja(),xI=G(),_Y=gn();gh.LiquidFreeSettings={meta:{code:"LiquidFreeSettings",name:"Check for liquid free settings values",docs:{description:"Ensures settings values are liquid free.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/liquid-free-settings"},type:xI.SourceCodeType.LiquidHtml,severity:xI.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.source.slice(t.blockStartPosition.end,t.blockEndPosition.start),n=(0,yY.toJSONAST)(r);n instanceof Error||(0,_Y.visit)(n,{Property(i,s){if(!bY(s,"settings")||!EI(i.value)||vY(s))return;let{value:a,loc:o}=i.value,c=i.key.value;typeof a=="string"&&c!=="visible_if"&&a.includes("{%")&&a.includes("%}")&&e.report({message:"Settings values cannot contain liquid logic.",startIndex:t.blockStartPosition.end+o.start.offset,endIndex:t.blockStartPosition.end+o.end.offset})}})}}}};function EI(e){return e.type==="Literal"}function vY(e){let t=e.at(-1);return!t||t.type!=="Object"?!1:t.children.some(({key:r,value:n})=>r.value!=="type"||!EI(n)?!1:n.value==="liquid")}function bY(e,t){return e.some((r,n)=>{let i=e[n-1];return(r.type==="Array"||r.type==="Object")&&i?.type==="Property"&&i.key?.value===t})}});var xn=x(Jn=>{"use strict";p();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.INVALID_SYNTAX_MESSAGE=void 0;Jn.getValuesInMarkup=kY;Jn.getFragmentsInMarkup=xY;Jn.getRangeMatch=CI;Jn.doesFragmentContainUnsupportedParentheses=EY;Jn.fragmentKeyValuePair=AY;Jn.INVALID_SYNTAX_MESSAGE="Syntax is not supported";function kY(e){return[...e.matchAll(new RegExp(qI,"g"))].map(t=>({value:t[0],index:t.index}))}var SY='"[^"]*"',TY="'[^']*'",OI="\\s*(-?\\d+(?:\\.\\d+)?|\\w+(?:\\.\\w+)*)\\s*",Mk=`\\(\\s*${OI}(\\.{2,})\\s*${OI}\\s*\\)`,NI="[^\\s,]+",PI=`(${SY}|${TY})`,qI=`(${PI}|${Mk}|${NI})`,LI=`(\\S+):\\s*${qI}`,wY=new RegExp(`${PI}|${Mk}|${LI}|${NI}`,"g");function xY(e){return[...e.matchAll(wY)].map(t=>({value:t[0],index:t.index}))}function CI(e){return e.match(Mk)}function EY(e){return CI(e)?!1:e.includes("(")||e.includes(")")}function AY(e){let t=e.match(new RegExp(LI));if(!t)return;let[,r,n]=t;return{key:r,value:n}}});var MI=x(Rk=>{"use strict";p();Object.defineProperty(Rk,"__esModule",{value:!0});Rk.detectMultipleAssignValues=OY;var II=xn();function OY(e){let t=/([^=]+)(=\s*)([^|]+)(?:\s*\|\s*.*)?$/m;if(e.name!=="assign")return;let r=e.markup;if(typeof r!="string")return;let n=r.match(t);if(!n)return;let[i,s,a,o]=n,c=(0,II.getValuesInMarkup)(o).at(0)?.value;if(!c)return;let l=(d,g)=>{let _=d.indexOf(r,g);return{startIndex:_+s.length+a.length+c.length,endIndex:_+s.length+a.length+o.trimEnd().length}},{startIndex:f,endIndex:m}=l(e.source,e.position.start);if(!(m<=f)&&!(m<=f))return{message:II.INVALID_SYNTAX_MESSAGE,startIndex:f,endIndex:m,fix:d=>{d.replace(f,m,"")}}}});var DI=x(Dk=>{"use strict";p();Object.defineProperty(Dk,"__esModule",{value:!0});Dk.detectInvalidBooleanExpressions=qY;var RI=oe(),NY=xn(),PY=Be();function qY(e,t){if((0,PY.isWithinRawTagThatDoesNotParseItsContents)(t))return;let r=e.condition;if(!(r.type!==RI.NodeTypes.Comparison&&r.type!==RI.NodeTypes.LogicalExpression))return{message:NY.INVALID_SYNTAX_MESSAGE,startIndex:e.position.start,endIndex:e.position.end,fix:n=>{n.replace(e.position.start,e.position.end,e.source.slice(r.left.position.start,r.left.position.end))}}}});var jI=x(Fk=>{"use strict";p();Object.defineProperty(Fk,"__esModule",{value:!0});Fk.detectInvalidEchoValue=CY;var LY=oe(),jk=xn();function CY(e){let t=/([^|]*)(?:\s*\|\s*.*)?$/m;if(e.type===LY.NodeTypes.LiquidTag&&e.name!=="echo")return;let r=e.markup;if(typeof r!="string"||!r)return;let n=r.match(t);if(!n)return;let[,i]=n,s=(0,jk.getValuesInMarkup)(i).at(0)?.value;if(!s){let l=e.source.indexOf(r,e.position.start),f=l+r.length;return{message:jk.INVALID_SYNTAX_MESSAGE,startIndex:l,endIndex:f,fix:m=>{m.replace(l,f,"blank")}}}let a=(l,f)=>{let m=l.indexOf(r,f);return{startIndex:m+s.length,endIndex:m+i.trimEnd().length}},{startIndex:o,endIndex:c}=a(e.source,e.position.start);if(!(c<=o))return{message:jk.INVALID_SYNTAX_MESSAGE,startIndex:o,endIndex:c,fix:l=>{l.replace(o,c,"")}}}});var $I=x(Bk=>{"use strict";p();Object.defineProperty(Bk,"__esModule",{value:!0});Bk.detectInvalidConditionalNode=RY;var VI=xn(),IY={logical:/^(and|or)$/,comparison:/^(==|!=|>=|<=|>|<|contains)$/,invalid:/^[@#$&]$/,literal:/^(['"][^'"]*['"]|\d+(?:\.\d+)?|true|false|nil|empty|blank)$/};function MY(e){for(let[t,r]of Object.entries(IY))if(r.test(e))return t;return"variable"}function RY(e){if(!("name"in e)||!e.name||!["if","elsif","unless"].includes(String(e.name)))return;let t=e.markup;if(typeof t!="string"||!t.trim())return;let r=BY(t);if(!r)return;let n=e.blockStartPosition||e.position,s=e.source.slice(n.start,n.end).indexOf(t);if(s<0)return;let a=n.start+s,o=a+t.length;return{message:`${VI.INVALID_SYNTAX_MESSAGE}: ${r.message}`,startIndex:a,endIndex:o,fix:c=>{c.replace(a,o,r.fix)}}}function FI(e){return e.type==="literal"||e.type==="variable"}function BI(e){return e.type==="logical"||e.type==="comparison"}function DY(e){let t=e[0];return e.length===1&&t.value==="contains"?null:t.type==="invalid"||t.type==="comparison"?{message:`Conditional cannot start with '${t.value}'. Use a variable or value instead`,fix:"false"}:null}function jY(e){for(let n=0;n<=e.length-4;n++){let[i,s,a]=e.slice(n,n+3),o=e.slice(n+3);if(FI(i)&&s.type==="comparison"&&FI(a)&&o.length>0&&o[0].type!=="logical"){let c=e.slice(0,n+3).map(m=>m.value).join(" "),l=o.map(m=>m.value).join(" ");return/&&|\|\|/.test(l)?{message:`Conditional is invalid. Anything after '${c}' will be ignored. Use 'and'/'or' instead of '&&'/'||' for multiple conditions`,fix:c}:{message:`Conditional is invalid. Anything after '${c}' will be ignored`,fix:c}}}return null}function FY(e){for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if(r.type==="literal"&&!BI(n)){let i=e.slice(t+1);if(!(i[0]?.type==="variable"&&i.some(BI))){let a=i.map(c=>c.value).join(" ");return/&&|\|\|/.test(a)?{message:`Expression stops at truthy value '${r.value}', and will ignore: '${a}'. Use 'and'/'or' instead of '&&'/'||' for multiple conditions`,fix:r.value}:{message:`Expression stops at truthy value '${r.value}', and will ignore: '${a}'`,fix:r.value}}}}return null}function BY(e){let t=e.trim();if(!t)return null;let r=(0,VI.getValuesInMarkup)(t).map(({value:n})=>({value:n,type:MY(n)}));return r.length===0?null:DY(r)||jY(r)||FY(r)}});var WI=x(lo=>{"use strict";p();Object.defineProperty(lo,"__esModule",{value:!0});lo.INVALID_LOOP_RANGE_MESSAGE=void 0;lo.detectInvalidLoopRange=UY;var UI=oe(),VY=xn(),$Y=Be();lo.INVALID_LOOP_RANGE_MESSAGE="Ranges must be in the format `(<start>..<end>)`. The start and end of the range must be whole numbers or variables.";function UY(e){if(e.type===UI.NodeTypes.LiquidTag&&!(0,$Y.isLoopLiquidTag)(e))return;let t=e.markup;if(t){if(typeof t=="string")return HI(e,t);if(t.collection.type===UI.NodeTypes.Range)return HI(e,e.source.slice(t.collection.position.start,t.collection.position.end))}}function HI(e,t){let r=(0,VY.getRangeMatch)(t);if(!r||r.index===void 0)return;let[n,i,,s]=r,a=i,o=s;!isNaN(Number(i))&&Number(i)%1!==0&&(a=`${Math.trunc(Number(i))}`),!isNaN(Number(s))&&Number(s)%1!==0&&(o=`${Math.trunc(Number(s))}`);let c=`(${a}..${o})`;if(t.slice(r.index,r.index+n.length)===c)return;let f=e.source.indexOf(t,e.position.start)+r.index,m=f+n.length;return{message:lo.INVALID_LOOP_RANGE_MESSAGE,startIndex:f,endIndex:m,fix:d=>{d.replace(f,m,c)}}}});var GI=x($k=>{"use strict";p();Object.defineProperty($k,"__esModule",{value:!0});$k.detectInvalidLoopArguments=zY;var HY=oe(),Vk=xn(),WY=Be();function zY(e,t=[]){if(e.type===HY.NodeTypes.LiquidTag&&!(0,WY.isLoopLiquidTag)(e))return;let r=e.markup;if(!r)return;typeof r!="string"&&(r=r.source.slice(r.position.start,r.position.end));let n=(0,Vk.getFragmentsInMarkup)(r);if(n.length<=3)return;let i=e.source.indexOf(r,e.position.start),s=i+n.at(3).index,a=i+n.at(-1).index+n.at(-1).value.length,o=[],c=!1,l=[];for(let f=3;f<n.length;f++){let m=n[f];if((0,Vk.doesFragmentContainUnsupportedParentheses)(m.value)){c=!0,l.push(m.value);continue}let d=(0,Vk.fragmentKeyValuePair)(m.value);if(d){if(c=!0,!zI(t,e.name,d.key,!1)){l.push(m.value);continue}}else if(c||!zI(t,e.name,m.value,!0)){c=!0,l.push(m.value);continue}o.push(m.value)}if(l.length!==0)return{message:`Arguments must be provided in the format \`${e.name} in <array> <positional arguments> <named arguments>\`. Invalid/Unknown arguments: ${l.join(", ")}`,startIndex:s,endIndex:a,fix:f=>{f.replace(s,a,o.join(" "))}}}function zI(e,t,r,n){return e.find(i=>i.name===t)?.parameters?.some(i=>i.name===r&&i.positional===n)||!1}});var JI=x(Hk=>{"use strict";p();Object.defineProperty(Hk,"__esModule",{value:!0});Hk.detectConditionalNodeUnsupportedParenthesis=GY;var Uk=xn();function GY(e){if(!["if","elsif","unless"].includes(e.name)||typeof e.markup!="string"||!e.markup.trim())return;let t=e.source.indexOf(e.markup,e.position.start),n=(0,Uk.getFragmentsInMarkup)(e.markup).filter(i=>(0,Uk.doesFragmentContainUnsupportedParentheses)(i.value));if(n.length)return{message:Uk.INVALID_SYNTAX_MESSAGE,startIndex:t,endIndex:t+e.markup.length,fix:i=>{for(let s of n)i.replace(t+s.index,t+s.index+s.value.length,s.value.replace(/[\(\)]/g,""))}}}});var QI=x(Gk=>{"use strict";p();Object.defineProperty(Gk,"__esModule",{value:!0});Gk.detectInvalidFilterName=JY;var fo=oe(),KI=xn();async function JY(e,t){if(!t)return[];if(e.type===fo.NodeTypes.LiquidVariableOutput)return typeof e.markup=="string"?zk(e,e.markup,t):Wk(e,e.markup,t);if(e.type===fo.NodeTypes.LiquidTag){if(e.name===fo.NamedTags.echo){if(typeof e.markup=="string")return zk(e,e.markup,t);if(e.markup.type===fo.NodeTypes.LiquidVariable)return Wk(e,e.markup,t)}if(e.name===fo.NamedTags.assign){if(typeof e.markup=="string")return zk(e,e.markup,t);if(e.markup.type===fo.NodeTypes.AssignMarkup)return Wk(e,e.markup.value,t)}}return[]}async function Wk(e,t,r){let n=r,i=e.source,s=t.position.end,a=[];for(let o of t.filters){if(!n.some(d=>d.name===o.name))continue;let c=i.indexOf(o.name,o.position.start);if(c===-1)continue;let l=c+o.name.length,f=i.slice(l,s).match(/^([^\s:|]+)/)?.[1];if(!f)continue;let m=l+f.length;a.push({message:`${KI.INVALID_SYNTAX_MESSAGE} Filter '${o.name}' has trailing characters '${f}' that should be removed.`,startIndex:l,endIndex:m,fix:d=>{d.replace(l,m,"")}})}return a}async function zk(e,t,r){let n=r,i=t.trim(),s=[],a=/\|\s*([a-zA-Z][a-zA-Z0-9_]*)/g,o=Array.from(i.matchAll(a));for(let c of o){let l=c[1];if(!n.some(b=>b.name===l))continue;let f=c.index+c[0].length,d=i.slice(f).match(/^(?!\s*(?::|$|\|\s*[a-zA-Z]|\|\s*\||\s*\|\s*(?:[}%]|$)))([^:|]+?)(?=\s*(?::|$|\|))/)?.[1];if(!d)continue;let _=e.source.indexOf(t,e.position.start)+f,k=_+d.length;s.push({message:`${KI.INVALID_SYNTAX_MESSAGE} Filter '${l}' has trailing characters '${d}' that should be removed.`,startIndex:_,endIndex:k,fix:b=>{b.replace(_,k,"")}})}return s}});var ZI=x(Jk=>{"use strict";p();Object.defineProperty(Jk,"__esModule",{value:!0});Jk.detectInvalidPipeSyntax=KY;var po=oe(),YI=xn();async function KY(e){if(e.type===po.NodeTypes.LiquidVariableOutput)return typeof e.markup!="string"?[]:XI(e,e.markup);if(e.type===po.NodeTypes.LiquidTag){if(e.name===po.NamedTags.echo&&typeof e.markup!="string")return[];if(e.name===po.NamedTags.assign&&typeof e.markup!="string")return[];if(typeof e.markup=="string"&&(e.name===po.NamedTags.echo||e.name===po.NamedTags.assign))return XI(e,e.markup)}return[]}async function XI(e,t){let r=[],n=t.trim(),i=/(\|\s*){2,}/g,s=Array.from(n.matchAll(i));for(let c of s){let l=e.source.indexOf(t,e.position.start);if(l===-1)continue;let f=l+c.index,m=f+c[0].length;r.push({message:`${YI.INVALID_SYNTAX_MESSAGE}. Remove extra \`|\` character(s).`,startIndex:f,endIndex:m,fix:d=>{d.replace(f,m,"| ")}})}let a=/\s*\|\s*$/,o=n.match(a);if(o){let c=e.source.indexOf(t,e.position.start);if(c===-1)return r;let l=o.index,f=c+l,m=f+o[0].length;r.push({message:`${YI.INVALID_SYNTAX_MESSAGE}. Remove the trailing \`|\` character.`,startIndex:f,endIndex:m,fix:d=>{d.replace(f,m,"")}})}return r}});var sM=x(_h=>{"use strict";p();Object.defineProperty(_h,"__esModule",{value:!0});_h.LiquidHTMLSyntaxError=void 0;var eM=G(),Kk=qe(),QY=MI(),YY=DI(),tM=jI(),rM=$I(),XY=WI(),ZY=GI(),eX=JI(),nM=QI(),iM=ZI(),yh=Be();function tX(e){return"name"in e&&e.name==="LiquidHTMLParsingError"&&"loc"in e}function rX(e,t){return e.replace(/Line \d+, col \d+:\s+/,"SyntaxError: ").replace(/(?!<expected ".+",) not .*/,` not "${t}"`)}_h.LiquidHTMLSyntaxError={meta:{code:"LiquidHTMLSyntaxError",aliases:["SyntaxError","HtmlParsingError"],name:"Prevent LiquidHTML Syntax Errors",docs:{description:"This check exists to inform the user of Liquid HTML syntax errors.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/liquid-html-syntax-error"},type:eM.SourceCodeType.LiquidHtml,severity:eM.Severity.ERROR,schema:{},targets:[]},create(e){let t=e.file.ast,r=e.themeDocset?.filters(),n=e.themeDocset?.tags();return(0,Kk.isError)(t)?{async onCodePathStart(i){if(tX(t)){let{start:s,end:a}=t.loc,o=(0,Kk.getOffset)(i.source,s.line,s.column),c=(0,Kk.getOffset)(i.source,a.line,a.column);o===c&&(c+=1);let l=i.source.slice(o,c);e.report({message:rX(t.message,l),startIndex:o,endIndex:c})}else e.report({message:t.message,startIndex:0,endIndex:i.source.length})}}:{async BooleanExpression(i,s){if((0,yh.isWithinRawTagThatDoesNotParseItsContents)(s))return;let a=(0,YY.detectInvalidBooleanExpressions)(i,s);a&&e.report(a)},async LiquidTag(i,s){if((0,yh.isWithinRawTagThatDoesNotParseItsContents)(s))return;let a=[(0,QY.detectMultipleAssignValues)(i),(0,tM.detectInvalidEchoValue)(i),(0,XY.detectInvalidLoopRange)(i),(0,ZY.detectInvalidLoopArguments)(i,await n)].filter(Boolean),o=(0,eX.detectConditionalNodeUnsupportedParenthesis)(i)||(0,rM.detectInvalidConditionalNode)(i);o&&a.push(o),a.forEach(e.report);let c=await(0,nM.detectInvalidFilterName)(i,await r);c.length>0&&c.forEach(f=>e.report(f));let l=await(0,iM.detectInvalidPipeSyntax)(i);l.length>0&&l.forEach(f=>e.report(f))},async LiquidBranch(i,s){if((0,yh.isWithinRawTagThatDoesNotParseItsContents)(s))return;let a=(0,rM.detectInvalidConditionalNode)(i);a&&e.report(a)},async LiquidVariableOutput(i,s){if((0,yh.isWithinRawTagThatDoesNotParseItsContents)(s))return;let a=await(0,nM.detectInvalidFilterName)(i,await r);a.length>0&&a.forEach(l=>e.report(l));let o=await(0,iM.detectInvalidPipeSyntax)(i);o.length>0&&o.forEach(l=>e.report(l));let c=(0,tM.detectInvalidEchoValue)(i);c&&e.report(c)}}}}});var cM=x(vh=>{"use strict";p();Object.defineProperty(vh,"__esModule",{value:!0});vh.MatchingTranslations=void 0;var aM=G(),oM=new Set(["zero","one","two","few","many","other"]);vh.MatchingTranslations={meta:{code:"MatchingTranslations",name:"Translation files should have the same keys",docs:{description:"TODO",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/matching-translations"},type:aM.SourceCodeType.JSON,severity:aM.Severity.ERROR,schema:{},targets:[]},create(e){let t=new Set,r=new Set,n=new Map,i=e.file,s=i.uri,a=e.toRelativePath(s),o=i.ast,c=a.startsWith("locales/"),l=s.endsWith(".default.json")||s.endsWith(".default.schema.json"),f=s.endsWith(".schema.json");if(!c||l||o instanceof Error)return{};let m=()=>t.size>0,d=({type:A})=>A==="Literal",g=A=>oM.has(A.key.value),_=A=>A.startsWith("shopify.")||A.startsWith("customer_accounts."),k=A=>t.has(A)??!1,b=A=>[...oM].some(O=>A.endsWith(O)),v=A=>Object.keys(A).reduce((N,q)=>{if(typeof A[q]!="object")return N.concat(q);let B=A[q],M=v(B);return N.concat(M.map(L=>`${q}.${L}`))},[]),w=A=>A.filter(O=>O.type==="Property").reduce((O,N)=>O.concat(N.key.value),[]).join("."),T=(A,O)=>{let N=Math.min(A.length,O.length);for(let q=0;q<N;q++)if(A[q]!==O[q])return q;return N},y=A=>{let O=A.split("."),N="",q=0;for(let B of n.keys()){let M=B.split("."),L=T(M,O);L>q&&(q=L,N=B)}return n.get(N)??o};return{async onCodePathStart(){let O=await(f?e.getDefaultSchemaTranslations:e.getDefaultTranslations)().then(v);O.forEach(Set.prototype.add,t),O.forEach(Set.prototype.add,r)},async Property(A,O){let N=w(O.concat(A));if(n.set(N,A),!!m()&&!g(A)&&d(A.value)&&!_(N)){if(k(N)){r.delete(N);return}e.report({message:`A default translation for '${N}' does not exist`,startIndex:A.loc.start.offset,endIndex:A.loc.end.offset,suggest:[{message:"Delete unneeded translation key",fix(q){q.remove(N)}}]})}},async onCodePathEnd(){r.forEach(A=>{let O=y(A);b(A)||_(A)||e.report({message:`The translation for '${A}' is missing`,startIndex:O.loc.start.offset,endIndex:O.loc.end.offset,fix(N){N.add(A,"TODO")}})})}}}}});var lM=x(bh=>{"use strict";p();Object.defineProperty(bh,"__esModule",{value:!0});bh.MissingAsset=void 0;var uM=G(),Qk=Vr(),nX=Be();bh.MissingAsset={meta:{code:"MissingAsset",name:"Avoid rendering missing asset files",docs:{description:"Reports missing asset files",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-asset"},type:uM.SourceCodeType.LiquidHtml,severity:uM.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidVariable(t){if(t.filters.length===0||t.filters[0].name!=="asset_url"||!(0,nX.isLiquidString)(t.expression))return;let r=t.expression,n=`assets/${r.value}`,i=n,s=await(0,Qk.doesFileExist)(e,i);s||i.endsWith(".scss.css")&&(i=i.replace(".scss.css",".scss.liquid"),s=await(0,Qk.doesFileExist)(e,i),s)||(i.endsWith(".js")||i.endsWith(".css"))&&(i+=".liquid",s=await(0,Qk.doesFileExist)(e,i),s)||e.report({message:`'${n}' does not exist`,startIndex:r.position.start,endIndex:r.position.end})}}}}});var dM=x(kh=>{"use strict";p();Object.defineProperty(kh,"__esModule",{value:!0});kh.MissingContentForArguments=void 0;var fM=G(),Yk=wn();kh.MissingContentForArguments={meta:{code:"MissingContentForArguments",name:"Missing ContentFor Arguments",docs:{description:"This check ensures that all required arguments are provided when rendering a static block.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-content-for-arguments"},type:fM.SourceCodeType.LiquidHtml,severity:fM.Severity.WARNING,schema:{},targets:[]},create(e){return{async ContentForMarkup(t){let r=(0,Yk.getBlockName)(t);if(!r)return;let n=await(0,Yk.getLiquidDocParams)(e,`blocks/${r}.liquid`);if(!n)return;let i=new Map(t.args.map(a=>[a.name,a])),s=Array.from(n.values()).filter(a=>a.required&&!i.has(a.name));(0,Yk.reportMissingArguments)(e,t,s,r)}}}}});var hM=x(Sh=>{"use strict";p();Object.defineProperty(Sh,"__esModule",{value:!0});Sh.MissingRenderSnippetArguments=void 0;var pM=G(),Xk=wn();Sh.MissingRenderSnippetArguments={meta:{code:"MissingRenderSnippetArguments",name:"Missing Render Snippet Arguments",aliases:["MissingRenderSnippetParams"],docs:{description:"This check ensures that all required arguments are provided when rendering a snippet.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-render-snippet-arguments"},type:pM.SourceCodeType.LiquidHtml,severity:pM.Severity.WARNING,schema:{},targets:[]},create(e){return{async RenderMarkup(t){let r=(0,Xk.getSnippetName)(t);if(!r)return;let n=await(0,Xk.getLiquidDocParams)(e,`snippets/${r}.liquid`);if(!n)return;let i=new Map(t.args.map(a=>[a.name,a])),s=Array.from(n.values()).filter(a=>a.required&&!i.has(a.name)&&a.name!==t.alias?.value);(0,Xk.reportMissingArguments)(e,t,s,r)}}}}});var mM=x(wh=>{"use strict";p();Object.defineProperty(wh,"__esModule",{value:!0});wh.MissingTemplate=void 0;var Zk=oe(),iX=Kw(),Th=G(),sX=Vr(),aX={ignoreMissing:Th.SchemaProp.array(Th.SchemaProp.string(),[])};wh.MissingTemplate={meta:{code:"MissingTemplate",name:"Avoid rendering missing templates",docs:{description:"Reports missing include/render/section liquid file",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-template"},type:Th.SourceCodeType.LiquidHtml,severity:Th.Severity.ERROR,schema:aX,targets:[]},create(e){let t=i=>typeof i.markup!="string";function r(i){return e.settings.ignoreMissing.some(s=>(0,iX.minimatch)(i,s))}async function n(i,{position:s}){await(0,sX.doesFileExist)(e,i)||r(i)||e.report({message:`'${i}' does not exist`,startIndex:s.start,endIndex:s.end})}return{async RenderMarkup(i){if(i.snippet.type===Zk.NodeTypes.VariableLookup||i.snippet.type===Zk.NodeTypes.Range)return;let s=i.snippet,a=`snippets/${s.value}.liquid`;await n(a,s)},async LiquidTag(i){if(!t(i)||i.name!==Zk.NamedTags.section)return;let s=i.markup.name,a=`sections/${s.value}.liquid`;await n(a,s)}}}}});var yM=x(xh=>{"use strict";p();Object.defineProperty(xh,"__esModule",{value:!0});xh.OrphanedSnippet=void 0;var oX=ct(),gM=G();xh.OrphanedSnippet={meta:{code:"OrphanedSnippet",name:"Prevent orphaned snippets",docs:{description:"This check exists to prevent orphaned snippets in themes.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/orphaned-snippet"},type:gM.SourceCodeType.LiquidHtml,severity:gM.Severity.WARNING,schema:{},targets:[]},create(e){return{async onCodePathEnd(){let{getReferences:t}=e;if(!t)return;let r=e.file.uri;(0,oX.isSnippet)(r)&&(await t(r)).length===0&&e.report({message:"This snippet is not referenced by any other files",startIndex:0,endIndex:1})}}}}});var bM=x(Ah=>{"use strict";p();Object.defineProperty(Ah,"__esModule",{value:!0});Ah.PaginationSize=void 0;var e0=oe(),Eh=G(),_M=qe(),vM=Be(),cX=We(),uX={minSize:Eh.SchemaProp.number(1),maxSize:Eh.SchemaProp.number(250)};Ah.PaginationSize={meta:{code:"PaginationSize",name:"Ensure paginate tags are used with performant sizes",docs:{description:"This check is aimed at keeping response times low.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/pagination-size",recommended:!0},type:Eh.SourceCodeType.LiquidHtml,severity:Eh.Severity.WARNING,schema:uX,targets:[]},create(e){let t=e.settings.minSize,r=e.settings.maxSize,n=[],i=[];function s(a,o,c=`Pagination size must be a positive integer between ${t} and ${r}.`){t<=o&&o<=r||e.report({message:c,startIndex:a.position.start,endIndex:a.position.end})}return{async LiquidTag(a){if(typeof a.markup=="string"||a.name!=="paginate")return;let o=a.markup.pageSize;(0,vM.isNodeOfType)(e0.NodeTypes.VariableLookup,o)?i.push(o):(0,vM.isNodeOfType)(e0.NodeTypes.Number,o)&&s(o,Number(o.value))},async LiquidRawTag(a){if(a.name==="schema"){let o=(0,cX.parseJSON)(a.body.value);if((0,_M.isError)(o))return;o.settings&&Array.isArray(o.settings)&&(n=o.settings)}},async onCodePathEnd(){i.forEach(a=>{let o=(0,_M.last)(a.lookups);if(o===void 0||o.type!==e0.NodeTypes.String)return;let c=o.value,l=n.find(f=>f.id===c);if(l!==void 0){if(l.default===void 0){e.report({message:"Default pagination size should be defined in the section settings.",startIndex:a.position.start,endIndex:a.position.end});return}s(a,l.default,`This setting's default value should be between ${t} and ${r} but is currently ${l.default}.`)}})}}}}});var SM=x(ho=>{"use strict";p();Object.defineProperty(ho,"__esModule",{value:!0});ho.scriptTagSuggestion=ho.liquidFilterSuggestion=void 0;var lX=qe(),kM=e=>`Use an HTML script tag with the ${e} attribute instead`,fX=(e,t,r,n)=>({message:kM(e),fix(i){let a=`{{ ${t.source.slice(r.expression.position.start,(0,lX.last)(r.filters,-1)?.position.end??t.position.start)} }}`;i.replace(n.position.start,n.position.end,`<script src="${a}" ${e}></script>`)}});ho.liquidFilterSuggestion=fX;var dX=(e,t)=>({message:kM(e),fix(r){r.insert(t.blockStartPosition.end-1,` ${e}`)}});ho.scriptTagSuggestion=dX});var xM=x(Nh=>{"use strict";p();Object.defineProperty(Nh,"__esModule",{value:!0});Nh.ParserBlockingScript=void 0;var TM=oe(),wM=G(),t0=qe(),Kn=Be(),Oh=SM();Nh.ParserBlockingScript={meta:{code:"ParserBlockingScript",aliases:["ParserBlockingScriptTag"],name:"Avoid parser blocking scripts",docs:{description:"They are bad ok?",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/parser-blocking-javascript"},type:wM.SourceCodeType.LiquidHtml,severity:wM.Severity.ERROR,schema:{},targets:[]},create(e){return{LiquidFilter:async(t,r)=>{if(t.name!=="script_tag")return;let i=t.source.slice(t.position.start,t.position.end).indexOf("script_tag"),s=(0,t0.last)(r),a=(0,t0.last)(r,-1);e.report({message:"The script_tag filter is parser-blocking. Use a <script> tag with async or defer for better performance",startIndex:t.position.start+i,endIndex:t.position.end,suggest:a&&a.type===TM.NodeTypes.LiquidVariableOutput&&s&&s.type===TM.NodeTypes.LiquidVariable&&(0,t0.last)(s.filters)===t?[(0,Oh.liquidFilterSuggestion)("defer",t,s,a),(0,Oh.liquidFilterSuggestion)("async",t,s,a)]:void 0})},HtmlRawNode:async t=>{if(t.name!=="script"||!t.attributes.filter(Kn.isValuedHtmlAttribute).some(s=>(0,Kn.isAttr)(s,"src")))return;let n=t.attributes.filter(Kn.isHtmlAttribute).some(s=>(0,Kn.isAttr)(s,"async")||(0,Kn.isAttr)(s,"defer")),i=t.attributes.filter(Kn.isValuedHtmlAttribute).some(s=>(0,Kn.isAttr)(s,"type")&&((0,Kn.hasAttributeValueOf)(s,"module")||(0,Kn.hasAttributeValueOf)(s,"importmap")));n||i||e.report({message:"Avoid parser blocking scripts by adding `defer` or `async` on this tag",startIndex:t.position.start,endIndex:t.position.end,suggest:[(0,Oh.scriptTagSuggestion)("defer",t),(0,Oh.scriptTagSuggestion)("async",t)]})}}}}});var OM=x(Lh=>{"use strict";p();Object.defineProperty(Lh,"__esModule",{value:!0});Lh.SchemaPresetsBlockOrder=void 0;var Ph=We(),pX=ct(),EM=G();Lh.SchemaPresetsBlockOrder={meta:{code:"SchemaPresetsBlockOrder",name:"Gives recommendations and validations for block_order",docs:{description:"Gives recommendations and validations for block_order for preset blocks as a hash.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/schema-presets-block-order"},type:EM.SourceCodeType.LiquidHtml,severity:EM.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,pX.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error)return;let a=i.presets;a&&a.forEach((o,c)=>{"blocks"in o&&o.blocks&&AM(o,e,r,s,["presets",String(c)])})}}}};function AM(e,t,r,n,i){if("blocks"in e&&typeof e.blocks=="object"&&e.blocks){let s="block_order"in e?e.block_order:void 0;s||hX(e)&&qh(t,r,n,i,"block_order is missing",!1),s?.forEach((a,o)=>{if(!e.blocks||!Array.isArray(e.blocks)&&!e.blocks[a]){let c=i.concat(["block_order"]).concat([String(o)]);qh(t,r,n,c,`block '${a}' is missing from 'blocks'`)}});for(let[a,o]of Object.entries(e.blocks)){if(o.static){if(Array.isArray(s)&&s.includes(a)){let c=i.concat(["block_order"]);qh(t,r,n,c,`static block '${a}' cannot be in the block_order`)}}else if(Array.isArray(s)&&!s.includes(a)){let c=i.concat(["block_order"]);qh(t,r,n,c,`block '${a}' is missing from the block_order`)}o.blocks&&(i.push("blocks",a),AM(o,t,r,n,i))}}}function hX(e){return"blocks"in e&&typeof e.blocks=="object"&&e.blocks!==null&&!Array.isArray(e.blocks)?Object.entries(e.blocks).some(([t,r])=>r.static!==!0):!1}function qh(e,t,r,n,i,s=!0){let a=(0,Ph.nodeAtPath)(r,n),o=s?t+(0,Ph.getLocStart)(a):t+(0,Ph.getLocEnd)(a)-1,c=t+(0,Ph.getLocEnd)(a);e.report({message:i,startIndex:o,endIndex:c})}});var Ch=x(r0=>{"use strict";p();Object.defineProperty(r0,"__esModule",{value:!0});r0.isContentForBlock=mX;function mX(e){return typeof e=="string"?!1:e.contentForType.value==="block"}});var PM=x(Ih=>{"use strict";p();Object.defineProperty(Ih,"__esModule",{value:!0});Ih.SchemaPresetsStaticBlocks=void 0;var n0=oe(),mo=We(),gX=ct(),NM=G(),yX=Ch();Ih.SchemaPresetsStaticBlocks={meta:{code:"SchemaPresetsStaticBlocks",name:"Ensure the preset static blocks are used in the liquid",docs:{description:'Warns if a preset static block does not have a corresponding content_for "block" tag.',recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/schema-presets-static-blocks"},type:NM.SourceCodeType.LiquidHtml,severity:NM.Severity.ERROR,schema:{},targets:[]},create(e){let t=[],r=[],n=0;function i(){r.forEach(s=>{t.some(a=>a.id===s.id&&a.type===s.type)||e.report({message:`Static block ${s.id} is missing a corresponding content_for "block" tag.`,startIndex:s.startIndex,endIndex:s.endIndex})})}return{async LiquidTag(s){if(s.name!==n0.NamedTags.content_for||!(0,yX.isContentForBlock)(s.markup))return;let a=s.markup.args.find(l=>l.name==="id")?.value,o=s.markup.args.find(l=>l.name==="type")?.value;if(!o||o.type!==n0.NodeTypes.String)return;let c=o.value;a?.type===n0.NodeTypes.String&&t.push({id:a.value,type:c})},async LiquidRawTag(s){if(s.name==="schema"&&s.body.kind==="json"){n=s.blockStartPosition.end;let a=await(0,gX.getSchema)(e),{validSchema:o,ast:c}=a??{};if(!o||o instanceof Error||!c||c instanceof Error)return;let l=o.presets;if(!l)return;l.forEach((f,m)=>{if("blocks"in f&&f.blocks){let d=["presets",m,"blocks"];Array.isArray(f.blocks)?f.blocks.forEach((g,_)=>{if(g.static===!0&&g.id){let k=(0,mo.nodeAtPath)(c,d.concat([_]));r.push({id:g.id,type:g.type,startIndex:n+(0,mo.getLocStart)(k),endIndex:n+(0,mo.getLocEnd)(k)})}}):typeof f.blocks=="object"&&Object.entries(f.blocks).forEach(([g,_])=>{if(_.static===!0){let k=(0,mo.nodeAtPath)(c,d.concat(g));r.push({id:g,type:_.type,startIndex:n+(0,mo.getLocStart)(k),endIndex:n+(0,mo.getLocEnd)(k)})}})}})}},async onCodePathEnd(){i()}}}}});var IM=x(Rh=>{"use strict";p();Object.defineProperty(Rh,"__esModule",{value:!0});Rh.RemoteAsset=void 0;var Gt=G(),go=Be(),_X=qe(),vX=["img","link","source","script"],bX=["fonts.shopifycdn.com","cdn.shopify.com"],kX=["stylesheet_tag","script_tag","image_tag","img_tag"],LM=["product_img_url","article_img_url","collection_img_url","img_url"],CM=["asset_url","image_url","asset_img_url","file_img_url","file_url","global_asset_url","shopify_asset_url","external_video_url","font_url"],SX="canonical_url";function i0(e){return e.type===Gt.LiquidHtmlNodeTypes.LiquidVariableOutput}function s0(e){return typeof e!="string"&&e.type===Gt.LiquidHtmlNodeTypes.LiquidVariable}function TX(e){return e.startsWith("#")}function qM(e){return/^data:/i.test(e)}function qu(e){return e.replace(/[“”‘’]/g,"")}function wX(e){let t=e.value[0];if(!t||!i0(t))return!1;let r=t.markup;return s0(r)?r.expression.type===Gt.LiquidHtmlNodeTypes.VariableLookup:!1}function Mh(e,t=[]){if(/^\/cdn\//.test(e))return!0;try{let r=new URL(e);return[...bX,...t].includes(r.hostname)}catch{return!1}}function xX(e,t=[]){return e.value.some(r=>{if(r.type===Gt.LiquidHtmlNodeTypes.TextNode&&/^(https?:)?\/\//.test(qu(r.value))&&!Mh(qu(r.value),t))return!0;if(i0(r)){let n=r.markup;if(s0(n)){let i=n.expression;if(i.type===Gt.LiquidHtmlNodeTypes.String&&/^https?:\/\//.test(i.value)&&!Mh(i.value,t))return!0}}return!1})}function EX(e){let t=[...LM,...CM],r=[SX];return e.value.some(n=>!i0(n)||!s0(n.markup)?!1:!!(n.markup.filters.some(s=>t.includes(s.name))||(0,go.isNodeOfType)(Gt.LiquidHtmlNodeTypes.VariableLookup,n.markup.expression)&&n.markup.expression.name&&r.includes(n.markup.expression.name)))}function AX(e){return e.map(t=>{try{return new URL(t).hostname.replace(/^www\./,"")}catch{return}}).filter(t=>t!==void 0)}var OX={allowedDomains:Gt.SchemaProp.array(Gt.SchemaProp.string()).optional()};Rh.RemoteAsset={meta:{code:"RemoteAsset",aliases:["AssetUrlFilters"],name:"Remote Asset",docs:{description:"This check is aimed at eliminating unnecessary HTTP connections.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/remote-asset",recommended:!0},type:Gt.SourceCodeType.LiquidHtml,severity:Gt.Severity.WARNING,schema:OX,targets:[]},create(e){let t=AX(e.settings.allowedDomains||[]);function r(i){let s=(0,go.getHtmlNodeName)(i);if(!s||!vX.includes(s))return;let a=i.attributes.filter(go.isValuedHtmlAttribute).find(m=>(0,go.isAttr)(m,"src")||(0,go.isAttr)(m,"href"));if(!a)return;let o=a.value.find(m=>m.type===Gt.LiquidHtmlNodeTypes.TextNode);if(o&&TX(qu(o.value))||o&&qM(qu(o.value))||wX(a)||a.value.filter(m=>m.type===Gt.LiquidHtmlNodeTypes.TextNode).some(m=>Mh(qu(m.value),t)))return;if(xX(a,t)){e.report({message:"Asset should be served by the Shopify CDN for better performance.",startIndex:a.position.start,endIndex:a.position.end});return}EX(a)||e.report({message:"Use one of the asset_url filters to serve assets for better performance.",startIndex:a.position.start,endIndex:a.position.end})}function n(i,s){let a=i.name;if(!kX.includes(a))return;let o=(0,_X.last)(s);if(!o||!(0,go.isNodeOfType)(Gt.LiquidHtmlNodeTypes.LiquidVariable,o)||o.filters.some(f=>LM.includes(f.name)||CM.includes(f.name)))return;let l=o.expression;l.type===Gt.LiquidHtmlNodeTypes.String&&qM(l.value)||(l.type===Gt.LiquidHtmlNodeTypes.String&&!Mh(l.value,t)&&e.report({message:"Asset should be served by the Shopify CDN for better performance.",startIndex:l.position.start,endIndex:l.position.end}),e.report({message:"Use one of the asset_url filters to serve assets for better performance.",startIndex:o.expression.position.start,endIndex:i.position.end}))}return{async HtmlVoidElement(i){r(i)},async HtmlSelfClosingElement(i){r(i)},async HtmlRawNode(i){r(i)},async LiquidFilter(i,s){n(i,s)}}}}});var RM=x(jh=>{"use strict";p();Object.defineProperty(jh,"__esModule",{value:!0});jh.RequiredLayoutThemeObject=void 0;var Dh=G(),MM=Be(),NX=/^layout\/[^/]+\.liquid$/i;jh.RequiredLayoutThemeObject={meta:{code:"RequiredLayoutThemeObject",name:"Prevent missing required objects in theme.liquid",docs:{description:"This check prevents missing {{ content_for_header }} and {{ content_for_layout }} objects in layout/theme.liquid.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/required-layout-theme-object"},type:Dh.SourceCodeType.LiquidHtml,severity:Dh.Severity.ERROR,schema:{},targets:[Dh.ConfigTarget.All,Dh.ConfigTarget.Recommended]},create(e){if(!NX.test(e.toRelativePath(e.file.uri)))return{};let t=["content_for_header","content_for_layout"],r=new Set,n,i;function s(a){a.name&&t.includes(a.name)&&r.add(a.name)}return{async VariableLookup(a){s(a)},async HtmlElement(a){(0,MM.isHtmlTag)(a,"head")?n=a:(0,MM.isHtmlTag)(a,"body")&&(i=a)},async onCodePathEnd(){for(let a of t)if(!r.has(a)){let o=`The required object '{{ ${a} }}' is missing in layout/theme.liquid`,c=a==="content_for_header"?n:i,l=c?.blockEndPosition.start;e.report({message:o,startIndex:c?.position.start??0,endIndex:c?.position.end??0,fix:l!==void 0?f=>f.insert(l,`{{ ${a} }}`):void 0})}}}}}});var Lu=x(Ti=>{"use strict";p();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.CLOSEST_ARGUMENT=Ti.REQUIRED_CONTENT_FOR_ARGUMENTS=Ti.RESERVED_CONTENT_FOR_ARGUMENTS=void 0;Ti.RESERVED_CONTENT_FOR_ARGUMENTS=["attributes","block","blocks","class","context","inherit","resource","resources","schema","section","sections","settings","snippet","snippets","src","style","styles","template","templates"];Ti.REQUIRED_CONTENT_FOR_ARGUMENTS=["id","type"];Ti.CLOSEST_ARGUMENT="closest."});var FM=x(Fh=>{"use strict";p();Object.defineProperty(Fh,"__esModule",{value:!0});Fh.ReservedDocParamNames=void 0;var DM=G(),PX=ct(),jM=Lu();Fh.ReservedDocParamNames={meta:{code:"ReservedDocParamNames",name:"Valid doc parameter names",docs:{description:"This check exists to ensure any parameter names defined in LiquidDoc do not collide with reserved words.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/reserved-doc-param-names"},type:DM.SourceCodeType.LiquidHtml,severity:DM.Severity.ERROR,schema:{},targets:[]},create(e){if(!(0,PX.isBlock)(e.file.uri))return{};let t=[...jM.REQUIRED_CONTENT_FOR_ARGUMENTS,...jM.RESERVED_CONTENT_FOR_ARGUMENTS];return{async LiquidDocParamNode(r){let n=r.paramName.value;t.includes(n)&&qX(e,"The parameter name is not supported because it's a reserved argument for 'content_for' tags.",r.paramName)}}}};function qX(e,t,r){e.report({message:t,startIndex:r.position.start,endIndex:r.position.end})}});var VM=x(Vh=>{"use strict";p();Object.defineProperty(Vh,"__esModule",{value:!0});Vh.StaticStylesheetAndJavascriptTags=void 0;var Bh=oe(),BM=G();Vh.StaticStylesheetAndJavascriptTags={meta:{code:"StaticStylesheetAndJavascriptTags",name:"Reports non static stylesheet and javascript tags",docs:{description:"Reports the usage of Liquid within {% stylesheet %} and {% javascript %} tags, which should only contain static content.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/static-stylesheet-and-javascript-tags"},type:BM.SourceCodeType.LiquidHtml,severity:BM.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="stylesheet"&&t.name!=="javascript")return;let r=t.body.nodes.filter(n=>n.type===Bh.NodeTypes.LiquidVariableOutput||n.type===Bh.NodeTypes.LiquidTag||n.type===Bh.NodeTypes.LiquidRawTag);for(let n of r){let i=t.name==="stylesheet"?"CSS":"JavaScript",s=n.type===Bh.NodeTypes.LiquidVariableOutput?"variable":"tag";e.report({message:`Liquid ${s} found in ${i} block. {% ${t.name} %} tags should only contain static ${i} code.`,startIndex:n.position.start,endIndex:n.position.end})}}}}}});var HM=x($h=>{"use strict";p();Object.defineProperty($h,"__esModule",{value:!0});$h.TranslationKeyExists=void 0;var LX=We(),$M=G(),CX=qe();function UM(e,t){for(let r of e.split(".")){if(typeof t!="object"||!t.hasOwnProperty(r))return!1;t=t[r]}return!0}$h.TranslationKeyExists={meta:{code:"TranslationKeyExists",name:"Reports missing translation keys",docs:{description:"Reports missing translation keys",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/translation-key-exists"},type:$M.SourceCodeType.LiquidHtml,severity:$M.Severity.ERROR,schema:{},targets:[]},create(e){let t=[],r;return{async LiquidVariable(n){n.expression.type==="String"&&n.filters.some(({name:i})=>["t","translate"].includes(i))&&t.push({translationKey:n.expression.value,startIndex:n.expression.position.start,endIndex:n.expression.position.end})},async LiquidRawTag(n){if(n.name!=="schema"||n.body.kind!=="json")return;let i=await e.getDefaultLocale(),s=(0,LX.parseJSON)(n.body.value);(0,CX.isError)(s)&&s instanceof SyntaxError||(r=s.locales?.[i])},async onCodePathEnd(){let n=await e.getDefaultTranslations(),i=await e.getDefaultLocale(),s=await e.themeDocset?.systemTranslations(),a=Object.keys(s??{});!n&&a.length===0||t.forEach(({translationKey:o,startIndex:c,endIndex:l})=>{if(UM(o,n)||UM(o,r)||a.includes(o))return;let f=`'${o}' does not have a matching entry in 'locales/${i}.default.json'`;r&&(f+=` or '${e.toRelativePath(e.file.uri)}'`),e.report({message:f,startIndex:c,endIndex:l})})}}}}});var QM=x(Hh=>{"use strict";p();Object.defineProperty(Hh,"__esModule",{value:!0});Hh.UnclosedHTMLElement=void 0;var Ke=oe(),WM=G(),a0=qe(),zM=Be();Hh.UnclosedHTMLElement={meta:{code:"UnclosedHTMLElement",aliases:["UnclosedHTMLElement"],name:"Unclosed HTML Element",docs:{description:"Warns you of unbalanced HTML tags in branching code",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unclosed-html-element"},type:WM.SourceCodeType.LiquidHtml,severity:WM.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Map;return{async HtmlElement(r,n){if(IX(r))return;let[i,s]=(0,a0.findLastAndIndex)(n,zM.isLiquidBranch);if(!i)return;let a=n[s-1],o=n[s-2];if(!a||!o||a.type!==Ke.NodeTypes.LiquidTag)return;t.has(o)||t.set(o,{open:new Map,close:new Map,identifiers:new Set});let c=t.get(o),l=GM(i,a);c.identifiers.add(l),c.open.has(l)||c.open.set(l,[]),c.open.get(l).push(r)},async HtmlDanglingMarkerClose(r,n){let[i,s]=(0,a0.findLastAndIndex)(n,zM.isLiquidBranch);if(!i)return;let a=n[s-1],o=n[s-2];if(!a||!o||a.type!==Ke.NodeTypes.LiquidTag)return;t.has(o)||t.set(o,{open:new Map,close:new Map,identifiers:new Set});let c=t.get(o),l=GM(i,a);c.identifiers.add(l),c.close.has(l)||c.close.set(l,[]),c.close.get(l).push(r)},async onCodePathEnd(){for(let[r,n]of t){let i=new Map;for(let c of n.identifiers){let l=n.open.get(c)??[],f=n.close.get(c)??[],m=[].concat(l,f).sort((d,g)=>d.position.start-g.position.start);i.set(c,KM(m))}let s=[].concat(...i.values()).sort((c,l)=>c.position.start-l.position.start),a=KM(s),o=new Set(a);for(let[c,l]of i)for(let f of l)o.has(f)&&(f.type===Ke.NodeTypes.HtmlDanglingMarkerClose?e.report({message:`Closing tag does not have a matching opening tag for condition \`${c}\` in ${r.type} '${Uh(r)}'`,startIndex:f.position.start,endIndex:f.position.end}):e.report({message:`Opening tag does not have a matching closing tag for condition \`${c}\` in ${r.type} '${Uh(r)}'`,startIndex:f.blockStartPosition.start,endIndex:f.blockStartPosition.end}))}}}}};function IX(e){return e.blockEndPosition.start!==e.blockEndPosition.end}function GM(e,t){if(e.name===null)switch(t.name){case Ke.NamedTags.if:return Jt(t.markup);case Ke.NamedTags.unless:return JM(Jt(t.markup));default:return"??"}switch(e.name){case"else":switch(t.name){case Ke.NamedTags.if:return JM(Jt(t.markup));case Ke.NamedTags.unless:return Jt(t.markup);case Ke.NamedTags.case:return`case ${Jt(t.markup)}`;default:return"??"}case Ke.NamedTags.elsif:return Jt(e.markup);case Ke.NamedTags.when:return t.name!==Ke.NamedTags.case?"??":`case ${Jt(t.markup)} == ${MX(e.markup)}`;default:return"??"}}function MX(e){return typeof e=="string"?e:e.map(Jt).join(" or ")}function Jt(e){if(typeof e=="string")return e;switch(e.type){case Ke.NodeTypes.String:return"'"+e.value+"'";case Ke.NodeTypes.LiquidLiteral:return e.value===null?"null":e.value.toString();case Ke.NodeTypes.Number:return e.value;case Ke.NodeTypes.VariableLookup:return`${e.name??""}${e.lookups.map(t=>`[${Jt(t)}]`)}`;case Ke.NodeTypes.Range:return`(${Jt(e.start)}..${Jt(e.end)})`;case Ke.NodeTypes.Comparison:return[Jt(e.left),e.comparator,Jt(e.right)].join(" ");case Ke.NodeTypes.LogicalExpression:return[Jt(e.left),e.relation,Jt(e.right)].join(" ");default:return(0,a0.assertNever)(e)}}function JM(e){return e.startsWith("-")?e.slice(1):`-${e}`}function KM(e){let t=[];for(let r of e)r.type===Ke.NodeTypes.HtmlElement?t.push(r):t.length>0&&Uh(r)===Uh(t.at(-1))&&t.at(-1).type===Ke.NodeTypes.HtmlElement&&r.type===Ke.NodeTypes.HtmlDanglingMarkerClose?t.pop():t.push(r);return t}function Uh(e){return e.type===Ke.NodeTypes.HtmlElement||e.type===Ke.NodeTypes.HtmlDanglingMarkerClose?e.name.length===0?"":e.source.slice(e.name.at(0).position.start,e.name.at(-1).position.end):e.type===Ke.NodeTypes.LiquidTag?e.name:e.type}});var zh=x(Wh=>{"use strict";p();Object.defineProperty(Wh,"__esModule",{value:!0});Wh.hasLiquidDoc=RX;Wh.extractDocDefinition=DX;var XM=gn();function RX(e){let t=!1;return(0,XM.visit)(e,{LiquidRawTag(r){r.name==="doc"&&(t=!0)}}),t}function DX(e,t){let r=!1,n=(0,XM.visit)(t,{LiquidRawTag(o){o.name==="doc"&&(r=!0)},LiquidDocParamNode(o){return{name:o.paramName.value,description:o.paramDescription?.value??null,type:o.paramType?.value??null,required:o.required,nodeType:"param"}},LiquidDocExampleNode(o){return{content:YM(o.content.value.trim()),nodeType:"example"}},LiquidDocDescriptionNode(o){return{content:YM(o.content.value.trim()),nodeType:"description"}}});if(!r)return{uri:e};let{parameters:i,examples:s,description:a}=n.reduce((o,c)=>(c.nodeType==="param"?o.parameters.push(c):c.nodeType==="example"?o.examples.push(c):c.nodeType==="description"&&!o.description&&(o.description=c),o),{parameters:[],examples:[],description:void 0});return{uri:e,liquidDoc:{...i.length&&{parameters:i},...s.length&&{examples:s},...a&&{description:a}}}}function YM(e){let t=e.split(`
82
+ `);if(t.length<=1)return e;let n=t.slice(1).filter(s=>s.trim().length>0).map(s=>{let a=s.match(/^\s*/);return a?a[0].length:0});if(n.length===0)return e;let i=Math.min(...n);return[t[0],...t.slice(1).map(s=>s.trim().length===0?s:s.slice(i))].join(`
83
+ `)}});var iR=x(Gh=>{"use strict";p();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.UndefinedObject=void 0;var Cs=oe(),ZM=G(),eR=qe(),jX=zh(),tR=Be();Gh.UndefinedObject={meta:{code:"UndefinedObject",name:"Undefined Object",docs:{description:"This check exists to identify references to undefined Liquid objects.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/undefined-object"},type:ZM.SourceCodeType.LiquidHtml,severity:ZM.Severity.WARNING,schema:{},targets:[]},create(e){let t=e.toRelativePath(e.file.uri),r=e.file.ast;if((0,eR.isError)(r))return{};if(t.startsWith("snippets/")&&!(0,jX.hasLiquidDoc)(r))return{};if(!e.themeDocset)return{};let n=e.themeDocset,i=new Map,s=new Set,a=[];function o(c,l){if(!c)return;let f=i.get(c)??[];i.set(c,f.concat(l))}return{async LiquidDocParamNode(c){let l=c.paramName?.value;l&&s.add(l)},async LiquidTag(c,l){(0,tR.isWithinRawTagThatDoesNotParseItsContents)(l)||(HX(c)&&o(c.markup.name,{start:c.blockStartPosition.end}),nR(c)&&o(c.markup.name,{start:c.blockEndPosition?.end}),["form","paginate"].includes(c.name)&&o(c.name,{start:c.blockStartPosition.end,end:c.blockEndPosition?.start}),c.name==="layout"&&o("none",{start:c.position.start,end:c.position.end}),(GX(c)||JX(c))&&c.markup.name!==null&&o(c.markup.name,{start:c.position.start}),(WX(c)||zX(c))&&(o(c.markup.variableName,{start:c.blockStartPosition.end,end:c.blockEndPosition?.start}),o(c.name==="for"?"forloop":"tablerowloop",{start:c.blockStartPosition.end,end:c.blockEndPosition?.start})))},async VariableLookup(c,l){if((0,tR.isWithinRawTagThatDoesNotParseItsContents)(l))return;let f=(0,eR.last)(l);UX(f)&&nR(f)||a.push(c)},async onCodePathEnd(){(await FX(n,t,e.mode)).forEach(l=>s.add(l.name)),a.forEach(l=>{!l.name||VX(l.name,l.position,s,i)||e.report({message:`Unknown object '${l.name}' used.`,startIndex:l.position.start,endIndex:l.position.end})})}}}};async function FX(e,t,r="theme"){let n=await e.objects(),i=BX(t,r);return n.filter(({access:a,name:o})=>i.includes(o)||!a||a.global===!0||a.template.length>0)}var rR=["app","section","recommendations","block"];function BX(e,t="theme"){return e.startsWith("layout/checkout.liquid")?["locale","direction","skip_to_content_link","checkout_html_classes","checkout_stylesheets","checkout_scripts","content_for_logo","breadcrumb","order_summary_toggle","content_for_order_summary","alternative_payment_methods","content_for_footer","tracking_code"]:e.startsWith("sections/")?["section","predictive_search","recommendations","comment"]:e.startsWith("blocks/")?rR:e.startsWith("snippets/")?t==="app"?rR:["app","section","block"]:[]}function VX(e,t,r,n){if(r.has(e))return!0;let i=n.get(e);return i?i.some(s=>$X(t,s)):!1}function $X(e,t){let r=e.start,n=!t.start||r>t.start,i=!t.end||r<t.end;return n&&i}function UX(e){return e?.type===Cs.NodeTypes.LiquidTag}function nR(e){return e.name===Cs.NamedTags.capture}function HX(e){return e.name===Cs.NamedTags.assign&&typeof e.markup!="string"}function WX(e){return e.name===Cs.NamedTags.for&&typeof e.markup!="string"}function zX(e){return e.name===Cs.NamedTags.tablerow&&typeof e.markup!="string"}function GX(e){return e.name===Cs.NamedTags.increment&&typeof e.markup!="string"}function JX(e){return e.name===Cs.NamedTags.decrement&&typeof e.markup!="string"}});var aR=x(Jh=>{"use strict";p();Object.defineProperty(Jh,"__esModule",{value:!0});Jh.UniqueDocParamNames=void 0;var sR=G();Jh.UniqueDocParamNames={meta:{code:"UniqueDocParamNames",name:"Unique doc parameter names",docs:{description:"This check exists to ensure any parameter names defined in the `doc` tag are unique.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-doc-param-names"},type:sR.SourceCodeType.LiquidHtml,severity:sR.Severity.ERROR,schema:{},targets:[]},create(e){let t=new Set;return{async LiquidDocParamNode(r){let n=r.paramName.value;if(!t.has(n)){t.add(n);return}e.report({message:`The parameter '${n}' is defined more than once.`,startIndex:r.paramName.position.start,endIndex:r.paramName.position.end})}}}}});var uR=x(Kh=>{"use strict";p();Object.defineProperty(Kh,"__esModule",{value:!0});Kh.UniqueStaticBlockId=void 0;var o0=oe(),oR=G(),cR=Lu(),KX=Ch(),QX=new Set([...cR.REQUIRED_CONTENT_FOR_ARGUMENTS,...cR.RESERVED_CONTENT_FOR_ARGUMENTS]);Kh.UniqueStaticBlockId={meta:{code:"UniqueStaticBlockId",name:"Prevent use of duplicated ids for blocks rendered statically",docs:{description:"This check is aimed at preventing the use of duplicated ids for blocks rendered statically.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unique-static-block-id",recommended:!0},type:oR.SourceCodeType.LiquidHtml,severity:oR.Severity.ERROR,schema:{},targets:[]},create(e){let t=new Set;return{async LiquidTag(r){if(r.name!==o0.NamedTags.content_for||!(0,KX.isContentForBlock)(r.markup))return;let n=r.markup.args.find(f=>f.name==="id");if(!n)return;let i=n.value;if(i.type!==o0.NodeTypes.String)return;let s=i.value,a=r.markup.args.filter(f=>!QX.has(f.name)),o=[];for(let f of a){if(f.value.type!==o0.NodeTypes.String)return;o.push(`${f.name}=${f.value.value}`)}o.sort();let c=o.join(","),l=`${s}::${c}`;t.has(l)?e.report({message:`The id '${s}' is already being used by another static block`,startIndex:i.position.start,endIndex:i.position.end,suggest:[]}):t.add(l)}}}}});var fR=x(Qh=>{"use strict";p();Object.defineProperty(Qh,"__esModule",{value:!0});Qh.UnknownFilter=void 0;var lR=G();Qh.UnknownFilter={meta:{code:"UnknownFilter",name:"Prevent use of unknown filters",docs:{description:"This check is aimed at preventing the use of unknown filters.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unknown-filter",recommended:!0},type:lR.SourceCodeType.LiquidHtml,severity:lR.Severity.ERROR,schema:{},targets:[]},create(e){return e.themeDocset?{async LiquidFilter(t){(await e.themeDocset.filters()).some(n=>n.name===t.name)||e.report({message:`Unknown filter '${t.name}' used.`,startIndex:t.position.start+1,endIndex:t.position.end})}}:{}}}});var pR=x(Yh=>{"use strict";p();Object.defineProperty(Yh,"__esModule",{value:!0});Yh.UnrecognizedContentForArguments=void 0;var dR=G(),c0=wn(),u0=Lu();Yh.UnrecognizedContentForArguments={meta:{code:"UnrecognizedContentForArguments",name:"Unrecognized ContentFor Arguments",docs:{description:"This check ensures that no unknown arguments are used when rendering a static block.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-content-for-arguments"},type:dR.SourceCodeType.LiquidHtml,severity:dR.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Set([...u0.RESERVED_CONTENT_FOR_ARGUMENTS,...u0.REQUIRED_CONTENT_FOR_ARGUMENTS]);return{async ContentForMarkup(r){let n=(0,c0.getBlockName)(r);if(!n)return;let i=await(0,c0.getLiquidDocParams)(e,`blocks/${n}.liquid`);if(!i)return;let s=r.args.filter(a=>!i.has(a.name)).filter(a=>!t.has(a.name)).filter(a=>!a.name.startsWith(u0.CLOSEST_ARGUMENT));(0,c0.reportUnknownArguments)(e,r,s,n)}}}}});var mR=x(Xh=>{"use strict";p();Object.defineProperty(Xh,"__esModule",{value:!0});Xh.UnrecognizedRenderSnippetArguments=void 0;var hR=G(),l0=wn();Xh.UnrecognizedRenderSnippetArguments={meta:{code:"UnrecognizedRenderSnippetArguments",name:"Unrecognized Render Snippet Arguments",aliases:["UnrecognizedRenderSnippetParams"],docs:{description:"This check ensures that no unknown arguments are used when rendering a snippet.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-render-snippet-arguments"},type:hR.SourceCodeType.LiquidHtml,severity:hR.Severity.WARNING,schema:{},targets:[]},create(e){function t(r,n,i){let s=r.alias,a=r.variable;if(s&&!n.has(s.value)&&a){let o=a.position.start;e.report({message:`Unknown argument '${s.value}' in render tag for snippet '${i}'.`,startIndex:o,endIndex:s.position.end,suggest:[{message:`Remove '${s.value}'`,fix:c=>{if(a)return c.remove(a.position.start-1,s.position.end)}}]})}}return{async RenderMarkup(r){let n=(0,l0.getSnippetName)(r);if(!n)return;let i=await(0,l0.getLiquidDocParams)(e,`snippets/${n}.liquid`);if(!i)return;let s=r.args.filter(a=>!i.has(a.name));t(r,i,n),(0,l0.reportUnknownArguments)(e,r,s,n)}}}}});var vR=x(em=>{"use strict";p();Object.defineProperty(em,"__esModule",{value:!0});em.UnusedAssign=void 0;var _R=oe(),gR=G(),yR=Be();em.UnusedAssign={meta:{code:"UnusedAssign",name:"Prevent unused assigns",docs:{description:"This check exists to prevent bloat in themes by surfacing variable definitions that are not used.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unused-assign"},type:gR.SourceCodeType.LiquidHtml,severity:gR.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Map,r=new Set;function n(i){i.type===_R.NodeTypes.VariableLookup&&r.add(i.name)}return{async LiquidTag(i,s){(0,yR.isWithinRawTagThatDoesNotParseItsContents)(s)||(YX(i)||Zh(i)&&i.markup.name)&&t.set(i.markup.name,i)},async VariableLookup(i,s){if((0,yR.isWithinRawTagThatDoesNotParseItsContents)(s))return;let a=s.at(-1);a&&Zh(a)||n(i)},async onCodePathEnd(){for(let[i,s]of t.entries())!r.has(i)&&!i.startsWith("_")&&e.report({message:`The variable '${i}' is assigned but not used`,startIndex:Zh(s)?s.blockStartPosition.start:s.position.start,endIndex:Zh(s)?s.blockStartPosition.end:s.position.end,suggest:[{message:`Remove the unused variable '${i}'`,fix:a=>a.remove(s.position.start,s.position.end)}]})}}}};function YX(e){return e.name==="assign"&&typeof e.markup!="string"}function Zh(e){return e.type==_R.NodeTypes.LiquidTag&&e.name==="capture"&&typeof e.markup!="string"}});var kR=x(tm=>{"use strict";p();Object.defineProperty(tm,"__esModule",{value:!0});tm.UnsupportedDocTag=void 0;var bR=G(),XX=Ls();tm.UnsupportedDocTag={meta:{code:"UnsupportedDocTag",name:"Prevent unsupported doc tag usage",docs:{description:"This check exists to prevent use of `doc` tag outside of snippet file.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unsupported-doc-tag"},type:bR.SourceCodeType.LiquidHtml,severity:bR.Severity.ERROR,schema:{},targets:[]},create(e){return(0,XX.filePathSupportsLiquidDoc)(e.file.uri)?{}:{async LiquidRawTag(r){r.name==="doc"&&e.report({message:"The `doc` tag can only be used within a snippet or block.",startIndex:r.position.start,endIndex:r.position.end,suggest:[{message:"Remove unsupported `doc` tag",fix:n=>n.remove(r.position.start,r.position.end)}]})}}}}});var TR=x(rm=>{"use strict";p();Object.defineProperty(rm,"__esModule",{value:!0});rm.UnsupportedFilterArguments=void 0;var f0=oe(),SR=G(),ZX=[f0.NamedTags.render,f0.NamedTags.include,f0.NamedTags.content_for];function eZ(e){let t=null;for(let r=0;r<e.length;r++){let n=e[r];if(t){n===t&&(t=null);continue}if(n==="'"||n==='"'){t=n;continue}if(n==="|")return r}return-1}rm.UnsupportedFilterArguments={meta:{code:"UnsupportedFilterArguments",name:"Unsupported Filter Arguments",docs:{description:"This check warns against using filters on values passed as arguments to a 'render', 'include', or 'content_for' tag. Filters are not applied in that position and the value is passed through unchanged, which silently produces incorrect output.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unsupported-filter-arguments"},type:SR.SourceCodeType.LiquidHtml,severity:SR.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(!ZX.includes(t.name)||typeof t.markup!="string")return;let r=eZ(t.markup);if(r===-1)return;let n=t.source.indexOf(t.markup,t.position.start);if(n===-1)return;let i=n+r,s=n+t.markup.length;e.report({message:`Filters cannot be used on arguments passed to the '${t.name}' tag. Apply the filter beforehand (e.g. with {% assign %}) and pass the result instead.`,startIndex:i,endIndex:s})}}}}});var xR=x(nm=>{"use strict";p();Object.defineProperty(nm,"__esModule",{value:!0});nm.UnusedDocParam=void 0;var tZ=oe(),wR=G(),rZ=Be();nm.UnusedDocParam={meta:{code:"UnusedDocParam",name:"Prevent unused doc parameters",docs:{description:"This check exists to ensure any parameters defined in the `doc` tag are used within the snippet.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unused-doc-param"},type:wR.SourceCodeType.LiquidHtml,severity:wR.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Map,r=new Set;return{async LiquidDocParamNode(n){t.set(n.paramName.value,n)},async VariableLookup(n,i){n.type===tZ.NodeTypes.VariableLookup&&n.name&&!(0,rZ.isLoopScopedVariable)(n.name,i)&&r.add(n.name)},async onCodePathEnd(){for(let[n,i]of t.entries())r.has(n)||e.report({message:`The parameter '${n}' is defined but not used in this file.`,startIndex:i.position.start,endIndex:i.position.end,suggest:[{message:`Remove unused parameter '${n}'`,fix:s=>s.remove(i.position.start,i.position.end)}]})}}}}});var AR=x(im=>{"use strict";p();Object.defineProperty(im,"__esModule",{value:!0});im.ValidContentForArguments=void 0;var nZ=oe(),ER=G(),d0=Lu();im.ValidContentForArguments={meta:{code:"ValidContentForArguments",name:"Prevent the use of invalid arguments to the content_for tag",docs:{description:"This check is aimed at preventing the use of invalid arguments for the content_for tag.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-content-for-arguments",recommended:!0},type:ER.SourceCodeType.LiquidHtml,severity:ER.Severity.ERROR,schema:{},targets:[]},create(e){let t={blocks:r=>{let n=r.args.filter(i=>!i.name.startsWith(d0.CLOSEST_ARGUMENT));for(let i of n)e.report({message:`{% content_for "blocks" %} only accepts 'closest.*' arguments`,startIndex:i.position.start,endIndex:i.position.end})},block:r=>{for(let i of d0.REQUIRED_CONTENT_FOR_ARGUMENTS){let s=r.args.find(o=>o.name===i);if(!s){e.report({message:`{% content_for "block" %} requires a '${i}' argument`,startIndex:r.position.start,endIndex:r.position.end,suggest:[]});continue}let a=s.value;a.type!==nZ.NodeTypes.String&&e.report({message:`The '${i}' argument should be a string`,startIndex:a.position.start,endIndex:a.position.end,suggest:[]})}let n=r.args.filter(i=>d0.RESERVED_CONTENT_FOR_ARGUMENTS.includes(i.name));for(let i of n)e.report({message:`{% content_for "block" %} doesn't support '${i.name}' because it's a reserved argument.`,startIndex:i.position.start,endIndex:i.position.end})}};return{async LiquidTag(r){if(r.name!=="content_for"||typeof r.markup=="string")return;let n=r.markup.contentForType.value,i=t[n];i&&i(r.markup)}}}}});var NR=x(am=>{"use strict";p();Object.defineProperty(am,"__esModule",{value:!0});am.ValidContentForArgumentTypes=void 0;var OR=G(),sm=wn();am.ValidContentForArgumentTypes={meta:{code:"ValidContentForArgumentTypes",name:"Valid ContentFor Argument Types",docs:{description:"This check ensures that arguments passed to static blocks match the expected types defined in the liquidDoc header if present.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-content-for-argument-types"},type:OR.SourceCodeType.LiquidHtml,severity:OR.Severity.WARNING,schema:{},targets:[]},create(e){return{async ContentForMarkup(t){let r=(0,sm.getBlockName)(t);if(!r)return;let n=await(0,sm.getLiquidDocParams)(e,`blocks/${r}.liquid`);if(!n)return;let i=(0,sm.findTypeMismatchParams)(n,t.args);(0,sm.reportTypeMismatches)(e,i,n)}}}}});var LR=x(om=>{"use strict";p();Object.defineProperty(om,"__esModule",{value:!0});om.ValidBlockTarget=void 0;var p0=We(),iZ=ct(),PR=G(),Lr=qe();om.ValidBlockTarget={meta:{code:"ValidBlockTarget",name:"Validate block targeting in presets",docs:{description:"Ensures block types only reference valid block types and respect parent-child relationships",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-block-target"},type:PR.SourceCodeType.LiquidHtml,severity:PR.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,iZ.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error||!n)return;let{staticBlockDefs:a}=n,{rootLevelThemeBlocks:o,rootLevelLocalBlocks:c,presetLevelBlocks:l,defaultLevelBlocks:f,hasRootBlocksDeclaration:m}=(0,Lr.getBlocks)(i);if(c.length>0)return;let d=!1;if(await Promise.all(o.map(async({node:g,path:_})=>{let k=(0,p0.nodeAtPath)(s,_);await(0,Lr.validateBlockFileExistence)(g.type,e)||(d=!0,(0,Lr.reportWarning)(h0(g.type),r,k,e))})),!d){for(let[g,_]of Object.entries(l))parseInt(g,10)===0&&await Promise.all(_.map(async({node:b,path:v})=>{let w=(0,p0.nodeAtPath)(s,v),T="id"in b?b.id:v.at(-2),y=!!b.static;if((0,Lr.isInvalidPresetBlock)(T,b,o,a,m)){let O=y?`Could not find a static block of type "${b.type}" with id "${T}" in this file.`:qR(b);(0,Lr.reportWarning)(O,r,w,e)}await(0,Lr.validateBlockFileExistence)(b.type,e)?"blocks"in b&&b.blocks&&await(0,Lr.validateNestedBlocks)(e,b,b.blocks,v.slice(0,-1),r,s):(0,Lr.reportWarning)(h0(b.type),r,w,e)}));await Promise.all(f.map(async({node:g,path:_})=>{let k=(0,p0.nodeAtPath)(s,_);(0,Lr.isInvalidDefaultBlock)(g,o,m)&&(0,Lr.reportWarning)(qR(g),r,k,e),await(0,Lr.validateBlockFileExistence)(g.type,e)||(0,Lr.reportWarning)(h0(g.type),r,k,e)}))}}}}};function qR(e){return e.type.startsWith("_")?`Theme block type "${e.type}" is a private block so it must be explicitly allowed in "blocks" at the root of this schema.`:`Theme block type "${e.type}" must be allowed in "blocks" at the root of this schema.`}function h0(e){return`Theme block 'blocks/${e}.liquid' does not exist.`}});var MR=x(cm=>{"use strict";p();Object.defineProperty(cm,"__esModule",{value:!0});cm.ValidScopedCSSClass=void 0;var CR=G(),sZ=Ap(),Cu=Dd(),m0=Hd();async function IR(e,t,r){let n=new Set;try{let i=t("assets"),a=(await e.readDirectory(i)).filter(([c])=>c.endsWith(".css")).map(([c])=>c),o=await Promise.all(a.map(c=>r(c)));for(let c of o)for(let l of c)n.add(l)}catch{}return n}async function aZ(e,t,r){let n=new Set,i=await IR(e,t,r);for(let s of i)n.add(s);try{let s=t(""),a=await(0,sZ.recursiveReadDirectory)(e,s,([c])=>c.endsWith(".liquid")),o=await Promise.all(a.map(c=>r(c)));for(let c of o)for(let l of c)n.add(l)}catch{}return n}cm.ValidScopedCSSClass={meta:{code:"ValidScopedCSSClass",name:"Validates CSS classes used in class attributes are defined in an in-scope stylesheet",docs:{description:"Reports CSS classes used in HTML class attributes that are not defined in any in-scope stylesheet tag or CSS asset file.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-scoped-css-class"},type:CR.SourceCodeType.LiquidHtml,severity:CR.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Set,r=[];return{async LiquidRawTag(n){if(n.name==="stylesheet")for(let i of(0,Cu.extractCSSClassNames)(n.body.value))t.add(i)},async HtmlElement(n){(0,Cu.collectUsedClasses)(n.attributes,r)},async HtmlVoidElement(n){(0,Cu.collectUsedClasses)(n.attributes,r)},async HtmlSelfClosingElement(n){(0,Cu.collectUsedClasses)(n.attributes,r)},async HtmlRawNode(n){n.name==="svg"&&(0,Cu.collectUsedClassesFromSvg)(n.attributes,n.body.value,n.body.position.start,r)},async onCodePathEnd(){if(r.length===0)return;let{getReferences:n,getDependencies:i,getCSSClassesForURI:s,fs:a,toUri:o}=e;if(!n||!i||!s)return;let c=new Set(t),l=await IR(a,o,s);for(let v of l)c.add(v);let f=await(0,m0.getAncestorUris)(e.file.uri,n),m=await Promise.all(f.map(v=>s(v)));for(let v of m)for(let w of v)c.add(w);let d=[e.file.uri,...f],g=[];for(let v of d){let w=await(0,m0.getRenderedSnippetUris)(v,i);g.push(...w)}let _=await(0,m0.getAllSnippetDescendantUris)(g,i),k=await Promise.all(_.map(v=>s(v)));for(let v of k)for(let w of v)c.add(w);let b=await aZ(a,o,s);for(let{className:v,startIndex:w,endIndex:T}of r)b.has(v)&&!c.has(v)&&e.report({message:`CSS class '${v}' may be defined outside the scope of this file.`,startIndex:w,endIndex:T})}}}}});var DR=x(um=>{"use strict";p();Object.defineProperty(um,"__esModule",{value:!0});um.ValidHTMLTranslation=void 0;var RR=G(),oZ=oe();um.ValidHTMLTranslation={meta:{code:"ValidHTMLTranslation",name:"Valid HTML Translation",docs:{description:"This check exists to prevent invalid HTML inside translations.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-html-translation",recommended:!0},type:RR.SourceCodeType.JSON,severity:RR.Severity.WARNING,schema:{},targets:[]},create(e){return e.toRelativePath(e.file.uri).startsWith("locales/")?{async Literal(r){let n=/<[^>]+>/;if(!(typeof r.value!="string"||!n.test(r.value)))try{(0,oZ.toLiquidHtmlAST)(r.value)}catch(i){let s=r.loc,a={message:`${i}.`,startIndex:s.start.offset,endIndex:s.end.offset};e.report(a)}}}:{}}}});var FR=x(lm=>{"use strict";p();Object.defineProperty(lm,"__esModule",{value:!0});lm.ValidJSON=void 0;var jR=G();lm.ValidJSON={meta:{code:"ValidJSON",aliases:["ValidJson"],name:"Enforce valid JSON",docs:{description:"This check exists to prevent invalid JSON files in themes. Will check against schema if available.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/json-syntax-error"},type:jR.SourceCodeType.JSON,severity:jR.Severity.ERROR,schema:{},targets:[]},create(e){if(!e.validateJSON)return{};let t=e.validateJSON;return{async onCodePathStart(r){let n=await t(r.uri,r.source);if(n)for(let i of n)e.report(i)}}}}});var $R=x(fm=>{"use strict";p();Object.defineProperty(fm,"__esModule",{value:!0});fm.ValidDocParamTypes=void 0;var BR=G(),VR=Ls();fm.ValidDocParamTypes={meta:{code:"ValidDocParamTypes",name:"Valid doc parameter types",docs:{description:"This check exists to ensure any parameter types defined in the `doc` tag are valid.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-doc-param-types"},type:BR.SourceCodeType.LiquidHtml,severity:BR.Severity.ERROR,schema:{},targets:[]},create(e){if(!e.themeDocset)return{};let t=e.themeDocset.liquidDrops().then(r=>new Set((0,VR.getValidParamTypes)(r).keys()));return{async LiquidDocParamNode(r){!r.paramType||(0,VR.parseParamType)(await t,r.paramType.value)||e.report({message:`The parameter type '${r.paramType.value}' is not supported.`,startIndex:r.paramType.position.start-1,endIndex:r.paramType.position.end+1,suggest:[{message:"Remove invalid parameter type",fix:i=>{r.paramType&&i.replace(r.position.start,r.position.end,r.source.slice(r.position.start,r.position.end).replace(/\s*\{\s*[^\s]+\s*\}\s*/," "))}}]})}}}}});var HR=x(dm=>{"use strict";p();Object.defineProperty(dm,"__esModule",{value:!0});dm.getBlocks=cZ;dm.reportWarning=uZ;var UR=We();function cZ(e){let t=[],r=[],n=[],i=e.blocks,s=e.presets;function a(o,c,l=!1){if(!o)return;let f="static"in o,m="name"in o;f?t.push({node:o,path:c.concat("type")}):m&&!l?r.push({node:o,path:c.concat("type")}):o.type!=="@app"&&n.push({node:o,path:c.concat("type")}),"blocks"in o&&(Array.isArray(o.blocks)?o.blocks.forEach((d,g)=>{a(d,c.concat("blocks",String(g)),l)}):typeof o.blocks=="object"&&o.blocks!==null&&Object.entries(o.blocks).forEach(([d,g])=>{a(g,c.concat("blocks",d),l)}))}return Array.isArray(i)&&i.forEach((o,c)=>{a(o,["blocks",String(c)])}),s&&s.forEach((o,c)=>{"blocks"in o&&o.blocks&&(Array.isArray(o.blocks)?o.blocks.forEach((l,f)=>{a(l,["presets",String(c),"blocks",String(f)],!0)}):typeof o.blocks=="object"&&Object.entries(o.blocks).forEach(([l,f])=>{a(f,["presets",String(c),"blocks",l],!0)}))}),{staticBlockLocations:t,localBlockLocations:r,themeBlockLocations:n,hasRootLevelThemeBlocks:n.some(o=>o.path[0]==="blocks")}}function uZ(e,t,r,n){n.report({message:e,startIndex:t+(0,UR.getLocStart)(r),endIndex:t+(0,UR.getLocEnd)(r)})}});var GR=x(hm=>{"use strict";p();Object.defineProperty(hm,"__esModule",{value:!0});hm.ValidLocalBlocks=void 0;var WR=G(),g0=We(),lZ=ct(),zR=ct(),pm=HR();hm.ValidLocalBlocks={meta:{code:"ValidLocalBlocks",name:"Prevent mixing static and local blocks in non-theme sections",docs:{description:"Ensures sections without theme block support do not mix static and local blocks",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-local-blocks"},type:WR.SourceCodeType.LiquidHtml,severity:WR.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,lZ.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error||!n)return;let{staticBlockLocations:a,localBlockLocations:o,themeBlockLocations:c,hasRootLevelThemeBlocks:l}=(0,pm.getBlocks)(i);(0,zR.isSection)(e.file.uri)&&(a.length>0&&o.length>0&&a.forEach(f=>{let m=(0,g0.nodeAtPath)(s,f.path);(0,pm.reportWarning)("Sections cannot use static theme blocks together with locally scoped blocks.",r,m,e)}),l&&o.length>0&&c.length>0&&o.forEach(f=>{let m=(0,g0.nodeAtPath)(s,f.path);(0,pm.reportWarning)("Sections cannot use theme blocks together with locally scoped blocks.",r,m,e)})),(0,zR.isBlock)(e.file.uri)&&o.length>0&&o.forEach(f=>{let m=(0,g0.nodeAtPath)(s,f.path);(0,pm.reportWarning)("Local scoped blocks are not supported in theme blocks.",r,m,e)})}}}}});var QR=x(mm=>{"use strict";p();Object.defineProperty(mm,"__esModule",{value:!0});mm.ValidRenderSnippetArgumentTypes=void 0;var JR=G(),fZ=oe(),KR=Ls(),Iu=wn();mm.ValidRenderSnippetArgumentTypes={meta:{code:"ValidRenderSnippetArgumentTypes",name:"Valid Render Snippet Argument Types",aliases:["ValidRenderSnippetParamTypes"],docs:{description:"This check ensures that arguments passed to snippet match the expected types defined in the liquidDoc header if present.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-render-snippet-argument-types"},type:JR.SourceCodeType.LiquidHtml,severity:JR.Severity.WARNING,schema:{},targets:[]},create(e){function t(r,n){if(r.alias&&r.variable?.name&&r.variable.name.type!==fZ.NodeTypes.VariableLookup){let i=n.get(r.alias.value)?.type?.toLowerCase();if(i){let s=(0,KR.inferArgumentType)(r.variable.name);if(!(0,KR.isTypeCompatible)(i,s)){let a=(0,Iu.generateTypeMismatchSuggestions)(i,r.variable.name.position.start,r.variable.name.position.end);e.report({message:`Type mismatch for argument '${r.alias.value}': expected ${i}, got ${s}`,startIndex:r.variable.name.position.start,endIndex:r.variable.name.position.end,suggest:a})}}}}return{async RenderMarkup(r){let n=(0,Iu.getSnippetName)(r);if(!n)return;let i=await(0,Iu.getLiquidDocParams)(e,`snippets/${n}.liquid`);if(!i)return;t(r,i);let s=(0,Iu.findTypeMismatchParams)(i,r.args);(0,Iu.reportTypeMismatches)(e,s,i)}}}}});var XR=x(gm=>{"use strict";p();Object.defineProperty(gm,"__esModule",{value:!0});gm.ValidSchema=void 0;var YR=G();gm.ValidSchema={meta:{code:"ValidSchema",name:"Prevent invalid JSON in {% schema %} tags",docs:{description:"This check is aimed at eliminating JSON errors in schema tags.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema"},type:YR.SourceCodeType.LiquidHtml,severity:YR.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json"||!e.validateJSON)return;let r=t.source.slice(t.blockStartPosition.end,t.blockEndPosition.start),n=await e.validateJSON(e.file.uri,r);if(n)for(let i of n)e.report({message:i.message,startIndex:t.blockStartPosition.end+i.startIndex,endIndex:t.blockStartPosition.end+i.endIndex})}}}}});var tD=x(ym=>{"use strict";p();Object.defineProperty(ym,"__esModule",{value:!0});ym.ValidSchemaName=void 0;var y0=We(),dZ=ct(),ZR=G(),pZ=qe(),eD=25;ym.ValidSchemaName={meta:{code:"ValidSchemaName",name:"Enforce valid schema name",docs:{description:"This check is aimed at ensuring a valid schema name.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema-name"},type:ZR.SourceCodeType.LiquidHtml,severity:ZR.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,dZ.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error)return;let a=i.name;if(!a)return;let o=(0,y0.nodeAtPath)(s,["name"]),c=r+(0,y0.getLocStart)(o),l=r+(0,y0.getLocEnd)(o);if(a.startsWith("t:")){let f=await e.getDefaultLocale(),m=a.replace("t:",""),d=await e.getDefaultSchemaTranslations(),g=(0,pZ.deepGet)(d,m.split("."));g!==void 0&&g.length>eD&&e.report({message:`Schema name '${g}' from 'locales/${f}.default.schema.json' is too long (max 25 characters)`,startIndex:c,endIndex:l})}else a.length>eD&&e.report({message:`Schema name '${a}' is too long (max 25 characters)`,startIndex:c,endIndex:l})}}}}});var iD=x(_m=>{"use strict";p();Object.defineProperty(_m,"__esModule",{value:!0});_m.ValidSchemaTranslations=void 0;var rD=We(),hZ=ct(),nD=G(),mZ=qe();_m.ValidSchemaTranslations={meta:{code:"ValidSchemaTranslations",name:"Reports missing translation keys in schema",docs:{description:"This check ensures all translation keys (t:) in schema have matching entries in the default schema translations file.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-schema-translations"},type:nD.SourceCodeType.LiquidHtml,severity:nD.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,hZ.getSchema)(e),{ast:i}=n??{};if(!i||i instanceof Error)return;let s=await e.getDefaultLocale(),a=await e.getDefaultSchemaTranslations(),o=_0(i);for(let{value:c,node:l}of o){let f=c.replace("t:","");if((0,mZ.deepGet)(a,f.split("."))===void 0){let d=r+(0,rD.getLocStart)(l),g=r+(0,rD.getLocEnd)(l);e.report({message:`'${c}' does not have a matching entry in 'locales/${s}.default.schema.json'`,startIndex:d,endIndex:g})}}}}}};function _0(e){let t=[];switch(e.type){case"Literal":{typeof e.value=="string"&&e.value.startsWith("t:")&&t.push({value:e.value,node:e});break}case"Object":{for(let r of e.children)t.push(..._0(r.value));break}case"Array":{for(let r of e.children)t.push(..._0(r));break}case"Property":case"Identifier":break}return t}});var uD=x(km=>{"use strict";p();Object.defineProperty(km,"__esModule",{value:!0});km.ValidSettingsKey=void 0;var sD=G(),vm=We(),aD=ct(),cD=qe();km.ValidSettingsKey={meta:{code:"ValidSettingsKey",name:"Validate settings key in presets",docs:{description:"Ensures settings key only references valid settings defined in its respective schema",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-settings-key"},type:sD.SourceCodeType.LiquidHtml,severity:sD.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=t.blockStartPosition.end,n=await(0,aD.getSchema)(e),{validSchema:i,ast:s}=n??{};if(!i||i instanceof Error||!s||s instanceof Error)return;let{rootLevelLocalBlocks:a,presetLevelBlocks:o}=(0,cD.getBlocks)(i);if(i.presets)for(let c=0;c<i.presets.length;c++){let l=(0,vm.nodeAtPath)(s,["presets",c,"settings"]);bm(e,r,l,i.settings)}if((0,aD.isSectionSchema)(n)&&"default"in i&&i.default){let c=(0,vm.nodeAtPath)(s,["default","settings"]);bm(e,r,c,i.settings),i.default.blocks?.forEach((l,f)=>{let m=(0,vm.nodeAtPath)(s,["default","blocks",f,"settings"]);oD(e,r,m,a,l)})}for(let[c,l]of Object.entries(o))l.forEach(({node:f,path:m})=>{let d=(0,vm.nodeAtPath)(s,m.slice(0,-1).concat("settings"));oD(e,r,d,a,f)})}}}};async function oD(e,t,r,n,i){if(n.length>0){let s=n.find(o=>o.node.type===i.type);if(!s)return;let a=s.node;bm(e,t,r,a.settings)}else{let s=await e.getBlockSchema?.(i.type),{validSchema:a}=s??{};if(!a||a instanceof Error)return;bm(e,t,r,a.settings,i)}}function bm(e,t,r,n,i){if(!(!r||r.type!=="Object")){for(let s of r.children)if(!n?.find(o=>o?.id===s.key.value)){let o=i?`Setting '${s.key.value}' does not exist in 'blocks/${i.type}.liquid'.`:`Setting '${s.key.value}' does not exist in schema.`;(0,cD.reportWarning)(o,t,s.key,e)}}}});var mD=x(Sm=>{"use strict";p();Object.defineProperty(Sm,"__esModule",{value:!0});Sm.ValidStandardEventData=void 0;var Is=oe(),lD=G(),gZ="standard_event_data",fD="context",dD="view",v0={product:["page","search","collection","dialog","recommendation"],cart:["page","dialog"]},yZ=["collection"],_Z=[...new Set(Object.values(v0).flat())];function pD(e,t){return e.type===Is.NodeTypes.VariableLookup?!1:e.type!==Is.NodeTypes.String||!t.includes(e.value)}function hD(e){return e.type===Is.NodeTypes.String?` '${e.value}'`:""}function vZ(e,t){if(t?.type!==Is.NodeTypes.LiquidVariable||t.filters[0]!==e)return;let r=t.expression;if(r.type===Is.NodeTypes.VariableLookup&&!(r.lookups.length>0))return r.name??void 0}Sm.ValidStandardEventData={meta:{code:"ValidStandardEventData",name:"Prevent the use of invalid arguments to the standard_event_data filter",docs:{description:"This check is aimed at preventing the use of invalid arguments for the standard_event_data filter.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-standard-event-data",recommended:!0},type:lD.SourceCodeType.LiquidHtml,severity:lD.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidFilter(t,r){if(t.name!==gZ)return;let n=t.args.find(c=>c.type!==Is.NodeTypes.NamedArgument);n&&pD(n,[dD])&&e.report({message:`Unsupported event type${hD(n)}. The only supported event type is '${dD}'.`,startIndex:n.position.start,endIndex:n.position.end});let i=vZ(t,r[r.length-1]);if(i&&yZ.includes(i))return;let a=t.args.find(c=>c.type===Is.NodeTypes.NamedArgument&&c.name===fD)?.value;if(!a)return;let o=i&&v0[i]||_Z;if(pD(a,o)){let c=i&&v0[i]?` for ${i}`:"";e.report({message:`Unsupported context${hD(a)}${c}. Valid values: ${o.join(", ")}. The '${fD}' argument can also be omitted.`,startIndex:a.position.start,endIndex:a.position.end})}}}}}});var yD=x(Tm=>{"use strict";p();Object.defineProperty(Tm,"__esModule",{value:!0});Tm.ValidStaticBlockType=void 0;var bZ=oe(),gD=G(),kZ=Vr(),SZ=Ch();Tm.ValidStaticBlockType={meta:{code:"ValidStaticBlockType",name:"Prevent use of type that is not valid for static blocks",docs:{description:"This check is aimed at preventing the use of an invalid type for blocks rendered statically.",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-static-block-type",recommended:!0},type:gD.SourceCodeType.LiquidHtml,severity:gD.Severity.ERROR,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="content_for"||!(0,SZ.isContentForBlock)(t.markup))return;let r=t.markup.args.find(o=>o.name==="type");if(!r)return;let n=r.value;if(n.type!==bZ.NodeTypes.String)return;let i=n.value,s=`blocks/${i}.liquid`;await(0,kZ.doesFileExist)(e,s)||e.report({message:`'blocks/${i}.liquid' does not exist`,startIndex:n.position.start,endIndex:n.position.end,suggest:[]})}}}}});var _D=x(It=>{"use strict";p();Object.defineProperty(It,"__esModule",{value:!0});It.offsetAdjust=It.adjustedSuffix=It.adjustedPrefix=It.variableExpressionMatcher=void 0;It.getVariableLookupsInExpression=xZ;It.validateLookup=EZ;It.getGlobalSettings=OZ;var b0=oe(),TZ=We(),wZ=gn();It.variableExpressionMatcher=/{{(.+?)}}/;It.adjustedPrefix="{% if ";It.adjustedSuffix=" %}{% endif %}";It.offsetAdjust=2-It.adjustedPrefix.length;function xZ(e){let t=It.variableExpressionMatcher.exec(e);if(t==null)return{warning:'Invalid visible_if expression. It should take the form "{{ <expression> }}".'};let r=t[1],n=`${It.adjustedPrefix}${r}${It.adjustedSuffix}`;try{let i=(0,b0.toLiquidHtmlAST)(n,{mode:"strict",allowUnclosedDocumentNode:!1});if(i.children.length!==1)throw new Error("Unexpected child count for DocumentNode");let s=i.children[0];if(s.type!=="LiquidTag"||s.name!=="if")throw new Error("Expected DocumentNode to contain 'if' tag");let a=s.markup;if(typeof a=="string")return{warning:"Syntax error: cannot parse visible_if expression."};if(a.type===b0.NodeTypes.LiquidLiteral&&["true","false"].includes(a.keyword))return null;let o=(0,wZ.visit)(s,{VariableLookup:c=>c});return o.length===0?{warning:"visible_if expression contains no references to any settings. This is likely an error."}:o}catch(i){return i instanceof SyntaxError?{warning:"Syntax error: cannot parse visible_if expression."}:{warning:String(i)}}}function EZ(e,t){let r=AZ(e),n=[],i=t;for(;r.length>0;){let s=r.shift();n.push(s);let a=i[s];if(!a)return`Invalid variable: "${n.join(".")}" was not found.`;if(typeof a=="boolean")return r.length>0?`Invalid variable: "${n.join(".")}" refers to a variable, but is being used here as a namespace.`:null;i=a}return`Invalid variable: "${n.join(".")}" refers to a namespace, but is being used here as a variable.`}function AZ(e){let t=e.lookups.map(r=>{if(r.type!==b0.NodeTypes.String)throw new Error(`Expected lookups to be String nodes: ${JSON.stringify(r)}`);return r.value});return[e.name,...t]}async function OZ(e){let t=[];try{let r=e.toUri("config/settings_schema.json"),n=await e.fs.readFile(r),i=(0,TZ.parseJSON)(n);if(Array.isArray(i))for(let s of i)"settings"in s&&Array.isArray(s.settings)&&t.push(...s.settings.map(a=>a.id).filter(a=>a))}catch(r){console.error("Error fetching global settings:",r)}return t}});var bD=x(_o=>{"use strict";p();Object.defineProperty(_o,"__esModule",{value:!0});_o.ValidVisibleIfSettingsSchema=_o.ValidVisibleIf=void 0;var S0=G(),k0=We(),yo=ct(),NZ=qe(),En=_D(),vD={code:"ValidVisibleIf",name:"Validate visible_if expressions",docs:{description:"Ensures visible_if expressions are well-formed and only reference settings keys that are defined",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-visible-if"},severity:S0.Severity.ERROR,schema:{},targets:[]};_o.ValidVisibleIf={meta:{...vD,type:S0.SourceCodeType.LiquidHtml},create(e){return{async LiquidRawTag(t){if(t.name!=="schema"||t.body.kind!=="json")return;let r=await(0,yo.getSchema)(e),{validSchema:n,ast:i}=r??{};if(!n||n instanceof Error||!n.settings?.some(l=>"visible_if"in l)||!i||i instanceof Error)return;let s=t.blockStartPosition.end,a=Object.fromEntries((await(0,En.getGlobalSettings)(e)).map(l=>[l,!0])),o=Object.fromEntries(n.settings.map(l=>[l.id,!0])),c={settings:a};(0,yo.isSectionSchema)(r)?c.section={settings:o}:(0,yo.isBlockSchema)(r)&&(c.block={settings:o});for(let[l,f]of n.settings.entries()){if(!("visible_if"in f)||typeof f.visible_if!="string")continue;let m=(0,k0.nodeAtPath)(i,["settings",l,"visible_if"]),d=(0,En.getVariableLookupsInExpression)(f.visible_if);if(d===null)continue;if("warning"in d){(0,NZ.reportWarning)(d.warning,s,m,e);continue}let g=(_,k)=>{typeof _=="string"&&e.report({message:_,startIndex:s+(0,k0.getLocStart)(m)+k.position.start+En.offsetAdjust+1,endIndex:s+(0,k0.getLocStart)(m)+k.position.end+En.offsetAdjust+1})};for(let _ of d)_.name==="section"&&(0,yo.isBlockSchema)(r)||(_.name==="section"&&!(0,yo.isSectionSchema)(r)?g(`Invalid visible_if: can't refer to "section" when not in a section or block file.`,_):_.name==="block"&&!(0,yo.isBlockSchema)(r)?g(`Invalid visible_if: can't refer to "block" when not in a block file.`,_):g((0,En.validateLookup)(_,c),_))}}}}};_o.ValidVisibleIfSettingsSchema={meta:{...vD,type:S0.SourceCodeType.JSON},create(e){return e.toRelativePath(e.file.uri)!=="config/settings_schema.json"?{}:{async Property(r){if(r.key.value!=="visible_if"||r.value.type!=="Literal")return;let n=r.value.value;if(typeof n!="string")return;let i=r.value.loc.start.offset,s=(0,En.getVariableLookupsInExpression)(n);if(s===null)return;if("warning"in s){e.report({message:s.warning,startIndex:r.value.loc.start.offset,endIndex:r.value.loc.end.offset});return}let o={settings:Object.fromEntries((await(0,En.getGlobalSettings)(e)).map(l=>[l,!0]))},c=(l,f)=>{typeof l=="string"&&e.report({message:l,startIndex:i+f.position.start+En.offsetAdjust+1,endIndex:i+f.position.end+En.offsetAdjust+1})};for(let l of s)l.name==="section"?c(`Invalid visible_if: can't refer to "section" when not in a section file.`,l):l.name==="block"?c(`Invalid visible_if: can't refer to "block" when not in a block file.`,l):c((0,En.validateLookup)(l,o),l)}}}}});var SD=x(xm=>{"use strict";p();Object.defineProperty(xm,"__esModule",{value:!0});xm.VariableName=void 0;var PZ=oe(),T0=G(),wm=Zw(),qZ=e=>{let t=(0,wm.camelCase)(e);return t.charAt(0).toUpperCase()+t.slice(1)},LZ=e=>e.name==="assign"&&typeof e.markup!="string",CZ=e=>e.type==PZ.NodeTypes.LiquidTag&&e.name==="capture"&&typeof e.markup!="string",IZ={camelCase:wm.camelCase,PascalCase:qZ,snake_case:wm.snakeCase,"kebab-case":wm.kebabCase},MZ={format:T0.SchemaProp.string("snake_case")},kD=e=>e.replace(/[-_]?\d[-_]?/g,"");xm.VariableName={meta:{code:"VariableName",name:"Invalid variable naming format",docs:{description:"This check is aimed at using certain variable naming conventions",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/variable-name",recommended:!0},type:T0.SourceCodeType.LiquidHtml,severity:T0.Severity.WARNING,schema:MZ,targets:[]},create(e){let t=n=>{if(!n.markup.name)return{valid:!1};let i=IZ[e.settings.format],s=i(n.markup.name);return{valid:kD(n.markup.name)===kD(s),suggestion:s}},r=n=>e.report({message:`The variable '${n.markup.name}' uses wrong naming format`,startIndex:n.markup.position.start,endIndex:n.markup.position.end,suggest:[{message:`Change variable '${n.markup.name}' to '${t(n).suggestion}'`,fix:i=>{let{position:s,name:a,source:o}=n.markup;return i.replace(s.start,s.end,o.slice(s.start,s.end).replace(a,t(n).suggestion))}}]});return{async LiquidTag(n){(LZ(n)||CZ(n)&&n.markup.name)&&(t(n).valid||r(n))}}}}});var TD=x(Em=>{"use strict";p();Object.defineProperty(Em,"__esModule",{value:!0});Em.AppBlockMissingSchema=void 0;var w0=G();Em.AppBlockMissingSchema={meta:{code:"AppBlockMissingSchema",name:"Missing schema definitions in theme app extensions app blocks should be avoided",docs:{description:"Report missing schema definitions in theme app extensions app blocks",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/app-block-missing-schema"},severity:w0.Severity.ERROR,type:w0.SourceCodeType.LiquidHtml,schema:{},targets:[w0.ConfigTarget.ThemeAppExtension]},create(e){let t=!1;return e.toRelativePath(e.file.uri).startsWith("blocks/")?{async LiquidRawTag(n){n.name=="schema"&&(t=!0)},async onCodePathEnd(){t||e.report({message:"The schema does not exist",startIndex:0,endIndex:0})}}:{}}}});var wD=x(Am=>{"use strict";p();Object.defineProperty(Am,"__esModule",{value:!0});Am.UniqueSettingIds=void 0;var wi=G();Am.UniqueSettingIds={meta:{code:"UniqueSettingId",name:"Prevent duplicate Ids in setting_schema",docs:{description:"This check is aimed at eliminating duplicate Ids in settings_schema.json",recommended:!0},type:wi.SourceCodeType.JSON,severity:wi.Severity.ERROR,schema:{},targets:[]},create(e){return{async onCodePathEnd(t){if((0,wi.isArrayNode)(t.ast)){let r=[];for(let s of t.ast.children)if((0,wi.isObjectNode)(s)&&s.children){let a=s.children.find(o=>o.key.value==="settings");if(a&&a.value&&(0,wi.isArrayNode)(a.value)){for(let o of a.value.children)if((0,wi.isObjectNode)(o)&&o.children){let c=o.children.find(l=>l.key.value==="id");(0,wi.isPropertyNode)(c)&&r.push(c)}}}let n=new Map;for(let s of r)if((0,wi.isLiteralNode)(s.value)){let a=s.value.value;typeof a=="string"&&(n.has(a)||n.set(a,[]),n.get(a).push(s))}let i=Array.from(n.entries()).filter(([s,a])=>a.length>1);if(i.length>0)for(let[s,a]of i){let o=a[a.length-1];e.report({message:`Duplicate setting id found: "${s}"`,startIndex:o.loc.start.offset,endIndex:o.loc.end.offset})}}}}}}});var ED=x(er=>{"use strict";p();Object.defineProperty(er,"__esModule",{value:!0});er.StylesheetOncePerFile=er.StylesheetTagInWrongFile=er.JavascriptOncePerFile=er.JavascriptTagInWrongFile=er.SchemaOncePerFile=er.SchemaSectionOrBlockOnly=void 0;var x0=ct(),Om=G();function xD(e){return e[0].toUpperCase()+e.slice(1)}function RZ({tagName:e,code:t,message:r}){return{meta:{code:t,name:t,docs:{description:r,recommended:!0},type:Om.SourceCodeType.LiquidHtml,severity:Om.Severity.ERROR,schema:{},targets:[]},create(n){return{async LiquidRawTag(i){i.name===e&&n.report({message:r,startIndex:i.blockStartPosition.start,endIndex:i.blockStartPosition.end})}}}}}function DZ(e,{allowSnippets:t}){let r=t?"section, block, or snippet":"section or block",n=`${xD(e)}${t?"TagInWrongFile":"SectionOrBlockOnly"}`;return RZ({tagName:e,code:n,message:`{% ${e} %} is only valid in ${r} files.`})}function E0(e){let t=`${xD(e)}OncePerFile`,r=`{% ${e} %} can only appear once per file.`;return{meta:{code:t,name:t,docs:{description:r,recommended:!0},type:Om.SourceCodeType.LiquidHtml,severity:Om.Severity.ERROR,schema:{},targets:[]},create(n){let i=0;return{async LiquidRawTag(s){s.name===e&&(i+=1,i!==1&&n.report({message:r,startIndex:s.blockStartPosition.start,endIndex:s.blockStartPosition.end}))}}}}}function A0(e,{allowSnippets:t}){let r=DZ(e,{allowSnippets:t});return{...r,create(n){let i=n.file.uri;return(0,x0.isSection)(i)||(0,x0.isBlock)(i)?{}:t&&(0,x0.isSnippet)(i)?{}:r.create(n)}}}er.SchemaSectionOrBlockOnly=A0("schema",{allowSnippets:!1});er.SchemaOncePerFile=E0("schema");er.JavascriptTagInWrongFile=A0("javascript",{allowSnippets:!0});er.JavascriptOncePerFile=E0("javascript");er.StylesheetTagInWrongFile=A0("stylesheet",{allowSnippets:!0});er.StylesheetOncePerFile=E0("stylesheet")});var Mu=x(Nm=>{"use strict";p();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.isSystemArg=BZ;Nm.getBlockDocParams=VZ;var jZ=zh(),FZ=oe();function BZ(e){return e.startsWith("block.")}async function VZ(e,t){let r=`blocks/${t}.liquid`,n=e.toUri(r),i;try{i=await e.fs.readFile(n)}catch{return}let s;try{s=(0,FZ.toLiquidHtmlAST)(i)}catch{return}let o=(0,jZ.extractDocDefinition)(n,s)?.liquidDoc?.parameters;if(!(!o||o.length===0))return new Map(o.map(c=>[c.name,c]))}});var N0=x(O0=>{"use strict";p();Object.defineProperty(O0,"__esModule",{value:!0});O0.getBlockSchemaSettings=WZ;var Pm=G(),$Z=Ja(),UZ=gn(),HZ=oe();async function WZ(e,t){let r=e.toUri(`blocks/${t}.liquid`),n;try{n=await e.fs.readFile(r)}catch{return}let i;try{i=(0,HZ.toLiquidHtmlAST)(n)}catch{return}let s=(0,UZ.visit)(i,{LiquidRawTag(l){if(l.name==="schema")return l}})[0];if(!s)return;let a=(0,$Z.toJSONAST)(s.body.value);if(a instanceof Error||!(0,Pm.isObjectNode)(a))return;let o=a.children.find(l=>l.key.value==="settings");if(!o||!(0,Pm.isArrayNode)(o.value))return new Set;let c=new Set;for(let l of o.value.children){if(!(0,Pm.isObjectNode)(l))continue;let f=l.children.find(m=>m.key.value==="id");f&&(0,Pm.isLiteralNode)(f.value)&&typeof f.value.value=="string"&&c.add(f.value.value)}return c}});var OD=x(qm=>{"use strict";p();Object.defineProperty(qm,"__esModule",{value:!0});qm.BlockArgumentSettingCollision=void 0;var AD=G(),zZ=Mu(),GZ=N0();qm.BlockArgumentSettingCollision={meta:{code:"BlockArgumentSettingCollision",name:"Block Argument Setting Collision",docs:{description:"Reports a plain block tag argument whose name matches a setting id in the target block's schema. The author likely intended block.settings.<name>. May overlap with UnrecognizedBlockArguments, which reports the same argument as undeclared.",recommended:!0},type:AD.SourceCodeType.LiquidHtml,severity:AD.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="block"||typeof t.markup=="string")return;let r=t.markup,n=r.name.value,i=await(0,GZ.getBlockSchemaSettings)(e,n);if(i)for(let s of r.args)(0,zZ.isSystemArg)(s.name)||i.has(s.name)&&e.report({message:`The argument '${s.name}' matches a setting on block '${n}'. Did you mean 'block.settings.${s.name}'?`,startIndex:s.position.start,endIndex:s.position.end})}}}}});var PD=x(Lm=>{"use strict";p();Object.defineProperty(Lm,"__esModule",{value:!0});Lm.DuplicateBlockArguments=void 0;var ND=G();Lm.DuplicateBlockArguments={meta:{code:"DuplicateBlockArguments",name:"Duplicate Block Arguments",docs:{description:"Reports duplicate argument names in a block tag.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/duplicate-block-arguments"},type:ND.SourceCodeType.LiquidHtml,severity:ND.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="block"||typeof t.markup=="string")return;let r=t.markup,n=r.name.value,i=new Set;for(let s of r.args)i.has(s.name)?e.report({message:`Duplicate argument '${s.name}' in block tag for '${n}'.`,startIndex:s.position.start,endIndex:s.position.end}):i.add(s.name)}}}}});var qD=x(Ms=>{"use strict";p();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.ExcessiveSettingsCount=Ms.TOLERATED_SETTINGS_COUNT=void 0;var vo=G(),JZ=Ja(),KZ=gn();Ms.TOLERATED_SETTINGS_COUNT=40;var QZ={maxSettings:vo.SchemaProp.number(Ms.TOLERATED_SETTINGS_COUNT)};Ms.ExcessiveSettingsCount={meta:{code:"ExcessiveSettingsCount",name:"ExcessiveSettingsCount",docs:{description:"Reports section or block schemas that declare more top-level settings than the configured maximum.",recommended:!0},type:vo.SourceCodeType.LiquidHtml,severity:vo.Severity.WARNING,schema:QZ,targets:[]},create(e){let t=e.settings.maxSettings;return{async onCodePathEnd(){if(e.file.ast instanceof Error)return;let r=(0,KZ.visit)(e.file.ast,{LiquidRawTag(a){if(a.name==="schema")return a}})[0];if(!r)return;let n=(0,JZ.toJSONAST)(r.body.value);if(n instanceof Error||!(0,vo.isObjectNode)(n))return;let i=n.children.find(a=>a.key.value==="settings");if(!i||!(0,vo.isArrayNode)(i.value))return;let s=i.value.children.filter(a=>(0,vo.isObjectNode)(a)&&a.children.some(o=>o.key.value==="id")).length;s<=t||e.report({message:`This schema declares ${s} settings, which exceeds the maximum of ${t}. Consider splitting this section or block into smaller pieces, or grouping related options with a header.`,startIndex:r.blockStartPosition.start,endIndex:r.blockStartPosition.end})}}}}});var LD=x(Rs=>{"use strict";p();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.LiquidComplexity=Rs.TOLERATED_LIQUID_COMPLEXITY=void 0;var P0=G(),Ru=oe(),YZ=qe();Rs.TOLERATED_LIQUID_COMPLEXITY=120;var XZ={maxComplexity:P0.SchemaProp.number(Rs.TOLERATED_LIQUID_COMPLEXITY)},ZZ=new Set(["if","unless","case","for","tablerow","paginate"]),eee=new Set(["elsif","when"]),tee=new Set(["if","unless"]),ree=new Set(["elsif"]);Rs.LiquidComplexity={meta:{code:"LiquidComplexity",name:"LiquidComplexity",docs:{description:"Reports Liquid files with high cyclomatic complexity.",recommended:!0},type:P0.SourceCodeType.LiquidHtml,severity:P0.Severity.WARNING,schema:XZ,targets:[]},create(e){let t=e.settings.maxComplexity,r={complexity:1},n;function i(c){return"blockStartPosition"in c?{startIndex:c.blockStartPosition.start,endIndex:c.blockStartPosition.end}:{startIndex:c.position.start,endIndex:c.position.end}}function s(c){r.complexity+=1,!n&&r.complexity>t&&(n=i(c))}function a(c){let l=(0,YZ.findLastIndex)(c,m=>[Ru.NodeTypes.LiquidTag,Ru.NodeTypes.LiquidBranch,Ru.NodeTypes.LiquidVariableOutput].includes(m.type));if(l===-1)return!1;let f=c[l];return f.type===Ru.NodeTypes.LiquidTag?tee.has(f.name):f.type===Ru.NodeTypes.LiquidBranch?ree.has(f.name??""):!1}function o(c){return e.file.source.slice(0,c).split(`
84
+ `).length}return{async LiquidTag(c){ZZ.has(c.name)&&s(c)},async LiquidBranch(c){eee.has(c.name??"")&&s(c)},async LogicalExpression(c,l){a(l)&&s(c)},async onCodePathEnd(){if(r.complexity<=t)return;let c=n??{startIndex:0,endIndex:e.file.source.length},l=o(c.startIndex);e.report({message:`Liquid complexity is ${r.complexity}, which exceeds the maximum of ${t}. The decision at line ${l} pushed it over the limit. Consider simplifying conditional logic, or moving self-contained decision logic into snippets with the render tag.`,startIndex:c.startIndex,endIndex:c.endIndex})}}}}});var ID=x(Ds=>{"use strict";p();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.LiquidNestingDepth=Ds.TOLERATED_LIQUID_NESTING_DEPTH=void 0;var q0=G(),nee=oe();Ds.TOLERATED_LIQUID_NESTING_DEPTH=10;var iee={maxDepth:q0.SchemaProp.number(Ds.TOLERATED_LIQUID_NESTING_DEPTH)},CD=new Set(["if","unless","for","case","tablerow"]);Ds.LiquidNestingDepth={meta:{code:"LiquidNestingDepth",name:"LiquidNestingDepth",docs:{description:"Reports Liquid files with deeply nested control-flow structures.",recommended:!0},type:q0.SourceCodeType.LiquidHtml,severity:q0.Severity.WARNING,schema:iee,targets:[]},create(e){let t=e.settings.maxDepth;function r(n){return n.filter(s=>s.type===nee.NodeTypes.LiquidTag&&CD.has(s.name)).length+1}return{async LiquidTag(n,i){if(!CD.has(n.name))return;let s=r(i);s<=t||e.report({message:`This Liquid block is nested ${s} levels deep, which exceeds the maximum allowed depth of ${t}.`,startIndex:n.blockStartPosition.start,endIndex:n.blockStartPosition.end})}}}}});var Ee=x(Oe=>{"use strict";p();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.resolveErrorLocation=aee;Oe.getOffset=L0;Oe.hasBareArrayAccess=Qn;Oe.argHasBareArrayAccess=MD;Oe.variableHasBareArrayAccess=oee;Oe.conditionalHasBareArrayAccess=C0;Oe.rawMarkup=cee;Oe.hasSkippedCharacters=en;Oe.hasEmptyMarkup=uee;Oe.hasSingleIdMarkup=lee;Oe.hasSingleStringMarkup=fee;Oe.hasRubyValidInlineCommentMarkup=dee;Oe.hasRubyAcceptedCycleTrailingComma=pee;Oe.hasRubyAcceptedLoopTrailingComma=hee;Oe.hasRubyAcceptedPaginateTrailingComma=mee;Oe.hasRubyAcceptedEmptyFirstFilterArgument=gee;Oe.hasRubyAcceptedFilterArgumentTrailingComma=yee;Oe.hasRubyAcceptedEmptyAssignRhs=bee;Oe.hasRubyAcceptedAssignLhsExtraIdentifier=kee;Oe.hasRubyAcceptedIncludeMarkup=See;Oe.hasRubyAcceptedRawTagCloserWithMarkup=Tee;Oe.liquidTagBodies=Du;Oe.liquidTagMarkup=Cm;Oe.hasLiquidTagNamed=xee;Oe.liquidLineTagLocation=Eee;Oe.hasSkippedPrefixCharacters=Aee;Oe.hasRubyAcceptedWhitespaceSeparatedQuotePrefix=Oee;Oe.hasUnclosedQuotedString=Nee;var ae=oe(),see=qe();function aee(e,t){if("loc"in e&&e.loc){let r=e.loc;return[L0(t,r.start.line,r.start.column),L0(t,r.end.line,r.end.column)]}return[0,t.length]}function L0(e,t,r){let n=1;for(let i=0;i<e.length;i++){if(n===t)return i+(r-1);e[i]===`
85
+ `&&n++}return e.length}function Qn(e){return e.type===ae.NodeTypes.VariableLookup&&e.name===null}function MD(e){let t=e.type===ae.NodeTypes.NamedArgument?e.value:e;return Qn(t)}function oee(e){return Qn(e.expression)||e.filters.some(t=>t.args.some(MD))}function C0(e){return e.type===ae.NodeTypes.LogicalExpression?C0(e.left)||C0(e.right):e.type===ae.NodeTypes.Comparison?Qn(e.left)||Qn(e.right):Qn(e)}function cee(e){return e.source.slice(e.markupPosition.start,e.markupPosition.end)}function en(e){return Im(e).length>0}function uee(e){return tn(e).length===0&&!en(e)}function lee(e,t){if(en(e))return!1;let r=tn(e);return r.length===1&&r[0].type===ae.MarkupTokenType.Id&&r[0].value===t}function fee(e,t){if(en(e))return!1;let r=tn(e),n=r[0];return r.length!==1||n.type!==ae.MarkupTokenType.String?!1:n.value.slice(1,-1)===t}function dee(e){let t=Pee(e),r=0,n=0;for(let i=1;i<t.length;i++){let s=t[i].firstEvent;s&&(r++,s.type==="uncovered"&&s.value==="#"&&n++)}return r===0||!t[0].firstEvent&&r===1?!0:r===n}function pee(e){let t=R0(e);return t!==null&&RD(t,e)}function hee(e){let t=R0(e);if(t===null)return!1;let r=ju(t,e);try{if(r.consume(ae.MarkupTokenType.Id),!r.id("in"))return!1;for(r.valueExpression(),r.id("reversed");!r.isAtEnd();)r.consumeOptional(ae.MarkupTokenType.Comma),r.namedArgument()}catch{return!1}return r.isAtEnd()}function mee(e){let t=R0(e);if(t===null)return!1;let r=ju(t,e);try{if(r.valueExpression(),!r.id("by"))return!1;r.valueExpression(),r.consumeOptional(ae.MarkupTokenType.Comma)&&r.namedArguments()}catch{return!1}return r.isAtEnd()}function gee(e){if(en(e))return!1;let t=tn(e),r=t.slice(-3);if(!(r.length===3&&r[0].type===ae.MarkupTokenType.Pipe&&r[1].type===ae.MarkupTokenType.Id&&r[2].type===ae.MarkupTokenType.Colon))return!1;let n=t.slice(0,-3);return I0(n,e)||M0(n,e)}function yee(e){if(en(e))return!1;let t=_ee(tn(e));return t===null?!1:I0(t,e)||M0(t,e)||vee(t,e)}function _ee(e){let t=!1,r=[];for(let n=0;n<e.length;n++){let i=e[n],s=e[n+1];if(i.type===ae.MarkupTokenType.Comma&&(s===void 0||s.type===ae.MarkupTokenType.Pipe)){if(!r.slice((0,see.findLastIndex)(r,o=>o.type===ae.MarkupTokenType.Pipe)+1).some(o=>o.type===ae.MarkupTokenType.Colon))return null;let a=r[r.length-1];if(a===void 0||a.type===ae.MarkupTokenType.Comma||a.type===ae.MarkupTokenType.Colon||a.type===ae.MarkupTokenType.Pipe)return null;t=!0;continue}r.push(i)}return t?r:null}function vee(e,t){let r=e.slice(-3);if(!(r.length===3&&r[0].type===ae.MarkupTokenType.Pipe&&r[1].type===ae.MarkupTokenType.Id&&r[2].type===ae.MarkupTokenType.Colon))return!1;let n=e.slice(0,-3);return I0(n,t)||M0(n,t)}function I0(e,t){let r=ju(e,t);try{r.liquidVariable()}catch{return!1}return r.isAtEnd()}function M0(e,t){if(e.length<3||e[0].type!==ae.MarkupTokenType.Id||e[1].type!==ae.MarkupTokenType.Equality||e[1].value!=="=")return!1;let r=ju(e.slice(2),t);try{r.liquidVariable()}catch{return!1}return r.isAtEnd()}function bee(e){if(en(e))return!1;let t=tn(e);return t.length===2&&t[0].type===ae.MarkupTokenType.Id&&t[1].type===ae.MarkupTokenType.Equality&&t[1].value==="="}function kee(e){if(en(e))return!1;let t=tn(e);return t.length<4||t[0].type!==ae.MarkupTokenType.Id||t[1].type!==ae.MarkupTokenType.Id||t[2].type!==ae.MarkupTokenType.Equality||t[2].value!=="="?!1:RD(t.slice(3),e)}function See(e){if(en(e))return!1;let t=new ae.MarkupParser((0,ae.tokenizeMarkup)(e),e);try{let r=t.valueExpression();if(Qn(r))return!1;if(t.id("for")||t.id("with")){let n=t.valueExpression();if(Qn(n))return!1}for(t.id("as")&&t.consume(ae.MarkupTokenType.Id),t.consumeOptional(ae.MarkupTokenType.Comma);t.look(ae.MarkupTokenType.Id);){t.consume(ae.MarkupTokenType.Id),t.consume(ae.MarkupTokenType.Colon);let n=t.valueExpression();if(Qn(n))return!1;if(!t.consumeOptional(ae.MarkupTokenType.Comma))break}}catch{return!1}return t.isAtEnd()}function Tee(e,t,r=0){for(let n of Du(e,r)){let i=Cm(n.body);if(i?.tagName===`end${t}`&&i.remainingTokens.length>0&&!i.hasSkippedCharacters)return wee(e,t,n.end)}return!1}function wee(e,t,r){let n=0;for(let i of Du(e,r)){let s=Cm(i.body);if(!(!s||s.hasSkippedCharacters)){if(s.tagName===t){n++;continue}if(s.tagName===`end${t}`&&(n--,n<0))return!1}}return n===0}function Du(e,t=0){let r=(0,ae.tokenize)(e),n=[];for(let i=0;i<r.length;i++){let s=r[i];if(s.type!==ae.TokenType.LiquidTagOpen||s.start<t)continue;let a=r[i+1],o=a?.type===ae.TokenType.Text?r[i+2]:a;!o||o.type!==ae.TokenType.LiquidTagClose||n.push(Cee(e,s,a?.type===ae.TokenType.Text?a:void 0,o))}return n}function Cm(e){let t=tn(e),r=t[0];if(!(!r||r.type!==ae.MarkupTokenType.Id))return{tagName:r.value,remainingTokens:t.slice(1),hasSkippedCharacters:en(e)}}function xee(e,t){for(let r of Du(e)){let n=Cm(r.body);if(n?.tagName===t&&!n.hasSkippedCharacters)return!0}return!1}function Eee(e,t){for(let r of Du(e)){let n=r.body.indexOf(`
86
+ `);if(n===-1)continue;let s=(0,ae.tokenizeMarkup)(r.body.slice(0,n),r.bodyStart).filter(o=>o.type!==ae.MarkupTokenType.EndOfString)[0];if(s?.type!==ae.MarkupTokenType.Id||s.value!=="liquid")continue;let a=r.bodyStart;for(let o of r.body.split(`
87
+ `)){let l=(0,ae.tokenizeMarkup)(o,a).filter(f=>f.type!==ae.MarkupTokenType.EndOfString)[0];if(l?.type===ae.MarkupTokenType.Id&&l.value===t)return[l.start,a+o.length];a+=o.length+1}}return null}function Aee(e,t,r){return Im(e.slice(t,r),!0).length>0}function Oee(e){if(tn(e).length>0)return!1;let t=Im(e);if(t.length===0||t.some(({value:n})=>!j0(n)))return!1;let r=t[t.length-1];for(let n=r.end;n<e.length;n++)if(D0(e[n]))return!0;return!1}function Nee(e){return Im(e).some(({value:t})=>j0(t))}function Im(e,t=!1){let r=(0,ae.tokenizeMarkup)(e),n=new Set,i=[];for(let s of r)if(s.type!==ae.MarkupTokenType.EndOfString)for(let a=s.start;a<s.end;a++)n.add(a);for(let s=0;s<e.length;s++){let a=e[s];D0(a)||n.has(s)||t&&j0(a)||i.push({value:a,start:s,end:s+1})}return i}function tn(e){return(0,ae.tokenizeMarkup)(e).filter(t=>t.type!==ae.MarkupTokenType.EndOfString)}function Pee(e){let t=qee(e),r=[{firstEvent:void 0}],n=r[0];for(let i=0;i<e.length;i++){let s=e[i];if(s===`
88
+ `){n={firstEvent:void 0},r.push(n);continue}if(D0(s)||n.firstEvent)continue;let a=t.get(i);n.firstEvent=a?{type:"token",start:i,end:i+1}:{type:"uncovered",value:s,start:i,end:i+1}}return r}function qee(e){let t=new Map;for(let r of tn(e))for(let n=r.start;n<r.end;n++)t.set(n,r);return t}function RD(e,t){let r=ju(e,t);try{r.valueExpression()}catch{return!1}return r.isAtEnd()}function R0(e){if(en(e))return null;let t=tn(e),r=t[t.length-1],n=t[t.length-2];return t.length<2||r.type!==ae.MarkupTokenType.Comma||n.type===ae.MarkupTokenType.Comma?null:t.slice(0,-1)}function ju(e,t){return new ae.MarkupParser([...e,Lee(t)],t)}function Lee(e){return{type:ae.MarkupTokenType.EndOfString,value:"",start:e.length,end:e.length}}function D0(e){return e===" "||e===`
89
+ `||e==="\r"||e===" "}function j0(e){return e==="'"||e==='"'}function Cee(e,t,r,n){return{start:t.start,body:r?e.slice(r.start,r.end):"",bodyStart:r?.start??t.end,end:n.end}}});var DD=x(F0=>{"use strict";p();Object.defineProperty(F0,"__esModule",{value:!0});F0.checkAssignTag=Iee;var Cr=Ee();function Iee(e,t){if(typeof e.markup=="string"){if((0,Cr.hasRubyAcceptedEmptyAssignRhs)(e.markup)||(0,Cr.hasRubyAcceptedEmptyFirstFilterArgument)(e.markup)||(0,Cr.hasRubyAcceptedFilterArgumentTrailingComma)(e.markup)||(0,Cr.hasRubyAcceptedAssignLhsExtraIdentifier)(e.markup))return;t.report({message:"Syntax error in 'assign' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,Cr.variableHasBareArrayAccess)(r.value)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Cr.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){t.report({message:"Syntax error in 'assign' tag",startIndex:e.position.start,endIndex:e.position.end});return}let n=(0,Cr.rawMarkup)(e);if((0,Cr.hasRubyAcceptedEmptyAssignRhs)(n)||(0,Cr.hasRubyAcceptedEmptyFirstFilterArgument)(n)||(0,Cr.hasRubyAcceptedFilterArgumentTrailingComma)(n)||(0,Cr.hasRubyAcceptedAssignLhsExtraIdentifier)(n))return;let i=e.source.slice(r.position.start,e.markupPosition.end);(0,Cr.hasSkippedCharacters)(i)&&t.report({message:"Syntax error in 'assign' tag",startIndex:e.position.start,endIndex:e.position.end})}});var VD=x(B0=>{"use strict";p();Object.defineProperty(B0,"__esModule",{value:!0});B0.checkBaseTag=Mee;var jD=oe(),Mm=new WeakSet;async function Mee(e,t){if("reason"in e&&typeof e.reason=="string"){t.report({message:e.reason,startIndex:e.position.start,endIndex:e.position.end});return}if(e.name==="liquid"&&Array.isArray(e.markup)){await Ree(e.markup,t);return}let r=await FD(t);Mm.has(e)||BD(e,r)&&(Mm.add(e),t.report({message:`Unknown tag '${e.name}'`,startIndex:e.position.start,endIndex:e.position.end}))}async function Ree(e,t){let r=await FD(t);for(let n of e)n.type===jD.NodeTypes.LiquidTag&&!Mm.has(n)&&BD(n,r)&&(Mm.add(n),t.report({message:`Unknown tag '${n.name}'`,startIndex:n.position.start,endIndex:n.position.end}))}async function FD(e){let t=e.themeDocset?await e.themeDocset.tags():Object.keys(jD.builtinTags).map(r=>({name:r}));return new Set(["#","else","elsif","when",...t.map(r=>r.name)])}function BD(e,t){return e.source.startsWith("{%",e.position.start)?!1:!t.has(e.name)}});var $D=x(Dm=>{"use strict";p();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.checkBranchTag=jee;Dm.checkMisplacedBranchTag=Fee;var js=Ee(),Dee="Bare bracket access is not allowed in strict2 mode";function jee(e,t){if(e.name==="elsif"){Vee(e,t);return}e.name==="when"&&Bee(e,t)}function Fee(e,t){t.report({message:`Unknown tag '${e.name}'`,startIndex:e.position.start,endIndex:e.position.end})}function Bee(e,t){if(typeof e.markup=="string"){V0(e,t);return}let r=e.markup,n=e.source.slice(e.markupPosition.start,e.markupPosition.end);if((0,js.hasUnclosedQuotedString)(n)){V0(e,t);return}if(r.some(js.hasBareArrayAccess)){t.report({message:"Bare bracket access is not allowed",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}if(r.length===0)return;let i=e.source.slice(r[0].position.start,e.markupPosition.end);(0,js.hasSkippedCharacters)(i)&&V0(e,t)}function V0(e,t){t.report({message:"Syntax error in 'when' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}function Vee(e,t){if(typeof e.markup=="string"){Rm(e,t);return}let r=e.markup,n=e.source.slice(e.markupPosition.start,e.markupPosition.end);if((0,js.hasUnclosedQuotedString)(n)){Rm(e,t);return}if((0,js.conditionalHasBareArrayAccess)(r)){t.report({message:Dee,startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}if((0,js.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){Rm(e,t);return}let i=e.source.slice(r.position.start,e.markupPosition.end);(0,js.hasSkippedCharacters)(i)&&Rm(e,t)}function Rm(e,t){t.report({message:"Syntax error in 'elsif' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}});var HD=x(jm=>{"use strict";p();Object.defineProperty(jm,"__esModule",{value:!0});jm.checkBlockTag=zee;jm.checkBlockParserError=Gee;var $ee=oe(),bo=Ee(),$0="Syntax error in 'block' tag",Uee="Bare bracket access is not allowed in strict2 mode",UD="Attempting to end parsing before LiquidTag 'block' was closed",Hee="Unclosed block tag 'block' in {% liquid %} block",Wee=new Set([UD,Hee,"Attempting to close LiquidTag 'block' before it was opened without a matching 'block'"]);function zee(e,t){if(typeof e.markup=="string"){Fu(e,t,$0);return}let r=e.markup;if(Jee(r.name.value)){Fu(e,t,"Liquid syntax error: in 'block' - Valid syntax: block '[file_name]'");return}if(Kee(r)){Fu(e,t,$0);return}if(r.args.some(n=>n.value.type!=="BlockArrayLiteral"&&(0,bo.hasBareArrayAccess)(n.value))){Fu(e,t,Uee);return}(0,bo.hasSkippedCharacters)((0,bo.rawMarkup)(e))&&Fu(e,t,$0)}function Gee(e,t,r){if(!Wee.has(e.message))return;let[n,i]=e.message.includes("Unclosed block tag 'block' in {% liquid %} block")?(0,bo.liquidLineTagLocation)(r,"block")??(0,bo.resolveErrorLocation)(e,r):(0,bo.resolveErrorLocation)(e,r);t.report({message:e.message===UD?"Liquid syntax error: 'block' tag was never closed":e.message,startIndex:n,endIndex:i})}function Jee(e){return e.includes("/")||e.includes(".")}function Kee(e){return e.args.some(t=>t.name==="block.content"?!1:t.name==="block.name"?t.value.type!==$ee.NodeTypes.String:t.name.startsWith("block.settings.")?t.name.slice(15).includes("."):!!t.name.startsWith("block."))}function Fu(e,t,r){t.report({message:r,startIndex:e.position.start,endIndex:e.position.end})}});var WD=x(H0=>{"use strict";p();Object.defineProperty(H0,"__esModule",{value:!0});H0.checkCaptureTag=Qee;var U0=Ee();function Qee(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'capture' tag",startIndex:e.position.start,endIndex:e.position.end});return}if((0,U0.hasBareArrayAccess)(e.markup)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}(0,U0.hasSkippedCharacters)((0,U0.rawMarkup)(e))&&t.report({message:"Syntax error in 'capture' tag",startIndex:e.position.start,endIndex:e.position.end})}});var zD=x(W0=>{"use strict";p();Object.defineProperty(W0,"__esModule",{value:!0});W0.checkCaseTag=Yee;var Fm=Ee();function Yee(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'case' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,Fm.hasUnclosedQuotedString)((0,Fm.rawMarkup)(e))){t.report({message:"Syntax error in 'case' tag",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Fm.hasBareArrayAccess)(r)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}(0,Fm.hasSkippedCharacters)(e.source.slice(r.position.start,e.markupPosition.end))&&t.report({message:"Syntax error in 'case' tag",startIndex:e.position.start,endIndex:e.position.end})}});var z0=x(nn=>{"use strict";p();Object.defineProperty(nn,"__esModule",{value:!0});nn.UNMATCHED_RAW_CLOSE_PARSER_ERROR=nn.UNMATCHED_COMMENT_CLOSE_PARSER_ERROR=void 0;nn.checkCommentTag=Zee;nn.checkCommentRawTag=rte;nn.hasRubyAcceptedInertCommentBodyCloser=QD;var rn=oe(),An=Ee(),JD="Liquid syntax error: 'comment' tag was never closed";nn.UNMATCHED_COMMENT_CLOSE_PARSER_ERROR="Attempting to close LiquidTag 'comment' before it was opened without a matching 'comment'";nn.UNMATCHED_RAW_CLOSE_PARSER_ERROR="Attempting to close LiquidTag 'raw' before it was opened without a matching 'raw'";var Xee="Attempting to end parsing before LiquidRawTag 'comment' was closed";function Zee(e,t,r){if(!nte(e,r))return;let[n,i]=(0,An.resolveErrorLocation)(e,r);if(e.message===Xee&&tte(ete(r,n))){t.report({message:JD,startIndex:n,endIndex:i});return}e.message===nn.UNMATCHED_COMMENT_CLOSE_PARSER_ERROR&&QD(r,"comment",n)||t.report({message:e.message,startIndex:n,endIndex:i})}function ete(e,t){let r=e.indexOf("%}",t);return r===-1?"":e.slice(r+2)}function tte(e){for(let t of(0,An.liquidTagBodies)(e)){let r=(0,An.liquidTagMarkup)(t.body);if(r?.tagName==="comment"&&!r.hasSkippedCharacters)return!0}return!1}function rte(e,t){let r=e.body.value;(ste(r,e.source,e.blockEndPosition.end)||ate(r,e.source,e.blockEndPosition.end)||ite(r))&&t.report({message:JD,startIndex:e.body.position.start,endIndex:e.body.position.end})}function nte(e,t){return!GD(t,"comment")&&!GD(t,"endcomment")?!1:e.message==="Attempting to end parsing before LiquidRawTag 'comment' was closed"||e.message===nn.UNMATCHED_COMMENT_CLOSE_PARSER_ERROR}function ite(e){let t=(0,rn.tokenize)(e);for(let r=0;r<t.length;r++){let n=t[r],i=t[r+1],s=i?.type===rn.TokenType.Text?t[r+2]:i;if(n.type===rn.TokenType.LiquidTagOpen){if(s?.type!==rn.TokenType.LiquidTagClose)return!0;continue}if(n.type===rn.TokenType.LiquidVariableOutputOpen&&s?.type!==rn.TokenType.LiquidVariableOutputClose)return!0}return!1}function ste(e,t,r){return KD(e,t,r,"comment")}function ate(e,t,r){return KD(e,t,r,"raw")}function KD(e,t,r,n){let i=ote(e,n);if(i===0)return!1;for(let s of(0,An.liquidTagBodies)(t,r)){let a=(0,An.liquidTagMarkup)(s.body);if(!(!a||a.hasSkippedCharacters)){if(a.tagName===n){i++;continue}if(a.tagName===`end${n}`&&(i--,i===0))return!1}}return!0}function ote(e,t){let r=0;for(let n of(0,An.liquidTagBodies)(e)){let i=(0,An.liquidTagMarkup)(n.body);if(!(!i||i.hasSkippedCharacters)){if(i.tagName===t){r++;continue}i.tagName===`end${t}`&&r>0&&r--}}return r}function Fs(e,t,r=0,n=e.length){return(0,An.liquidTagBodies)(e,r).filter(i=>{if(i.bodyStart>=n)return!1;let s=(0,An.liquidTagMarkup)(i.body);return s?.tagName===t&&!s.hasSkippedCharacters}).length}function QD(e,t,r){let n=`end${t}`,i=cte(e,r);return i?.tagName!==n||i.hasSkippedCharacters?!1:t==="comment"?Fs(e,"comment",0,r)>Fs(e,"endcomment",0,r):Fs(e,"raw",0,r)>Fs(e,"endraw",0,r)&&Fs(e,"comment",0,r)>0&&Fs(e,"endcomment",r)>0}function GD(e,t){return Fs(e,t)>0}function cte(e,t){let r=(0,rn.tokenize)(e);for(let n=0;n<r.length;n++){let i=r[n];if(i.type!==rn.TokenType.LiquidTagOpen||i.start!==t)continue;let s=r[n+1],a=s?.type===rn.TokenType.Text?r[n+2]:s;return!a||a.type!==rn.TokenType.LiquidTagClose?void 0:(0,An.liquidTagMarkup)(ute(e,s?.type===rn.TokenType.Text?s:void 0))}}function ute(e,t){return t?e.substring(t.start,t.end):""}});var XD=x(K0=>{"use strict";p();Object.defineProperty(K0,"__esModule",{value:!0});K0.checkContentForTag=mte;var Bm=oe(),lte=Ee(),fte=new Set(["block","blocks"]),dte=new Set(["block","schema"]),J0="closest.",pte="metaobject.",hte=new Set(["article","blog","collection","page","product"]);function mte(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'content_for' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup,n=r.contentForType.value;if(!fte.has(n)){Tte(e,t,n);return}if(gte(r)){G0(e,t);return}if(n==="block"&&_te(r)){G0(e,t);return}n==="blocks"&&kte(r)&&G0(e,t)}function gte(e){return yte(e)||e.args.some(lte.argHasBareArrayAccess)}function yte(e){let t=new Set;for(let r of e.args){if(t.has(r.name))return!0;t.add(r.name)}return!1}function _te(e){return vte(e)||bte(e)||Ste(e)}function vte(e){return e.args.some(t=>dte.has(t.name))}function bte(e){let t=e.args.find(n=>n.name==="type"),r=e.args.find(n=>n.name==="id");return!t||!r||t.value.type!==Bm.NodeTypes.String||r.value.type!==Bm.NodeTypes.String||t.value.value===""||r.value.value===""}function kte(e){let t=0;for(let r of e.args)if(!r.name.startsWith(J0)||r.value.type===Bm.NodeTypes.String||(t+=1,t>1)||!YD(r.name))return!0;return!1}function Ste(e){let t=0;for(let r of e.args)if(r.name.startsWith(J0)&&(r.value.type===Bm.NodeTypes.String||(t+=1,t>1)||!YD(r.name)))return!0;return!1}function YD(e){let t=e.slice(J0.length);return hte.has(t)||t.startsWith(pte)}function Tte(e,t,r){t.report({message:`Invalid content_for type "${r}"; expected "block" or "blocks"`,startIndex:e.position.start,endIndex:e.position.end})}function G0(e,t){t.report({message:"Syntax error in 'content_for' tag",startIndex:e.position.start,endIndex:e.position.end})}});var ZD=x(Q0=>{"use strict";p();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.checkCycleTag=wte;var Bu=Ee();function wte(e,t){if(typeof e.markup=="string"){if((0,Bu.hasRubyAcceptedCycleTrailingComma)(e.markup))return;t.report({message:"Syntax error in 'cycle' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if(r.groupName&&(0,Bu.hasBareArrayAccess)(r.groupName)||r.args.some(Bu.hasBareArrayAccess)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}(0,Bu.hasSkippedCharacters)((0,Bu.rawMarkup)(e))&&t.report({message:"Syntax error in 'cycle' tag",startIndex:e.position.start,endIndex:e.position.end})}});var e2=x(X0=>{"use strict";p();Object.defineProperty(X0,"__esModule",{value:!0});X0.checkDecrementTag=xte;var Y0=Ee();function xte(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'decrement' tag",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Y0.hasBareArrayAccess)(e.markup)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}(0,Y0.hasSkippedCharacters)((0,Y0.rawMarkup)(e))&&t.report({message:"Syntax error in 'decrement' tag",startIndex:e.position.start,endIndex:e.position.end})}});var n2=x(Vu=>{"use strict";p();Object.defineProperty(Vu,"__esModule",{value:!0});Vu.checkDocTag=Ate;Vu.checkDocParserError=Ote;Vu.isDocParserError=r2;var ko=Ee(),Z0="Attempting to end parsing before LiquidRawTag 'doc' was closed",Ete="Attempting to close LiquidTag 'doc' before it was opened without a matching 'doc'";function Ate(e,t){if(e.markup!==""){t.report({message:"Syntax error in 'doc' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}t2(e.body.value)&&t.report({message:"Nested doc tags are not allowed",startIndex:e.body.position.start,endIndex:e.body.position.end})}function t2(e){for(let t of(0,ko.liquidTagBodies)(e)){let r=(0,ko.liquidTagMarkup)(t.body);if(r?.tagName==="enddoc"&&r.remainingTokens.length>0&&!r.hasSkippedCharacters)return!1;if(r?.tagName==="doc"&&!r.hasSkippedCharacters)return!0}return!1}function Ote(e,t,r){if(!r2(e,r))return;let[n,i]=(0,ko.resolveErrorLocation)(e,r);if(e.message===Z0&&t2(Nte(r,n))){t.report({message:"Nested doc tags are not allowed",startIndex:n,endIndex:i});return}e.message===Z0&&(0,ko.hasRubyAcceptedRawTagCloserWithMarkup)(r,"doc",n)||t.report({message:e.message,startIndex:n,endIndex:i})}function Nte(e,t){let r=e.indexOf("%}",t);return r===-1?"":e.slice(r+2)}function r2(e,t){return!(0,ko.hasLiquidTagNamed)(t,"doc")&&!(0,ko.hasLiquidTagNamed)(t,"enddoc")?!1:e.message===Z0||e.message===Ete}});var i2=x(eS=>{"use strict";p();Object.defineProperty(eS,"__esModule",{value:!0});eS.checkEchoTag=Pte;var Yn=Ee();function Pte(e,t){if(typeof e.markup=="string"){if((0,Yn.hasEmptyMarkup)((0,Yn.rawMarkup)(e))||(0,Yn.hasRubyAcceptedEmptyFirstFilterArgument)(e.markup)||(0,Yn.hasRubyAcceptedFilterArgumentTrailingComma)(e.markup))return;t.report({message:"Syntax error in 'echo' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,Yn.variableHasBareArrayAccess)(r)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}let n=(0,Yn.rawMarkup)(e);(0,Yn.hasRubyAcceptedEmptyFirstFilterArgument)(n)||(0,Yn.hasRubyAcceptedFilterArgumentTrailingComma)(n)||(0,Yn.hasSkippedCharacters)(n)&&t.report({message:"Syntax error in 'echo' tag",startIndex:e.position.start,endIndex:e.position.end})}});var a2=x(nS=>{"use strict";p();Object.defineProperty(nS,"__esModule",{value:!0});nS.checkFormTag=Lte;var s2=oe(),tS=Ee(),rS="Syntax error in 'form' tag",qte="Bare bracket access is not allowed in strict2 mode";function Lte(e,t){if(typeof e.markup=="string"){Vm(e,t,rS);return}let r=e.markup;if(r.some(tS.argHasBareArrayAccess)){Vm(e,t,qte);return}if(Cte(r)){Vm(e,t,rS);return}(0,tS.hasSkippedCharacters)((0,tS.rawMarkup)(e))&&Vm(e,t,rS)}function Cte(e){if(e.length===0||e[0].type===s2.NodeTypes.NamedArgument)return!0;let t=1,r=!1;for(let n of e.slice(1)){if(n.type===s2.NodeTypes.NamedArgument){r=!0;continue}if(t+=1,r||t>2)return!0}return!1}function Vm(e,t,r){t.report({message:r,startIndex:e.position.start,endIndex:e.position.end})}});var o2=x(sS=>{"use strict";p();Object.defineProperty(sS,"__esModule",{value:!0});sS.checkForTag=Ite;var iS=Ee();function Ite(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'for' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,iS.hasBareArrayAccess)(r.collection)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}if((0,iS.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){t.report({message:"Syntax error in 'for' tag",startIndex:e.position.start,endIndex:e.position.end});return}let n=e.source.slice(r.position.start,e.markupPosition.end);(0,iS.hasSkippedCharacters)(n)&&t.report({message:"Syntax error in 'for' tag",startIndex:e.position.start,endIndex:e.position.end})}});var c2=x(aS=>{"use strict";p();Object.defineProperty(aS,"__esModule",{value:!0});aS.checkIfTag=Mte;var $u=Ee();function Mte(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'if' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup,n=(0,$u.rawMarkup)(e);if((0,$u.hasUnclosedQuotedString)(n)){t.report({message:"Syntax error in 'if' tag",startIndex:e.position.start,endIndex:e.position.end});return}if((0,$u.conditionalHasBareArrayAccess)(r)){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.position.start,endIndex:e.position.end});return}if((0,$u.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){t.report({message:"Syntax error in 'if' tag",startIndex:e.position.start,endIndex:e.position.end});return}let i=e.source.slice(r.position.start,e.markupPosition.end);(0,$u.hasSkippedCharacters)(i)&&t.report({message:"Syntax error in 'if' tag",startIndex:e.position.start,endIndex:e.position.end})}});var u2=x(oS=>{"use strict";p();Object.defineProperty(oS,"__esModule",{value:!0});oS.checkIncludeTag=Rte;var So=Ee();function Rte(e,t){if(typeof e.markup=="string"){if((0,So.hasRubyAcceptedIncludeMarkup)(e.markup))return;t.report({message:"Syntax error in 'include' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,So.hasBareArrayAccess)(r.snippet)||r.variable&&(0,So.hasBareArrayAccess)(r.variable.name)||r.args.some(So.argHasBareArrayAccess)){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.position.start,endIndex:e.position.end});return}(0,So.hasSkippedCharacters)((0,So.rawMarkup)(e))&&t.report({message:"Syntax error in 'include' tag",startIndex:e.position.start,endIndex:e.position.end})}});var l2=x(uS=>{"use strict";p();Object.defineProperty(uS,"__esModule",{value:!0});uS.checkIncrementTag=jte;var Dte=oe(),cS=Ee();function jte(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'increment' tag",startIndex:e.position.start,endIndex:e.position.end});return}(Fte(e)||(0,cS.hasSkippedCharacters)((0,cS.rawMarkup)(e)))&&t.report({message:"Syntax error in 'increment' tag",startIndex:e.position.start,endIndex:e.position.end})}function Fte(e){return!e.markup||typeof e.markup!="object"||Array.isArray(e.markup)||!("type"in e.markup)?!1:e.markup.type===Dte.NodeTypes.VariableLookup&&(0,cS.hasBareArrayAccess)(e.markup)}});var d2=x(lS=>{"use strict";p();Object.defineProperty(lS,"__esModule",{value:!0});lS.checkInlineCommentTag=Bte;var f2=Ee();function Bte(e,t){(0,f2.hasRubyValidInlineCommentMarkup)((0,f2.rawMarkup)(e))||t.report({message:"Syntax error in tag '#' - Each line of comments must be prefixed by the '#' character",startIndex:e.position.start,endIndex:e.position.end})}});var m2=x(Uu=>{"use strict";p();Object.defineProperty(Uu,"__esModule",{value:!0});Uu.checkJavascriptTag=Wte;Uu.checkJavascriptParserError=zte;Uu.hasJavascriptClosingTagAfter=h2;var Ir=Ee(),p2="Syntax Error in 'javascript' - Valid syntax: javascript",Vte="'javascript' tag was never closed",$te="Unknown tag 'endjavascript'",Ute="Attempting to end parsing before LiquidRawTag 'javascript' was closed",Hte="Attempting to close LiquidTag 'javascript' before it was opened without a matching 'javascript'";function Wte(e,t){(0,Ir.hasEmptyMarkup)((0,Ir.rawMarkup)(e))||t.report({message:p2,startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}function zte(e,t,r){if(!Kte(r))return;if(e.message===Hte){Gte(e,t,r,$te);return}if(e.message!==Ute)return;let n=Jte(r);if(n){t.report({message:p2,startIndex:n.start,endIndex:n.end});return}let[i,s]=(0,Ir.resolveErrorLocation)(e,r);h2(r,i)||t.report({message:Vte,startIndex:i,endIndex:s})}function Gte(e,t,r,n){let[i,s]=(0,Ir.resolveErrorLocation)(e,r);t.report({message:n,startIndex:i,endIndex:s})}function Jte(e){for(let t of(0,Ir.liquidTagBodies)(e)){let r=(0,Ir.liquidTagMarkup)(t.body);if(r?.tagName==="javascript"&&(r.remainingTokens.length>0||r.hasSkippedCharacters))return{start:t.start,end:t.end}}return null}function h2(e,t){for(let r of(0,Ir.liquidTagBodies)(e,t))if((0,Ir.liquidTagMarkup)(r.body)?.tagName==="endjavascript")return!0;return!1}function Kte(e){if((0,Ir.hasLiquidTagNamed)(e,"javascript")||(0,Ir.hasLiquidTagNamed)(e,"endjavascript"))return!0;for(let t of(0,Ir.liquidTagBodies)(e)){let r=(0,Ir.liquidTagMarkup)(t.body);if(r?.tagName==="javascript"||r?.tagName==="endjavascript")return!0}return!1}});var g2=x(dS=>{"use strict";p();Object.defineProperty(dS,"__esModule",{value:!0});dS.checkLayoutTag=Qte;var fS=Ee();function Qte(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'layout' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,fS.hasBareArrayAccess)(r)){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.position.start,endIndex:e.position.end});return}(0,fS.hasSkippedCharacters)((0,fS.rawMarkup)(e))&&t.report({message:"Syntax error in 'layout' tag",startIndex:e.position.start,endIndex:e.position.end})}});var y2=x(pS=>{"use strict";p();Object.defineProperty(pS,"__esModule",{value:!0});pS.checkPaginateTag=Yte;var To=Ee();function Yte(e,t){if(typeof e.markup=="string"){if((0,To.hasRubyAcceptedPaginateTrailingComma)(e.markup))return;t.report({message:"Syntax error in 'paginate' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}let r=e.markup;if((0,To.hasBareArrayAccess)(r.collection)||(0,To.hasBareArrayAccess)(r.pageSize)||r.args.some(To.argHasBareArrayAccess)){t.report({message:"Bare bracket access is not allowed",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}if((0,To.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){t.report({message:"Syntax error in 'paginate' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}let n=e.source.slice(r.position.start,e.markupPosition.end);(0,To.hasSkippedCharacters)(n)&&t.report({message:"Syntax error in 'paginate' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}});var b2=x($m=>{"use strict";p();Object.defineProperty($m,"__esModule",{value:!0});$m.checkPartialTag=ere;$m.checkPartialParserError=tre;var Hu=Ee(),_2="Syntax error in 'partial' tag",v2="Attempting to end parsing before LiquidTag 'partial' was closed",Xte="Unclosed block tag 'partial' in {% liquid %} block",Zte=new Set([v2,Xte,"Attempting to close LiquidTag 'partial' before it was opened without a matching 'partial'"]);function ere(e,t){if(typeof e.markup=="string"){hS(e,t,_2);return}let r=e.markup;if(rre(r.value)){hS(e,t,"Liquid syntax error: Error in tag 'partial' - Valid syntax: partial '[name]'");return}(0,Hu.hasSkippedCharacters)((0,Hu.rawMarkup)(e))&&hS(e,t,_2)}function tre(e,t,r){if(!Zte.has(e.message))return;let[n,i]=e.message.includes("Unclosed block tag 'partial' in {% liquid %} block")?(0,Hu.liquidLineTagLocation)(r,"partial")??(0,Hu.resolveErrorLocation)(e,r):(0,Hu.resolveErrorLocation)(e,r);t.report({message:e.message===v2?"Liquid syntax error: 'partial' tag was never closed":e.message,startIndex:n,endIndex:i})}function rre(e){return e===""||e.includes("/")}function hS(e,t,r){t.report({message:r,startIndex:e.position.start,endIndex:e.position.end})}});var S2=x(Um=>{"use strict";p();Object.defineProperty(Um,"__esModule",{value:!0});Um.checkRawTag=ire;Um.checkRawParserError=sre;var mS=z0(),Wu=Ee(),k2="Attempting to end parsing before LiquidRawTag 'raw' was closed",nre=new Set([k2,mS.UNMATCHED_RAW_CLOSE_PARSER_ERROR,"Unclosed raw tag 'raw' in {% liquid %} block"]);function ire(e,t){(e.markup!==""||(0,Wu.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,e.markupPosition.end)||(0,Wu.hasSkippedCharacters)((0,Wu.rawMarkup)(e)))&&t.report({message:"Syntax error in 'raw' tag",startIndex:e.markupPosition.start,endIndex:e.markupPosition.end})}function sre(e,t,r){if(!nre.has(e.message))return;let[n,i]=(0,Wu.resolveErrorLocation)(e,r);e.message===k2&&(0,Wu.hasRubyAcceptedRawTagCloserWithMarkup)(r,"raw",n)||e.message===mS.UNMATCHED_RAW_CLOSE_PARSER_ERROR&&(0,mS.hasRubyAcceptedInertCommentBodyCloser)(r,"raw",n)||t.report({message:e.message,startIndex:n,endIndex:i})}});var T2=x(gS=>{"use strict";p();Object.defineProperty(gS,"__esModule",{value:!0});gS.checkRenderTag=cre;var are=oe(),Bs=Ee(),Hm="Syntax error in 'render' tag",ore="Bare bracket access is not allowed in strict2 mode";function cre(e,t){if(typeof e.markup=="string"){zu(e,t,Hm);return}let r=e.markup;if((0,Bs.hasUnclosedQuotedString)((0,Bs.rawMarkup)(e))){zu(e,t,Hm);return}if(ure(r)){zu(e,t,ore);return}if((0,Bs.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){zu(e,t,Hm);return}let n=e.source.slice(r.position.start,e.markupPosition.end);(0,Bs.hasSkippedCharacters)(n)&&zu(e,t,Hm)}function ure(e){return e.snippet.type===are.NodeTypes.VariableLookup&&(0,Bs.hasBareArrayAccess)(e.snippet)||e.variable&&(0,Bs.hasBareArrayAccess)(e.variable.name)?!0:e.args.some(t=>(0,Bs.hasBareArrayAccess)(t.value))}function zu(e,t,r){t.report({message:r,startIndex:e.position.start,endIndex:e.position.end})}});var w2=x(yS=>{"use strict";p();Object.defineProperty(yS,"__esModule",{value:!0});yS.checkSchemaTag=lre;function lre(e,t){e.markup!==""&&t.report({message:"Syntax error in 'schema' tag",startIndex:e.markupPosition.start,endIndex:e.markupPosition.end})}});var E2=x(_S=>{"use strict";p();Object.defineProperty(_S,"__esModule",{value:!0});_S.checkSectionsTag=fre;var x2=Ee();function fre(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'sections' tag",startIndex:e.position.start,endIndex:e.position.end});return}(0,x2.hasSkippedCharacters)((0,x2.rawMarkup)(e))&&t.report({message:"Syntax error in 'sections' tag",startIndex:e.position.start,endIndex:e.position.end})}});var A2=x(bS=>{"use strict";p();Object.defineProperty(bS,"__esModule",{value:!0});bS.checkSectionTag=dre;var vS=Ee();function dre(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'section' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}if(e.blockEndPosition){t.report({message:"Unknown tag 'endsection'",startIndex:e.blockEndPosition.start,endIndex:e.blockEndPosition.end});return}if(e.markup.args.some(n=>n.value.type!=="BlockArrayLiteral"&&(0,vS.hasBareArrayAccess)(n.value))){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end});return}(0,vS.hasSkippedCharacters)((0,vS.rawMarkup)(e))&&t.report({message:"Syntax error in 'section' tag",startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}});var N2=x(kS=>{"use strict";p();Object.defineProperty(kS,"__esModule",{value:!0});kS.checkStyleTag=pre;var O2=Ee();function pre(e,t){let r=(0,O2.rawMarkup)(e);(0,O2.hasEmptyMarkup)(r)||t.report({message:`'style' tag does not accept any arguments in "${r}"`,startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}});var P2=x(TS=>{"use strict";p();Object.defineProperty(TS,"__esModule",{value:!0});TS.checkStylesheetTag=hre;var SS=Ee();function hre(e,t){let r=(0,SS.rawMarkup)(e);(0,SS.hasEmptyMarkup)(r)||(0,SS.hasSingleStringMarkup)(r,"scss")||t.report({message:`'stylesheet' tag can only accept the string argument 'scss' in "${r}"`,startIndex:e.blockStartPosition.start,endIndex:e.blockStartPosition.end})}});var q2=x(wS=>{"use strict";p();Object.defineProperty(wS,"__esModule",{value:!0});wS.checkTablerowTag=mre;var Gu=Ee();function mre(e,t){if(typeof e.markup=="string"){if((0,Gu.hasRubyAcceptedLoopTrailingComma)(e.markup))return;t.report({message:"Syntax error in 'tablerow' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.markup;if((0,Gu.hasBareArrayAccess)(r.collection)||r.args.some(Gu.argHasBareArrayAccess)){t.report({message:"Bare bracket access is not allowed",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Gu.hasSkippedPrefixCharacters)(e.source,e.markupPosition.start,r.position.start)){t.report({message:"Syntax error in 'tablerow' tag",startIndex:e.position.start,endIndex:e.position.end});return}let n=e.source.slice(r.position.start,e.markupPosition.end);(0,Gu.hasSkippedCharacters)(n)&&t.report({message:"Syntax error in 'tablerow' tag",startIndex:e.position.start,endIndex:e.position.end})}});var L2=x(xS=>{"use strict";p();Object.defineProperty(xS,"__esModule",{value:!0});xS.checkUnlessTag=gre;var Ju=Ee();function gre(e,t){if(typeof e.markup=="string"){t.report({message:"Syntax error in 'unless' tag",startIndex:e.position.start,endIndex:e.position.end});return}let r=e.source,n=e.markup,i=(0,Ju.rawMarkup)(e);if((0,Ju.hasUnclosedQuotedString)(i)){t.report({message:"Syntax error in 'unless' tag",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Ju.conditionalHasBareArrayAccess)(n)){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.position.start,endIndex:e.position.end});return}if((0,Ju.hasSkippedPrefixCharacters)(r,e.markupPosition.start,n.position.start)){t.report({message:"Syntax error in 'unless' tag",startIndex:e.position.start,endIndex:e.position.end});return}(0,Ju.hasSkippedCharacters)(r.slice(n.position.start,e.markupPosition.end))&&t.report({message:"Syntax error in 'unless' tag",startIndex:e.position.start,endIndex:e.position.end})}});var C2=x(ES=>{"use strict";p();Object.defineProperty(ES,"__esModule",{value:!0});ES.checkVariableOutput=yre;var xi=Ee();function yre(e,t){let r=e.source.slice(e.markupPosition.start,e.markupPosition.end);if(typeof e.markup=="string"){if((0,xi.hasEmptyMarkup)(r)||(0,xi.hasRubyAcceptedEmptyFirstFilterArgument)(e.markup)||(0,xi.hasRubyAcceptedFilterArgumentTrailingComma)(e.markup))return;t.report({message:"Syntax error in variable output",startIndex:e.position.start,endIndex:e.position.end});return}let n=e.markup;if(!(0,xi.hasRubyAcceptedEmptyFirstFilterArgument)(r)&&!(0,xi.hasRubyAcceptedFilterArgumentTrailingComma)(r)){if((0,xi.hasUnclosedQuotedString)(r)){t.report({message:"Syntax error in variable output",startIndex:e.position.start,endIndex:e.position.end});return}if((0,xi.variableHasBareArrayAccess)(n)){t.report({message:"Bare bracket access is not allowed in strict2 mode",startIndex:e.position.start,endIndex:e.position.end});return}(0,xi.hasSkippedCharacters)(r)&&t.report({message:"Syntax error in variable output",startIndex:e.position.start,endIndex:e.position.end})}}});var V2=x(zm=>{"use strict";p();Object.defineProperty(zm,"__esModule",{value:!0});zm.LiquidSyntaxError=void 0;var I2=G(),_re=DD(),vre=VD(),Wm=$D(),M2=HD(),bre=WD(),kre=zD(),R2=z0(),Sre=XD(),Tre=ZD(),wre=e2(),D2=n2(),xre=i2(),Ere=a2(),Are=o2(),Ore=c2(),Nre=u2(),Pre=l2(),qre=d2(),j2=m2(),Lre=g2(),Cre=y2(),F2=b2(),B2=S2(),Ire=T2(),Mre=w2(),Rre=E2(),Dre=A2(),jre=N2(),Fre=P2(),Bre=q2(),Vre=L2(),$re=C2(),AS=(e,t)=>{},Ure={"#":qre.checkInlineCommentTag,assign:_re.checkAssignTag,block:M2.checkBlockTag,break:AS,capture:bre.checkCaptureTag,case:kre.checkCaseTag,continue:AS,content_for:Sre.checkContentForTag,cycle:Tre.checkCycleTag,decrement:wre.checkDecrementTag,echo:xre.checkEchoTag,form:Ere.checkFormTag,for:Are.checkForTag,tablerow:Bre.checkTablerowTag,if:Ore.checkIfTag,ifchanged:AS,include:Nre.checkIncludeTag,increment:Pre.checkIncrementTag,layout:Lre.checkLayoutTag,paginate:Cre.checkPaginateTag,partial:F2.checkPartialTag,render:Ire.checkRenderTag,section:Dre.checkSectionTag,sections:Rre.checkSectionsTag,unless:Vre.checkUnlessTag},Hre={else:Wm.checkMisplacedBranchTag,elsif:Wm.checkMisplacedBranchTag,when:Wm.checkMisplacedBranchTag},Wre={comment:R2.checkCommentRawTag,doc:D2.checkDocTag,javascript:j2.checkJavascriptTag,schema:Mre.checkSchemaTag,style:jre.checkStyleTag,stylesheet:Fre.checkStylesheetTag,raw:B2.checkRawTag};zm.LiquidSyntaxError={meta:{code:"LiquidSyntaxError",name:"LiquidSyntaxError",docs:{description:"Reports Liquid syntax errors.",recommended:!0},type:I2.SourceCodeType.LiquidHtml,severity:I2.Severity.ERROR,schema:{},targets:[]},create(e){if(e.file.ast instanceof Error){let t=e.file.ast;return{async onCodePathStart(r){(0,R2.checkCommentTag)(t,e,r.source),(0,M2.checkBlockParserError)(t,e,r.source),(0,D2.checkDocParserError)(t,e,r.source),(0,F2.checkPartialParserError)(t,e,r.source),(0,B2.checkRawParserError)(t,e,r.source),(0,j2.checkJavascriptParserError)(t,e,r.source)}}}return{async LiquidRawTag(t){let r=Wre[t.name];r&&r(t,e)},async LiquidTag(t){let r=Ure[t.name]??Hre[t.name];if(r){r(t,e);return}await(0,vre.checkBaseTag)(t,e)},async LiquidBranch(t){(0,Wm.checkBranchTag)(t,e)},async LiquidVariableOutput(t){(0,$re.checkVariableOutput)(t,e)}}}}});var z2=x(Ei=>{"use strict";p();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.MaxFileSizeJSON=Ei.MaxFileSize=void 0;var OS=G(),Mr=1024,Ku=1024*Mr,$2="_drafts",H2="full-file-bytes",sn="schemaless-bytes",W2={assets:{bytes:20*Ku,measurement:H2},locales:{bytes:1.5*Ku,measurement:sn},"config/settings_data.json":{bytes:1.5*Ku,measurement:sn},"config/settings_schema.json":{bytes:512*Mr,measurement:sn},"templates/*.json":{bytes:512*Mr,measurement:sn},"sections/*.json":{bytes:512*Mr,measurement:sn},blocks:{bytes:256*Mr,measurement:sn},config:{bytes:256*Mr,measurement:sn},layout:{bytes:256*Mr,measurement:sn},snippets:{bytes:256*Mr,measurement:sn},templates:{bytes:256*Mr,measurement:sn},sections:{bytes:256*Mr,measurement:sn}},zre=Object.keys(W2),Gre=/{%-?\s*schema\s*-?%}[\s\S]*?{%-?\s*endschema\s*-?%}/g;Ei.MaxFileSize={meta:{code:"MaxFileSize",name:"MaxFileSize",docs:{description:"Reports theme files that exceed Shopify's maximum file size.",recommended:!0},type:OS.SourceCodeType.LiquidHtml,severity:OS.Severity.ERROR,schema:{},targets:[]},create(e){return{async onCodePathStart(){let t=Jre(e.toRelativePath(e.file.uri));if(!t)return;let r=Xre(e.file.source,t.measurement);r<=t.bytes||e.report({message:`Theme file is too large. It is ${U2(r)} but the limit is ${U2(t.bytes)}.`,startIndex:0,endIndex:e.file.source.length})}}}};function Jre(e){if(e===$2||e.startsWith(`${$2}/`))return;let t=Kre(e);if(t)return W2[t]}function Kre(e){return zre.find(t=>{if(t.endsWith("*.json")){let[r,n]=t.split("*");return Yre(e,r)&&e.toLowerCase().endsWith(n)}return Qre(e,t)})}function Qre(e,t){return e===t||e.startsWith(`${t}/`)||e.endsWith(`/${t}`)||e.includes(`/${t}/`)}function Yre(e,t){return e.startsWith(t)||e.includes(`/${t}`)}function Xre(e,t){if(t===H2)return Buffer.byteLength(e);let r=[...e.matchAll(Gre)].reduce((n,i)=>n+Buffer.byteLength(i[0]),0);return Buffer.byteLength(e)-r}function U2(e){return e%Ku===0?`${e/Ku} MB`:e%Mr===0?`${e/Mr} KB`:`${e} bytes`}Ei.MaxFileSizeJSON={...Ei.MaxFileSize,meta:{...Ei.MaxFileSize.meta,type:OS.SourceCodeType.JSON}}});var J2=x(Gm=>{"use strict";p();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.MissingBlockArguments=void 0;var G2=G(),Zre=Mu();Gm.MissingBlockArguments={meta:{code:"MissingBlockArguments",name:"Missing Block Arguments",docs:{description:"Reports when required arguments declared in a block's {% doc %} tag are not provided.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-block-arguments"},type:G2.SourceCodeType.LiquidHtml,severity:G2.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="block"||typeof t.markup=="string")return;let r=t.markup,n=r.name.value,i=await(0,Zre.getBlockDocParams)(e,n);if(!i)return;let s=new Set(r.args.map(a=>a.name));for(let[a,o]of i)o.required&&(s.has(a)||e.report({message:`Missing required argument '${a}' in block tag for '${n}'.`,startIndex:t.position.start,endIndex:t.position.end}))}}}}});var Y2=x(Jm=>{"use strict";p();Object.defineProperty(Jm,"__esModule",{value:!0});Jm.UnknownBlockSetting=void 0;var K2=G(),ene=N0(),Q2="block.settings.";Jm.UnknownBlockSetting={meta:{code:"UnknownBlockSetting",name:"Unknown Block Setting",docs:{description:"Reports a block.settings.<name> argument in a block tag where <name> is not a setting id in the target block's schema.",recommended:!0},type:K2.SourceCodeType.LiquidHtml,severity:K2.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="block"||typeof t.markup=="string")return;let r=t.markup,n=r.name.value,i=await(0,ene.getBlockSchemaSettings)(e,n);if(i)for(let s of r.args){if(!s.name.startsWith(Q2))continue;let a=s.name.slice(Q2.length);a.length!==0&&(a.includes(".")||i.has(a)||e.report({message:`Unknown setting '${a}' referenced via 'block.settings.${a}' on block '${n}'.`,startIndex:s.position.start,endIndex:s.position.end}))}}}}}});var ej=x(Km=>{"use strict";p();Object.defineProperty(Km,"__esModule",{value:!0});Km.UnrecognizedBlockArguments=void 0;var X2=G(),Z2=Mu();Km.UnrecognizedBlockArguments={meta:{code:"UnrecognizedBlockArguments",name:"Unrecognized Block Arguments",docs:{description:"Reports arguments in a block tag that are not declared in the block's {% doc %} tag.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/unrecognized-block-arguments"},type:X2.SourceCodeType.LiquidHtml,severity:X2.Severity.WARNING,schema:{},targets:[]},create(e){return{async LiquidTag(t){if(t.name!=="block"||typeof t.markup=="string")return;let r=t.markup,n=r.name.value,i=await(0,Z2.getBlockDocParams)(e,n);if(i)for(let s of r.args)(0,Z2.isSystemArg)(s.name)||i.has(s.name)||e.report({message:`Unknown argument '${s.name}' in block tag for '${n}'.`,startIndex:s.position.start,endIndex:s.position.end})}}}}});var nj=x(Qm=>{"use strict";p();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.ValidBlockArgumentTypes=void 0;var tj=G(),NS=Ls(),tne=oe(),rj=Mu();Qm.ValidBlockArgumentTypes={meta:{code:"ValidBlockArgumentTypes",name:"Valid Block Argument Types",docs:{description:"Reports type mismatches between block tag arguments and their {% doc %} declarations.",recommended:!0,url:"https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/valid-block-argument-types"},type:tj.SourceCodeType.LiquidHtml,severity:tj.Severity.WARNING,schema:{},targets:[]},create(e){let t=new Set(Object.values(NS.BasicParamTypes));return{async LiquidTag(r){if(r.name!=="block"||typeof r.markup=="string")return;let n=r.markup,i=n.name.value,s=await(0,rj.getBlockDocParams)(e,i);if(s)for(let a of n.args){if((0,rj.isSystemArg)(a.name)||a.value.type===tne.NodeTypes.VariableLookup)continue;let o=s.get(a.name);if(!o||!o.type)continue;let c=o.type.toLowerCase();if(!t.has(c))continue;let l=(0,NS.inferArgumentType)(a.value);(0,NS.isTypeCompatible)(c,l)||e.report({message:`Type mismatch for argument '${a.name}': expected ${o.type}, got ${l}`,startIndex:a.value.position.start,endIndex:a.value.position.end})}}}}}});var aj=x(Vs=>{"use strict";p();Object.defineProperty(Vs,"__esModule",{value:!0});Vs.recommended=Vs.allChecks=void 0;var rne=G(),nne=sC(),ine=cC(),sne=lC(),ane=dC(),one=hC(),cne=gC(),une=bC(),lne=SC(),fne=xC(),dne=AC(),pne=NC(),hne=RC(),mne=$C(),gne=WC(),yne=GC(),_ne=KC(),vne=nI(),bne=aI(),kne=cI(),Sne=dI(),Tne=hI(),wne=bI(),xne=SI(),Ene=wI(),Ane=AI(),One=sM(),Nne=cM(),Pne=lM(),qne=dM(),Lne=hM(),Cne=mM(),Ine=yM(),Mne=bM(),Rne=xM(),Dne=OM(),jne=PM(),Fne=IM(),Bne=RM(),Vne=FM(),$ne=VM(),Une=HM(),Hne=QM(),Wne=iR(),zne=aR(),Gne=uR(),Jne=fR(),Kne=pR(),Qne=mR(),Yne=vR(),Xne=kR(),Zne=TR(),eie=xR(),tie=AR(),rie=NR(),nie=LR(),iie=MR(),sie=DR(),aie=FR(),oie=$R(),cie=GR(),uie=QR(),lie=XR(),fie=tD(),die=iD(),pie=uD(),hie=mD(),mie=yD(),ij=bD(),gie=SD(),yie=TD(),_ie=wD(),wo=ED(),vie=OD(),bie=PD(),kie=qD(),Sie=LD(),Tie=ID(),wie=V2(),sj=z2(),xie=J2(),Eie=Y2(),Aie=ej(),Oie=nj();Vs.allChecks=[nne.AppBlockValidTags,ine.AssetPreload,sne.AssetSizeAppBlockCSS,ane.AssetSizeAppBlockJavaScript,one.AssetSizeCSS,cne.AssetSizeJavaScript,une.BlockIdUsage,lne.CdnPreconnect,fne.ContentForHeaderModification,dne.DeprecateBgsizes,pne.DeprecateLazysizes,hne.DeprecatedFilter,mne.DeprecatedFontsOnSectionsAndBlocks,gne.DeprecatedFontsOnSettingsData,yne.DeprecatedFontsOnSettingsSchema,_ne.DeprecatedTag,bne.DuplicateContentForArguments,vne.DuplicateRenderSnippetArguments,kne.EmptyBlockContent,Sne.HardcodedRoutes,Tne.ImgWidthAndHeight,wne.JSONMissingBlock,xne.JSONMissingSection,Ene.JSONSyntaxError,Ane.LiquidFreeSettings,One.LiquidHTMLSyntaxError,Nne.MatchingTranslations,Pne.MissingAsset,qne.MissingContentForArguments,Lne.MissingRenderSnippetArguments,Cne.MissingTemplate,Zne.UnsupportedFilterArguments,yie.AppBlockMissingSchema,Ine.OrphanedSnippet,Mne.PaginationSize,Rne.ParserBlockingScript,Dne.SchemaPresetsBlockOrder,jne.SchemaPresetsStaticBlocks,Fne.RemoteAsset,Bne.RequiredLayoutThemeObject,Vne.ReservedDocParamNames,$ne.StaticStylesheetAndJavascriptTags,Une.TranslationKeyExists,Hne.UnclosedHTMLElement,Wne.UndefinedObject,zne.UniqueDocParamNames,_ie.UniqueSettingIds,Gne.UniqueStaticBlockId,Jne.UnknownFilter,Kne.UnrecognizedContentForArguments,Qne.UnrecognizedRenderSnippetArguments,Xne.UnsupportedDocTag,Yne.UnusedAssign,eie.UnusedDocParam,nie.ValidBlockTarget,sie.ValidHTMLTranslation,tie.ValidContentForArguments,rie.ValidContentForArgumentTypes,iie.ValidScopedCSSClass,aie.ValidJSON,oie.ValidDocParamTypes,cie.ValidLocalBlocks,uie.ValidRenderSnippetArgumentTypes,lie.ValidSchema,pie.ValidSettingsKey,hie.ValidStandardEventData,mie.ValidStaticBlockType,ij.ValidVisibleIf,ij.ValidVisibleIfSettingsSchema,gie.VariableName,fie.ValidSchemaName,die.ValidSchemaTranslations,wo.JavascriptOncePerFile,wo.JavascriptTagInWrongFile,wo.SchemaOncePerFile,wo.SchemaSectionOrBlockOnly,wo.StylesheetOncePerFile,wo.StylesheetTagInWrongFile,vie.BlockArgumentSettingCollision,bie.DuplicateBlockArguments,kie.ExcessiveSettingsCount,Sie.LiquidComplexity,Tie.LiquidNestingDepth,wie.LiquidSyntaxError,sj.MaxFileSize,sj.MaxFileSizeJSON,xie.MissingBlockArguments,Eie.UnknownBlockSetting,Aie.UnrecognizedBlockArguments,Oie.ValidBlockArgumentTypes];Vs.recommended=Vs.allChecks.filter(e=>{let t=e.meta.docs.recommended,r=!e.meta.targets||!e.meta.targets.length||e.meta.targets.includes(rne.ConfigTarget.Recommended);return t&&r})});var lj=x(Xn=>{"use strict";p();var Nie=Xn&&Xn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Pie=Xn&&Xn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),qie=Xn&&Xn.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),i=0;i<n.length;i++)n[i]!=="default"&&Nie(r,t,n[i]);return Pie(r,t),r}})();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.findRoot=uj;var gr=qie(Ss());async function Lie(e,t){return Cie(t(gr.join(e,"shopify.extension.toml")),t(gr.join(e,".theme-check.yml")),oj(t(gr.join(e,".git")),t(gr.join(e,"assets")),t(gr.join(e,"snippets"))),oj(t(gr.join(e,"assets")),t(gr.join(e,"snippets")),cj(t(gr.join(gr.dirname(e),".theme-check.yml"))),cj(t(gr.join(gr.dirname(gr.dirname(e)),".theme-check.yml")))))}async function oj(...e){return(await Promise.all(e)).reduce((r,n)=>r&&n,!0)}async function Cie(...e){return(await Promise.all(e)).reduce((r,n)=>r||n,!1)}async function cj(e){return!await e}async function uj(e,t){if(await Lie(e,t))return e;let n=gr.dirname(e);return n===e?null:uj(n,t)}});var Ym=x(PS=>{"use strict";p();Object.defineProperty(PS,"__esModule",{value:!0});PS.flattenFixes=fj;function fj(e){return Array.isArray(e)?e.flatMap(fj):[e]}});var pj=x(Xm=>{"use strict";p();Object.defineProperty(Xm,"__esModule",{value:!0});Xm.JSONCorrector=void 0;var dj=Zw();function Iie(e,t){switch(t.type){case"add":return(0,dj.set)(e,t.path,t.value);case"remove":return(0,dj.unset)(e,t.path),e}}var qS=class{source;patches=[];constructor(t){this.source=t}get fix(){if(this.patches.length===0)return[];let t=this.patches.reduce(Iie,JSON.parse(this.source));return{startIndex:0,endIndex:this.source.length,insert:JSON.stringify(t,null,2)}}add(t,r){this.patches.push({type:"add",path:t,value:r})}replace(t,r){this.patches.push({type:"remove",path:t},{type:"add",path:t,value:r})}remove(t){this.patches.push({type:"remove",path:t})}};Xm.JSONCorrector=qS});var hj=x(Zm=>{"use strict";p();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.StringCorrector=void 0;var LS=class{source;fix=[];constructor(t){this.source=t}insert(t,r){this.fix.push({startIndex:t,endIndex:t,insert:r})}replace(t,r,n){this.fix.push({startIndex:t,endIndex:r,insert:n})}remove(t,r){this.fix.push({startIndex:t,endIndex:r,insert:""})}};Zm.StringCorrector=LS});var CS=x($s=>{"use strict";p();Object.defineProperty($s,"__esModule",{value:!0});$s.StringCorrector=$s.JSONCorrector=void 0;$s.createCorrector=Mie;var mj=G(),gj=pj();Object.defineProperty($s,"JSONCorrector",{enumerable:!0,get:function(){return gj.JSONCorrector}});var yj=hj();Object.defineProperty($s,"StringCorrector",{enumerable:!0,get:function(){return yj.StringCorrector}});function Mie(e,t){switch(e){case mj.SourceCodeType.JSON:return new gj.JSONCorrector(t);case mj.SourceCodeType.LiquidHtml:return new yj.StringCorrector(t);default:return Rie(e)}}function Rie(e){throw new Error(`Case statement not exhausted: ${e}`)}});var _j=x(IS=>{"use strict";p();Object.defineProperty(IS,"__esModule",{value:!0});IS.autofix=Fie;var Die=CS(),jie=Ym();async function Fie(e,t,r){let n=t.filter(s=>"fix"in s&&!!s.fix),i=[];for(let s of e){let a=n.filter(c=>c.uri===s.uri);if(a.length===0)continue;let o=(0,Die.createCorrector)(s.type,s.source);for(let c of a)c.fix(o);i.push(r(s,(0,jie.flattenFixes)(o.fix)))}await Promise.all(i)}});var vj=x(MS=>{"use strict";p();Object.defineProperty(MS,"__esModule",{value:!0});MS.applyFixToString=Vie;var Bie=Ym();function Vie(e,t){let r=e,n=0,i=(0,Bie.flattenFixes)(t).sort((s,a)=>s.startIndex-a.startIndex);for(let s=0;s<i.length-1;s++){let a=i[s],o=i[s+1];if(a.endIndex>o.startIndex)throw new Error("Overlapping ranges are not allowed")}for(let s of i){let a=s.startIndex+n,o=s.endIndex+n;if(a<0||a>r.length||o<a||o>r.length)throw new Error("Fix description is going overboard");r=r.slice(0,a)+s.insert+r.slice(o),n+=s.insert.length-(o-a)}return r}});var bj=x(tr=>{"use strict";p();Object.defineProperty(tr,"__esModule",{value:!0});tr.applyFixToString=tr.autofix=tr.createCorrector=tr.JSONCorrector=tr.StringCorrector=tr.flattenFixes=void 0;var $ie=Ym();Object.defineProperty(tr,"flattenFixes",{enumerable:!0,get:function(){return $ie.flattenFixes}});var RS=CS();Object.defineProperty(tr,"StringCorrector",{enumerable:!0,get:function(){return RS.StringCorrector}});Object.defineProperty(tr,"JSONCorrector",{enumerable:!0,get:function(){return RS.JSONCorrector}});Object.defineProperty(tr,"createCorrector",{enumerable:!0,get:function(){return RS.createCorrector}});var Uie=_j();Object.defineProperty(tr,"autofix",{enumerable:!0,get:function(){return Uie.autofix}});var Hie=vj();Object.defineProperty(tr,"applyFixToString",{enumerable:!0,get:function(){return Hie.applyFixToString}})});var Kt=x(ve=>{"use strict";p();var Aj=ve&&ve.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Wie=ve&&ve.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Oj=ve&&ve.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},e(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var n=e(t),i=0;i<n.length;i++)n[i]!=="default"&&Aj(r,t,n[i]);return Wie(r,t),r}})(),rt=ve&&ve.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Aj(t,e,r)};Object.defineProperty(ve,"__esModule",{value:!0});ve.getBlockName=ve.path=void 0;ve.check=Yie;var zie=Lb(),Gie=fk(),Us=Ap(),Jie=XL(),kj=yk(),Sj=Oj(Ss()),DS=G(),Tj=qe(),Nj=iC();rt(dk(),ve);rt(Lb(),ve);rt(aj(),ve);rt(Ap(),ve);rt(lj(),ve);rt(bj(),ve);rt(yk(),ve);rt(We(),ve);rt(fk(),ve);ve.path=Oj(Ss());rt(ct(),ve);rt(Ja(),ve);rt(G(),ve);rt(rf(),ve);rt(Dy(),ve);rt(My(),ve);rt(Cy(),ve);rt(Ny(),ve);rt(Dd(),ve);rt(Hd(),ve);rt(gn(),ve);rt(zh(),ve);var Kie=wn();Object.defineProperty(ve,"getBlockName",{enumerable:!0,get:function(){return Kie.getBlockName}});rt(Ls(),ve);var Qie=e=>{};async function Yie(e,t,r){let n=[],i=[],{fs:s}=r,{rootUri:a}=t,o={...r,mode:t.context,fileExists:(0,Us.makeFileExists)(s),fileSize:(0,Us.makeFileSize)(s),getDefaultLocale:(0,Us.makeGetDefaultLocale)(s,a),getDefaultTranslations:(0,Us.makeGetDefaultTranslations)(s,e,a),getDefaultSchemaLocale:(0,Us.makeGetDefaultSchemaLocale)(s,a),getDefaultSchemaTranslations:(0,Us.makeGetDefaultSchemaTranslations)(s,e,a),getMetafieldDefinitions:r.getMetafieldDefinitions??(0,Us.makeGetMetafieldDefinitions)(s)},{DisabledChecksVisitor:c,isDisabled:l}=(0,Jie.createDisabledChecksModule)(),m=(await Gie.JSONValidator.create(o.jsonValidationSet,t))?.validate;o.themeDocset&&!o.themeDocset.isAugmented&&(o.themeDocset=new zie.AugmentedThemeDocset(o.themeDocset));for(let g of Object.values(DS.SourceCodeType))switch(g){case DS.SourceCodeType.JSON:{let _=Ej(g,e),k=wj(g,t.checks);for(let b of _)for(let v of k){if((0,kj.isIgnored)(b.uri,t,v))continue;let w=xj(v,b,t,i,o,m);n.push(ese(w,b))}break}case DS.SourceCodeType.LiquidHtml:{let _=Ej(g,e),k=[c,...wj(g,t.checks)];for(let b of _)for(let v of k){if((0,kj.isIgnored)(b.uri,t,v))continue;let w=xj(v,b,t,i,o,m);n.push(tse(w,b))}break}}let d=t.onError||Qie;return await Promise.all(n.map(g=>g.catch(d))),i.filter(g=>!l(g))}function Xie(e,t,r,n,i,s){let a=n.settings[e.meta.code];return{...i,validateJSON:s,settings:Zie(a,e.meta.schema),toUri:o=>Sj.join(n.rootUri,...o.split("/")),toRelativePath:o=>Sj.relative(o,n.rootUri),report(o){r.push({type:e.meta.type,check:e.meta.code,message:o.message,uri:t.uri,severity:a?.severity??e.meta.severity,start:(0,Tj.getPosition)(t.source,o.startIndex),end:(0,Tj.getPosition)(t.source,o.endIndex),fix:o.fix,suggest:o.suggest})},file:t}}function Zie(e,t){let r={};for(let[n,i]of Object.entries(t))r[n]=e?.[n]??i.defaultValue();return r}function wj(e,t){return t.filter(r=>r.meta.type===e)}function xj(e,t,r,n,i,s){let a=Xie(e,t,n,r,i,s);return e.create(a)}function Ej(e,t){return t.filter(r=>r.type===e)}async function ese(e,t){e.onCodePathStart&&await e.onCodePathStart(t),!(t.ast instanceof Error)&&(Object.keys(e).length>0&&await(0,Nj.visitJSON)(t.ast,e),e.onCodePathEnd&&await e.onCodePathEnd(t))}async function tse(e,t){e.onCodePathStart&&await e.onCodePathStart(t),!(t.ast instanceof Error)&&(Object.keys(e).length>0&&await(0,Nj.visitLiquid)(t.ast,e),e.onCodePathEnd&&await e.onCodePathEnd(t))}});var qj=x((eg,Pj)=>{p();(function(e,t){typeof eg=="object"&&typeof Pj<"u"?t(eg):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(eg,(function(e){"use strict";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],n="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",i="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},c=/^in(stanceof)?$/,l=new RegExp("["+i+"]"),f=new RegExp("["+i+n+"]");function m(u,h){for(var S=65536,E=0;E<h.length;E+=2){if(S+=h[E],S>u)return!1;if(S+=h[E+1],S>=u)return!0}return!1}function d(u,h){return u<65?u===36:u<91?!0:u<97?u===95:u<123?!0:u<=65535?u>=170&&l.test(String.fromCharCode(u)):h===!1?!1:m(u,r)}function g(u,h){return u<48?u===36:u<58?!0:u<65?!1:u<91?!0:u<97?u===95:u<123?!0:u<=65535?u>=170&&f.test(String.fromCharCode(u)):h===!1?!1:m(u,r)||m(u,t)}var _=function(h,S){S===void 0&&(S={}),this.label=h,this.keyword=S.keyword,this.beforeExpr=!!S.beforeExpr,this.startsExpr=!!S.startsExpr,this.isLoop=!!S.isLoop,this.isAssign=!!S.isAssign,this.prefix=!!S.prefix,this.postfix=!!S.postfix,this.binop=S.binop||null,this.updateContext=null};function k(u,h){return new _(u,{beforeExpr:!0,binop:h})}var b={beforeExpr:!0},v={startsExpr:!0},w={};function T(u,h){return h===void 0&&(h={}),h.keyword=u,w[u]=new _(u,h)}var y={num:new _("num",v),regexp:new _("regexp",v),string:new _("string",v),name:new _("name",v),privateId:new _("privateId",v),eof:new _("eof"),bracketL:new _("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _("]"),braceL:new _("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _("}"),parenL:new _("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _(")"),comma:new _(",",b),semi:new _(";",b),colon:new _(":",b),dot:new _("."),question:new _("?",b),questionDot:new _("?."),arrow:new _("=>",b),template:new _("template"),invalidTemplate:new _("invalidTemplate"),ellipsis:new _("...",b),backQuote:new _("`",v),dollarBraceL:new _("${",{beforeExpr:!0,startsExpr:!0}),eq:new _("=",{beforeExpr:!0,isAssign:!0}),assign:new _("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new _("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new _("**",{beforeExpr:!0}),coalesce:k("??",1),_break:T("break"),_case:T("case",b),_catch:T("catch"),_continue:T("continue"),_debugger:T("debugger"),_default:T("default",b),_do:T("do",{isLoop:!0,beforeExpr:!0}),_else:T("else",b),_finally:T("finally"),_for:T("for",{isLoop:!0}),_function:T("function",v),_if:T("if"),_return:T("return",b),_switch:T("switch"),_throw:T("throw",b),_try:T("try"),_var:T("var"),_const:T("const"),_while:T("while",{isLoop:!0}),_with:T("with"),_new:T("new",{beforeExpr:!0,startsExpr:!0}),_this:T("this",v),_super:T("super",v),_class:T("class",v),_extends:T("extends",b),_export:T("export"),_import:T("import",v),_null:T("null",v),_true:T("true",v),_false:T("false",v),_in:T("in",{beforeExpr:!0,binop:7}),_instanceof:T("instanceof",{beforeExpr:!0,binop:7}),_typeof:T("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:T("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:T("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,O=new RegExp(A.source,"g");function N(u){return u===10||u===13||u===8232||u===8233}function q(u,h,S){S===void 0&&(S=u.length);for(var E=h;E<S;E++){var P=u.charCodeAt(E);if(N(P))return E<S-1&&P===13&&u.charCodeAt(E+1)===10?E+2:E+1}return-1}var B=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,L=Object.prototype,C=L.hasOwnProperty,$=L.toString,V=Object.hasOwn||(function(u,h){return C.call(u,h)}),I=Array.isArray||(function(u){return $.call(u)==="[object Array]"}),F=Object.create(null);function U(u){return F[u]||(F[u]=new RegExp("^(?:"+u.replace(/ /g,"|")+")$"))}function J(u){return u<=65535?String.fromCharCode(u):(u-=65536,String.fromCharCode((u>>10)+55296,(u&1023)+56320))}var Y=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Q=function(h,S){this.line=h,this.column=S};Q.prototype.offset=function(h){return new Q(this.line,this.column+h)};var he=function(h,S,E){this.start=S,this.end=E,h.sourceFile!==null&&(this.source=h.sourceFile)};function ye(u,h){for(var S=1,E=0;;){var P=q(u,E,h);if(P<0)return new Q(S,h-E);++S,E=P}}var it={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Ce=!1;function un(u){var h={};for(var S in it)h[S]=u&&V(u,S)?u[S]:it[S];if(h.ecmaVersion==="latest"?h.ecmaVersion=1e8:h.ecmaVersion==null?(!Ce&&typeof console=="object"&&console.warn&&(Ce=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
90
+ Defaulting to 2020, but this will stop working in the future.`)),h.ecmaVersion=11):h.ecmaVersion>=2015&&(h.ecmaVersion-=2009),h.allowReserved==null&&(h.allowReserved=h.ecmaVersion<5),(!u||u.allowHashBang==null)&&(h.allowHashBang=h.ecmaVersion>=14),I(h.onToken)){var E=h.onToken;h.onToken=function(P){return E.push(P)}}if(I(h.onComment)&&(h.onComment=Ji(h,h.onComment)),h.sourceType==="commonjs"&&h.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return h}function Ji(u,h){return function(S,E,P,R,j,W){var K={type:S?"Block":"Line",value:E,start:P,end:R};u.locations&&(K.loc=new he(this,j,W)),u.ranges&&(K.range=[P,R]),h.push(K)}}var Ki=1,Qi=2,_y=4,gw=8,vy=16,yw=32,Wl=64,_w=128,Yi=256,zo=512,vw=1024,zl=Ki|Qi|Yi;function by(u,h){return Qi|(u?_y:0)|(h?gw:0)}var Gl=0,ky=1,Ln=2,bw=3,kw=4,Sw=5,tt=function(h,S,E){this.options=h=un(h),this.sourceFile=h.sourceFile,this.keywords=U(o[h.ecmaVersion>=6?6:h.sourceType==="module"?"5module":5]);var P="";h.allowReserved!==!0&&(P=s[h.ecmaVersion>=6?6:h.ecmaVersion===5?5:3],h.sourceType==="module"&&(P+=" await")),this.reservedWords=U(P);var R=(P?P+" ":"")+s.strict;this.reservedWordsStrict=U(R),this.reservedWordsStrictBind=U(R+" "+s.strictBind),this.input=String(S),this.containsEsc=!1,E?(this.pos=E,this.lineStart=this.input.lastIndexOf(`
91
+ `,E-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=h.sourceType==="module",this.strict=this.inModule||h.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&h.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Qi:Ki),this.regexpState=null,this.privateNameStack=[]},br={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};tt.prototype.parse=function(){var h=this,S=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return h.parseTopLevel(S)})},br.inFunction.get=function(){return(this.currentVarScope().flags&Qi)>0},br.inGenerator.get=function(){return(this.currentVarScope().flags&gw)>0},br.inAsync.get=function(){return(this.currentVarScope().flags&_y)>0},br.canAwait.get=function(){for(var u=this.scopeStack.length-1;u>=0;u--){var h=this.scopeStack[u],S=h.flags;if(S&(Yi|zo))return!1;if(S&Qi)return(S&_y)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},br.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ki)},br.allowSuper.get=function(){var u=this.currentThisScope(),h=u.flags;return(h&Wl)>0||this.options.allowSuperOutsideMethod},br.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_w)>0},br.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},br.allowNewDotTarget.get=function(){for(var u=this.scopeStack.length-1;u>=0;u--){var h=this.scopeStack[u],S=h.flags;if(S&(Yi|zo)||S&Qi&&!(S&vy))return!0}return!1},br.allowUsing.get=function(){var u=this.currentScope(),h=u.flags;return!(h&vw||!this.inModule&&h&Ki)},br.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Yi)>0},tt.extend=function(){for(var h=[],S=arguments.length;S--;)h[S]=arguments[S];for(var E=this,P=0;P<h.length;P++)E=h[P](E);return E},tt.parse=function(h,S){return new this(S,h).parse()},tt.parseExpressionAt=function(h,S,E){var P=new this(E,h,S);return P.nextToken(),P.parseExpression()},tt.tokenizer=function(h,S){return new this(S,h)},Object.defineProperties(tt.prototype,br);var Dt=tt.prototype,u$=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Dt.strictDirective=function(u){if(this.options.ecmaVersion<5)return!1;for(;;){M.lastIndex=u,u+=M.exec(this.input)[0].length;var h=u$.exec(this.input.slice(u));if(!h)return!1;if((h[1]||h[2])==="use strict"){M.lastIndex=u+h[0].length;var S=M.exec(this.input),E=S.index+S[0].length,P=this.input.charAt(E);return P===";"||P==="}"||A.test(S[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(P)||P==="!"&&this.input.charAt(E+1)==="=")}u+=h[0].length,M.lastIndex=u,u+=M.exec(this.input)[0].length,this.input[u]===";"&&u++}},Dt.eat=function(u){return this.type===u?(this.next(),!0):!1},Dt.isContextual=function(u){return this.type===y.name&&this.value===u&&!this.containsEsc},Dt.eatContextual=function(u){return this.isContextual(u)?(this.next(),!0):!1},Dt.catchStackOverflow=function(u){try{return u()}catch(h){if(h instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(h.message)||/\btoo much recursion\b/i.test(h.message)))this.raise(this.start,"Not enough stack space to parse input");else throw h}},Dt.expectContextual=function(u){this.eatContextual(u)||this.unexpected()},Dt.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},Dt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Dt.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()},Dt.afterTrailingComma=function(u,h){if(this.type===u)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),h||this.next(),!0},Dt.expect=function(u){this.eat(u)||this.unexpected()},Dt.unexpected=function(u){this.raise(u??this.start,"Unexpected token")};var Jl=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Dt.checkPatternErrors=function(u,h){if(u){u.trailingComma>-1&&this.raiseRecoverable(u.trailingComma,"Comma is not permitted after the rest element");var S=h?u.parenthesizedAssign:u.parenthesizedBind;S>-1&&this.raiseRecoverable(S,h?"Assigning to rvalue":"Parenthesized pattern")}},Dt.checkExpressionErrors=function(u,h){if(!u)return!1;var S=u.shorthandAssign,E=u.doubleProto;if(!h)return S>=0||E>=0;S>=0&&this.raise(S,"Shorthand property assignments are valid only in destructuring patterns"),E>=0&&this.raiseRecoverable(E,"Redefinition of __proto__ property")},Dt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Dt.isSimpleAssignTarget=function(u){return u.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(u.expression):u.type==="Identifier"||u.type==="MemberExpression"};var ne=tt.prototype;ne.parseTopLevel=function(u){var h=Object.create(null);for(u.body||(u.body=[]);this.type!==y.eof;){var S=this.parseStatement(null,!0,h);u.body.push(S)}if(this.inModule)for(var E=0,P=Object.keys(this.undefinedExports);E<P.length;E+=1){var R=P[E];this.raiseRecoverable(this.undefinedExports[R].start,"Export '"+R+"' is not defined")}return this.adaptDirectivePrologue(u.body),this.next(),u.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(u,"Program")};var Sy={kind:"loop"},l$={kind:"switch"};ne.isLet=function(u){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var h=M.exec(this.input),S=this.pos+h[0].length,E=this.fullCharCodeAt(S);if(E===91||E===92)return!0;if(u)return!1;if(E===123)return!0;if(d(E)){var P=S;do S+=E<=65535?1:2;while(g(E=this.fullCharCodeAt(S)));if(E===92)return!0;var R=this.input.slice(P,S);if(!c.test(R))return!0}return!1},ne.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var u=M.exec(this.input),h=this.pos+u[0].length,S;return!A.test(this.input.slice(this.pos,h))&&this.input.slice(h,h+8)==="function"&&(h+8===this.input.length||!(g(S=this.fullCharCodeAt(h+8))||S===92))},ne.isUsingKeyword=function(u,h){if(this.options.ecmaVersion<17||!this.isContextual(u?"await":"using"))return!1;M.lastIndex=this.pos;var S=M.exec(this.input),E=this.pos+S[0].length;if(A.test(this.input.slice(this.pos,E)))return!1;if(u){var P=E+5,R;if(this.input.slice(E,P)!=="using"||P===this.input.length||g(R=this.fullCharCodeAt(P))||R===92)return!1;M.lastIndex=P;var j=M.exec(this.input);if(E=P+j[0].length,j&&A.test(this.input.slice(P,E)))return!1}var W=this.fullCharCodeAt(E);if(!d(W)&&W!==92)return!1;var K=E;do E+=W<=65535?1:2;while(g(W=this.fullCharCodeAt(E)));if(W===92)return!0;var le=this.input.slice(K,E);if(c.test(le))return!1;if(h&&!u&&le==="of"){M.lastIndex=E;var ge=M.exec(this.input);if(E=E+ge[0].length,this.input.charCodeAt(E)!==61||(W=this.input.charCodeAt(E+1))===61||W===62)return!1}return!0},ne.isAwaitUsing=function(u){return this.isUsingKeyword(!0,u)},ne.isUsing=function(u){return this.isUsingKeyword(!1,u)},ne.parseStatement=function(u,h,S){var E=this.type,P=this.startNode(),R;switch(this.isLet(u)&&(E=y._var,R="let"),E){case y._break:case y._continue:return this.parseBreakContinueStatement(P,E.keyword);case y._debugger:return this.parseDebuggerStatement(P);case y._do:return this.parseDoStatement(P);case y._for:return this.parseForStatement(P);case y._function:return u&&(this.strict||u!=="if"&&u!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(P,!1,!u);case y._class:return u&&this.unexpected(),this.parseClass(P,!0);case y._if:return this.parseIfStatement(P);case y._return:return this.parseReturnStatement(P);case y._switch:return this.parseSwitchStatement(P);case y._throw:return this.parseThrowStatement(P);case y._try:return this.parseTryStatement(P);case y._const:case y._var:return R=R||this.value,u&&R!=="var"&&this.unexpected(),this.parseVarStatement(P,R);case y._while:return this.parseWhileStatement(P);case y._with:return this.parseWithStatement(P);case y.braceL:return this.parseBlock(!0,P);case y.semi:return this.parseEmptyStatement(P);case y._export:case y._import:if(this.options.ecmaVersion>10&&E===y._import){M.lastIndex=this.pos;var j=M.exec(this.input),W=this.pos+j[0].length,K=this.input.charCodeAt(W);if(K===40||K===46)return this.parseExpressionStatement(P,this.parseExpression())}return this.options.allowImportExportEverywhere||(h||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),E===y._import?this.parseImport(P):this.parseExport(P,S);default:if(this.isAsyncFunction())return u&&this.unexpected(),this.next(),this.parseFunctionStatement(P,!0,!u);var le=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(le)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),u&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),le==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(P,!1,le),this.semicolon(),this.finishNode(P,"VariableDeclaration");var ge=this.value,$e=this.parseExpression();return E===y.name&&$e.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(P,ge,$e,u):this.parseExpressionStatement(P,$e)}},ne.parseBreakContinueStatement=function(u,h){var S=h==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?u.label=null:this.type!==y.name?this.unexpected():(u.label=this.parseIdent(),this.semicolon());for(var E=0;E<this.labels.length;++E){var P=this.labels[E];if((u.label==null||P.name===u.label.name)&&(P.kind!=null&&(S||P.kind==="loop")||u.label&&S))break}return E===this.labels.length&&this.raise(u.start,"Unsyntactic "+h),this.finishNode(u,S?"BreakStatement":"ContinueStatement")},ne.parseDebuggerStatement=function(u){return this.next(),this.semicolon(),this.finishNode(u,"DebuggerStatement")},ne.parseDoStatement=function(u){return this.next(),this.labels.push(Sy),u.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),u.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(u,"DoWhileStatement")},ne.parseForStatement=function(u){this.next();var h=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Sy),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return h>-1&&this.unexpected(h),this.parseFor(u,null);var S=this.isLet();if(this.type===y._var||this.type===y._const||S){var E=this.startNode(),P=S?"let":this.value;return this.next(),this.parseVar(E,!0,P),this.finishNode(E,"VariableDeclaration"),this.parseForAfterInit(u,E,h)}var R=this.isContextual("let"),j=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var K=this.startNode();return this.next(),W==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(K,!0,W),this.finishNode(K,"VariableDeclaration"),this.parseForAfterInit(u,K,h)}var le=this.containsEsc,ge=new Jl,$e=this.start,jt=h>-1?this.parseExprSubscripts(ge,"await"):this.parseExpression(!0,ge);return this.type===y._in||(j=this.options.ecmaVersion>=6&&this.isContextual("of"))?(h>-1?(this.type===y._in&&this.unexpected(h),u.await=!0):j&&this.options.ecmaVersion>=8&&(jt.start===$e&&!le&&jt.type==="Identifier"&&jt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(u.await=!1)),R&&j&&this.raise(jt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(jt,!1,ge),this.checkLValPattern(jt),this.parseForIn(u,jt)):(this.checkExpressionErrors(ge,!0),h>-1&&this.unexpected(h),this.parseFor(u,jt))},ne.parseForAfterInit=function(u,h,S){return(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&h.declarations.length===1?(this.type===y._in?((h.kind==="using"||h.kind==="await using")&&!h.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&S>-1&&this.unexpected(S)):this.options.ecmaVersion>=9&&(u.await=S>-1),this.parseForIn(u,h)):(S>-1&&this.unexpected(S),this.parseFor(u,h))},ne.parseFunctionStatement=function(u,h,S){return this.next(),this.parseFunction(u,Go|(S?0:Ty),!1,h)},ne.parseIfStatement=function(u){return this.next(),u.test=this.parseParenExpression(),u.consequent=this.parseStatement("if"),u.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(u,"IfStatement")},ne.parseReturnStatement=function(u){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?u.argument=null:(u.argument=this.parseExpression(),this.semicolon()),this.finishNode(u,"ReturnStatement")},ne.parseSwitchStatement=function(u){this.next(),u.discriminant=this.parseParenExpression(),u.cases=[],this.expect(y.braceL),this.labels.push(l$),this.enterScope(vw);for(var h,S=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var E=this.type===y._case;h&&this.finishNode(h,"SwitchCase"),u.cases.push(h=this.startNode()),h.consequent=[],this.next(),E?h.test=this.parseExpression():(S&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),S=!0,h.test=null),this.expect(y.colon)}else h||this.unexpected(),h.consequent.push(this.parseStatement(null));return this.exitScope(),h&&this.finishNode(h,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(u,"SwitchStatement")},ne.parseThrowStatement=function(u){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),u.argument=this.parseExpression(),this.semicolon(),this.finishNode(u,"ThrowStatement")};var f$=[];ne.parseCatchClauseParam=function(){var u=this.parseBindingAtom(),h=u.type==="Identifier";return this.enterScope(h?yw:0),this.checkLValPattern(u,h?kw:Ln),this.expect(y.parenR),u},ne.parseTryStatement=function(u){if(this.next(),u.block=this.parseBlock(),u.handler=null,this.type===y._catch){var h=this.startNode();this.next(),this.eat(y.parenL)?h.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),h.param=null,this.enterScope(0)),h.body=this.parseBlock(!1),this.exitScope(),u.handler=this.finishNode(h,"CatchClause")}return u.finalizer=this.eat(y._finally)?this.parseBlock():null,!u.handler&&!u.finalizer&&this.raise(u.start,"Missing catch or finally clause"),this.finishNode(u,"TryStatement")},ne.parseVarStatement=function(u,h,S){return this.next(),this.parseVar(u,!1,h,S),this.semicolon(),this.finishNode(u,"VariableDeclaration")},ne.parseWhileStatement=function(u){return this.next(),u.test=this.parseParenExpression(),this.labels.push(Sy),u.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(u,"WhileStatement")},ne.parseWithStatement=function(u){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),u.object=this.parseParenExpression(),u.body=this.parseStatement("with"),this.finishNode(u,"WithStatement")},ne.parseEmptyStatement=function(u){return this.next(),this.finishNode(u,"EmptyStatement")},ne.parseLabeledStatement=function(u,h,S,E){for(var P=0,R=this.labels;P<R.length;P+=1){var j=R[P];j.name===h&&this.raise(S.start,"Label '"+h+"' is already declared")}for(var W=this.type.isLoop?"loop":this.type===y._switch?"switch":null,K=this.labels.length-1;K>=0;K--){var le=this.labels[K];if(le.statementStart===u.start)le.statementStart=this.start,le.kind=W;else break}return this.labels.push({name:h,kind:W,statementStart:this.start}),u.body=this.parseStatement(E?E.indexOf("label")===-1?E+"label":E:"label"),this.labels.pop(),u.label=S,this.finishNode(u,"LabeledStatement")},ne.parseExpressionStatement=function(u,h){return u.expression=h,this.semicolon(),this.finishNode(u,"ExpressionStatement")},ne.parseBlock=function(u,h,S){for(u===void 0&&(u=!0),h===void 0&&(h=this.startNode()),h.body=[],this.expect(y.braceL),u&&this.enterScope(0);this.type!==y.braceR;){var E=this.parseStatement(null);h.body.push(E)}return S&&(this.strict=!1),this.next(),u&&this.exitScope(),this.finishNode(h,"BlockStatement")},ne.parseFor=function(u,h){return u.init=h,this.expect(y.semi),u.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),u.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),u.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(u,"ForStatement")},ne.parseForIn=function(u,h){var S=this.type===y._in;return this.next(),h.type==="VariableDeclaration"&&h.declarations[0].init!=null&&(!S||this.options.ecmaVersion<8||this.strict||h.kind!=="var"||h.declarations[0].id.type!=="Identifier")&&this.raise(h.start,(S?"for-in":"for-of")+" loop variable declaration may not have an initializer"),u.left=h,u.right=S?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),u.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(u,S?"ForInStatement":"ForOfStatement")},ne.parseVar=function(u,h,S,E){for(u.declarations=[],u.kind=S;;){var P=this.startNode();if(this.parseVarId(P,S),this.eat(y.eq)?P.init=this.parseMaybeAssign(h):!E&&S==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!E&&(S==="using"||S==="await using")&&this.options.ecmaVersion>=17&&this.type!==y._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+S+" declaration"):!E&&P.id.type!=="Identifier"&&!(h&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):P.init=null,u.declarations.push(this.finishNode(P,"VariableDeclarator")),!this.eat(y.comma))break}return u},ne.parseVarId=function(u,h){u.id=h==="using"||h==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(u.id,h==="var"?ky:Ln,!1)};var Go=1,Ty=2,Tw=4;ne.parseFunction=function(u,h,S,E,P){this.initFunction(u),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!E)&&(this.type===y.star&&h&Ty&&this.unexpected(),u.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(u.async=!!E),h&Go&&(u.id=h&Tw&&this.type!==y.name?null:this.parseIdent(),u.id&&!(h&Ty)&&this.checkLValSimple(u.id,this.strict||u.generator||u.async?this.treatFunctionsAsVar?ky:Ln:bw));var R=this.yieldPos,j=this.awaitPos,W=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(by(u.async,u.generator)),h&Go||(u.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(u),this.parseFunctionBody(u,S,!1,P),this.yieldPos=R,this.awaitPos=j,this.awaitIdentPos=W,this.finishNode(u,h&Go?"FunctionDeclaration":"FunctionExpression")},ne.parseFunctionParams=function(u){this.expect(y.parenL),u.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ne.parseClass=function(u,h){this.next();var S=this.strict;this.strict=!0,this.parseClassId(u,h),this.parseClassSuper(u);var E=this.enterClassBody(),P=this.startNode(),R=!1;for(P.body=[],this.expect(y.braceL);this.type!==y.braceR;){var j=this.parseClassElement(u.superClass!==null);j&&(P.body.push(j),j.type==="MethodDefinition"&&j.kind==="constructor"?(R&&this.raiseRecoverable(j.start,"Duplicate constructor in the same class"),R=!0):j.key&&j.key.type==="PrivateIdentifier"&&d$(E,j)&&this.raiseRecoverable(j.key.start,"Identifier '#"+j.key.name+"' has already been declared"))}return this.strict=S,this.next(),u.body=this.finishNode(P,"ClassBody"),this.exitClassBody(),this.finishNode(u,h?"ClassDeclaration":"ClassExpression")},ne.parseClassElement=function(u){if(this.eat(y.semi))return null;var h=this.options.ecmaVersion,S=this.startNode(),E="",P=!1,R=!1,j="method",W=!1;if(this.eatContextual("static")){if(h>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(S),S;this.isClassElementNameStart()||this.type===y.star?W=!0:E="static"}if(S.static=W,!E&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===y.star)&&!this.canInsertSemicolon()?R=!0:E="async"),!E&&(h>=9||!R)&&this.eat(y.star)&&(P=!0),!E&&!R&&!P){var K=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?j=K:E=K)}if(E?(S.computed=!1,S.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),S.key.name=E,this.finishNode(S.key,"Identifier")):this.parseClassElementName(S),h<13||this.type===y.parenL||j!=="method"||P||R){var le=!S.static&&Kl(S,"constructor"),ge=le&&u;le&&j!=="method"&&this.raise(S.key.start,"Constructor can't have get/set modifier"),S.kind=le?"constructor":j,this.parseClassMethod(S,P,R,ge)}else this.parseClassField(S);return S},ne.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword},ne.parseClassElementName=function(u){this.type===y.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),u.computed=!1,u.key=this.parsePrivateIdent()):this.parsePropertyName(u)},ne.parseClassMethod=function(u,h,S,E){var P=u.key;u.kind==="constructor"?(h&&this.raise(P.start,"Constructor can't be a generator"),S&&this.raise(P.start,"Constructor can't be an async method")):u.static&&Kl(u,"prototype")&&this.raise(P.start,"Classes may not have a static property named prototype");var R=u.value=this.parseMethod(h,S,E);return u.kind==="get"&&R.params.length!==0&&this.raiseRecoverable(R.start,"getter should have no params"),u.kind==="set"&&R.params.length!==1&&this.raiseRecoverable(R.start,"setter should have exactly one param"),u.kind==="set"&&R.params[0].type==="RestElement"&&this.raiseRecoverable(R.params[0].start,"Setter cannot use rest params"),this.finishNode(u,"MethodDefinition")},ne.parseClassField=function(u){return Kl(u,"constructor")?this.raise(u.key.start,"Classes can't have a field named 'constructor'"):u.static&&Kl(u,"prototype")&&this.raise(u.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)?(this.enterScope(zo|Wl),u.value=this.parseMaybeAssign(),this.exitScope()):u.value=null,this.semicolon(),this.finishNode(u,"PropertyDefinition")},ne.parseClassStaticBlock=function(u){u.body=[];var h=this.labels;for(this.labels=[],this.enterScope(Yi|Wl);this.type!==y.braceR;){var S=this.parseStatement(null);u.body.push(S)}return this.next(),this.exitScope(),this.labels=h,this.finishNode(u,"StaticBlock")},ne.parseClassId=function(u,h){this.type===y.name?(u.id=this.parseIdent(),h&&this.checkLValSimple(u.id,Ln,!1)):(h===!0&&this.unexpected(),u.id=null)},ne.parseClassSuper=function(u){u.superClass=this.eat(y._extends)?this.parseExprSubscripts(null,!1):null},ne.enterClassBody=function(){var u={declared:Object.create(null),used:[]};return this.privateNameStack.push(u),u.declared},ne.exitClassBody=function(){var u=this.privateNameStack.pop(),h=u.declared,S=u.used;if(this.options.checkPrivateFields)for(var E=this.privateNameStack.length,P=E===0?null:this.privateNameStack[E-1],R=0;R<S.length;++R){var j=S[R];V(h,j.name)||(P?P.used.push(j):this.raiseRecoverable(j.start,"Private field '#"+j.name+"' must be declared in an enclosing class"))}};function d$(u,h){var S=h.key.name,E=u[S],P="true";return h.type==="MethodDefinition"&&(h.kind==="get"||h.kind==="set")&&(P=(h.static?"s":"i")+h.kind),E==="iget"&&P==="iset"||E==="iset"&&P==="iget"||E==="sget"&&P==="sset"||E==="sset"&&P==="sget"?(u[S]="true",!1):E?!0:(u[S]=P,!1)}function Kl(u,h){var S=u.computed,E=u.key;return!S&&(E.type==="Identifier"&&E.name===h||E.type==="Literal"&&E.value===h)}ne.parseExportAllDeclaration=function(u,h){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(u.exported=this.parseModuleExportName(),this.checkExport(h,u.exported,this.lastTokStart)):u.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),u.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(u.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(u,"ExportAllDeclaration")},ne.parseExport=function(u,h){if(this.next(),this.eat(y.star))return this.parseExportAllDeclaration(u,h);if(this.eat(y._default))return this.checkExport(h,"default",this.lastTokStart),u.declaration=this.parseExportDefaultDeclaration(),this.finishNode(u,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())u.declaration=this.parseExportDeclaration(u),u.declaration.type==="VariableDeclaration"?this.checkVariableExport(h,u.declaration.declarations):this.checkExport(h,u.declaration.id,u.declaration.id.start),u.specifiers=[],u.source=null,this.options.ecmaVersion>=16&&(u.attributes=[]);else{if(u.declaration=null,u.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),u.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(u.attributes=this.parseWithClause());else{for(var S=0,E=u.specifiers;S<E.length;S+=1){var P=E[S];this.checkUnreserved(P.local),this.checkLocalExport(P.local),P.local.type==="Literal"&&this.raise(P.local.start,"A string literal cannot be used as an exported binding without `from`.")}u.source=null,this.options.ecmaVersion>=16&&(u.attributes=[])}this.semicolon()}return this.finishNode(u,"ExportNamedDeclaration")},ne.parseExportDeclaration=function(u){return this.parseStatement(null)},ne.parseExportDefaultDeclaration=function(){var u;if(this.type===y._function||(u=this.isAsyncFunction())){var h=this.startNode();return this.next(),u&&this.next(),this.parseFunction(h,Go|Tw,!1,u)}else if(this.type===y._class){var S=this.startNode();return this.parseClass(S,"nullableID")}else{var E=this.parseMaybeAssign();return this.semicolon(),E}},ne.checkExport=function(u,h,S){u&&(typeof h!="string"&&(h=h.type==="Identifier"?h.name:h.value),V(u,h)&&this.raiseRecoverable(S,"Duplicate export '"+h+"'"),u[h]=!0)},ne.checkPatternExport=function(u,h){var S=h.type;if(S==="Identifier")this.checkExport(u,h,h.start);else if(S==="ObjectPattern")for(var E=0,P=h.properties;E<P.length;E+=1){var R=P[E];this.checkPatternExport(u,R)}else if(S==="ArrayPattern")for(var j=0,W=h.elements;j<W.length;j+=1){var K=W[j];K&&this.checkPatternExport(u,K)}else S==="Property"?this.checkPatternExport(u,h.value):S==="AssignmentPattern"?this.checkPatternExport(u,h.left):S==="RestElement"&&this.checkPatternExport(u,h.argument)},ne.checkVariableExport=function(u,h){if(u)for(var S=0,E=h;S<E.length;S+=1){var P=E[S];this.checkPatternExport(u,P.id)}},ne.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ne.parseExportSpecifier=function(u){var h=this.startNode();return h.local=this.parseModuleExportName(),h.exported=this.eatContextual("as")?this.parseModuleExportName():h.local,this.checkExport(u,h.exported,h.exported.start),this.finishNode(h,"ExportSpecifier")},ne.parseExportSpecifiers=function(u){var h=[],S=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(S)S=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;h.push(this.parseExportSpecifier(u))}return h},ne.parseImport=function(u){return this.next(),this.type===y.string?(u.specifiers=f$,u.source=this.parseExprAtom()):(u.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),u.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(u.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(u,"ImportDeclaration")},ne.parseImportSpecifier=function(){var u=this.startNode();return u.imported=this.parseModuleExportName(),this.eatContextual("as")?u.local=this.parseIdent():(this.checkUnreserved(u.imported),u.local=u.imported),this.checkLValSimple(u.local,Ln),this.finishNode(u,"ImportSpecifier")},ne.parseImportDefaultSpecifier=function(){var u=this.startNode();return u.local=this.parseIdent(),this.checkLValSimple(u.local,Ln),this.finishNode(u,"ImportDefaultSpecifier")},ne.parseImportNamespaceSpecifier=function(){var u=this.startNode();return this.next(),this.expectContextual("as"),u.local=this.parseIdent(),this.checkLValSimple(u.local,Ln),this.finishNode(u,"ImportNamespaceSpecifier")},ne.parseImportSpecifiers=function(){var u=[],h=!0;if(this.type===y.name&&(u.push(this.parseImportDefaultSpecifier()),!this.eat(y.comma)))return u;if(this.type===y.star)return u.push(this.parseImportNamespaceSpecifier()),u;for(this.expect(y.braceL);!this.eat(y.braceR);){if(h)h=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;u.push(this.parseImportSpecifier())}return u},ne.parseWithClause=function(){var u=[];if(!this.eat(y._with))return u;this.expect(y.braceL);for(var h={},S=!0;!this.eat(y.braceR);){if(S)S=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var E=this.parseImportAttribute(),P=E.key.type==="Identifier"?E.key.name:E.key.value;V(h,P)&&this.raiseRecoverable(E.key.start,"Duplicate attribute key '"+P+"'"),h[P]=!0,u.push(E)}return u},ne.parseImportAttribute=function(){var u=this.startNode();return u.key=this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(y.colon),this.type!==y.string&&this.unexpected(),u.value=this.parseExprAtom(),this.finishNode(u,"ImportAttribute")},ne.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===y.string){var u=this.parseLiteral(this.value);return Y.test(u.value)&&this.raise(u.start,"An export name cannot include a lone surrogate."),u}return this.parseIdent(!0)},ne.adaptDirectivePrologue=function(u){for(var h=0;h<u.length&&this.isDirectiveCandidate(u[h]);++h)u[h].directive=u[h].expression.raw.slice(1,-1)},ne.isDirectiveCandidate=function(u){return this.options.ecmaVersion>=5&&u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&typeof u.expression.value=="string"&&(this.input[u.start]==='"'||this.input[u.start]==="'")};var kr=tt.prototype;kr.toAssignable=function(u,h,S){if(this.options.ecmaVersion>=6&&u)switch(u.type){case"Identifier":this.inAsync&&u.name==="await"&&this.raise(u.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":u.type="ObjectPattern",S&&this.checkPatternErrors(S,!0);for(var E=0,P=u.properties;E<P.length;E+=1){var R=P[E];this.toAssignable(R,h),R.type==="RestElement"&&(R.argument.type==="ArrayPattern"||R.argument.type==="ObjectPattern")&&this.raise(R.argument.start,"Unexpected token")}break;case"Property":u.kind!=="init"&&this.raise(u.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(u.value,h);break;case"ArrayExpression":u.type="ArrayPattern",S&&this.checkPatternErrors(S,!0),this.toAssignableList(u.elements,h);break;case"SpreadElement":u.type="RestElement",this.toAssignable(u.argument,h),u.argument.type==="AssignmentPattern"&&this.raise(u.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":u.operator!=="="&&this.raise(u.left.end,"Only '=' operator can be used for specifying default value."),u.type="AssignmentPattern",delete u.operator,this.toAssignable(u.left,h);break;case"ParenthesizedExpression":this.toAssignable(u.expression,h,S);break;case"ChainExpression":this.raiseRecoverable(u.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!h)break;default:this.raise(u.start,"Assigning to rvalue")}else S&&this.checkPatternErrors(S,!0);return u},kr.toAssignableList=function(u,h){for(var S=u.length,E=0;E<S;E++){var P=u[E];P&&this.toAssignable(P,h)}if(S){var R=u[S-1];this.options.ecmaVersion===6&&h&&R&&R.type==="RestElement"&&R.argument.type!=="Identifier"&&this.unexpected(R.argument.start)}return u},kr.parseSpread=function(u){var h=this.startNode();return this.next(),h.argument=this.parseMaybeAssign(!1,u),this.finishNode(h,"SpreadElement")},kr.parseRestBinding=function(){var u=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),u.argument=this.parseBindingAtom(),this.finishNode(u,"RestElement")},kr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var u=this.startNode();return this.next(),u.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(u,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},kr.parseBindingList=function(u,h,S,E){for(var P=[],R=!0;!this.eat(u);)if(R?R=!1:this.expect(y.comma),h&&this.type===y.comma)P.push(null);else{if(S&&this.afterTrailingComma(u))break;if(this.type===y.ellipsis){var j=this.parseRestBinding();this.parseBindingListItem(j),P.push(j),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(u);break}else P.push(this.parseAssignableListItem(E))}return P},kr.parseAssignableListItem=function(u){var h=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(h),h},kr.parseBindingListItem=function(u){return u},kr.parseMaybeDefault=function(u,h,S){if(S=S||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return S;var E=this.startNodeAt(u,h);return E.left=S,E.right=this.parseMaybeAssign(),this.finishNode(E,"AssignmentPattern")},kr.checkLValSimple=function(u,h,S){h===void 0&&(h=Gl);var E=h!==Gl;switch(u.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(u.name)&&this.raiseRecoverable(u.start,(E?"Binding ":"Assigning to ")+u.name+" in strict mode"),E&&(h===Ln&&u.name==="let"&&this.raiseRecoverable(u.start,"let is disallowed as a lexically bound name"),S&&(V(S,u.name)&&this.raiseRecoverable(u.start,"Argument name clash"),S[u.name]=!0),h!==Sw&&this.declareName(u.name,h,u.start));break;case"ChainExpression":this.raiseRecoverable(u.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":E&&this.raiseRecoverable(u.start,"Binding member expression");break;case"ParenthesizedExpression":return E&&this.raiseRecoverable(u.start,"Binding parenthesized expression"),this.checkLValSimple(u.expression,h,S);default:this.raise(u.start,(E?"Binding":"Assigning to")+" rvalue")}},kr.checkLValPattern=function(u,h,S){switch(h===void 0&&(h=Gl),u.type){case"ObjectPattern":for(var E=0,P=u.properties;E<P.length;E+=1){var R=P[E];this.checkLValInnerPattern(R,h,S)}break;case"ArrayPattern":for(var j=0,W=u.elements;j<W.length;j+=1){var K=W[j];K&&this.checkLValInnerPattern(K,h,S)}break;default:this.checkLValSimple(u,h,S)}},kr.checkLValInnerPattern=function(u,h,S){switch(h===void 0&&(h=Gl),u.type){case"Property":this.checkLValInnerPattern(u.value,h,S);break;case"AssignmentPattern":this.checkLValPattern(u.left,h,S);break;case"RestElement":this.checkLValPattern(u.argument,h,S);break;default:this.checkLValPattern(u,h,S)}};var Sr=function(h,S,E,P,R){this.token=h,this.isExpr=!!S,this.preserveSpace=!!E,this.override=P,this.generator=!!R},Ve={b_stat:new Sr("{",!1),b_expr:new Sr("{",!0),b_tmpl:new Sr("${",!1),p_stat:new Sr("(",!1),p_expr:new Sr("(",!0),q_tmpl:new Sr("`",!0,!0,function(u){return u.tryReadTemplateToken()}),f_stat:new Sr("function",!1),f_expr:new Sr("function",!0),f_expr_gen:new Sr("function",!0,!1,null,!0),f_gen:new Sr("function",!1,!1,null,!0)},na=tt.prototype;na.initialContext=function(){return[Ve.b_stat]},na.curContext=function(){return this.context[this.context.length-1]},na.braceIsBlock=function(u){var h=this.curContext();return h===Ve.f_expr||h===Ve.f_stat?!0:u===y.colon&&(h===Ve.b_stat||h===Ve.b_expr)?!h.isExpr:u===y._return||u===y.name&&this.exprAllowed?A.test(this.input.slice(this.lastTokEnd,this.start)):u===y._else||u===y.semi||u===y.eof||u===y.parenR||u===y.arrow?!0:u===y.braceL?h===Ve.b_stat:u===y._var||u===y._const||u===y.name?!1:!this.exprAllowed},na.inGeneratorContext=function(){for(var u=this.context.length-1;u>=1;u--){var h=this.context[u];if(h.token==="function")return h.generator}return!1},na.updateContext=function(u){var h,S=this.type;S.keyword&&u===y.dot?this.exprAllowed=!1:(h=S.updateContext)?h.call(this,u):this.exprAllowed=S.beforeExpr},na.overrideContext=function(u){this.curContext()!==u&&(this.context[this.context.length-1]=u)},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var u=this.context.pop();u===Ve.b_stat&&this.curContext().token==="function"&&(u=this.context.pop()),this.exprAllowed=!u.isExpr},y.braceL.updateContext=function(u){this.context.push(this.braceIsBlock(u)?Ve.b_stat:Ve.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(Ve.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(u){var h=u===y._if||u===y._for||u===y._with||u===y._while;this.context.push(h?Ve.p_stat:Ve.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(u){u.beforeExpr&&u!==y._else&&!(u===y.semi&&this.curContext()!==Ve.p_stat)&&!(u===y._return&&A.test(this.input.slice(this.lastTokEnd,this.start)))&&!((u===y.colon||u===y.braceL)&&this.curContext()===Ve.b_stat)?this.context.push(Ve.f_expr):this.context.push(Ve.f_stat),this.exprAllowed=!1},y.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},y.backQuote.updateContext=function(){this.curContext()===Ve.q_tmpl?this.context.pop():this.context.push(Ve.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(u){if(u===y._function){var h=this.context.length-1;this.context[h]===Ve.f_expr?this.context[h]=Ve.f_expr_gen:this.context[h]=Ve.f_gen}this.exprAllowed=!0},y.name.updateContext=function(u){var h=!1;this.options.ecmaVersion>=6&&u!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(h=!0),this.exprAllowed=h};var pe=tt.prototype;pe.checkPropClash=function(u,h,S){if(!(this.options.ecmaVersion>=9&&u.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(u.computed||u.method||u.shorthand))){var E=u.key,P;switch(E.type){case"Identifier":P=E.name;break;case"Literal":P=String(E.value);break;default:return}var R=u.kind;if(this.options.ecmaVersion>=6){P==="__proto__"&&R==="init"&&(h.proto&&(S?S.doubleProto<0&&(S.doubleProto=E.start):this.raiseRecoverable(E.start,"Redefinition of __proto__ property")),h.proto=!0);return}P="$"+P;var j=h[P];if(j){var W;R==="init"?W=this.strict&&j.init||j.get||j.set:W=j.init||j[R],W&&this.raiseRecoverable(E.start,"Redefinition of property")}else j=h[P]={init:!1,get:!1,set:!1};j[R]=!0}},pe.parseExpression=function(u,h){var S=this;return this.catchStackOverflow(function(){var E=S.start,P=S.startLoc,R=S.parseMaybeAssign(u,h);if(S.type===y.comma){var j=S.startNodeAt(E,P);for(j.expressions=[R];S.eat(y.comma);)j.expressions.push(S.parseMaybeAssign(u,h));return S.finishNode(j,"SequenceExpression")}return R})},pe.parseMaybeAssign=function(u,h,S){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(u);this.exprAllowed=!1}var E=!1,P=-1,R=-1,j=-1;h?(P=h.parenthesizedAssign,R=h.trailingComma,j=h.doubleProto,h.parenthesizedAssign=h.trailingComma=-1):(h=new Jl,E=!0);var W=this.start,K=this.startLoc;(this.type===y.parenL||this.type===y.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=u==="await");var le=this.parseMaybeConditional(u,h);if(S&&(le=S.call(this,le,W,K)),this.type.isAssign){var ge=this.startNodeAt(W,K);return ge.operator=this.value,this.type===y.eq&&(le=this.toAssignable(le,!1,h)),E||(h.parenthesizedAssign=h.trailingComma=h.doubleProto=-1),h.shorthandAssign>=le.start&&(h.shorthandAssign=-1),this.type===y.eq?this.checkLValPattern(le):this.checkLValSimple(le),ge.left=le,this.next(),ge.right=this.parseMaybeAssign(u),j>-1&&(h.doubleProto=j),this.finishNode(ge,"AssignmentExpression")}else E&&this.checkExpressionErrors(h,!0);return P>-1&&(h.parenthesizedAssign=P),R>-1&&(h.trailingComma=R),le},pe.parseMaybeConditional=function(u,h){var S=this.start,E=this.startLoc,P=this.parseExprOps(u,h);if(this.checkExpressionErrors(h))return P;if(!(P.type==="ArrowFunctionExpression"&&P.start===S)&&this.eat(y.question)){var R=this.startNodeAt(S,E);return R.test=P,R.consequent=this.parseMaybeAssign(),this.expect(y.colon),R.alternate=this.parseMaybeAssign(u),this.finishNode(R,"ConditionalExpression")}return P},pe.parseExprOps=function(u,h){var S=this.start,E=this.startLoc,P=this.parseMaybeUnary(h,!1,!1,u);return this.checkExpressionErrors(h)||P.start===S&&P.type==="ArrowFunctionExpression"?P:this.parseExprOp(P,S,E,-1,u)},pe.parseExprOp=function(u,h,S,E,P){var R=this.type.binop;if(R!=null&&(!P||this.type!==y._in)&&R>E){var j=this.type===y.logicalOR||this.type===y.logicalAND,W=this.type===y.coalesce;W&&(R=y.logicalAND.binop);var K=this.value;this.next();var le=this.start,ge=this.startLoc,$e=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,P),le,ge,R,P),jt=this.buildBinary(h,S,u,$e,K,j||W);return(j&&this.type===y.coalesce||W&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(jt,h,S,E,P)}return u},pe.buildBinary=function(u,h,S,E,P,R){E.type==="PrivateIdentifier"&&this.raise(E.start,"Private identifier can only be left side of binary expression");var j=this.startNodeAt(u,h);return j.left=S,j.operator=P,j.right=E,this.finishNode(j,R?"LogicalExpression":"BinaryExpression")},pe.parseMaybeUnary=function(u,h,S,E){var P=this.start,R=this.startLoc,j;if(this.isContextual("await")&&this.canAwait)j=this.parseAwait(E),h=!0;else if(this.type.prefix){var W=this.startNode(),K=this.type===y.incDec;W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,K,E),this.checkExpressionErrors(u,!0),K?this.checkLValSimple(W.argument):this.strict&&W.operator==="delete"&&ww(W.argument)?this.raiseRecoverable(W.start,"Deleting local variable in strict mode"):W.operator==="delete"&&wy(W.argument)?this.raiseRecoverable(W.start,"Private fields can not be deleted"):h=!0,j=this.finishNode(W,K?"UpdateExpression":"UnaryExpression")}else if(!h&&this.type===y.privateId)(E||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),j=this.parsePrivateIdent(),this.type!==y._in&&this.unexpected();else{if(j=this.parseExprSubscripts(u,E),this.checkExpressionErrors(u))return j;for(;this.type.postfix&&!this.canInsertSemicolon();){var le=this.startNodeAt(P,R);le.operator=this.value,le.prefix=!1,le.argument=j,this.checkLValSimple(j),this.next(),j=this.finishNode(le,"UpdateExpression")}}if(!S&&this.eat(y.starstar))if(h)this.unexpected(this.lastTokStart);else return this.buildBinary(P,R,j,this.parseMaybeUnary(null,!1,!1,E),"**",!1);else return j};function ww(u){return u.type==="Identifier"||u.type==="ParenthesizedExpression"&&ww(u.expression)}function wy(u){return u.type==="MemberExpression"&&u.property.type==="PrivateIdentifier"||u.type==="ChainExpression"&&wy(u.expression)||u.type==="ParenthesizedExpression"&&wy(u.expression)}pe.parseExprSubscripts=function(u,h){var S=this.start,E=this.startLoc,P=this.parseExprAtom(u,h);if(P.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return P;var R=this.parseSubscripts(P,S,E,!1,h);return u&&R.type==="MemberExpression"&&(u.parenthesizedAssign>=R.start&&(u.parenthesizedAssign=-1),u.parenthesizedBind>=R.start&&(u.parenthesizedBind=-1),u.trailingComma>=R.start&&(u.trailingComma=-1)),R},pe.parseSubscripts=function(u,h,S,E,P){for(var R=this.options.ecmaVersion>=8&&u.type==="Identifier"&&u.name==="async"&&this.lastTokEnd===u.end&&!this.canInsertSemicolon()&&u.end-u.start===5&&this.potentialArrowAt===u.start,j=!1;;){var W=this.parseSubscript(u,h,S,E,R,j,P);if(W.optional&&(j=!0),W===u||W.type==="ArrowFunctionExpression"){if(j){var K=this.startNodeAt(h,S);K.expression=W,W=this.finishNode(K,"ChainExpression")}return W}u=W}},pe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(y.arrow)},pe.parseSubscriptAsyncArrow=function(u,h,S,E){return this.parseArrowExpression(this.startNodeAt(u,h),S,!0,E)},pe.parseSubscript=function(u,h,S,E,P,R,j){var W=this.options.ecmaVersion>=11,K=W&&this.eat(y.questionDot);E&&K&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var le=this.eat(y.bracketL);if(le||K&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var ge=this.startNodeAt(h,S);ge.object=u,le?(ge.property=this.parseExpression(),this.expect(y.bracketR)):this.type===y.privateId&&u.type!=="Super"?ge.property=this.parsePrivateIdent():ge.property=this.parseIdent(this.options.allowReserved!=="never"),ge.computed=!!le,W&&(ge.optional=K),u=this.finishNode(ge,"MemberExpression")}else if(!E&&this.eat(y.parenL)){var $e=new Jl,jt=this.yieldPos,Qo=this.awaitPos,ia=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ef=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,$e);if(P&&!K&&this.shouldParseAsyncArrow())return this.checkPatternErrors($e,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=jt,this.awaitPos=Qo,this.awaitIdentPos=ia,this.parseSubscriptAsyncArrow(h,S,ef,j);this.checkExpressionErrors($e,!0),this.yieldPos=jt||this.yieldPos,this.awaitPos=Qo||this.awaitPos,this.awaitIdentPos=ia||this.awaitIdentPos;var sa=this.startNodeAt(h,S);sa.callee=u,sa.arguments=ef,W&&(sa.optional=K),u=this.finishNode(sa,"CallExpression")}else if(this.type===y.backQuote){(K||R)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var aa=this.startNodeAt(h,S);aa.tag=u,aa.quasi=this.parseTemplate({isTagged:!0}),u=this.finishNode(aa,"TaggedTemplateExpression")}return u},pe.parseExprAtom=function(u,h,S){this.type===y.slash&&this.readRegexp();var E,P=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),E=this.startNode(),this.next(),this.type===y.parenL&&!this.allowDirectSuper&&this.raise(E.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(E,"Super");case y._this:return E=this.startNode(),this.next(),this.finishNode(E,"ThisExpression");case y.name:var R=this.start,j=this.startLoc,W=this.containsEsc,K=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&K.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(Ve.f_expr),this.parseFunction(this.startNodeAt(R,j),0,!1,!0,h);if(P&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(R,j),[K],!1,h);if(this.options.ecmaVersion>=8&&K.name==="async"&&this.type===y.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return K=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(R,j),[K],!0,h)}return K;case y.regexp:var le=this.value;return E=this.parseLiteral(le.value),E.regex={pattern:le.pattern,flags:le.flags},E;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return E=this.startNode(),E.value=this.type===y._null?null:this.type===y._true,E.raw=this.type.keyword,this.next(),this.finishNode(E,"Literal");case y.parenL:var ge=this.start,$e=this.parseParenAndDistinguishExpression(P,h);return u&&(u.parenthesizedAssign<0&&!this.isSimpleAssignTarget($e)&&(u.parenthesizedAssign=ge),u.parenthesizedBind<0&&(u.parenthesizedBind=ge)),$e;case y.bracketL:return E=this.startNode(),this.next(),E.elements=this.parseExprList(y.bracketR,!0,!0,u),this.finishNode(E,"ArrayExpression");case y.braceL:return this.overrideContext(Ve.b_expr),this.parseObj(!1,u);case y._function:return E=this.startNode(),this.next(),this.parseFunction(E,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport(S):this.unexpected();default:return this.parseExprAtomDefault()}},pe.parseExprAtomDefault=function(){this.unexpected()},pe.parseExprImport=function(u){var h=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===y.parenL&&!u)return this.parseDynamicImport(h);if(this.type===y.dot){var S=this.startNodeAt(h.start,h.loc&&h.loc.start);return S.name="import",h.meta=this.finishNode(S,"Identifier"),this.parseImportMeta(h)}else this.unexpected()},pe.parseDynamicImport=function(u){if(this.next(),u.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(y.parenR)?u.options=null:(this.expect(y.comma),this.afterTrailingComma(y.parenR)?u.options=null:(u.options=this.parseMaybeAssign(),this.eat(y.parenR)||(this.expect(y.comma),this.afterTrailingComma(y.parenR)||this.unexpected())));else if(!this.eat(y.parenR)){var h=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(h,"Trailing comma is not allowed in import()"):this.unexpected(h)}return this.finishNode(u,"ImportExpression")},pe.parseImportMeta=function(u){this.next();var h=this.containsEsc;return u.property=this.parseIdent(!0),u.property.name!=="meta"&&this.raiseRecoverable(u.property.start,"The only valid meta property for import is 'import.meta'"),h&&this.raiseRecoverable(u.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(u.start,"Cannot use 'import.meta' outside a module"),this.finishNode(u,"MetaProperty")},pe.parseLiteral=function(u){var h=this.startNode();return h.value=u,h.raw=this.input.slice(this.start,this.end),h.raw.charCodeAt(h.raw.length-1)===110&&(h.bigint=h.value!=null?h.value.toString():h.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(h,"Literal")},pe.parseParenExpression=function(){this.expect(y.parenL);var u=this.parseExpression();return this.expect(y.parenR),u},pe.shouldParseArrow=function(u){return!this.canInsertSemicolon()},pe.parseParenAndDistinguishExpression=function(u,h){var S=this.start,E=this.startLoc,P,R=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var j=this.start,W=this.startLoc,K=[],le=!0,ge=!1,$e=new Jl,jt=this.yieldPos,Qo=this.awaitPos,ia;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(le?le=!1:this.expect(y.comma),R&&this.afterTrailingComma(y.parenR,!0)){ge=!0;break}else if(this.type===y.ellipsis){ia=this.start,K.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else K.push(this.parseMaybeAssign(!1,$e,this.parseParenItem));var ef=this.lastTokEnd,sa=this.lastTokEndLoc;if(this.expect(y.parenR),u&&this.shouldParseArrow(K)&&this.eat(y.arrow))return this.checkPatternErrors($e,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=jt,this.awaitPos=Qo,this.parseParenArrowList(S,E,K,h);(!K.length||ge)&&this.unexpected(this.lastTokStart),ia&&this.unexpected(ia),this.checkExpressionErrors($e,!0),this.yieldPos=jt||this.yieldPos,this.awaitPos=Qo||this.awaitPos,K.length>1?(P=this.startNodeAt(j,W),P.expressions=K,this.finishNodeAt(P,"SequenceExpression",ef,sa)):P=K[0]}else P=this.parseParenExpression();if(this.options.preserveParens){var aa=this.startNodeAt(S,E);return aa.expression=P,this.finishNode(aa,"ParenthesizedExpression")}else return P},pe.parseParenItem=function(u){return u},pe.parseParenArrowList=function(u,h,S,E){return this.parseArrowExpression(this.startNodeAt(u,h),S,!1,E)};var p$=[];pe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var u=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===y.dot){var h=this.startNodeAt(u.start,u.loc&&u.loc.start);h.name="new",u.meta=this.finishNode(h,"Identifier"),this.next();var S=this.containsEsc;return u.property=this.parseIdent(!0),u.property.name!=="target"&&this.raiseRecoverable(u.property.start,"The only valid meta property for new is 'new.target'"),S&&this.raiseRecoverable(u.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(u.start,"'new.target' can only be used in functions and class static block"),this.finishNode(u,"MetaProperty")}var E=this.start,P=this.startLoc;return u.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),E,P,!0,!1),u.callee.type==="Super"&&this.raiseRecoverable(E,"Invalid use of 'super'"),this.eat(y.parenL)?u.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):u.arguments=p$,this.finishNode(u,"NewExpression")},pe.parseTemplateElement=function(u){var h=u.isTagged,S=this.startNode();return this.type===y.invalidTemplate?(h||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),S.value={raw:this.value.replace(/\r\n?/g,`
92
+ `),cooked:null}):S.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
93
+ `),cooked:this.value},this.next(),S.tail=this.type===y.backQuote,this.finishNode(S,"TemplateElement")},pe.parseTemplate=function(u){u===void 0&&(u={});var h=u.isTagged;h===void 0&&(h=!1);var S=this.startNode();this.next(),S.expressions=[];var E=this.parseTemplateElement({isTagged:h});for(S.quasis=[E];!E.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),S.expressions.push(this.parseExpression()),this.expect(y.braceR),S.quasis.push(E=this.parseTemplateElement({isTagged:h}));return this.next(),this.finishNode(S,"TemplateLiteral")},pe.isAsyncProp=function(u){return!u.computed&&u.key.type==="Identifier"&&u.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},pe.parseObj=function(u,h){var S=this.startNode(),E=!0,P={};for(S.properties=[],this.next();!this.eat(y.braceR);){if(E)E=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var R=this.parseProperty(u,h);u||this.checkPropClash(R,P,h),S.properties.push(R)}return this.finishNode(S,u?"ObjectPattern":"ObjectExpression")},pe.parseProperty=function(u,h){var S=this.startNode(),E,P,R,j;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return u?(S.argument=this.parseIdent(!1),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(S,"RestElement")):(S.argument=this.parseMaybeAssign(!1,h),this.type===y.comma&&h&&h.trailingComma<0&&(h.trailingComma=this.start),this.finishNode(S,"SpreadElement"));this.options.ecmaVersion>=6&&(S.method=!1,S.shorthand=!1,(u||h)&&(R=this.start,j=this.startLoc),u||(E=this.eat(y.star)));var W=this.containsEsc;return this.parsePropertyName(S),!u&&!W&&this.options.ecmaVersion>=8&&!E&&this.isAsyncProp(S)?(P=!0,E=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(S)):P=!1,this.parsePropertyValue(S,u,E,P,R,j,h,W),this.finishNode(S,"Property")},pe.parseGetterSetter=function(u){var h=u.key.name;this.parsePropertyName(u),u.value=this.parseMethod(!1),u.kind=h;var S=u.kind==="get"?0:1;if(u.value.params.length!==S){var E=u.value.start;u.kind==="get"?this.raiseRecoverable(E,"getter should have no params"):this.raiseRecoverable(E,"setter should have exactly one param")}else u.kind==="set"&&u.value.params[0].type==="RestElement"&&this.raiseRecoverable(u.value.params[0].start,"Setter cannot use rest params")},pe.parsePropertyValue=function(u,h,S,E,P,R,j,W){(S||E)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon)?(u.value=h?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,j),u.kind="init"):this.options.ecmaVersion>=6&&this.type===y.parenL?(h&&this.unexpected(),u.method=!0,u.value=this.parseMethod(S,E),u.kind="init"):!h&&!W&&this.options.ecmaVersion>=5&&!u.computed&&u.key.type==="Identifier"&&(u.key.name==="get"||u.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq?((S||E)&&this.unexpected(),this.parseGetterSetter(u)):this.options.ecmaVersion>=6&&!u.computed&&u.key.type==="Identifier"?((S||E)&&this.unexpected(),this.checkUnreserved(u.key),u.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=P),h?u.value=this.parseMaybeDefault(P,R,this.copyNode(u.key)):this.type===y.eq&&j?(j.shorthandAssign<0&&(j.shorthandAssign=this.start),u.value=this.parseMaybeDefault(P,R,this.copyNode(u.key))):u.value=this.copyNode(u.key),u.kind="init",u.shorthand=!0):this.unexpected()},pe.parsePropertyName=function(u){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return u.computed=!0,u.key=this.parseMaybeAssign(),this.expect(y.bracketR),u.key;u.computed=!1}return u.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},pe.initFunction=function(u){u.id=null,this.options.ecmaVersion>=6&&(u.generator=u.expression=!1),this.options.ecmaVersion>=8&&(u.async=!1)},pe.parseMethod=function(u,h,S){var E=this.startNode(),P=this.yieldPos,R=this.awaitPos,j=this.awaitIdentPos;return this.initFunction(E),this.options.ecmaVersion>=6&&(E.generator=u),this.options.ecmaVersion>=8&&(E.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(by(h,E.generator)|Wl|(S?_w:0)),this.expect(y.parenL),E.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(E,!1,!0,!1),this.yieldPos=P,this.awaitPos=R,this.awaitIdentPos=j,this.finishNode(E,"FunctionExpression")},pe.parseArrowExpression=function(u,h,S,E){var P=this.yieldPos,R=this.awaitPos,j=this.awaitIdentPos;return this.enterScope(by(S,!1)|vy),this.initFunction(u),this.options.ecmaVersion>=8&&(u.async=!!S),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,u.params=this.toAssignableList(h,!0),this.parseFunctionBody(u,!0,!1,E),this.yieldPos=P,this.awaitPos=R,this.awaitIdentPos=j,this.finishNode(u,"ArrowFunctionExpression")},pe.parseFunctionBody=function(u,h,S,E){var P=h&&this.type!==y.braceL,R=this.strict,j=!1;if(P)u.body=this.parseMaybeAssign(E),u.expression=!0,this.checkParams(u,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(u.params);(!R||W)&&(j=this.strictDirective(this.end),j&&W&&this.raiseRecoverable(u.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var K=this.labels;this.labels=[],j&&(this.strict=!0),this.checkParams(u,!R&&!j&&!h&&!S&&this.isSimpleParamList(u.params)),this.strict&&u.id&&this.checkLValSimple(u.id,Sw),u.body=this.parseBlock(!1,void 0,j&&!R),u.expression=!1,this.adaptDirectivePrologue(u.body.body),this.labels=K}this.exitScope()},pe.isSimpleParamList=function(u){for(var h=0,S=u;h<S.length;h+=1){var E=S[h];if(E.type!=="Identifier")return!1}return!0},pe.checkParams=function(u,h){for(var S=Object.create(null),E=0,P=u.params;E<P.length;E+=1){var R=P[E];this.checkLValInnerPattern(R,ky,h?null:S)}},pe.parseExprList=function(u,h,S,E){for(var P=[],R=!0;!this.eat(u);){if(R)R=!1;else if(this.expect(y.comma),h&&this.afterTrailingComma(u))break;var j=void 0;S&&this.type===y.comma?j=null:this.type===y.ellipsis?(j=this.parseSpread(E),E&&this.type===y.comma&&E.trailingComma<0&&(E.trailingComma=this.start)):j=this.parseMaybeAssign(!1,E),P.push(j)}return P},pe.checkUnreserved=function(u){var h=u.start,S=u.end,E=u.name;if(this.inGenerator&&E==="yield"&&this.raiseRecoverable(h,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&E==="await"&&this.raiseRecoverable(h,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&zl)&&E==="arguments"&&this.raiseRecoverable(h,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(E==="arguments"||E==="await")&&this.raise(h,"Cannot use "+E+" in class static initialization block"),this.keywords.test(E)&&this.raise(h,"Unexpected keyword '"+E+"'"),!(this.options.ecmaVersion<6&&this.input.slice(h,S).indexOf("\\")!==-1)){var P=this.strict?this.reservedWordsStrict:this.reservedWords;P.test(E)&&(!this.inAsync&&E==="await"&&this.raiseRecoverable(h,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(h,"The keyword '"+E+"' is reserved"))}},pe.parseIdent=function(u){var h=this.parseIdentNode();return this.next(!!u),this.finishNode(h,"Identifier"),u||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},pe.parseIdentNode=function(){var u=this.startNode();return this.type===y.name?u.name=this.value:this.type.keyword?(u.name=this.type.keyword,(u.name==="class"||u.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=y.name):this.unexpected(),u},pe.parsePrivateIdent=function(){var u=this.startNode();return this.type===y.privateId?u.name=this.value:this.unexpected(),this.next(),this.finishNode(u,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(u.start,"Private field '#"+u.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(u)),u},pe.parseYield=function(u){this.yieldPos||(this.yieldPos=this.start);var h=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(y.star),h.argument=this.parseMaybeAssign(u)),this.finishNode(h,"YieldExpression")},pe.parseAwait=function(u){this.awaitPos||(this.awaitPos=this.start);var h=this.startNode();return this.next(),h.argument=this.parseMaybeUnary(null,!0,!1,u),this.finishNode(h,"AwaitExpression")};var Ql=tt.prototype;Ql.raise=function(u,h){var S=ye(this.input,u);h+=" ("+S.line+":"+S.column+")",this.sourceFile&&(h+=" in "+this.sourceFile);var E=new SyntaxError(h);throw E.pos=u,E.loc=S,E.raisedAt=this.pos,E},Ql.raiseRecoverable=Ql.raise,Ql.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var ri=tt.prototype,h$=function(h){this.flags=h,this.var=[],this.lexical=[],this.functions=[]};ri.enterScope=function(u){this.scopeStack.push(new h$(u))},ri.exitScope=function(){this.scopeStack.pop()},ri.treatFunctionsAsVarInScope=function(u){return u.flags&Qi||!this.inModule&&u.flags&Ki},ri.declareName=function(u,h,S){var E=!1;if(h===Ln){var P=this.currentScope();E=P.lexical.indexOf(u)>-1||P.functions.indexOf(u)>-1||P.var.indexOf(u)>-1,P.lexical.push(u),this.inModule&&P.flags&Ki&&delete this.undefinedExports[u]}else if(h===kw){var R=this.currentScope();R.lexical.push(u)}else if(h===bw){var j=this.currentScope();this.treatFunctionsAsVar?E=j.lexical.indexOf(u)>-1:E=j.lexical.indexOf(u)>-1||j.var.indexOf(u)>-1,j.functions.push(u)}else for(var W=this.scopeStack.length-1;W>=0;--W){var K=this.scopeStack[W];if(K.lexical.indexOf(u)>-1&&!(K.flags&yw&&K.lexical[0]===u)||!this.treatFunctionsAsVarInScope(K)&&K.functions.indexOf(u)>-1){E=!0;break}if(K.var.push(u),this.inModule&&K.flags&Ki&&delete this.undefinedExports[u],K.flags&zl)break}E&&this.raiseRecoverable(S,"Identifier '"+u+"' has already been declared")},ri.checkLocalExport=function(u){this.scopeStack[0].lexical.indexOf(u.name)===-1&&this.scopeStack[0].var.indexOf(u.name)===-1&&(this.undefinedExports[u.name]=u)},ri.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ri.currentVarScope=function(){for(var u=this.scopeStack.length-1;;u--){var h=this.scopeStack[u];if(h.flags&(zl|zo|Yi))return h}},ri.currentThisScope=function(){for(var u=this.scopeStack.length-1;;u--){var h=this.scopeStack[u];if(h.flags&(zl|zo|Yi)&&!(h.flags&vy))return h}};var Jo=function(h,S,E){this.type="",this.start=S,this.end=0,h.options.locations&&(this.loc=new he(h,E)),h.options.directSourceFile&&(this.sourceFile=h.options.directSourceFile),h.options.ranges&&(this.range=[S,0])},Ko=tt.prototype;Ko.startNode=function(){return new Jo(this,this.start,this.startLoc)},Ko.startNodeAt=function(u,h){return new Jo(this,u,h)};function xw(u,h,S,E){return u.type=h,u.end=S,this.options.locations&&(u.loc.end=E),this.options.ranges&&(u.range[1]=S),u}Ko.finishNode=function(u,h){return xw.call(this,u,h,this.lastTokEnd,this.lastTokEndLoc)},Ko.finishNodeAt=function(u,h,S,E){return xw.call(this,u,h,S,E)},Ko.copyNode=function(u){var h=new Jo(this,u.start,this.startLoc);for(var S in u)h[S]=u[S];return h};var m$="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Ew="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Aw=Ew+" Extended_Pictographic",Ow=Aw,Nw=Ow+" EBase EComp EMod EPres ExtPict",Pw=Nw,g$=Pw,y$={9:Ew,10:Aw,11:Ow,12:Nw,13:Pw,14:g$},_$="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",v$={9:"",10:"",11:"",12:"",13:"",14:_$},qw="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Lw="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Cw=Lw+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Iw=Cw+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mw=Iw+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Rw=Mw+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",b$=Rw+" "+m$,k$={9:Lw,10:Cw,11:Iw,12:Mw,13:Rw,14:b$},Dw={};function S$(u){var h=Dw[u]={binary:U(y$[u]+" "+qw),binaryOfStrings:U(v$[u]),nonBinary:{General_Category:U(qw),Script:U(k$[u])}};h.nonBinary.Script_Extensions=h.nonBinary.Script,h.nonBinary.gc=h.nonBinary.General_Category,h.nonBinary.sc=h.nonBinary.Script,h.nonBinary.scx=h.nonBinary.Script_Extensions}for(var xy=0,jw=[9,10,11,12,13,14];xy<jw.length;xy+=1){var T$=jw[xy];S$(T$)}var te=tt.prototype,Yl=function(h,S){this.parent=h,this.base=S||this};Yl.prototype.separatedFrom=function(h){for(var S=this;S;S=S.parent)for(var E=h;E;E=E.parent)if(S.base===E.base&&S!==E)return!0;return!1},Yl.prototype.sibling=function(){return new Yl(this.parent,this.base)};var ln=function(h){this.parser=h,this.validFlags="gim"+(h.options.ecmaVersion>=6?"uy":"")+(h.options.ecmaVersion>=9?"s":"")+(h.options.ecmaVersion>=13?"d":"")+(h.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Dw[h.options.ecmaVersion>=14?14:h.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};ln.prototype.reset=function(h,S,E){var P=E.indexOf("v")!==-1,R=E.indexOf("u")!==-1;this.start=h|0,this.source=S+"",this.flags=E,P&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=R&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=R&&this.parser.options.ecmaVersion>=9)},ln.prototype.raise=function(h){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+h)},ln.prototype.at=function(h,S){S===void 0&&(S=!1);var E=this.source,P=E.length;if(h>=P)return-1;var R=E.charCodeAt(h);if(!(S||this.switchU)||R<=55295||R>=57344||h+1>=P)return R;var j=E.charCodeAt(h+1);return j>=56320&&j<=57343?(R<<10)+j-56613888:R},ln.prototype.nextIndex=function(h,S){S===void 0&&(S=!1);var E=this.source,P=E.length;if(h>=P)return P;var R=E.charCodeAt(h),j;return!(S||this.switchU)||R<=55295||R>=57344||h+1>=P||(j=E.charCodeAt(h+1))<56320||j>57343?h+1:h+2},ln.prototype.current=function(h){return h===void 0&&(h=!1),this.at(this.pos,h)},ln.prototype.lookahead=function(h){return h===void 0&&(h=!1),this.at(this.nextIndex(this.pos,h),h)},ln.prototype.advance=function(h){h===void 0&&(h=!1),this.pos=this.nextIndex(this.pos,h)},ln.prototype.eat=function(h,S){return S===void 0&&(S=!1),this.current(S)===h?(this.advance(S),!0):!1},ln.prototype.eatChars=function(h,S){S===void 0&&(S=!1);for(var E=this.pos,P=0,R=h;P<R.length;P+=1){var j=R[P],W=this.at(E,S);if(W===-1||W!==j)return!1;E=this.nextIndex(E,S)}return this.pos=E,!0},te.validateRegExpFlags=function(u){for(var h=u.validFlags,S=u.flags,E=!1,P=!1,R=0;R<S.length;R++){var j=S.charAt(R);h.indexOf(j)===-1&&this.raise(u.start,"Invalid regular expression flag"),S.indexOf(j,R+1)>-1&&this.raise(u.start,"Duplicate regular expression flag"),j==="u"&&(E=!0),j==="v"&&(P=!0)}this.options.ecmaVersion>=15&&E&&P&&this.raise(u.start,"Invalid regular expression flag")};function w$(u){for(var h in u)return!0;return!1}te.validateRegExpPattern=function(u){this.regexp_pattern(u),!u.switchN&&this.options.ecmaVersion>=9&&w$(u.groupNames)&&(u.switchN=!0,this.regexp_pattern(u))},te.regexp_pattern=function(u){u.pos=0,u.lastIntValue=0,u.lastStringValue="",u.lastAssertionIsQuantifiable=!1,u.numCapturingParens=0,u.maxBackReference=0,u.groupNames=Object.create(null),u.backReferenceNames.length=0,u.branchID=null,this.regexp_disjunction(u),u.pos!==u.source.length&&(u.eat(41)&&u.raise("Unmatched ')'"),(u.eat(93)||u.eat(125))&&u.raise("Lone quantifier brackets")),u.maxBackReference>u.numCapturingParens&&u.raise("Invalid escape");for(var h=0,S=u.backReferenceNames;h<S.length;h+=1){var E=S[h];u.groupNames[E]||u.raise("Invalid named capture referenced")}},te.regexp_disjunction=function(u){var h=this.options.ecmaVersion>=16;for(h&&(u.branchID=new Yl(u.branchID,null)),this.regexp_alternative(u);u.eat(124);)h&&(u.branchID=u.branchID.sibling()),this.regexp_alternative(u);h&&(u.branchID=u.branchID.parent),this.regexp_eatQuantifier(u,!0)&&u.raise("Nothing to repeat"),u.eat(123)&&u.raise("Lone quantifier brackets")},te.regexp_alternative=function(u){for(;u.pos<u.source.length&&this.regexp_eatTerm(u););},te.regexp_eatTerm=function(u){return this.regexp_eatAssertion(u)?(u.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(u)&&u.switchU&&u.raise("Invalid quantifier"),!0):(u.switchU?this.regexp_eatAtom(u):this.regexp_eatExtendedAtom(u))?(this.regexp_eatQuantifier(u),!0):!1},te.regexp_eatAssertion=function(u){var h=u.pos;if(u.lastAssertionIsQuantifiable=!1,u.eat(94)||u.eat(36))return!0;if(u.eat(92)){if(u.eat(66)||u.eat(98))return!0;u.pos=h}if(u.eat(40)&&u.eat(63)){var S=!1;if(this.options.ecmaVersion>=9&&(S=u.eat(60)),u.eat(61)||u.eat(33))return this.regexp_disjunction(u),u.eat(41)||u.raise("Unterminated group"),u.lastAssertionIsQuantifiable=!S,!0}return u.pos=h,!1},te.regexp_eatQuantifier=function(u,h){return h===void 0&&(h=!1),this.regexp_eatQuantifierPrefix(u,h)?(u.eat(63),!0):!1},te.regexp_eatQuantifierPrefix=function(u,h){return u.eat(42)||u.eat(43)||u.eat(63)||this.regexp_eatBracedQuantifier(u,h)},te.regexp_eatBracedQuantifier=function(u,h){var S=u.pos;if(u.eat(123)){var E=0,P=-1;if(this.regexp_eatDecimalDigits(u)&&(E=u.lastIntValue,u.eat(44)&&this.regexp_eatDecimalDigits(u)&&(P=u.lastIntValue),u.eat(125)))return P!==-1&&P<E&&!h&&u.raise("numbers out of order in {} quantifier"),!0;u.switchU&&!h&&u.raise("Incomplete quantifier"),u.pos=S}return!1},te.regexp_eatAtom=function(u){return this.regexp_eatPatternCharacters(u)||u.eat(46)||this.regexp_eatReverseSolidusAtomEscape(u)||this.regexp_eatCharacterClass(u)||this.regexp_eatUncapturingGroup(u)||this.regexp_eatCapturingGroup(u)},te.regexp_eatReverseSolidusAtomEscape=function(u){var h=u.pos;if(u.eat(92)){if(this.regexp_eatAtomEscape(u))return!0;u.pos=h}return!1},te.regexp_eatUncapturingGroup=function(u){var h=u.pos;if(u.eat(40)){if(u.eat(63)){if(this.options.ecmaVersion>=16){var S=this.regexp_eatModifiers(u),E=u.eat(45);if(S||E){for(var P=0;P<S.length;P++){var R=S.charAt(P);S.indexOf(R,P+1)>-1&&u.raise("Duplicate regular expression modifiers")}if(E){var j=this.regexp_eatModifiers(u);!S&&!j&&u.current()===58&&u.raise("Invalid regular expression modifiers");for(var W=0;W<j.length;W++){var K=j.charAt(W);(j.indexOf(K,W+1)>-1||S.indexOf(K)>-1)&&u.raise("Duplicate regular expression modifiers")}}}}if(u.eat(58)){if(this.regexp_disjunction(u),u.eat(41))return!0;u.raise("Unterminated group")}}u.pos=h}return!1},te.regexp_eatCapturingGroup=function(u){if(u.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(u):u.current()===63&&u.raise("Invalid group"),this.regexp_disjunction(u),u.eat(41))return u.numCapturingParens+=1,!0;u.raise("Unterminated group")}return!1},te.regexp_eatModifiers=function(u){for(var h="",S=0;(S=u.current())!==-1&&x$(S);)h+=J(S),u.advance();return h};function x$(u){return u===105||u===109||u===115}te.regexp_eatExtendedAtom=function(u){return u.eat(46)||this.regexp_eatReverseSolidusAtomEscape(u)||this.regexp_eatCharacterClass(u)||this.regexp_eatUncapturingGroup(u)||this.regexp_eatCapturingGroup(u)||this.regexp_eatInvalidBracedQuantifier(u)||this.regexp_eatExtendedPatternCharacter(u)},te.regexp_eatInvalidBracedQuantifier=function(u){return this.regexp_eatBracedQuantifier(u,!0)&&u.raise("Nothing to repeat"),!1},te.regexp_eatSyntaxCharacter=function(u){var h=u.current();return Fw(h)?(u.lastIntValue=h,u.advance(),!0):!1};function Fw(u){return u===36||u>=40&&u<=43||u===46||u===63||u>=91&&u<=94||u>=123&&u<=125}te.regexp_eatPatternCharacters=function(u){for(var h=u.pos,S=0;(S=u.current())!==-1&&!Fw(S);)u.advance();return u.pos!==h},te.regexp_eatExtendedPatternCharacter=function(u){var h=u.current();return h!==-1&&h!==36&&!(h>=40&&h<=43)&&h!==46&&h!==63&&h!==91&&h!==94&&h!==124?(u.advance(),!0):!1},te.regexp_groupSpecifier=function(u){if(u.eat(63)){this.regexp_eatGroupName(u)||u.raise("Invalid group");var h=this.options.ecmaVersion>=16,S=u.groupNames[u.lastStringValue];if(S)if(h)for(var E=0,P=S;E<P.length;E+=1){var R=P[E];R.separatedFrom(u.branchID)||u.raise("Duplicate capture group name")}else u.raise("Duplicate capture group name");h?(S||(u.groupNames[u.lastStringValue]=[])).push(u.branchID):u.groupNames[u.lastStringValue]=!0}},te.regexp_eatGroupName=function(u){if(u.lastStringValue="",u.eat(60)){if(this.regexp_eatRegExpIdentifierName(u)&&u.eat(62))return!0;u.raise("Invalid capture group name")}return!1},te.regexp_eatRegExpIdentifierName=function(u){if(u.lastStringValue="",this.regexp_eatRegExpIdentifierStart(u)){for(u.lastStringValue+=J(u.lastIntValue);this.regexp_eatRegExpIdentifierPart(u);)u.lastStringValue+=J(u.lastIntValue);return!0}return!1},te.regexp_eatRegExpIdentifierStart=function(u){var h=u.pos,S=this.options.ecmaVersion>=11,E=u.current(S);return u.advance(S),E===92&&this.regexp_eatRegExpUnicodeEscapeSequence(u,S)&&(E=u.lastIntValue),E$(E)?(u.lastIntValue=E,!0):(u.pos=h,!1)};function E$(u){return d(u,!0)||u===36||u===95}te.regexp_eatRegExpIdentifierPart=function(u){var h=u.pos,S=this.options.ecmaVersion>=11,E=u.current(S);return u.advance(S),E===92&&this.regexp_eatRegExpUnicodeEscapeSequence(u,S)&&(E=u.lastIntValue),A$(E)?(u.lastIntValue=E,!0):(u.pos=h,!1)};function A$(u){return g(u,!0)||u===36||u===95||u===8204||u===8205}te.regexp_eatAtomEscape=function(u){return this.regexp_eatBackReference(u)||this.regexp_eatCharacterClassEscape(u)||this.regexp_eatCharacterEscape(u)||u.switchN&&this.regexp_eatKGroupName(u)?!0:(u.switchU&&(u.current()===99&&u.raise("Invalid unicode escape"),u.raise("Invalid escape")),!1)},te.regexp_eatBackReference=function(u){var h=u.pos;if(this.regexp_eatDecimalEscape(u)){var S=u.lastIntValue;if(u.switchU)return S>u.maxBackReference&&(u.maxBackReference=S),!0;if(S<=u.numCapturingParens)return!0;u.pos=h}return!1},te.regexp_eatKGroupName=function(u){if(u.eat(107)){if(this.regexp_eatGroupName(u))return u.backReferenceNames.push(u.lastStringValue),!0;u.raise("Invalid named reference")}return!1},te.regexp_eatCharacterEscape=function(u){return this.regexp_eatControlEscape(u)||this.regexp_eatCControlLetter(u)||this.regexp_eatZero(u)||this.regexp_eatHexEscapeSequence(u)||this.regexp_eatRegExpUnicodeEscapeSequence(u,!1)||!u.switchU&&this.regexp_eatLegacyOctalEscapeSequence(u)||this.regexp_eatIdentityEscape(u)},te.regexp_eatCControlLetter=function(u){var h=u.pos;if(u.eat(99)){if(this.regexp_eatControlLetter(u))return!0;u.pos=h}return!1},te.regexp_eatZero=function(u){return u.current()===48&&!Xl(u.lookahead())?(u.lastIntValue=0,u.advance(),!0):!1},te.regexp_eatControlEscape=function(u){var h=u.current();return h===116?(u.lastIntValue=9,u.advance(),!0):h===110?(u.lastIntValue=10,u.advance(),!0):h===118?(u.lastIntValue=11,u.advance(),!0):h===102?(u.lastIntValue=12,u.advance(),!0):h===114?(u.lastIntValue=13,u.advance(),!0):!1},te.regexp_eatControlLetter=function(u){var h=u.current();return Bw(h)?(u.lastIntValue=h%32,u.advance(),!0):!1};function Bw(u){return u>=65&&u<=90||u>=97&&u<=122}te.regexp_eatRegExpUnicodeEscapeSequence=function(u,h){h===void 0&&(h=!1);var S=u.pos,E=h||u.switchU;if(u.eat(117)){if(this.regexp_eatFixedHexDigits(u,4)){var P=u.lastIntValue;if(E&&P>=55296&&P<=56319){var R=u.pos;if(u.eat(92)&&u.eat(117)&&this.regexp_eatFixedHexDigits(u,4)){var j=u.lastIntValue;if(j>=56320&&j<=57343)return u.lastIntValue=(P-55296)*1024+(j-56320)+65536,!0}u.pos=R,u.lastIntValue=P}return!0}if(E&&u.eat(123)&&this.regexp_eatHexDigits(u)&&u.eat(125)&&O$(u.lastIntValue))return!0;E&&u.raise("Invalid unicode escape"),u.pos=S}return!1};function O$(u){return u>=0&&u<=1114111}te.regexp_eatIdentityEscape=function(u){if(u.switchU)return this.regexp_eatSyntaxCharacter(u)?!0:u.eat(47)?(u.lastIntValue=47,!0):!1;var h=u.current();return h!==99&&(!u.switchN||h!==107)?(u.lastIntValue=h,u.advance(),!0):!1},te.regexp_eatDecimalEscape=function(u){u.lastIntValue=0;var h=u.current();if(h>=49&&h<=57){do u.lastIntValue=10*u.lastIntValue+(h-48),u.advance();while((h=u.current())>=48&&h<=57);return!0}return!1};var Vw=0,Cn=1,Tr=2;te.regexp_eatCharacterClassEscape=function(u){var h=u.current();if(N$(h))return u.lastIntValue=-1,u.advance(),Cn;var S=!1;if(u.switchU&&this.options.ecmaVersion>=9&&((S=h===80)||h===112)){u.lastIntValue=-1,u.advance();var E;if(u.eat(123)&&(E=this.regexp_eatUnicodePropertyValueExpression(u))&&u.eat(125))return S&&E===Tr&&u.raise("Invalid property name"),E;u.raise("Invalid property name")}return Vw};function N$(u){return u===100||u===68||u===115||u===83||u===119||u===87}te.regexp_eatUnicodePropertyValueExpression=function(u){var h=u.pos;if(this.regexp_eatUnicodePropertyName(u)&&u.eat(61)){var S=u.lastStringValue;if(this.regexp_eatUnicodePropertyValue(u)){var E=u.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(u,S,E),Cn}}if(u.pos=h,this.regexp_eatLoneUnicodePropertyNameOrValue(u)){var P=u.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(u,P)}return Vw},te.regexp_validateUnicodePropertyNameAndValue=function(u,h,S){V(u.unicodeProperties.nonBinary,h)||u.raise("Invalid property name"),u.unicodeProperties.nonBinary[h].test(S)||u.raise("Invalid property value")},te.regexp_validateUnicodePropertyNameOrValue=function(u,h){if(u.unicodeProperties.binary.test(h))return Cn;if(u.switchV&&u.unicodeProperties.binaryOfStrings.test(h))return Tr;u.raise("Invalid property name")},te.regexp_eatUnicodePropertyName=function(u){var h=0;for(u.lastStringValue="";$w(h=u.current());)u.lastStringValue+=J(h),u.advance();return u.lastStringValue!==""};function $w(u){return Bw(u)||u===95}te.regexp_eatUnicodePropertyValue=function(u){var h=0;for(u.lastStringValue="";P$(h=u.current());)u.lastStringValue+=J(h),u.advance();return u.lastStringValue!==""};function P$(u){return $w(u)||Xl(u)}te.regexp_eatLoneUnicodePropertyNameOrValue=function(u){return this.regexp_eatUnicodePropertyValue(u)},te.regexp_eatCharacterClass=function(u){if(u.eat(91)){var h=u.eat(94),S=this.regexp_classContents(u);return u.eat(93)||u.raise("Unterminated character class"),h&&S===Tr&&u.raise("Negated character class may contain strings"),!0}return!1},te.regexp_classContents=function(u){return u.current()===93?Cn:u.switchV?this.regexp_classSetExpression(u):(this.regexp_nonEmptyClassRanges(u),Cn)},te.regexp_nonEmptyClassRanges=function(u){for(;this.regexp_eatClassAtom(u);){var h=u.lastIntValue;if(u.eat(45)&&this.regexp_eatClassAtom(u)){var S=u.lastIntValue;u.switchU&&(h===-1||S===-1)&&u.raise("Invalid character class"),h!==-1&&S!==-1&&h>S&&u.raise("Range out of order in character class")}}},te.regexp_eatClassAtom=function(u){var h=u.pos;if(u.eat(92)){if(this.regexp_eatClassEscape(u))return!0;if(u.switchU){var S=u.current();(S===99||Ww(S))&&u.raise("Invalid class escape"),u.raise("Invalid escape")}u.pos=h}var E=u.current();return E!==93?(u.lastIntValue=E,u.advance(),!0):!1},te.regexp_eatClassEscape=function(u){var h=u.pos;if(u.eat(98))return u.lastIntValue=8,!0;if(u.switchU&&u.eat(45))return u.lastIntValue=45,!0;if(!u.switchU&&u.eat(99)){if(this.regexp_eatClassControlLetter(u))return!0;u.pos=h}return this.regexp_eatCharacterClassEscape(u)||this.regexp_eatCharacterEscape(u)},te.regexp_classSetExpression=function(u){var h=Cn,S;if(!this.regexp_eatClassSetRange(u))if(S=this.regexp_eatClassSetOperand(u)){S===Tr&&(h=Tr);for(var E=u.pos;u.eatChars([38,38]);){if(u.current()!==38&&(S=this.regexp_eatClassSetOperand(u))){S!==Tr&&(h=Cn);continue}u.raise("Invalid character in character class")}if(E!==u.pos)return h;for(;u.eatChars([45,45]);)this.regexp_eatClassSetOperand(u)||u.raise("Invalid character in character class");if(E!==u.pos)return h}else u.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(u)){if(S=this.regexp_eatClassSetOperand(u),!S)return h;S===Tr&&(h=Tr)}},te.regexp_eatClassSetRange=function(u){var h=u.pos;if(this.regexp_eatClassSetCharacter(u)){var S=u.lastIntValue;if(u.eat(45)&&this.regexp_eatClassSetCharacter(u)){var E=u.lastIntValue;return S!==-1&&E!==-1&&S>E&&u.raise("Range out of order in character class"),!0}u.pos=h}return!1},te.regexp_eatClassSetOperand=function(u){return this.regexp_eatClassSetCharacter(u)?Cn:this.regexp_eatClassStringDisjunction(u)||this.regexp_eatNestedClass(u)},te.regexp_eatNestedClass=function(u){var h=u.pos;if(u.eat(91)){var S=u.eat(94),E=this.regexp_classContents(u);if(u.eat(93))return S&&E===Tr&&u.raise("Negated character class may contain strings"),E;u.pos=h}if(u.eat(92)){var P=this.regexp_eatCharacterClassEscape(u);if(P)return P;u.pos=h}return null},te.regexp_eatClassStringDisjunction=function(u){var h=u.pos;if(u.eatChars([92,113])){if(u.eat(123)){var S=this.regexp_classStringDisjunctionContents(u);if(u.eat(125))return S}else u.raise("Invalid escape");u.pos=h}return null},te.regexp_classStringDisjunctionContents=function(u){for(var h=this.regexp_classString(u);u.eat(124);)this.regexp_classString(u)===Tr&&(h=Tr);return h},te.regexp_classString=function(u){for(var h=0;this.regexp_eatClassSetCharacter(u);)h++;return h===1?Cn:Tr},te.regexp_eatClassSetCharacter=function(u){var h=u.pos;if(u.eat(92))return this.regexp_eatCharacterEscape(u)||this.regexp_eatClassSetReservedPunctuator(u)?!0:u.eat(98)?(u.lastIntValue=8,!0):(u.pos=h,!1);var S=u.current();return S<0||S===u.lookahead()&&q$(S)||L$(S)?!1:(u.advance(),u.lastIntValue=S,!0)};function q$(u){return u===33||u>=35&&u<=38||u>=42&&u<=44||u===46||u>=58&&u<=64||u===94||u===96||u===126}function L$(u){return u===40||u===41||u===45||u===47||u>=91&&u<=93||u>=123&&u<=125}te.regexp_eatClassSetReservedPunctuator=function(u){var h=u.current();return C$(h)?(u.lastIntValue=h,u.advance(),!0):!1};function C$(u){return u===33||u===35||u===37||u===38||u===44||u===45||u>=58&&u<=62||u===64||u===96||u===126}te.regexp_eatClassControlLetter=function(u){var h=u.current();return Xl(h)||h===95?(u.lastIntValue=h%32,u.advance(),!0):!1},te.regexp_eatHexEscapeSequence=function(u){var h=u.pos;if(u.eat(120)){if(this.regexp_eatFixedHexDigits(u,2))return!0;u.switchU&&u.raise("Invalid escape"),u.pos=h}return!1},te.regexp_eatDecimalDigits=function(u){var h=u.pos,S=0;for(u.lastIntValue=0;Xl(S=u.current());)u.lastIntValue=10*u.lastIntValue+(S-48),u.advance();return u.pos!==h};function Xl(u){return u>=48&&u<=57}te.regexp_eatHexDigits=function(u){var h=u.pos,S=0;for(u.lastIntValue=0;Uw(S=u.current());)u.lastIntValue=16*u.lastIntValue+Hw(S),u.advance();return u.pos!==h};function Uw(u){return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function Hw(u){return u>=65&&u<=70?10+(u-65):u>=97&&u<=102?10+(u-97):u-48}te.regexp_eatLegacyOctalEscapeSequence=function(u){if(this.regexp_eatOctalDigit(u)){var h=u.lastIntValue;if(this.regexp_eatOctalDigit(u)){var S=u.lastIntValue;h<=3&&this.regexp_eatOctalDigit(u)?u.lastIntValue=h*64+S*8+u.lastIntValue:u.lastIntValue=h*8+S}else u.lastIntValue=h;return!0}return!1},te.regexp_eatOctalDigit=function(u){var h=u.current();return Ww(h)?(u.lastIntValue=h-48,u.advance(),!0):(u.lastIntValue=0,!1)};function Ww(u){return u>=48&&u<=55}te.regexp_eatFixedHexDigits=function(u,h){var S=u.pos;u.lastIntValue=0;for(var E=0;E<h;++E){var P=u.current();if(!Uw(P))return u.pos=S,!1;u.lastIntValue=16*u.lastIntValue+Hw(P),u.advance()}return!0};var Zl=function(h){this.type=h.type,this.value=h.value,this.start=h.start,this.end=h.end,h.options.locations&&(this.loc=new he(h,h.startLoc,h.endLoc)),h.options.ranges&&(this.range=[h.start,h.end])},_e=tt.prototype;_e.next=function(u){!u&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Zl(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},_e.getToken=function(){return this.next(),new Zl(this)},typeof Symbol<"u"&&(_e[Symbol.iterator]=function(){var u=this;return{next:function(){var h=u.getToken();return{done:h.type===y.eof,value:h}}}}),_e.nextToken=function(){var u=this.curContext();if((!u||!u.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(y.eof);if(u.override)return u.override(this);this.readToken(this.fullCharCodeAtPos())},_e.readToken=function(u){return d(u,this.options.ecmaVersion>=6)||u===92?this.readWord():this.getTokenFromCode(u)},_e.fullCharCodeAt=function(u){var h=this.input.charCodeAt(u);if(h<=55295||h>=56320)return h;var S=this.input.charCodeAt(u+1);return S<=56319||S>=57344?h:(h<<10)+S-56613888},_e.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},_e.skipBlockComment=function(){var u=this.options.onComment&&this.curPosition(),h=this.pos,S=this.input.indexOf("*/",this.pos+=2);if(S===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=S+2,this.options.locations)for(var E=void 0,P=h;(E=q(this.input,P,this.pos))>-1;)++this.curLine,P=this.lineStart=E;this.options.onComment&&this.options.onComment(!0,this.input.slice(h+2,S),h,this.pos,u,this.curPosition())},_e.skipLineComment=function(u){for(var h=this.pos,S=this.options.onComment&&this.curPosition(),E=this.input.charCodeAt(this.pos+=u);this.pos<this.input.length&&!N(E);)E=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(h+u,this.pos),h,this.pos,S,this.curPosition())},_e.skipSpace=function(){e:for(;this.pos<this.input.length;){var u=this.input.charCodeAt(this.pos);switch(u){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(u>8&&u<14||u>=5760&&B.test(String.fromCharCode(u)))++this.pos;else break e}}},_e.finishToken=function(u,h){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var S=this.type;this.type=u,this.value=h,this.updateContext(S)},_e.readToken_dot=function(){var u=this.input.charCodeAt(this.pos+1);if(u>=48&&u<=57)return this.readNumber(!0);var h=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&u===46&&h===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},_e.readToken_slash=function(){var u=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):u===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},_e.readToken_mult_modulo_exp=function(u){var h=this.input.charCodeAt(this.pos+1),S=1,E=u===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&u===42&&h===42&&(++S,E=y.starstar,h=this.input.charCodeAt(this.pos+2)),h===61?this.finishOp(y.assign,S+1):this.finishOp(E,S)},_e.readToken_pipe_amp=function(u){var h=this.input.charCodeAt(this.pos+1);if(h===u){if(this.options.ecmaVersion>=12){var S=this.input.charCodeAt(this.pos+2);if(S===61)return this.finishOp(y.assign,3)}return this.finishOp(u===124?y.logicalOR:y.logicalAND,2)}return h===61?this.finishOp(y.assign,2):this.finishOp(u===124?y.bitwiseOR:y.bitwiseAND,1)},_e.readToken_caret=function(){var u=this.input.charCodeAt(this.pos+1);return u===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},_e.readToken_plus_min=function(u){var h=this.input.charCodeAt(this.pos+1);return h===u?h===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||A.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):h===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},_e.readToken_lt_gt=function(u){var h=this.input.charCodeAt(this.pos+1),S=1;return h===u?(S=u===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+S)===61?this.finishOp(y.assign,S+1):this.finishOp(y.bitShift,S)):h===33&&u===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(h===61&&(S=2),this.finishOp(y.relational,S))},_e.readToken_eq_excl=function(u){var h=this.input.charCodeAt(this.pos+1);return h===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):u===61&&h===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(u===61?y.eq:y.prefix,1)},_e.readToken_question=function(){var u=this.options.ecmaVersion;if(u>=11){var h=this.input.charCodeAt(this.pos+1);if(h===46){var S=this.input.charCodeAt(this.pos+2);if(S<48||S>57)return this.finishOp(y.questionDot,2)}if(h===63){if(u>=12){var E=this.input.charCodeAt(this.pos+2);if(E===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)},_e.readToken_numberSign=function(){var u=this.options.ecmaVersion,h=35;if(u>=13&&(++this.pos,h=this.fullCharCodeAtPos(),d(h,!0)||h===92))return this.finishToken(y.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+J(h)+"'")},_e.getTokenFromCode=function(u){switch(u){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var h=this.input.charCodeAt(this.pos+1);if(h===120||h===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(h===111||h===79)return this.readRadixNumber(8);if(h===98||h===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(u);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(u);case 124:case 38:return this.readToken_pipe_amp(u);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(u);case 60:case 62:return this.readToken_lt_gt(u);case 61:case 33:return this.readToken_eq_excl(u);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+J(u)+"'")},_e.finishOp=function(u,h){var S=this.input.slice(this.pos,this.pos+h);return this.pos+=h,this.finishToken(u,S)},_e.readRegexp=function(){for(var u,h,S=this.pos;;){this.pos>=this.input.length&&this.raise(S,"Unterminated regular expression");var E=this.input.charAt(this.pos);if(A.test(E)&&this.raise(S,"Unterminated regular expression"),u)u=!1;else{if(E==="[")h=!0;else if(E==="]"&&h)h=!1;else if(E==="/"&&!h)break;u=E==="\\"}++this.pos}var P=this.input.slice(S,this.pos);++this.pos;var R=this.pos,j=this.readWord1();this.containsEsc&&this.unexpected(R);var W=this.regexpState||(this.regexpState=new ln(this));W.reset(S,P,j),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var K=null;try{K=new RegExp(P,j)}catch{}return this.finishToken(y.regexp,{pattern:P,flags:j,value:K})},_e.readInt=function(u,h,S){for(var E=this.options.ecmaVersion>=12&&h===void 0,P=S&&this.input.charCodeAt(this.pos)===48,R=this.pos,j=0,W=0,K=0,le=h??1/0;K<le;++K,++this.pos){var ge=this.input.charCodeAt(this.pos),$e=void 0;if(E&&ge===95){P&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),W===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),K===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),W=ge;continue}if(ge>=97?$e=ge-97+10:ge>=65?$e=ge-65+10:ge>=48&&ge<=57?$e=ge-48:$e=1/0,$e>=u)break;W=ge,j=j*u+$e}return E&&W===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===R||h!=null&&this.pos-R!==h?null:j};function I$(u,h){return h?parseInt(u,8):parseFloat(u.replace(/_/g,""))}function zw(u){return typeof BigInt!="function"?null:BigInt(u.replace(/_/g,""))}_e.readRadixNumber=function(u){var h=this.pos;this.pos+=2;var S=this.readInt(u);return S==null&&this.raise(this.start+2,"Expected number in radix "+u),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(S=zw(this.input.slice(h,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,S)},_e.readNumber=function(u){var h=this.pos;!u&&this.readInt(10,void 0,!0)===null&&this.raise(h,"Invalid number");var S=this.pos-h>=2&&this.input.charCodeAt(h)===48;S&&this.strict&&this.raise(h,"Invalid number");var E=this.input.charCodeAt(this.pos);if(!S&&!u&&this.options.ecmaVersion>=11&&E===110){var P=zw(this.input.slice(h,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,P)}S&&/[89]/.test(this.input.slice(h,this.pos))&&(S=!1),E===46&&!S&&(++this.pos,this.readInt(10),E=this.input.charCodeAt(this.pos)),(E===69||E===101)&&!S&&(E=this.input.charCodeAt(++this.pos),(E===43||E===45)&&++this.pos,this.readInt(10)===null&&this.raise(h,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var R=I$(this.input.slice(h,this.pos),S);return this.finishToken(y.num,R)},_e.readCodePoint=function(){var u=this.input.charCodeAt(this.pos),h;if(u===123){this.options.ecmaVersion<6&&this.unexpected();var S=++this.pos;h=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,h>1114111&&this.invalidStringToken(S,"Code point out of bounds")}else h=this.readHexChar(4);return h},_e.readString=function(u){for(var h="",S=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var E=this.input.charCodeAt(this.pos);if(E===u)break;E===92?(h+=this.input.slice(S,this.pos),h+=this.readEscapedChar(!1),S=this.pos):E===8232||E===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(N(E)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return h+=this.input.slice(S,this.pos++),this.finishToken(y.string,h)};var Gw={};_e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(u){if(u===Gw)this.readInvalidTemplateToken();else throw u}this.inTemplateElement=!1},_e.invalidStringToken=function(u,h){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Gw;this.raise(u,h)},_e.readTmplToken=function(){for(var u="",h=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var S=this.input.charCodeAt(this.pos);if(S===96||S===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?S===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(u+=this.input.slice(h,this.pos),this.finishToken(y.template,u));if(S===92)u+=this.input.slice(h,this.pos),u+=this.readEscapedChar(!0),h=this.pos;else if(N(S)){switch(u+=this.input.slice(h,this.pos),++this.pos,S){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:u+=`
94
+ `;break;default:u+=String.fromCharCode(S);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),h=this.pos}else++this.pos}},_e.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
95
+ `&&++this.pos;case`
96
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},_e.readEscapedChar=function(u){var h=this.input.charCodeAt(++this.pos);switch(++this.pos,h){case 110:return`
97
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return J(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),u){var S=this.pos-1;this.invalidStringToken(S,"Invalid escape sequence in template string")}default:if(h>=48&&h<=55){var E=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],P=parseInt(E,8);return P>255&&(E=E.slice(0,-1),P=parseInt(E,8)),this.pos+=E.length-1,h=this.input.charCodeAt(this.pos),(E!=="0"||h===56||h===57)&&(this.strict||u)&&this.invalidStringToken(this.pos-1-E.length,u?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(P)}return N(h)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(h)}},_e.readHexChar=function(u){var h=this.pos,S=this.readInt(16,u);return S===null&&this.invalidStringToken(h,"Bad character escape sequence"),S},_e.readWord1=function(){this.containsEsc=!1;for(var u="",h=!0,S=this.pos,E=this.options.ecmaVersion>=6;this.pos<this.input.length;){var P=this.fullCharCodeAtPos();if(g(P,E))this.pos+=P<=65535?1:2;else if(P===92){this.containsEsc=!0,u+=this.input.slice(S,this.pos);var R=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var j=this.readCodePoint();(h?d:g)(j,E)||this.invalidStringToken(R,"Invalid Unicode escape"),u+=J(j),S=this.pos}else break;h=!1}return u+this.input.slice(S,this.pos)},_e.readWord=function(){var u=this.readWord1(),h=y.name;return this.keywords.test(u)&&(h=w[u]),this.finishToken(h,u)};var Jw="8.17.0";tt.acorn={Parser:tt,version:Jw,defaultOptions:it,Position:Q,SourceLocation:he,getLineInfo:ye,Node:Jo,TokenType:_,tokTypes:y,keywordTypes:w,TokContext:Sr,tokContexts:Ve,isIdentifierChar:g,isIdentifierStart:d,Token:Zl,isNewLine:N,lineBreak:A,lineBreakG:O,nonASCIIwhitespace:B};function M$(u,h){return tt.parse(u,h)}function R$(u,h,S){return tt.parseExpressionAt(u,h,S)}function D$(u,h){return tt.tokenizer(u,h)}e.Node=Jo,e.Parser=tt,e.Position=Q,e.SourceLocation=he,e.TokContext=Sr,e.Token=Zl,e.TokenType=_,e.defaultOptions=it,e.getLineInfo=ye,e.isIdentifierChar=g,e.isIdentifierStart=d,e.isNewLine=N,e.keywordTypes=w,e.lineBreak=A,e.lineBreakG=O,e.nonASCIIwhitespace=B,e.parse=M$,e.parseExpressionAt=R$,e.tokContexts=Ve,e.tokTypes=y,e.tokenizer=D$,e.version=Jw}))});var rg=x(tg=>{"use strict";p();Object.defineProperty(tg,"__esModule",{value:!0});tg.SUPPORTED_ASSET_IMAGE_EXTENSIONS=void 0;tg.SUPPORTED_ASSET_IMAGE_EXTENSIONS=["jpg","jpeg","png","gif","webp","heic","ico"]});var Qu=x(an=>{"use strict";p();Object.defineProperty(an,"__esModule",{value:!0});an.identity=void 0;an.unique=rse;an.assertNever=nse;an.unexpected=ise;an.isString=ase;an.extname=ose;an.exists=cse;an.acceptsLocalBlocks=use;function rse(e){return[...new Set(e)]}function nse(e){throw new Error(`Unknown module type ${e}`)}function ise(){return new Error("Unexpected code path encountered")}var sse=e=>e;an.identity=sse;function ase(e){return typeof e=="string"}function ose(e){return e.split(".").pop()||""}async function cse(e,t){return e.stat(t).then(()=>!0).catch(()=>!1)}async function use(e,t){let r=await t.getSectionSchema(e).catch(i=>{});if(!r)return new Error("Section does not exist");let n=r.validSchema;return n instanceof Error?n:(n.blocks??[]).some(i=>i.type&&"name"in i&&i.name)}});var FS=x(Hs=>{"use strict";p();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.toCssSourceCode=jS;Hs.toSvgSourceCode=pse;Hs.toJsSourceCode=Cj;Hs.parseJs=Ij;Hs.toSourceCode=mse;var Lj=Kt(),lse=qj(),fse=rg(),dse=Qu();async function jS(e,t){return{type:"css",uri:e,source:t,ast:new Error("File parsing not implemented yet")}}async function pse(e,t){return{type:"svg",uri:e,source:t,ast:new Error("File parsing not implemented yet")}}async function hse(e,t){return{type:"image",uri:e,source:t,ast:new Error("Image files are not parsed")}}async function Cj(e,t){return{type:"javascript",uri:e,source:t,ast:Ij(t)}}function Ij(e){try{return(0,lse.parse)(e,{ecmaVersion:"latest",sourceType:"module"})}catch(t){return(0,Lj.asError)(t)}}async function mse(e,t){let r=(0,dse.extname)(e);if(r==="json"||r==="liquid")return(0,Lj.toSourceCode)(e,t);if(r==="js")return Cj(e,t);if(r==="css")return jS(e,t);if(r==="svg")return jS(e,t);if(fse.SUPPORTED_ASSET_IMAGE_EXTENSIONS.includes(r))return hse(e,t);throw new Error(`Unknown source code type for ${e}`)}});var Mj=x(VS=>{"use strict";p();Object.defineProperty(VS,"__esModule",{value:!0});VS.augmentDependencies=yse;var Ws=Kt(),gse=FS(),BS=Qu();function yse(e,t){return{fs:t.fs,getBlockSchema:(0,Ws.memoize)(t.getBlockSchema,BS.identity),getSectionSchema:(0,Ws.memoize)(t.getSectionSchema,BS.identity),getSourceCode:(0,Ws.memoize)(t.getSourceCode??async function(n){let i=await t.fs.readFile(n);return(0,gse.toSourceCode)(n,i)},BS.identity),getWebComponentDefinitionReference:t.getWebComponentDefinitionReference,mode:t.mode??"theme",getThemeBlockNames:(0,Ws.memo)(()=>(0,Ws.recursiveReadDirectory)(t.fs,Ws.path.join(e,"blocks"),([r])=>r.endsWith(".liquid")).then(r=>r.map(n=>Ws.path.basename(n,".liquid"))))}}});var US=x(On=>{"use strict";p();Object.defineProperty(On,"__esModule",{value:!0});On.getModule=vse;On.getTemplateModule=Dj;On.getThemeBlockModule=jj;On.getSectionModule=Fj;On.getSectionGroupModule=Bj;On.getAssetModule=Vj;On.getSnippetModule=$j;On.getLayoutModule=Uj;var yr=Kt(),_se=rg(),Rj=Qu(),$S=new WeakMap;function vse(e,t){let r=Hj(e);if(r.has(t))return r.get(t);let n=yr.path.relative(t,e.rootUri);switch(!0){case n.startsWith("assets"):return Vj(e,yr.path.basename(t));case n.startsWith("blocks"):return jj(e,yr.path.basename(t,".liquid"));case n.startsWith("layout"):return Uj(e,yr.path.basename(t,".liquid"));case n.startsWith("sections"):return n.endsWith(".json")?Bj(e,yr.path.basename(t,".json")):Fj(e,yr.path.basename(t,".liquid"));case n.startsWith("snippets"):return $j(e,yr.path.basename(t,".liquid"));case n.startsWith("templates"):return Dj(e,t)}}function Dj(e,t){switch((0,Rj.extname)(t)){case"json":return Ai(e,{type:"JSON",kind:"template",dependencies:[],references:[],uri:t});case"liquid":return Ai(e,{type:"Liquid",kind:"template",dependencies:[],references:[],uri:t});default:throw new Error(`Unknown template type for ${t}`)}}function jj(e,t){let r=yr.path.join(e.rootUri,"blocks",`${t}.liquid`);return Ai(e,{type:"Liquid",kind:"block",dependencies:[],references:[],uri:r})}function Fj(e,t){let r=yr.path.join(e.rootUri,"sections",`${t}.liquid`);return Ai(e,{type:"Liquid",kind:"section",dependencies:[],references:[],uri:r})}function Bj(e,t){let r=yr.path.join(e.rootUri,"sections",`${t}.json`);return Ai(e,{type:"JSON",kind:"section-group",dependencies:[],references:[],uri:r})}function Vj(e,t){let r=(0,Rj.extname)(t),n;if(_se.SUPPORTED_ASSET_IMAGE_EXTENSIONS.includes(r)?n="Image":r==="js"?n="JavaScript":r==="css"?n="CSS":r==="svg"&&(n="SVG"),!!n)return Ai(e,{type:n,kind:"unused",dependencies:[],references:[],uri:yr.path.join(e.rootUri,"assets",t)})}function $j(e,t){let r=yr.path.join(e.rootUri,"snippets",`${t}.liquid`);return Ai(e,{type:"Liquid",kind:"snippet",uri:r,dependencies:[],references:[]})}function Uj(e,t="theme"){if(t===!1)return;t===void 0&&(t="theme");let r=yr.path.join(e.rootUri,"layout",`${t}.liquid`);return Ai(e,{type:"Liquid",kind:"layout",uri:r,dependencies:[],references:[]})}function Hj(e){return $S.has(e)||$S.set(e,new Map),$S.get(e)}function Ai(e,t){let r=Hj(e);return r.has(t.uri)||r.set(t.uri,t),r.get(t.uri)}});var Kj=x(ng=>{"use strict";p();Object.defineProperty(ng,"__esModule",{value:!0});ng.traverseModule=Rr;ng.bind=Dr;var Oi=oe(),Mt=Kt(),Nn=Qu(),$t=US();async function Rr(e,t,r){if(!t.modules[e.uri]&&(t.modules[e.uri]=e,e.exists=await(0,Nn.exists)(r.fs,e.uri),!!e.exists))switch(e.type){case"Liquid":return bse(e,t,r);case"JSON":return wse(e,t,r);case"JavaScript":return;case"CSS":case"SVG":case"Image":return;default:return(0,Nn.assertNever)(e)}}async function bse(e,t,r){let n=await r.getSourceCode(e.uri);if(n.ast instanceof Error)return;let i={LiquidFilter:(c,l)=>{if(["asset_url","asset_img_url","inline_asset_content"].includes(c.name)){let f=l[l.length-1];if(f.type!==Oi.NodeTypes.LiquidVariable||f.expression.type!==Oi.NodeTypes.String||f.filters[0]!==c)return;let m=f.expression.value,d=(0,$t.getAssetModule)(t,m);return d?{target:d,sourceRange:[f.position.start,f.position.end]}:void 0}},ContentForMarkup:(c,l)=>{let f=l.at(-1);if(c.contentForType.value!=="block")return;let m=c.args.find(_=>_.name==="type");if(!m)return;let d=m.value;if(d.type!==Oi.NodeTypes.String)return;let g=d.value;return{target:(0,$t.getThemeBlockModule)(t,g),sourceRange:[f.position.start,c.position.end]}},HtmlElement:c=>{if(c.name.length!==1||c.name[0].type!==Oi.NodeTypes.TextNode)return;let l=c.name[0],f=l.value;if(!f.includes("-"))return;let m=r.getWebComponentDefinitionReference(f);if(!m)return;let{assetName:d,range:g}=m,_=(0,$t.getAssetModule)(t,d);if(_)return{target:_,sourceRange:[c.blockStartPosition.start,l.position.end],targetRange:g}},RenderMarkup:(c,l)=>{let f=c.snippet,m=l.at(-1);if(!(0,Nn.isString)(f)&&f.type===Oi.NodeTypes.String)return{target:(0,$t.getSnippetModule)(t,f.value),sourceRange:[m.position.start,m.position.end]}},LiquidTag:c=>{switch(c.name){case Oi.NamedTags.sections:if(!(0,Nn.isString)(c.markup)){let l=c.markup.value;return{target:(0,$t.getSectionGroupModule)(t,l),sourceRange:[c.position.start,c.position.end]}}case Oi.NamedTags.section:if(!(0,Nn.isString)(c.markup)&&c.markup.type===Oi.NodeTypes.SectionMarkup){let l=c.markup.name.value;return{target:(0,$t.getSectionModule)(t,l),sourceRange:[c.position.start,c.position.end]}}}}},s=(0,Mt.visit)(n.ast,i);for(let c of s)Dr(e,c.target,{sourceRange:c.sourceRange,targetRange:c.targetRange});let o=(0,Nn.unique)(s.map(c=>c.target)).map(c=>Rr(c,t,r));if(e.kind==="section"){let c=Mt.path.basename(e.uri,".liquid"),l=await r.getSectionSchema(c);o.push(Wj(l,e,t,r))}else if(e.kind==="block"&&r.mode==="theme"){let c=Mt.path.basename(e.uri,".liquid"),l=await r.getBlockSchema(c);o.push(Wj(l,e,t,r))}return Promise.all(o)}async function Wj(e,t,r,n){if(!e||t.kind==="section"&&await(0,Nn.acceptsLocalBlocks)(Mt.path.basename(t.uri,".liquid"),n))return;let{ast:a,validSchema:o}=e;if(o instanceof Error||a instanceof Error)return;let c=[];return o.blocks&&c.push(kse(e,t,a,o.blocks,r,n)),o.presets&&c.push(Sse(e,t,a,o.presets,r,n)),"default"in o&&o.default&&c.push(Tse(e,t,a,o.default,r,n)),Promise.all(c)}async function kse(e,t,r,n,i,s){let a=[];for(let[o,c]of Object.entries(n)){let l=["blocks",o],m=(0,Mt.nodeAtPath)(r,l).children.find(g=>g.key.value==="type");if(!m)continue;let d=[e.offset+m.loc.start.offset,e.offset+m.loc.end.offset];switch(c.type){case"@theme":{let g=await s.getThemeBlockNames().then(_=>_.filter(k=>!k.startsWith("_")));for(let _ of g){let k=(0,$t.getThemeBlockModule)(i,Mt.path.basename(_,".liquid"));Dr(t,k,{sourceRange:d,type:"indirect"}),a.push(Rr(k,i,s))}break}case"@app":break;default:{let g=(0,$t.getThemeBlockModule)(i,c.type);Dr(t,g,{sourceRange:d}),a.push(Rr(g,i,s))}}}return Promise.all(a)}async function Sse(e,t,r,n,i,s){let a=[];for(let[o,c]of n.entries()){if(!("blocks"in c))continue;let l=Array.isArray(c.blocks)?c.blocks.entries():Object.entries(c.blocks);for(let[f,m]of l){let d=["presets",o,"blocks",f],g=(0,Mt.nodeAtPath)(r,d),_=(0,$t.getThemeBlockModule)(i,m.type);if(!_)continue;let k=g.children.find(v=>v.key.value==="type");if(!k)continue;let b=[e.offset+k.loc.start.offset,e.offset+k.loc.end.offset];Dr(t,_,{sourceRange:b,type:"preset"}),a.push(Rr(_,i,s)),m.blocks&&a.push(Gj(e,t,r,m.blocks,d,i,s))}}return Promise.all(a)}async function Gj(e,t,r,n,i,s,a){let o=[],c=Array.isArray(n)?n.entries():Object.entries(n);for(let[l,f]of c){let m=[...i,"blocks",l],d=(0,Mt.nodeAtPath)(r,m),g=(0,$t.getThemeBlockModule)(s,f.type);if(!g)continue;let _=d.children.find(b=>b.key.value==="type");if(!_)continue;let k=[e.offset+_.loc.start.offset,e.offset+_.loc.end.offset];Dr(t,g,{sourceRange:k,type:"preset"}),o.push(Rr(g,s,a)),f.blocks&&o.push(Gj(e,t,r,f.blocks,m,s,a))}return Promise.all(o)}async function Tse(e,t,r,n,i,s){let a=[];if(!("blocks"in n))return;let o=Array.isArray(n.blocks)?n.blocks.entries():Object.entries(n.blocks);for(let[c,l]of o){let f=["default","blocks",c],m=(0,Mt.nodeAtPath)(r,f),d=(0,$t.getThemeBlockModule)(i,l.type);if(!d)continue;let g=m.children.find(k=>k.key.value==="type");if(!g)continue;let _=[e.offset+g.loc.start.offset,e.offset+g.loc.end.offset];Dr(t,d,{sourceRange:_,type:"preset"}),a.push(Rr(d,i,s))}return Promise.all(a)}async function wse(e,t,r){let n=await r.getSourceCode(e.uri);if(n.type!==Mt.SourceCodeType.JSON)throw(0,Nn.unexpected)();let i=n.ast;if(!(i instanceof Error))switch(e.kind){case"template":{let s=(0,Mt.parseJSON)(n.source),a=[];for(let[l,f]of Object.entries(s.sections)){let m=f.type,d=["sections",l],g=(0,Mt.nodeAtPath)(i,d),_=(0,$t.getSectionModule)(t,m),k=g.children.find(T=>T.key.value==="type"),b=k.loc.start.offset,v=k.loc.end.offset;Dr(e,_,{sourceRange:[b,v]}),a.push(Rr(_,t,r),zj(e,i,d,f,t,r))}let o=s.layout,c=(0,$t.getLayoutModule)(t,s.layout);if(c){let l,f=!0;if(o!==!1&&o!==void 0){let m=["layout"],d=(0,Mt.nodeAtPath)(i,m);l=[d.loc.start.offset,d.loc.end.offset],f=!1}Dr(e,c,{sourceRange:l,type:"indirect"}),a.push(Rr(c,t,r))}return Promise.all(a)}case"section-group":{let s=(0,Mt.parseJSON)(n.source),a=[];for(let[o,c]of Object.entries(s.sections)){let l=c.type,f=["sections",o],m=(0,Mt.nodeAtPath)(i,f),d=(0,$t.getSectionModule)(t,l),g=m.children.find(v=>v.key.value==="type"),_=g.loc.start.offset,k=g.loc.end.offset;Dr(e,d,{sourceRange:[_,k]}),a.push(Rr(d,t,r),zj(e,i,f,c,t,r))}return Promise.all(a)}default:return(0,Nn.assertNever)(e.kind)}}async function zj(e,t,r=[],n,i,s){if(!n.blocks||await(0,Nn.acceptsLocalBlocks)(n.type,s))return;let o=[];for(let[c,l]of Object.entries(n.blocks)){let f=l.type,m=(0,$t.getThemeBlockModule)(i,f),d=[...r,"blocks",c],_=(0,Mt.nodeAtPath)(t,d).children.find(w=>w.key.value==="type"),k=_.loc.start.offset,b=_.loc.end.offset;Dr(e,m,{sourceRange:[k,b]}),o.push(Rr(m,i,s),Jj(e,t,d,l,i,s))}return Promise.all(o)}async function Jj(e,t,r=[],n,i,s){if(!n.blocks)return;let a=[];for(let[o,c]of Object.entries(n.blocks)){let l=c.type,f=(0,$t.getThemeBlockModule)(i,l),m=[...r,"blocks",o],g=(0,Mt.nodeAtPath)(t,m).children.find(v=>v.key.value==="type"),_=g.loc.start.offset,k=g.loc.end.offset;Dr(e,f,{sourceRange:[_,k]}),a.push(Rr(f,i,s),Jj(e,t,m,c,i,s))}return Promise.all(a)}function Dr(e,t,{sourceRange:r,targetRange:n,type:i="direct"}={}){let s={source:{uri:e.uri,range:r},target:{uri:t.uri,range:n},type:i};e.dependencies.push(s),t.references.push(s)}});var Qj=x(HS=>{"use strict";p();Object.defineProperty(HS,"__esModule",{value:!0});HS.buildThemeGraph=Ose;var ig=Kt(),xse=Mj(),Ese=US(),Ase=Kj();async function Ose(e,t,r){let n=(0,xse.augmentDependencies)(e,t);r=r??await(0,ig.recursiveReadDirectory)(n.fs,e,([s])=>{let a=s.startsWith(ig.path.join(e,"templates")),o=s.startsWith(ig.path.join(e,"sections"))&&s.endsWith(".liquid"),c=n.mode==="app"&&s.startsWith(ig.path.join(e,"blocks"))&&s.endsWith(".liquid");return a||o||c});let i={entryPoints:[],modules:{},rootUri:e};return i.entryPoints=r.map(s=>(0,Ese.getModule)(i,s)).filter(s=>s!==void 0),await Promise.all(i.entryPoints.map(s=>(0,Ase.traverseModule)(s,i,n))),i}});var Yj=x(WS=>{"use strict";p();Object.defineProperty(WS,"__esModule",{value:!0});WS.serializeThemeGraph=Nse;function Nse(e){let t=Object.values(e.modules).map(n=>({uri:n.uri,type:n.type,kind:n.kind,..."exists"in n?{exists:n.exists}:{}})),r=Object.values(e.modules).flatMap(n=>n.dependencies);return{rootUri:e.rootUri,nodes:t,edges:r}}});var Zj=x((sg,Xj)=>{p();(function(e,t){typeof sg=="object"&&typeof Xj<"u"?t(sg):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t((e.acorn=e.acorn||{},e.acorn.walk={})))})(sg,(function(e){"use strict";function t(v,w,T,y,A){T||(T=b),(function O(N,q,B){var M=B||N.type;k(T,M,N,q,O),w[M]&&w[M](N,q)})(v,y,A)}function r(v,w,T,y,A){var O=[];T||(T=b),(function N(q,B,M){var L=M||q.type,C=q!==O[O.length-1];C&&O.push(q),k(T,L,q,B,N),w[L]&&w[L](q,B||O,O),C&&O.pop()})(v,y,A)}function n(v,w,T,y,A){var O=T?d(T,y||void 0):y;(function N(q,B,M){O[M||q.type](q,B,N)})(v,w,A)}function i(v){return typeof v=="string"?function(w){return w===v}:v||function(){return!0}}var s=function(w,T){this.node=w,this.state=T};function a(v,w,T,y,A){T||(T=b);var O;(function N(q,B,M){var L=M||q.type;k(T,L,q,B,N),O!==q&&(w(q,B,L),O=q)})(v,y,A)}function o(v,w,T,y){T||(T=b);var A=[],O;(function N(q,B,M){var L=M||q.type,C=q!==A[A.length-1];C&&A.push(q),k(T,L,q,B,N),O!==q&&(w(q,B||A,A,L),O=q),C&&A.pop()})(v,y)}function c(v,w,T,y,A,O){A||(A=b),y=i(y);try{(function N(q,B,M){var L=M||q.type;if((w==null||q.start<=w)&&(T==null||q.end>=T)&&k(A,L,q,B,N),(w==null||q.start===w)&&(T==null||q.end===T)&&y(L,q))throw new s(q,B)})(v,O)}catch(N){if(N instanceof s)return N;throw N}}function l(v,w,T,y,A){T=i(T),y||(y=b);try{(function O(N,q,B){var M=B||N.type;if(!(N.start>w||N.end<w)&&(k(y,M,N,q,O),T(M,N)))throw new s(N,q)})(v,A)}catch(O){if(O instanceof s)return O;throw O}}function f(v,w,T,y,A){T=i(T),y||(y=b);try{(function O(N,q,B){if(!(N.end<w)){var M=B||N.type;if(N.start>=w&&T(M,N))throw new s(N,q);k(y,M,N,q,O)}})(v,A)}catch(O){if(O instanceof s)return O;throw O}}function m(v,w,T,y,A){T=i(T),y||(y=b);var O;return(function N(q,B,M){if(!(q.start>w)){var L=M||q.type;q.end<=w&&(!O||O.node.end<q.end)&&T(L,q)&&(O=new s(q,B)),k(y,L,q,B,N)}})(v,A),O}function d(v,w){var T=Object.create(w||b);for(var y in v)T[y]=v[y];return T}function g(v,w,T){T(v,w)}function _(v,w,T){}function k(v,w,T,y,A){if(v[w]==null)throw new Error("No walker function defined for node type "+w);v[w](T,y,A)}var b={};b.Program=b.BlockStatement=b.StaticBlock=function(v,w,T){for(var y=0,A=v.body;y<A.length;y+=1){var O=A[y];T(O,w,"Statement")}},b.Statement=g,b.EmptyStatement=_,b.ExpressionStatement=b.ParenthesizedExpression=b.ChainExpression=function(v,w,T){return T(v.expression,w,"Expression")},b.IfStatement=function(v,w,T){T(v.test,w,"Expression"),T(v.consequent,w,"Statement"),v.alternate&&T(v.alternate,w,"Statement")},b.LabeledStatement=function(v,w,T){return T(v.body,w,"Statement")},b.BreakStatement=b.ContinueStatement=_,b.WithStatement=function(v,w,T){T(v.object,w,"Expression"),T(v.body,w,"Statement")},b.SwitchStatement=function(v,w,T){T(v.discriminant,w,"Expression");for(var y=0,A=v.cases;y<A.length;y+=1){var O=A[y];T(O,w)}},b.SwitchCase=function(v,w,T){v.test&&T(v.test,w,"Expression");for(var y=0,A=v.consequent;y<A.length;y+=1){var O=A[y];T(O,w,"Statement")}},b.ReturnStatement=b.YieldExpression=b.AwaitExpression=function(v,w,T){v.argument&&T(v.argument,w,"Expression")},b.ThrowStatement=b.SpreadElement=function(v,w,T){return T(v.argument,w,"Expression")},b.TryStatement=function(v,w,T){T(v.block,w,"Statement"),v.handler&&T(v.handler,w),v.finalizer&&T(v.finalizer,w,"Statement")},b.CatchClause=function(v,w,T){v.param&&T(v.param,w,"Pattern"),T(v.body,w,"Statement")},b.WhileStatement=b.DoWhileStatement=function(v,w,T){T(v.test,w,"Expression"),T(v.body,w,"Statement")},b.ForStatement=function(v,w,T){v.init&&T(v.init,w,"ForInit"),v.test&&T(v.test,w,"Expression"),v.update&&T(v.update,w,"Expression"),T(v.body,w,"Statement")},b.ForInStatement=b.ForOfStatement=function(v,w,T){T(v.left,w,"ForInit"),T(v.right,w,"Expression"),T(v.body,w,"Statement")},b.ForInit=function(v,w,T){v.type==="VariableDeclaration"?T(v,w):T(v,w,"Expression")},b.DebuggerStatement=_,b.FunctionDeclaration=function(v,w,T){return T(v,w,"Function")},b.VariableDeclaration=function(v,w,T){for(var y=0,A=v.declarations;y<A.length;y+=1){var O=A[y];T(O,w)}},b.VariableDeclarator=function(v,w,T){T(v.id,w,"Pattern"),v.init&&T(v.init,w,"Expression")},b.Function=function(v,w,T){v.id&&T(v.id,w,"Pattern");for(var y=0,A=v.params;y<A.length;y+=1){var O=A[y];T(O,w,"Pattern")}T(v.body,w,v.expression?"Expression":"Statement")},b.Pattern=function(v,w,T){v.type==="Identifier"?T(v,w,"VariablePattern"):v.type==="MemberExpression"?T(v,w,"MemberPattern"):T(v,w)},b.VariablePattern=_,b.MemberPattern=g,b.RestElement=function(v,w,T){return T(v.argument,w,"Pattern")},b.ArrayPattern=function(v,w,T){for(var y=0,A=v.elements;y<A.length;y+=1){var O=A[y];O&&T(O,w,"Pattern")}},b.ObjectPattern=function(v,w,T){for(var y=0,A=v.properties;y<A.length;y+=1){var O=A[y];O.type==="Property"?(O.computed&&T(O.key,w,"Expression"),T(O.value,w,"Pattern")):O.type==="RestElement"&&T(O.argument,w,"Pattern")}},b.Expression=g,b.ThisExpression=b.Super=b.MetaProperty=_,b.ArrayExpression=function(v,w,T){for(var y=0,A=v.elements;y<A.length;y+=1){var O=A[y];O&&T(O,w,"Expression")}},b.ObjectExpression=function(v,w,T){for(var y=0,A=v.properties;y<A.length;y+=1){var O=A[y];T(O,w)}},b.FunctionExpression=b.ArrowFunctionExpression=b.FunctionDeclaration,b.SequenceExpression=function(v,w,T){for(var y=0,A=v.expressions;y<A.length;y+=1){var O=A[y];T(O,w,"Expression")}},b.TemplateLiteral=function(v,w,T){for(var y=0,A=v.quasis;y<A.length;y+=1){var O=A[y];T(O,w)}for(var N=0,q=v.expressions;N<q.length;N+=1){var B=q[N];T(B,w,"Expression")}},b.TemplateElement=_,b.UnaryExpression=b.UpdateExpression=function(v,w,T){T(v.argument,w,"Expression")},b.BinaryExpression=b.LogicalExpression=function(v,w,T){T(v.left,w,"Expression"),T(v.right,w,"Expression")},b.AssignmentExpression=b.AssignmentPattern=function(v,w,T){T(v.left,w,"Pattern"),T(v.right,w,"Expression")},b.ConditionalExpression=function(v,w,T){T(v.test,w,"Expression"),T(v.consequent,w,"Expression"),T(v.alternate,w,"Expression")},b.NewExpression=b.CallExpression=function(v,w,T){if(T(v.callee,w,"Expression"),v.arguments)for(var y=0,A=v.arguments;y<A.length;y+=1){var O=A[y];T(O,w,"Expression")}},b.MemberExpression=function(v,w,T){T(v.object,w,"Expression"),v.computed&&T(v.property,w,"Expression")},b.ExportNamedDeclaration=b.ExportDefaultDeclaration=function(v,w,T){if(v.declaration&&T(v.declaration,w,v.type==="ExportNamedDeclaration"||v.declaration.id?"Statement":"Expression"),v.source&&T(v.source,w,"Expression"),v.attributes)for(var y=0,A=v.attributes;y<A.length;y+=1){var O=A[y];T(O,w)}},b.ExportAllDeclaration=function(v,w,T){if(v.exported&&T(v.exported,w),T(v.source,w,"Expression"),v.attributes)for(var y=0,A=v.attributes;y<A.length;y+=1){var O=A[y];T(O,w)}},b.ImportAttribute=function(v,w,T){T(v.value,w,"Expression")},b.ImportDeclaration=function(v,w,T){for(var y=0,A=v.specifiers;y<A.length;y+=1){var O=A[y];T(O,w)}if(T(v.source,w,"Expression"),v.attributes)for(var N=0,q=v.attributes;N<q.length;N+=1){var B=q[N];T(B,w)}},b.ImportExpression=function(v,w,T){T(v.source,w,"Expression"),v.options&&T(v.options,w,"Expression")},b.ImportSpecifier=b.ImportDefaultSpecifier=b.ImportNamespaceSpecifier=b.Identifier=b.PrivateIdentifier=b.Literal=_,b.TaggedTemplateExpression=function(v,w,T){T(v.tag,w,"Expression"),T(v.quasi,w,"Expression")},b.ClassDeclaration=b.ClassExpression=function(v,w,T){return T(v,w,"Class")},b.Class=function(v,w,T){v.id&&T(v.id,w,"Pattern"),v.superClass&&T(v.superClass,w,"Expression"),T(v.body,w)},b.ClassBody=function(v,w,T){for(var y=0,A=v.body;y<A.length;y+=1){var O=A[y];T(O,w)}},b.MethodDefinition=b.PropertyDefinition=b.Property=function(v,w,T){v.computed&&T(v.key,w,"Expression"),v.value&&T(v.value,w,"Expression")},e.ancestor=r,e.base=b,e.findNodeAfter=f,e.findNodeAround=l,e.findNodeAt=c,e.findNodeBefore=m,e.full=a,e.fullAncestor=o,e.make=d,e.recursive=n,e.simple=t}))});var tF=x(ag=>{"use strict";p();Object.defineProperty(ag,"__esModule",{value:!0});ag.getWebComponentMap=Lse;ag.findWebComponentReferences=eF;var zS=Kt(),Pse=Zj(),qse=/^[a-z][-.\d_a-z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*([-][-.\d_a-z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*)$/u;async function Lse(e,{fs:t,getSourceCode:r}){let n=new Map,i=zS.path.join(e,"assets"),s=await(0,zS.recursiveReadDirectory)(t,i,([a])=>a.endsWith(".js"));return await Promise.all(s.map(a=>eF(a,i,r,n))),n}async function eF(e,t,r,n){let i=await r(e);if(i.type!=="javascript")return;let s=i.ast;if(!(s instanceof Error))for(let a of s.body)(0,Pse.ancestor)(a,{Literal(o,c,l){if(typeof o.value=="string"&&qse.test(o.value)){let f=l.at(-2);if(!f||f.type!=="CallExpression")return;let m=f.callee;if(m.type!=="MemberExpression")return;let d=m.property;if(d.type!=="Identifier"||d.name!=="define")return;n.set(o.value,{assetName:zS.path.relative(e,t),range:[d.start,o.end]})}return null}})}});var nF=x(Ze=>{"use strict";p();var Cse=Ze&&Ze.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ise=Ze&&Ze.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Cse(t,e,r)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.toSvgSourceCode=Ze.toSourceCode=Ze.toJsSourceCode=Ze.toCssSourceCode=Ze.findWebComponentReferences=Ze.getWebComponentMap=Ze.serializeThemeGraph=Ze.buildThemeGraph=void 0;var Mse=Qj();Object.defineProperty(Ze,"buildThemeGraph",{enumerable:!0,get:function(){return Mse.buildThemeGraph}});var Rse=Yj();Object.defineProperty(Ze,"serializeThemeGraph",{enumerable:!0,get:function(){return Rse.serializeThemeGraph}});var rF=tF();Object.defineProperty(Ze,"getWebComponentMap",{enumerable:!0,get:function(){return rF.getWebComponentMap}});Object.defineProperty(Ze,"findWebComponentReferences",{enumerable:!0,get:function(){return rF.findWebComponentReferences}});var og=FS();Object.defineProperty(Ze,"toCssSourceCode",{enumerable:!0,get:function(){return og.toCssSourceCode}});Object.defineProperty(Ze,"toJsSourceCode",{enumerable:!0,get:function(){return og.toJsSourceCode}});Object.defineProperty(Ze,"toSourceCode",{enumerable:!0,get:function(){return og.toSourceCode}});Object.defineProperty(Ze,"toSvgSourceCode",{enumerable:!0,get:function(){return og.toSvgSourceCode}});Ise(rg(),Ze)});var aF=x((Awe,JS)=>{"use strict";p();var et=ce("path"),iF=ce("os"),Ni=iF.homedir(),GS=iF.tmpdir(),{env:xo}=process,Dse=e=>{let t=et.join(Ni,"Library");return{data:et.join(t,"Application Support",e),config:et.join(t,"Preferences",e),cache:et.join(t,"Caches",e),log:et.join(t,"Logs",e),temp:et.join(GS,e)}},jse=e=>{let t=xo.APPDATA||et.join(Ni,"AppData","Roaming"),r=xo.LOCALAPPDATA||et.join(Ni,"AppData","Local");return{data:et.join(r,e,"Data"),config:et.join(t,e,"Config"),cache:et.join(r,e,"Cache"),log:et.join(r,e,"Log"),temp:et.join(GS,e)}},Fse=e=>{let t=et.basename(Ni);return{data:et.join(xo.XDG_DATA_HOME||et.join(Ni,".local","share"),e),config:et.join(xo.XDG_CONFIG_HOME||et.join(Ni,".config"),e),cache:et.join(xo.XDG_CACHE_HOME||et.join(Ni,".cache"),e),log:et.join(xo.XDG_STATE_HOME||et.join(Ni,".local","state"),e),temp:et.join(GS,t,e)}},sF=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?Dse(e):process.platform==="win32"?jse(e):Fse(e)};JS.exports=sF;JS.exports.default=sF});var KS=x(jr=>{"use strict";p();Object.defineProperty(jr,"__esModule",{value:!0});jr.memoize=jr.memo=jr.tap=jr.identity=jr.noop=void 0;var Bse=()=>{};jr.noop=Bse;var Vse=e=>e;jr.identity=Vse;var $se=e=>t=>(e(t),t);jr.tap=$se;var oF=Kt();Object.defineProperty(jr,"memo",{enumerable:!0,get:function(){return oF.memo}});Object.defineProperty(jr,"memoize",{enumerable:!0,get:function(){return oF.memoize}})});var eT=x(Se=>{"use strict";p();var lg=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Se,"__esModule",{value:!0});Se.Manifests=Se.Resources=Se.ThemeLiquidDocsSchemaRoot=Se.ThemeLiquidDocsRoot=Se.root=void 0;Se.downloadSchema=cF;Se.downloadResource=uF;Se.download=YS;Se.resourcePath=cg;Se.resourceUrl=ug;Se.schemaPath=XS;Se.schemaUrl=ZS;Se.exists=lF;Se.downloadThemeLiquidDocs=Gse;var Use=lg(aF()),Hse=lg(Qw()),Xu=lg(ce("node:fs/promises")),QS=lg(ce("node:path")),Yu=KS(),Wse=(0,Use.default)("theme-liquid-docs");Se.root=Wse.cache;Se.ThemeLiquidDocsRoot="https://raw.githubusercontent.com/Shopify/theme-liquid-docs/main";Se.ThemeLiquidDocsSchemaRoot=`${Se.ThemeLiquidDocsRoot}/schemas`;Se.Resources=["filters","objects","tags","shopify_system_translations","manifest_theme","manifest_theme_app_extension"];Se.Manifests={app:"manifest_theme_app_extension",theme:"manifest_theme"};var zse={filters:"data/filters.json",objects:"data/objects.json",tags:"data/tags.json",latest:"data/latest.json",shopify_system_translations:"data/shopify_system_translations.json",manifest_theme:"schemas/manifest_theme.json",manifest_theme_app_extension:"schemas/manifest_theme_app_extension.json"};async function cF(e,t=Se.root,r=Yu.noop){let n=ZS(e),i=XS(e,t),s=await YS(n,r);return await Xu.default.writeFile(i,s,"utf8"),s}async function uF(e,t=Se.root,r=Yu.noop){let n=ug(e),i=cg(e,t),s=await YS(n,r);return await Xu.default.writeFile(i,s,"utf8"),s}async function YS(e,t){return e.startsWith("file:")?await Xu.default.readFile(e.replace(/^file:/,""),"utf8").then((0,Yu.tap)(()=>t(`Using local file: ${e}`))).catch(r=>{throw t(`Failed to read local file: ${e}`),r}):(await(0,Hse.default)(e)).text()}function cg(e,t=Se.root){return QS.default.join(t,`${e}.json`)}function ug(e){let t=zse[e];return`${process.env.SHOPIFY_TLD_ROOT?`file:${process.env.SHOPIFY_TLD_ROOT}`:Se.ThemeLiquidDocsRoot}/${t}`}function XS(e,t=Se.root){return QS.default.resolve(t,QS.default.basename(e))}function ZS(e){return`${process.env.SHOPIFY_TLD_ROOT?`file:${process.env.SHOPIFY_TLD_ROOT}`:Se.ThemeLiquidDocsRoot}/schemas/${e}`}async function lF(e){try{return await Xu.default.stat(e),!0}catch{return!1}}async function Gse(e,t){await lF(e)||await Xu.default.mkdir(e);let r=["latest"].concat(Se.Resources),n=await Promise.all(r.map(a=>uF(a,e,t).then((0,Yu.tap)(()=>t(`Successfully downloaded latest resource:
98
+ ${ug(a)}
99
+ > ${cg(a,e)}`))).catch(o=>{throw t(`Failed to download latest resource:
100
+ ${ug(a)} to
101
+ ${cg(a,e)}
102
+ ${o}`),o}))),s=Object.values(Se.Manifests).map(a=>r.indexOf(a)).map(a=>n[a]).map(a=>JSON.parse(a)).flatMap(a=>a.schemas.map(o=>o.uri));await Promise.all(Jse(s).map(a=>cF(a,e,t).then((0,Yu.tap)(()=>t(`Successfully downloaded schema:
103
+ ${ZS(a)}
104
+ > ${XS(a,e)}`))).catch(o=>{throw t(`Failed to download schema: ${a}, ${o}`),o})))}function Jse(e){return[...new Set(e).values()]}});var pF=x(Eo=>{"use strict";p();var fF=Eo&&Eo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.ThemeLiquidDocsManager=void 0;var el=fF(ce("node:fs/promises")),fg=fF(ce("node:path")),_r=eT(),rr=KS(),tT=class{log;constructor(t=rr.noop){this.log=t}filters=(0,rr.memo)(async()=>Pi(this.loaders("filters"),JSON.parse,[],this.log));objects=(0,rr.memo)(async()=>Pi(this.loaders("objects"),JSON.parse,[],this.log));liquidDrops=(0,rr.memo)(async()=>Pi(this.loaders("objects"),JSON.parse,[],this.log));tags=(0,rr.memo)(async()=>Pi(this.loaders("tags"),JSON.parse,[],this.log));systemTranslations=(0,rr.memo)(async()=>Pi(this.loaders("shopify_system_translations"),JSON.parse,{},this.log));schemas=(0,rr.memoize)(t=>Pi(this.loaders(_r.Manifests[t]),JSON.parse,{schemas:[]},this.log).then(r=>Promise.all(r.schemas.map(async n=>({uri:`${_r.ThemeLiquidDocsSchemaRoot}/${n.uri}`,fileMatch:n.fileMatch,schema:await Pi(this.schemaLoaders(n.uri),rr.identity,"",this.log)})))),rr.identity);setup=(0,rr.memo)(async()=>{try{await(0,_r.exists)(_r.root)||await el.default.mkdir(_r.root,{recursive:!0});let t=await this.latestRevision();await(0,_r.downloadResource)("latest",_r.root,this.log);let r=await this.latestRevision();t!==r&&await(0,_r.downloadThemeLiquidDocs)(_r.root,this.log)}catch(t){t instanceof Error&&this.log(`Failed to setup with the following error: ${t.message}`);return}});async latestRevision(){return(await Pi([Zu(()=>this.load("latest"),"loadLatestRevision")],JSON.parse,{},this.log)).revision??""}async loadResource(t){return await this.setup(),this.load(t).then((0,rr.tap)(()=>this.log(`Loaded resource from ${(0,_r.resourcePath)(t)}`)))}async load(t){return el.default.readFile((0,_r.resourcePath)(t),"utf8")}async loadSchema(t){return el.default.readFile((0,_r.schemaPath)(t),"utf8").then((0,rr.tap)(()=>this.log(`Loaded schema from ${(0,_r.schemaPath)(t)}`)))}loaders(t){return[Zu(()=>this.loadResource(t),`loadResource(${t})`),Zu(()=>Kse(t,this.log),`fallbackResource(${t})`)]}schemaLoaders(t){return[Zu(()=>this.loadSchema(t),`loadSchema(${t})`),Zu(()=>Qse(t,this.log),`fallbackSchema(${t})`)]}};Eo.ThemeLiquidDocsManager=tT;function Zu(e,t){return Object.assign(e,{loaderName:t})}async function Pi(e,t,r,n){for(let i of e)try{return t(await i())}catch(s){n(`Failed to load or transform ${i.loaderName} with the following error:
105
+ ${s instanceof Error?s.message:s}`);continue}return r}function dF(){return fg.default.resolve(__dirname,"./data")}async function Kse(e,t){let r=fg.default.resolve(dF(),`${e}.json`);return el.default.readFile(r,"utf8").then((0,rr.tap)(()=>t(`Loaded fallback resource
106
+ ${e} from
107
+ ${r}`)))}async function Qse(e,t){let r=fg.default.resolve(dF(),fg.default.basename(e));return el.default.readFile(r,"utf8").then((0,rr.tap)(()=>t(`Loaded fallback schema
108
+ ${e} from
109
+ ${r}`)))}});var hF=x(Fr=>{"use strict";p();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.root=Fr.downloadThemeLiquidDocs=Fr.downloadResource=Fr.Resources=Fr.ThemeLiquidDocsManager=void 0;var Yse=pF();Object.defineProperty(Fr,"ThemeLiquidDocsManager",{enumerable:!0,get:function(){return Yse.ThemeLiquidDocsManager}});var dg=eT();Object.defineProperty(Fr,"Resources",{enumerable:!0,get:function(){return dg.Resources}});Object.defineProperty(Fr,"downloadResource",{enumerable:!0,get:function(){return dg.downloadResource}});Object.defineProperty(Fr,"downloadThemeLiquidDocs",{enumerable:!0,get:function(){return dg.downloadThemeLiquidDocs}});Object.defineProperty(Fr,"root",{enumerable:!0,get:function(){return dg.root}})});var mF=x(rT=>{p();var zs=ce("path"),Li=process.platform==="win32",qi=ce("fs"),Xse=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Zse(){var e;if(Xse){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function eae(e){return typeof e=="function"?e:Zse()}var Dwe=zs.normalize;Li?Zn=/(.*?)(?:[\/\\]+|$)/g:Zn=/(.*?)(?:[\/]+|$)/g;var Zn;Li?tl=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:tl=/^[\/]*/;var tl;rT.realpathSync=function(t,r){if(t=zs.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},a,o,c,l;f();function f(){var b=tl.exec(t);a=b[0].length,o=b[0],c=b[0],l="",Li&&!s[c]&&(qi.lstatSync(c),s[c]=!0)}for(;a<t.length;){Zn.lastIndex=a;var m=Zn.exec(t);if(l=o,o+=m[0],c=l+m[1],a=Zn.lastIndex,!(s[c]||r&&r[c]===c)){var d;if(r&&Object.prototype.hasOwnProperty.call(r,c))d=r[c];else{var g=qi.lstatSync(c);if(!g.isSymbolicLink()){s[c]=!0,r&&(r[c]=c);continue}var _=null;if(!Li){var k=g.dev.toString(32)+":"+g.ino.toString(32);i.hasOwnProperty(k)&&(_=i[k])}_===null&&(qi.statSync(c),_=qi.readlinkSync(c)),d=zs.resolve(l,_),r&&(r[c]=d),Li||(i[k]=_)}t=zs.resolve(d,t.slice(a)),f()}}return r&&(r[n]=t),t};rT.realpath=function(t,r,n){if(typeof n!="function"&&(n=eae(r),r=null),t=zs.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},a={},o,c,l,f;m();function m(){var b=tl.exec(t);o=b[0].length,c=b[0],l=b[0],f="",Li&&!a[l]?qi.lstat(l,function(v){if(v)return n(v);a[l]=!0,d()}):process.nextTick(d)}function d(){if(o>=t.length)return r&&(r[i]=t),n(null,t);Zn.lastIndex=o;var b=Zn.exec(t);return f=c,c+=b[0],l=f+b[1],o=Zn.lastIndex,a[l]||r&&r[l]===l?process.nextTick(d):r&&Object.prototype.hasOwnProperty.call(r,l)?k(r[l]):qi.lstat(l,g)}function g(b,v){if(b)return n(b);if(!v.isSymbolicLink())return a[l]=!0,r&&(r[l]=l),process.nextTick(d);if(!Li){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(s.hasOwnProperty(w))return _(null,s[w],l)}qi.stat(l,function(T){if(T)return n(T);qi.readlink(l,function(y,A){Li||(s[w]=A),_(y,A)})})}function _(b,v,w){if(b)return n(b);var T=zs.resolve(f,v);r&&(r[w]=T),k(T)}function k(b){t=zs.resolve(b,t.slice(o)),m()}}});var aT=x((Bwe,vF)=>{p();vF.exports=Ci;Ci.realpath=Ci;Ci.sync=sT;Ci.realpathSync=sT;Ci.monkeypatch=rae;Ci.unmonkeypatch=nae;var Ao=ce("fs"),nT=Ao.realpath,iT=Ao.realpathSync,tae=process.version,gF=/^v[0-5]\./.test(tae),yF=mF();function _F(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function Ci(e,t,r){if(gF)return nT(e,t,r);typeof t=="function"&&(r=t,t=null),nT(e,t,function(n,i){_F(n)?yF.realpath(e,t,r):r(n,i)})}function sT(e,t){if(gF)return iT(e,t);try{return iT(e,t)}catch(r){if(_F(r))return yF.realpathSync(e,t);throw r}}function rae(){Ao.realpath=Ci,Ao.realpathSync=sT}function nae(){Ao.realpath=nT,Ao.realpathSync=iT}});var kF=x(($we,bF)=>{p();var iae=typeof process=="object"&&process&&process.platform==="win32";bF.exports=iae?{sep:"\\"}:{sep:"/"}});var hg=x((Wwe,fT)=>{p();var vr=fT.exports=(e,t,r={})=>(pg(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Oo(t,r).match(e));fT.exports=vr;var uT=kF();vr.sep=uT.sep;var Qt=Symbol("globstar **");vr.GLOBSTAR=Qt;var sae=B$(),SF={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},lT="[^/]",oT=lT+"*?",aae="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",oae="(?:(?!(?:\\/|^)\\.).)*?",xF=e=>e.split("").reduce((t,r)=>(t[r]=!0,t),{}),TF=xF("().*{}+?[]^$\\!"),cae=xF("[.("),wF=/\/+/;vr.filter=(e,t={})=>(r,n,i)=>vr(r,e,t);var Ii=(e,t={})=>{let r={};return Object.keys(e).forEach(n=>r[n]=e[n]),Object.keys(t).forEach(n=>r[n]=t[n]),r};vr.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return vr;let t=vr,r=(n,i,s)=>t(n,i,Ii(e,s));return r.Minimatch=class extends t.Minimatch{constructor(i,s){super(i,Ii(e,s))}},r.Minimatch.defaults=n=>t.defaults(Ii(e,n)).Minimatch,r.filter=(n,i)=>t.filter(n,Ii(e,i)),r.defaults=n=>t.defaults(Ii(e,n)),r.makeRe=(n,i)=>t.makeRe(n,Ii(e,i)),r.braceExpand=(n,i)=>t.braceExpand(n,Ii(e,i)),r.match=(n,i,s)=>t.match(n,i,Ii(e,s)),r};vr.braceExpand=(e,t)=>EF(e,t);var EF=(e,t={})=>(pg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:sae(e)),uae=1024*64,pg=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>uae)throw new TypeError("pattern is too long")},cT=Symbol("subparse");vr.makeRe=(e,t)=>new Oo(e,t||{}).makeRe();vr.match=(e,t,r={})=>{let n=new Oo(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};var lae=e=>e.replace(/\\(.)/g,"$1"),fae=e=>e.replace(/\\([^-\]])/g,"$1"),dae=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),pae=e=>e.replace(/[[\]\\]/g,"\\$&"),Oo=class{constructor(t,r){pg(t),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(wF)),this.debug(this.pattern,n),n=n.map((i,s,a)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n){return r.indexOf(Qt)!==-1?this._matchGlobstar(t,r,n,0,0):this._matchOne(t,r,n,0,0)}_matchGlobstar(t,r,n,i,s){let a=-1;for(let w=s;w<r.length;w++)if(r[w]===Qt){a=w;break}let o=-1;for(let w=r.length-1;w>=0;w--)if(r[w]===Qt){o=w;break}let c=r.slice(s,a),l=n?r.slice(a+1):r.slice(a+1,o),f=n?[]:r.slice(o+1);if(c.length){let w=t.slice(i,i+c.length);if(!this._matchOne(w,c,n,0,0))return!1;i+=c.length}let m=0;if(f.length){if(f.length+i>t.length)return!1;let w=t.length-f.length;if(this._matchOne(t,f,n,w,0))m=f.length;else{if(t[t.length-1]!==""||i+f.length===t.length||!this._matchOne(t,f,n,w-1,0))return!1;m=f.length+1}}if(!l.length){let w=!!m;for(let T=i;T<t.length-m;T++){let y=String(t[T]);if(w=!0,y==="."||y===".."||!this.options.dot&&y.charAt(0)===".")return!1}return n||w}let d=[[[],0]],g=d[0],_=0,k=[0];for(let w of l)w===Qt?(k.push(_),g=[[],0],d.push(g)):(g[0].push(w),_++);let b=d.length-1,v=t.length-m;for(let w of d)w[1]=v-(k[b--]+w[0].length);return!!this._matchGlobStarBodySections(t,d,i,0,n,0,!!m)}_matchGlobStarBodySections(t,r,n,i,s,a,o){let c=r[i];if(!c){for(let m=n;m<t.length;m++){o=!0;let d=t[m];if(d==="."||d===".."||!this.options.dot&&d.charAt(0)===".")return!1}return o}let[l,f]=c;for(;n<=f;){if(this._matchOne(t.slice(0,n+l.length),l,s,n,0)&&a<this.maxGlobstarRecursion){let g=this._matchGlobStarBodySections(t,r,n+l.length,i+1,s,a+1,o);if(g!==!1)return g}let d=t[n];if(d==="."||d===".."||!this.options.dot&&d.charAt(0)===".")return!1;n++}return s||null}_matchOne(t,r,n,i,s){let a,o,c,l;for(a=i,o=s,c=t.length,l=r.length;a<c&&o<l;a++,o++){this.debug("matchOne loop");let f=r[o],m=t[a];if(this.debug(r,f,m),f===!1||f===Qt)return!1;let d;if(typeof f=="string"?(d=m===f,this.debug("string match",f,m,d)):(d=m.match(f),this.debug("pattern match",f,m,d)),!d)return!1}if(a===c&&o===l)return!0;if(a===c)return n;if(o===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return EF(this.pattern,this.options)}parse(t,r){pg(t);let n=this.options;if(t==="**")if(n.noglobstar)t="*";else return Qt;if(t==="")return"";let i="",s=!1,a=!1,o=[],c=[],l,f=!1,m=-1,d=-1,g,_,k,b=t.charAt(0)===".",v=n.dot||b,w=()=>b?"":v?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",T=N=>N.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=()=>{if(l){switch(l){case"*":i+=oT,s=!0;break;case"?":i+=lT,s=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let N=0,q;N<t.length&&(q=t.charAt(N));N++){if(this.debug("%s %s %s %j",t,N,i,q),a){if(q==="/")return!1;TF[q]&&(i+="\\"),i+=q,a=!1;continue}switch(q){case"/":return!1;case"\\":if(f&&t.charAt(N+1)==="-"){i+=q;continue}y(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,N,i,q),f){this.debug(" in class"),q==="!"&&N===d+1&&(q="^"),i+=q;continue}if(q==="*"&&l==="*")continue;this.debug("call clearStateChar %j",l),y(),l=q,n.noext&&y();continue;case"(":{if(f){i+="(";continue}if(!l){i+="\\(";continue}let B={type:l,start:N-1,reStart:i.length,open:SF[l].open,close:SF[l].close};this.debug(this.pattern," ",B),o.push(B),i+=B.open,B.start===0&&B.type!=="!"&&(b=!0,i+=T(t.slice(N+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let B=o[o.length-1];if(f||!B){i+="\\)";continue}o.pop(),y(),s=!0,_=B,i+=_.close,_.type==="!"&&c.push(Object.assign(_,{reEnd:i.length}));continue}case"|":{let B=o[o.length-1];if(f||!B){i+="\\|";continue}y(),i+="|",B.start===0&&B.type!=="!"&&(b=!0,i+=T(t.slice(N+1)));continue}case"[":if(y(),f){i+="\\"+q;continue}f=!0,d=N,m=i.length,i+=q;continue;case"]":if(N===d+1||!f){i+="\\"+q;continue}g=t.substring(d+1,N);try{RegExp("["+pae(fae(g))+"]"),i+=q}catch{i=i.substring(0,m)+"(?:$.)"}s=!0,f=!1;continue;default:y(),TF[q]&&!(q==="^"&&f)&&(i+="\\"),i+=q;break}}for(f&&(g=t.slice(d+1),k=this.parse(g,cT),i=i.substring(0,m)+"\\["+k[0],s=s||k[1]),_=o.pop();_;_=o.pop()){let N;N=i.slice(_.reStart+_.open.length),this.debug("setting tail",i,_),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(B,M,L)=>(L||(L="\\"),M+M+L+"|")),this.debug(`tail=%j
110
+ %s`,N,N,_,i);let q=_.type==="*"?oT:_.type==="?"?lT:"\\"+_.type;s=!0,i=i.slice(0,_.reStart)+q+"\\("+N}y(),a&&(i+="\\\\");let A=cae[i.charAt(0)];for(let N=c.length-1;N>-1;N--){let q=c[N],B=i.slice(0,q.reStart),M=i.slice(q.reStart,q.reEnd-8),L=i.slice(q.reEnd),C=i.slice(q.reEnd-8,q.reEnd)+L,$=B.split(")").length,V=B.split("(").length-$,I=L;for(let U=0;U<V;U++)I=I.replace(/\)[+*?]?/,"");L=I;let F=L===""&&r!==cT?"(?:$|\\/)":"";i=B+M+L+F+C}if(i!==""&&s&&(i="(?=.)"+i),A&&(i=w()+i),r===cT)return[i,s];if(n.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return lae(t);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",O),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?oT:r.dot?aae:oae,i=r.nocase?"i":"",s=t.map(a=>(a=a.map(o=>typeof o=="string"?dae(o):o===Qt?Qt:o._src).reduce((o,c)=>(o[o.length-1]===Qt&&c===Qt||o.push(c),o),[]),a.forEach((o,c)=>{o!==Qt||a[c-1]===Qt||(c===0?a.length>1?a[c+1]="(?:\\/|"+n+"\\/)?"+a[c+1]:a[c]=n:c===a.length-1?a[c-1]+="(?:\\/|"+n+")?":(a[c-1]+="(?:\\/|\\/"+n+"\\/)"+a[c+1],a[c+1]=Qt))}),a.filter(o=>o!==Qt).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;uT.sep!=="/"&&(t=t.split(uT.sep).join("/")),t=t.split(wF),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=t.length-1;a>=0&&(s=t[a],!s);a--);for(let a=0;a<i.length;a++){let o=i[a],c=t;if(n.matchBase&&o.length===1&&(c=[s]),this.matchOne(c,o,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return vr.defaults(t).Minimatch}};vr.Minimatch=Oo});var pT=x(Mi=>{p();Mi.setopts=vae;Mi.ownProp=AF;Mi.makeAbs=rl;Mi.finish=bae;Mi.mark=kae;Mi.isIgnored=NF;Mi.childrenIgnored=Sae;function AF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var hae=ce("fs"),Gs=ce("path"),mae=hg(),OF=ce("path").isAbsolute,dT=mae.Minimatch;function gae(e,t){return e.localeCompare(t,"en")}function yae(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(_ae))}function _ae(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new dT(r,{dot:!0})}return{matcher:new dT(e,{dot:!0}),gmatcher:t}}function vae(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/")),e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||hae,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),yae(e,r),e.changedCwd=!1;var n=process.cwd();AF(r,"cwd")?(e.cwd=Gs.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=Gs.resolve(n),e.root=r.root||Gs.resolve(e.cwd,"/"),e.root=Gs.resolve(e.root),e.cwdAbs=OF(e.cwd)?e.cwd:rl(e,e.cwd),e.nomount=!!r.nomount,process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),r.nonegate=!0,r.nocomment=!0,e.minimatch=new dT(t,r),e.options=e.minimatch.options}function bae(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}else{var o=Object.keys(s);t?r.push.apply(r,o):o.forEach(function(c){r[c]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(gae)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(c){var l=!/\/$/.test(c),f=e.cache[c]||e.cache[rl(e,c)];return l&&f&&(l=f!=="DIR"&&!Array.isArray(f)),l}))}e.ignore.length&&(r=r.filter(function(c){return!NF(e,c)})),e.found=r}function kae(e,t){var r=rl(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),a=t.slice(-1)==="/";if(s&&!a?i+="/":!s&&a&&(i=i.slice(0,-1)),i!==t){var o=rl(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r]}}return i}function rl(e,t){var r=t;return t.charAt(0)==="/"?r=Gs.join(e.root,t):OF(t)||t===""?r=t:e.changedCwd?r=Gs.resolve(e.cwd,t):r=Gs.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function NF(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function Sae(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var IF=x((Xwe,CF)=>{p();CF.exports=LF;LF.GlobSync=gt;var Tae=aT(),PF=hg(),Kwe=PF.Minimatch,Qwe=gg().Glob,Ywe=ce("util"),hT=ce("path"),qF=ce("assert"),mg=ce("path").isAbsolute,Js=pT(),wae=Js.setopts,mT=Js.ownProp,xae=Js.childrenIgnored,Eae=Js.isIgnored;function LF(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
111
+ See: https://github.com/isaacs/node-glob/issues/167`);return new gt(e,t).found}function gt(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
112
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof gt))return new gt(e,t);if(wae(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}gt.prototype._finish=function(){if(qF.ok(this instanceof gt),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=Tae.realpathSync(i,e.realpathCache);n[s]=!0}catch(a){if(a.syscall==="stat")n[e._makeAbs(i)]=!0;else throw a}})}Js.finish(this)};gt.prototype._process=function(e,t,r){qF.ok(this instanceof gt);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),a;i===null?a=".":((mg(i)||mg(e.map(function(l){return typeof l=="string"?l:"[*]"}).join("/")))&&(!i||!mg(i))&&(i="/"+i),a=i);var o=this._makeAbs(a);if(!xae(this,a)){var c=s[0]===PF.GLOBSTAR;c?this._processGlobStar(i,a,o,s,t,r):this._processReaddir(i,a,o,s,t,r)}};gt.prototype._processReaddir=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){for(var o=n[0],c=!!this.minimatch.negate,l=o._glob,f=this.dot||l.charAt(0)===".",m=[],d=0;d<a.length;d++){var g=a[d];if(g.charAt(0)!=="."||f){var _;c&&!e?_=!g.match(o):_=g.match(o),_&&m.push(g)}}var k=m.length;if(k!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<k;d++){var g=m[d];e&&(e.slice(-1)!=="/"?g=e+"/"+g:g=e+g),g.charAt(0)==="/"&&!this.nomount&&(g=hT.join(this.root,g)),this._emitMatch(i,g)}return}n.shift();for(var d=0;d<k;d++){var g=m[d],b;e?b=[e,g]:b=[g],this._process(b.concat(n),i,s)}}}};gt.prototype._emitMatch=function(e,t){if(!Eae(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};gt.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};gt.prototype._readdir=function(e,t){var r;if(t&&!mT(this.symlinks,e))return this._readdirInGlobStar(e);if(mT(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};gt.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};gt.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};gt.prototype._processGlobStar=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){var o=n.slice(1),c=e?[e]:[],l=c.concat(o);this._process(l,i,!1);var f=a.length,m=this.symlinks[r];if(!(m&&s))for(var d=0;d<f;d++){var g=a[d];if(!(g.charAt(0)==="."&&!this.dot)){var _=c.concat(a[d],o);this._process(_,i,!0);var k=c.concat(a[d],n);this._process(k,i,!0)}}}};gt.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&mg(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=hT.join(this.root,e):(e=hT.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};gt.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&mT(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var n,i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=s}else i=s}this.statCache[t]=i;var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,r&&a==="FILE"?!1:a};gt.prototype._mark=function(e){return Js.mark(this,e)};gt.prototype._makeAbs=function(e){return Js.makeAbs(this,e)}});var RF=x((exe,MF)=>{p();var Aae=j$(),nl=Object.create(null),Oae=Yw();MF.exports=Aae(Nae);function Nae(e,t){return nl[e]?(nl[e].push(t),null):(nl[e]=[t],Pae(e))}function Pae(e){return Oae(function t(){var r=nl[e],n=r.length,i=qae(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete nl[e]}})}function qae(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var gg=x((ixe,jF)=>{p();jF.exports=Ks;var Lae=aT(),DF=hg(),rxe=DF.Minimatch,Cae=V$(),Iae=ce("events").EventEmitter,gT=ce("path"),yT=ce("assert"),il=ce("path").isAbsolute,vT=IF(),Qs=pT(),Mae=Qs.setopts,_T=Qs.ownProp,bT=RF(),nxe=ce("util"),Rae=Qs.childrenIgnored,Dae=Qs.isIgnored,jae=Yw();function Ks(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return vT(e,t)}return new Ne(e,t,r)}Ks.sync=vT;var Fae=Ks.GlobSync=vT.GlobSync;Ks.glob=Ks;function Bae(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}Ks.hasMagic=function(e,t){var r=Bae({},t);r.noprocess=!0;var n=new Ne(e,r),i=n.minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};Ks.Glob=Ne;Cae(Ne,Iae);function Ne(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new Fae(e,t)}if(!(this instanceof Ne))return new Ne(e,t,r);Mae(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=jae(r),this.on("error",r),this.on("end",function(c){r(null,c)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return o();for(var s=!0,a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);s=!1;function o(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}Ne.prototype._finish=function(){if(yT(this instanceof Ne),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Qs.finish(this),this.emit("end",this.found)}};Ne.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};Ne.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var a=this.matches[e]=Object.create(null);n.forEach(function(o,c){o=i._makeAbs(o),Lae.realpath(o,i.realpathCache,function(l,f){l?l.syscall==="stat"?a[o]=!0:i.emit("error",l):a[f]=!0,--s===0&&(i.matches[e]=a,t())})})};Ne.prototype._mark=function(e){return Qs.mark(this,e)};Ne.prototype._makeAbs=function(e){return Qs.makeAbs(this,e)};Ne.prototype.abort=function(){this.aborted=!0,this.emit("abort")};Ne.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};Ne.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};Ne.prototype._process=function(e,t,r,n){if(yT(this instanceof Ne),yT(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var a=e.slice(i),o;s===null?o=".":((il(s)||il(e.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!s||!il(s))&&(s="/"+s),o=s);var c=this._makeAbs(o);if(Rae(this,o))return n();var l=a[0]===DF.GLOBSTAR;l?this._processGlobStar(s,o,c,a,t,r,n):this._processReaddir(s,o,c,a,t,r,n)}};Ne.prototype._processReaddir=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,function(c,l){return o._processReaddir2(e,t,r,n,i,s,l,a)})};Ne.prototype._processReaddir2=function(e,t,r,n,i,s,a,o){if(!a)return o();for(var c=n[0],l=!!this.minimatch.negate,f=c._glob,m=this.dot||f.charAt(0)===".",d=[],g=0;g<a.length;g++){var _=a[g];if(_.charAt(0)!=="."||m){var k;l&&!e?k=!_.match(c):k=_.match(c),k&&d.push(_)}}var b=d.length;if(b===0)return o();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var g=0;g<b;g++){var _=d[g];e&&(e!=="/"?_=e+"/"+_:_=e+_),_.charAt(0)==="/"&&!this.nomount&&(_=gT.join(this.root,_)),this._emitMatch(i,_)}return o()}n.shift();for(var g=0;g<b;g++){var _=d[g],v;e&&(e!=="/"?_=e+"/"+_:_=e+_),this._process([_].concat(n),i,s,o)}o()};Ne.prototype._emitMatch=function(e,t){if(!this.aborted&&!Dae(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=il(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}};Ne.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=bT(r,s);i&&n.fs.lstat(e,i);function s(a,o){if(a&&a.code==="ENOENT")return t();var c=o&&o.isSymbolicLink();n.symlinks[e]=c,!c&&o&&!o.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};Ne.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=bT("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!_T(this.symlinks,e))return this._readdirInGlobStar(e,r);if(_T(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,Vae(this,e,r))}};function Vae(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}Ne.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};Ne.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};Ne.prototype._processGlobStar=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,function(c,l){o._processGlobStar2(e,t,r,n,i,s,l,a)})};Ne.prototype._processGlobStar2=function(e,t,r,n,i,s,a,o){if(!a)return o();var c=n.slice(1),l=e?[e]:[],f=l.concat(c);this._process(f,i,!1,o);var m=this.symlinks[r],d=a.length;if(m&&s)return o();for(var g=0;g<d;g++){var _=a[g];if(!(_.charAt(0)==="."&&!this.dot)){var k=l.concat(a[g],c);this._process(k,i,!0,o);var b=l.concat(a[g],n);this._process(b,i,!0,o)}}o()};Ne.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};Ne.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&il(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=gT.join(this.root,e):(e=gT.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};Ne.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&_T(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s,a=this.statCache[r];if(a!==void 0){if(a===!1)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&o==="FILE"?t():t(null,o,a)}var c=this,l=bT("stat\0"+r,f);l&&c.fs.lstat(r,l);function f(m,d){if(d&&d.isSymbolicLink())return c.fs.stat(r,function(g,_){g?c._stat2(e,r,null,d,t):c._stat2(e,r,g,_,t)});c._stat2(e,r,m,d,t)}};Ne.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,s&&a==="FILE"?i():i(null,a,n)}});var FF=x(No=>{"use strict";p();Object.defineProperty(No,"__esModule",{value:!0});No.saveToDiskFixApplicator=void 0;No.autofix=Hae;var $ae=ce("fs/promises"),kT=Kt(),Uae=async(e,t)=>{let r=(0,kT.applyFixToString)(e.source,t);await(0,$ae.writeFile)(kT.path.fsPath(e.uri),r,"utf8")};No.saveToDiskFixApplicator=Uae;async function Hae(e,t){await(0,kT.autofix)(e,t,No.saveToDiskFixApplicator)}});var ST=x(sl=>{"use strict";p();var Wae=sl&&sl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sl,"__esModule",{value:!0});sl.fileExists=Gae;var zae=Wae(ce("node:fs/promises"));async function Gae(e){try{return await zae.default.stat(e),!0}catch{return!1}}});var VF=x(Po=>{"use strict";p();var BF=Po&&Po.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Po,"__esModule",{value:!0});Po.thisNodeModuleRoot=void 0;var lxe=BF(ce("node:path")),Jae=BF(ce("node:os")),Kae=()=>Jae.default.tmpdir();Po.thisNodeModuleRoot=Kae});var HF=x(qo=>{"use strict";p();var Qae=qo&&qo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qo,"__esModule",{value:!0});qo.loadThirdPartyChecks=eoe;qo.findThirdPartyChecks=toe;var Yae=Qae(gg()),Xae=ce("node:util"),Zae=(0,Xae.promisify)(Yae.default);function eoe(e=[]){let t=new Set;for(let r of e)try{let i=ce(r).checks;if(!Array.isArray(i))throw new Error(`Expected the 'checks' export to be an array and got ${typeof i}`);for(let s of i)roe(s)?t.add(s):console.error(`Expected ${s} to be a CheckDefinition, but it looks like it isn't`)}catch(n){console.error(`Error loading ${r}, ignoring it.
113
+ ${n}`)}return[...t]}async function toe(e){let t=[$F(e.replace(/\\/g,"/"),"/node_modules/theme-check-*/"),$F(e.replace(/\\/g,"/"),"/node_modules/@*/theme-check-*/")];return(await Promise.all(t.map(n=>Zae(n)))).flat().filter(n=>!/\@shopify\/theme-check-(node|common|browser|docs-updater)/.test(n)&&!/theme-check-vscode/.test(n))}function $F(...e){return e.flatMap(t=>t.replace(/\\/g,"/").replace(/\/+$/,"")).join("/")}function UF(e){return e!==null&&typeof e=="object"}function roe(e){return UF(e)&&"meta"in e&&"create"in e&&UF(e.meta)&&"code"in e.meta}});var zF=x(ol=>{"use strict";p();var noe=ol&&ol.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ol,"__esModule",{value:!0});ol.loadConfigDescription=ooe;var wT=Kt(),al=noe(ce("node:path")),WF=ST(),ioe=VF(),TT=HF(),soe=du(),aoe=e=>e.flat();async function ooe(e,t){let r=await hoe(t),n=await Promise.all([(0,TT.findThirdPartyChecks)((0,ioe.thisNodeModuleRoot)()),(0,TT.findThirdPartyChecks)(r)]).then(aoe),i=(0,TT.loadThirdPartyChecks)([...e.require,...n]),s=wT.allChecks.concat(i).filter(uoe(e)),a=soe.URI.file(t);return{settings:foe(e.checkSettings,s),context:e.context??"theme",checks:s,ignore:e.ignore,rootUri:coe(a,e.root)}}function coe(e,t){if(t===void 0)return wT.path.normalize(e);if(al.default.isAbsolute(t))throw new Error('the "root" property can only be relative');return wT.path.resolve(e,t)}var uoe=e=>t=>{let r=e.checkSettings[t.meta.code]??loe(e,t);return r?r.enabled:!1};function loe(e,t){if(!t.meta.aliases)return;let r=t.meta.aliases.find(n=>e.checkSettings[n]);if(r)return e.checkSettings[r]}function foe(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>[doe(r,t),n]))}function doe(e,t){return t.find(n=>n.meta.code===e||n.meta.aliases?.find(i=>i===e))?.meta.code}async function poe(e){if(al.default.dirname(e)===e)return!0;let[t,r]=await Promise.all([(0,WF.fileExists)(al.default.join(e,"node_modules")),(0,WF.fileExists)(al.default.join(e,".git"))]);return t||r}async function hoe(e){let t=e;for(;!await poe(t);)t=al.default.dirname(t);return t}});var ke=x(Rt=>{"use strict";p();var xT=Symbol.for("yaml.alias"),GF=Symbol.for("yaml.document"),yg=Symbol.for("yaml.map"),JF=Symbol.for("yaml.pair"),ET=Symbol.for("yaml.scalar"),_g=Symbol.for("yaml.seq"),ei=Symbol.for("yaml.node.type"),moe=e=>!!e&&typeof e=="object"&&e[ei]===xT,goe=e=>!!e&&typeof e=="object"&&e[ei]===GF,yoe=e=>!!e&&typeof e=="object"&&e[ei]===yg,_oe=e=>!!e&&typeof e=="object"&&e[ei]===JF,KF=e=>!!e&&typeof e=="object"&&e[ei]===ET,voe=e=>!!e&&typeof e=="object"&&e[ei]===_g;function QF(e){if(e&&typeof e=="object")switch(e[ei]){case yg:case _g:return!0}return!1}function boe(e){if(e&&typeof e=="object")switch(e[ei]){case xT:case yg:case ET:case _g:return!0}return!1}var koe=e=>(KF(e)||QF(e))&&!!e.anchor;Rt.ALIAS=xT;Rt.DOC=GF;Rt.MAP=yg;Rt.NODE_TYPE=ei;Rt.PAIR=JF;Rt.SCALAR=ET;Rt.SEQ=_g;Rt.hasAnchor=koe;Rt.isAlias=moe;Rt.isCollection=QF;Rt.isDocument=goe;Rt.isMap=yoe;Rt.isNode=boe;Rt.isPair=_oe;Rt.isScalar=KF;Rt.isSeq=voe});var cl=x(AT=>{"use strict";p();var yt=ke(),nr=Symbol("break visit"),YF=Symbol("skip children"),Pn=Symbol("remove node");function vg(e,t){let r=XF(t);yt.isDocument(e)?Lo(null,e.contents,r,Object.freeze([e]))===Pn&&(e.contents=null):Lo(null,e,r,Object.freeze([]))}vg.BREAK=nr;vg.SKIP=YF;vg.REMOVE=Pn;function Lo(e,t,r,n){let i=ZF(e,t,r,n);if(yt.isNode(i)||yt.isPair(i))return eB(e,n,i),Lo(e,i,r,n);if(typeof i!="symbol"){if(yt.isCollection(t)){n=Object.freeze(n.concat(t));for(let s=0;s<t.items.length;++s){let a=Lo(s,t.items[s],r,n);if(typeof a=="number")s=a-1;else{if(a===nr)return nr;a===Pn&&(t.items.splice(s,1),s-=1)}}}else if(yt.isPair(t)){n=Object.freeze(n.concat(t));let s=Lo("key",t.key,r,n);if(s===nr)return nr;s===Pn&&(t.key=null);let a=Lo("value",t.value,r,n);if(a===nr)return nr;a===Pn&&(t.value=null)}}return i}async function bg(e,t){let r=XF(t);yt.isDocument(e)?await Co(null,e.contents,r,Object.freeze([e]))===Pn&&(e.contents=null):await Co(null,e,r,Object.freeze([]))}bg.BREAK=nr;bg.SKIP=YF;bg.REMOVE=Pn;async function Co(e,t,r,n){let i=await ZF(e,t,r,n);if(yt.isNode(i)||yt.isPair(i))return eB(e,n,i),Co(e,i,r,n);if(typeof i!="symbol"){if(yt.isCollection(t)){n=Object.freeze(n.concat(t));for(let s=0;s<t.items.length;++s){let a=await Co(s,t.items[s],r,n);if(typeof a=="number")s=a-1;else{if(a===nr)return nr;a===Pn&&(t.items.splice(s,1),s-=1)}}}else if(yt.isPair(t)){n=Object.freeze(n.concat(t));let s=await Co("key",t.key,r,n);if(s===nr)return nr;s===Pn&&(t.key=null);let a=await Co("value",t.value,r,n);if(a===nr)return nr;a===Pn&&(t.value=null)}}return i}function XF(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function ZF(e,t,r,n){if(typeof r=="function")return r(e,t,n);if(yt.isMap(t))return r.Map?.(e,t,n);if(yt.isSeq(t))return r.Seq?.(e,t,n);if(yt.isPair(t))return r.Pair?.(e,t,n);if(yt.isScalar(t))return r.Scalar?.(e,t,n);if(yt.isAlias(t))return r.Alias?.(e,t,n)}function eB(e,t,r){let n=t[t.length-1];if(yt.isCollection(n))n.items[e]=r;else if(yt.isPair(n))e==="key"?n.key=r:n.value=r;else if(yt.isDocument(n))n.contents=r;else{let i=yt.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}AT.visit=vg;AT.visitAsync=bg});var OT=x(rB=>{"use strict";p();var tB=ke(),Soe=cl(),Toe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},woe=e=>e.replace(/[!,[\]{}]/g,t=>Toe[t]),ul=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let n=t.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[s,a]=n;return this.tags[s]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{let a=/^\d+\.\d+$/.test(s);return r(6,`Unsupported YAML version ${s}`,a),!1}}default:return r(0,`Unknown directive ${i}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),a)}let[,n,i]=t.match(/^(.*!)([^!]*)$/s);i||r(`The ${t} tag has no suffix`);let s=this.tags[n];if(s)try{return s+decodeURIComponent(i)}catch(a){return r(String(a)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+woe(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(t&&n.length>0&&tB.isNode(t.contents)){let s={};Soe.visit(t.contents,(a,o)=>{tB.isNode(o)&&o.tag&&(s[o.tag]=!0)}),i=Object.keys(s)}else i=[];for(let[s,a]of n)s==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(a)))&&r.push(`%TAG ${s} ${a}`);return r.join(`
114
+ `)}};ul.defaultYaml={explicit:!1,version:"1.2"};ul.defaultTags={"!!":"tag:yaml.org,2002:"};rB.Directives=ul});var kg=x(ll=>{"use strict";p();var nB=ke(),xoe=cl();function Eoe(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function iB(e){let t=new Set;return xoe.visit(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function sB(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function Aoe(e,t){let r=[],n=new Map,i=null;return{onAnchor:s=>{r.push(s),i??(i=iB(e));let a=sB(t,i);return i.add(a),a},setAnchors:()=>{for(let s of r){let a=n.get(s);if(typeof a=="object"&&a.anchor&&(nB.isScalar(a.node)||nB.isCollection(a.node)))a.node.anchor=a.anchor;else{let o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=s,o}}},sourceObjects:n}}ll.anchorIsValid=Eoe;ll.anchorNames=iB;ll.createNodeAnchors=Aoe;ll.findNewAnchor=sB});var NT=x(aB=>{"use strict";p();function fl(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,s=n.length;i<s;++i){let a=n[i],o=fl(e,n,String(i),a);o===void 0?delete n[i]:o!==a&&(n[i]=o)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let s=n.get(i),a=fl(e,n,i,s);a===void 0?n.delete(i):a!==s&&n.set(i,a)}else if(n instanceof Set)for(let i of Array.from(n)){let s=fl(e,n,i,i);s===void 0?n.delete(i):s!==i&&(n.delete(i),n.add(s))}else for(let[i,s]of Object.entries(n)){let a=fl(e,n,i,s);a===void 0?delete n[i]:a!==s&&(n[i]=a)}return e.call(t,r,n)}aB.applyReviver=fl});var Ri=x(cB=>{"use strict";p();var Ooe=ke();function oB(e,t,r){if(Array.isArray(e))return e.map((n,i)=>oB(n,String(i),r));if(e&&typeof e.toJSON=="function"){if(!r||!Ooe.hasAnchor(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=s=>{n.res=s,delete r.onCreate};let i=e.toJSON(t,r);return r.onCreate&&r.onCreate(i),i}return typeof e=="bigint"&&!r?.keep?Number(e):e}cB.toJS=oB});var Sg=x(lB=>{"use strict";p();var Noe=NT(),uB=ke(),Poe=Ri(),PT=class{constructor(t){Object.defineProperty(this,uB.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:i,reviver:s}={}){if(!uB.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},o=Poe.toJS(this,"",a);if(typeof i=="function")for(let{count:c,res:l}of a.anchors.values())i(l,c);return typeof s=="function"?Noe.applyReviver(s,{"":o},"",o):o}};lB.NodeBase=PT});var dl=x(fB=>{"use strict";p();var qoe=kg(),Loe=cl(),Io=ke(),Coe=Sg(),Ioe=Ri(),qT=class extends Coe.NodeBase{constructor(t){super(Io.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],Loe.visit(t,{Node:(s,a)=>{(Io.isAlias(a)||Io.hasAnchor(a))&&n.push(a)}}),r&&(r.aliasResolveCache=n));let i;for(let s of n){if(s===this)break;s.anchor===this.source&&(i=s)}return i}toJSON(t,r){if(!r)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:s}=r,a=this.resolve(i,r);if(!a){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let o=n.get(a);if(o||(Ioe.toJS(a,null,r),o=n.get(a)),o?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Tg(i,a,n)),o.count*o.aliasCount>s)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return o.res}toString(t,r,n){let i=`*${this.source}`;if(t){if(qoe.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}};function Tg(e,t,r){if(Io.isAlias(t)){let n=t.resolve(e),i=r&&n&&r.get(n);return i?i.count*i.aliasCount:0}else if(Io.isCollection(t)){let n=0;for(let i of t.items){let s=Tg(e,i,r);s>n&&(n=s)}return n}else if(Io.isPair(t)){let n=Tg(e,t.key,r),i=Tg(e,t.value,r);return Math.max(n,i)}return 1}fB.Alias=qT});var pt=x(LT=>{"use strict";p();var Moe=ke(),Roe=Sg(),Doe=Ri(),joe=e=>!e||typeof e!="function"&&typeof e!="object",Di=class extends Roe.NodeBase{constructor(t){super(Moe.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:Doe.toJS(this.value,t,r)}toString(){return String(this.value)}};Di.BLOCK_FOLDED="BLOCK_FOLDED";Di.BLOCK_LITERAL="BLOCK_LITERAL";Di.PLAIN="PLAIN";Di.QUOTE_DOUBLE="QUOTE_DOUBLE";Di.QUOTE_SINGLE="QUOTE_SINGLE";LT.Scalar=Di;LT.isScalarValue=joe});var pl=x(pB=>{"use strict";p();var Foe=dl(),Ys=ke(),dB=pt(),Boe="tag:yaml.org,2002:";function Voe(e,t,r){if(t){let n=r.filter(s=>s.tag===t),i=n.find(s=>!s.format)??n[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return r.find(n=>n.identify?.(e)&&!n.format)}function $oe(e,t,r){if(Ys.isDocument(e)&&(e=e.contents),Ys.isNode(e))return e;if(Ys.isPair(e)){let m=r.schema[Ys.MAP].createNode?.(r.schema,null,r);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:s,schema:a,sourceObjects:o}=r,c;if(n&&e&&typeof e=="object"){if(c=o.get(e),c)return c.anchor??(c.anchor=i(e)),new Foe.Alias(c.anchor);c={anchor:null,node:null},o.set(e,c)}t?.startsWith("!!")&&(t=Boe+t.slice(2));let l=Voe(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let m=new dB.Scalar(e);return c&&(c.node=m),m}l=e instanceof Map?a[Ys.MAP]:Symbol.iterator in Object(e)?a[Ys.SEQ]:a[Ys.MAP]}s&&(s(l),delete r.onTagObj);let f=l?.createNode?l.createNode(r.schema,e,r):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(r.schema,e,r):new dB.Scalar(e);return t?f.tag=t:l.default||(f.tag=l.tag),c&&(c.node=f),f}pB.createNode=$oe});var xg=x(wg=>{"use strict";p();var Uoe=pl(),qn=ke(),Hoe=Sg();function CT(e,t,r){let n=r;for(let i=t.length-1;i>=0;--i){let s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){let a=[];a[s]=n,n=a}else n=new Map([[s,n]])}return Uoe.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var hB=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,IT=class extends Hoe.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>qn.isNode(n)||qn.isPair(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(hB(t))this.add(r);else{let[n,...i]=t,s=this.get(n,!0);if(qn.isCollection(s))s.addIn(i,r);else if(s===void 0&&this.schema)this.set(n,CT(this.schema,i,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(t){let[r,...n]=t;if(n.length===0)return this.delete(r);let i=this.get(r,!0);if(qn.isCollection(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){let[n,...i]=t,s=this.get(n,!0);return i.length===0?!r&&qn.isScalar(s)?s.value:s:qn.isCollection(s)?s.getIn(i,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!qn.isPair(r))return!1;let n=r.value;return n==null||t&&qn.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){let[r,...n]=t;if(n.length===0)return this.has(r);let i=this.get(r,!0);return qn.isCollection(i)?i.hasIn(n):!1}setIn(t,r){let[n,...i]=t;if(i.length===0)this.set(n,r);else{let s=this.get(n,!0);if(qn.isCollection(s))s.setIn(i,r);else if(s===void 0&&this.schema)this.set(n,CT(this.schema,i,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};wg.Collection=IT;wg.collectionFromPath=CT;wg.isEmptyPath=hB});var hl=x(Eg=>{"use strict";p();var Woe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function MT(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var zoe=(e,t,r)=>e.endsWith(`
115
+ `)?MT(r,t):r.includes(`
116
+ `)?`
117
+ `+MT(r,t):(e.endsWith(" ")?"":" ")+r;Eg.indentComment=MT;Eg.lineComment=zoe;Eg.stringifyComment=Woe});var gB=x(ml=>{"use strict";p();var Goe="flow",RT="block",Ag="quoted";function Joe(e,t,r="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:o}={}){if(!i||i<0)return e;i<s&&(s=0);let c=Math.max(1+s,1+i-t.length);if(e.length<=c)return e;let l=[],f={},m=i-t.length;typeof n=="number"&&(n>i-Math.max(2,s)?l.push(0):m=i-n);let d,g,_=!1,k=-1,b=-1,v=-1;r===RT&&(k=mB(e,k,t.length),k!==-1&&(m=k+c));for(let T;T=e[k+=1];){if(r===Ag&&T==="\\"){switch(b=k,e[k+1]){case"x":k+=3;break;case"u":k+=5;break;case"U":k+=9;break;default:k+=1}v=k}if(T===`
118
+ `)r===RT&&(k=mB(e,k,t.length)),m=k+t.length+c,d=void 0;else{if(T===" "&&g&&g!==" "&&g!==`
119
+ `&&g!==" "){let y=e[k+1];y&&y!==" "&&y!==`
120
+ `&&y!==" "&&(d=k)}if(k>=m)if(d)l.push(d),m=d+c,d=void 0;else if(r===Ag){for(;g===" "||g===" ";)g=T,T=e[k+=1],_=!0;let y=k>v+1?k-2:b-1;if(f[y])return e;l.push(y),f[y]=!0,m=y+c,d=void 0}else _=!0}g=T}if(_&&o&&o(),l.length===0)return e;a&&a();let w=e.slice(0,l[0]);for(let T=0;T<l.length;++T){let y=l[T],A=l[T+1]||e.length;y===0?w=`
121
+ ${t}${e.slice(0,A)}`:(r===Ag&&f[y]&&(w+=`${e[y]}\\`),w+=`
122
+ ${t}${e.slice(y+1,A)}`)}return w}function mB(e,t,r){let n=t,i=t+1,s=e[i];for(;s===" "||s===" ";)if(t<i+r)s=e[++t];else{do s=e[++t];while(s&&s!==`
123
+ `);n=t,i=t+1,s=e[i]}return n}ml.FOLD_BLOCK=RT;ml.FOLD_FLOW=Goe;ml.FOLD_QUOTED=Ag;ml.foldFlowLines=Joe});var yl=x(yB=>{"use strict";p();var on=pt(),ji=gB(),Ng=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Pg=e=>/^(%|---|\.\.\.)/m.test(e);function Koe(e,t,r){if(!t||t<0)return!1;let n=t-r,i=e.length;if(i<=n)return!1;for(let s=0,a=0;s<i;++s)if(e[s]===`
124
+ `){if(s-a>n)return!0;if(a=s+1,i-a<=n)return!1}return!0}function gl(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Pg(e)?" ":""),a="",o=0;for(let c=0,l=r[c];l;l=r[++c])if(l===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(a+=r.slice(o,c)+"\\ ",c+=1,o=c,l="\\"),l==="\\")switch(r[c+1]){case"u":{a+=r.slice(o,c);let f=r.substr(c+2,4);switch(f){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:f.substr(0,2)==="00"?a+="\\x"+f.substr(2):a+=r.substr(c,6)}c+=5,o=c+1}break;case"n":if(n||r[c+2]==='"'||r.length<i)c+=1;else{for(a+=r.slice(o,c)+`
125
+
126
+ `;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)a+=`
127
+ `,c+=2;a+=s,r[c+2]===" "&&(a+="\\"),c+=1,o=c+1}break;default:c+=1}return a=o?a+r.slice(o):r,n?a:ji.foldFlowLines(a,s,ji.FOLD_QUOTED,Ng(t,!1))}function DT(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
128
+ `)||/[ \t]\n|\n[ \t]/.test(e))return gl(e,t);let r=t.indent||(Pg(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
129
+ ${r}`)+"'";return t.implicitKey?n:ji.foldFlowLines(n,r,ji.FOLD_FLOW,Ng(t,!1))}function Mo(e,t){let{singleQuote:r}=t.options,n;if(r===!1)n=gl;else{let i=e.includes('"'),s=e.includes("'");i&&!s?n=DT:s&&!i?n=gl:n=r?DT:gl}return n(e,t)}var jT;try{jT=new RegExp(`(^|(?<!
130
+ ))
131
+ +(?!
132
+ |$)`,"g")}catch{jT=/\n+(?!\n|$)/g}function Og({comment:e,type:t,value:r},n,i,s){let{blockQuote:a,commentString:o,lineWidth:c}=n.options;if(!a||/\n[\t ]+$/.test(r))return Mo(r,n);let l=n.indent||(n.forceBlockIndent||Pg(r)?" ":""),f=a==="literal"?!0:a==="folded"||t===on.Scalar.BLOCK_FOLDED?!1:t===on.Scalar.BLOCK_LITERAL?!0:!Koe(r,c,l.length);if(!r)return f?`|
133
+ `:`>
134
+ `;let m,d;for(d=r.length;d>0;--d){let A=r[d-1];if(A!==`
135
+ `&&A!==" "&&A!==" ")break}let g=r.substring(d),_=g.indexOf(`
136
+ `);_===-1?m="-":r===g||_!==g.length-1?(m="+",s&&s()):m="",g&&(r=r.slice(0,-g.length),g[g.length-1]===`
137
+ `&&(g=g.slice(0,-1)),g=g.replace(jT,`$&${l}`));let k=!1,b,v=-1;for(b=0;b<r.length;++b){let A=r[b];if(A===" ")k=!0;else if(A===`
138
+ `)v=b;else break}let w=r.substring(0,v<b?v+1:b);w&&(r=r.substring(w.length),w=w.replace(/\n+/g,`$&${l}`));let y=(k?l?"2":"1":"")+m;if(e&&(y+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!f){let A=r.replace(/\n+/g,`
139
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),O=!1,N=Ng(n,!0);a!=="folded"&&t!==on.Scalar.BLOCK_FOLDED&&(N.onOverflow=()=>{O=!0});let q=ji.foldFlowLines(`${w}${A}${g}`,l,ji.FOLD_BLOCK,N);if(!O)return`>${y}
140
+ ${l}${q}`}return r=r.replace(/\n+/g,`$&${l}`),`|${y}
141
+ ${l}${w}${r}${g}`}function Qoe(e,t,r,n){let{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:c,indentStep:l,inFlow:f}=t;if(o&&s.includes(`
142
+ `)||f&&/[[\]{},]/.test(s))return Mo(s,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||f||!s.includes(`
143
+ `)?Mo(s,t):Og(e,t,r,n);if(!o&&!f&&i!==on.Scalar.PLAIN&&s.includes(`
144
+ `))return Og(e,t,r,n);if(Pg(s)){if(c==="")return t.forceBlockIndent=!0,Og(e,t,r,n);if(o&&c===l)return Mo(s,t)}let m=s.replace(/\n+/g,`$&
145
+ ${c}`);if(a){let d=k=>k.default&&k.tag!=="tag:yaml.org,2002:str"&&k.test?.test(m),{compat:g,tags:_}=t.doc.schema;if(_.some(d)||g?.some(d))return Mo(s,t)}return o?m:ji.foldFlowLines(m,c,ji.FOLD_FLOW,Ng(t,!1))}function Yoe(e,t,r,n){let{implicitKey:i,inFlow:s}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:o}=e;o!==on.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=on.Scalar.QUOTE_DOUBLE);let c=f=>{switch(f){case on.Scalar.BLOCK_FOLDED:case on.Scalar.BLOCK_LITERAL:return i||s?Mo(a.value,t):Og(a,t,r,n);case on.Scalar.QUOTE_DOUBLE:return gl(a.value,t);case on.Scalar.QUOTE_SINGLE:return DT(a.value,t);case on.Scalar.PLAIN:return Qoe(a,t,r,n);default:return null}},l=c(o);if(l===null){let{defaultKeyType:f,defaultStringType:m}=t.options,d=i&&f||m;if(l=c(d),l===null)throw new Error(`Unsupported default string type ${d}`)}return l}yB.stringifyString=Yoe});var _l=x(FT=>{"use strict";p();var Xoe=kg(),Fi=ke(),Zoe=hl(),ece=yl();function tce(e,t){let r=Object.assign({blockQuote:!0,commentString:Zoe.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function rce(e,t){if(t.tag){let i=e.filter(s=>s.tag===t.tag);if(i.length>0)return i.find(s=>s.format===t.format)??i[0]}let r,n;if(Fi.isScalar(t)){n=t.value;let i=e.filter(s=>s.identify?.(n));if(i.length>1){let s=i.filter(a=>a.test);s.length>0&&(i=s)}r=i.find(s=>s.format===t.format)??i.find(s=>!s.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){let i=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return r}function nce(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let i=[],s=(Fi.isScalar(e)||Fi.isCollection(e))&&e.anchor;s&&Xoe.anchorIsValid(s)&&(r.add(s),i.push(`&${s}`));let a=e.tag??(t.default?null:t.tag);return a&&i.push(n.directives.tagString(a)),i.join(" ")}function ice(e,t,r,n){if(Fi.isPair(e))return e.toString(t,r,n);if(Fi.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,s=Fi.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>i=c});i??(i=rce(t.doc.schema.tags,s));let a=nce(s,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let o=typeof i.stringify=="function"?i.stringify(s,t,r,n):Fi.isScalar(s)?ece.stringifyString(s,t,r,n):s.toString(t,r,n);return a?Fi.isScalar(s)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
146
+ ${t.indent}${o}`:o}FT.createStringifyContext=tce;FT.stringify=ice});var kB=x(bB=>{"use strict";p();var ti=ke(),_B=pt(),vB=_l(),vl=hl();function sce({key:e,value:t},r,n,i){let{allNullValues:s,doc:a,indent:o,indentStep:c,options:{commentString:l,indentSeq:f,simpleKeys:m}}=r,d=ti.isNode(e)&&e.comment||null;if(m){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(ti.isCollection(e)||!ti.isNode(e)&&typeof e=="object"){let N="With simple keys, collection cannot be used as a key value";throw new Error(N)}}let g=!m&&(!e||d&&t==null&&!r.inFlow||ti.isCollection(e)||(ti.isScalar(e)?e.type===_B.Scalar.BLOCK_FOLDED||e.type===_B.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!g&&(m||!s),indent:o+c});let _=!1,k=!1,b=vB.stringify(e,r,()=>_=!0,()=>k=!0);if(!g&&!r.inFlow&&b.length>1024){if(m)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(r.inFlow){if(s||t==null)return _&&n&&n(),b===""?"?":g?`? ${b}`:b}else if(s&&!m||t==null&&g)return b=`? ${b}`,d&&!_?b+=vl.lineComment(b,r.indent,l(d)):k&&i&&i(),b;_&&(d=null),g?(d&&(b+=vl.lineComment(b,r.indent,l(d))),b=`? ${b}
147
+ ${o}:`):(b=`${b}:`,d&&(b+=vl.lineComment(b,r.indent,l(d))));let v,w,T;ti.isNode(t)?(v=!!t.spaceBefore,w=t.commentBefore,T=t.comment):(v=!1,w=null,T=null,t&&typeof t=="object"&&(t=a.createNode(t))),r.implicitKey=!1,!g&&!d&&ti.isScalar(t)&&(r.indentAtStart=b.length+1),k=!1,!f&&c.length>=2&&!r.inFlow&&!g&&ti.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let y=!1,A=vB.stringify(t,r,()=>y=!0,()=>k=!0),O=" ";if(d||v||w){if(O=v?`
148
+ `:"",w){let N=l(w);O+=`
149
+ ${vl.indentComment(N,r.indent)}`}A===""&&!r.inFlow?O===`
150
+ `&&T&&(O=`
151
+
152
+ `):O+=`
153
+ ${r.indent}`}else if(!g&&ti.isCollection(t)){let N=A[0],q=A.indexOf(`
154
+ `),B=q!==-1,M=r.inFlow??t.flow??t.items.length===0;if(B||!M){let L=!1;if(B&&(N==="&"||N==="!")){let C=A.indexOf(" ");N==="&"&&C!==-1&&C<q&&A[C+1]==="!"&&(C=A.indexOf(" ",C+1)),(C===-1||q<C)&&(L=!0)}L||(O=`
155
+ ${r.indent}`)}}else(A===""||A[0]===`
156
+ `)&&(O="");return b+=O+A,r.inFlow?y&&n&&n():T&&!y?b+=vl.lineComment(b,r.indent,l(T)):k&&i&&i(),b}bB.stringifyPair=sce});var VT=x(BT=>{"use strict";p();var SB=ce("process");function ace(e,...t){e==="debug"&&console.log(...t)}function oce(e,t){(e==="debug"||e==="warn")&&(typeof SB.emitWarning=="function"?SB.emitWarning(t):console.warn(t))}BT.debug=ace;BT.warn=oce});var Mg=x(Ig=>{"use strict";p();var Cg=ke(),TB=pt(),qg="<<",Lg={identify:e=>e===qg||typeof e=="symbol"&&e.description===qg,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new TB.Scalar(Symbol(qg)),{addToJSMap:wB}),stringify:()=>qg},cce=(e,t)=>(Lg.identify(t)||Cg.isScalar(t)&&(!t.type||t.type===TB.Scalar.PLAIN)&&Lg.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===Lg.tag&&r.default);function wB(e,t,r){let n=xB(e,r);if(Cg.isSeq(n))for(let i of n.items)$T(e,t,i);else if(Array.isArray(n))for(let i of n)$T(e,t,i);else $T(e,t,n)}function $T(e,t,r){let n=xB(e,r);if(!Cg.isMap(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,e,Map);for(let[s,a]of i)t instanceof Map?t.has(s)||t.set(s,a):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function xB(e,t){return e&&Cg.isAlias(t)?t.resolve(e.doc,e):t}Ig.addMergeToJSMap=wB;Ig.isMergeKey=cce;Ig.merge=Lg});var HT=x(OB=>{"use strict";p();var uce=VT(),EB=Mg(),lce=_l(),AB=ke(),UT=Ri();function fce(e,t,{key:r,value:n}){if(AB.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if(EB.isMergeKey(e,r))EB.addMergeToJSMap(e,t,n);else{let i=UT.toJS(r,"",e);if(t instanceof Map)t.set(i,UT.toJS(n,i,e));else if(t instanceof Set)t.add(i);else{let s=dce(r,i,e),a=UT.toJS(n,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}function dce(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(AB.isNode(e)&&r?.doc){let n=lce.createStringifyContext(r.doc,{});n.anchors=new Set;for(let s of r.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!r.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),uce.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return i}return JSON.stringify(t)}OB.addPairToJSMap=fce});var Bi=x(WT=>{"use strict";p();var NB=pl(),pce=kB(),hce=HT(),Rg=ke();function mce(e,t,r){let n=NB.createNode(e,void 0,r),i=NB.createNode(t,void 0,r);return new Dg(n,i)}var Dg=class e{constructor(t,r=null){Object.defineProperty(this,Rg.NODE_TYPE,{value:Rg.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return Rg.isNode(r)&&(r=r.clone(t)),Rg.isNode(n)&&(n=n.clone(t)),new e(r,n)}toJSON(t,r){let n=r?.mapAsMap?new Map:{};return hce.addPairToJSMap(r,n,this)}toString(t,r,n){return t?.doc?pce.stringifyPair(this,t,r,n):JSON.stringify(this)}};WT.Pair=Dg;WT.createPair=mce});var zT=x(qB=>{"use strict";p();var Xs=ke(),PB=_l(),jg=hl();function gce(e,t,r){return(t.inFlow??e.flow?_ce:yce)(e,t,r)}function yce({comment:e,items:t},r,{blockItemPrefix:n,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){let{indent:c,options:{commentString:l}}=r,f=Object.assign({},r,{indent:s,type:null}),m=!1,d=[];for(let _=0;_<t.length;++_){let k=t[_],b=null;if(Xs.isNode(k))!m&&k.spaceBefore&&d.push(""),Fg(r,d,k.commentBefore,m),k.comment&&(b=k.comment);else if(Xs.isPair(k)){let w=Xs.isNode(k.key)?k.key:null;w&&(!m&&w.spaceBefore&&d.push(""),Fg(r,d,w.commentBefore,m))}m=!1;let v=PB.stringify(k,f,()=>b=null,()=>m=!0);b&&(v+=jg.lineComment(v,s,l(b))),m&&b&&(m=!1),d.push(n+v)}let g;if(d.length===0)g=i.start+i.end;else{g=d[0];for(let _=1;_<d.length;++_){let k=d[_];g+=k?`
157
+ ${c}${k}`:`
158
+ `}}return e?(g+=`
159
+ `+jg.indentComment(l(e),c),o&&o()):m&&a&&a(),g}function _ce({items:e},t,{flowChars:r,itemIndent:n}){let{indent:i,indentStep:s,flowCollectionPadding:a,options:{commentString:o}}=t;n+=s;let c=Object.assign({},t,{indent:n,inFlow:!0,type:null}),l=!1,f=0,m=[];for(let _=0;_<e.length;++_){let k=e[_],b=null;if(Xs.isNode(k))k.spaceBefore&&m.push(""),Fg(t,m,k.commentBefore,!1),k.comment&&(b=k.comment);else if(Xs.isPair(k)){let w=Xs.isNode(k.key)?k.key:null;w&&(w.spaceBefore&&m.push(""),Fg(t,m,w.commentBefore,!1),w.comment&&(l=!0));let T=Xs.isNode(k.value)?k.value:null;T?(T.comment&&(b=T.comment),T.commentBefore&&(l=!0)):k.value==null&&w?.comment&&(b=w.comment)}b&&(l=!0);let v=PB.stringify(k,c,()=>b=null);l||(l=m.length>f||v.includes(`
160
+ `)),_<e.length-1?v+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(l||(l=m.reduce((w,T)=>w+T.length+2,2)+(v.length+2)>t.options.lineWidth)),l&&(v+=",")),b&&(v+=jg.lineComment(v,n,o(b))),m.push(v),f=m.length}let{start:d,end:g}=r;if(m.length===0)return d+g;if(!l){let _=m.reduce((k,b)=>k+b.length+2,2);l=t.options.lineWidth>0&&_>t.options.lineWidth}if(l){let _=d;for(let k of m)_+=k?`
161
+ ${s}${i}${k}`:`
162
+ `;return`${_}
163
+ ${i}${g}`}else return`${d}${a}${m.join(" ")}${a}${g}`}function Fg({indent:e,options:{commentString:t}},r,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let s=jg.indentComment(t(n),e);r.push(s.trimStart())}}qB.stringifyCollection=gce});var $i=x(JT=>{"use strict";p();var vce=zT(),bce=HT(),kce=xg(),Vi=ke(),Bg=Bi(),Sce=pt();function bl(e,t){let r=Vi.isScalar(t)?t.value:t;for(let n of e)if(Vi.isPair(n)&&(n.key===t||n.key===r||Vi.isScalar(n.key)&&n.key.value===r))return n}var GT=class extends kce.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Vi.MAP,t),this.items=[]}static from(t,r,n){let{keepUndefined:i,replacer:s}=n,a=new this(t),o=(c,l)=>{if(typeof s=="function")l=s.call(r,c,l);else if(Array.isArray(s)&&!s.includes(c))return;(l!==void 0||i)&&a.items.push(Bg.createPair(c,l,n))};if(r instanceof Map)for(let[c,l]of r)o(c,l);else if(r&&typeof r=="object")for(let c of Object.keys(r))o(c,r[c]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,r){let n;Vi.isPair(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new Bg.Pair(t,t?.value):n=new Bg.Pair(t.key,t.value);let i=bl(this.items,n.key),s=this.schema?.sortMapEntries;if(i){if(!r)throw new Error(`Key ${n.key} already set`);Vi.isScalar(i.value)&&Sce.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(s){let a=this.items.findIndex(o=>s(n,o)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){let r=bl(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let i=bl(this.items,t)?.value;return(!r&&Vi.isScalar(i)?i.value:i)??void 0}has(t){return!!bl(this.items,t)}set(t,r){this.add(new Bg.Pair(t,r),!0)}toJSON(t,r,n){let i=n?new n:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(i);for(let s of this.items)bce.addPairToJSMap(r,i,s);return i}toString(t,r,n){if(!t)return JSON.stringify(this);for(let i of this.items)if(!Vi.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),vce.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}};JT.YAMLMap=GT;JT.findPair=bl});var Ro=x(CB=>{"use strict";p();var Tce=ke(),LB=$i(),wce={collection:"map",default:!0,nodeClass:LB.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return Tce.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>LB.YAMLMap.from(e,t,r)};CB.map=wce});var Ui=x(IB=>{"use strict";p();var xce=pl(),Ece=zT(),Ace=xg(),$g=ke(),Oce=pt(),Nce=Ri(),KT=class extends Ace.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super($g.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=Vg(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let n=Vg(t);if(typeof n!="number")return;let i=this.items[n];return!r&&$g.isScalar(i)?i.value:i}has(t){let r=Vg(t);return typeof r=="number"&&r<this.items.length}set(t,r){let n=Vg(t);if(typeof n!="number")throw new Error(`Expected a valid index, not ${t}.`);let i=this.items[n];$g.isScalar(i)&&Oce.isScalarValue(r)?i.value=r:this.items[n]=r}toJSON(t,r){let n=[];r?.onCreate&&r.onCreate(n);let i=0;for(let s of this.items)n.push(Nce.toJS(s,String(i++),r));return n}toString(t,r,n){return t?Ece.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:n,onComment:r}):JSON.stringify(this)}static from(t,r,n){let{replacer:i}=n,s=new this(t);if(r&&Symbol.iterator in Object(r)){let a=0;for(let o of r){if(typeof i=="function"){let c=r instanceof Set?o:String(a++);o=i.call(r,c,o)}s.items.push(xce.createNode(o,void 0,n))}}return s}};function Vg(e){let t=$g.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}IB.YAMLSeq=KT});var Do=x(RB=>{"use strict";p();var Pce=ke(),MB=Ui(),qce={collection:"seq",default:!0,nodeClass:MB.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Pce.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>MB.YAMLSeq.from(e,t,r)};RB.seq=qce});var kl=x(DB=>{"use strict";p();var Lce=yl(),Cce={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),Lce.stringifyString(e,t,r,n)}};DB.string=Cce});var Ug=x(BB=>{"use strict";p();var jB=pt(),FB={identify:e=>e==null,createNode:()=>new jB.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new jB.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&FB.test.test(e)?e:t.options.nullStr};BB.nullTag=FB});var QT=x($B=>{"use strict";p();var Ice=pt(),VB={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ice.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&VB.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};$B.boolTag=VB});var jo=x(UB=>{"use strict";p();function Mce({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);let i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(s)&&!s.includes("e")){let a=s.indexOf(".");a<0&&(a=s.length,s+=".");let o=t-(s.length-a-1);for(;o-- >0;)s+="0"}return s}UB.stringifyNumber=Mce});var XT=x(Hg=>{"use strict";p();var Rce=pt(),YT=jo(),Dce={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:YT.stringifyNumber},jce={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():YT.stringifyNumber(e)}},Fce={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Rce.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:YT.stringifyNumber};Hg.float=Fce;Hg.floatExp=jce;Hg.floatNaN=Dce});var e1=x(zg=>{"use strict";p();var HB=jo(),Wg=e=>typeof e=="bigint"||Number.isInteger(e),ZT=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function WB(e,t,r){let{value:n}=e;return Wg(n)&&n>=0?r+n.toString(t):HB.stringifyNumber(e)}var Bce={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>ZT(e,2,8,r),stringify:e=>WB(e,8,"0o")},Vce={identify:Wg,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>ZT(e,0,10,r),stringify:HB.stringifyNumber},$ce={identify:e=>Wg(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>ZT(e,2,16,r),stringify:e=>WB(e,16,"0x")};zg.int=Vce;zg.intHex=$ce;zg.intOct=Bce});var GB=x(zB=>{"use strict";p();var Uce=Ro(),Hce=Ug(),Wce=Do(),zce=kl(),Gce=QT(),t1=XT(),r1=e1(),Jce=[Uce.map,Wce.seq,zce.string,Hce.nullTag,Gce.boolTag,r1.intOct,r1.int,r1.intHex,t1.floatNaN,t1.floatExp,t1.float];zB.schema=Jce});var QB=x(KB=>{"use strict";p();var Kce=pt(),Qce=Ro(),Yce=Do();function JB(e){return typeof e=="bigint"||Number.isInteger(e)}var Gg=({value:e})=>JSON.stringify(e),Xce=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Gg},{identify:e=>e==null,createNode:()=>new Kce.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Gg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Gg},{identify:JB,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>JB(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Gg}],Zce={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},eue=[Qce.map,Yce.seq].concat(Xce,Zce);KB.schema=eue});var i1=x(YB=>{"use strict";p();var Sl=ce("buffer"),n1=pt(),tue=yl(),rue={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Sl.Buffer=="function")return Sl.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},n,i,s){if(!r)return"";let a=r,o;if(typeof Sl.Buffer=="function")o=a instanceof Sl.Buffer?a.toString("base64"):Sl.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<a.length;++l)c+=String.fromCharCode(a[l]);o=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=n1.Scalar.BLOCK_LITERAL),t!==n1.Scalar.QUOTE_DOUBLE){let c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),l=Math.ceil(o.length/c),f=new Array(l);for(let m=0,d=0;m<l;++m,d+=c)f[m]=o.substr(d,c);o=f.join(t===n1.Scalar.BLOCK_LITERAL?`
164
+ `:" ")}return tue.stringifyString({comment:e,type:t,value:o},n,i,s)}};YB.binary=rue});var Qg=x(Kg=>{"use strict";p();var Jg=ke(),s1=Bi(),nue=pt(),iue=Ui();function XB(e,t){if(Jg.isSeq(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!Jg.isPair(n)){if(Jg.isMap(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let i=n.items[0]||new s1.Pair(new nue.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
165
+ ${i.key.commentBefore}`:n.commentBefore),n.comment){let s=i.value??i.key;s.comment=s.comment?`${n.comment}
166
+ ${s.comment}`:n.comment}n=i}e.items[r]=Jg.isPair(n)?n:new s1.Pair(n)}}else t("Expected a sequence for this tag");return e}function ZB(e,t,r){let{replacer:n}=r,i=new iue.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof n=="function"&&(a=n.call(t,String(s++),a));let o,c;if(Array.isArray(a))if(a.length===2)o=a[0],c=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let l=Object.keys(a);if(l.length===1)o=l[0],c=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;i.items.push(s1.createPair(o,c,r))}return i}var sue={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:XB,createNode:ZB};Kg.createPairs=ZB;Kg.pairs=sue;Kg.resolvePairs=XB});var c1=x(o1=>{"use strict";p();var eV=ke(),a1=Ri(),Tl=$i(),aue=Ui(),tV=Qg(),Zs=class e extends aue.YAMLSeq{constructor(){super(),this.add=Tl.YAMLMap.prototype.add.bind(this),this.delete=Tl.YAMLMap.prototype.delete.bind(this),this.get=Tl.YAMLMap.prototype.get.bind(this),this.has=Tl.YAMLMap.prototype.has.bind(this),this.set=Tl.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let n=new Map;r?.onCreate&&r.onCreate(n);for(let i of this.items){let s,a;if(eV.isPair(i)?(s=a1.toJS(i.key,"",r),a=a1.toJS(i.value,s,r)):s=a1.toJS(i,"",r),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,a)}return n}static from(t,r,n){let i=tV.createPairs(t,r,n),s=new this;return s.items=i.items,s}};Zs.tag="tag:yaml.org,2002:omap";var oue={collection:"seq",identify:e=>e instanceof Map,nodeClass:Zs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=tV.resolvePairs(e,t),n=[];for(let{key:i}of r.items)eV.isScalar(i)&&(n.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new Zs,r)},createNode:(e,t,r)=>Zs.from(e,t,r)};o1.YAMLOMap=Zs;o1.omap=oue});var aV=x(u1=>{"use strict";p();var rV=pt();function nV({value:e,source:t},r){return t&&(e?iV:sV).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var iV={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new rV.Scalar(!0),stringify:nV},sV={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new rV.Scalar(!1),stringify:nV};u1.falseTag=sV;u1.trueTag=iV});var oV=x(Yg=>{"use strict";p();var cue=pt(),l1=jo(),uue={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:l1.stringifyNumber},lue={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():l1.stringifyNumber(e)}},fue={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new cue.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:l1.stringifyNumber};Yg.float=fue;Yg.floatExp=lue;Yg.floatNaN=uue});var uV=x(xl=>{"use strict";p();var cV=jo(),wl=e=>typeof e=="bigint"||Number.isInteger(e);function Xg(e,t,r,{intAsBigInt:n}){let i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return i==="-"?BigInt(-1)*a:a}let s=parseInt(e,r);return i==="-"?-1*s:s}function f1(e,t,r){let{value:n}=e;if(wl(n)){let i=n.toString(t);return n<0?"-"+r+i.substr(1):r+i}return cV.stringifyNumber(e)}var due={identify:wl,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Xg(e,2,2,r),stringify:e=>f1(e,2,"0b")},pue={identify:wl,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Xg(e,1,8,r),stringify:e=>f1(e,8,"0")},hue={identify:wl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Xg(e,0,10,r),stringify:cV.stringifyNumber},mue={identify:wl,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Xg(e,2,16,r),stringify:e=>f1(e,16,"0x")};xl.int=hue;xl.intBin=due;xl.intHex=mue;xl.intOct=pue});var p1=x(d1=>{"use strict";p();var ty=ke(),Zg=Bi(),ey=$i(),ea=class e extends ey.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;ty.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Zg.Pair(t.key,null):r=new Zg.Pair(t,null),ey.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let n=ey.findPair(this.items,t);return!r&&ty.isPair(n)?ty.isScalar(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let n=ey.findPair(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Zg.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){let{replacer:i}=n,s=new this(t);if(r&&Symbol.iterator in Object(r))for(let a of r)typeof i=="function"&&(a=i.call(r,a,a)),s.items.push(Zg.createPair(a,null,n));return s}};ea.tag="tag:yaml.org,2002:set";var gue={collection:"map",identify:e=>e instanceof Set,nodeClass:ea,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>ea.from(e,t,r),resolve(e,t){if(ty.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new ea,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};d1.YAMLSet=ea;d1.set=gue});var m1=x(ry=>{"use strict";p();var yue=jo();function h1(e,t){let r=e[0],n=r==="-"||r==="+"?e.substring(1):e,i=a=>t?BigInt(a):Number(a),s=n.replace(/_/g,"").split(":").reduce((a,o)=>a*i(60)+i(o),i(0));return r==="-"?i(-1)*s:s}function lV(e){let{value:t}=e,r=a=>a;if(typeof t=="bigint")r=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return yue.stringifyNumber(e);let n="";t<0&&(n="-",t*=r(-1));let i=r(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),n+s.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var _ue={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>h1(e,r),stringify:lV},vue={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>h1(e,!1),stringify:lV},fV={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(fV.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,i,s,a,o]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,l=Date.UTC(r,n-1,i,s||0,a||0,o||0,c),f=t[8];if(f&&f!=="Z"){let m=h1(f,!1);Math.abs(m)<30&&(m*=60),l-=6e4*m}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};ry.floatTime=vue;ry.intTime=_ue;ry.timestamp=fV});var hV=x(pV=>{"use strict";p();var bue=Ro(),kue=Ug(),Sue=Do(),Tue=kl(),wue=i1(),dV=aV(),g1=oV(),ny=uV(),xue=Mg(),Eue=c1(),Aue=Qg(),Oue=p1(),y1=m1(),Nue=[bue.map,Sue.seq,Tue.string,kue.nullTag,dV.trueTag,dV.falseTag,ny.intBin,ny.intOct,ny.int,ny.intHex,g1.floatNaN,g1.floatExp,g1.float,wue.binary,xue.merge,Eue.omap,Aue.pairs,Oue.set,y1.intTime,y1.floatTime,y1.timestamp];pV.schema=Nue});var wV=x(b1=>{"use strict";p();var _V=Ro(),Pue=Ug(),vV=Do(),que=kl(),Lue=QT(),_1=XT(),v1=e1(),Cue=GB(),Iue=QB(),bV=i1(),El=Mg(),kV=c1(),SV=Qg(),mV=hV(),TV=p1(),iy=m1(),gV=new Map([["core",Cue.schema],["failsafe",[_V.map,vV.seq,que.string]],["json",Iue.schema],["yaml11",mV.schema],["yaml-1.1",mV.schema]]),yV={binary:bV.binary,bool:Lue.boolTag,float:_1.float,floatExp:_1.floatExp,floatNaN:_1.floatNaN,floatTime:iy.floatTime,int:v1.int,intHex:v1.intHex,intOct:v1.intOct,intTime:iy.intTime,map:_V.map,merge:El.merge,null:Pue.nullTag,omap:kV.omap,pairs:SV.pairs,seq:vV.seq,set:TV.set,timestamp:iy.timestamp},Mue={"tag:yaml.org,2002:binary":bV.binary,"tag:yaml.org,2002:merge":El.merge,"tag:yaml.org,2002:omap":kV.omap,"tag:yaml.org,2002:pairs":SV.pairs,"tag:yaml.org,2002:set":TV.set,"tag:yaml.org,2002:timestamp":iy.timestamp};function Rue(e,t,r){let n=gV.get(t);if(n&&!e)return r&&!n.includes(El.merge)?n.concat(El.merge):n.slice();let i=n;if(!i)if(Array.isArray(e))i=[];else{let s=Array.from(gV.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${s} or define customTags array`)}if(Array.isArray(e))for(let s of e)i=i.concat(s);else typeof e=="function"&&(i=e(i.slice()));return r&&(i=i.concat(El.merge)),i.reduce((s,a)=>{let o=typeof a=="string"?yV[a]:a;if(!o){let c=JSON.stringify(a),l=Object.keys(yV).map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return s.includes(o)||s.push(o),s},[])}b1.coreKnownTags=Mue;b1.getTags=Rue});var T1=x(xV=>{"use strict";p();var k1=ke(),Due=Ro(),jue=Do(),Fue=kl(),sy=wV(),Bue=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,S1=class e{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?sy.getTags(t,"compat"):t?sy.getTags(null,t):null,this.name=typeof s=="string"&&s||"core",this.knownTags=i?sy.coreKnownTags:{},this.tags=sy.getTags(r,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,k1.MAP,{value:Due.map}),Object.defineProperty(this,k1.SCALAR,{value:Fue.string}),Object.defineProperty(this,k1.SEQ,{value:jue.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?Bue:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};xV.Schema=S1});var AV=x(EV=>{"use strict";p();var Vue=ke(),w1=_l(),Al=hl();function $ue(e,t){let r=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let i=w1.createStringifyContext(e,t),{commentString:s}=i.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=s(e.commentBefore);r.unshift(Al.indentComment(c,""))}let a=!1,o=null;if(e.contents){if(Vue.isNode(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let f=s(e.contents.commentBefore);r.push(Al.indentComment(f,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}let c=o?void 0:()=>a=!0,l=w1.stringify(e.contents,i,()=>o=null,c);o&&(l+=Al.lineComment(l,"",s(o))),(l[0]==="|"||l[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(w1.stringify(e.contents,i));if(e.directives?.docEnd)if(e.comment){let c=s(e.comment);c.includes(`
167
+ `)?(r.push("..."),r.push(Al.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||o)&&r[r.length-1]!==""&&r.push(""),r.push(Al.indentComment(s(c),"")))}return r.join(`
168
+ `)+`
169
+ `}EV.stringifyDocument=$ue});var Ol=x(OV=>{"use strict";p();var Uue=dl(),Fo=xg(),Br=ke(),Hue=Bi(),Wue=Ri(),zue=T1(),Gue=AV(),x1=kg(),Jue=NT(),Kue=pl(),E1=OT(),A1=class e{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Br.NODE_TYPE,{value:Br.DOC});let i=null;typeof r=="function"||Array.isArray(r)?i=r:n===void 0&&r&&(n=r,r=void 0);let s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:a}=s;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new E1.Directives({version:a}),this.setSchema(a,n),this.contents=t===void 0?null:this.createNode(t,i,n)}clone(){let t=Object.create(e.prototype,{[Br.NODE_TYPE]:{value:Br.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Br.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Bo(this.contents)&&this.contents.add(t)}addIn(t,r){Bo(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let n=x1.anchorNames(this);t.anchor=!r||n.has(r)?x1.findNewAnchor(r||"a",n):r}return new Uue.Alias(t.anchor)}createNode(t,r,n){let i;if(typeof r=="function")t=r.call({"":t},"",t),i=r;else if(Array.isArray(r)){let b=w=>typeof w=="number"||w instanceof String||w instanceof Number,v=r.filter(b).map(String);v.length>0&&(r=r.concat(v)),i=r}else n===void 0&&r&&(n=r,r=void 0);let{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:c,onTagObj:l,tag:f}=n??{},{onAnchor:m,setAnchors:d,sourceObjects:g}=x1.createNodeAnchors(this,a||"a"),_={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:m,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:g},k=Kue.createNode(t,f,_);return o&&Br.isCollection(k)&&(k.flow=!0),d(),k}createPair(t,r,n={}){let i=this.createNode(t,null,n),s=this.createNode(r,null,n);return new Hue.Pair(i,s)}delete(t){return Bo(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Fo.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):Bo(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Br.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return Fo.isEmptyPath(t)?!r&&Br.isScalar(this.contents)?this.contents.value:this.contents:Br.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Br.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return Fo.isEmptyPath(t)?this.contents!==void 0:Br.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=Fo.collectionFromPath(this.schema,[t],r):Bo(this.contents)&&this.contents.set(t,r)}setIn(t,r){Fo.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=Fo.collectionFromPath(this.schema,Array.from(t),r):Bo(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new E1.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new E1.Directives({version:t}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new zue.Schema(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:i,onAnchor:s,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},c=Wue.toJS(this.contents,r??"",o);if(typeof s=="function")for(let{count:l,res:f}of o.anchors.values())s(f,l);return typeof a=="function"?Jue.applyReviver(a,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return Gue.stringifyDocument(this,t)}};function Bo(e){if(Br.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}OV.Document=A1});var ql=x(Pl=>{"use strict";p();var Nl=class extends Error{constructor(t,r,n,i){super(),this.name=t,this.code=n,this.message=i,this.pos=r}},O1=class extends Nl{constructor(t,r,n){super("YAMLParseError",t,r,n)}},N1=class extends Nl{constructor(t,r,n){super("YAMLWarning",t,r,n)}},Que=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(o=>t.linePos(o));let{line:n,col:i}=r.linePos[0];r.message+=` at line ${n}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){let o=Math.min(s-39,a.length-79);a="\u2026"+a.substring(o),s-=o-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(a.substring(0,s))){let o=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);o.length>80&&(o=o.substring(0,79)+`\u2026
170
+ `),a=o+a}if(/[^ ]/.test(a)){let o=1,c=r.linePos[1];c?.line===n&&c.col>i&&(o=Math.max(1,Math.min(c.col-i,80-s)));let l=" ".repeat(s)+"^".repeat(o);r.message+=`:
171
+
172
+ ${a}
173
+ ${l}
174
+ `}};Pl.YAMLError=Nl;Pl.YAMLParseError=O1;Pl.YAMLWarning=N1;Pl.prettifyError=Que});var Ll=x(NV=>{"use strict";p();function Yue(e,{flow:t,indicator:r,next:n,offset:i,onError:s,parentIndent:a,startOnNewline:o}){let c=!1,l=o,f=o,m="",d="",g=!1,_=!1,k=null,b=null,v=null,w=null,T=null,y=null,A=null;for(let q of e)switch(_&&(q.type!=="space"&&q.type!=="newline"&&q.type!=="comma"&&s(q.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),_=!1),k&&(l&&q.type!=="comment"&&q.type!=="newline"&&s(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),k=null),q.type){case"space":!t&&(r!=="doc-start"||n?.type!=="flow-collection")&&q.source.includes(" ")&&(k=q),f=!0;break;case"comment":{f||s(q,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let B=q.source.substring(1)||" ";m?m+=d+B:m=B,d="",l=!1;break}case"newline":l?m?m+=q.source:(!y||r!=="seq-item-ind")&&(c=!0):d+=q.source,l=!0,g=!0,(b||v)&&(w=q),f=!0;break;case"anchor":b&&s(q,"MULTIPLE_ANCHORS","A node can have at most one anchor"),q.source.endsWith(":")&&s(q.offset+q.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=q,A??(A=q.offset),l=!1,f=!1,_=!0;break;case"tag":{v&&s(q,"MULTIPLE_TAGS","A node can have at most one tag"),v=q,A??(A=q.offset),l=!1,f=!1,_=!0;break}case r:(b||v)&&s(q,"BAD_PROP_ORDER",`Anchors and tags must be after the ${q.source} indicator`),y&&s(q,"UNEXPECTED_TOKEN",`Unexpected ${q.source} in ${t??"collection"}`),y=q,l=r==="seq-item-ind"||r==="explicit-key-ind",f=!1;break;case"comma":if(t){T&&s(q,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),T=q,l=!1,f=!1;break}default:s(q,"UNEXPECTED_TOKEN",`Unexpected ${q.type} token`),l=!1,f=!1}let O=e[e.length-1],N=O?O.offset+O.source.length:i;return _&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),k&&(l&&k.indent<=a||n?.type==="block-map"||n?.type==="block-seq")&&s(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:T,found:y,spaceBefore:c,comment:m,hasNewline:g,anchor:b,tag:v,newlineAfterProp:w,end:N,start:A??N}}NV.resolveProps=Yue});var ay=x(PV=>{"use strict";p();function P1(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
175
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(P1(t.key)||P1(t.value))return!0}return!1;default:return!0}}PV.containsNewline=P1});var q1=x(qV=>{"use strict";p();var Xue=ay();function Zue(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&Xue.containsNewline(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}qV.flowIndentCheck=Zue});var L1=x(CV=>{"use strict";p();var LV=ke();function ele(e,t,r){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let i=typeof n=="function"?n:(s,a)=>s===a||LV.isScalar(s)&&LV.isScalar(a)&&s.value===a.value;return t.some(s=>i(s.key,r))}CV.mapIncludes=ele});var FV=x(jV=>{"use strict";p();var IV=Bi(),tle=$i(),MV=Ll(),rle=ay(),RV=q1(),nle=L1(),DV="All mapping items must start at the same column";function ile({composeNode:e,composeEmptyNode:t},r,n,i,s){let a=s?.nodeClass??tle.YAMLMap,o=new a(r.schema);r.atRoot&&(r.atRoot=!1);let c=n.offset,l=null;for(let f of n.items){let{start:m,key:d,sep:g,value:_}=f,k=MV.resolveProps(m,{indicator:"explicit-key-ind",next:d??g?.[0],offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0}),b=!k.found;if(b){if(d&&(d.type==="block-seq"?i(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&i(c,"BAD_INDENT",DV)),!k.anchor&&!k.tag&&!g){l=k.end,k.comment&&(o.comment?o.comment+=`
176
+ `+k.comment:o.comment=k.comment);continue}(k.newlineAfterProp||rle.containsNewline(d))&&i(d??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else k.found?.indent!==n.indent&&i(c,"BAD_INDENT",DV);r.atKey=!0;let v=k.end,w=d?e(r,d,k,i):t(r,v,m,null,k,i);r.schema.compat&&RV.flowIndentCheck(n.indent,d,i),r.atKey=!1,nle.mapIncludes(r,o.items,w)&&i(v,"DUPLICATE_KEY","Map keys must be unique");let T=MV.resolveProps(g??[],{indicator:"map-value-ind",next:_,offset:w.range[2],onError:i,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(c=T.end,T.found){b&&(_?.type==="block-map"&&!T.hasNewline&&i(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&k.start<T.found.offset-1024&&i(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let y=_?e(r,_,T,i):t(r,c,g,null,T,i);r.schema.compat&&RV.flowIndentCheck(n.indent,_,i),c=y.range[2];let A=new IV.Pair(w,y);r.options.keepSourceTokens&&(A.srcToken=f),o.items.push(A)}else{b&&i(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),T.comment&&(w.comment?w.comment+=`
177
+ `+T.comment:w.comment=T.comment);let y=new IV.Pair(w);r.options.keepSourceTokens&&(y.srcToken=f),o.items.push(y)}}return l&&l<c&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[n.offset,c,l??c],o}jV.resolveBlockMap=ile});var VV=x(BV=>{"use strict";p();var sle=Ui(),ale=Ll(),ole=q1();function cle({composeNode:e,composeEmptyNode:t},r,n,i,s){let a=s?.nodeClass??sle.YAMLSeq,o=new a(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset,l=null;for(let{start:f,value:m}of n.items){let d=ale.resolveProps(f,{indicator:"seq-item-ind",next:m,offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||m)m?.type==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(c,"MISSING_CHAR","Sequence item without - indicator");else{l=d.end,d.comment&&(o.comment=d.comment);continue}let g=m?e(r,m,d,i):t(r,d.end,f,null,d,i);r.schema.compat&&ole.flowIndentCheck(n.indent,m,i),c=g.range[2],o.items.push(g)}return o.range=[n.offset,c,l??c],o}BV.resolveBlockSeq=cle});var Vo=x($V=>{"use strict";p();function ule(e,t,r,n){let i="";if(e){let s=!1,a="";for(let o of e){let{source:c,type:l}=o;switch(l){case"space":s=!0;break;case"comment":{r&&!s&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let f=c.substring(1)||" ";i?i+=a+f:i=f,a="";break}case"newline":i&&(a+=c),s=!0;break;default:n(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=c.length}}return{comment:i,offset:t}}$V.resolveEnd=ule});var zV=x(WV=>{"use strict";p();var lle=ke(),fle=Bi(),UV=$i(),dle=Ui(),ple=Vo(),HV=Ll(),hle=ay(),mle=L1(),C1="Block collections are not allowed within flow collections",I1=e=>e&&(e.type==="block-map"||e.type==="block-seq");function gle({composeNode:e,composeEmptyNode:t},r,n,i,s){let a=n.start.source==="{",o=a?"flow map":"flow sequence",c=s?.nodeClass??(a?UV.YAMLMap:dle.YAMLSeq),l=new c(r.schema);l.flow=!0;let f=r.atRoot;f&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let m=n.offset+n.start.source.length;for(let b=0;b<n.items.length;++b){let v=n.items[b],{start:w,key:T,sep:y,value:A}=v,O=HV.resolveProps(w,{flow:o,indicator:"explicit-key-ind",next:T??y?.[0],offset:m,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!y&&!A){b===0&&O.comma?i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):b<n.items.length-1&&i(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),O.comment&&(l.comment?l.comment+=`
178
+ `+O.comment:l.comment=O.comment),m=O.end;continue}!a&&r.options.strict&&hle.containsNewline(T)&&i(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)O.comma&&i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(O.comma||i(O.start,"MISSING_CHAR",`Missing , between ${o} items`),O.comment){let N="";e:for(let q of w)switch(q.type){case"comma":case"space":break;case"comment":N=q.source.substring(1);break e;default:break e}if(N){let q=l.items[l.items.length-1];lle.isPair(q)&&(q=q.value??q.key),q.comment?q.comment+=`
179
+ `+N:q.comment=N,O.comment=O.comment.substring(N.length+1)}}if(!a&&!y&&!O.found){let N=A?e(r,A,O,i):t(r,O.end,y,null,O,i);l.items.push(N),m=N.range[2],I1(A)&&i(N.range,"BLOCK_IN_FLOW",C1)}else{r.atKey=!0;let N=O.end,q=T?e(r,T,O,i):t(r,N,w,null,O,i);I1(T)&&i(q.range,"BLOCK_IN_FLOW",C1),r.atKey=!1;let B=HV.resolveProps(y??[],{flow:o,indicator:"map-value-ind",next:A,offset:q.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(B.found){if(!a&&!O.found&&r.options.strict){if(y)for(let C of y){if(C===B.found)break;if(C.type==="newline"){i(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<B.found.offset-1024&&i(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else A&&("source"in A&&A.source?.[0]===":"?i(A,"MISSING_CHAR",`Missing space after : in ${o}`):i(B.start,"MISSING_CHAR",`Missing , or : between ${o} items`));let M=A?e(r,A,B,i):B.found?t(r,B.end,y,null,B,i):null;M?I1(A)&&i(M.range,"BLOCK_IN_FLOW",C1):B.comment&&(q.comment?q.comment+=`
180
+ `+B.comment:q.comment=B.comment);let L=new fle.Pair(q,M);if(r.options.keepSourceTokens&&(L.srcToken=v),a){let C=l;mle.mapIncludes(r,C.items,q)&&i(N,"DUPLICATE_KEY","Map keys must be unique"),C.items.push(L)}else{let C=new UV.YAMLMap(r.schema);C.flow=!0,C.items.push(L);let $=(M??q).range;C.range=[q.range[0],$[1],$[2]],l.items.push(C)}m=M?M.range[2]:B.end}}let d=a?"}":"]",[g,..._]=n.end,k=m;if(g?.source===d)k=g.offset+g.source.length;else{let b=o[0].toUpperCase()+o.substring(1),v=f?`${b} must end with a ${d}`:`${b} in block collection must be sufficiently indented and end with a ${d}`;i(m,f?"MISSING_CHAR":"BAD_INDENT",v),g&&g.source.length!==1&&_.unshift(g)}if(_.length>0){let b=ple.resolveEnd(_,k,r.options.strict,i);b.comment&&(l.comment?l.comment+=`
181
+ `+b.comment:l.comment=b.comment),l.range=[n.offset,k,b.offset]}else l.range=[n.offset,k,k];return l}WV.resolveFlowCollection=gle});var JV=x(GV=>{"use strict";p();var yle=ke(),_le=pt(),vle=$i(),ble=Ui(),kle=FV(),Sle=VV(),Tle=zV();function M1(e,t,r,n,i,s){let a=r.type==="block-map"?kle.resolveBlockMap(e,t,r,n,s):r.type==="block-seq"?Sle.resolveBlockSeq(e,t,r,n,s):Tle.resolveFlowCollection(e,t,r,n,s),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}function wle(e,t,r,n,i){let s=n.tag,a=s?t.directives.tagName(s.source,d=>i(s,"TAG_RESOLVE_FAILED",d)):null;if(r.type==="block-seq"){let{anchor:d,newlineAfterProp:g}=n,_=d&&s?d.offset>s.offset?d:s:d??s;_&&(!g||g.offset<_.offset)&&i(_,"MISSING_CHAR","Missing newline after block sequence props")}let o=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!s||!a||a==="!"||a===vle.YAMLMap.tagName&&o==="map"||a===ble.YAMLSeq.tagName&&o==="seq")return M1(e,t,r,i,a);let c=t.schema.tags.find(d=>d.tag===a&&d.collection===o);if(!c){let d=t.schema.knownTags[a];if(d?.collection===o)t.schema.tags.push(Object.assign({},d,{default:!1})),c=d;else return d?i(s,"BAD_COLLECTION_TYPE",`${d.tag} used for ${o} collection, but expects ${d.collection??"scalar"}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),M1(e,t,r,i,a)}let l=M1(e,t,r,i,a,c),f=c.resolve?.(l,d=>i(s,"TAG_RESOLVE_FAILED",d),t.options)??l,m=yle.isNode(f)?f:new _le.Scalar(f);return m.range=l.range,m.tag=a,c?.format&&(m.format=c.format),m}GV.composeCollection=wle});var D1=x(KV=>{"use strict";p();var R1=pt();function xle(e,t,r){let n=t.offset,i=Ele(t,e.options.strict,r);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let s=i.mode===">"?R1.Scalar.BLOCK_FOLDED:R1.Scalar.BLOCK_LITERAL,a=t.source?Ale(t.source):[],o=a.length;for(let k=a.length-1;k>=0;--k){let b=a[k][1];if(b===""||b==="\r")o=k;else break}if(o===0){let k=i.chomp==="+"&&a.length>0?`
182
+ `.repeat(Math.max(1,a.length-1)):"",b=n+i.length;return t.source&&(b+=t.source.length),{value:k,type:s,comment:i.comment,range:[n,b,b]}}let c=t.indent+i.indent,l=t.offset+i.length,f=0;for(let k=0;k<o;++k){let[b,v]=a[k];if(v===""||v==="\r")i.indent===0&&b.length>c&&(c=b.length);else{b.length<c&&r(l+b.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(c=b.length),f=k,c===0&&!e.atRoot&&r(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=b.length+v.length+1}for(let k=a.length-1;k>=o;--k)a[k][0].length>c&&(o=k+1);let m="",d="",g=!1;for(let k=0;k<f;++k)m+=a[k][0].slice(c)+`
183
+ `;for(let k=f;k<o;++k){let[b,v]=a[k];l+=b.length+v.length+1;let w=v[v.length-1]==="\r";if(w&&(v=v.slice(0,-1)),v&&b.length<c){let y=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;r(l-v.length-(w?2:1),"BAD_INDENT",y),b=""}s===R1.Scalar.BLOCK_LITERAL?(m+=d+b.slice(c)+v,d=`
184
+ `):b.length>c||v[0]===" "?(d===" "?d=`
185
+ `:!g&&d===`
186
+ `&&(d=`
187
+
188
+ `),m+=d+b.slice(c)+v,d=`
189
+ `,g=!0):v===""?d===`
190
+ `?m+=`
191
+ `:d=`
192
+ `:(m+=d+v,d=" ",g=!1)}switch(i.chomp){case"-":break;case"+":for(let k=o;k<a.length;++k)m+=`
193
+ `+a[k][0].slice(c);m[m.length-1]!==`
194
+ `&&(m+=`
195
+ `);break;default:m+=`
196
+ `}let _=n+i.length+t.source.length;return{value:m,type:s,comment:i.comment,range:[n,_,_]}}function Ele({offset:e,props:t},r,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],s=i[0],a=0,o="",c=-1;for(let d=1;d<i.length;++d){let g=i[d];if(!o&&(g==="-"||g==="+"))o=g;else{let _=Number(g);!a&&_?a=_:c===-1&&(c=e+d)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,f="",m=i.length;for(let d=1;d<t.length;++d){let g=t[d];switch(g.type){case"space":l=!0;case"newline":m+=g.source.length;break;case"comment":r&&!l&&n(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),m+=g.source.length,f=g.source.substring(1);break;case"error":n(g,"UNEXPECTED_TOKEN",g.message),m+=g.source.length;break;default:{let _=`Unexpected token in block scalar header: ${g.type}`;n(g,"UNEXPECTED_TOKEN",_);let k=g.source;k&&typeof k=="string"&&(m+=k.length)}}}return{mode:s,indent:a,chomp:o,comment:f,length:m}}function Ale(e){let t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),s=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let a=1;a<t.length;a+=2)s.push([t[a],t[a+1]]);return s}KV.resolveBlockScalar=xle});var F1=x(YV=>{"use strict";p();var j1=pt(),Ole=Vo();function Nle(e,t,r){let{offset:n,type:i,source:s,end:a}=e,o,c,l=(d,g,_)=>r(n+d,g,_);switch(i){case"scalar":o=j1.Scalar.PLAIN,c=Ple(s,l);break;case"single-quoted-scalar":o=j1.Scalar.QUOTE_SINGLE,c=qle(s,l);break;case"double-quoted-scalar":o=j1.Scalar.QUOTE_DOUBLE,c=Lle(s,l);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}let f=n+s.length,m=Ole.resolveEnd(a,f,t,r);return{value:c,type:o,comment:m.comment,range:[n,f,m.offset]}}function Ple(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),QV(e)}function qle(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),QV(e.slice(1,-1)).replace(/''/g,"'")}function QV(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
197
+ `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
198
+ `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=t.exec(e);if(!n)return e;let i=n[1],s=" ",a=t.lastIndex;for(r.lastIndex=a;n=r.exec(e);)n[1]===""?s===`
199
+ `?i+=s:s=`
200
+ `:(i+=s+n[1],s=" "),a=r.lastIndex;let o=/[ \t]*(.*)/sy;return o.lastIndex=a,n=o.exec(e),i+s+(n?.[1]??"")}function Lle(e,t){let r="";for(let n=1;n<e.length-1;++n){let i=e[n];if(!(i==="\r"&&e[n+1]===`
201
+ `))if(i===`
202
+ `){let{fold:s,offset:a}=Cle(e,n);r+=s,n=a}else if(i==="\\"){let s=e[++n],a=Ile[s];if(a)r+=a;else if(s===`
203
+ `)for(s=e[n+1];s===" "||s===" ";)s=e[++n+1];else if(s==="\r"&&e[n+1]===`
204
+ `)for(s=e[++n+1];s===" "||s===" ";)s=e[++n+1];else if(s==="x"||s==="u"||s==="U"){let o=s==="x"?2:s==="u"?4:8;r+=Mle(e,n+1,o,t),n+=o}else{let o=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),r+=o}}else if(i===" "||i===" "){let s=n,a=e[n+1];for(;a===" "||a===" ";)a=e[++n+1];a!==`
205
+ `&&!(a==="\r"&&e[n+2]===`
206
+ `)&&(r+=n>s?e.slice(s,n+1):i)}else r+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function Cle(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===`
207
+ `||n==="\r")&&!(n==="\r"&&e[t+2]!==`
208
+ `);)n===`
209
+ `&&(r+=`
210
+ `),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}var Ile={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
211
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Mle(e,t,r,n){let i=e.substr(t,r),a=i.length===r&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let o=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}}YV.resolveFlowScalar=Nle});var e4=x(ZV=>{"use strict";p();var ta=ke(),XV=pt(),Rle=D1(),Dle=F1();function jle(e,t,r,n){let{value:i,type:s,comment:a,range:o}=t.type==="block-scalar"?Rle.resolveBlockScalar(e,t,n):Dle.resolveFlowScalar(t,e.options.strict,n),c=r?e.directives.tagName(r.source,m=>n(r,"TAG_RESOLVE_FAILED",m)):null,l;e.options.stringKeys&&e.atKey?l=e.schema[ta.SCALAR]:c?l=Fle(e.schema,i,c,r,n):t.type==="scalar"?l=Ble(e,i,t,n):l=e.schema[ta.SCALAR];let f;try{let m=l.resolve(i,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);f=ta.isScalar(m)?m:new XV.Scalar(m)}catch(m){let d=m instanceof Error?m.message:String(m);n(r??t,"TAG_RESOLVE_FAILED",d),f=new XV.Scalar(i)}return f.range=o,f.source=i,s&&(f.type=s),c&&(f.tag=c),l.format&&(f.format=l.format),a&&(f.comment=a),f}function Fle(e,t,r,n,i){if(r==="!")return e[ta.SCALAR];let s=[];for(let o of e.tags)if(!o.collection&&o.tag===r)if(o.default&&o.test)s.push(o);else return o;for(let o of s)if(o.test?.test(t))return o;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[ta.SCALAR])}function Ble({atKey:e,directives:t,schema:r},n,i,s){let a=r.tags.find(o=>(o.default===!0||e&&o.default==="key")&&o.test?.test(n))||r[ta.SCALAR];if(r.compat){let o=r.compat.find(c=>c.default&&c.test?.test(n))??r[ta.SCALAR];if(a.tag!==o.tag){let c=t.tagString(a.tag),l=t.tagString(o.tag),f=`Value may be parsed as either ${c} or ${l}`;s(i,"TAG_RESOLVE_FAILED",f,!0)}}return a}ZV.composeScalar=jle});var r4=x(t4=>{"use strict";p();function Vle(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let i=t[n];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++n];i?.type==="space";)e+=i.source.length,i=t[++n];break}}return e}t4.emptyScalarPosition=Vle});var s4=x(V1=>{"use strict";p();var $le=dl(),Ule=ke(),Hle=JV(),n4=e4(),Wle=Vo(),zle=r4(),Gle={composeNode:i4,composeEmptyNode:B1};function i4(e,t,r,n){let i=e.atKey,{spaceBefore:s,comment:a,anchor:o,tag:c}=r,l,f=!0;switch(t.type){case"alias":l=Jle(e,t,n),(o||c)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=n4.composeScalar(e,t,c,n),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=Hle.composeCollection(Gle,e,t,r,n),o&&(l.anchor=o.source.substring(1))}catch(m){let d=m instanceof Error?m.message:String(m);n(t,"RESOURCE_EXHAUSTION",d)}break;default:{let m=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",m),f=!1}}return l??(l=B1(e,t.offset,void 0,null,r,n)),o&&l.anchor===""&&n(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!Ule.isScalar(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&n(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(l.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?l.comment=a:l.commentBefore=a),e.options.keepSourceTokens&&f&&(l.srcToken=t),l}function B1(e,t,r,n,{spaceBefore:i,comment:s,anchor:a,tag:o,end:c},l){let f={type:"scalar",offset:zle.emptyScalarPosition(t,r,n),indent:-1,source:""},m=n4.composeScalar(e,f,o,l);return a&&(m.anchor=a.source.substring(1),m.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(m.spaceBefore=!0),s&&(m.comment=s,m.range[2]=c),m}function Jle({options:e},{offset:t,source:r,end:n},i){let s=new $le.Alias(r.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,o=Wle.resolveEnd(n,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}V1.composeEmptyNode=B1;V1.composeNode=i4});var c4=x(o4=>{"use strict";p();var Kle=Ol(),a4=s4(),Qle=Vo(),Yle=Ll();function Xle(e,t,{offset:r,start:n,value:i,end:s},a){let o=Object.assign({_directives:t},e),c=new Kle.Document(void 0,o),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},f=Yle.resolveProps(n,{indicator:"doc-start",next:i??s?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});f.found&&(c.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!f.hasNewline&&a(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=i?a4.composeNode(l,i,f,a):a4.composeEmptyNode(l,f.end,n,null,f,a);let m=c.contents.range[2],d=Qle.resolveEnd(s,m,!1,a);return d.comment&&(c.comment=d.comment),c.range=[r,m,d.offset],c}o4.composeDoc=Xle});var U1=x(f4=>{"use strict";p();var Zle=ce("process"),efe=OT(),tfe=Ol(),Cl=ql(),u4=ke(),rfe=c4(),nfe=Vo();function Il(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function l4(e){let t="",r=!1,n=!1;for(let i=0;i<e.length;++i){let s=e[i];switch(s[0]){case"#":t+=(t===""?"":n?`
212
+
213
+ `:`
214
+ `)+(s.substring(1)||" "),r=!0,n=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}var $1=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,i,s)=>{let a=Il(r);s?this.warnings.push(new Cl.YAMLWarning(a,n,i)):this.errors.push(new Cl.YAMLParseError(a,n,i))},this.directives=new efe.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:n,afterEmptyLine:i}=l4(this.prelude);if(n){let s=t.contents;if(r)t.comment=t.comment?`${t.comment}
215
+ ${n}`:n;else if(i||t.directives.docStart||!s)t.commentBefore=n;else if(u4.isCollection(s)&&!s.flow&&s.items.length>0){let a=s.items[0];u4.isPair(a)&&(a=a.key);let o=a.commentBefore;a.commentBefore=o?`${n}
216
+ ${o}`:n}else{let a=s.commentBefore;s.commentBefore=a?`${n}
217
+ ${a}`:n}}if(r){for(let s=0;s<this.errors.length;++s)t.errors.push(this.errors[s]);for(let s=0;s<this.warnings.length;++s)t.warnings.push(this.warnings[s])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l4(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(let i of t)yield*this.next(i);yield*this.end(r,n)}*next(t){switch(Zle.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,n,i)=>{let s=Il(t);s[0]+=r,this.onError(s,"BAD_DIRECTIVE",n,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=rfe.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new Cl.YAMLParseError(Il(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new Cl.YAMLParseError(Il(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let r=nfe.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
218
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Cl.YAMLParseError(Il(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let n=Object.assign({_directives:this.directives},this.options),i=new tfe.Document(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,r,r],this.decorate(i,!1),yield i}}};f4.Composer=$1});var h4=x(oy=>{"use strict";p();var ife=D1(),sfe=F1(),afe=ql(),d4=yl();function ofe(e,t=!0,r){if(e){let n=(i,s,a)=>{let o=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(r)r(o,s,a);else throw new afe.YAMLParseError([o,o+1],s,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return sfe.resolveFlowScalar(e,t,n);case"block-scalar":return ife.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function cfe(e,t){let{implicitKey:r=!1,indent:n,inFlow:i=!1,offset:s=-1,type:a="PLAIN"}=t,o=d4.stringifyString({type:a,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:n,source:`
219
+ `}];switch(o[0]){case"|":case">":{let l=o.indexOf(`
220
+ `),f=o.substring(0,l),m=o.substring(l+1)+`
221
+ `,d=[{type:"block-scalar-header",offset:s,indent:n,source:f}];return p4(d,c)||d.push({type:"newline",offset:-1,indent:n,source:`
222
+ `}),{type:"block-scalar",offset:s,indent:n,props:d,source:m}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:o,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:o,end:c};default:return{type:"scalar",offset:s,indent:n,source:o,end:c}}}function ufe(e,t,r={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:s=!1,type:a}=r,o="indent"in e?e.indent:null;if(n&&typeof o=="number"&&(o+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let l=e.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let c=d4.stringifyString({type:a,value:t},{implicitKey:i||o===null,indent:o!==null&&o>0?" ".repeat(o):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":lfe(e,c);break;case'"':H1(e,c,"double-quoted-scalar");break;case"'":H1(e,c,"single-quoted-scalar");break;default:H1(e,c,"scalar")}}function lfe(e,t){let r=t.indexOf(`
223
+ `),n=t.substring(0,r),i=t.substring(r+1)+`
224
+ `;if(e.type==="block-scalar"){let s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,e.source=i}else{let{offset:s}=e,a="indent"in e?e.indent:-1,o=[{type:"block-scalar-header",offset:s,indent:a,source:n}];p4(o,"end"in e?e.end:void 0)||o.push({type:"newline",offset:-1,indent:a,source:`
225
+ `});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:a,props:o,source:i})}}function p4(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function H1(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),i=t.length;e.props[0].type==="block-scalar-header"&&(i-=e.props[0].source.length);for(let s of n)s.offset+=i;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
226
+ `};delete e.items,Object.assign(e,{type:r,source:t,end:[i]});break}default:{let n="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(let s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:r,indent:n,source:t,end:i})}}}oy.createScalarToken=cfe;oy.resolveAsScalar=ofe;oy.setScalarValue=ufe});var g4=x(m4=>{"use strict";p();var ffe=e=>"type"in e?uy(e):cy(e);function uy(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=uy(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=cy(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=cy(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=cy(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function cy({start:e,key:t,sep:r,value:n}){let i="";for(let s of e)i+=s.source;if(t&&(i+=uy(t)),r)for(let s of r)i+=s.source;return n&&(i+=uy(n)),i}m4.stringify=ffe});var b4=x(v4=>{"use strict";p();var W1=Symbol("break visit"),dfe=Symbol("skip children"),y4=Symbol("remove item");function ra(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),_4(Object.freeze([]),e,t)}ra.BREAK=W1;ra.SKIP=dfe;ra.REMOVE=y4;ra.itemAtPath=(e,t)=>{let r=e;for(let[n,i]of t){let s=r?.[n];if(s&&"items"in s)r=s.items[i];else return}return r};ra.parentCollection=(e,t)=>{let r=ra.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],i=r?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function _4(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(let i of["key","value"]){let s=t[i];if(s&&"items"in s){for(let a=0;a<s.items.length;++a){let o=_4(Object.freeze(e.concat([[i,a]])),s.items[a],r);if(typeof o=="number")a=o-1;else{if(o===W1)return W1;o===y4&&(s.items.splice(a,1),a-=1)}}typeof n=="function"&&i==="key"&&(n=n(t,e))}}return typeof n=="function"?n(t,e):n}v4.visit=ra});var ly=x(ir=>{"use strict";p();var z1=h4(),pfe=g4(),hfe=b4(),G1="\uFEFF",J1="",K1="",Q1="",mfe=e=>!!e&&"items"in e,gfe=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function yfe(e){switch(e){case G1:return"<BOM>";case J1:return"<DOC>";case K1:return"<FLOW_END>";case Q1:return"<SCALAR>";default:return JSON.stringify(e)}}function _fe(e){switch(e){case G1:return"byte-order-mark";case J1:return"doc-mode";case K1:return"flow-error-end";case Q1:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
227
+ `:case`\r
228
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}ir.createScalarToken=z1.createScalarToken;ir.resolveAsScalar=z1.resolveAsScalar;ir.setScalarValue=z1.setScalarValue;ir.stringify=pfe.stringify;ir.visit=hfe.visit;ir.BOM=G1;ir.DOCUMENT=J1;ir.FLOW_END=K1;ir.SCALAR=Q1;ir.isCollection=mfe;ir.isScalar=gfe;ir.prettyToken=yfe;ir.tokenType=_fe});var Z1=x(S4=>{"use strict";p();var Ml=ly();function cn(e){switch(e){case void 0:case" ":case`
229
+ `:case"\r":case" ":return!0;default:return!1}}var k4=new Set("0123456789ABCDEFabcdef"),vfe=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),fy=new Set(",[]{}"),bfe=new Set(` ,[]{}
230
+ \r `),Y1=e=>!e||bfe.has(e),X1=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
231
+ `?!0:r==="\r"?this.buffer[t+1]===`
232
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){let i=this.buffer[n+t+1];if(i===`
233
+ `||!i&&!this.atEnd)return t+n+1}return r===`
234
+ `||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){let n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&cn(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
235
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Ml.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,n=t.indexOf("#");for(;n!==-1;){let s=t[n-1];if(s===" "||s===" "){r=n-1;break}else n=t.indexOf("#",n+1)}for(;;){let s=t[r-1];if(s===" "||s===" ")r-=1;else break}let i=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield Ml.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&cn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!cn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&cn(r)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Y1),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&cn(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Ml.FLOW_END,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Y1),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||cn(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let s=0;for(;this.buffer[r-1-s]==="\\";)s+=1;if(s%2===0)break;r=this.buffer.indexOf('"',r+1)}let n=this.buffer.substring(0,r),i=n.indexOf(`
236
+ `,this.pos);if(i!==-1){for(;i!==-1;){let s=this.continueScalar(i+1);if(s===-1)break;i=n.indexOf(`
237
+ `,s)}i!==-1&&(r=i-(n[i-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>cn(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let s=this.pos;n=this.buffer[s];++s)switch(n){case" ":r+=1;break;case`
238
+ `:t=s,r=0;break;case"\r":{let a=this.buffer[s+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
239
+ `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let s=this.continueScalar(t+1);if(s===-1)break;t=this.buffer.indexOf(`
240
+ `,s)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(n=this.buffer[i];n===" ";)n=this.buffer[++i];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
241
+ `;)n=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let s=t-1,a=this.buffer[s];a==="\r"&&(a=this.buffer[--s]);let o=s;for(;a===" ";)a=this.buffer[--s];if(a===`
242
+ `&&s>=this.pos&&s+1+r>o)t=s;else break}while(!0);return yield Ml.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let s=this.buffer[n+1];if(cn(s)||t&&fy.has(s))break;r=n}else if(cn(i)){let s=this.buffer[n+1];if(i==="\r"&&(s===`
243
+ `?(n+=1,i=`
244
+ `,s=this.buffer[n+1]):r=n),s==="#"||t&&fy.has(s))break;if(i===`
245
+ `){let a=this.continueScalar(n+1);if(a===-1)break;n=Math.max(n,a-2)}}else{if(t&&fy.has(i))break;r=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Ml.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;case"&":t+=yield*this.pushUntil(Y1),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let r=this.flowLevel>0,n=this.charAt(1);if(cn(n)||r&&fy.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!cn(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(vfe.has(r))r=this.buffer[++t];else if(r==="%"&&k4.has(this.buffer[t+1])&&k4.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
246
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
247
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");let i=r-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=r),i}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};S4.Lexer=X1});var tw=x(T4=>{"use strict";p();var ew=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r<n;){let s=r+n>>1;this.lineStarts[s]<t?r=s+1:n=s}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let i=this.lineStarts[r-1];return{line:r,col:t-i+1}}}};T4.LineCounter=ew});var nw=x(O4=>{"use strict";p();var kfe=ce("process"),w4=ly(),Sfe=Z1();function Hi(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function x4(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function A4(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function dy(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function $o(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function py(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let r=0;r<t.length;++r)e.push(t[r])}function E4(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!Hi(t.start,"explicit-key-ind")&&!Hi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,A4(t.value)?t.value.end?py(t.value.end,t.sep):t.value.end=t.sep:py(t.start,t.sep),delete t.sep)}var rw=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Sfe.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,kfe.env.LOG_TOKENS&&console.log("|",w4.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=w4.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&E4(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=r;else{Object.assign(i,{key:r,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:r}):i.value=r;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:r,sep:[]}):i.sep?i.value=r:Object.assign(i,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let i=r.items[r.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&x4(i.start)===-1&&(r.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<r.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{x4(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let r=dy(this.peek(2)),n=$o(r),i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];let s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:n,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
248
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
249
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){py(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let n=!this.onKeyLine&&this.indent===t.indent,i=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",s=[];if(i&&r.sep&&!r.value){let a=[];for(let o=0;o<r.sep.length;++o){let c=r.sep[o];switch(c.type){case"newline":a.push(o);break;case"space":break;case"comment":c.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(s=r.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||r.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):i||r.value?(s.push(this.sourceToken),t.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Hi(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(A4(r.key)&&!Hi(r.sep,"newline")){let a=$o(r.start),o=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:o,sep:c}]})}else s.length>0?r.sep=r.sep.concat(s,this.sourceToken):r.sep.push(this.sourceToken);else if(Hi(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let a=$o(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||i?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Hi(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);i||r.value?(t.items.push({start:s,key:a,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(a):(Object.assign(r,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{let a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!r.explicitKey&&r.sep&&!Hi(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&t.items.push({start:s});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){py(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Hi(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let n=this.startBlockValue(t);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:i,sep:[]}):r.sep?this.stack.push(i):Object.assign(r,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=dy(n),s=$o(i);E4(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
250
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
251
+ `,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=dy(t),n=$o(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=dy(t),n=$o(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};O4.Parser=rw});var C4=x(Dl=>{"use strict";p();var N4=U1(),Tfe=Ol(),Rl=ql(),wfe=VT(),xfe=ke(),Efe=tw(),P4=nw();function q4(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Efe.LineCounter||null,prettyErrors:t}}function Afe(e,t={}){let{lineCounter:r,prettyErrors:n}=q4(t),i=new P4.Parser(r?.addNewLine),s=new N4.Composer(t),a=Array.from(s.compose(i.parse(e)));if(n&&r)for(let o of a)o.errors.forEach(Rl.prettifyError(e,r)),o.warnings.forEach(Rl.prettifyError(e,r));return a.length>0?a:Object.assign([],{empty:!0},s.streamInfo())}function L4(e,t={}){let{lineCounter:r,prettyErrors:n}=q4(t),i=new P4.Parser(r?.addNewLine),s=new N4.Composer(t),a=null;for(let o of s.compose(i.parse(e),!0,e.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new Rl.YAMLParseError(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(a.errors.forEach(Rl.prettifyError(e,r)),a.warnings.forEach(Rl.prettifyError(e,r))),a}function Ofe(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);let i=L4(e,r);if(!i)return null;if(i.warnings.forEach(s=>wfe.warn(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},r))}function Nfe(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let i=Math.round(r);r=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){let{keepUndefined:i}=r??t??{};if(!i)return}return xfe.isDocument(e)&&!n?e.toString(r):new Tfe.Document(e,n,r).toString(r)}Dl.parse=Ofe;Dl.parseAllDocuments=Afe;Dl.parseDocument=L4;Dl.stringify=Nfe});var M4=x(Pe=>{"use strict";p();var Pfe=U1(),qfe=Ol(),Lfe=T1(),iw=ql(),Cfe=dl(),Wi=ke(),Ife=Bi(),Mfe=pt(),Rfe=$i(),Dfe=Ui(),jfe=ly(),Ffe=Z1(),Bfe=tw(),Vfe=nw(),hy=C4(),I4=cl();Pe.Composer=Pfe.Composer;Pe.Document=qfe.Document;Pe.Schema=Lfe.Schema;Pe.YAMLError=iw.YAMLError;Pe.YAMLParseError=iw.YAMLParseError;Pe.YAMLWarning=iw.YAMLWarning;Pe.Alias=Cfe.Alias;Pe.isAlias=Wi.isAlias;Pe.isCollection=Wi.isCollection;Pe.isDocument=Wi.isDocument;Pe.isMap=Wi.isMap;Pe.isNode=Wi.isNode;Pe.isPair=Wi.isPair;Pe.isScalar=Wi.isScalar;Pe.isSeq=Wi.isSeq;Pe.Pair=Ife.Pair;Pe.Scalar=Mfe.Scalar;Pe.YAMLMap=Rfe.YAMLMap;Pe.YAMLSeq=Dfe.YAMLSeq;Pe.CST=jfe;Pe.Lexer=Ffe.Lexer;Pe.LineCounter=Bfe.LineCounter;Pe.Parser=Vfe.Parser;Pe.parse=hy.parse;Pe.parseAllDocuments=hy.parseAllDocuments;Pe.parseDocument=hy.parseDocument;Pe.stringify=hy.stringify;Pe.visit=I4.visit;Pe.visitAsync=I4.visitAsync});var my=x(zi=>{"use strict";p();Object.defineProperty(zi,"__esModule",{value:!0});zi.ConvenienceSeverities=zi.LegacyIdentifiers=zi.ModernIdentifiers=void 0;var jl=Kt();zi.ModernIdentifiers=["theme-check:nothing","theme-check:recommended","theme-check:theme-app-extension","theme-check:all"];zi.LegacyIdentifiers=new Map(Object.entries({default:"theme-check:recommended",recommended:"theme-check:recommended",all:"theme-check:all",nothing:"theme-check:nothing",theme_app_extension:"theme-check:theme-app-extension",theme_app_extensions:"theme-check:theme-app-extension","theme-app-extension":"theme-check:theme-app-extension","theme-app-extensions":"theme-check:theme-app-extension"}));zi.ConvenienceSeverities={suggestion:jl.Severity.WARNING,style:jl.Severity.INFO,error:jl.Severity.ERROR,warning:jl.Severity.WARNING,info:jl.Severity.INFO}});var V4=x(Bl=>{"use strict";p();var D4=Bl&&Bl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.readYamlConfigDescription=Gfe;var j4=Kt(),$fe=ce("node:fs"),Ufe=D4(ce("node:fs/promises")),Hfe=ce("node:module"),gy=D4(ce("node:path")),Wfe=M4(),Fl=my(),aw=class extends Error{constructor(t,r){super(t),this.name="UnresolvedAliasError",this.message=`YAML parsing error: Unresolved alias *${r}.
252
+ Did you forget to wrap your ignore statement in quotes? '*${r}'
253
+ ${t}`}};function zfe(e,t){try{let r=t.trim()===""?{}:(0,Wfe.parse)(t);if(!B4(r))throw new Error(`Expecting parsed contents of config file at path '${e}' to be a plain object`);return r}catch(r){if(r instanceof Error&&r.name==="ReferenceError"&&r.message.includes("Unresolved alias")&&/: .*$/m.test(r.message)){let n=/: .*$/m.exec(r.message)[0].slice(2);throw new aw(r.message,n)}else throw r}}async function Gfe(e,t=!1){let r=gy.default.dirname(e),n=await Ufe.default.readFile(e,"utf8"),i=zfe(e,n),s={checkSettings:{},ignore:[],extends:[],require:[]};i.root&&(s.root=i.root,delete i.root),i.ignore&&(s.ignore=sw(i.ignore),delete i.ignore),i.require&&(s.require=sw(i.require).map(a=>F4(r,a)).filter(ow),delete i.require),i.extends?(s.extends=sw(i.extends).map(a=>R4(r,a)).filter(ow),delete i.extends):t&&(s.extends=[R4(r,"theme-check:recommended")]),i.context&&(j4.Modes.includes(i.context)&&(s.context=i.context),delete i.context),i.include_categories&&delete i.include_categories,i.exclude_categories&&delete i.exclude_categories;for(let[a,o]of Object.entries(i)){if(!B4(o))throw new Error(`Expected a plain object value for ${a} but got ${typeof o}`);s.checkSettings[a]=Jfe(o)}return s}function R4(e,t){return t.startsWith(":")||Fl.LegacyIdentifiers.has(t)?Fl.LegacyIdentifiers.get(t.replace(/^:/,"")):t.startsWith("theme-check:")?t:F4(e,t)}function F4(e,t){if(gy.default.isAbsolute(t))return t;if(t.startsWith("."))return gy.default.resolve(e,t);let r=(0,Hfe.createRequire)(gy.default.join(e,"__placeholder"));return(0,$fe.realpathSync)(r.resolve(t))}function Jfe(e){let t={enabled:e.enabled||!0};for(let[r,n]of Object.entries(e))t[Xfe(r)]=n;return e.ignore!==void 0&&Array.isArray(e.ignore)&&e.ignore.every(ow)&&(t.ignore=e.ignore),e.severity!==void 0&&(t.severity=Kfe(e.severity)),t}function Kfe(e){if(Qfe(e))return Fl.ConvenienceSeverities[e];if(Yfe(e))return e;throw new Error(`Unsupported severity: ${e}. Try one of ${Object.keys(Fl.ConvenienceSeverities)}`)}function Qfe(e){return typeof e=="string"&&e in Fl.ConvenienceSeverities}function Yfe(e){return typeof e=="number"&&e in j4.Severity}function Xfe(e){return e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase())}function B4(e){return Object.prototype.toString.call(e)==="[object Object]"}function ow(e){return typeof e=="string"}function sw(e){return Array.isArray(e)?e:[e]}});var W4=x(cw=>{"use strict";p();Object.defineProperty(cw,"__esModule",{value:!0});cw.mergeFragments=Zfe;function Zfe(e,t){return{root:$4(e.map(r=>r.root),t.root),extends:[],ignore:e.flatMap(r=>r.ignore).concat(t.ignore),require:e.flatMap(r=>r.require).concat(t.require),checkSettings:e.map(r=>r.checkSettings).concat(t.checkSettings).reduce(H4),context:$4(e.map(r=>r.context),t.context)??"theme"}}function $4(e,t){return e.concat(t).filter(Boolean).pop()}function H4(e,t){let r={...e};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(U4(e[n])&&U4(t[n])?r[n]=H4(e[n],t[n]):r[n]=t[n]);return r}function U4(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}});var G4=x(Vl=>{"use strict";p();var ede=Vl&&Vl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.resolveConfig=uw;var z4=ede(ce("node:path")),tde=V4(),rde=W4(),nde=my(),ide=()=>z4.default.resolve(__dirname,"./configs");async function uw(e,t=!1){if(sde(e)){let i=z4.default.join(ide(),e.replace(/^theme-check:/,"")+".yml");return uw(i)}let r=await(0,tde.readYamlConfigDescription)(e,t),n=await Promise.all(r.extends.map(i=>uw(i)));return(0,rde.mergeFragments)(n,r)}function sde(e){return nde.ModernIdentifiers.includes(e)}});var J4=x(yy=>{"use strict";p();Object.defineProperty(yy,"__esModule",{value:!0});yy.resolveConfig=void 0;var ade=G4();Object.defineProperty(yy,"resolveConfig",{enumerable:!0,get:function(){return ade.resolveConfig}})});var Q4=x(pw=>{"use strict";p();Object.defineProperty(pw,"__esModule",{value:!0});pw.validateConfig=ode;var dw=ce("node:assert");function ode(e){for(let t of e.checks){let r=e.settings[t.meta.code];(0,dw.strict)(r,`Unexpected missing settings for ${t.meta.code} in validateConfig call`),cde(t.meta.code,t.meta.schema,r,!0)}}function cde(e,t,r,n){for(let i in t){let s=t[i],a=r[i];lw(i,a,s)}n&&ude(r),lde(e,t,r)}function ude(e){let{severity:t,enabled:r,ignore:n}=e;t===void 0||fw("severity","number",typeof t),fw("enabled","boolean",typeof r),n===void 0||K4("ignore",n)}function lde(e,t,r){let n=["enabled","severity","ignore"];for(let i in r)!(i in t)&&!n.includes(i)&&console.error(`Unexpected setting: ${i} for check ${e} found in configuration`)}function lw(e,t,r){let{type:n,optional:i,defaultValue:s,properties:a,itemType:o}=r.options;if(t===void 0){if(i!==!0&&s===void 0)throw new Error(`Missing required setting: ${e}`);return}if(!(s!==void 0&&t===s))switch(n){case"string":case"number":case"boolean":{fw(e,n,typeof t);break}case"object":{if(typeof t!="object"||t===null||Array.isArray(t))throw new Error(`Invalid type for setting ${e}: expected object, got ${typeof t}`);for(let c in a)lw(c,t[c],a[c]);break}case"array":{if(K4(e,t),o)for(let c of t)lw(e,c,o);break}default:throw new Error(`Unexpected setting type: ${n}`)}}function fw(e,t,r){dw.strict.strictEqual(r,t,`Invalid type for setting ${e}: expected ${t}, got ${r}`)}function K4(e,t){dw.strict.ok(Array.isArray(t),`Invalid type for setting ${e}: expected array, got ${typeof t}`)}});var Y4=x($l=>{"use strict";p();var fde=$l&&$l.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0});$l.loadConfig=gde;var dde=zF(),pde=J4(),hde=Q4(),mde=fde(ce("fs/promises"));async function gde(e,t){if(!t)throw new Error("loadConfig cannot be called without a root argument");let r="theme-check:recommended";e||(await mde.default.readdir(t)).some(a=>a.endsWith(".extension.toml")||a.endsWith(".app.toml"))&&(r="theme-check:theme-app-extension");let n=await(0,pde.resolveConfig)(e??r,!0),i=await(0,dde.loadConfigDescription)(n,t);return(0,hde.validateConfig)(i),i}});var X4=x(Ul=>{"use strict";p();var yde=Ul&&Ul.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ul,"__esModule",{value:!0});Ul.findConfigPath=kde;var _de=yde(ce("node:path")),vde=ST(),bde=[".theme-check.yml"];function kde(e){let t=bde.map(r=>_de.default.join(e,r));return Sde(t,vde.fileExists)}async function Sde(e,t){for(let r of e)if(await t(r))return r}});var Z4=x(Uo=>{"use strict";p();Object.defineProperty(Uo,"__esModule",{value:!0});Uo.findConfigPath=Uo.loadConfig=void 0;var Tde=Y4();Object.defineProperty(Uo,"loadConfig",{enumerable:!0,get:function(){return Tde.loadConfig}});var wde=X4();Object.defineProperty(Uo,"findConfigPath",{enumerable:!0,get:function(){return wde.findConfigPath}})});var e$=x(Ho=>{"use strict";p();var xde=Ho&&Ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ho,"__esModule",{value:!0});Ho.NodeFileSystem=void 0;var Gi=Kt(),hw=xde(ce("node:fs/promises"));Ho.NodeFileSystem={async readFile(e){return hw.default.readFile(Gi.path.fsPath(e),"utf8")},async readDirectory(e){return(await hw.default.readdir(Gi.path.fsPath(e),{withFileTypes:!0})).map(r=>[Gi.path.join(e,r.name),r.isDirectory()?Gi.FileType.Directory:Gi.FileType.File])},async stat(e){try{let t=await hw.default.stat(Gi.path.fsPath(e));return{type:t.isDirectory()?Gi.FileType.Directory:Gi.FileType.File,size:t.size}}catch(t){throw new Error(`Failed to get file stat: ${t}`)}}}});var Fde=x(nt=>{"use strict";p();var Ede=nt&&nt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),r$=nt&&nt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ede(t,e,r)},n$=nt&&nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nt,"__esModule",{value:!0});nt.loadConfig=nt.NodeFileSystem=void 0;nt.toSourceCode=s$;nt.check=Dde;nt.checkAndAutofix=jde;nt.themeCheckRun=mw;nt.getThemeAndConfig=a$;nt.getTheme=o$;nt.getThemeFilesPathPattern=c$;var ht=Kt(),Ade=nF(),Ode=hF(),Nde=oe(),Pde=n$(ce("node:fs/promises")),Hl=n$(ce("node:path")),qde=ce("node:util"),i$=du(),Lde=gg(),Cde=FF(),t$=Z4(),Wo=e$();Object.defineProperty(nt,"NodeFileSystem",{enumerable:!0,get:function(){return Wo.NodeFileSystem}});var Ide=ce("node:url"),Mde=(0,qde.promisify)(Lde);r$(Kt(),nt);r$(my(),nt);var Rde=async(e,t)=>(e??=await(0,t$.findConfigPath)(t),(0,t$.loadConfig)(e,t));nt.loadConfig=Rde;async function s$(e){try{let t=await Pde.default.readFile(e,"utf8");return(0,ht.toSourceCode)(ht.path.normalize(i$.URI.file(e)),t)}catch{return}}async function Dde(e,t){return(await mw(e,t)).offenses}async function jde(e,t){let{theme:r,offenses:n}=await mw(e,t);await(0,Cde.autofix)(r,n)}async function mw(e,t,r=()=>{}){let{theme:n,config:i}=await a$(e,t),s=new Ode.ThemeLiquidDocsManager(r),o=(await ht.JSONValidator.create(s,i))?.isValid,c=n.map(v=>(0,ht.toSchema)(i.context,v.uri,v,o)),l=new Map(n.filter(v=>(0,ht.isBlock)(v.uri)).map(v=>[Hl.default.basename(v.uri,".liquid"),(0,ht.memo)(async()=>(0,ht.toSchema)(i.context,v.uri,v,o))])),f=new Map(n.filter(v=>(0,ht.isSection)(v.uri)).map(v=>[Hl.default.basename(v.uri,".liquid"),(0,ht.memo)(async()=>(0,ht.toSchema)(i.context,v.uri,v,o))])),m=new Map(n.map(v=>[Hl.default.relative(i$.URI.file(e).toString(),v.uri),(0,ht.memo)(async()=>{let w=v.ast;if((0,Nde.isLiquidHtmlNode)(w)&&(0,ht.filePathSupportsLiquidDoc)(v.uri))return(0,ht.extractDocDefinition)(v.uri,w)})])),d=new Map(n.filter(v=>v.uri.endsWith(".liquid")).map(v=>[v.uri,(0,ht.memo)(async()=>(0,ht.extractCSSClassesFromLiquidUri)(v.uri,Wo.NodeFileSystem))]));try{let v=ht.path.join(i.rootUri,"assets"),w=await Wo.NodeFileSystem.readDirectory(v);for(let[T]of w.filter(([y])=>y.endsWith(".css")))d.set(T,(0,ht.memo)(async()=>(0,ht.extractCSSClassesFromAssetUri)(T,Wo.NodeFileSystem)))}catch{}let g=async v=>f.get(v)?.(),_=async v=>l.get(v)?.(),k;try{k=await(0,Ade.buildThemeGraph)(i.rootUri,{fs:Wo.NodeFileSystem,getSectionSchema:g,getBlockSchema:_,getWebComponentDefinitionReference:()=>{},mode:i.context})}catch{}let b=await(0,ht.check)(n,i,{fs:Wo.NodeFileSystem,themeDocset:s,jsonValidationSet:s,getSectionSchema:g,getBlockSchema:_,getAppBlockSchema:async v=>l.get(v)?.(),getDocDefinition:async v=>m.get(v)?.(),getCSSClassesForURI:async v=>d.get(v)?.()??new Set,async getReferences(v){return k?k.modules[v]?.references??[]:[]},async getDependencies(v){return k?k.modules[v]?.dependencies??[]:[]}});return{theme:n,config:i,offenses:b}}async function a$(e,t){let r=await(0,nt.loadConfig)(t,e);return{theme:await o$(r),config:r}}async function o$(e){let t=c$(e.rootUri),r=await Mde(t,{absolute:!0}).then(i=>i.filter(s=>!(0,ht.isIgnored)(s,e)));return(await Promise.all(r.map(s$))).filter(i=>i!==void 0)}function c$(e){return Hl.default.normalize(Hl.default.join((0,Ide.fileURLToPath)(e),"**/*.{liquid,json}")).replace(/\\/g,"/")}});export{oe as a,du as b,Gd as c,Me as d,ue as e,Wn as f,_u as g,Kd as h,Qd as i,vi as j,Yd as k,qt as l,dr as m,bi as n,Vt as o,vu as p,bu as q,Xd as r,bn as s,Es as t,Lt as u,Xe as v,Zd as w,Ya as x,ep as y,Xa as z,tp as A,rp as B,np as C,pr as D,ip as E,sp as F,ap as G,cp as H,up as I,lp as J,As as K,Hb as L,Zt as M,zJ as N,Gq as O,Za as P,D_e as Q,Gb as R,Os as S,RL as T,DL as U,Kt as V,nF as W,hF as X,aT as Y,hg as Z,RF as _,M4 as $,Fde as aa};
254
+ /*! Bundled license information:
255
+
256
+ isobject/index.js:
257
+ (*!
258
+ * isobject <https://github.com/jonschlinkert/isobject>
259
+ *
260
+ * Copyright (c) 2014-2015, Jon Schlinkert.
261
+ * Licensed under the MIT License.
262
+ *)
263
+
264
+ line-column/lib/line-column.js:
265
+ (**
266
+ * line-column - Convert efficiently index to/from line-column in a string
267
+ * @module lineColumn
268
+ * @license MIT
269
+ *)
270
+
271
+ cssesc/cssesc.js:
272
+ (*! https://mths.be/cssesc v3.0.0 by @mathias *)
273
+ */