@shopify/cli 3.94.3 → 4.1.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 (297) hide show
  1. package/README.md +2 -2
  2. package/bin/run.js +5 -1
  3. package/dist/analytics-5TEIW43T.js +1 -0
  4. package/dist/analytics-GG7CYCGL.js +1 -0
  5. package/dist/bootstrap.d.ts +5 -0
  6. package/dist/bootstrap.js +3 -0
  7. package/dist/chunk-2AJ5FI2K.js +7 -0
  8. package/dist/chunk-2GK56X53.js +1 -0
  9. package/dist/chunk-3D4JXJPS.js +2 -0
  10. package/dist/chunk-3NBK56IK.js +1 -0
  11. package/dist/chunk-3TNEIDOD.js +1 -0
  12. package/dist/chunk-3VZEETAV.js +1 -0
  13. package/dist/chunk-4DCQNGUV.js +19 -0
  14. package/dist/chunk-4IC626OL.js +1 -0
  15. package/dist/chunk-4LNCYIS3.js +1 -0
  16. package/dist/chunk-4ZGSSQC6.js +1 -0
  17. package/dist/chunk-54CAKCYR.js +144 -0
  18. package/dist/chunk-5CH3B62S.js +2 -0
  19. package/dist/chunk-5UHQVR2Z.js +1 -0
  20. package/dist/chunk-5WVAHE5E.js +1 -0
  21. package/dist/chunk-5Y7GIF2W.js +1 -0
  22. package/dist/chunk-67MH4AXG.js +1 -0
  23. package/dist/chunk-6CYMJ76C.js +9 -0
  24. package/dist/chunk-6G6TMKXF.js +28 -0
  25. package/dist/chunk-6HBRBQAN.js +6 -0
  26. package/dist/chunk-6ITDI2SD.js +1 -0
  27. package/dist/chunk-6M3ZYNGO.js +451 -0
  28. package/dist/chunk-6RE2SNCU.js +6 -0
  29. package/dist/chunk-6SF3ZETE.js +1 -0
  30. package/dist/chunk-6WL4GA2M.js +15 -0
  31. package/dist/chunk-75VPUOC5.js +1 -0
  32. package/dist/chunk-76R52ODR.js +1 -0
  33. package/dist/chunk-7ESSIN27.js +567 -0
  34. package/dist/chunk-7NH7CHVI.js +6 -0
  35. package/dist/chunk-7QIOUDCX.js +8 -0
  36. package/dist/chunk-7UYZQN4V.js +18 -0
  37. package/dist/chunk-7ZT57XT7.js +2 -0
  38. package/dist/chunk-AGNMOFJS.js +1 -0
  39. package/dist/chunk-BS3BKORT.js +16 -0
  40. package/dist/chunk-C2IK2HY3.js +4 -0
  41. package/dist/chunk-C7BTJ32Z.js +1 -0
  42. package/dist/chunk-CBXSPL4W.js +1 -0
  43. package/dist/chunk-CEIQFLCN.js +1 -0
  44. package/dist/chunk-CERXUPGC.js +14 -0
  45. package/dist/chunk-DCPBRWVC.js +1 -0
  46. package/dist/chunk-DN2IE3VY.js +1 -0
  47. package/dist/chunk-DRFGABEB.js +1 -0
  48. package/dist/chunk-E3EMHAJB.js +1 -0
  49. package/dist/chunk-EKXY5COY.js +1 -0
  50. package/dist/chunk-EQU4MUQJ.js +1 -0
  51. package/dist/chunk-F2QU6WWX.js +1 -0
  52. package/dist/chunk-FFQ5EWII.js +294 -0
  53. package/dist/chunk-FKMC5OFF.js +1 -0
  54. package/dist/chunk-FQWB2F75.js +3 -0
  55. package/dist/chunk-FUOIGXI4.js +1 -0
  56. package/dist/chunk-FYFNUDOC.js +19 -0
  57. package/dist/chunk-G4BPGWJC.js +1 -0
  58. package/dist/chunk-GVQIPEZT.js +1 -0
  59. package/dist/chunk-GZS44BUW.js +102 -0
  60. package/dist/chunk-HIBX234C.js +6 -0
  61. package/dist/chunk-HRUGYZZ4.js +2 -0
  62. package/dist/chunk-HUIJMGVJ.js +586 -0
  63. package/dist/chunk-HZA6IAA4.js +1 -0
  64. package/dist/chunk-IU2ZQ6TE.js +2 -0
  65. package/dist/chunk-IX5ICOBV.js +7 -0
  66. package/dist/chunk-IZ3C5J7G.js +5 -0
  67. package/dist/chunk-JAO53IH2.js +1 -0
  68. package/dist/chunk-JCL2RRU6.js +1 -0
  69. package/dist/chunk-JQJBBXMX.js +17 -0
  70. package/dist/chunk-JUVAGMIH.js +1 -0
  71. package/dist/chunk-JXW374CL.js +359 -0
  72. package/dist/chunk-K2WUCOQJ.js +32 -0
  73. package/dist/chunk-K6CTUBFC.js +12 -0
  74. package/dist/chunk-KHSYW7I4.js +1 -0
  75. package/dist/chunk-KHTV6PBV.js +12 -0
  76. package/dist/chunk-KKTW6ZCA.js +5 -0
  77. package/dist/chunk-KLMDWDT2.js +1 -0
  78. package/dist/chunk-KN3WTTHZ.js +1 -0
  79. package/dist/chunk-KR6QDE7D.js +2 -0
  80. package/dist/chunk-KZOBF55B.js +1 -0
  81. package/dist/chunk-L2MGAEV3.js +6 -0
  82. package/dist/chunk-LDGAHMS7.js +159 -0
  83. package/dist/chunk-M2D7USAX.js +1 -0
  84. package/dist/chunk-M2ZHFKPN.js +6 -0
  85. package/dist/chunk-M3RYUB22.js +1 -0
  86. package/dist/chunk-M56NDIMD.js +1 -0
  87. package/dist/chunk-MCVRONUY.js +1 -0
  88. package/dist/chunk-MHWV5RQV.js +10 -0
  89. package/dist/chunk-MOA33ZFO.js +1 -0
  90. package/dist/chunk-MWGBTOO3.js +1 -0
  91. package/dist/chunk-MWY3A7O3.js +4 -0
  92. package/dist/chunk-N5PQPIBF.js +374 -0
  93. package/dist/chunk-NF2ABOOU.js +1 -0
  94. package/dist/chunk-NMBBTTIH.js +2 -0
  95. package/dist/chunk-NPEVESCV.js +3 -0
  96. package/dist/chunk-OBEWZXOQ.js +2 -0
  97. package/dist/chunk-OCOY5MV2.js +1 -0
  98. package/dist/chunk-OLZHWPZP.js +1 -0
  99. package/dist/chunk-OTY24J2W.js +1 -0
  100. package/dist/chunk-OY3PNHPZ.js +103 -0
  101. package/dist/chunk-P6XE4MH5.js +1 -0
  102. package/dist/chunk-PAP22IQO.js +264 -0
  103. package/dist/chunk-PD5ZHJWI.js +1 -0
  104. package/dist/chunk-PIBY5DDZ.js +1 -0
  105. package/dist/chunk-PYVAWAUO.js +5 -0
  106. package/dist/chunk-Q33IBIVJ.js +1 -0
  107. package/dist/chunk-Q4T2T2QE.js +15 -0
  108. package/dist/chunk-QA23HIH4.js +1 -0
  109. package/dist/chunk-QBSKKQBN.js +1 -0
  110. package/dist/chunk-QFWIDATO.js +1 -0
  111. package/dist/chunk-QSTEVZFQ.js +1 -0
  112. package/dist/chunk-S6EJHWJL.js +1 -0
  113. package/dist/chunk-SIMFNECG.js +1 -0
  114. package/dist/chunk-SXTMSGUE.js +1 -0
  115. package/dist/chunk-T542UQBY.js +1 -0
  116. package/dist/chunk-TQ6HYDVC.js +1 -0
  117. package/dist/chunk-TYZXGSHO.js +3 -0
  118. package/dist/chunk-UHJYPEY2.js +1 -0
  119. package/dist/chunk-UJVH7FZS.js +1 -0
  120. package/dist/chunk-UJXUSRQK.js +1 -0
  121. package/dist/chunk-ULFWK45W.js +64 -0
  122. package/dist/chunk-ULQG3XQS.js +1 -0
  123. package/dist/chunk-URZPVSJZ.js +559 -0
  124. package/dist/chunk-UWJ73J4B.js +1 -0
  125. package/dist/chunk-UXVZ2P63.js +1411 -0
  126. package/dist/chunk-UYXEA3Y6.js +1 -0
  127. package/dist/chunk-VBUZWRUL.js +1 -0
  128. package/dist/chunk-VICYNG2W.js +1 -0
  129. package/dist/chunk-WDC3KIZT.js +2 -0
  130. package/dist/chunk-WFXRSKRK.js +1 -0
  131. package/dist/chunk-WSDN25F5.js +1 -0
  132. package/dist/chunk-XEFQQPL4.js +1 -0
  133. package/dist/chunk-XITQULK4.js +3 -0
  134. package/dist/chunk-XONFGLJQ.js +847 -0
  135. package/dist/chunk-XOTA6JTZ.js +11 -0
  136. package/dist/chunk-XR6GMMEU.js +1 -0
  137. package/dist/chunk-XULPJ6UG.js +1 -0
  138. package/dist/chunk-XXVEHDVO.js +1 -0
  139. package/dist/chunk-Y7JGYGV7.js +1 -0
  140. package/dist/chunk-YOZNRLFC.js +1 -0
  141. package/dist/chunk-YTNDFQJT.js +3 -0
  142. package/dist/chunk-Z35BTAM6.js +2 -0
  143. package/dist/chunk-ZBRRJDGW.js +1 -0
  144. package/dist/chunk-ZGK3LGCH.js +4 -0
  145. package/dist/chunk-ZR76GGZ6.js +5 -0
  146. package/dist/chunk-ZSBA6VIC.js +1 -0
  147. package/dist/chunk-ZTMSBSYD.js +1 -0
  148. package/dist/cli/commands/app/app-logs/sources.js +2 -0
  149. package/dist/cli/commands/app/build.js +1 -0
  150. package/dist/cli/commands/app/bulk/cancel.js +1 -0
  151. package/dist/cli/commands/app/bulk/execute.js +9 -0
  152. package/dist/cli/commands/app/bulk/status.js +5 -0
  153. package/dist/cli/commands/app/config/link.js +4 -0
  154. package/dist/cli/commands/app/config/pull.js +1 -0
  155. package/dist/cli/commands/app/config/use.js +1 -0
  156. package/dist/cli/commands/app/config/validate.js +3 -0
  157. package/dist/cli/commands/app/demo/watcher.js +1 -0
  158. package/dist/cli/commands/app/deploy.js +22 -0
  159. package/dist/cli/commands/app/dev/clean.js +5 -0
  160. package/dist/cli/commands/app/dev.js +320 -0
  161. package/dist/cli/commands/app/env/pull.js +11 -0
  162. package/dist/cli/commands/app/env/show.js +1 -0
  163. package/dist/cli/commands/app/execute.js +1 -0
  164. package/dist/cli/commands/app/function/build.js +1 -0
  165. package/dist/cli/commands/app/function/info.js +16 -0
  166. package/dist/cli/commands/app/function/replay.js +5 -0
  167. package/dist/cli/commands/app/function/run.js +1 -0
  168. package/dist/cli/commands/app/function/schema.js +1 -0
  169. package/dist/cli/commands/app/function/typegen.js +1 -0
  170. package/dist/cli/commands/app/generate/extension.js +5 -0
  171. package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
  172. package/dist/cli/commands/app/import-extensions.js +1 -0
  173. package/dist/cli/commands/app/info.js +11 -0
  174. package/dist/cli/commands/app/init.js +10 -0
  175. package/dist/cli/commands/app/logs.js +2 -0
  176. package/dist/cli/commands/app/release.js +4 -0
  177. package/dist/cli/commands/app/versions/list.js +1 -0
  178. package/dist/cli/commands/app/webhook/trigger.js +25 -0
  179. package/dist/cli/commands/auth/login.js +1 -20
  180. package/dist/cli/commands/auth/logout.js +1 -12
  181. package/dist/cli/commands/cache/clear.js +1 -11
  182. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
  183. package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
  184. package/dist/cli/commands/config/autoupgrade/off.js +1 -22
  185. package/dist/cli/commands/config/autoupgrade/on.js +1 -22
  186. package/dist/cli/commands/config/autoupgrade/status.js +1 -30
  187. package/dist/cli/commands/debug/command-flags.js +1 -79
  188. package/dist/cli/commands/docs/generate.d.ts +0 -8
  189. package/dist/cli/commands/docs/generate.js +1 -157
  190. package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
  191. package/dist/cli/commands/doctor-release/theme/index.js +1 -56
  192. package/dist/cli/commands/help.js +1 -26
  193. package/dist/cli/commands/kitchen-sink/async.js +1 -16
  194. package/dist/cli/commands/kitchen-sink/index.js +1 -21
  195. package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
  196. package/dist/cli/commands/kitchen-sink/static.js +1 -16
  197. package/dist/cli/commands/notifications/generate.js +1 -11
  198. package/dist/cli/commands/notifications/list.js +1 -33
  199. package/dist/cli/commands/organization/list.js +1 -0
  200. package/dist/cli/commands/search.js +1 -27
  201. package/dist/cli/commands/theme/check.js +1 -0
  202. package/dist/cli/commands/theme/console.js +15 -0
  203. package/dist/cli/commands/theme/delete.js +7 -0
  204. package/dist/cli/commands/theme/dev.js +26 -0
  205. package/dist/cli/commands/theme/duplicate.js +32 -0
  206. package/dist/cli/commands/theme/info.js +1 -0
  207. package/dist/cli/commands/theme/init.js +8 -0
  208. package/dist/cli/commands/theme/language-server.js +1 -0
  209. package/dist/cli/commands/theme/list.js +1 -0
  210. package/dist/cli/commands/theme/metafields/pull.js +3 -0
  211. package/dist/cli/commands/theme/open.js +8 -0
  212. package/dist/cli/commands/theme/package.js +7 -0
  213. package/dist/cli/commands/theme/preview.js +1 -0
  214. package/dist/cli/commands/theme/profile.js +3 -0
  215. package/dist/cli/commands/theme/publish.js +7 -0
  216. package/dist/cli/commands/theme/pull.js +3 -0
  217. package/dist/cli/commands/theme/push.js +28 -0
  218. package/dist/cli/commands/theme/rename.js +6 -0
  219. package/dist/cli/commands/theme/share.js +3 -0
  220. package/dist/cli/commands/upgrade.js +1 -17
  221. package/dist/cli/commands/version.js +1 -10
  222. package/dist/command-registry.d.ts +8 -0
  223. package/dist/command-registry.js +1 -0
  224. package/dist/conf-store-BMZFATRQ.js +1 -0
  225. package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
  226. package/dist/deprecations-7LHRXPXU.js +1 -0
  227. package/dist/dist-LDXPBYSZ.js +1 -0
  228. package/dist/dist-V63ILV6L.js +1 -0
  229. package/dist/environments-5X7S2O5U.js +1 -0
  230. package/dist/error-ZRLNNGIQ.js +1 -0
  231. package/dist/error-handler-PRZFHPRG.js +1 -0
  232. package/dist/fs-H7V6IRSH.js +1 -0
  233. package/dist/hooks/app-init.d.ts +9 -0
  234. package/dist/hooks/app-init.js +1 -0
  235. package/dist/hooks/did-you-mean.d.ts +1 -0
  236. package/dist/hooks/did-you-mean.js +1 -0
  237. package/dist/hooks/hydrogen-init.d.ts +7 -0
  238. package/dist/hooks/hydrogen-init.js +1 -0
  239. package/dist/hooks/plugin-plugins.d.ts +1 -0
  240. package/dist/hooks/plugin-plugins.js +1 -0
  241. package/dist/hooks/postrun.js +1 -1
  242. package/dist/hooks/prerun.js +1 -1
  243. package/dist/hooks/public-metadata.d.ts +1 -0
  244. package/dist/hooks/public-metadata.js +1 -0
  245. package/dist/hooks/sensitive-metadata.d.ts +1 -0
  246. package/dist/hooks/sensitive-metadata.js +1 -0
  247. package/dist/hooks/tunnel-provider.d.ts +1 -0
  248. package/dist/hooks/tunnel-provider.js +1 -0
  249. package/dist/hooks/tunnel-start.d.ts +1 -0
  250. package/dist/hooks/tunnel-start.js +1 -0
  251. package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
  252. package/dist/index.js +254 -3668
  253. package/dist/is-global-IOWPCT2U.js +1 -0
  254. package/dist/latest-version-EFWBOTWM.js +49 -0
  255. package/dist/lib-5L7UKDEK.js +1 -0
  256. package/dist/lib-C3VO2BQW.js +1 -0
  257. package/dist/lib-QB6I6CTC.js +1 -0
  258. package/dist/local-MTKXSZ3I.js +1 -0
  259. package/dist/local-storage-CYEL4MXF.js +1 -0
  260. package/dist/metadata-NOVBMKLM.js +1 -0
  261. package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
  262. package/dist/node-package-manager-N5CVNHA3.js +1 -0
  263. package/dist/notifications-system-YX2GPLDW.js +1 -0
  264. package/dist/npa-ICFSA3NL.js +1 -0
  265. package/dist/output-Q46DT46U.js +1 -0
  266. package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
  267. package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
  268. package/dist/system-E6Q3OBX3.js +1 -0
  269. package/dist/tsconfig.tsbuildinfo +1 -1
  270. package/dist/typescript-K5CWIA4V.js +1 -0
  271. package/dist/ui-WRS2IDPP.js +1 -0
  272. package/dist/upgrade-TKUN2M5P.js +1 -0
  273. package/dist/version-5W5RVAPA.js +1 -0
  274. package/dist/version-BQJ3FPXD.js +1 -0
  275. package/dist/workerd-GOK6GWEX.js +18 -0
  276. package/oclif.manifest.json +5136 -5945
  277. package/package.json +17 -41
  278. package/dist/chunk-45T5XUIM.js +0 -1
  279. package/dist/chunk-52KHWFYF.js +0 -1
  280. package/dist/chunk-66TIGB4U.js +0 -415
  281. package/dist/chunk-675GKVCB.js +0 -3
  282. package/dist/chunk-7ES6PV7M.js +0 -847
  283. package/dist/chunk-BF7JM4FH.js +0 -396
  284. package/dist/chunk-FU2Y2M3M.js +0 -5
  285. package/dist/chunk-IDQ4X47Z.js +0 -3
  286. package/dist/chunk-JBSYWYIP.js +0 -2
  287. package/dist/chunk-PBKIXB7L.js +0 -63
  288. package/dist/chunk-SVA22NZQ.js +0 -607
  289. package/dist/error-handler-LC7FITE7.js +0 -1
  290. package/dist/http-proxy-node16-TTURN6MD.js +0 -38
  291. package/dist/lib-3WHF5XD3.js +0 -1
  292. package/dist/local-TWIGLQ7X.js +0 -1
  293. package/dist/node-package-manager-3UCLJPGW.js +0 -1
  294. package/dist/npa-OKDXXRCU.js +0 -1
  295. package/dist/ui-UYE67X4Y.js +0 -1
  296. package/dist/workerd-37BZZEVW.js +0 -18
  297. /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import{a as i}from"./chunk-OCOY5MV2.js";import{r as t}from"./chunk-ZSBA6VIC.js";import{b as r}from"./chunk-XOTA6JTZ.js";import{u as e}from"./chunk-6G6TMKXF.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var o=class extends r{static{this.summary="Enable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Enable automatic upgrades for Shopify CLI.
2
+
3
+ When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version once per day. Major version upgrades are skipped and must be done manually.
4
+
5
+ To disable auto-upgrade, run \`shopify config autoupgrade off\`.
6
+ `}static{this.description=this.descriptionWithoutMarkdown()}async run(){t(!0),e({body:i.on})}};export{o as a};
@@ -0,0 +1 @@
1
+ import{P as m}from"./chunk-6G6TMKXF.js";import{d as c}from"./chunk-M56NDIMD.js";import{Gb as l,Ib as n,Qb as a}from"./chunk-N5PQPIBF.js";import{g as s}from"./chunk-VPRTJUIN.js";s();import{createServer as f}from"net";var u=new Set;async function P(r,t){if(r&&await g(r))return a(n`Port ${r.toString()} is free`),r;a(n`Getting a random port...`);let e=await w(()=>d(),t?.maxTries,t?.waitTimeInSeconds);for(let o=0;o<(t?.maxTries??5)&&u.has(e);o++)e=await w(()=>d(),t?.maxTries,t?.waitTimeInSeconds);return a(n`Random port obtained: ${l.raw(`${e}`)}`),u.add(e),e}async function g(r){return new Promise(t=>{let e=f();e.unref(),e.once("error",()=>t(!1)),e.listen(r,"localhost",()=>{e.close(()=>t(!0))})})}function d(){return new Promise((r,t)=>{let e=f();e.unref(),e.once("error",t),e.listen(0,"localhost",()=>{let o=e.address();if(o&&typeof o=="object"){let i=o.port;e.close(()=>r(i))}else e.close(()=>t(new Error("Unable to determine assigned port")))})})}async function w(r,t=5,e=1){let o=1;for(;;)try{return await r()}catch(i){if(o++<t)a(n`Unknown problem getting a random port: ${i.message}`),await m(e);else throw new c(i.message)}}export{P as a,g as b};
@@ -0,0 +1,15 @@
1
+ import{Ea as ls,Gb as bt,Ib as ps,Pa as hs,Qa as cs,Qb as ms,Ta as us,Wa as fs,bb as ds,ma as yt,pa as we,ua as as,wa as wt}from"./chunk-N5PQPIBF.js";import{d as ye,g as gt,i as os}from"./chunk-IU2ZQ6TE.js";import{a as G,c as pi,e as mi,g as ge}from"./chunk-VPRTJUIN.js";var ci=pi(l=>{"use strict";ge();Object.defineProperty(l,"__esModule",{value:!0});var gi=G("stream"),W=G("path"),K=G("fs"),Ds=G("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
2
+ `?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},D=class{liquidMethodMissing(e,s){}},yi=Object.prototype.toString,gs=String.prototype.toLowerCase,Zt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function x(t){return typeof t=="function"}function wi(t){return t&&x(t.then)}function Se(t){return t&&x(t.next)&&x(t.throw)&&x(t.return)}function Qt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function c(t){return t=g(t),d(t)?t:k(t)?"":S(t)?t.map(e=>c(e)).join(""):String(t)}function pe(t){return t=g(t),S(t)?t:d(t)&&t.length>0?[t]:ki(t)?Array.from(t):ft(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=g(t),k(t)?[]:S(t)?t:[t]}function g(t){return t instanceof D&&x(t.valueOf)?t.valueOf():t}function Tt(t){return+g(t)||0}function ut(t){return typeof t=="number"}function Es(t){return t&&x(t.toLiquid)?Es(t.toLiquid()):t}function k(t){return t==null}function bi(t){return t===void 0}function S(t){return yi.call(t)==="[object Array]"}function Vs(t){return t&&ut(t.length)}function ki(t){return ft(t)&&Symbol.iterator in t}function ys(t,e){t=t||{};for(let s in t)if(Zt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function Ti(t){return t[t.length-1]}function ft(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Ps(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function ne(t,e,s=" "){return Cs(t,e,s,(i,r)=>r+i)}function xi(t,e,s=" "){return Cs(t,e,s,(i,r)=>i+r)}function Cs(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function $s(t){return t}function Si(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function _i(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Li(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Fi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=gs.call(t),e=gs.call(e),t<e)?-1:t>e?1:0}function dt(t){return function(...e){return t.call(this,...e.map(g))}}function V(t){return function(...e){return t.call(this,...e.map(Tt))}}function*be(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var ws="__liquidClass__",E=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,ws,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:Oi(this.token),enumerable:!1}),this.message=vi(this.message,this.token),this.stack=this.message+`
3
+ `+this.context+`
4
+ `+this.stack,this.originalError&&(this.stack+=`
5
+ From `+this.originalError.stack)}static is(e){return e?.[ws]==="LiquidError"}},_e=class extends E{constructor(e,s){super(e,s),this.name="TokenizationError",super.update()}},Le=class extends E{constructor(e,s){super(e,s),this.name="ParseError",this.message=e.message,super.update()}},Fe=class extends E{constructor(e,s){super(e,s.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return e.name==="RenderError"}},Oe=class extends E{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";let s=e.length>1?"s":"";this.message=`${e.length} error${s} found`,super.update()}static is(e){return e.name==="LiquidErrors"}},ve=class extends E{constructor(e,s){super(e,s),this.name="UndefinedVariableError",this.message=e.message,super.update()}},xt=class extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}},ze=class extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}};function Oi(t){let[e,s]=t.getPosition(),i=t.input.split(`
6
+ `),r=Math.max(e-2,1),n=Math.min(e+3,i.length);return Ps(r,n+1).map(a=>{let h=a===e?">> ":" ",f=ne(String(a),String(n).length),u=`${h}${f}| `,p=a===e?`
7
+ `+ne("^",s+u.length):"";return u+=i[a-1],u+=p,u}).join(`
8
+ `)}function vi(t,e){e.file&&(t+=`, file:${e.file}`);let[s,i]=e.getPosition();return t+=`, line:${s}, col:${i}`,t}var w=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],zi=1,ee=4,bs=8,js=16,Ri=32,Ai=64,Ni=128;function ke(t){let e=t.charCodeAt(0);return e>=128?!w[e]:!!(w[e]&zi)}w[160]=w[5760]=w[6158]=w[8192]=w[8193]=w[8194]=w[8195]=w[8196]=w[8197]=w[8198]=w[8199]=w[8200]=w[8201]=w[8202]=w[8232]=w[8233]=w[8239]=w[8287]=w[12288]=ee;w[8220]=w[8221]=Ni;function _(t,e){if(!t){let s=typeof e=="function"?e():e||`expect ${t} to be true`;throw new ze(s)}}function Re(t,e=`unexpected ${JSON.stringify(t)}`){_(!t,e)}var St=class extends D{equals(e){return k(g(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},oe=class t extends D{equals(e){return e instanceof t?!1:(e=g(e),d(e)||S(e)?e.length===0:ft(e)?Object.keys(e).length===0:!1)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof t}},_t=class t extends oe{equals(e){return e===!1||k(g(e))?!0:d(e)?/^\s*$/.test(e):super.equals(e)}static is(e){return e instanceof t}},ae=class extends D{constructor(e,s,i){super(),this.i=0,this.length=e,this.name=`${i}-${s}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return this.i===0}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}},Ae=class{constructor(){this.buffer=""}write(e){this.buffer+=c(e)}},Lt=class{constructor(){this.buffer="",this.stream=new gi.PassThrough}write(e){this.stream.write(c(e))}error(e){this.stream.emit("error",e)}end(){this.stream.end()}},Ft=class{constructor(){this.buffer=""}write(e){e=g(e),typeof e!="string"&&this.buffer===""?this.buffer=e:this.buffer=c(this.buffer)+c(e)}},Ne=class extends D{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){let e=new Ae;return yield this.superBlockRender(e),e.buffer}};function A(t){return t&&x(t.equals)&&x(t.gt)&&x(t.geq)&&x(t.lt)&&x(t.leq)}var ks=new St,Is={true:!0,false:!1,nil:ks,null:ks,empty:new oe,blank:new _t};function Ot(t){let e={};for(let[s,i]of Object.entries(t)){let r=e;for(let n=0;n<s.length;n++){let o=s[n];r[o]=r[o]||{},n===s.length-1&&ke(s[n])&&(r[o].needBoundary=!0),r=r[o]}r.data=i,r.end=!0}return e}function vt(t,e){let s=e||t;return(i,...r)=>i?s(...r):t(...r)}async function q(t){if(!Se(t))return t;let e,s=!1,i="next";do{let r=t[i](e);s=r.done,e=r.value,i="next";try{Se(e)&&(e=q(e)),wi(e)&&(e=await e)}catch(n){i="throw",e=n}}while(!s);return e}function M(t){if(!Se(t))return t;let e,s=!1,i="next";do{let r=t[i](e);if(s=r.done,e=r.value,i="next",Se(e))try{e=M(e)}catch(n){i="throw",e=n}}while(!s);return e}var qi=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Mi(t){return[31,Di(t)?29:28,31,30,31,30,31,31,30,31,30,31]}function Bs(t){let e=0;for(let s=0;s<t.getMonth();++s)e+=Mi(t)[s];return e+t.getDate()}function Ts(t,e){let s=Bs(t)+(e-t.getDay()),r=7-new Date(t.getFullYear(),0,1).getDay()+e;return String(Math.floor((s-r)/7)+1)}function Di(t){let e=t.getFullYear();return!!((e&3)===0&&(e%100||e%400===0&&e))}function Ei(t){let e=t.getDate();if([11,12,13].includes(e))return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function Vi(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}var Pi={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},Ci=new Set("aAbBceklpP");function xs(t,e){let s=Math.abs(t.getTimezoneOffset()),i=Math.floor(s/60),r=s%60;return(t.getTimezoneOffset()>0?"-":"+")+ne(i,2,"0")+(e.flags[":"]?":":"")+ne(r,2,"0")}var zt={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>Vi(t),d:t=>t.getDate(),e:t=>t.getDate(),H:t=>t.getHours(),I:t=>String(t.getHours()%12||12),j:t=>Bs(t),k:t=>t.getHours(),l:t=>String(t.getHours()%12||12),L:t=>t.getMilliseconds(),m:t=>t.getMonth()+1,M:t=>t.getMinutes(),N:(t,e)=>{let s=Number(e.width)||9,i=String(t.getMilliseconds()).slice(0,s);return e.memoryLimit?.use(s-i.length),xi(i,s,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>Ei(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>Ts(t,0),w:t=>t.getDay(),W:t=>Ts(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:xs,Z:(t,e)=>t.getTimeZoneName()||xs(t,e),t:()=>" ",n:()=>`
9
+ `,"%":()=>"%"};zt.h=zt.b;function Te(t,e,s){let i="",r=e,n;for(;n=qi.exec(r);)i+=r.slice(0,n.index),r=r.slice(n.index+n[0].length),i+=$i(t,n,s);return i+r}function $i(t,e,s){let[i,r="",n,o,a]=e,h=zt[a];if(!h)return i;let f={};for(let y of r)f[y]=!0;let u=String(h(t,{flags:f,width:n,modifier:o,memoryLimit:s})),p=Ci.has(a)?" ":"0",m=n||Pi[a]||0;return f["^"]?u=u.toUpperCase():f["#"]&&(u=Si(u)),f._?p=" ":f[0]&&(p="0"),f["-"]&&(m=0),s?.use(Number(m)-u.length),ne(u,m,p)}function Us(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}var ji=6e4,Ii=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,Ws=["January","February","March","April","May","June","July","August","September","October","November","December"],Bi=Ws.map(t=>t.slice(0,3)),Hs=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ui=Hs.map(t=>t.slice(0,3)),I=class t{constructor(e,s,i){this.locale=s,this.DateTimeFormat=Us(),this.date=new Date(e),this.timezoneFixed=i!==void 0,i===void 0&&(i=this.date.getTimezoneOffset()),this.timezoneOffset=d(i)?t.getTimezoneOffset(i,this.date):i,this.timezoneName=d(i)?i:"";let r=(this.date.getTimezoneOffset()-this.timezoneOffset)*ji,n=this.date.getTime()+r;this.displayDate=new Date(n)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,s){return s?.timeZone?this.date.toLocaleString(e,s):this.displayDate.toLocaleString(e,s)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){if(this.timezoneFixed)return this.timezoneName;if(this.DateTimeFormat)return this.DateTimeFormat().resolvedOptions().timeZone}getLongMonthName(){return this.format({month:"long"})??Ws[this.getMonth()]}getShortMonthName(){return this.format({month:"short"})??Bi[this.getMonth()]}getLongWeekdayName(){return this.format({weekday:"long"})??Hs[this.displayDate.getDay()]}getShortWeekdayName(){return this.format({weekday:"short"})??Ui[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,s){let i=e.match(Ii);if(i&&i[1]==="Z")return new t(+new Date(e),s,0);if(i&&i[2]&&i[3]&&i[4]){let[,,r,n,o]=i,a=(r==="+"?-1:1)*(parseInt(n,10)*60+parseInt(o,10));return new t(+new Date(e),s,a)}return new t(e,s)}static getTimezoneOffset(e,s){let i=s.toLocaleString("en-US",{timeZone:e}),r=s.toLocaleString("en-US",{timeZone:"UTC"}),n=new Date(i);return(+new Date(r)-+n)/(60*1e3)}},le=class{constructor(e,s){this.base=0,this.message=`${e} limit exceeded`,this.limit=s}use(e){+e>0&&(_(this.base+ +e<=this.limit,this.message),this.base+=+e)}check(e){+e>0&&_(+e<=this.limit,this.message)}},he=class extends O{constructor(e,[s,i],r,n,o,a,h,f){super(e,r,n,o,f),this.trimLeft=!1,this.trimRight=!1;let u=r[s]==="-",p=r[i-1]==="-",m=u?s+1:s,y=p?i-1:i;for(;m<y&&w[r.charCodeAt(m)]&ee;)m++;for(;y>m&&w[r.charCodeAt(y-1)]&ee;)y--;this.contentRange=[m,y],this.trimLeft=u||a,this.trimRight=p||h}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}},ce=class extends he{constructor(e,s,i,r,n){let{trimTagLeft:o,trimTagRight:a,tagDelimiterLeft:h,tagDelimiterRight:f}=r,[u,p]=[s+h.length,i-f.length];super(l.TokenKind.Tag,[u,p],e,s,i,o,a,n),this.tokenizer=new z(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},Rt=class extends he{constructor(e,s,i,r,n){let{trimOutputLeft:o,trimOutputRight:a,outputDelimiterLeft:h,outputDelimiterRight:f}=r,u=[s+h.length,i-f.length];super(l.TokenKind.Output,u,e,s,i,o,a,n)}},qe=class extends O{constructor(e,s,i,r){super(l.TokenKind.HTML,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}},At=class extends O{constructor(e,s,i,r){super(l.TokenKind.Number,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Number(this.getText())}},se=class extends O{constructor(e,s,i,r){super(l.TokenKind.Word,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=this.getText()}},Nt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Literal,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.literal=this.getText(),this.content=Is[this.literal]}},Ss={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},Wi={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0},qt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Operator,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.operator=this.getText()}getPrecedence(){let e=this.getText();return e in Ss?Ss[e]:1}},Me=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.PropertyAccess,i,r,n,o),this.variable=e,this.props=s}},De=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Filter,i,r,n,o),this.name=e,this.args=s}},Mt=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Hash,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.name=r,this.value=n,this.file=o}},Hi=/[\da-fA-F]/,_s=/[0-7]/,Ls={b:"\b",f:"\f",n:`
10
+ `,r:"\r",t:" ",v:"\v"};function Fs(t){let e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function Yi(t){let e="";for(let s=1;s<t.length-1;s++){if(t[s]!=="\\"){e+=t[s];continue}if(Ls[t[s+1]]!==void 0)e+=Ls[t[++s]];else if(t[s+1]==="u"){let i=0,r=s+2;for(;r<=s+5&&Hi.test(t[r]);)i=i*16+Fs(t[r++]);s=r-1,e+=String.fromCharCode(i)}else if(!_s.test(t[s+1]))e+=t[++s];else{let i=s+1,r=0;for(;i<=s+3&&_s.test(t[i]);)r=r*8+Fs(t[i++]);s=i-1,e+=String.fromCharCode(r)}}return e}var Dt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Quoted,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Yi(this.getText())}},Et=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Range,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.lhs=r,this.rhs=n,this.file=o}},Vt=class extends he{constructor(e,s,i,r,n){super(l.TokenKind.Tag,[s,i],e,s,i,!1,!1,n),this.tokenizer=new z(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},Pt=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.FilteredValue,i,r,n,o),this.initial=e,this.filters=s,this.input=i,this.begin=r,this.end=n,this.file=o}},Ji={now:()=>Date.now()};function Ct(){return typeof global=="object"&&global.performance||typeof window=="object"&&window.performance||Ji}var $t=class{renderTemplatesToNodeStream(e,s){let i=new Lt;return Promise.resolve().then(()=>q(this.renderTemplates(e,s,i))).then(()=>i.end(),r=>i.error(r)),i.stream}*renderTemplates(e,s,i){i||(i=s.opts.keepOutputType?new Ft:new Ae),s.renderLimit.check(Ct().now());let r=[];for(let n of e){s.renderLimit.check(Ct().now());try{let o=yield n.render(s,i);if(o&&i.write(o),s.breakCalled||s.continueCalled)break}catch(o){let a=E.is(o)?o:new Fe(o,n);if(s.opts.catchAllErrors)r.push(a);else throw a}}if(r.length)throw new Oe(r);return i.buffer}},Ee=class{constructor(e){this.postfix=[...Ki(e)]}*evaluate(e,s){_(e,"unable to evaluate: context not defined");let i=[];for(let r of this.postfix)if(Kt(r)){let n=i.pop(),o;if(Wi[r.operator]===1)o=yield e.opts.operators[r.operator](n,e);else{let a=i.pop();o=yield e.opts.operators[r.operator](a,n,e)}i.push(o)}else i.push(yield T(r,e,s));return i[0]}valid(){return!!this.postfix.length}};function*T(t,e,s=!1){if(t){if("content"in t)return t.content;if(de(t))return yield Zi(t,e,s);if(Gt(t))return yield Qi(t,e)}}function*Zi(t,e,s){let i=[];for(let r of t.props)i.push(yield T(r,e,!1));try{if(t.variable){let r=yield T(t.variable,e,s);return yield e._getFromScope(r,i)}else return yield e._get(i)}catch(r){if(s&&r.name==="InternalUndefinedVariableError")return null;throw new ve(r,t)}}function Ys(t){return t.content}function*Qi(t,e){let s=yield T(t.lhs,e),i=yield T(t.rhs,e);return e.memoryLimit.use(i-s+1),Ps(+s,+i+1)}function*Ki(t){let e=[];for(let s of t)if(Kt(s)){for(;e.length&&e[e.length-1].getPrecedence()>s.getPrecedence();)yield e.pop();e.push(s)}else yield s;for(;e.length;)yield e.pop()}function U(t,e){return!me(t,e)}function me(t,e){return t=g(t),e.opts.jsTruthy?!t:t===!1||t===void 0||t===null}var Js={"==":$,"!=":(t,e)=>!$(t,e),">":(t,e)=>A(t)?t.gt(e):A(e)?e.lt(t):g(t)>g(e),"<":(t,e)=>A(t)?t.lt(e):A(e)?e.gt(t):g(t)<g(e),">=":(t,e)=>A(t)?t.geq(e):A(e)?e.leq(t):g(t)>=g(e),"<=":(t,e)=>A(t)?t.leq(e):A(e)?e.geq(t):g(t)<=g(e),contains:(t,e)=>(t=g(t),S(t)?t.some(s=>$(s,e)):x(t?.indexOf)?t.indexOf(g(e))>-1:!1),not:(t,e)=>me(g(t),e),and:(t,e,s)=>U(g(t),s)&&U(g(e),s),or:(t,e,s)=>U(g(t),s)||U(g(e),s)};function $(t,e){return A(t)?t.equals(e):A(e)?e.equals(t):(t=g(t),e=g(e),S(t)?S(e)&&Gi(t,e):t===e)}function Gi(t,e){return t.length!==e.length?!1:!t.some((s,i)=>!$(s,e[i]))}function Xi(t,e){return t.some(s=>$(s,e))}var ie=class{constructor(e,s,i,r){this.key=e,this.value=s,this.next=i,this.prev=r}},Ve=class{constructor(e,s=0){this.limit=e,this.size=s,this.cache={},this.head=new ie("HEAD",null,null,null),this.tail=new ie("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,s){if(this.cache[e])this.cache[e].value=s;else{let i=new ie(e,s,this.head.next,this.head);this.head.next.prev=i,this.head.next=i,this.cache[e]=i,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;let{value:s}=this.cache[e];return this.remove(e),this.write(e,s),s}remove(e){let s=this.cache[e];s.prev.next=s.next,s.next.prev=s.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}},er=t=>G.resolve(t,{paths:["."]}),tr=Qt(K.stat),sr=Qt(K.readFile);async function ir(t){try{return await tr(t),!0}catch{return!1}}function rr(t){return sr(t,"utf8")}function nr(t){try{return K.statSync(t),!0}catch{return!1}}function or(t){return K.readFileSync(t,"utf8")}function ar(t,e,s){return W.extname(e)||(e+=s),W.resolve(t,e)}function lr(t){try{return er(t)}catch{}}function hr(t){return W.dirname(t)}var Os=Qt(K.realpath);async function cr(t,e){try{let s=await Os(t),i=await Os(e),r=s.endsWith(W.sep)?s:s+W.sep;return i.startsWith(r)}catch{return!1}}function ur(t,e){try{let s=K.realpathSync(t),i=K.realpathSync(e),r=s.endsWith(W.sep)?s:s+W.sep;return i.startsWith(r)}catch{return!1}}var fr=Object.freeze({__proto__:null,exists:ir,readFile:rr,existsSync:nr,readFileSync:or,resolve:ar,fallback:lr,dirname:hr,contains:cr,containsSync:ur,sep:W.sep});function dr(t,e,...s){return t=g(t),S(t)||d(t)?t.length?t:e:t===!1&&new Map(s).get("allow_false")?!1:me(t,this.context)?e:t}function vs(t,e=0){return JSON.stringify(t,null,e)}function pr(t,e=0){let s=[];return JSON.stringify(t,function(i,r){if(typeof r!="object"||r===null)return r;for(;s.length>0&&s[s.length-1]!==this;)s.pop();return s.includes(r)?"[Circular]":(s.push(r),r)},e)}function mr(t){return Number(t)}var gr={raw:!0,handler:$s},Zs={default:dr,raw:gr,jsonify:vs,to_integer:mr,json:vs,inspect:pr},yr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},wr={"&amp;":"&","&lt;":"<","&gt;":">","&#34;":'"',"&#39;":"'"};function pt(t){return t=c(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,e=>yr[e])}function br(t){return pt.call(this,t)}function kr(t){return t=c(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,e=>wr[e])}function Tr(t){return pt.call(this,kr.call(this,t))}function xr(t){let e=c(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,`<br />
11
+ `)}function Sr(t){let e=c(t);this.context.memoryLimit.use(e.length);let s=new Map([["<script","</script>"],["<style","</style>"],["<!--","-->"],["<",">"]]),i="",r=0;for(;r<e.length;){let n=e.indexOf("<",r);if(n<0)return i+e.slice(r);i+=e.slice(r,n);for(let[o,a]of s){if(!e.startsWith(o,n))continue;let h=e.indexOf(a,n+o.length);if(h>=0){r=h+a.length;break}s.delete(o)}if(r===n)return i+e.slice(n)}return i}var _r=Object.freeze({__proto__:null,escape:pt,xml_escape:br,escape_once:Tr,newline_to_br:xr,strip_html:Sr}),jt=class{constructor(e){this.mapping=e,this.sep="/"}async exists(e){return this.existsSync(e)}existsSync(e){return!k(this.mapping[e])}async readFile(e){return this.readFileSync(e)}readFileSync(e){let s=this.mapping[e];if(k(s))throw new Error(`ENOENT: ${e}`);return s}dirname(e){let s=e.split(this.sep);return s.pop(),s.join(this.sep)}resolve(e,s,i){if(s+=i,e===".")return s;let r=e.split(/\/+/);for(let n of s.split(this.sep))n==="."||n===""||(n===".."?(r.length>1||r[0]!=="")&&r.pop():r.push(n));return r.join(this.sep)}},Z={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:fr,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Js,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Lr(t){if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;typeof t.cache=="number"?e=t.cache>0?new Ve(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new Ve(1024):void 0,t.cache=e}return t={...Z,...t.jekyllInclude?{dynamicPartials:!1}:{},...t},(!t.fs.dirname||!t.fs.sep)&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=xe(t.root),t.partials=xe(t.partials),t.layouts=xe(t.layouts),t.outputEscape=t.outputEscape&&Fr(t.outputEscape),t.locale||(t.locale=Us()?.().resolvedOptions().locale??"en-US"),t.templates&&(t.fs=new jt(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function Fr(t){return t==="escape"?pt:t==="json"?Zs.json:(_(x(t),"`outputEscape` need to be of type string or function"),t)}function xe(t){let e=[];return S(t)&&(e=t),d(t)&&(e=[t]),e}function Or(t,e){let s=!1;for(let i=0;i<t.length;i++){let r=t[i];Xs(r)&&(!s&&r.trimLeft&&vr(t[i-1],e.greedy),Y(r)&&(r.name==="raw"?s=!0:r.name==="endraw"&&(s=!1)),!s&&r.trimRight&&zr(t[i+1],e.greedy))}}function vr(t,e){if(!t||!mt(t))return;let s=e?ee:js;for(;w[t.input.charCodeAt(t.end-1-t.trimRight)]&s;)t.trimRight++}function zr(t,e){if(!t||!mt(t))return;let s=e?ee:js;for(;w[t.input.charCodeAt(t.begin+t.trimLeft)]&s;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
12
+ `&&t.trimLeft++}var z=class{constructor(e,s=Z.operators,i,r){this.input=e,this.file=i,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=Ot(s),this.literalTrie=Ot(Is)}readExpression(){return new Ee(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let s=this.readValue();if(s){yield s;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(e!==-1)return new qt(this.input,this.p,this.p=e,this.file)}matchTrie(e){let s=e,i=this.p,r;for(;s[this.input[i]]&&i<this.N;)s=s[this.input[i++]],s.end&&(r=s);return!r||r.needBoundary&&ke(this.peek(i-this.p))?-1:i}readFilteredValue(){let e=this.p,s=this.readExpression();this.assert(s.valid(),`invalid value expression: ${this.snapshot()}`);let i=this.readFilters();return new Pt(s,i,this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let s=this.readFilter();if(!s)return e;e.push(s)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;let s=[];if(this.skipBlank(),this.peek()===":")do{++this.p;let i=this.readFilterArg();i&&s.push(i),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new De(e.getText(),s,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;let s=this.readValue();return[e.getText(),s]}readTopLevelTokens(e=Z){let s=[];for(;this.p<this.N;){let i=this.readTopLevelToken(e);s.push(i)}return Or(s,e),s}readTopLevelToken(e){let{tagDelimiterLeft:s,outputDelimiterLeft:i}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(s)?this.readTagToken(e):this.match(i)?this.readOutputToken(e):this.readHTMLToken([s,i])}readHTMLToken(e){let s=this.p;for(;this.p<this.N&&!e.some(i=>this.match(i));)++this.p;return new qe(this.input,s,this.p,this.file)}readTagToken(e){let{file:s,input:i}=this,r=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(r)} not closed`,r);let n=new ce(i,r,this.p,e,s);return n.name==="raw"&&(this.rawBeginAt=r),n}readToDelimiter(e,s=!1){for(this.skipBlank();this.p<this.N;){if(s&&this.peekType()&bs){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=Z){let{file:s,input:i}=this,{outputDelimiterRight:r}=e,n=this.p;if(this.readToDelimiter(r,!0)===-1)throw this.error(`output ${this.snapshot(n)} not closed`,n);return new Rt(i,n,this.p,e,s)}readEndrawOrRawContent(e){let{tagDelimiterLeft:s,tagDelimiterRight:i}=e,r=this.p,n=this.readTo(s)-s.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){n=this.readTo(s)-s.length;continue}for(;this.p<=this.N;){if(this.rmatch(i)){let o=this.p;return r===n?(this.rawBeginAt=-1,new ce(this.input,r,o,e,this.file)):(this.p=n,new qe(this.input,r,n,this.file))}if(this.rmatch(s))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=Z){let s=[];for(;this.p<this.N;){let i=this.readLiquidTagToken(e);i&&s.push(i)}return s}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let s=this.p;this.readToDelimiter(`
13
+ `);let i=this.p;return new Vt(this.input,s,i,e,this.file)}error(e,s=this.p){return new _e(e,new se(this.input,s,this.N,this.file))}assert(e,s,i){if(!e)throw this.error(typeof s=="function"?s():s,i)}snapshot(e=this.p){return JSON.stringify(_i(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&ke(this.peek());)++this.p;return new se(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let s=[];for(;;){let i=this.readHash(e);if(!i)return s;s.push(i)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;let s=this.p,i=this.readNonEmptyIdentifier();if(!i)return;let r;this.skipBlank();let n=d(e)?e:e?"=":":";return this.peek()===n&&(++this.p,r=this.readValue()),new Mt(this.input,s,this.p,i,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();let e=this.p,s=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),i=this.readProperties(!s);return i.length?new Me(s,i,this.input,e,this.p):s}readScopeValue(){this.skipBlank();let e=this.p,s=this.readProperties();if(s.length)return new Me(void 0,s,this.input,e,this.p)}readProperties(e=!0){let s=[];for(;;){if(this.peek()==="["){this.p++;let i=this.readValue()||new se(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),s.push(i);continue}if(e&&!s.length){let i=this.readNonEmptyIdentifier();if(i){s.push(i);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;let i=this.readNonEmptyIdentifier();if(!i)break;s.push(i);continue}break}return s}readNumber(){this.skipBlank();let e=!1,s=!1,i=0;for(this.peekType()&Ai&&i++;this.p+i<=this.N;)if(this.peekType(i)&Ri)s=!0,i++;else if(this.peek(i)==="."&&this.peek(i+1)!=="."){if(e||!s)return;e=!0,i++}else break;if(s&&!ke(this.peek(i))){let r=new At(this.input,this.p,this.p+i,this.file);return this.advance(i),r}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(e===-1)return;let s=new Nt(this.input,this.p,e,this.file);return this.p=e,s}readRange(){this.skipBlank();let e=this.p;if(this.peek()!=="(")return;++this.p;let s=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");let i=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Et(this.input,e,this.p,s,i,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(this.peekType()&bs))return;++this.p;let s=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!s));)s?s=!1:this.input[this.p-1]==="\\"&&(s=!0);return new Dt(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:s}=e,i=[","," ","\r",`
14
+ `," ",s],r=new Set(i);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(s)?this.readOutputToken(e):this.readHTMLToken(i)}match(e){for(let s=0;s<e.length;s++)if(e[s]!==this.input[this.p+s])return!1;return!0}rmatch(e){for(let s=0;s<e.length;s++)if(e[e.length-1-s]!==this.input[this.p-1-s])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:w[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&ee;)++this.p}},Pe=class{constructor(e,s){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=s}on(e,s){return this.handlers[e]=s,this}trigger(e,s){let i=this.handlers[e];return i?(i.call(this,s),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||Y(e)&&this.trigger(`tag:${e.name}`,e))continue;let s=this.parseToken(e,this.tokens);this.trigger("template",s)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}},ue=class{constructor(e){this.token=e}},b=class extends ue{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},j=class{constructor(e,s){this.hash={};let i=e instanceof z?e:new z(e,{});for(let r of i.readHashes(s))this.hash[r.name.content]=r.value}*render(e){let s={};for(let i of Object.keys(this.hash))s[i]=this.hash[i]===void 0?!0:yield T(this.hash[i],e);return s}};function Rr(t){return class extends b{constructor(e,s,i){super(e,s,i),x(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new j(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function Qs(t){return S(t)}var fe=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=x(s)?s:x(s?.handler)?s.handler:$s,this.raw=!x(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)Qs(r)?i.push([r[0],yield T(r[1],s)]):i.push(yield T(r,s));return yield this.handler.apply({context:s,token:this.token,liquid:this.liquid},[e,...i])}},F=class{constructor(e,s){this.filters=[];let i=typeof e=="string"?new z(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new fe(r,this.getFilter(s,r.name),s))}*value(e,s){s=s||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let i=yield this.initial.evaluate(e,s);for(let r of this.filters)i=yield r.render(i,e);return i}getFilter(e,s){let i=e.filters[s];return _(i||!e.options.strictFilters,()=>`undefined filter: ${s}`),i}},Ce=class extends ue{constructor(e,s){super(e);let i=new z(e.input,s.options.operators,e.file,e.contentRange);this.value=new F(i.readFilteredValue(),s);let r=this.value.filters,n=s.options.outputEscape;if(!r[r.length-1]?.raw&&n){let o=new De(toString.call(n),[],"",0,0);r.push(new fe(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},It=class extends ue{constructor(e){super(e),this.str=e.getContent()}*render(e,s){s.write(this.str)}},H=class t{constructor(e,s){this.segments=e,this.location=s}toString(){return je(this.segments,!0)}toArray(){function*e(...s){for(let i of s)i instanceof t?yield Array.from(e(...i.segments)):yield i}return Array.from(e(...this.segments))}},re=class{constructor(){this.map=new Map}get(e){let s=je([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(je([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Ks={partials:!0};function*Gs(t,e,s){let i=new re,r=new re,n=new re,o=new $e(new Set),a=new Set;function h(u,p){i.push(u);let m=p.alias(u);if(m!==void 0){let y=m.segments[0];d(y)&&!o.has(y)&&r.push(m)}else{let y=u.segments[0];d(y)&&!p.has(y)&&r.push(u)}for(let y of u.segments)y instanceof H&&h(y,p)}function*f(u,p){if(u.arguments)for(let m of u.arguments())for(let y of zs(m))h(y,p);if(u.localScope)for(let m of u.localScope()){p.add(m.content),p.deleteAlias(m.content);let[y,te]=m.getPosition();n.push(new H([m.content],{row:y,col:te,file:m.file}))}if(u.children)if(u.partialScope){let m=u.partialScope();if(m===void 0){for(let J of yield u.children(e,s))yield f(J,p);return}if(a.has(m.name))return;let y=new Set,te=m.isolated?new $e(y):p.push(y);for(let J of m.scope)if(d(J))y.add(J);else{let[rs,di]=J;y.add(rs);let ns=Array.from(zs(di));ns.length&&te.setAlias(rs,ns[0].segments)}for(let J of yield u.children(e,s))yield f(J,te),a.add(m.name);te.pop()}else{u.blockScope&&p.push(new Set(u.blockScope()));for(let m of yield u.children(e,s))yield f(m,p);u.blockScope&&p.pop()}}for(let u of t)yield f(u,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function P(t,e={}){let s={...Ks,...e};return q(Gs(t,s.partials,!1))}function C(t,e={}){let s={...Ks,...e};return M(Gs(t,s.partials,!0))}var $e=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let s of this.stack)if(s.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let s=e.segments[0];if(!d(s))return;let i=this.getAlias(s);if(i!==void 0)return new H([...i,...e.segments.slice(1)],e.location)}setAlias(e,s){this.stack[this.stack.length-1].aliases.set(e,s)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let s of this.stack){if(s.aliases.has(e))return s.aliases.get(e);if(s.names.has(e))return}}};function*zs(t){v(t)?yield*X(t):t instanceof F&&(yield*Ar(t))}function*Ar(t){for(let e of t.initial.postfix)v(e)&&(yield*X(e));for(let e of t.filters)for(let s of e.args)Qs(s)&&s[1]?yield*X(s[1]):v(s)&&(yield*X(s))}function*X(t){Gt(t)?(yield*X(t.lhs),yield*X(t.rhs)):de(t)&&(yield Bt(t))}function Bt(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,Ie(i)||Wt(i)||Ht(i)?e.push(i.content):de(i)&&e.push(...Bt(i).segments);for(let o of t.props.slice(1))s=s||o.file,Ie(o)||Wt(o)||Ht(o)?e.push(o.content):de(o)&&e.push(Bt(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var Rs=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function je(t,e=!1){let s=[],i=t[0];d(i)&&(!e||i.match(Rs)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${je(r.segments)}]`):d(r)?r.match(Rs)?s.push(`.${r}`):s.push(`['${r}']`):s.push(`[${r}]`);return s.join("")}(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(l.LookupType||(l.LookupType={}));var Ut=class{constructor(e){if(this.options=e,e.relativeReference){let i=e.fs.sep;_(i,"`fs.sep` is required for relative reference");let r=["."+i,".."+i,"./","../"];this.shouldLoadRelative=n=>r.some(o=>n.startsWith(o))}else this.shouldLoadRelative=i=>!1;let s=e.fs;this.contains=vt(s.contains?.bind(s)||(async()=>!0),s.containsSync?.bind(s)||(()=>!0)),this.exists=vt(s.exists?.bind(s)||(async()=>!1),s.existsSync?.bind(s))}*lookup(e,s,i,r){let n=this.options[s];for(let o of this.candidates(e,n,r)){let a=!1;for(let h of n)if(yield this.contains(!!i,h,o)){a=!0;break}if(a&&(yield this.exists(!!i,o)))return o}throw this.lookupError(e,n)}*candidates(e,s,i){let{fs:r,extname:n}=this.options;this.shouldLoadRelative(e)&&i&&(yield r.resolve(this.dirname(i),e,n));for(let o of s)yield r.resolve(o,e,n);if(r.fallback!==void 0){let o=r.fallback(e);o!==void 0&&(yield o)}}dirname(e){let s=this.options.fs;return _(s.dirname,"`fs.dirname` is required for relative reference"),s.dirname(e)}lookupError(e,s){let i=new Error("ENOENT");return i.message=`ENOENT: Failed to lookup "${e}" in "${s}"`,i.code="ENOENT",i}},N=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Ut(this.liquid.options),this.parseLimit=new le("parse length",e.options.parseLimit),this.readFile=vt(this.fs.readFile?.bind(this.fs)||(async()=>{throw new Error("readFile not implemented")}),this.fs.readFileSync?.bind(this.fs))}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new z(e,this.liquid.options.operators,s).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let s,i=[],r=[];for(;s=e.shift();)try{i.push(this.parseToken(s,e))}catch(n){if(this.liquid.options.catchAllErrors)r.push(n);else throw n}if(r.length)throw new Oe(r);return i}parseToken(e,s){try{if(Y(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return ei(e)?new Ce(e,this.liquid):new It(e)}catch(i){throw E.is(i)?i:new Le(i,e)}}parseStream(e){return new Pe(e,(s,i)=>this.parseToken(s,i))}*_parseFileCached(e,s,i=l.LookupType.Root,r){let n=this.cache,o=this.loader.shouldLoadRelative(e)?r+","+e:i+":"+e,a=yield n.read(o);if(a)return a;let h=this._parseFile(e,s,i,r),f=s?yield h:q(h);n.write(o,f);try{return yield f}catch(u){throw n.remove(o),u}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(yield this.readFile(!!s,n),n)}};(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(l.TokenKind||(l.TokenKind={}));function Xs(t){return!!(R(t)&l.TokenKind.Delimited)}function Kt(t){return R(t)===l.TokenKind.Operator}function mt(t){return R(t)===l.TokenKind.HTML}function ei(t){return R(t)===l.TokenKind.Output}function Y(t){return R(t)===l.TokenKind.Tag}function Ie(t){return R(t)===l.TokenKind.Quoted}function Nr(t){return R(t)===l.TokenKind.Literal}function Wt(t){return R(t)===l.TokenKind.Number}function de(t){return R(t)===l.TokenKind.PropertyAccess}function Ht(t){return R(t)===l.TokenKind.Word}function Gt(t){return R(t)===l.TokenKind.Range}function v(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var qr=Object.freeze({__proto__:null,isDelimitedToken:Xs,isOperatorToken:Kt,isHTMLToken:mt,isOutputToken:ei,isTagToken:Y,isQuotedToken:Ie,isLiteralToken:Nr,isNumberToken:Wt,isPropertyAccessToken:de,isWordToken:Ht,isRangeToken:Gt,isValueToken:v}),Be=function(){return Be=Object.assign||function(e){for(var s,i=1,r=arguments.length;i<r;i++){s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Be.apply(this,arguments)},B=class t{constructor(e={},s=Z,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[{}],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=ft(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new le("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new le("template render",Ct().now()+(i.renderLimit??s.renderLimit))}getRegister(e,s=void 0){return this.registers[e]=this.registers[e]||s}setRegister(e,s){return this.registers[e]=s}saveRegister(...e){return e.map(s=>[s,this.getRegister(s)])}restoreRegister(e){return e.forEach(([s,i])=>this.setRegister(s,i))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,s)=>Be(e,s),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return M(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){d(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&bi(e))throw new xt(s.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new t(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let s=this.scopes.length-1;s>=0;s--){let i=this.scopes[s];if(e in i)return i}return e in this.environments?this.environments:this.globals}readProperty(e,s){if(e=Es(e),s=g(s),k(e))return e;if(S(e)&&s<0)return e[e.length+ +s];let i=Mr(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof D?e.liquidMethodMissing(s,this):x(i)?i.call(e):s==="size"?Vr(e):s==="first"?Dr(e):s==="last"?Er(e):i}};function Mr(t,e,s){if(!(s&&!Zt.call(t,e)&&!(t instanceof D)))return t[e]}function Dr(t){return S(t)?t[0]:t.first}function Er(t){return S(t)?t[t.length-1]:t.last}function Vr(t){if(Zt.call(t,"size")||t.size!==void 0)return t.size;if(S(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var Q;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(Q||(Q={}));var Pr=V(Math.abs),Cr=V(Math.max),$r=V(Math.min),jr=V(Math.ceil),Ir=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Br=V(Math.floor),Ur=V((t,e)=>t-e),Wr=V((t,e)=>t+e),Hr=V((t,e)=>t%e),Yr=V((t,e)=>t*e);function Jr(t,e=0){t=Tt(t),e=Tt(e);let s=Math.pow(10,e),i=t*s;return Math.sign(t)*Math.round(Math.abs(i))/s}var Zr=Object.freeze({__proto__:null,abs:Pr,at_least:Cr,at_most:$r,ceil:jr,divided_by:Ir,floor:Br,minus:Ur,plus:Wr,modulo:Hr,times:Yr,round:Jr}),Qr=t=>decodeURIComponent(c(t)).replace(/\+/g," "),Kr=t=>encodeURIComponent(c(t)).replace(/%20/g,"+"),Gr=t=>encodeURIComponent(c(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Xr=t=>encodeURI(c(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),As=/[^\p{M}\p{L}\p{Nd}]+/ug,en={raw:/\s+/g,default:As,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:As,none:null};function tn(t,e="default",s=!1){t=c(t);let i=en[e];return i&&(e==="latin"&&(t=sn(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function sn(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var rn=Object.freeze({__proto__:null,url_decode:Qr,url_encode:Kr,cgi_escape:Gr,uri_escape:Xr,slugify:tn}),nn=dt(function(t,e){let s=L(t),i=k(e)?" ":c(e),r=s.length*(1+i.length);return this.context.memoryLimit.use(r),s.join(i)}),on=dt(t=>Vs(t)?Ti(t):""),an=dt(t=>Vs(t)?t[0]:""),ln=dt(function(t){let e=L(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*ti(t,e,s){let i=[],r=L(t);this.context.memoryLimit.use(r.length);for(let n of r)i.push([n,e?yield this.context._getFromScope(n,c(e).split("."),!1):n]);return i.sort((n,o)=>s(n[1],o[1])).map(n=>n[0])}function*hn(t,e){return yield*ti.call(this,t,e,Li)}function*cn(t,e){return yield*ti.call(this,t,e,Fi)}var un=t=>t&&t.length||0;function*fn(t,e){let s=[],i=L(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,c(e),!1));return s}function*dn(t,e){let s=0,i=L(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,c(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function pn(t){let e=L(t);return this.context.memoryLimit.use(e.length),e.filter(s=>!k(g(s)))}function si(t,e=[]){let s=L(t),i=L(e);return this.context.memoryLimit.use(s.length+i.length),s.concat(i)}function mn(t,e){return si.call(this,t,[e])}function gn(t,e){let s=L(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function yn(t){let e=[...L(t)];return e.pop(),e}function wn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function bn(t,e,s=1){return t=g(t),k(t)?[]:(S(t)||(t=c(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(s),t.slice(e,e+s))}function ii(t){return this.context.opts.jekyllWhere?e=>oe.is(t)?$(e,t):S(e)?Xi(e,t):$(e,t):t===void 0?e=>U(e,this.context):e=>$(e,t)}function*ri(t,e,s,i){let r=[];e=L(e),this.context.memoryLimit.use(e.length);let n=new z(c(s)).readScopeValue();for(let a of e)r.push(yield T(n,this.context.spawn(a)));let o=ii.call(this,i);return e.filter((a,h)=>o(r[h])===t)}function*ni(t,e,s,i){let r=[],n=new F(c(i),this.liquid),o=L(e);this.context.memoryLimit.use(o.length);for(let a of o){this.context.push({[s]:a});let h=yield n.value(this.context);this.context.pop(),h===t&&r.push(a)}return r}function*kn(t,e,s){return yield*ri.call(this,!0,t,e,s)}function*Tn(t,e,s){return yield*ri.call(this,!1,t,e,s)}function*xn(t,e,s){return yield*ni.call(this,!0,t,e,s)}function*Sn(t,e,s){return yield*ni.call(this,!1,t,e,s)}function*_n(t,e){let s=new Map;t=pe(t);let i=new z(c(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield T(i,this.context.spawn(r));s.has(n)||s.set(n,[]),s.get(n).push(r)}return[...s.entries()].map(([r,n])=>({name:r,items:n}))}function*Ln(t,e,s){let i=new Map,r=new F(c(s),this.liquid);t=pe(t),this.context.memoryLimit.use(t.length);for(let n of t){this.context.push({[e]:n});let o=yield r.value(this.context);this.context.pop(),i.has(o)||i.set(o,[]),i.get(o).push(n)}return[...i.entries()].map(([n,o])=>({name:n,items:o}))}function*Xt(t,e,s){let i=new z(c(e)).readScopeValue(),r=L(t),n=ii.call(this,s);for(let o=0;o<r.length;o++){let a=yield T(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*es(t,e,s){let i=new F(c(s),this.liquid),r=L(t);for(let n=0;n<r.length;n++){this.context.push({[e]:r[n]});let o=yield i.value(this.context);if(this.context.pop(),o)return[n,r[n]]}}function*Fn(t,e,s){return!!(yield*Xt.call(this,t,e,s))}function*On(t,e,s){return!!(yield*es.call(this,t,e,s))}function*vn(t,e,s){let i=yield*Xt.call(this,t,e,s);return i?i[0]:void 0}function*zn(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[0]:void 0}function*Rn(t,e,s){let i=yield*Xt.call(this,t,e,s);return i?i[1]:void 0}function*An(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[1]:void 0}function Nn(t){return t=L(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function qn(t,e=1){if(t=g(t),k(t))return[];S(t)||(t=c(t)),this.context.memoryLimit.use(e);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Mn=Object.freeze({__proto__:null,join:nn,last:on,first:an,reverse:ln,sort:hn,sort_natural:cn,size:un,map:fn,sum:dn,compact:pn,concat:si,push:mn,unshift:gn,pop:yn,shift:wn,slice:bn,where:kn,reject:Tn,where_exp:xn,reject_exp:Sn,group_by:_n,group_by_exp:Ln,has:Fn,has_exp:On,find_index:vn,find_index_exp:zn,find:Rn,find_exp:An,uniq:Nn,sample:qn});function ts(t,e,s){let i=(t?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=ai(t,this.context.opts,s);return r?(e=g(e),e=k(e)?this.context.opts.dateFormat:c(e),this.context.memoryLimit.use(e.length),Te(r,e,this.context.memoryLimit)):t}function Dn(t){return ts.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function En(t){return ts.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function Vn(t,e,s){return oi.call(this,t,"%b",e,s)}function Pn(t,e,s){return oi.call(this,t,"%B",e,s)}function oi(t,e,s,i){let r=ai(t,this.context.opts);if(!r)return t;let n=this.context.memoryLimit;if(s==="ordinal"){let o=r.getDate();return i==="US"?Te(r,`${e} ${o}%q, %Y`,n):Te(r,`${o}%q ${e} %Y`,n)}return Te(r,`%d ${e} %Y`,n)}function ai(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;if(t=g(t),!k(t))return t==="now"||t==="today"?i=new I(Date.now(),n,r):ut(t)?i=new I(t*1e3,n,r):d(t)?/^\d+$/.test(t)?i=new I(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=I.createDateFixedToTimezone(t,n):i=new I(t,n,r):i=new I(t,n,r),i.valid()?i:void 0}var Cn=Object.freeze({__proto__:null,date:ts,date_to_xmlschema:Dn,date_to_rfc822:En,date_to_string:Vn,date_to_long_string:Pn}),kt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Ns=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function $n(t,e){_(arguments.length===2,"append expect 2 arguments");let s=c(t),i=c(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function jn(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=c(t),i=c(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function In(t,e){let s=c(t);if(this.context.memoryLimit.use(s.length),e){e=c(e),this.context.memoryLimit.use(e.length);for(let i=0,r=new Set(e);i<s.length;i++)if(!r.has(s[i]))return s.slice(i);return""}return s.trimStart()}function Bn(t){let e=c(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Un(t){let e=c(t);return this.context.memoryLimit.use(e.length),c(e).toUpperCase()}function Wn(t,e){let s=c(t);return e=c(e),this.context.memoryLimit.use(s.length+e.length),s.split(e).join("")}function Hn(t,e){let s=c(t);return e=c(e),this.context.memoryLimit.use(s.length+e.length),s.replace(e,"")}function Yn(t,e){let s=c(t),i=c(e);this.context.memoryLimit.use(s.length+i.length);let r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Jn(t,e){if(t=c(t),this.context.memoryLimit.use(t.length),e){e=c(e),this.context.memoryLimit.use(e.length);for(let s=t.length-1,i=new Set(e);s>=0;s--)if(!i.has(t[s]))return t.slice(0,s+1);return""}return t.trimEnd()}function Zn(t,e){let s=c(t);this.context.memoryLimit.use(s.length);let i=s.split(c(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Qn(t,e){let s=c(t);if(this.context.memoryLimit.use(s.length),e){let i=new Set(c(e));this.context.memoryLimit.use(i.size);let r=0,n=s.length-1;for(;i.has(s[r]);)r++;for(;n>=r&&i.has(s[n]);)n--;return s.slice(r,n+1)}return s.trim()}function Kn(t){let e=c(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function Gn(t){return t=c(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function Xn(t,e,s){let i=c(t);e=c(e),s=c(s);let r=i.split(e),n=i.length+(r.length-1)*(s.length-e.length);return this.context.memoryLimit.use(n),r.join(s)}function eo(t,e,s){let i=c(t);return e=c(e),s=c(s),this.context.memoryLimit.use(i.length+e.length+s.length),i.replace(e,()=>s)}function to(t,e,s){let i=c(t),r=c(e),n=c(s);this.context.memoryLimit.use(i.length+r.length+n.length);let o=i.lastIndexOf(r);return o===-1?i:i.substring(0,o)+n+i.substring(o+r.length)}function so(t,e=50,s="..."){let i=c(t);return s=c(s),this.context.memoryLimit.use(i.length+s.length),i.length<=e?t:i.substring(0,e-s.length)+s}function io(t,e=15,s="..."){let i=c(t);s=c(s),this.context.memoryLimit.use(i.length+s.length);let r=i.split(/\s+/);e<=0&&(e=1);let n=r.slice(0,e).join(" ");return r.length>=e&&(n+=s),n}function ro(t){let e=c(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function no(t,e){let s=c(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(kt)||[]).length+(t.match(Ns)||[]).length;case"auto":return kt.test(t)?t.match(kt).length+(t.match(Ns)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function oo(t,e="and"){switch(e=c(e),this.context.memoryLimit.use(t.length+e.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var ao=Object.freeze({__proto__:null,append:$n,prepend:jn,lstrip:In,downcase:Bn,upcase:Un,remove:Wn,remove_first:Hn,remove_last:Yn,rstrip:Jn,split:Zn,strip:Qn,strip_newlines:Kn,capitalize:Gn,replace:Xn,replace_first:eo,replace_last:to,truncate:so,truncatewords:io,normalize_whitespace:ro,number_of_words:no,array_to_sentence_string:oo});function lo(t){return Buffer.from(t,"utf8").toString("base64")}function ho(t){return Buffer.from(t,"base64").toString("utf8")}function co(t){if(typeof Buffer<"u"&&Buffer.isBuffer(t))return this.context.memoryLimit.use(t.byteLength),t.toString("base64");let e=c(t);return this.context.memoryLimit.use(e.length),lo(e)}function uo(t){let e=c(t);return this.context.memoryLimit.use(e.length),ho(e)}var fo=Object.freeze({__proto__:null,base64_encode:co,base64_decode:uo});function po(t){return Ds.createHash("sha256").update(t,"utf8").digest("hex")}function mo(t,e){return Ds.createHmac("sha256",e).update(t,"utf8").digest("hex")}function go(t){let e=c(t);return this.context.memoryLimit.use(e.length),po(e)}function yo(t,e){let s=c(t),i=c(e);return this.context.memoryLimit.use(s.length+i.length),mo(s,i)}var wo=Object.freeze({__proto__:null,sha256:go,hmac_sha256:yo}),li={..._r,...Zr,...rn,...Mn,...Cn,...ao,...fo,...wo,...Zs},Ue=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new F(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},qs=["offset","limit","reversed"],We=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!n.size()||o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.hash=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let h,f=r.parseStream(s).on("start",()=>h=this.templates).on("tag:else",u=>{Re(u.args),h=this.elseTemplates}).on("tag:endfor",u=>{Re(u.args),f.stop()}).on("template",u=>h.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=this.liquid.renderer,r=pe(yield T(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(n,{})});let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(f=>qs.includes(f)):qs.filter(f=>o[f]!==void 0)).reduce((f,u)=>u==="offset"?ko(f,o.offset):u==="limit"?To(f,o.limit):bo(f),r),e.setRegister(n,(o.offset||0)+r.length);let h={forloop:new ae(r.length,this.collection.getText(),this.variable)};e.push(h);for(let f of r){if(h[this.variable]=f,e.continueCalled=e.breakCalled=!1,yield i.renderTemplates(this.templates,e,s),e.breakCalled)break;h.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function bo(t){return[...t].reverse()}function ko(t,e){return t.slice(e)}function To(t,e){return t.slice(0,e)}var He=class extends b{constructor(e,s,i,r){for(super(e,s,i),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;s.length;){let n=s.shift();if(Y(n)&&n.name==="endcapture")return;this.templates.push(r.parseToken(n,s))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let i=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=i}*children(){return this.templates}*localScope(){yield this.identifier}},Ye=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[],this.value=new F(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let n=[],o=0,a=r.parseStream(s).on("tag:when",h=>{if(o>0)return;n=[];let f=[];for(;!h.tokenizer.end();)f.push(h.tokenizer.readValueOrThrow()),h.tokenizer.skipBlank(),h.tokenizer.peek()===","?h.tokenizer.readTo(","):h.tokenizer.readTo("or");this.branches.push({values:f,templates:n})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",h=>{(n!==this.elseTemplates||o===1)&&n.push(h)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,s){let i=this.liquid.renderer,r=g(yield this.value.value(e,e.opts.lenientIf)),n=!1;for(let o of this.branches)for(let a of o.values){let h=yield T(a,e,e.opts.lenientIf);if($(r,h)){yield i.renderTemplates(o.templates,e,s),n=!0;break}}n||(yield i.renderTemplates(this.elseTemplates,e,s))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Je=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(Y(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Ze=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=ss(n,this.liquid,r),this.currentFile=e.file;!n.end();){n.skipBlank();let o=n.p,a=n.readIdentifier();if((a.content==="with"||a.content==="for")&&(n.skipBlank(),n.peek()!==":")){let h=n.readValue();if(h){let f=n.p,u=n.readIdentifier(),p;u.content==="as"?p=n.readIdentifier():n.p=f,this[a.content]={value:h,alias:p&&p.content},n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new j(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield is(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(Be(a,yield r.render(e)),this.with){let{value:h,alias:f}=this.with;a[f||n]=yield T(h,e)}if(this.for){let{value:h,alias:f}=this.for,u=pe(yield T(h,e));a.forloop=new ae(u.length,h.getText(),f);for(let p of u){a[f]=p;let m=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(m,o,s),a.forloop.next()}}else{let h=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(h,o,s)}}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}if(this.for){let{value:s,alias:i}=this.for;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))v(e)&&(yield e);if(this.with){let{value:e}=this.with;v(e)&&(yield e)}if(this.for){let{value:e}=this.for;v(e)&&(yield e)}}};function ss(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(Ie(n)){let o=s.parse(Ys(n));return Ms(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Ms(s.parseTokens(i));return r==="none"?void 0:r}function Ms(t){return t.length===1&&mt(t[0].token)?t[0].token.getContent():t}function*is(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield T(t,e)}var Qe=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=ss(n,this.liquid,r),this.currentFile=e.file;let o=n.p;n.readIdentifier().content==="with"?(n.skipBlank(),n.peek()!==":"?this.withVar=n.readValue():n.p=o):n.p=o,this.hash=new j(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield is(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let h=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",Q.OUTPUT);let f=yield r.render(e);n&&(f[a]=yield T(n,e));let u=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:f}:f),yield o.renderTemplates(u,e,s),e.pop(),e.restoreRegister(h)}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(v),v(this.file)&&(yield this.file),v(this.withVar)&&(yield this.withVar)}},Ke=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ut(i[this.variable])||(i[this.variable]=0),s.write(c(--i[this.variable]))}*localScope(){yield this.identifier}},Ge=class extends b{constructor(e,s,i){super(e,s,i),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===":"?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let n=this.tokenizer.readValue();n&&this.candidates.push(n),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,s){let r=`cycle:${yield T(this.group,e)}:`+this.candidates.join(","),n=e.getRegister("cycle",{}),o=n[r];o===void 0&&(o=n[r]=0);let a=this.candidates[o];return o=(o+1)%this.candidates.length,n[r]=o,yield T(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},Xe=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[];let n=[];r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})).on("tag:elsif",o=>{_(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new F(o.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})}).on("tag:else",o=>{Re(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){Re(o.args),this.stop()}).on("template",o=>n.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,templates:n}of this.branches){let o=yield r.value(e,e.opts.lenientIf);if(U(o,e)){yield i.renderTemplates(n,e,s);return}}yield i.renderTemplates(this.elseTemplates||[],e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},et=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ut(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(c(r))}*localScope(){yield this.identifier}},tt=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=ss(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=r.parseTokens(s)}*render(e,s){let{liquid:i,args:r,file:n}=this,{renderer:o}=i;if(n===void 0){e.setRegister("blockMode",Q.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield is(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let h=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",Q.STORE);let f=yield o.renderTemplates(this.templates,e),u=e.getRegister("blocks",{});u[""]===void 0&&(u[""]=(p,m)=>m.write(f)),e.setRegister("blockMode",Q.OUTPUT),e.push(yield r.render(e)),yield o.renderTemplates(h,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&d(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))v(e)&&(yield e);v(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},st=class extends b{constructor(e,s,i,r){super(e,s,i),this.templates=[];let n=/\w+/.exec(e.args);for(this.block=n?n[0]:"";s.length;){let o=s.shift();if(Y(o)&&o.name==="endblock")return;let a=r.parseToken(o,s);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,s){let i=this.getBlockRender(e);e.getRegister("blockMode")===Q.STORE?e.getRegister("blocks",{})[this.block]=i:yield i(new Ne,s)}getBlockRender(e){let s=this,{liquid:i,templates:r}=this,n=e.getRegister("blocks",{})[this.block],o=function*(a,h){let f=e.getRegister("blockStack",[]);if(f.includes(s))throw new Error("block tag cannot be nested");f.push(s),e.push({block:a}),yield i.renderer.renderTemplates(r,e,h),e.pop(),f.pop()};return n?(a,h)=>n(new Ne(f=>o(a,f)),h):o}*children(){return this.templates}blockScope(){return["block"]}},it=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(Y(r)&&r.name==="endraw")return;this.tokens.push(r)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},Yt=class extends ae{constructor(e,s,i,r){super(e,i,r),this.length=e,this.cols=s}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},rt=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let h,f=r.parseStream(s).on("start",()=>h=this.templates).on("tag:endtablerow",()=>f.stop()).on("template",u=>h.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=pe(yield T(this.collection,e)),r=yield this.args.render(e),n=r.offset||0,o=r.limit===void 0?i.length:r.limit;i=i.slice(n,n+o);let a=r.cols||i.length,h=this.liquid.renderer,f=new Yt(i.length,a,this.collection.getText(),this.variable),u={tablerowloop:f};e.push(u);for(let p=0;p<i.length;p++,f.next())u[this.variable]=i[p],f.col0()===0&&(f.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${f.row()}">`)),s.write(`<td class="col${f.col()}">`),yield h.renderTemplates(this.templates,e,s),s.write("</td>");i.length&&s.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},nt=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[];let n=[],o=0;r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),test:me,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:U,templates:n=[]})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",a=>{(n!==this.elseTemplates||o===1)&&n.push(a)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,test:n,templates:o}of this.branches){let a=yield r.value(e,e.opts.lenientIf);if(n(a,e)){yield i.renderTemplates(o,e,s);return}}yield i.renderTemplates(this.elseTemplates,e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},ot=class extends b{render(e,s){e.breakCalled=!0}},at=class extends b{render(e,s){e.continueCalled=!0}},lt=class extends b{constructor(e,s,i){super(e,s,i),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new F(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,s){if(!this.value)return;let i=yield this.value.value(e,!1);s.write(i)}*arguments(){this.value&&(yield this.value)}},ht=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(n)}*render(e,s){yield this.liquid.renderer.renderTemplates(this.templates,e,s)}*children(){return this.templates}},ct=class extends b{constructor(e,s,i){if(super(e,s,i),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}},hi={assign:Ue,for:We,capture:He,case:Ye,comment:Je,include:Qe,render:Ze,decrement:Ke,increment:et,cycle:Ge,if:Xe,layout:tt,block:st,raw:it,tablerow:rt,unless:nt,break:ot,continue:at,echo:lt,liquid:ht,"#":ct},Jt=class t{constructor(e={}){this.renderer=new $t,this.filters=Object.create(null),this.tags=Object.create(null),this.options=Lr(e),this.parser=new N(this),ys(hi,(s,i)=>this.registerTag(i,s)),ys(li,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof B?s:new B(s,this.options,i);return this.renderer.renderTemplates(e,r)}async render(e,s,i){return q(this._render(e,s,{...i,sync:!1}))}renderSync(e,s,i){return M(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new B(s,this.options,i);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,s,i){let r=this.parse(e);return this._render(r,s,i)}async parseAndRender(e,s,i){return q(this._parseAndRender(e,s,{...i,sync:!1}))}parseAndRenderSync(e,s,i){return M(this._parseAndRender(e,s,{...i,sync:!0}))}_parsePartialFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Partials,i)}_parseLayoutFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Layouts,i)}_parseFile(e,s,i,r){return new N(this).parseFile(e,s,i,r)}async parseFile(e,s){return q(new N(this).parseFile(e,!1,s))}parseFileSync(e,s){return M(new N(this).parseFile(e,!0,s))}*_renderFile(e,s,i){let r=yield this._parseFile(e,i.sync,i.lookupType);return yield this._render(r,s,i)}async renderFile(e,s,i){return q(this._renderFile(e,s,{...i,sync:!1}))}renderFileSync(e,s,i){return M(this._renderFile(e,s,{...i,sync:!0}))}async renderFileToNodeStream(e,s,i){let r=await this.parseFile(e);return this.renderToNodeStream(r,s,i)}_evalValue(e,s){let i=new F(e,this),r=s instanceof B?s:new B(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return M(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=x(s)?s:Rr(s)}plugin(e){return e.call(this,t)}express(){let e=this,s=!0;return function(i,r,n){if(s){s=!1;let o=xe(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(i,r).then(o=>n(null,o),n)}}async analyze(e,s={}){return P(e,s)}analyzeSync(e,s={}){return C(e,s)}async parseAndAnalyze(e,s,i={}){return P(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return C(this.parse(e,s),i)}async variables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}fullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}async variableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(be(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(be(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}globalFullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}async globalVariableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(be(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(be(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},xo="10.26.0";l.AssertionError=ze;l.AssignTag=Ue;l.BlockTag=st;l.BreakTag=ot;l.CaptureTag=He;l.CaseTag=Ye;l.CommentTag=Je;l.Context=B;l.ContinueTag=at;l.CycleTag=Ge;l.DecrementTag=Ke;l.Drop=D;l.EchoTag=lt;l.Expression=Ee;l.Filter=fe;l.ForTag=We;l.Hash=j;l.IfTag=Xe;l.IncludeTag=Qe;l.IncrementTag=et;l.InlineCommentTag=ct;l.LayoutTag=tt;l.Liquid=Jt;l.LiquidError=E;l.LiquidTag=ht;l.Output=Ce;l.ParseError=Le;l.ParseStream=Pe;l.Parser=N;l.RawTag=it;l.RenderError=Fe;l.RenderTag=Ze;l.TablerowTag=rt;l.Tag=b;l.TagToken=ce;l.Token=O;l.TokenizationError=_e;l.Tokenizer=z;l.TypeGuards=qr;l.UndefinedVariableError=ve;l.UnlessTag=nt;l.Value=F;l.Variable=H;l.analyze=P;l.analyzeSync=C;l.assert=_;l.createTrie=Ot;l.defaultOperators=Js;l.defaultOptions=Z;l.evalQuotedToken=Ys;l.evalToken=T;l.filters=li;l.isFalsy=me;l.isTruthy=U;l.tags=hi;l.toPromise=q;l.toValue=g;l.toValueSync=M;l.version=xo});ge();var fi=mi(ci());function ui(t,e){let s=new fi.Liquid;return s.render(s.parse(t),e)}async function Ro(t,e,s){ms(ps`Copying template from directory ${bt.path(t)} to ${bt.path(e)}`);let i=await fs(ye(t,"**/*"),{dot:!0}),r=ye(t,".cli-liquid-bypass"),n=[];await us(r)&&(n=(await yt(r)).split(`
15
+ `).filter(a=>a.trim().length>0));let o=i.map(a=>a.split("/")).sort((a,h)=>a.length<h.length?1:-1).map(a=>a.join("/"));await Promise.all(o.map(async a=>{let h=await ui(ye(e,gt(t,a)),s),f=n.some(u=>{let p=gt(t,a),m=u.replace(/^\.\//,"");return ds(p,m)||p.startsWith(m)});if(await ls(a))await wt(h);else if(a.endsWith(".liquid")&&!f){await wt(os(h));let u=await yt(a),p=await ui(u,s),m=await cs(a),y=h.replace(".liquid","");await we(a,y),await as(y,p),m&&await hs(y,493)}else if(a.endsWith(".raw")){let u=h.replace(".raw","");await we(a,u)}else await we(a,h)}))}export{ui as a,Ro as b};
@@ -0,0 +1 @@
1
+ import{a as u,c as h,g as c}from"./chunk-VPRTJUIN.js";var v=h((w,l)=>{"use strict";c();var{builtinModules:f}=u("module"),d=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),p=["node_modules","favicon.ico"];function g(n){var t=[],e=[];if(n===null)return e.push("name cannot be null"),r(t,e);if(n===void 0)return e.push("name cannot be undefined"),r(t,e);if(typeof n!="string")return e.push("name must be a string"),r(t,e);if(n.length||e.push("name length must be greater than zero"),n.match(/^\./)&&e.push("name cannot start with a period"),n.match(/^_/)&&e.push("name cannot start with an underscore"),n.trim()!==n&&e.push("name cannot contain leading or trailing spaces"),p.forEach(function(s){n.toLowerCase()===s&&e.push(s+" is a blacklisted name")}),f.includes(n.toLowerCase())&&t.push(n+" is a core module name"),n.length>214&&t.push("name can no longer contain more than 214 characters"),n.toLowerCase()!==n&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(n.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(n)!==n){var a=n.match(d);if(a){var i=a[1],o=a[2];if(encodeURIComponent(i)===i&&encodeURIComponent(o)===o)return r(t,e)}e.push("name can only contain URL-friendly characters")}return r(t,e)}var r=function(n,t){var e={validForNewPackages:t.length===0&&n.length===0,validForOldPackages:t.length===0,warnings:n,errors:t};return e.warnings.length||delete e.warnings,e.errors.length||delete e.errors,e};l.exports=g});export{v as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-M2D7USAX.js";import{b as a}from"./chunk-XOTA6JTZ.js";import{g as s}from"./chunk-VPRTJUIN.js";s();var t=class extends a{static{this.description="View the UI kit components that process async tasks"}static{this.hidden=!0}async run(){await o()}};export{t as a};