claude-code-best 1.4.4 → 1.5.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 (423) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-n18n51gd.js → chunk-07hgsrrj.js} +61 -65
  3. package/dist/{chunk-10cw48wr.js → chunk-08s2vf8j.js} +51 -52
  4. package/dist/{chunk-8zx2v88n.js → chunk-099vkedx.js} +2 -2
  5. package/dist/{chunk-bvzn7axc.js → chunk-0bbrkswa.js} +1 -1
  6. package/dist/{chunk-9k46vkdf.js → chunk-0bqtrr6h.js} +55 -56
  7. package/dist/{chunk-kbzh54rh.js → chunk-0g5qnby7.js} +6 -6
  8. package/dist/{chunk-g558vggk.js → chunk-0h1mmmrb.js} +15 -15
  9. package/dist/{chunk-z2e401ww.js → chunk-0j7426hg.js} +2 -2
  10. package/dist/{chunk-0z0m6mm5.js → chunk-0k1jmtw9.js} +2 -2
  11. package/dist/{chunk-478xh8c9.js → chunk-0k5v3m41.js} +49 -50
  12. package/dist/chunk-0kd8mq8j.js +36 -0
  13. package/dist/{chunk-3fp4s54c.js → chunk-0n0ca69d.js} +8 -8
  14. package/dist/{chunk-zn7egynp.js → chunk-0qakcnby.js} +47 -48
  15. package/dist/chunk-0s7za42b.js +14 -0
  16. package/dist/{chunk-xf0t82rg.js → chunk-0tmg91b1.js} +47 -48
  17. package/dist/{chunk-hrg9vq6p.js → chunk-0v20v2af.js} +3 -3
  18. package/dist/{chunk-d9280rcs.js → chunk-0v2awzd5.js} +1 -1
  19. package/dist/{chunk-8cx4mvde.js → chunk-0v590295.js} +148 -148
  20. package/dist/{chunk-g540y6p8.js → chunk-0va3y97h.js} +50 -51
  21. package/dist/{chunk-r26enj81.js → chunk-0vcpjqz5.js} +18 -18
  22. package/dist/{chunk-ay9nh032.js → chunk-0vvk6tv4.js} +15 -15
  23. package/dist/{chunk-76qapcaf.js → chunk-0w957a33.js} +50 -51
  24. package/dist/{chunk-rygn25nx.js → chunk-0wtwnyvg.js} +1 -1
  25. package/dist/chunk-0xereag4.js +173 -0
  26. package/dist/{chunk-00xx1rmz.js → chunk-0z5j99bj.js} +16 -16
  27. package/dist/{chunk-6bd8brc4.js → chunk-0zkw14gq.js} +3 -3
  28. package/dist/{chunk-jfhmk1c6.js → chunk-13zdd5e6.js} +38 -32
  29. package/dist/{chunk-xm9ccpyh.js → chunk-16gq8x0y.js} +49 -50
  30. package/dist/{chunk-cxqaz5vr.js → chunk-19gdjrk6.js} +3 -3
  31. package/dist/{chunk-strvbymz.js → chunk-1dym9vfh.js} +37 -31
  32. package/dist/chunk-1g68v32a.js +17 -0
  33. package/dist/{chunk-w0tvdc6h.js → chunk-1k83dgjb.js} +49 -50
  34. package/dist/{chunk-k9cthr5h.js → chunk-1kr4x0ec.js} +16 -16
  35. package/dist/chunk-1v0q0tce.js +104 -0
  36. package/dist/{chunk-f84rfz6r.js → chunk-1y0w6mjw.js} +48 -49
  37. package/dist/{chunk-gjfa8v40.js → chunk-1ymrygy1.js} +3 -3
  38. package/dist/{chunk-3ckfamg7.js → chunk-1zzfvmmk.js} +47 -48
  39. package/dist/{chunk-305t7jww.js → chunk-23j983cf.js} +48 -49
  40. package/dist/{chunk-2885j676.js → chunk-25xrykpm.js} +47 -48
  41. package/dist/{chunk-cjbw6hsq.js → chunk-26yzm962.js} +47 -48
  42. package/dist/{chunk-p6zhv3fj.js → chunk-279m39zm.js} +2 -2
  43. package/dist/chunk-27an25fd.js +118 -0
  44. package/dist/{chunk-c9js3490.js → chunk-2br81xts.js} +13 -13
  45. package/dist/chunk-2eftymgs.js +70 -0
  46. package/dist/{chunk-4th8hz38.js → chunk-2n53zm0g.js} +1 -1
  47. package/dist/{chunk-xt73r8zj.js → chunk-2ppy5p0x.js} +1 -1
  48. package/dist/chunk-2rhny2td.js +542 -0
  49. package/dist/{chunk-f3gcmncr.js → chunk-2s2z24wm.js} +47 -48
  50. package/dist/{chunk-mkq4vynt.js → chunk-2tt7xc2t.js} +2 -2
  51. package/dist/{chunk-ar1mw8p5.js → chunk-2wy13rhe.js} +14 -14
  52. package/dist/{chunk-1y0e25vy.js → chunk-2xx8f4qv.js} +4 -4
  53. package/dist/{chunk-sqmb5zqp.js → chunk-32mtrtm4.js} +48 -49
  54. package/dist/{chunk-wjhhetv4.js → chunk-32vdb088.js} +208 -202
  55. package/dist/{chunk-03qpgz7e.js → chunk-36yypykx.js} +2151 -2124
  56. package/dist/{chunk-8vs3nfx4.js → chunk-381w6mma.js} +1 -1
  57. package/dist/{chunk-5hd0n4kc.js → chunk-3cghr0yw.js} +47 -48
  58. package/dist/chunk-3dpdscmt.js +5332 -0
  59. package/dist/{chunk-x8s52epd.js → chunk-3dv5ctj4.js} +48 -49
  60. package/dist/{chunk-wcjz1zkw.js → chunk-3es5r0dx.js} +48 -49
  61. package/dist/chunk-3fapt8z5.js +3686 -0
  62. package/dist/{chunk-9eq853s5.js → chunk-3gpxmzz8.js} +3 -3
  63. package/dist/{chunk-jg2ngavx.js → chunk-3xh6v618.js} +47 -48
  64. package/dist/{chunk-9n28jzta.js → chunk-3xw21x85.js} +2 -2
  65. package/dist/{chunk-0wj5655r.js → chunk-3zyt28ea.js} +14 -14
  66. package/dist/{chunk-6k55dfby.js → chunk-40d286da.js} +5 -5
  67. package/dist/{chunk-d0ss5j5q.js → chunk-42k22r18.js} +1 -1
  68. package/dist/{chunk-5dvmrn7n.js → chunk-456m81he.js} +47 -48
  69. package/dist/{chunk-cm7cxa22.js → chunk-46bqcdpf.js} +5 -5
  70. package/dist/{chunk-w61znt0r.js → chunk-4b5peb6p.js} +7 -7
  71. package/dist/chunk-4cfcpzb1.js +25 -0
  72. package/dist/chunk-4ch5vxv6.js +55 -0
  73. package/dist/chunk-4drj3c7m.js +9 -0
  74. package/dist/{chunk-6ara055f.js → chunk-4h5zefyh.js} +48 -49
  75. package/dist/{chunk-65149q8s.js → chunk-4n6tnssg.js} +75 -50
  76. package/dist/{chunk-tj662ss5.js → chunk-4pr3ph3g.js} +14 -14
  77. package/dist/{chunk-kxht28q6.js → chunk-4sahp0qz.js} +93 -101
  78. package/dist/{chunk-sxceea76.js → chunk-4ymyjjq9.js} +6 -6
  79. package/dist/{chunk-9q2y2zh1.js → chunk-50ykc5qt.js} +2 -2
  80. package/dist/{chunk-m751vrjc.js → chunk-53dr4k73.js} +3 -3
  81. package/dist/chunk-58fwsj1y.js +718 -0
  82. package/dist/chunk-59dp4z1p.js +157 -0
  83. package/dist/chunk-5b4v2zkf.js +1095 -0
  84. package/dist/{chunk-d16pe6q0.js → chunk-5c62s229.js} +14 -14
  85. package/dist/{chunk-pvvn6rs5.js → chunk-5f4n0ywb.js} +48 -49
  86. package/dist/{chunk-dx7e3yvb.js → chunk-5gv4sshz.js} +47 -48
  87. package/dist/{chunk-xerkzn28.js → chunk-5m6942nd.js} +5 -5
  88. package/dist/{chunk-ykr5qx9v.js → chunk-5nccnh01.js} +123 -103
  89. package/dist/{chunk-5n479b51.js → chunk-5q5xcm1a.js} +47 -48
  90. package/dist/{chunk-9x6kxrmf.js → chunk-5wq9nsdc.js} +3 -3
  91. package/dist/{chunk-tfsfw21c.js → chunk-5x2nq6b9.js} +55 -58
  92. package/dist/{chunk-br2fc21h.js → chunk-5y6k4xrs.js} +2 -2
  93. package/dist/{chunk-yvt4w0wr.js → chunk-63q03fkn.js} +47 -48
  94. package/dist/{chunk-6ybnndcm.js → chunk-65w3ek1a.js} +17 -17
  95. package/dist/{chunk-c81b5e4c.js → chunk-67w1zken.js} +16 -16
  96. package/dist/{chunk-xq9xqjsc.js → chunk-6ccsyy1d.js} +1 -1
  97. package/dist/{chunk-fhfp2q8c.js → chunk-6ct7fh1v.js} +3 -3
  98. package/dist/{chunk-4nv4wh05.js → chunk-6d1y8a8t.js} +2 -2
  99. package/dist/{chunk-4t6p7q4x.js → chunk-6dcmw81a.js} +22 -22
  100. package/dist/{chunk-25x89wym.js → chunk-6eb1nz6v.js} +3 -3
  101. package/dist/{chunk-z2zk7g57.js → chunk-6frqd366.js} +50 -51
  102. package/dist/chunk-6m81e182.js +81 -0
  103. package/dist/{chunk-j6k3zjb5.js → chunk-6ns89pft.js} +25 -17
  104. package/dist/chunk-6vqkv5g7.js +256 -0
  105. package/dist/{chunk-qk1txvrw.js → chunk-6weddn5h.js} +49 -50
  106. package/dist/{chunk-3n6xcqc2.js → chunk-7a6r0k3m.js} +47 -48
  107. package/dist/{chunk-e4an0rhr.js → chunk-7b2e9e81.js} +15 -17
  108. package/dist/{chunk-d5qv71vm.js → chunk-7bc12031.js} +14 -12
  109. package/dist/{chunk-cjjq2j2b.js → chunk-7brvkna2.js} +53 -54
  110. package/dist/{chunk-yqy9m4km.js → chunk-7bs8swa2.js} +7 -7
  111. package/dist/{chunk-t53aq97s.js → chunk-7dgqzj7h.js} +50 -51
  112. package/dist/{chunk-maf8nerb.js → chunk-7dk4m49a.js} +48 -49
  113. package/dist/{chunk-y7py934d.js → chunk-7e9hc8ce.js} +52 -53
  114. package/dist/{chunk-90wp6wez.js → chunk-7ebcff63.js} +2 -2
  115. package/dist/{chunk-t5dxb7t7.js → chunk-7ecg65mr.js} +1 -1
  116. package/dist/{chunk-zttmdag3.js → chunk-7fht54sw.js} +1 -1
  117. package/dist/{chunk-j5kvrt9y.js → chunk-7j845cqe.js} +47 -48
  118. package/dist/chunk-7jk88vww.js +782 -0
  119. package/dist/{chunk-rwzm45v5.js → chunk-7kfb7tqj.js} +2 -2
  120. package/dist/{chunk-rbkhemh9.js → chunk-7p437ydk.js} +37 -31
  121. package/dist/{chunk-a9zh40sj.js → chunk-7q7h7msb.js} +3 -3
  122. package/dist/{chunk-rpp3r30z.js → chunk-7ye0arvq.js} +1 -1
  123. package/dist/{chunk-db7qenhh.js → chunk-7z17cw4h.js} +47 -48
  124. package/dist/{chunk-hxc8e6wd.js → chunk-7zrkp054.js} +2 -2
  125. package/dist/chunk-82jkr65n.js +16 -0
  126. package/dist/{chunk-xh0gfn3x.js → chunk-838naekw.js} +2 -2
  127. package/dist/{chunk-5wsvwc5e.js → chunk-879maaae.js} +47 -48
  128. package/dist/chunk-87zgmycv.js +65 -0
  129. package/dist/{chunk-qfbttb4x.js → chunk-8shx4hgv.js} +48 -49
  130. package/dist/{chunk-eh2p7txn.js → chunk-8vt2rmzz.js} +52 -53
  131. package/dist/{chunk-ndq2y6sc.js → chunk-8wmyjwn2.js} +2 -2
  132. package/dist/{chunk-27ezf4tc.js → chunk-8wq0z465.js} +1 -1
  133. package/dist/{chunk-p74998st.js → chunk-8ym1t31g.js} +53 -54
  134. package/dist/{chunk-vazn9zr8.js → chunk-8z33fy5n.js} +49 -50
  135. package/dist/chunk-91abjr1g.js +29 -0
  136. package/dist/{chunk-g649rtg8.js → chunk-9230kmx2.js} +7 -6
  137. package/dist/{chunk-s39ksgef.js → chunk-93qhgq6p.js} +1 -1
  138. package/dist/{chunk-m0pkp5ga.js → chunk-9629mtdz.js} +1 -1
  139. package/dist/{chunk-kttp77s8.js → chunk-9b04n6d1.js} +1 -1
  140. package/dist/{chunk-pw8kw48d.js → chunk-9fpha2xv.js} +6 -6
  141. package/dist/{chunk-469hyn07.js → chunk-9stsxjba.js} +4 -4
  142. package/dist/{chunk-0mvnb624.js → chunk-9t7nxd80.js} +1 -1
  143. package/dist/{chunk-b9xq4536.js → chunk-9vebtp7v.js} +52 -53
  144. package/dist/{chunk-3ktg0bfz.js → chunk-a7kdj8mj.js} +54 -55
  145. package/dist/{chunk-6jpdf1q6.js → chunk-acts7vdr.js} +10 -10
  146. package/dist/{chunk-2p4y0dj6.js → chunk-adgamch7.js} +57 -60
  147. package/dist/{chunk-hnq3w6tx.js → chunk-ahebrd5y.js} +5 -5
  148. package/dist/{chunk-fngdgt2f.js → chunk-am5cn48y.js} +4 -4
  149. package/dist/{chunk-5q056cze.js → chunk-apwjfffr.js} +1 -1
  150. package/dist/{chunk-wv700xtn.js → chunk-ayn250r2.js} +16 -16
  151. package/dist/chunk-b0bk6bxs.js +742 -0
  152. package/dist/{chunk-c358prbg.js → chunk-b0yyp8et.js} +4210 -253
  153. package/dist/{chunk-ce0sqtyk.js → chunk-bg3zs6s3.js} +1 -1
  154. package/dist/chunk-btnvjcc5.js +15 -0
  155. package/dist/{chunk-32gxxymn.js → chunk-by7nh2js.js} +18 -18
  156. package/dist/{chunk-3g4s34f4.js → chunk-c0yhh86m.js} +3 -3
  157. package/dist/{chunk-d7zw0dtv.js → chunk-c68754tz.js} +5 -5
  158. package/dist/chunk-cga5sq7g.js +41 -0
  159. package/dist/{chunk-jstky2ff.js → chunk-cjzk6t5c.js} +1 -1
  160. package/dist/chunk-ck06sqpy.js +220 -0
  161. package/dist/{chunk-mffjgywd.js → chunk-ck3q71vq.js} +2 -2
  162. package/dist/{chunk-gtzjdd18.js → chunk-cqbkd5ec.js} +3 -3
  163. package/dist/{chunk-3sbbxqm9.js → chunk-cqym51bf.js} +6 -6
  164. package/dist/{chunk-8rd1b3jk.js → chunk-cvqjhmqj.js} +56 -57
  165. package/dist/{chunk-5re3kwbc.js → chunk-cxy1ed0h.js} +3 -3
  166. package/dist/{chunk-a4c4m0nx.js → chunk-czjvd1xh.js} +91 -1806
  167. package/dist/{chunk-91fs1ha7.js → chunk-d0hj14fq.js} +65 -66
  168. package/dist/{chunk-66a2h4gk.js → chunk-d2kj6nek.js} +2 -2
  169. package/dist/{chunk-dtxakwbd.js → chunk-d37y1qja.js} +53 -54
  170. package/dist/{chunk-j6e8g1ms.js → chunk-d4x13kaa.js} +53 -54
  171. package/dist/{chunk-1npsp555.js → chunk-d6kw0esk.js} +1200 -161
  172. package/dist/{chunk-f7qkp4ha.js → chunk-d7jqw171.js} +47 -48
  173. package/dist/{chunk-f4htq4m4.js → chunk-d7xarb4w.js} +50 -51
  174. package/dist/{chunk-mq1c3epq.js → chunk-db3pr49y.js} +1 -1
  175. package/dist/{chunk-f3absj1f.js → chunk-dbfg6qhf.js} +2 -2
  176. package/dist/{chunk-evv7sxhw.js → chunk-dcs7myc3.js} +7 -7
  177. package/dist/{chunk-796a9b0z.js → chunk-ddyjgjpq.js} +47 -48
  178. package/dist/chunk-dgv19cce.js +183 -0
  179. package/dist/{chunk-t7v7can7.js → chunk-djrgjmyj.js} +1 -1
  180. package/dist/{chunk-sj43vmjm.js → chunk-djye5k50.js} +56 -59
  181. package/dist/{chunk-zkskmsjq.js → chunk-dknvhgkn.js} +3 -3
  182. package/dist/{chunk-s2t3qrte.js → chunk-drth8ce0.js} +1 -1
  183. package/dist/{chunk-p20wvv03.js → chunk-dt26hy6y.js} +1 -1
  184. package/dist/{chunk-xxr3cssg.js → chunk-dw5n6pr6.js} +47 -48
  185. package/dist/{chunk-ze6zvkg6.js → chunk-dxcr07z5.js} +4 -4
  186. package/dist/{chunk-szxy7bkh.js → chunk-dz32qcdd.js} +1 -1
  187. package/dist/chunk-e2cwk4hm.js +1185 -0
  188. package/dist/{chunk-52008rca.js → chunk-e50jgy7e.js} +14 -14
  189. package/dist/{chunk-xcmxx87m.js → chunk-e6trsfsm.js} +47 -48
  190. package/dist/{chunk-kfxyghyf.js → chunk-e6x5rpgx.js} +2 -2
  191. package/dist/{chunk-gkjcnxfe.js → chunk-e84ydbsq.js} +49 -50
  192. package/dist/{chunk-s9wgk88b.js → chunk-e96pr3z1.js} +48 -49
  193. package/dist/{chunk-7b9jrkee.js → chunk-eaawf61a.js} +47 -48
  194. package/dist/{chunk-hfntc659.js → chunk-eck5mjcw.js} +47 -48
  195. package/dist/{chunk-vtnfq4vf.js → chunk-egtb28zm.js} +233 -256
  196. package/dist/chunk-enhtm7h3.js +1731 -0
  197. package/dist/{chunk-47agtw2e.js → chunk-ep3h3f40.js} +47 -48
  198. package/dist/{chunk-8x8n4xxy.js → chunk-eqrxxgwx.js} +47 -48
  199. package/dist/chunk-es6y15pn.js +42 -0
  200. package/dist/{chunk-g9rvvqdy.js → chunk-etjwrq2s.js} +27 -27
  201. package/dist/{chunk-5der176s.js → chunk-ezbeckn3.js} +74 -51
  202. package/dist/{chunk-3fqxcp51.js → chunk-f109n77b.js} +14 -12
  203. package/dist/{chunk-kw1hpgh9.js → chunk-f29erv6g.js} +1 -1
  204. package/dist/{chunk-wvpvhk63.js → chunk-f3hyhcgd.js} +48 -49
  205. package/dist/{chunk-tcwv6fd9.js → chunk-fc9we717.js} +57 -60
  206. package/dist/{chunk-djydtvkr.js → chunk-fekynwj1.js} +505 -211
  207. package/dist/{chunk-tjr7qjpt.js → chunk-fks8ej56.js} +49 -50
  208. package/dist/{chunk-q56tkhgr.js → chunk-frwxzq55.js} +47 -48
  209. package/dist/{chunk-tkvg1xnr.js → chunk-ftdfvq1w.js} +4 -4
  210. package/dist/{chunk-w4pyvjtz.js → chunk-fx0xd0ex.js} +4 -4
  211. package/dist/{chunk-xpsb3jm8.js → chunk-fx52a9s2.js} +1 -1
  212. package/dist/{chunk-94xzz1fg.js → chunk-fxgt3m0a.js} +47 -48
  213. package/dist/{chunk-rh6936pj.js → chunk-fxm5s7sf.js} +15 -15
  214. package/dist/{chunk-j08qxq0d.js → chunk-fy2qr4hw.js} +48 -49
  215. package/dist/{chunk-5aw4k8fc.js → chunk-fz395yre.js} +1 -1
  216. package/dist/{chunk-hxy8h592.js → chunk-g0pmcggh.js} +2 -2
  217. package/dist/{chunk-20dbexrf.js → chunk-g45rr3sj.js} +1 -1
  218. package/dist/{chunk-q27bsq0y.js → chunk-g5kf8gsq.js} +4 -4
  219. package/dist/{chunk-7578r1rd.js → chunk-g9p7fypd.js} +47 -48
  220. package/dist/{chunk-ep17krqe.js → chunk-gbjhmjds.js} +9 -35
  221. package/dist/chunk-gd1ye7ef.js +168 -0
  222. package/dist/{chunk-y9pjq9h1.js → chunk-gfmss0fm.js} +15 -15
  223. package/dist/{chunk-ez10rk09.js → chunk-gg7ay6js.js} +47 -48
  224. package/dist/{chunk-777vk9pb.js → chunk-gk6v4y3r.js} +36 -32
  225. package/dist/{chunk-6hb097d3.js → chunk-gpgcar7e.js} +49 -50
  226. package/dist/{chunk-vtvxtdmq.js → chunk-gps4nmr6.js} +47 -48
  227. package/dist/{chunk-20n52jxv.js → chunk-gsa7bq8w.js} +6 -8
  228. package/dist/{chunk-7e7cb0t6.js → chunk-gsh55gb1.js} +2 -2
  229. package/dist/{chunk-094n6jd6.js → chunk-gv7bchnx.js} +47 -48
  230. package/dist/{chunk-fmadtbcm.js → chunk-gvg7arvr.js} +47 -48
  231. package/dist/chunk-gxnyeps9.js +3 -3
  232. package/dist/{chunk-xw38vjj4.js → chunk-gy5rfgd4.js} +6 -6
  233. package/dist/{chunk-ma9s7ycf.js → chunk-gzsnwa2e.js} +2 -2
  234. package/dist/{chunk-4qqswajh.js → chunk-h2vxyvpa.js} +12 -14
  235. package/dist/{chunk-f8ad6drq.js → chunk-h9dtsc52.js} +51 -53
  236. package/dist/{chunk-xha58rh2.js → chunk-hjr7tc1g.js} +1 -1
  237. package/dist/{chunk-9dhy1ekj.js → chunk-hkfat5cj.js} +50 -51
  238. package/dist/{chunk-dgrwcrwx.js → chunk-hkk80362.js} +1 -1
  239. package/dist/{chunk-p523ftrq.js → chunk-hkqvtcn2.js} +1 -1
  240. package/dist/{chunk-tszkvvnq.js → chunk-hs7sxtea.js} +2 -2
  241. package/dist/{chunk-8ymf4e6z.js → chunk-hxc5rbra.js} +3 -3
  242. package/dist/{chunk-h7xct2p1.js → chunk-hz9ty6jz.js} +50 -51
  243. package/dist/{chunk-x9rddxdt.js → chunk-hzk6nn1a.js} +47 -48
  244. package/dist/{chunk-ptdf4e9y.js → chunk-hzq56eee.js} +15 -15
  245. package/dist/{chunk-bt64sq5y.js → chunk-j04z48rw.js} +2 -2
  246. package/dist/chunk-j99epwtm.js +703 -0
  247. package/dist/{chunk-zs5b1dgr.js → chunk-jdq8jgyg.js} +1 -1
  248. package/dist/chunk-jdx93dh4.js +412 -0
  249. package/dist/chunk-jfqdw43z.js +14 -0
  250. package/dist/{chunk-ej1wwrcw.js → chunk-jvwa5w8w.js} +440 -654
  251. package/dist/{chunk-krgdryc0.js → chunk-jxzrapdr.js} +47 -48
  252. package/dist/{chunk-q76tj8p6.js → chunk-k7qqw0mj.js} +4 -4
  253. package/dist/{chunk-a8ejc632.js → chunk-k97s93n9.js} +1 -1
  254. package/dist/{chunk-dc0zwsyd.js → chunk-kcewk85p.js} +2 -2
  255. package/dist/{chunk-5xbvemsj.js → chunk-kdbbs50z.js} +3 -3
  256. package/dist/{chunk-2qsaxjnq.js → chunk-ke0bvd5n.js} +48 -49
  257. package/dist/{chunk-qc94x3p3.js → chunk-kggr6n4m.js} +60 -63
  258. package/dist/{chunk-8yxajf0d.js → chunk-km3ssf62.js} +19 -19
  259. package/dist/{chunk-kbeyhztj.js → chunk-kmh848ar.js} +19 -19
  260. package/dist/{chunk-ptn9f3na.js → chunk-kmy230xj.js} +50 -51
  261. package/dist/{chunk-acn3w259.js → chunk-kpyj9z78.js} +1 -1
  262. package/dist/{chunk-ywc2acy0.js → chunk-kwrep6kh.js} +2 -2
  263. package/dist/chunk-kxqjncxw.js +35 -0
  264. package/dist/{chunk-gfex5hb6.js → chunk-kyddexms.js} +13 -19
  265. package/dist/{chunk-04tphv07.js → chunk-kyefv6ng.js} +16 -16
  266. package/dist/{chunk-4faf9wd3.js → chunk-kz44a3qf.js} +3 -3
  267. package/dist/{chunk-dy8tttdp.js → chunk-m0vj33nj.js} +3 -3
  268. package/dist/chunk-m2rg2m7x.js +910 -0
  269. package/dist/{chunk-pps04vej.js → chunk-mbg1aw69.js} +10 -10
  270. package/dist/{chunk-5v45gvyx.js → chunk-mbkp0n55.js} +25 -25
  271. package/dist/{chunk-cajvbw85.js → chunk-mc41nrsy.js} +15 -15
  272. package/dist/{chunk-x94fchq0.js → chunk-me5gz5wa.js} +14 -14
  273. package/dist/{chunk-yz8h8hk3.js → chunk-mg8jtbwg.js} +50 -51
  274. package/dist/{chunk-ve9cwe9g.js → chunk-mgkaqb94.js} +47 -48
  275. package/dist/{chunk-ajzahsxn.js → chunk-mhygj95j.js} +48 -49
  276. package/dist/{chunk-0vkx14y7.js → chunk-mjqazs3m.js} +2 -2
  277. package/dist/{chunk-wgxsm74y.js → chunk-mnfb10tx.js} +3 -3
  278. package/dist/{chunk-t138q38h.js → chunk-mp72s5hc.js} +1 -1
  279. package/dist/{chunk-v2jb74tk.js → chunk-mp7bn9nx.js} +47 -48
  280. package/dist/{chunk-2afqgmq4.js → chunk-ms5agen7.js} +47 -48
  281. package/dist/{chunk-1xw41svw.js → chunk-msehbnjp.js} +59 -60
  282. package/dist/{chunk-yy13r4f1.js → chunk-my9dkgm8.js} +118 -4
  283. package/dist/{chunk-n6gs8dkk.js → chunk-n7pwac8p.js} +15 -15
  284. package/dist/{chunk-5d2nad7e.js → chunk-n8fxmey8.js} +1 -1
  285. package/dist/{chunk-w51ffctd.js → chunk-nd8hhtqz.js} +1 -1
  286. package/dist/{chunk-s0kbrpnn.js → chunk-nehajf9x.js} +3 -5
  287. package/dist/{chunk-fz0ch109.js → chunk-ng6s8w0e.js} +2 -2
  288. package/dist/{chunk-1n3pvcxm.js → chunk-ngryd7gy.js} +1 -1
  289. package/dist/{chunk-0sge3cez.js → chunk-nhxygcn1.js} +49 -50
  290. package/dist/chunk-nv7eb4pc.js +22 -0
  291. package/dist/{chunk-f8mc5g94.js → chunk-p6bws1a4.js} +16 -16
  292. package/dist/{chunk-y5x8wqe5.js → chunk-p8c4512d.js} +1 -1
  293. package/dist/{chunk-2xyp6pwt.js → chunk-pa4m8fka.js} +14 -14
  294. package/dist/{chunk-kzfj5mnk.js → chunk-pd9q9fd7.js} +47 -48
  295. package/dist/chunk-pf1dekdv.js +26 -0
  296. package/dist/{chunk-r2wcdqy9.js → chunk-pj5wk9qe.js} +47 -48
  297. package/dist/{chunk-zwv360y2.js → chunk-pkaehdm6.js} +859 -942
  298. package/dist/{chunk-ta1191a6.js → chunk-pp4kq0fa.js} +47 -48
  299. package/dist/{chunk-1je9wp7r.js → chunk-ptnf75rg.js} +47 -48
  300. package/dist/{chunk-27mj2w02.js → chunk-q09zbxk4.js} +15 -15
  301. package/dist/{chunk-5htp89xt.js → chunk-q1e46gk8.js} +55 -56
  302. package/dist/{chunk-rxep4zes.js → chunk-q1e7t6tz.js} +15 -128
  303. package/dist/{chunk-exv8n1za.js → chunk-q2jeezb4.js} +3 -3
  304. package/dist/{chunk-v69kxnen.js → chunk-q6vk37f0.js} +47 -48
  305. package/dist/chunk-q95b9wrd.js +40 -0
  306. package/dist/{chunk-ktmr2qew.js → chunk-qcvyd3y4.js} +3 -3
  307. package/dist/{chunk-08ap04th.js → chunk-qd97hcgd.js} +5 -5
  308. package/dist/{chunk-dpfjphps.js → chunk-qgx9mc6p.js} +5 -5
  309. package/dist/{chunk-15yxvxxm.js → chunk-qkp3ytva.js} +108 -111
  310. package/dist/{chunk-gfe3e4ce.js → chunk-qkymv6n8.js} +6 -6
  311. package/dist/{chunk-rc5r5t8e.js → chunk-qrz3b0e1.js} +4 -4
  312. package/dist/{chunk-3e1p9kv7.js → chunk-qzjk4vpq.js} +4 -4
  313. package/dist/{chunk-dnkd9ckw.js → chunk-r35b43p4.js} +17 -17
  314. package/dist/{chunk-6gg2cvm2.js → chunk-r4j2h4yp.js} +1 -1
  315. package/dist/{chunk-0s5m8nkk.js → chunk-r651whr2.js} +15 -15
  316. package/dist/{chunk-fhwpgyvw.js → chunk-r70h7x48.js} +50 -51
  317. package/dist/{chunk-xs7e9ynx.js → chunk-r8yzzrsp.js} +55 -56
  318. package/dist/{chunk-wkqf9whj.js → chunk-rdgrfsjm.js} +47 -48
  319. package/dist/{chunk-dps4gfm1.js → chunk-rfmf8jw2.js} +1 -1
  320. package/dist/{chunk-b623tcjz.js → chunk-rhdgt3c8.js} +4 -4
  321. package/dist/{chunk-dq4ckzab.js → chunk-rqwcz7mf.js} +16 -16
  322. package/dist/{chunk-73pxnrgv.js → chunk-rvb54w68.js} +2 -2
  323. package/dist/{chunk-jy1nhwr3.js → chunk-rwa1xxqk.js} +4 -4
  324. package/dist/{chunk-fgcxrx4c.js → chunk-s3k2jajp.js} +47 -48
  325. package/dist/{chunk-p1z86trg.js → chunk-s5cvaf0y.js} +3 -3
  326. package/dist/{chunk-wve68bf5.js → chunk-s8tq4y70.js} +2 -2
  327. package/dist/{chunk-2t5ncw9x.js → chunk-sa2gzt2m.js} +2 -2
  328. package/dist/chunk-scyjb4rw.js +42 -0
  329. package/dist/{chunk-nsndts3z.js → chunk-sfem4v24.js} +14 -14
  330. package/dist/{chunk-2z01s54n.js → chunk-sjc21xag.js} +4 -4
  331. package/dist/{chunk-400zp41r.js → chunk-snkt46ca.js} +1 -1
  332. package/dist/{chunk-xfnekqkc.js → chunk-sqk9ayam.js} +5 -7
  333. package/dist/chunk-swjfjpja.js +3213 -0
  334. package/dist/{chunk-c7qxrffg.js → chunk-swyr0ze5.js} +5 -5
  335. package/dist/{chunk-y6n3fdt2.js → chunk-t0rxmbvz.js} +17 -17
  336. package/dist/{chunk-eskw6xkv.js → chunk-t260g32y.js} +4 -4
  337. package/dist/{chunk-fg46hc6d.js → chunk-t6kym3nr.js} +38 -32
  338. package/dist/{chunk-bwv73k9n.js → chunk-t79jmj3c.js} +5 -5
  339. package/dist/chunk-t7vqt78m.js +32 -0
  340. package/dist/chunk-t8sg0wf3.js +23 -0
  341. package/dist/{chunk-kqe7861c.js → chunk-tc92qnj1.js} +77 -50
  342. package/dist/{chunk-dd60e5wj.js → chunk-temv6q01.js} +4 -4
  343. package/dist/chunk-th1cykx3.js +494 -0
  344. package/dist/chunk-tp6bgx9r.js +90 -0
  345. package/dist/{chunk-d1dkt8pf.js → chunk-tq61s8re.js} +48 -49
  346. package/dist/chunk-tsycknnm.js +887 -0
  347. package/dist/{chunk-45kw3kmb.js → chunk-tv3n7nyr.js} +47 -48
  348. package/dist/{chunk-swd4vhn1.js → chunk-v3a3d8qr.js} +48 -49
  349. package/dist/{chunk-4z3yrp6y.js → chunk-v6q8mas6.js} +48 -49
  350. package/dist/{chunk-1zvd49vg.js → chunk-v9xtwnkn.js} +4 -4
  351. package/dist/{chunk-emgk6xvg.js → chunk-vecm4b7g.js} +1 -1
  352. package/dist/{chunk-h6gm2k0d.js → chunk-vhjrpmd7.js} +48 -49
  353. package/dist/{chunk-rbwfpwps.js → chunk-vmp1tr7b.js} +2 -2
  354. package/dist/{chunk-amdb0grz.js → chunk-vn9dpw7e.js} +50 -51
  355. package/dist/{chunk-vxstb12h.js → chunk-vnhhnca0.js} +1 -1
  356. package/dist/{chunk-rj8p3f8w.js → chunk-vqf0cwfx.js} +48 -49
  357. package/dist/chunk-vqm2wda9.js +46 -0
  358. package/dist/{chunk-3h1nhq6f.js → chunk-vrbtdakb.js} +1 -1
  359. package/dist/{chunk-422fx6t4.js → chunk-vrdp6hk3.js} +50 -51
  360. package/dist/{chunk-ght1jhcp.js → chunk-vzn6172q.js} +56 -58
  361. package/dist/chunk-w0b04y7r.js +609 -0
  362. package/dist/{chunk-w49cma0z.js → chunk-w20437bg.js} +47 -48
  363. package/dist/{chunk-139bbdnz.js → chunk-w54rzd0a.js} +50 -51
  364. package/dist/{chunk-dq6gsxma.js → chunk-w7eccwbe.js} +15 -15
  365. package/dist/{chunk-mas3fz1d.js → chunk-wa3arctj.js} +12 -12
  366. package/dist/{chunk-w8am6ta4.js → chunk-wa7rnp49.js} +1 -1
  367. package/dist/{chunk-vagfnqc6.js → chunk-waazrpce.js} +2 -2
  368. package/dist/{chunk-0h3t3pg2.js → chunk-wbh9ydpk.js} +19 -19
  369. package/dist/{chunk-vdtdq74g.js → chunk-wc7s61fq.js} +15 -15
  370. package/dist/{chunk-2e6t5g22.js → chunk-wgmkhbe4.js} +2 -2
  371. package/dist/{chunk-j5xh6s8y.js → chunk-wh23fnfe.js} +11 -11
  372. package/dist/{chunk-wys7e7qz.js → chunk-whvpa72n.js} +4 -4
  373. package/dist/chunk-wkyyghn6.js +184 -0
  374. package/dist/{chunk-ebnp9s5b.js → chunk-wngtt6cw.js} +2 -2
  375. package/dist/chunk-wp35dfwp.js +15 -0
  376. package/dist/{chunk-6gr3c3w9.js → chunk-wpqynh28.js} +2 -2
  377. package/dist/{chunk-fykf8xpq.js → chunk-wtje1bzc.js} +48 -49
  378. package/dist/{chunk-fpgevc9q.js → chunk-wwjb9kpr.js} +48 -49
  379. package/dist/{chunk-78bk581m.js → chunk-wzarjbqs.js} +47 -48
  380. package/dist/{chunk-0r9ed6vz.js → chunk-wzyspdkz.js} +54 -55
  381. package/dist/chunk-x3atm9a1.js +864 -0
  382. package/dist/{chunk-rkmwx1yz.js → chunk-x52qkhng.js} +1 -1
  383. package/dist/{chunk-xcg8gj4z.js → chunk-xpecr6a1.js} +5 -7
  384. package/dist/{chunk-re56c4sb.js → chunk-xt3x0wrj.js} +1 -1
  385. package/dist/{chunk-8avpe537.js → chunk-xvwv91w4.js} +47 -48
  386. package/dist/{chunk-8c32awe2.js → chunk-xwh3q911.js} +2 -2
  387. package/dist/{chunk-26p2hgat.js → chunk-xydbqr0b.js} +47 -48
  388. package/dist/{chunk-npmd1tms.js → chunk-xzmas4y8.js} +47 -48
  389. package/dist/{chunk-vr9rckk8.js → chunk-y4dgbkb3.js} +290 -261
  390. package/dist/{chunk-2f1f034j.js → chunk-y5phkfvf.js} +3 -3
  391. package/dist/{chunk-gqvdqmgm.js → chunk-y689dg14.js} +14 -14
  392. package/dist/{chunk-0t1bd4sb.js → chunk-yevw8ttf.js} +15 -15
  393. package/dist/{chunk-9wev49x3.js → chunk-yhqcnq80.js} +50 -51
  394. package/dist/{chunk-9mh13mnf.js → chunk-yk4t7kxm.js} +1 -1
  395. package/dist/{chunk-7r2k7qes.js → chunk-ykbz8f85.js} +3 -3
  396. package/dist/{chunk-h3p151fx.js → chunk-ykcqa4mj.js} +1 -1
  397. package/dist/{chunk-d90bhmt1.js → chunk-ysj2gfxe.js} +48 -47
  398. package/dist/{chunk-0t80kx3c.js → chunk-z51fyxdw.js} +55 -56
  399. package/dist/{chunk-vmc31gbm.js → chunk-z86pzxdm.js} +48 -49
  400. package/dist/chunk-z88f5181.js +258 -0
  401. package/dist/{chunk-8epxe23k.js → chunk-zd6w7gc2.js} +5 -5
  402. package/dist/{chunk-ebrc3yf3.js → chunk-zv0txvbs.js} +4 -4
  403. package/dist/{chunk-196500e9.js → chunk-zvkkjep6.js} +12 -12
  404. package/dist/{chunk-phf40t3n.js → chunk-zx2xx5ek.js} +20 -20
  405. package/dist/{chunk-trt2sfjg.js → chunk-zzz4ny7p.js} +1 -1
  406. package/dist/cli.js +24 -24
  407. package/package.json +28 -28
  408. package/dist/chunk-0mf8c3kx.js +0 -8
  409. package/dist/chunk-5vvqe088.js +0 -946
  410. package/dist/chunk-6c5zyga7.js +0 -12
  411. package/dist/chunk-f9tjvhq5.js +0 -186
  412. package/dist/chunk-k97ze3a8.js +0 -524
  413. package/dist/chunk-pps45448.js +0 -159
  414. package/dist/chunk-qqvaem6g.js +0 -68
  415. package/dist/chunk-shvjqnv4.js +0 -53
  416. package/dist/chunk-z0b7xfwn.js +0 -47
  417. package/dist/download-ripgrep.js +0 -24837
  418. package/dist/{chunk-y3jmpqat.js → chunk-5vdpbk46.js} +3 -3
  419. package/dist/{chunk-vest0y6x.js → chunk-6h6kzvyd.js} +3 -3
  420. package/dist/{chunk-f5ma3nh5.js → chunk-7a31vc3r.js} +0 -0
  421. package/dist/{chunk-tbas522c.js → chunk-ftbf37y7.js} +1 -1
  422. package/dist/{chunk-pfgwfg55.js → chunk-xexnht94.js} +3 -3
  423. package/dist/{chunk-0fnpkgd6.js → chunk-ybebarb1.js} +10 -10
@@ -1,45 +1,54 @@
1
1
  // @bun
2
2
  import {
3
- require_dist_cjs as require_dist_cjs13,
4
- require_dist_cjs1 as require_dist_cjs14,
5
- require_dist_cjs2 as require_dist_cjs15
6
- } from "./chunk-ep17krqe.js";
3
+ require_dist_cjs as require_dist_cjs12,
4
+ require_dist_cjs1 as require_dist_cjs13
5
+ } from "./chunk-gbjhmjds.js";
7
6
  import {
8
7
  require_dist_cjs as require_dist_cjs11
9
- } from "./chunk-y5x8wqe5.js";
8
+ } from "./chunk-e2cwk4hm.js";
10
9
  import {
11
- require_dist_cjs as require_dist_cjs12
12
- } from "./chunk-q27bsq0y.js";
10
+ require_dist_cjs as require_dist_cjs15
11
+ } from "./chunk-pn1q3cxk.js";
12
+ import {
13
+ require_dist_cjs as require_dist_cjs14
14
+ } from "./chunk-2md5w5h8.js";
13
15
  import {
14
- require_dist_cjs as require_dist_cjs6,
15
- require_dist_cjs1 as require_dist_cjs7,
16
- require_dist_cjs2 as require_dist_cjs10,
16
+ require_dist_cjs as require_dist_cjs16
17
+ } from "./chunk-p8c4512d.js";
18
+ import {
19
+ require_dist_cjs1 as require_dist_cjs9,
17
20
  require_endpoints,
18
21
  require_protocols,
19
22
  require_schema,
20
23
  require_serde
21
- } from "./chunk-03qpgz7e.js";
24
+ } from "./chunk-36yypykx.js";
25
+ import {
26
+ require_dist_cjs as require_dist_cjs7
27
+ } from "./chunk-jcfk76z5.js";
28
+ import {
29
+ require_dist_cjs as require_dist_cjs10
30
+ } from "./chunk-6f8awfs6.js";
22
31
  import {
23
32
  require_client
24
33
  } from "./chunk-psmfpddh.js";
25
34
  import {
26
- require_dist_cjs
27
- } from "./chunk-jcfk76z5.js";
35
+ require_dist_cjs as require_dist_cjs8
36
+ } from "./chunk-ve1228q7.js";
28
37
  import {
29
- require_dist_cjs as require_dist_cjs4
30
- } from "./chunk-pn1q3cxk.js";
38
+ require_dist_cjs1 as require_dist_cjs6,
39
+ require_fxp,
40
+ require_invoke_store
41
+ } from "./chunk-enhtm7h3.js";
31
42
  import {
32
43
  require_dist_cjs as require_dist_cjs5
33
- } from "./chunk-6f8awfs6.js";
44
+ } from "./chunk-kxqjncxw.js";
34
45
  import {
35
- require_dist_cjs as require_dist_cjs3
36
- } from "./chunk-2md5w5h8.js";
37
- import {
38
- require_dist_cjs as require_dist_cjs2
39
- } from "./chunk-ve1228q7.js";
46
+ require_dist_cjs,
47
+ require_dist_cjs1 as require_dist_cjs4
48
+ } from "./chunk-b0bk6bxs.js";
40
49
  import {
41
- require_dist_cjs1 as require_dist_cjs8,
42
- require_dist_cjs2 as require_dist_cjs9
50
+ require_dist_cjs1 as require_dist_cjs2,
51
+ require_dist_cjs2 as require_dist_cjs3
43
52
  } from "./chunk-2nayx6q1.js";
44
53
  import {
45
54
  __commonJS,
@@ -47,8 +56,8 @@ import {
47
56
  } from "./chunk-qp2qdcda.js";
48
57
 
49
58
  // node_modules/.bun/@aws-sdk+middleware-host-header@3.972.9/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js
50
- var require_dist_cjs16 = __commonJS((exports) => {
51
- var protocolHttp = require_dist_cjs();
59
+ var require_dist_cjs17 = __commonJS((exports) => {
60
+ var protocolHttp = require_dist_cjs7();
52
61
  function resolveHostHeaderConfig(input) {
53
62
  return input;
54
63
  }
@@ -87,7 +96,7 @@ var require_dist_cjs16 = __commonJS((exports) => {
87
96
  });
88
97
 
89
98
  // node_modules/.bun/@aws-sdk+middleware-logger@3.972.9/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js
90
- var require_dist_cjs17 = __commonJS((exports) => {
99
+ var require_dist_cjs18 = __commonJS((exports) => {
91
100
  var loggerMiddleware = () => (next, context) => async (args) => {
92
101
  try {
93
102
  const response = await next(args);
@@ -134,129 +143,12 @@ var require_dist_cjs17 = __commonJS((exports) => {
134
143
  exports.loggerMiddlewareOptions = loggerMiddlewareOptions;
135
144
  });
136
145
 
137
- // node_modules/.bun/@aws+lambda-invoke-store@0.2.4/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js
138
- var require_invoke_store = __commonJS((exports) => {
139
- var PROTECTED_KEYS = {
140
- REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
141
- X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
142
- TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID")
143
- };
144
- var NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "");
145
- if (!NO_GLOBAL_AWS_LAMBDA) {
146
- globalThis.awslambda = globalThis.awslambda || {};
147
- }
148
-
149
- class InvokeStoreBase {
150
- static PROTECTED_KEYS = PROTECTED_KEYS;
151
- isProtectedKey(key) {
152
- return Object.values(PROTECTED_KEYS).includes(key);
153
- }
154
- getRequestId() {
155
- return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-";
156
- }
157
- getXRayTraceId() {
158
- return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID);
159
- }
160
- getTenantId() {
161
- return this.get(PROTECTED_KEYS.TENANT_ID);
162
- }
163
- }
164
-
165
- class InvokeStoreSingle extends InvokeStoreBase {
166
- currentContext;
167
- getContext() {
168
- return this.currentContext;
169
- }
170
- hasContext() {
171
- return this.currentContext !== undefined;
172
- }
173
- get(key) {
174
- return this.currentContext?.[key];
175
- }
176
- set(key, value) {
177
- if (this.isProtectedKey(key)) {
178
- throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
179
- }
180
- this.currentContext = this.currentContext || {};
181
- this.currentContext[key] = value;
182
- }
183
- run(context, fn) {
184
- this.currentContext = context;
185
- return fn();
186
- }
187
- }
188
-
189
- class InvokeStoreMulti extends InvokeStoreBase {
190
- als;
191
- static async create() {
192
- const instance = new InvokeStoreMulti;
193
- const asyncHooks = await import("async_hooks");
194
- instance.als = new asyncHooks.AsyncLocalStorage;
195
- return instance;
196
- }
197
- getContext() {
198
- return this.als.getStore();
199
- }
200
- hasContext() {
201
- return this.als.getStore() !== undefined;
202
- }
203
- get(key) {
204
- return this.als.getStore()?.[key];
205
- }
206
- set(key, value) {
207
- if (this.isProtectedKey(key)) {
208
- throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
209
- }
210
- const store = this.als.getStore();
211
- if (!store) {
212
- throw new Error("No context available");
213
- }
214
- store[key] = value;
215
- }
216
- run(context, fn) {
217
- return this.als.run(context, fn);
218
- }
219
- }
220
- exports.InvokeStore = undefined;
221
- (function(InvokeStore) {
222
- let instance = null;
223
- async function getInstanceAsync(forceInvokeStoreMulti) {
224
- if (!instance) {
225
- instance = (async () => {
226
- const isMulti = forceInvokeStoreMulti === true || "AWS_LAMBDA_MAX_CONCURRENCY" in process.env;
227
- const newInstance = isMulti ? await InvokeStoreMulti.create() : new InvokeStoreSingle;
228
- if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) {
229
- return globalThis.awslambda.InvokeStore;
230
- } else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) {
231
- globalThis.awslambda.InvokeStore = newInstance;
232
- return newInstance;
233
- } else {
234
- return newInstance;
235
- }
236
- })();
237
- }
238
- return instance;
239
- }
240
- InvokeStore.getInstanceAsync = getInstanceAsync;
241
- InvokeStore._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" ? {
242
- reset: () => {
243
- instance = null;
244
- if (globalThis.awslambda?.InvokeStore) {
245
- delete globalThis.awslambda.InvokeStore;
246
- }
247
- globalThis.awslambda = { InvokeStore: undefined };
248
- }
249
- } : undefined;
250
- })(exports.InvokeStore || (exports.InvokeStore = {}));
251
- exports.InvokeStoreBase = InvokeStoreBase;
252
- });
253
-
254
146
  // node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.10/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js
255
147
  var require_recursionDetectionMiddleware = __commonJS((exports) => {
256
148
  Object.defineProperty(exports, "__esModule", { value: true });
257
149
  exports.recursionDetectionMiddleware = undefined;
258
150
  var lambda_invoke_store_1 = require_invoke_store();
259
- var protocol_http_1 = require_dist_cjs();
151
+ var protocol_http_1 = require_dist_cjs7();
260
152
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
261
153
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
262
154
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
@@ -287,7 +179,7 @@ var require_recursionDetectionMiddleware = __commonJS((exports) => {
287
179
  });
288
180
 
289
181
  // node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.10/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js
290
- var require_dist_cjs18 = __commonJS((exports) => {
182
+ var require_dist_cjs19 = __commonJS((exports) => {
291
183
  var recursionDetectionMiddleware = require_recursionDetectionMiddleware();
292
184
  var recursionDetectionMiddlewareOptions = {
293
185
  step: "build",
@@ -313,9 +205,9 @@ var require_dist_cjs18 = __commonJS((exports) => {
313
205
  });
314
206
 
315
207
  // node_modules/.bun/@aws-sdk+util-endpoints@3.996.6/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js
316
- var require_dist_cjs19 = __commonJS((exports) => {
317
- var utilEndpoints = require_dist_cjs13();
318
- var urlParser = require_dist_cjs5();
208
+ var require_dist_cjs20 = __commonJS((exports) => {
209
+ var utilEndpoints = require_dist_cjs12();
210
+ var urlParser = require_dist_cjs10();
319
211
  var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
320
212
  if (allowSubDomains) {
321
213
  for (const label of value.split(".")) {
@@ -711,7 +603,7 @@ var require_dist_cjs19 = __commonJS((exports) => {
711
603
  });
712
604
 
713
605
  // node_modules/.bun/@smithy+service-error-classification@4.2.13/node_modules/@smithy/service-error-classification/dist-cjs/index.js
714
- var require_dist_cjs20 = __commonJS((exports) => {
606
+ var require_dist_cjs21 = __commonJS((exports) => {
715
607
  var CLOCK_SKEW_ERROR_CODES = [
716
608
  "AuthFailure",
717
609
  "InvalidSignatureException",
@@ -779,8 +671,8 @@ var require_dist_cjs20 = __commonJS((exports) => {
779
671
  });
780
672
 
781
673
  // node_modules/.bun/@smithy+util-retry@4.3.1/node_modules/@smithy/util-retry/dist-cjs/index.js
782
- var require_dist_cjs21 = __commonJS((exports) => {
783
- var serviceErrorClassification = require_dist_cjs20();
674
+ var require_dist_cjs22 = __commonJS((exports) => {
675
+ var serviceErrorClassification = require_dist_cjs21();
784
676
  exports.RETRY_MODES = undefined;
785
677
  (function(RETRY_MODES) {
786
678
  RETRY_MODES["STANDARD"] = "standard";
@@ -1101,12 +993,12 @@ var require_dist_cjs21 = __commonJS((exports) => {
1101
993
  });
1102
994
 
1103
995
  // node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.29/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js
1104
- var require_dist_cjs22 = __commonJS((exports) => {
1105
- var core = require_dist_cjs12();
1106
- var utilEndpoints = require_dist_cjs19();
1107
- var protocolHttp = require_dist_cjs();
996
+ var require_dist_cjs23 = __commonJS((exports) => {
997
+ var core = require_dist_cjs11();
998
+ var utilEndpoints = require_dist_cjs20();
999
+ var protocolHttp = require_dist_cjs7();
1108
1000
  var client = require_client();
1109
- var utilRetry = require_dist_cjs21();
1001
+ var utilRetry = require_dist_cjs22();
1110
1002
  var DEFAULT_UA_APP_ID = undefined;
1111
1003
  function isValidUserAgentAppId(appId) {
1112
1004
  if (appId === undefined) {
@@ -1279,8 +1171,8 @@ var require_dist_cjs22 = __commonJS((exports) => {
1279
1171
  });
1280
1172
 
1281
1173
  // node_modules/.bun/@smithy+middleware-content-length@4.2.13/node_modules/@smithy/middleware-content-length/dist-cjs/index.js
1282
- var require_dist_cjs23 = __commonJS((exports) => {
1283
- var protocolHttp = require_dist_cjs();
1174
+ var require_dist_cjs24 = __commonJS((exports) => {
1175
+ var protocolHttp = require_dist_cjs7();
1284
1176
  var CONTENT_LENGTH_HEADER = "content-length";
1285
1177
  function contentLengthMiddleware(bodyLengthChecker) {
1286
1178
  return (next) => async (args) => {
@@ -1323,7 +1215,7 @@ var require_dist_cjs23 = __commonJS((exports) => {
1323
1215
  var require_getEndpointUrlConfig = __commonJS((exports) => {
1324
1216
  Object.defineProperty(exports, "__esModule", { value: true });
1325
1217
  exports.getEndpointUrlConfig = undefined;
1326
- var shared_ini_file_loader_1 = require_dist_cjs3();
1218
+ var shared_ini_file_loader_1 = require_dist_cjs14();
1327
1219
  var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
1328
1220
  var CONFIG_ENDPOINT_URL = "endpoint_url";
1329
1221
  var getEndpointUrlConfig = (serviceId) => ({
@@ -1361,15 +1253,15 @@ var require_getEndpointUrlConfig = __commonJS((exports) => {
1361
1253
  var require_getEndpointFromConfig = __commonJS((exports) => {
1362
1254
  Object.defineProperty(exports, "__esModule", { value: true });
1363
1255
  exports.getEndpointFromConfig = undefined;
1364
- var node_config_provider_1 = require_dist_cjs4();
1256
+ var node_config_provider_1 = require_dist_cjs15();
1365
1257
  var getEndpointUrlConfig_1 = require_getEndpointUrlConfig();
1366
1258
  var getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId ?? ""))();
1367
1259
  exports.getEndpointFromConfig = getEndpointFromConfig;
1368
1260
  });
1369
1261
 
1370
1262
  // node_modules/.bun/@smithy+middleware-serde@4.2.17/node_modules/@smithy/middleware-serde/dist-cjs/index.js
1371
- var require_dist_cjs24 = __commonJS((exports) => {
1372
- var protocolHttp = require_dist_cjs();
1263
+ var require_dist_cjs25 = __commonJS((exports) => {
1264
+ var protocolHttp = require_dist_cjs7();
1373
1265
  var endpoints = require_endpoints();
1374
1266
  var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
1375
1267
  const { response } = await next(args);
@@ -1464,12 +1356,12 @@ var require_dist_cjs24 = __commonJS((exports) => {
1464
1356
  });
1465
1357
 
1466
1358
  // node_modules/.bun/@smithy+middleware-endpoint@4.4.29/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js
1467
- var require_dist_cjs25 = __commonJS((exports) => {
1468
- var core = require_dist_cjs12();
1469
- var utilMiddleware = require_dist_cjs6();
1359
+ var require_dist_cjs26 = __commonJS((exports) => {
1360
+ var core = require_dist_cjs11();
1361
+ var utilMiddleware = require_dist_cjs9();
1470
1362
  var getEndpointFromConfig = require_getEndpointFromConfig();
1471
- var urlParser = require_dist_cjs5();
1472
- var middlewareSerde = require_dist_cjs24();
1363
+ var urlParser = require_dist_cjs10();
1364
+ var middlewareSerde = require_dist_cjs25();
1473
1365
  var resolveParamsForS3 = async (endpointParams) => {
1474
1366
  const bucket = endpointParams?.Bucket || "";
1475
1367
  if (typeof endpointParams.Bucket === "string") {
@@ -1724,13 +1616,13 @@ var require_isStreamingPayload = __commonJS((exports) => {
1724
1616
  });
1725
1617
 
1726
1618
  // node_modules/.bun/@smithy+middleware-retry@4.5.1/node_modules/@smithy/middleware-retry/dist-cjs/index.js
1727
- var require_dist_cjs26 = __commonJS((exports) => {
1728
- var utilRetry = require_dist_cjs21();
1729
- var protocolHttp = require_dist_cjs();
1730
- var serviceErrorClassification = require_dist_cjs20();
1731
- var uuid = require_dist_cjs7();
1732
- var utilMiddleware = require_dist_cjs6();
1733
- var smithyClient = require_dist_cjs11();
1619
+ var require_dist_cjs27 = __commonJS((exports) => {
1620
+ var utilRetry = require_dist_cjs22();
1621
+ var protocolHttp = require_dist_cjs7();
1622
+ var serviceErrorClassification = require_dist_cjs21();
1623
+ var uuid = require_dist_cjs();
1624
+ var utilMiddleware = require_dist_cjs9();
1625
+ var smithyClient = require_dist_cjs16();
1734
1626
  var isStreamingPayload = require_isStreamingPayload();
1735
1627
  var serde = require_serde();
1736
1628
  var asSdkError = (error) => {
@@ -2101,8 +1993,8 @@ var require_stsRegionDefaultResolver = __commonJS((exports) => {
2101
1993
  Object.defineProperty(exports, "__esModule", { value: true });
2102
1994
  exports.warning = undefined;
2103
1995
  exports.stsRegionDefaultResolver = stsRegionDefaultResolver;
2104
- var config_resolver_1 = require_dist_cjs15();
2105
- var node_config_provider_1 = require_dist_cjs4();
1996
+ var config_resolver_1 = require_dist_cjs13();
1997
+ var node_config_provider_1 = require_dist_cjs15();
2106
1998
  function stsRegionDefaultResolver(loaderConfig = {}) {
2107
1999
  return (0, node_config_provider_1.loadConfig)({
2108
2000
  ...config_resolver_1.NODE_REGION_CONFIG_OPTIONS,
@@ -2120,9 +2012,9 @@ var require_stsRegionDefaultResolver = __commonJS((exports) => {
2120
2012
  });
2121
2013
 
2122
2014
  // node_modules/.bun/@aws-sdk+region-config-resolver@3.972.11/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
2123
- var require_dist_cjs27 = __commonJS((exports) => {
2015
+ var require_dist_cjs28 = __commonJS((exports) => {
2124
2016
  var stsRegionDefaultResolver = require_stsRegionDefaultResolver();
2125
- var configResolver = require_dist_cjs15();
2017
+ var configResolver = require_dist_cjs13();
2126
2018
  var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
2127
2019
  return {
2128
2020
  setRegion(region) {
@@ -2156,14 +2048,14 @@ var require_dist_cjs27 = __commonJS((exports) => {
2156
2048
  });
2157
2049
 
2158
2050
  // node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.15/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js
2159
- var require_dist_cjs28 = __commonJS((exports) => {
2051
+ var require_dist_cjs29 = __commonJS((exports) => {
2160
2052
  var __dirname = "/Users/konghayao/code/ai/claude-code/node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.15/node_modules/@aws-sdk/util-user-agent-node/dist-cjs";
2161
2053
  var node_os = __require("os");
2162
2054
  var node_process = __require("process");
2163
- var utilConfigProvider = require_dist_cjs14();
2055
+ var utilConfigProvider = require_dist_cjs5();
2164
2056
  var promises = __require("fs/promises");
2165
2057
  var node_path = __require("path");
2166
- var middlewareUserAgent = require_dist_cjs22();
2058
+ var middlewareUserAgent = require_dist_cjs23();
2167
2059
  var getRuntimeUserAgentPair = () => {
2168
2060
  const runtimesToCheck = ["deno", "bun", "llrt"];
2169
2061
  for (const runtime of runtimesToCheck) {
@@ -2327,9 +2219,9 @@ var require_dist_cjs28 = __commonJS((exports) => {
2327
2219
  });
2328
2220
 
2329
2221
  // node_modules/.bun/@smithy+hash-node@4.2.13/node_modules/@smithy/hash-node/dist-cjs/index.js
2330
- var require_dist_cjs29 = __commonJS((exports) => {
2331
- var utilBufferFrom = require_dist_cjs8();
2332
- var utilUtf8 = require_dist_cjs9();
2222
+ var require_dist_cjs30 = __commonJS((exports) => {
2223
+ var utilBufferFrom = require_dist_cjs2();
2224
+ var utilUtf8 = require_dist_cjs3();
2333
2225
  var buffer = __require("buffer");
2334
2226
  var crypto = __require("crypto");
2335
2227
 
@@ -2367,38 +2259,11 @@ var require_dist_cjs29 = __commonJS((exports) => {
2367
2259
  exports.Hash = Hash;
2368
2260
  });
2369
2261
 
2370
- // node_modules/.bun/@smithy+util-body-length-node@4.2.3/node_modules/@smithy/util-body-length-node/dist-cjs/index.js
2371
- var require_dist_cjs30 = __commonJS((exports) => {
2372
- var node_fs = __require("fs");
2373
- var calculateBodyLength = (body) => {
2374
- if (!body) {
2375
- return 0;
2376
- }
2377
- if (typeof body === "string") {
2378
- return Buffer.byteLength(body);
2379
- } else if (typeof body.byteLength === "number") {
2380
- return body.byteLength;
2381
- } else if (typeof body.size === "number") {
2382
- return body.size;
2383
- } else if (typeof body.start === "number" && typeof body.end === "number") {
2384
- return body.end + 1 - body.start;
2385
- } else if (body instanceof node_fs.ReadStream) {
2386
- if (body.path != null) {
2387
- return node_fs.lstatSync(body.path).size;
2388
- } else if (typeof body.fd === "number") {
2389
- return node_fs.fstatSync(body.fd).size;
2390
- }
2391
- }
2392
- throw new Error(`Body Length computation failed for ${body}`);
2393
- };
2394
- exports.calculateBodyLength = calculateBodyLength;
2395
- });
2396
-
2397
2262
  // node_modules/.bun/@smithy+util-defaults-mode-node@4.2.49/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
2398
2263
  var require_dist_cjs31 = __commonJS((exports) => {
2399
- var configResolver = require_dist_cjs15();
2400
- var nodeConfigProvider = require_dist_cjs4();
2401
- var propertyProvider = require_dist_cjs2();
2264
+ var configResolver = require_dist_cjs13();
2265
+ var nodeConfigProvider = require_dist_cjs15();
2266
+ var propertyProvider = require_dist_cjs8();
2402
2267
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
2403
2268
  var AWS_REGION_ENV = "AWS_REGION";
2404
2269
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -2454,7 +2319,7 @@ var require_dist_cjs31 = __commonJS((exports) => {
2454
2319
  }
2455
2320
  if (!process.env[ENV_IMDS_DISABLED]) {
2456
2321
  try {
2457
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-gjfa8v40.js");
2322
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-1ymrygy1.js");
2458
2323
  const endpoint = await getInstanceMetadataEndpoint();
2459
2324
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
2460
2325
  } catch (e) {}
@@ -2463,45 +2328,16 @@ var require_dist_cjs31 = __commonJS((exports) => {
2463
2328
  exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
2464
2329
  });
2465
2330
 
2466
- // node_modules/.bun/@smithy+util-body-length-browser@4.2.2/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js
2467
- var require_dist_cjs32 = __commonJS((exports) => {
2468
- var TEXT_ENCODER = typeof TextEncoder == "function" ? new TextEncoder : null;
2469
- var calculateBodyLength = (body) => {
2470
- if (typeof body === "string") {
2471
- if (TEXT_ENCODER) {
2472
- return TEXT_ENCODER.encode(body).byteLength;
2473
- }
2474
- let len = body.length;
2475
- for (let i = len - 1;i >= 0; i--) {
2476
- const code = body.charCodeAt(i);
2477
- if (code > 127 && code <= 2047)
2478
- len++;
2479
- else if (code > 2047 && code <= 65535)
2480
- len += 2;
2481
- if (code >= 56320 && code <= 57343)
2482
- i--;
2483
- }
2484
- return len;
2485
- } else if (typeof body.byteLength === "number") {
2486
- return body.byteLength;
2487
- } else if (typeof body.size === "number") {
2488
- return body.size;
2489
- }
2490
- throw new Error(`Body Length computation failed for ${body}`);
2491
- };
2492
- exports.calculateBodyLength = calculateBodyLength;
2493
- });
2494
-
2495
2331
  // node_modules/.bun/@smithy+core@3.23.14/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js
2496
2332
  var require_cbor = __commonJS((exports) => {
2497
2333
  var serde = require_serde();
2498
- var utilUtf8 = require_dist_cjs9();
2334
+ var utilUtf8 = require_dist_cjs3();
2499
2335
  var protocols = require_protocols();
2500
- var protocolHttp = require_dist_cjs();
2501
- var utilBodyLengthBrowser = require_dist_cjs32();
2336
+ var protocolHttp = require_dist_cjs7();
2337
+ var utilBodyLengthBrowser = require_dist_cjs6();
2502
2338
  var schema = require_schema();
2503
- var utilMiddleware = require_dist_cjs6();
2504
- var utilBase64 = require_dist_cjs10();
2339
+ var utilMiddleware = require_dist_cjs9();
2340
+ var utilBase64 = require_dist_cjs4();
2505
2341
  var majorUint64 = 0;
2506
2342
  var majorNegativeInt64 = 1;
2507
2343
  var majorUnstructuredByteString = 2;
@@ -3517,1557 +3353,6 @@ var require_cbor = __commonJS((exports) => {
3517
3353
  exports.tagSymbol = tagSymbol;
3518
3354
  });
3519
3355
 
3520
- // node_modules/.bun/fast-xml-parser@5.5.8/node_modules/fast-xml-parser/lib/fxp.cjs
3521
- var require_fxp = __commonJS((exports, module) => {
3522
- (() => {
3523
- var t = { d: (e2, i2) => {
3524
- for (var n2 in i2)
3525
- t.o(i2, n2) && !t.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: i2[n2] });
3526
- }, o: (t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), r: (t2) => {
3527
- typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
3528
- } }, e = {};
3529
- t.r(e), t.d(e, { XMLBuilder: () => $t, XMLParser: () => gt, XMLValidator: () => It });
3530
- const i = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n = new RegExp("^[" + i + "][" + i + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
3531
- function s(t2, e2) {
3532
- const i2 = [];
3533
- let n2 = e2.exec(t2);
3534
- for (;n2; ) {
3535
- const s2 = [];
3536
- s2.startIndex = e2.lastIndex - n2[0].length;
3537
- const r2 = n2.length;
3538
- for (let t3 = 0;t3 < r2; t3++)
3539
- s2.push(n2[t3]);
3540
- i2.push(s2), n2 = e2.exec(t2);
3541
- }
3542
- return i2;
3543
- }
3544
- const r = function(t2) {
3545
- return !(n.exec(t2) == null);
3546
- }, o = ["hasOwnProperty", "toString", "valueOf", "__defineGetter__", "__defineSetter__", "__lookupGetter__", "__lookupSetter__"], a = ["__proto__", "constructor", "prototype"], h = { allowBooleanAttributes: false, unpairedTags: [] };
3547
- function l(t2, e2) {
3548
- e2 = Object.assign({}, h, e2);
3549
- const i2 = [];
3550
- let n2 = false, s2 = false;
3551
- t2[0] === "\uFEFF" && (t2 = t2.substr(1));
3552
- for (let r2 = 0;r2 < t2.length; r2++)
3553
- if (t2[r2] === "<" && t2[r2 + 1] === "?") {
3554
- if (r2 += 2, r2 = u(t2, r2), r2.err)
3555
- return r2;
3556
- } else {
3557
- if (t2[r2] !== "<") {
3558
- if (p(t2[r2]))
3559
- continue;
3560
- return b("InvalidChar", "char '" + t2[r2] + "' is not expected.", w(t2, r2));
3561
- }
3562
- {
3563
- let o2 = r2;
3564
- if (r2++, t2[r2] === "!") {
3565
- r2 = c(t2, r2);
3566
- continue;
3567
- }
3568
- {
3569
- let a2 = false;
3570
- t2[r2] === "/" && (a2 = true, r2++);
3571
- let h2 = "";
3572
- for (;r2 < t2.length && t2[r2] !== ">" && t2[r2] !== " " && t2[r2] !== "\t" && t2[r2] !== `
3573
- ` && t2[r2] !== "\r"; r2++)
3574
- h2 += t2[r2];
3575
- if (h2 = h2.trim(), h2[h2.length - 1] === "/" && (h2 = h2.substring(0, h2.length - 1), r2--), !y(h2)) {
3576
- let e3;
3577
- return e3 = h2.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + h2 + "' is an invalid name.", b("InvalidTag", e3, w(t2, r2));
3578
- }
3579
- const l2 = g(t2, r2);
3580
- if (l2 === false)
3581
- return b("InvalidAttr", "Attributes for '" + h2 + "' have open quote.", w(t2, r2));
3582
- let d2 = l2.value;
3583
- if (r2 = l2.index, d2[d2.length - 1] === "/") {
3584
- const i3 = r2 - d2.length;
3585
- d2 = d2.substring(0, d2.length - 1);
3586
- const s3 = x(d2, e2);
3587
- if (s3 !== true)
3588
- return b(s3.err.code, s3.err.msg, w(t2, i3 + s3.err.line));
3589
- n2 = true;
3590
- } else if (a2) {
3591
- if (!l2.tagClosed)
3592
- return b("InvalidTag", "Closing tag '" + h2 + "' doesn't have proper closing.", w(t2, r2));
3593
- if (d2.trim().length > 0)
3594
- return b("InvalidTag", "Closing tag '" + h2 + "' can't have attributes or invalid starting.", w(t2, o2));
3595
- if (i2.length === 0)
3596
- return b("InvalidTag", "Closing tag '" + h2 + "' has not been opened.", w(t2, o2));
3597
- {
3598
- const e3 = i2.pop();
3599
- if (h2 !== e3.tagName) {
3600
- let i3 = w(t2, e3.tagStartPos);
3601
- return b("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + i3.line + ", col " + i3.col + ") instead of closing tag '" + h2 + "'.", w(t2, o2));
3602
- }
3603
- i2.length == 0 && (s2 = true);
3604
- }
3605
- } else {
3606
- const a3 = x(d2, e2);
3607
- if (a3 !== true)
3608
- return b(a3.err.code, a3.err.msg, w(t2, r2 - d2.length + a3.err.line));
3609
- if (s2 === true)
3610
- return b("InvalidXml", "Multiple possible root nodes found.", w(t2, r2));
3611
- e2.unpairedTags.indexOf(h2) !== -1 || i2.push({ tagName: h2, tagStartPos: o2 }), n2 = true;
3612
- }
3613
- for (r2++;r2 < t2.length; r2++)
3614
- if (t2[r2] === "<") {
3615
- if (t2[r2 + 1] === "!") {
3616
- r2++, r2 = c(t2, r2);
3617
- continue;
3618
- }
3619
- if (t2[r2 + 1] !== "?")
3620
- break;
3621
- if (r2 = u(t2, ++r2), r2.err)
3622
- return r2;
3623
- } else if (t2[r2] === "&") {
3624
- const e3 = N(t2, r2);
3625
- if (e3 == -1)
3626
- return b("InvalidChar", "char '&' is not expected.", w(t2, r2));
3627
- r2 = e3;
3628
- } else if (s2 === true && !p(t2[r2]))
3629
- return b("InvalidXml", "Extra text at the end", w(t2, r2));
3630
- t2[r2] === "<" && r2--;
3631
- }
3632
- }
3633
- }
3634
- return n2 ? i2.length == 1 ? b("InvalidTag", "Unclosed tag '" + i2[0].tagName + "'.", w(t2, i2[0].tagStartPos)) : !(i2.length > 0) || b("InvalidXml", "Invalid '" + JSON.stringify(i2.map((t3) => t3.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : b("InvalidXml", "Start tag expected.", 1);
3635
- }
3636
- function p(t2) {
3637
- return t2 === " " || t2 === "\t" || t2 === `
3638
- ` || t2 === "\r";
3639
- }
3640
- function u(t2, e2) {
3641
- const i2 = e2;
3642
- for (;e2 < t2.length; e2++)
3643
- if (t2[e2] == "?" || t2[e2] == " ") {
3644
- const n2 = t2.substr(i2, e2 - i2);
3645
- if (e2 > 5 && n2 === "xml")
3646
- return b("InvalidXml", "XML declaration allowed only at the start of the document.", w(t2, e2));
3647
- if (t2[e2] == "?" && t2[e2 + 1] == ">") {
3648
- e2++;
3649
- break;
3650
- }
3651
- continue;
3652
- }
3653
- return e2;
3654
- }
3655
- function c(t2, e2) {
3656
- if (t2.length > e2 + 5 && t2[e2 + 1] === "-" && t2[e2 + 2] === "-") {
3657
- for (e2 += 3;e2 < t2.length; e2++)
3658
- if (t2[e2] === "-" && t2[e2 + 1] === "-" && t2[e2 + 2] === ">") {
3659
- e2 += 2;
3660
- break;
3661
- }
3662
- } else if (t2.length > e2 + 8 && t2[e2 + 1] === "D" && t2[e2 + 2] === "O" && t2[e2 + 3] === "C" && t2[e2 + 4] === "T" && t2[e2 + 5] === "Y" && t2[e2 + 6] === "P" && t2[e2 + 7] === "E") {
3663
- let i2 = 1;
3664
- for (e2 += 8;e2 < t2.length; e2++)
3665
- if (t2[e2] === "<")
3666
- i2++;
3667
- else if (t2[e2] === ">" && (i2--, i2 === 0))
3668
- break;
3669
- } else if (t2.length > e2 + 9 && t2[e2 + 1] === "[" && t2[e2 + 2] === "C" && t2[e2 + 3] === "D" && t2[e2 + 4] === "A" && t2[e2 + 5] === "T" && t2[e2 + 6] === "A" && t2[e2 + 7] === "[") {
3670
- for (e2 += 8;e2 < t2.length; e2++)
3671
- if (t2[e2] === "]" && t2[e2 + 1] === "]" && t2[e2 + 2] === ">") {
3672
- e2 += 2;
3673
- break;
3674
- }
3675
- }
3676
- return e2;
3677
- }
3678
- const d = '"', f = "'";
3679
- function g(t2, e2) {
3680
- let i2 = "", n2 = "", s2 = false;
3681
- for (;e2 < t2.length; e2++) {
3682
- if (t2[e2] === d || t2[e2] === f)
3683
- n2 === "" ? n2 = t2[e2] : n2 !== t2[e2] || (n2 = "");
3684
- else if (t2[e2] === ">" && n2 === "") {
3685
- s2 = true;
3686
- break;
3687
- }
3688
- i2 += t2[e2];
3689
- }
3690
- return n2 === "" && { value: i2, index: e2, tagClosed: s2 };
3691
- }
3692
- const m = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
3693
- function x(t2, e2) {
3694
- const i2 = s(t2, m), n2 = {};
3695
- for (let t3 = 0;t3 < i2.length; t3++) {
3696
- if (i2[t3][1].length === 0)
3697
- return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' has no space in starting.", v(i2[t3]));
3698
- if (i2[t3][3] !== undefined && i2[t3][4] === undefined)
3699
- return b("InvalidAttr", "Attribute '" + i2[t3][2] + "' is without value.", v(i2[t3]));
3700
- if (i2[t3][3] === undefined && !e2.allowBooleanAttributes)
3701
- return b("InvalidAttr", "boolean attribute '" + i2[t3][2] + "' is not allowed.", v(i2[t3]));
3702
- const s2 = i2[t3][2];
3703
- if (!E(s2))
3704
- return b("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(i2[t3]));
3705
- if (Object.prototype.hasOwnProperty.call(n2, s2))
3706
- return b("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(i2[t3]));
3707
- n2[s2] = 1;
3708
- }
3709
- return true;
3710
- }
3711
- function N(t2, e2) {
3712
- if (t2[++e2] === ";")
3713
- return -1;
3714
- if (t2[e2] === "#")
3715
- return function(t3, e3) {
3716
- let i3 = /\d/;
3717
- for (t3[e3] === "x" && (e3++, i3 = /[\da-fA-F]/);e3 < t3.length; e3++) {
3718
- if (t3[e3] === ";")
3719
- return e3;
3720
- if (!t3[e3].match(i3))
3721
- break;
3722
- }
3723
- return -1;
3724
- }(t2, ++e2);
3725
- let i2 = 0;
3726
- for (;e2 < t2.length; e2++, i2++)
3727
- if (!(t2[e2].match(/\w/) && i2 < 20)) {
3728
- if (t2[e2] === ";")
3729
- break;
3730
- return -1;
3731
- }
3732
- return e2;
3733
- }
3734
- function b(t2, e2, i2) {
3735
- return { err: { code: t2, msg: e2, line: i2.line || i2, col: i2.col } };
3736
- }
3737
- function E(t2) {
3738
- return r(t2);
3739
- }
3740
- function y(t2) {
3741
- return r(t2);
3742
- }
3743
- function w(t2, e2) {
3744
- const i2 = t2.substring(0, e2).split(/\r?\n/);
3745
- return { line: i2.length, col: i2[i2.length - 1].length + 1 };
3746
- }
3747
- function v(t2) {
3748
- return t2.startIndex + t2[1].length;
3749
- }
3750
- const T = (t2) => o.includes(t2) ? "__" + t2 : t2, P = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t2, e2) {
3751
- return e2;
3752
- }, attributeValueProcessor: function(t2, e2) {
3753
- return e2;
3754
- }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t2, e2, i2) {
3755
- return t2;
3756
- }, captureMetaData: false, maxNestedTags: 100, strictReservedNames: true, jPath: true, onDangerousProperty: T };
3757
- function S(t2, e2) {
3758
- if (typeof t2 != "string")
3759
- return;
3760
- const i2 = t2.toLowerCase();
3761
- if (o.some((t3) => i2 === t3.toLowerCase()))
3762
- throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
3763
- if (a.some((t3) => i2 === t3.toLowerCase()))
3764
- throw new Error(`[SECURITY] Invalid ${e2}: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
3765
- }
3766
- function A(t2) {
3767
- return typeof t2 == "boolean" ? { enabled: t2, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1000, maxExpandedLength: 1e5, maxEntityCount: 100, allowedTags: null, tagFilter: null } : typeof t2 == "object" && t2 !== null ? { enabled: t2.enabled !== false, maxEntitySize: Math.max(1, t2.maxEntitySize ?? 1e4), maxExpansionDepth: Math.max(1, t2.maxExpansionDepth ?? 10), maxTotalExpansions: Math.max(1, t2.maxTotalExpansions ?? 1000), maxExpandedLength: Math.max(1, t2.maxExpandedLength ?? 1e5), maxEntityCount: Math.max(1, t2.maxEntityCount ?? 100), allowedTags: t2.allowedTags ?? null, tagFilter: t2.tagFilter ?? null } : A(true);
3768
- }
3769
- const O = function(t2) {
3770
- const e2 = Object.assign({}, P, t2), i2 = [{ value: e2.attributeNamePrefix, name: "attributeNamePrefix" }, { value: e2.attributesGroupName, name: "attributesGroupName" }, { value: e2.textNodeName, name: "textNodeName" }, { value: e2.cdataPropName, name: "cdataPropName" }, { value: e2.commentPropName, name: "commentPropName" }];
3771
- for (const { value: t3, name: e3 } of i2)
3772
- t3 && S(t3, e3);
3773
- return e2.onDangerousProperty === null && (e2.onDangerousProperty = T), e2.processEntities = A(e2.processEntities), e2.stopNodes && Array.isArray(e2.stopNodes) && (e2.stopNodes = e2.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), e2;
3774
- };
3775
- let C;
3776
- C = typeof Symbol != "function" ? "@@xmlMetadata" : Symbol("XML Node Metadata");
3777
-
3778
- class $ {
3779
- constructor(t2) {
3780
- this.tagname = t2, this.child = [], this[":@"] = Object.create(null);
3781
- }
3782
- add(t2, e2) {
3783
- t2 === "__proto__" && (t2 = "#__proto__"), this.child.push({ [t2]: e2 });
3784
- }
3785
- addChild(t2, e2) {
3786
- t2.tagname === "__proto__" && (t2.tagname = "#__proto__"), t2[":@"] && Object.keys(t2[":@"]).length > 0 ? this.child.push({ [t2.tagname]: t2.child, ":@": t2[":@"] }) : this.child.push({ [t2.tagname]: t2.child }), e2 !== undefined && (this.child[this.child.length - 1][C] = { startIndex: e2 });
3787
- }
3788
- static getMetaDataSymbol() {
3789
- return C;
3790
- }
3791
- }
3792
-
3793
- class I {
3794
- constructor(t2) {
3795
- this.suppressValidationErr = !t2, this.options = t2;
3796
- }
3797
- readDocType(t2, e2) {
3798
- const i2 = Object.create(null);
3799
- let n2 = 0;
3800
- if (t2[e2 + 3] !== "O" || t2[e2 + 4] !== "C" || t2[e2 + 5] !== "T" || t2[e2 + 6] !== "Y" || t2[e2 + 7] !== "P" || t2[e2 + 8] !== "E")
3801
- throw new Error("Invalid Tag instead of DOCTYPE");
3802
- {
3803
- e2 += 9;
3804
- let s2 = 1, r2 = false, o2 = false, a2 = "";
3805
- for (;e2 < t2.length; e2++)
3806
- if (t2[e2] !== "<" || o2)
3807
- if (t2[e2] === ">") {
3808
- if (o2 ? t2[e2 - 1] === "-" && t2[e2 - 2] === "-" && (o2 = false, s2--) : s2--, s2 === 0)
3809
- break;
3810
- } else
3811
- t2[e2] === "[" ? r2 = true : a2 += t2[e2];
3812
- else {
3813
- if (r2 && M(t2, "!ENTITY", e2)) {
3814
- let s3, r3;
3815
- if (e2 += 7, [s3, r3, e2] = this.readEntityExp(t2, e2 + 1, this.suppressValidationErr), r3.indexOf("&") === -1) {
3816
- if (this.options.enabled !== false && this.options.maxEntityCount != null && n2 >= this.options.maxEntityCount)
3817
- throw new Error(`Entity count (${n2 + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`);
3818
- const t3 = s3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3819
- i2[s3] = { regx: RegExp(`&${t3};`, "g"), val: r3 }, n2++;
3820
- }
3821
- } else if (r2 && M(t2, "!ELEMENT", e2)) {
3822
- e2 += 8;
3823
- const { index: i3 } = this.readElementExp(t2, e2 + 1);
3824
- e2 = i3;
3825
- } else if (r2 && M(t2, "!ATTLIST", e2))
3826
- e2 += 8;
3827
- else if (r2 && M(t2, "!NOTATION", e2)) {
3828
- e2 += 9;
3829
- const { index: i3 } = this.readNotationExp(t2, e2 + 1, this.suppressValidationErr);
3830
- e2 = i3;
3831
- } else {
3832
- if (!M(t2, "!--", e2))
3833
- throw new Error("Invalid DOCTYPE");
3834
- o2 = true;
3835
- }
3836
- s2++, a2 = "";
3837
- }
3838
- if (s2 !== 0)
3839
- throw new Error("Unclosed DOCTYPE");
3840
- }
3841
- return { entities: i2, i: e2 };
3842
- }
3843
- readEntityExp(t2, e2) {
3844
- const i2 = e2 = j(t2, e2);
3845
- for (;e2 < t2.length && !/\s/.test(t2[e2]) && t2[e2] !== '"' && t2[e2] !== "'"; )
3846
- e2++;
3847
- let n2 = t2.substring(i2, e2);
3848
- if (_(n2), e2 = j(t2, e2), !this.suppressValidationErr) {
3849
- if (t2.substring(e2, e2 + 6).toUpperCase() === "SYSTEM")
3850
- throw new Error("External entities are not supported");
3851
- if (t2[e2] === "%")
3852
- throw new Error("Parameter entities are not supported");
3853
- }
3854
- let s2 = "";
3855
- if ([e2, s2] = this.readIdentifierVal(t2, e2, "entity"), this.options.enabled !== false && this.options.maxEntitySize != null && s2.length > this.options.maxEntitySize)
3856
- throw new Error(`Entity "${n2}" size (${s2.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
3857
- return [n2, s2, --e2];
3858
- }
3859
- readNotationExp(t2, e2) {
3860
- const i2 = e2 = j(t2, e2);
3861
- for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3862
- e2++;
3863
- let n2 = t2.substring(i2, e2);
3864
- !this.suppressValidationErr && _(n2), e2 = j(t2, e2);
3865
- const s2 = t2.substring(e2, e2 + 6).toUpperCase();
3866
- if (!this.suppressValidationErr && s2 !== "SYSTEM" && s2 !== "PUBLIC")
3867
- throw new Error(`Expected SYSTEM or PUBLIC, found "${s2}"`);
3868
- e2 += s2.length, e2 = j(t2, e2);
3869
- let r2 = null, o2 = null;
3870
- if (s2 === "PUBLIC")
3871
- [e2, r2] = this.readIdentifierVal(t2, e2, "publicIdentifier"), t2[e2 = j(t2, e2)] !== '"' && t2[e2] !== "'" || ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"));
3872
- else if (s2 === "SYSTEM" && ([e2, o2] = this.readIdentifierVal(t2, e2, "systemIdentifier"), !this.suppressValidationErr && !o2))
3873
- throw new Error("Missing mandatory system identifier for SYSTEM notation");
3874
- return { notationName: n2, publicIdentifier: r2, systemIdentifier: o2, index: --e2 };
3875
- }
3876
- readIdentifierVal(t2, e2, i2) {
3877
- let n2 = "";
3878
- const s2 = t2[e2];
3879
- if (s2 !== '"' && s2 !== "'")
3880
- throw new Error(`Expected quoted string, found "${s2}"`);
3881
- const r2 = ++e2;
3882
- for (;e2 < t2.length && t2[e2] !== s2; )
3883
- e2++;
3884
- if (n2 = t2.substring(r2, e2), t2[e2] !== s2)
3885
- throw new Error(`Unterminated ${i2} value`);
3886
- return [++e2, n2];
3887
- }
3888
- readElementExp(t2, e2) {
3889
- const i2 = e2 = j(t2, e2);
3890
- for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3891
- e2++;
3892
- let n2 = t2.substring(i2, e2);
3893
- if (!this.suppressValidationErr && !r(n2))
3894
- throw new Error(`Invalid element name: "${n2}"`);
3895
- let s2 = "";
3896
- if (t2[e2 = j(t2, e2)] === "E" && M(t2, "MPTY", e2))
3897
- e2 += 4;
3898
- else if (t2[e2] === "A" && M(t2, "NY", e2))
3899
- e2 += 2;
3900
- else if (t2[e2] === "(") {
3901
- const i3 = ++e2;
3902
- for (;e2 < t2.length && t2[e2] !== ")"; )
3903
- e2++;
3904
- if (s2 = t2.substring(i3, e2), t2[e2] !== ")")
3905
- throw new Error("Unterminated content model");
3906
- } else if (!this.suppressValidationErr)
3907
- throw new Error(`Invalid Element Expression, found "${t2[e2]}"`);
3908
- return { elementName: n2, contentModel: s2.trim(), index: e2 };
3909
- }
3910
- readAttlistExp(t2, e2) {
3911
- let i2 = e2 = j(t2, e2);
3912
- for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3913
- e2++;
3914
- let n2 = t2.substring(i2, e2);
3915
- for (_(n2), i2 = e2 = j(t2, e2);e2 < t2.length && !/\s/.test(t2[e2]); )
3916
- e2++;
3917
- let s2 = t2.substring(i2, e2);
3918
- if (!_(s2))
3919
- throw new Error(`Invalid attribute name: "${s2}"`);
3920
- e2 = j(t2, e2);
3921
- let r2 = "";
3922
- if (t2.substring(e2, e2 + 8).toUpperCase() === "NOTATION") {
3923
- if (r2 = "NOTATION", t2[e2 = j(t2, e2 += 8)] !== "(")
3924
- throw new Error(`Expected '(', found "${t2[e2]}"`);
3925
- e2++;
3926
- let i3 = [];
3927
- for (;e2 < t2.length && t2[e2] !== ")"; ) {
3928
- const n3 = e2;
3929
- for (;e2 < t2.length && t2[e2] !== "|" && t2[e2] !== ")"; )
3930
- e2++;
3931
- let s3 = t2.substring(n3, e2);
3932
- if (s3 = s3.trim(), !_(s3))
3933
- throw new Error(`Invalid notation name: "${s3}"`);
3934
- i3.push(s3), t2[e2] === "|" && (e2++, e2 = j(t2, e2));
3935
- }
3936
- if (t2[e2] !== ")")
3937
- throw new Error("Unterminated list of notations");
3938
- e2++, r2 += " (" + i3.join("|") + ")";
3939
- } else {
3940
- const i3 = e2;
3941
- for (;e2 < t2.length && !/\s/.test(t2[e2]); )
3942
- e2++;
3943
- r2 += t2.substring(i3, e2);
3944
- const n3 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
3945
- if (!this.suppressValidationErr && !n3.includes(r2.toUpperCase()))
3946
- throw new Error(`Invalid attribute type: "${r2}"`);
3947
- }
3948
- e2 = j(t2, e2);
3949
- let o2 = "";
3950
- return t2.substring(e2, e2 + 8).toUpperCase() === "#REQUIRED" ? (o2 = "#REQUIRED", e2 += 8) : t2.substring(e2, e2 + 7).toUpperCase() === "#IMPLIED" ? (o2 = "#IMPLIED", e2 += 7) : [e2, o2] = this.readIdentifierVal(t2, e2, "ATTLIST"), { elementName: n2, attributeName: s2, attributeType: r2, defaultValue: o2, index: e2 };
3951
- }
3952
- }
3953
- const j = (t2, e2) => {
3954
- for (;e2 < t2.length && /\s/.test(t2[e2]); )
3955
- e2++;
3956
- return e2;
3957
- };
3958
- function M(t2, e2, i2) {
3959
- for (let n2 = 0;n2 < e2.length; n2++)
3960
- if (e2[n2] !== t2[i2 + n2 + 1])
3961
- return false;
3962
- return true;
3963
- }
3964
- function _(t2) {
3965
- if (r(t2))
3966
- return t2;
3967
- throw new Error(`Invalid entity name ${t2}`);
3968
- }
3969
- const D = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, k = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true, infinity: "original" };
3970
- const F = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/, L = new Set(["push", "pop", "reset", "updateCurrent", "restore"]);
3971
-
3972
- class G {
3973
- constructor(t2 = {}) {
3974
- this.separator = t2.separator || ".", this.path = [], this.siblingStacks = [];
3975
- }
3976
- push(t2, e2 = null, i2 = null) {
3977
- this.path.length > 0 && (this.path[this.path.length - 1].values = undefined);
3978
- const n2 = this.path.length;
3979
- this.siblingStacks[n2] || (this.siblingStacks[n2] = new Map);
3980
- const s2 = this.siblingStacks[n2], r2 = i2 ? `${i2}:${t2}` : t2, o2 = s2.get(r2) || 0;
3981
- let a2 = 0;
3982
- for (const t3 of s2.values())
3983
- a2 += t3;
3984
- s2.set(r2, o2 + 1);
3985
- const h2 = { tag: t2, position: a2, counter: o2 };
3986
- i2 != null && (h2.namespace = i2), e2 != null && (h2.values = e2), this.path.push(h2);
3987
- }
3988
- pop() {
3989
- if (this.path.length === 0)
3990
- return;
3991
- const t2 = this.path.pop();
3992
- return this.siblingStacks.length > this.path.length + 1 && (this.siblingStacks.length = this.path.length + 1), t2;
3993
- }
3994
- updateCurrent(t2) {
3995
- if (this.path.length > 0) {
3996
- const e2 = this.path[this.path.length - 1];
3997
- t2 != null && (e2.values = t2);
3998
- }
3999
- }
4000
- getCurrentTag() {
4001
- return this.path.length > 0 ? this.path[this.path.length - 1].tag : undefined;
4002
- }
4003
- getCurrentNamespace() {
4004
- return this.path.length > 0 ? this.path[this.path.length - 1].namespace : undefined;
4005
- }
4006
- getAttrValue(t2) {
4007
- if (this.path.length === 0)
4008
- return;
4009
- const e2 = this.path[this.path.length - 1];
4010
- return e2.values?.[t2];
4011
- }
4012
- hasAttr(t2) {
4013
- if (this.path.length === 0)
4014
- return false;
4015
- const e2 = this.path[this.path.length - 1];
4016
- return e2.values !== undefined && t2 in e2.values;
4017
- }
4018
- getPosition() {
4019
- return this.path.length === 0 ? -1 : this.path[this.path.length - 1].position ?? 0;
4020
- }
4021
- getCounter() {
4022
- return this.path.length === 0 ? -1 : this.path[this.path.length - 1].counter ?? 0;
4023
- }
4024
- getIndex() {
4025
- return this.getPosition();
4026
- }
4027
- getDepth() {
4028
- return this.path.length;
4029
- }
4030
- toString(t2, e2 = true) {
4031
- const i2 = t2 || this.separator;
4032
- return this.path.map((t3) => e2 && t3.namespace ? `${t3.namespace}:${t3.tag}` : t3.tag).join(i2);
4033
- }
4034
- toArray() {
4035
- return this.path.map((t2) => t2.tag);
4036
- }
4037
- reset() {
4038
- this.path = [], this.siblingStacks = [];
4039
- }
4040
- matches(t2) {
4041
- const e2 = t2.segments;
4042
- return e2.length !== 0 && (t2.hasDeepWildcard() ? this._matchWithDeepWildcard(e2) : this._matchSimple(e2));
4043
- }
4044
- _matchSimple(t2) {
4045
- if (this.path.length !== t2.length)
4046
- return false;
4047
- for (let e2 = 0;e2 < t2.length; e2++) {
4048
- const i2 = t2[e2], n2 = this.path[e2], s2 = e2 === this.path.length - 1;
4049
- if (!this._matchSegment(i2, n2, s2))
4050
- return false;
4051
- }
4052
- return true;
4053
- }
4054
- _matchWithDeepWildcard(t2) {
4055
- let e2 = this.path.length - 1, i2 = t2.length - 1;
4056
- for (;i2 >= 0 && e2 >= 0; ) {
4057
- const n2 = t2[i2];
4058
- if (n2.type === "deep-wildcard") {
4059
- if (i2--, i2 < 0)
4060
- return true;
4061
- const n3 = t2[i2];
4062
- let s2 = false;
4063
- for (let t3 = e2;t3 >= 0; t3--) {
4064
- const r2 = t3 === this.path.length - 1;
4065
- if (this._matchSegment(n3, this.path[t3], r2)) {
4066
- e2 = t3 - 1, i2--, s2 = true;
4067
- break;
4068
- }
4069
- }
4070
- if (!s2)
4071
- return false;
4072
- } else {
4073
- const t3 = e2 === this.path.length - 1;
4074
- if (!this._matchSegment(n2, this.path[e2], t3))
4075
- return false;
4076
- e2--, i2--;
4077
- }
4078
- }
4079
- return i2 < 0;
4080
- }
4081
- _matchSegment(t2, e2, i2) {
4082
- if (t2.tag !== "*" && t2.tag !== e2.tag)
4083
- return false;
4084
- if (t2.namespace !== undefined && t2.namespace !== "*" && t2.namespace !== e2.namespace)
4085
- return false;
4086
- if (t2.attrName !== undefined) {
4087
- if (!i2)
4088
- return false;
4089
- if (!e2.values || !(t2.attrName in e2.values))
4090
- return false;
4091
- if (t2.attrValue !== undefined) {
4092
- const i3 = e2.values[t2.attrName];
4093
- if (String(i3) !== String(t2.attrValue))
4094
- return false;
4095
- }
4096
- }
4097
- if (t2.position !== undefined) {
4098
- if (!i2)
4099
- return false;
4100
- const n2 = e2.counter ?? 0;
4101
- if (t2.position === "first" && n2 !== 0)
4102
- return false;
4103
- if (t2.position === "odd" && n2 % 2 != 1)
4104
- return false;
4105
- if (t2.position === "even" && n2 % 2 != 0)
4106
- return false;
4107
- if (t2.position === "nth" && n2 !== t2.positionValue)
4108
- return false;
4109
- }
4110
- return true;
4111
- }
4112
- snapshot() {
4113
- return { path: this.path.map((t2) => ({ ...t2 })), siblingStacks: this.siblingStacks.map((t2) => new Map(t2)) };
4114
- }
4115
- restore(t2) {
4116
- this.path = t2.path.map((t3) => ({ ...t3 })), this.siblingStacks = t2.siblingStacks.map((t3) => new Map(t3));
4117
- }
4118
- readOnly() {
4119
- return new Proxy(this, { get(t2, e2, i2) {
4120
- if (L.has(e2))
4121
- return () => {
4122
- throw new TypeError(`Cannot call '${e2}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
4123
- };
4124
- const n2 = Reflect.get(t2, e2, i2);
4125
- return e2 === "path" || e2 === "siblingStacks" ? Object.freeze(Array.isArray(n2) ? n2.map((t3) => t3 instanceof Map ? Object.freeze(new Map(t3)) : Object.freeze({ ...t3 })) : n2) : typeof n2 == "function" ? n2.bind(t2) : n2;
4126
- }, set(t2, e2) {
4127
- throw new TypeError(`Cannot set property '${String(e2)}' on a read-only Matcher.`);
4128
- }, deleteProperty(t2, e2) {
4129
- throw new TypeError(`Cannot delete property '${String(e2)}' from a read-only Matcher.`);
4130
- } });
4131
- }
4132
- }
4133
-
4134
- class R {
4135
- constructor(t2, e2 = {}) {
4136
- this.pattern = t2, this.separator = e2.separator || ".", this.segments = this._parse(t2), this._hasDeepWildcard = this.segments.some((t3) => t3.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((t3) => t3.attrName !== undefined), this._hasPositionSelector = this.segments.some((t3) => t3.position !== undefined);
4137
- }
4138
- _parse(t2) {
4139
- const e2 = [];
4140
- let i2 = 0, n2 = "";
4141
- for (;i2 < t2.length; )
4142
- t2[i2] === this.separator ? i2 + 1 < t2.length && t2[i2 + 1] === this.separator ? (n2.trim() && (e2.push(this._parseSegment(n2.trim())), n2 = ""), e2.push({ type: "deep-wildcard" }), i2 += 2) : (n2.trim() && e2.push(this._parseSegment(n2.trim())), n2 = "", i2++) : (n2 += t2[i2], i2++);
4143
- return n2.trim() && e2.push(this._parseSegment(n2.trim())), e2;
4144
- }
4145
- _parseSegment(t2) {
4146
- const e2 = { type: "tag" };
4147
- let i2 = null, n2 = t2;
4148
- const s2 = t2.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);
4149
- if (s2 && (n2 = s2[1] + s2[3], s2[2])) {
4150
- const t3 = s2[2].slice(1, -1);
4151
- t3 && (i2 = t3);
4152
- }
4153
- let r2, o2, a2 = n2;
4154
- if (n2.includes("::")) {
4155
- const e3 = n2.indexOf("::");
4156
- if (r2 = n2.substring(0, e3).trim(), a2 = n2.substring(e3 + 2).trim(), !r2)
4157
- throw new Error(`Invalid namespace in pattern: ${t2}`);
4158
- }
4159
- let h2 = null;
4160
- if (a2.includes(":")) {
4161
- const t3 = a2.lastIndexOf(":"), e3 = a2.substring(0, t3).trim(), i3 = a2.substring(t3 + 1).trim();
4162
- ["first", "last", "odd", "even"].includes(i3) || /^nth\(\d+\)$/.test(i3) ? (o2 = e3, h2 = i3) : o2 = a2;
4163
- } else
4164
- o2 = a2;
4165
- if (!o2)
4166
- throw new Error(`Invalid segment pattern: ${t2}`);
4167
- if (e2.tag = o2, r2 && (e2.namespace = r2), i2)
4168
- if (i2.includes("=")) {
4169
- const t3 = i2.indexOf("=");
4170
- e2.attrName = i2.substring(0, t3).trim(), e2.attrValue = i2.substring(t3 + 1).trim();
4171
- } else
4172
- e2.attrName = i2.trim();
4173
- if (h2) {
4174
- const t3 = h2.match(/^nth\((\d+)\)$/);
4175
- t3 ? (e2.position = "nth", e2.positionValue = parseInt(t3[1], 10)) : e2.position = h2;
4176
- }
4177
- return e2;
4178
- }
4179
- get length() {
4180
- return this.segments.length;
4181
- }
4182
- hasDeepWildcard() {
4183
- return this._hasDeepWildcard;
4184
- }
4185
- hasAttributeCondition() {
4186
- return this._hasAttributeCondition;
4187
- }
4188
- hasPositionSelector() {
4189
- return this._hasPositionSelector;
4190
- }
4191
- toString() {
4192
- return this.pattern;
4193
- }
4194
- }
4195
- function U(t2, e2) {
4196
- if (!t2)
4197
- return {};
4198
- const i2 = e2.attributesGroupName ? t2[e2.attributesGroupName] : t2;
4199
- if (!i2)
4200
- return {};
4201
- const n2 = {};
4202
- for (const t3 in i2)
4203
- t3.startsWith(e2.attributeNamePrefix) ? n2[t3.substring(e2.attributeNamePrefix.length)] = i2[t3] : n2[t3] = i2[t3];
4204
- return n2;
4205
- }
4206
- function B(t2) {
4207
- if (!t2 || typeof t2 != "string")
4208
- return;
4209
- const e2 = t2.indexOf(":");
4210
- if (e2 !== -1 && e2 > 0) {
4211
- const i2 = t2.substring(0, e2);
4212
- if (i2 !== "xmlns")
4213
- return i2;
4214
- }
4215
- }
4216
-
4217
- class W {
4218
- constructor(t2) {
4219
- var e2;
4220
- if (this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t3, e3) => rt(e3, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t3, e3) => rt(e3, 16, "&#x") } }, this.addExternalEntities = Y, this.parseXml = J, this.parseTextData = z, this.resolveNameSpace = X, this.buildAttributesMap = Z, this.isItStopNode = tt, this.replaceEntitiesValue = Q, this.readStopNodeData = nt, this.saveTextToParentTag = H, this.addChild = K, this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
4221
- for (const i2 of e2) {
4222
- if (typeof i2 == "string" && t3 === i2)
4223
- return true;
4224
- if (i2 instanceof RegExp && i2.test(t3))
4225
- return true;
4226
- }
4227
- } : () => false, this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new G, this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = false, this.options.stopNodes && this.options.stopNodes.length > 0) {
4228
- this.stopNodeExpressions = [];
4229
- for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
4230
- const e3 = this.options.stopNodes[t3];
4231
- typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
4232
- }
4233
- }
4234
- }
4235
- }
4236
- function Y(t2) {
4237
- const e2 = Object.keys(t2);
4238
- for (let i2 = 0;i2 < e2.length; i2++) {
4239
- const n2 = e2[i2], s2 = n2.replace(/[.\-+*:]/g, "\\.");
4240
- this.lastEntities[n2] = { regex: new RegExp("&" + s2 + ";", "g"), val: t2[n2] };
4241
- }
4242
- }
4243
- function z(t2, e2, i2, n2, s2, r2, o2) {
4244
- if (t2 !== undefined && (this.options.trimValues && !n2 && (t2 = t2.trim()), t2.length > 0)) {
4245
- o2 || (t2 = this.replaceEntitiesValue(t2, e2, i2));
4246
- const n3 = this.options.jPath ? i2.toString() : i2, a2 = this.options.tagValueProcessor(e2, t2, n3, s2, r2);
4247
- return a2 == null ? t2 : typeof a2 != typeof t2 || a2 !== t2 ? a2 : this.options.trimValues || t2.trim() === t2 ? st(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
4248
- }
4249
- }
4250
- function X(t2) {
4251
- if (this.options.removeNSPrefix) {
4252
- const e2 = t2.split(":"), i2 = t2.charAt(0) === "/" ? "/" : "";
4253
- if (e2[0] === "xmlns")
4254
- return "";
4255
- e2.length === 2 && (t2 = i2 + e2[1]);
4256
- }
4257
- return t2;
4258
- }
4259
- const q = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
4260
- function Z(t2, e2, i2) {
4261
- if (this.options.ignoreAttributes !== true && typeof t2 == "string") {
4262
- const n2 = s(t2, q), r2 = n2.length, o2 = {}, a2 = {};
4263
- for (let t3 = 0;t3 < r2; t3++) {
4264
- const e3 = this.resolveNameSpace(n2[t3][1]), s2 = n2[t3][4];
4265
- if (e3.length && s2 !== undefined) {
4266
- let t4 = s2;
4267
- this.options.trimValues && (t4 = t4.trim()), t4 = this.replaceEntitiesValue(t4, i2, this.readonlyMatcher), a2[e3] = t4;
4268
- }
4269
- }
4270
- Object.keys(a2).length > 0 && typeof e2 == "object" && e2.updateCurrent && e2.updateCurrent(a2);
4271
- for (let t3 = 0;t3 < r2; t3++) {
4272
- const s2 = this.resolveNameSpace(n2[t3][1]), r3 = this.options.jPath ? e2.toString() : this.readonlyMatcher;
4273
- if (this.ignoreAttributesFn(s2, r3))
4274
- continue;
4275
- let a3 = n2[t3][4], h2 = this.options.attributeNamePrefix + s2;
4276
- if (s2.length)
4277
- if (this.options.transformAttributeName && (h2 = this.options.transformAttributeName(h2)), h2 = at(h2, this.options), a3 !== undefined) {
4278
- this.options.trimValues && (a3 = a3.trim()), a3 = this.replaceEntitiesValue(a3, i2, this.readonlyMatcher);
4279
- const t4 = this.options.jPath ? e2.toString() : this.readonlyMatcher, n3 = this.options.attributeValueProcessor(s2, a3, t4);
4280
- o2[h2] = n3 == null ? a3 : typeof n3 != typeof a3 || n3 !== a3 ? n3 : st(a3, this.options.parseAttributeValue, this.options.numberParseOptions);
4281
- } else
4282
- this.options.allowBooleanAttributes && (o2[h2] = true);
4283
- }
4284
- if (!Object.keys(o2).length)
4285
- return;
4286
- if (this.options.attributesGroupName) {
4287
- const t3 = {};
4288
- return t3[this.options.attributesGroupName] = o2, t3;
4289
- }
4290
- return o2;
4291
- }
4292
- }
4293
- const J = function(t2) {
4294
- t2 = t2.replace(/\r\n?/g, `
4295
- `);
4296
- const e2 = new $("!xml");
4297
- let i2 = e2, n2 = "";
4298
- this.matcher.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
4299
- const s2 = new I(this.options.processEntities);
4300
- for (let r2 = 0;r2 < t2.length; r2++)
4301
- if (t2[r2] === "<")
4302
- if (t2[r2 + 1] === "/") {
4303
- const e3 = et(t2, ">", r2, "Closing Tag is not closed.");
4304
- let s3 = t2.substring(r2 + 2, e3).trim();
4305
- if (this.options.removeNSPrefix) {
4306
- const t3 = s3.indexOf(":");
4307
- t3 !== -1 && (s3 = s3.substr(t3 + 1));
4308
- }
4309
- s3 = ot(this.options.transformTagName, s3, "", this.options).tagName, i2 && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher));
4310
- const o2 = this.matcher.getCurrentTag();
4311
- if (s3 && this.options.unpairedTags.indexOf(s3) !== -1)
4312
- throw new Error(`Unpaired tag can not be used as closing tag: </${s3}>`);
4313
- o2 && this.options.unpairedTags.indexOf(o2) !== -1 && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = false, i2 = this.tagsNodeStack.pop(), n2 = "", r2 = e3;
4314
- } else if (t2[r2 + 1] === "?") {
4315
- let e3 = it(t2, r2, false, "?>");
4316
- if (!e3)
4317
- throw new Error("Pi Tag is not closed.");
4318
- if (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), this.options.ignoreDeclaration && e3.tagName === "?xml" || this.options.ignorePiTags)
4319
- ;
4320
- else {
4321
- const t3 = new $(e3.tagName);
4322
- t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, this.matcher, e3.tagName)), this.addChild(i2, t3, this.readonlyMatcher, r2);
4323
- }
4324
- r2 = e3.closeIndex + 1;
4325
- } else if (t2.substr(r2 + 1, 3) === "!--") {
4326
- const e3 = et(t2, "-->", r2 + 4, "Comment is not closed.");
4327
- if (this.options.commentPropName) {
4328
- const s3 = t2.substring(r2 + 4, e3 - 2);
4329
- n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher), i2.add(this.options.commentPropName, [{ [this.options.textNodeName]: s3 }]);
4330
- }
4331
- r2 = e3;
4332
- } else if (t2.substr(r2 + 1, 2) === "!D") {
4333
- const e3 = s2.readDocType(t2, r2);
4334
- this.docTypeEntities = e3.entities, r2 = e3.i;
4335
- } else if (t2.substr(r2 + 1, 2) === "![") {
4336
- const e3 = et(t2, "]]>", r2, "CDATA is not closed.") - 2, s3 = t2.substring(r2 + 9, e3);
4337
- n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher);
4338
- let o2 = this.parseTextData(s3, i2.tagname, this.readonlyMatcher, true, false, true, true);
4339
- o2 == null && (o2 = ""), this.options.cdataPropName ? i2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: s3 }]) : i2.add(this.options.textNodeName, o2), r2 = e3 + 2;
4340
- } else {
4341
- let s3 = it(t2, r2, this.options.removeNSPrefix);
4342
- if (!s3) {
4343
- const e3 = t2.substring(Math.max(0, r2 - 50), Math.min(t2.length, r2 + 50));
4344
- throw new Error(`readTagExp returned undefined at position ${r2}. Context: "${e3}"`);
4345
- }
4346
- let o2 = s3.tagName;
4347
- const a2 = s3.rawTagName;
4348
- let { tagExp: h2, attrExpPresent: l2, closeIndex: p2 } = s3;
4349
- if ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options), this.options.strictReservedNames && (o2 === this.options.commentPropName || o2 === this.options.cdataPropName || o2 === this.options.textNodeName || o2 === this.options.attributesGroupName))
4350
- throw new Error(`Invalid tag name: ${o2}`);
4351
- i2 && n2 && i2.tagname !== "!xml" && (n2 = this.saveTextToParentTag(n2, i2, this.readonlyMatcher, false));
4352
- const u2 = i2;
4353
- u2 && this.options.unpairedTags.indexOf(u2.tagname) !== -1 && (i2 = this.tagsNodeStack.pop(), this.matcher.pop());
4354
- let c2 = false;
4355
- h2.length > 0 && h2.lastIndexOf("/") === h2.length - 1 && (c2 = true, o2[o2.length - 1] === "/" ? (o2 = o2.substr(0, o2.length - 1), h2 = o2) : h2 = h2.substr(0, h2.length - 1), l2 = o2 !== h2);
4356
- let d2, f2 = null, g2 = {};
4357
- d2 = B(a2), o2 !== e2.tagname && this.matcher.push(o2, {}, d2), o2 !== h2 && l2 && (f2 = this.buildAttributesMap(h2, this.matcher, o2), f2 && (g2 = U(f2, this.options))), o2 !== e2.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
4358
- const m2 = r2;
4359
- if (this.isCurrentNodeStopNode) {
4360
- let e3 = "";
4361
- if (c2)
4362
- r2 = s3.closeIndex;
4363
- else if (this.options.unpairedTags.indexOf(o2) !== -1)
4364
- r2 = s3.closeIndex;
4365
- else {
4366
- const i3 = this.readStopNodeData(t2, a2, p2 + 1);
4367
- if (!i3)
4368
- throw new Error(`Unexpected end of ${a2}`);
4369
- r2 = i3.i, e3 = i3.tagContent;
4370
- }
4371
- const n3 = new $(o2);
4372
- f2 && (n3[":@"] = f2), n3.add(this.options.textNodeName, e3), this.matcher.pop(), this.isCurrentNodeStopNode = false, this.addChild(i2, n3, this.readonlyMatcher, m2);
4373
- } else {
4374
- if (c2) {
4375
- ({ tagName: o2, tagExp: h2 } = ot(this.options.transformTagName, o2, h2, this.options));
4376
- const t3 = new $(o2);
4377
- f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false;
4378
- } else {
4379
- if (this.options.unpairedTags.indexOf(o2) !== -1) {
4380
- const t3 = new $(o2);
4381
- f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), this.matcher.pop(), this.isCurrentNodeStopNode = false, r2 = s3.closeIndex;
4382
- continue;
4383
- }
4384
- {
4385
- const t3 = new $(o2);
4386
- if (this.tagsNodeStack.length > this.options.maxNestedTags)
4387
- throw new Error("Maximum nested tags exceeded");
4388
- this.tagsNodeStack.push(i2), f2 && (t3[":@"] = f2), this.addChild(i2, t3, this.readonlyMatcher, m2), i2 = t3;
4389
- }
4390
- }
4391
- n2 = "", r2 = p2;
4392
- }
4393
- }
4394
- else
4395
- n2 += t2[r2];
4396
- return e2.child;
4397
- };
4398
- function K(t2, e2, i2, n2) {
4399
- this.options.captureMetaData || (n2 = undefined);
4400
- const s2 = this.options.jPath ? i2.toString() : i2, r2 = this.options.updateTag(e2.tagname, s2, e2[":@"]);
4401
- r2 === false || (typeof r2 == "string" ? (e2.tagname = r2, t2.addChild(e2, n2)) : t2.addChild(e2, n2));
4402
- }
4403
- function Q(t2, e2, i2) {
4404
- const n2 = this.options.processEntities;
4405
- if (!n2 || !n2.enabled)
4406
- return t2;
4407
- if (n2.allowedTags) {
4408
- const s2 = this.options.jPath ? i2.toString() : i2;
4409
- if (!(Array.isArray(n2.allowedTags) ? n2.allowedTags.includes(e2) : n2.allowedTags(e2, s2)))
4410
- return t2;
4411
- }
4412
- if (n2.tagFilter) {
4413
- const s2 = this.options.jPath ? i2.toString() : i2;
4414
- if (!n2.tagFilter(e2, s2))
4415
- return t2;
4416
- }
4417
- for (const e3 of Object.keys(this.docTypeEntities)) {
4418
- const i3 = this.docTypeEntities[e3], s2 = t2.match(i3.regx);
4419
- if (s2) {
4420
- if (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions)
4421
- throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4422
- const e4 = t2.length;
4423
- if (t2 = t2.replace(i3.regx, i3.val), n2.maxExpandedLength && (this.currentExpandedLength += t2.length - e4, this.currentExpandedLength > n2.maxExpandedLength))
4424
- throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${n2.maxExpandedLength}`);
4425
- }
4426
- }
4427
- for (const e3 of Object.keys(this.lastEntities)) {
4428
- const i3 = this.lastEntities[e3], s2 = t2.match(i3.regex);
4429
- if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
4430
- throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4431
- t2 = t2.replace(i3.regex, i3.val);
4432
- }
4433
- if (t2.indexOf("&") === -1)
4434
- return t2;
4435
- if (this.options.htmlEntities)
4436
- for (const e3 of Object.keys(this.htmlEntities)) {
4437
- const i3 = this.htmlEntities[e3], s2 = t2.match(i3.regex);
4438
- if (s2 && (this.entityExpansionCount += s2.length, n2.maxTotalExpansions && this.entityExpansionCount > n2.maxTotalExpansions))
4439
- throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${n2.maxTotalExpansions}`);
4440
- t2 = t2.replace(i3.regex, i3.val);
4441
- }
4442
- return t2.replace(this.ampEntity.regex, this.ampEntity.val);
4443
- }
4444
- function H(t2, e2, i2, n2) {
4445
- return t2 && (n2 === undefined && (n2 = e2.child.length === 0), (t2 = this.parseTextData(t2, e2.tagname, i2, false, !!e2[":@"] && Object.keys(e2[":@"]).length !== 0, n2)) !== undefined && t2 !== "" && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
4446
- }
4447
- function tt(t2, e2) {
4448
- if (!t2 || t2.length === 0)
4449
- return false;
4450
- for (let i2 = 0;i2 < t2.length; i2++)
4451
- if (e2.matches(t2[i2]))
4452
- return true;
4453
- return false;
4454
- }
4455
- function et(t2, e2, i2, n2) {
4456
- const s2 = t2.indexOf(e2, i2);
4457
- if (s2 === -1)
4458
- throw new Error(n2);
4459
- return s2 + e2.length - 1;
4460
- }
4461
- function it(t2, e2, i2, n2 = ">") {
4462
- const s2 = function(t3, e3, i3 = ">") {
4463
- let n3, s3 = "";
4464
- for (let r3 = e3;r3 < t3.length; r3++) {
4465
- let e4 = t3[r3];
4466
- if (n3)
4467
- e4 === n3 && (n3 = "");
4468
- else if (e4 === '"' || e4 === "'")
4469
- n3 = e4;
4470
- else if (e4 === i3[0]) {
4471
- if (!i3[1])
4472
- return { data: s3, index: r3 };
4473
- if (t3[r3 + 1] === i3[1])
4474
- return { data: s3, index: r3 };
4475
- } else
4476
- e4 === "\t" && (e4 = " ");
4477
- s3 += e4;
4478
- }
4479
- }(t2, e2 + 1, n2);
4480
- if (!s2)
4481
- return;
4482
- let r2 = s2.data;
4483
- const o2 = s2.index, a2 = r2.search(/\s/);
4484
- let h2 = r2, l2 = true;
4485
- a2 !== -1 && (h2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
4486
- const p2 = h2;
4487
- if (i2) {
4488
- const t3 = h2.indexOf(":");
4489
- t3 !== -1 && (h2 = h2.substr(t3 + 1), l2 = h2 !== s2.data.substr(t3 + 1));
4490
- }
4491
- return { tagName: h2, tagExp: r2, closeIndex: o2, attrExpPresent: l2, rawTagName: p2 };
4492
- }
4493
- function nt(t2, e2, i2) {
4494
- const n2 = i2;
4495
- let s2 = 1;
4496
- for (;i2 < t2.length; i2++)
4497
- if (t2[i2] === "<")
4498
- if (t2[i2 + 1] === "/") {
4499
- const r2 = et(t2, ">", i2, `${e2} is not closed`);
4500
- if (t2.substring(i2 + 2, r2).trim() === e2 && (s2--, s2 === 0))
4501
- return { tagContent: t2.substring(n2, i2), i: r2 };
4502
- i2 = r2;
4503
- } else if (t2[i2 + 1] === "?")
4504
- i2 = et(t2, "?>", i2 + 1, "StopNode is not closed.");
4505
- else if (t2.substr(i2 + 1, 3) === "!--")
4506
- i2 = et(t2, "-->", i2 + 3, "StopNode is not closed.");
4507
- else if (t2.substr(i2 + 1, 2) === "![")
4508
- i2 = et(t2, "]]>", i2, "StopNode is not closed.") - 2;
4509
- else {
4510
- const n3 = it(t2, i2, ">");
4511
- n3 && ((n3 && n3.tagName) === e2 && n3.tagExp[n3.tagExp.length - 1] !== "/" && s2++, i2 = n3.closeIndex);
4512
- }
4513
- }
4514
- function st(t2, e2, i2) {
4515
- if (e2 && typeof t2 == "string") {
4516
- const e3 = t2.trim();
4517
- return e3 === "true" || e3 !== "false" && function(t3, e4 = {}) {
4518
- if (e4 = Object.assign({}, k, e4), !t3 || typeof t3 != "string")
4519
- return t3;
4520
- let i3 = t3.trim();
4521
- if (e4.skipLike !== undefined && e4.skipLike.test(i3))
4522
- return t3;
4523
- if (t3 === "0")
4524
- return 0;
4525
- if (e4.hex && D.test(i3))
4526
- return function(t4) {
4527
- if (parseInt)
4528
- return parseInt(t4, 16);
4529
- if (Number.parseInt)
4530
- return Number.parseInt(t4, 16);
4531
- if (window && window.parseInt)
4532
- return window.parseInt(t4, 16);
4533
- throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
4534
- }(i3);
4535
- if (isFinite(i3)) {
4536
- if (i3.includes("e") || i3.includes("E"))
4537
- return function(t4, e5, i4) {
4538
- if (!i4.eNotation)
4539
- return t4;
4540
- const n3 = e5.match(F);
4541
- if (n3) {
4542
- let s2 = n3[1] || "";
4543
- const r2 = n3[3].indexOf("e") === -1 ? "E" : "e", o2 = n3[2], a2 = s2 ? t4[o2.length + 1] === r2 : t4[o2.length] === r2;
4544
- return o2.length > 1 && a2 ? t4 : (o2.length !== 1 || !n3[3].startsWith(`.${r2}`) && n3[3][0] !== r2) && o2.length > 0 ? i4.leadingZeros && !a2 ? (e5 = (n3[1] || "") + n3[3], Number(e5)) : t4 : Number(e5);
4545
- }
4546
- return t4;
4547
- }(t3, i3, e4);
4548
- {
4549
- const s2 = V.exec(i3);
4550
- if (s2) {
4551
- const r2 = s2[1] || "", o2 = s2[2];
4552
- let a2 = (n2 = s2[3]) && n2.indexOf(".") !== -1 ? ((n2 = n2.replace(/0+$/, "")) === "." ? n2 = "0" : n2[0] === "." ? n2 = "0" + n2 : n2[n2.length - 1] === "." && (n2 = n2.substring(0, n2.length - 1)), n2) : n2;
4553
- const h2 = r2 ? t3[o2.length + 1] === "." : t3[o2.length] === ".";
4554
- if (!e4.leadingZeros && (o2.length > 1 || o2.length === 1 && !h2))
4555
- return t3;
4556
- {
4557
- const n3 = Number(i3), s3 = String(n3);
4558
- if (n3 === 0)
4559
- return n3;
4560
- if (s3.search(/[eE]/) !== -1)
4561
- return e4.eNotation ? n3 : t3;
4562
- if (i3.indexOf(".") !== -1)
4563
- return s3 === "0" || s3 === a2 || s3 === `${r2}${a2}` ? n3 : t3;
4564
- let h3 = o2 ? a2 : i3;
4565
- return o2 ? h3 === s3 || r2 + h3 === s3 ? n3 : t3 : h3 === s3 || h3 === r2 + s3 ? n3 : t3;
4566
- }
4567
- }
4568
- return t3;
4569
- }
4570
- }
4571
- var n2;
4572
- return function(t4, e5, i4) {
4573
- const n3 = e5 === 1 / 0;
4574
- switch (i4.infinity.toLowerCase()) {
4575
- case "null":
4576
- return null;
4577
- case "infinity":
4578
- return e5;
4579
- case "string":
4580
- return n3 ? "Infinity" : "-Infinity";
4581
- default:
4582
- return t4;
4583
- }
4584
- }(t3, Number(i3), e4);
4585
- }(t2, i2);
4586
- }
4587
- return t2 !== undefined ? t2 : "";
4588
- }
4589
- function rt(t2, e2, i2) {
4590
- const n2 = Number.parseInt(t2, e2);
4591
- return n2 >= 0 && n2 <= 1114111 ? String.fromCodePoint(n2) : i2 + t2 + ";";
4592
- }
4593
- function ot(t2, e2, i2, n2) {
4594
- if (t2) {
4595
- const n3 = t2(e2);
4596
- i2 === e2 && (i2 = n3), e2 = n3;
4597
- }
4598
- return { tagName: e2 = at(e2, n2), tagExp: i2 };
4599
- }
4600
- function at(t2, e2) {
4601
- if (a.includes(t2))
4602
- throw new Error(`[SECURITY] Invalid name: "${t2}" is a reserved JavaScript keyword that could cause prototype pollution`);
4603
- return o.includes(t2) ? e2.onDangerousProperty(t2) : t2;
4604
- }
4605
- const ht = $.getMetaDataSymbol();
4606
- function lt(t2, e2) {
4607
- if (!t2 || typeof t2 != "object")
4608
- return {};
4609
- if (!e2)
4610
- return t2;
4611
- const i2 = {};
4612
- for (const n2 in t2)
4613
- n2.startsWith(e2) ? i2[n2.substring(e2.length)] = t2[n2] : i2[n2] = t2[n2];
4614
- return i2;
4615
- }
4616
- function pt(t2, e2, i2, n2) {
4617
- return ut(t2, e2, i2, n2);
4618
- }
4619
- function ut(t2, e2, i2, n2) {
4620
- let s2;
4621
- const r2 = {};
4622
- for (let o2 = 0;o2 < t2.length; o2++) {
4623
- const a2 = t2[o2], h2 = ct(a2);
4624
- if (h2 !== undefined && h2 !== e2.textNodeName) {
4625
- const t3 = lt(a2[":@"] || {}, e2.attributeNamePrefix);
4626
- i2.push(h2, t3);
4627
- }
4628
- if (h2 === e2.textNodeName)
4629
- s2 === undefined ? s2 = a2[h2] : s2 += "" + a2[h2];
4630
- else {
4631
- if (h2 === undefined)
4632
- continue;
4633
- if (a2[h2]) {
4634
- let t3 = ut(a2[h2], e2, i2, n2);
4635
- const s3 = ft(t3, e2);
4636
- if (a2[":@"] ? dt(t3, a2[":@"], n2, e2) : Object.keys(t3).length !== 1 || t3[e2.textNodeName] === undefined || e2.alwaysCreateTextNode ? Object.keys(t3).length === 0 && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], a2[ht] !== undefined && typeof t3 == "object" && t3 !== null && (t3[ht] = a2[ht]), r2[h2] !== undefined && Object.prototype.hasOwnProperty.call(r2, h2))
4637
- Array.isArray(r2[h2]) || (r2[h2] = [r2[h2]]), r2[h2].push(t3);
4638
- else {
4639
- const i3 = e2.jPath ? n2.toString() : n2;
4640
- e2.isArray(h2, i3, s3) ? r2[h2] = [t3] : r2[h2] = t3;
4641
- }
4642
- h2 !== undefined && h2 !== e2.textNodeName && i2.pop();
4643
- }
4644
- }
4645
- }
4646
- return typeof s2 == "string" ? s2.length > 0 && (r2[e2.textNodeName] = s2) : s2 !== undefined && (r2[e2.textNodeName] = s2), r2;
4647
- }
4648
- function ct(t2) {
4649
- const e2 = Object.keys(t2);
4650
- for (let t3 = 0;t3 < e2.length; t3++) {
4651
- const i2 = e2[t3];
4652
- if (i2 !== ":@")
4653
- return i2;
4654
- }
4655
- }
4656
- function dt(t2, e2, i2, n2) {
4657
- if (e2) {
4658
- const s2 = Object.keys(e2), r2 = s2.length;
4659
- for (let o2 = 0;o2 < r2; o2++) {
4660
- const r3 = s2[o2], a2 = r3.startsWith(n2.attributeNamePrefix) ? r3.substring(n2.attributeNamePrefix.length) : r3, h2 = n2.jPath ? i2.toString() + "." + a2 : i2;
4661
- n2.isArray(r3, h2, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
4662
- }
4663
- }
4664
- }
4665
- function ft(t2, e2) {
4666
- const { textNodeName: i2 } = e2, n2 = Object.keys(t2).length;
4667
- return n2 === 0 || !(n2 !== 1 || !t2[i2] && typeof t2[i2] != "boolean" && t2[i2] !== 0);
4668
- }
4669
-
4670
- class gt {
4671
- constructor(t2) {
4672
- this.externalEntities = {}, this.options = O(t2);
4673
- }
4674
- parse(t2, e2) {
4675
- if (typeof t2 != "string" && t2.toString)
4676
- t2 = t2.toString();
4677
- else if (typeof t2 != "string")
4678
- throw new Error("XML data is accepted in String or Bytes[] form.");
4679
- if (e2) {
4680
- e2 === true && (e2 = {});
4681
- const i3 = l(t2, e2);
4682
- if (i3 !== true)
4683
- throw Error(`${i3.err.msg}:${i3.err.line}:${i3.err.col}`);
4684
- }
4685
- const i2 = new W(this.options);
4686
- i2.addExternalEntities(this.externalEntities);
4687
- const n2 = i2.parseXml(t2);
4688
- return this.options.preserveOrder || n2 === undefined ? n2 : pt(n2, this.options, i2.matcher, i2.readonlyMatcher);
4689
- }
4690
- addEntity(t2, e2) {
4691
- if (e2.indexOf("&") !== -1)
4692
- throw new Error("Entity value can't have '&'");
4693
- if (t2.indexOf("&") !== -1 || t2.indexOf(";") !== -1)
4694
- throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");
4695
- if (e2 === "&")
4696
- throw new Error("An entity with value '&' is not permitted");
4697
- this.externalEntities[t2] = e2;
4698
- }
4699
- static getMetaDataSymbol() {
4700
- return $.getMetaDataSymbol();
4701
- }
4702
- }
4703
- function mt(t2, e2) {
4704
- let i2 = "";
4705
- e2.format && e2.indentBy.length > 0 && (i2 = `
4706
- `);
4707
- const n2 = [];
4708
- if (e2.stopNodes && Array.isArray(e2.stopNodes))
4709
- for (let t3 = 0;t3 < e2.stopNodes.length; t3++) {
4710
- const i3 = e2.stopNodes[t3];
4711
- typeof i3 == "string" ? n2.push(new R(i3)) : i3 instanceof R && n2.push(i3);
4712
- }
4713
- return xt(t2, e2, i2, new G, n2);
4714
- }
4715
- function xt(t2, e2, i2, n2, s2) {
4716
- let r2 = "", o2 = false;
4717
- if (e2.maxNestedTags && n2.getDepth() > e2.maxNestedTags)
4718
- throw new Error("Maximum nested tags exceeded");
4719
- if (!Array.isArray(t2)) {
4720
- if (t2 != null) {
4721
- let i3 = t2.toString();
4722
- return i3 = Tt(i3, e2), i3;
4723
- }
4724
- return "";
4725
- }
4726
- for (let a2 = 0;a2 < t2.length; a2++) {
4727
- const h2 = t2[a2], l2 = yt(h2);
4728
- if (l2 === undefined)
4729
- continue;
4730
- const p2 = Nt(h2[":@"], e2);
4731
- n2.push(l2, p2);
4732
- const u2 = vt(n2, s2);
4733
- if (l2 === e2.textNodeName) {
4734
- let t3 = h2[l2];
4735
- u2 || (t3 = e2.tagValueProcessor(l2, t3), t3 = Tt(t3, e2)), o2 && (r2 += i2), r2 += t3, o2 = false, n2.pop();
4736
- continue;
4737
- }
4738
- if (l2 === e2.cdataPropName) {
4739
- o2 && (r2 += i2), r2 += `<![CDATA[${h2[l2][0][e2.textNodeName]}]]>`, o2 = false, n2.pop();
4740
- continue;
4741
- }
4742
- if (l2 === e2.commentPropName) {
4743
- r2 += i2 + `<!--${h2[l2][0][e2.textNodeName]}-->`, o2 = true, n2.pop();
4744
- continue;
4745
- }
4746
- if (l2[0] === "?") {
4747
- const t3 = wt(h2[":@"], e2, u2), s3 = l2 === "?xml" ? "" : i2;
4748
- let a3 = h2[l2][0][e2.textNodeName];
4749
- a3 = a3.length !== 0 ? " " + a3 : "", r2 += s3 + `<${l2}${a3}${t3}?>`, o2 = true, n2.pop();
4750
- continue;
4751
- }
4752
- let c2 = i2;
4753
- c2 !== "" && (c2 += e2.indentBy);
4754
- const d2 = i2 + `<${l2}${wt(h2[":@"], e2, u2)}`;
4755
- let f2;
4756
- f2 = u2 ? bt(h2[l2], e2) : xt(h2[l2], e2, c2, n2, s2), e2.unpairedTags.indexOf(l2) !== -1 ? e2.suppressUnpairedNode ? r2 += d2 + ">" : r2 += d2 + "/>" : f2 && f2.length !== 0 || !e2.suppressEmptyNode ? f2 && f2.endsWith(">") ? r2 += d2 + `>${f2}${i2}</${l2}>` : (r2 += d2 + ">", f2 && i2 !== "" && (f2.includes("/>") || f2.includes("</")) ? r2 += i2 + e2.indentBy + f2 + i2 : r2 += f2, r2 += `</${l2}>`) : r2 += d2 + "/>", o2 = true, n2.pop();
4757
- }
4758
- return r2;
4759
- }
4760
- function Nt(t2, e2) {
4761
- if (!t2 || e2.ignoreAttributes)
4762
- return null;
4763
- const i2 = {};
4764
- let n2 = false;
4765
- for (let s2 in t2)
4766
- Object.prototype.hasOwnProperty.call(t2, s2) && (i2[s2.startsWith(e2.attributeNamePrefix) ? s2.substr(e2.attributeNamePrefix.length) : s2] = t2[s2], n2 = true);
4767
- return n2 ? i2 : null;
4768
- }
4769
- function bt(t2, e2) {
4770
- if (!Array.isArray(t2))
4771
- return t2 != null ? t2.toString() : "";
4772
- let i2 = "";
4773
- for (let n2 = 0;n2 < t2.length; n2++) {
4774
- const s2 = t2[n2], r2 = yt(s2);
4775
- if (r2 === e2.textNodeName)
4776
- i2 += s2[r2];
4777
- else if (r2 === e2.cdataPropName)
4778
- i2 += s2[r2][0][e2.textNodeName];
4779
- else if (r2 === e2.commentPropName)
4780
- i2 += s2[r2][0][e2.textNodeName];
4781
- else {
4782
- if (r2 && r2[0] === "?")
4783
- continue;
4784
- if (r2) {
4785
- const t3 = Et(s2[":@"], e2), n3 = bt(s2[r2], e2);
4786
- n3 && n3.length !== 0 ? i2 += `<${r2}${t3}>${n3}</${r2}>` : i2 += `<${r2}${t3}/>`;
4787
- }
4788
- }
4789
- }
4790
- return i2;
4791
- }
4792
- function Et(t2, e2) {
4793
- let i2 = "";
4794
- if (t2 && !e2.ignoreAttributes)
4795
- for (let n2 in t2) {
4796
- if (!Object.prototype.hasOwnProperty.call(t2, n2))
4797
- continue;
4798
- let s2 = t2[n2];
4799
- s2 === true && e2.suppressBooleanAttributes ? i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}` : i2 += ` ${n2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
4800
- }
4801
- return i2;
4802
- }
4803
- function yt(t2) {
4804
- const e2 = Object.keys(t2);
4805
- for (let i2 = 0;i2 < e2.length; i2++) {
4806
- const n2 = e2[i2];
4807
- if (Object.prototype.hasOwnProperty.call(t2, n2) && n2 !== ":@")
4808
- return n2;
4809
- }
4810
- }
4811
- function wt(t2, e2, i2) {
4812
- let n2 = "";
4813
- if (t2 && !e2.ignoreAttributes)
4814
- for (let s2 in t2) {
4815
- if (!Object.prototype.hasOwnProperty.call(t2, s2))
4816
- continue;
4817
- let r2;
4818
- i2 ? r2 = t2[s2] : (r2 = e2.attributeValueProcessor(s2, t2[s2]), r2 = Tt(r2, e2)), r2 === true && e2.suppressBooleanAttributes ? n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${s2.substr(e2.attributeNamePrefix.length)}="${r2}"`;
4819
- }
4820
- return n2;
4821
- }
4822
- function vt(t2, e2) {
4823
- if (!e2 || e2.length === 0)
4824
- return false;
4825
- for (let i2 = 0;i2 < e2.length; i2++)
4826
- if (t2.matches(e2[i2]))
4827
- return true;
4828
- return false;
4829
- }
4830
- function Tt(t2, e2) {
4831
- if (t2 && t2.length > 0 && e2.processEntities)
4832
- for (let i2 = 0;i2 < e2.entities.length; i2++) {
4833
- const n2 = e2.entities[i2];
4834
- t2 = t2.replace(n2.regex, n2.val);
4835
- }
4836
- return t2;
4837
- }
4838
- const Pt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t2, e2) {
4839
- return e2;
4840
- }, attributeValueProcessor: function(t2, e2) {
4841
- return e2;
4842
- }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false, maxNestedTags: 100, jPath: true };
4843
- function St(t2) {
4844
- if (this.options = Object.assign({}, Pt, t2), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((t3) => typeof t3 == "string" && t3.startsWith("*.") ? ".." + t3.substring(2) : t3)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes))
4845
- for (let t3 = 0;t3 < this.options.stopNodes.length; t3++) {
4846
- const e3 = this.options.stopNodes[t3];
4847
- typeof e3 == "string" ? this.stopNodeExpressions.push(new R(e3)) : e3 instanceof R && this.stopNodeExpressions.push(e3);
4848
- }
4849
- var e2;
4850
- this.options.ignoreAttributes === true || this.options.attributesGroupName ? this.isAttribute = function() {
4851
- return false;
4852
- } : (this.ignoreAttributesFn = typeof (e2 = this.options.ignoreAttributes) == "function" ? e2 : Array.isArray(e2) ? (t3) => {
4853
- for (const i2 of e2) {
4854
- if (typeof i2 == "string" && t3 === i2)
4855
- return true;
4856
- if (i2 instanceof RegExp && i2.test(t3))
4857
- return true;
4858
- }
4859
- } : () => false, this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ct), this.processTextOrObjNode = At, this.options.format ? (this.indentate = Ot, this.tagEndChar = `>
4860
- `, this.newLine = `
4861
- `) : (this.indentate = function() {
4862
- return "";
4863
- }, this.tagEndChar = ">", this.newLine = "");
4864
- }
4865
- function At(t2, e2, i2, n2) {
4866
- const s2 = this.extractAttributes(t2);
4867
- if (n2.push(e2, s2), this.checkStopNode(n2)) {
4868
- const s3 = this.buildRawContent(t2), r3 = this.buildAttributesForStopNode(t2);
4869
- return n2.pop(), this.buildObjectNode(s3, e2, r3, i2);
4870
- }
4871
- const r2 = this.j2x(t2, i2 + 1, n2);
4872
- return n2.pop(), t2[this.options.textNodeName] !== undefined && Object.keys(t2).length === 1 ? this.buildTextValNode(t2[this.options.textNodeName], e2, r2.attrStr, i2, n2) : this.buildObjectNode(r2.val, e2, r2.attrStr, i2);
4873
- }
4874
- function Ot(t2) {
4875
- return this.options.indentBy.repeat(t2);
4876
- }
4877
- function Ct(t2) {
4878
- return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
4879
- }
4880
- St.prototype.build = function(t2) {
4881
- if (this.options.preserveOrder)
4882
- return mt(t2, this.options);
4883
- {
4884
- Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 });
4885
- const e2 = new G;
4886
- return this.j2x(t2, 0, e2).val;
4887
- }
4888
- }, St.prototype.j2x = function(t2, e2, i2) {
4889
- let n2 = "", s2 = "";
4890
- if (this.options.maxNestedTags && i2.getDepth() >= this.options.maxNestedTags)
4891
- throw new Error("Maximum nested tags exceeded");
4892
- const r2 = this.options.jPath ? i2.toString() : i2, o2 = this.checkStopNode(i2);
4893
- for (let a2 in t2)
4894
- if (Object.prototype.hasOwnProperty.call(t2, a2))
4895
- if (t2[a2] === undefined)
4896
- this.isAttribute(a2) && (s2 += "");
4897
- else if (t2[a2] === null)
4898
- this.isAttribute(a2) || a2 === this.options.cdataPropName ? s2 += "" : a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
4899
- else if (t2[a2] instanceof Date)
4900
- s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
4901
- else if (typeof t2[a2] != "object") {
4902
- const h2 = this.isAttribute(a2);
4903
- if (h2 && !this.ignoreAttributesFn(h2, r2))
4904
- n2 += this.buildAttrPairStr(h2, "" + t2[a2], o2);
4905
- else if (!h2)
4906
- if (a2 === this.options.textNodeName) {
4907
- let e3 = this.options.tagValueProcessor(a2, "" + t2[a2]);
4908
- s2 += this.replaceEntitiesValue(e3);
4909
- } else {
4910
- i2.push(a2);
4911
- const n3 = this.checkStopNode(i2);
4912
- if (i2.pop(), n3) {
4913
- const i3 = "" + t2[a2];
4914
- s2 += i3 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + i3 + "</" + a2 + this.tagEndChar;
4915
- } else
4916
- s2 += this.buildTextValNode(t2[a2], a2, "", e2, i2);
4917
- }
4918
- } else if (Array.isArray(t2[a2])) {
4919
- const n3 = t2[a2].length;
4920
- let r3 = "", o3 = "";
4921
- for (let h2 = 0;h2 < n3; h2++) {
4922
- const n4 = t2[a2][h2];
4923
- if (n4 === undefined)
4924
- ;
4925
- else if (n4 === null)
4926
- a2[0] === "?" ? s2 += this.indentate(e2) + "<" + a2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + a2 + "/" + this.tagEndChar;
4927
- else if (typeof n4 == "object")
4928
- if (this.options.oneListGroup) {
4929
- i2.push(a2);
4930
- const t3 = this.j2x(n4, e2 + 1, i2);
4931
- i2.pop(), r3 += t3.val, this.options.attributesGroupName && n4.hasOwnProperty(this.options.attributesGroupName) && (o3 += t3.attrStr);
4932
- } else
4933
- r3 += this.processTextOrObjNode(n4, a2, e2, i2);
4934
- else if (this.options.oneListGroup) {
4935
- let t3 = this.options.tagValueProcessor(a2, n4);
4936
- t3 = this.replaceEntitiesValue(t3), r3 += t3;
4937
- } else {
4938
- i2.push(a2);
4939
- const t3 = this.checkStopNode(i2);
4940
- if (i2.pop(), t3) {
4941
- const t4 = "" + n4;
4942
- r3 += t4 === "" ? this.indentate(e2) + "<" + a2 + this.closeTag(a2) + this.tagEndChar : this.indentate(e2) + "<" + a2 + ">" + t4 + "</" + a2 + this.tagEndChar;
4943
- } else
4944
- r3 += this.buildTextValNode(n4, a2, "", e2, i2);
4945
- }
4946
- }
4947
- this.options.oneListGroup && (r3 = this.buildObjectNode(r3, a2, o3, e2)), s2 += r3;
4948
- } else if (this.options.attributesGroupName && a2 === this.options.attributesGroupName) {
4949
- const e3 = Object.keys(t2[a2]), i3 = e3.length;
4950
- for (let s3 = 0;s3 < i3; s3++)
4951
- n2 += this.buildAttrPairStr(e3[s3], "" + t2[a2][e3[s3]], o2);
4952
- } else
4953
- s2 += this.processTextOrObjNode(t2[a2], a2, e2, i2);
4954
- return { attrStr: n2, val: s2 };
4955
- }, St.prototype.buildAttrPairStr = function(t2, e2, i2) {
4956
- return i2 || (e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2)), this.options.suppressBooleanAttributes && e2 === "true" ? " " + t2 : " " + t2 + '="' + e2 + '"';
4957
- }, St.prototype.extractAttributes = function(t2) {
4958
- if (!t2 || typeof t2 != "object")
4959
- return null;
4960
- const e2 = {};
4961
- let i2 = false;
4962
- if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
4963
- const n2 = t2[this.options.attributesGroupName];
4964
- for (let t3 in n2)
4965
- Object.prototype.hasOwnProperty.call(n2, t3) && (e2[t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3] = n2[t3], i2 = true);
4966
- } else
4967
- for (let n2 in t2) {
4968
- if (!Object.prototype.hasOwnProperty.call(t2, n2))
4969
- continue;
4970
- const s2 = this.isAttribute(n2);
4971
- s2 && (e2[s2] = t2[n2], i2 = true);
4972
- }
4973
- return i2 ? e2 : null;
4974
- }, St.prototype.buildRawContent = function(t2) {
4975
- if (typeof t2 == "string")
4976
- return t2;
4977
- if (typeof t2 != "object" || t2 === null)
4978
- return String(t2);
4979
- if (t2[this.options.textNodeName] !== undefined)
4980
- return t2[this.options.textNodeName];
4981
- let e2 = "";
4982
- for (let i2 in t2) {
4983
- if (!Object.prototype.hasOwnProperty.call(t2, i2))
4984
- continue;
4985
- if (this.isAttribute(i2))
4986
- continue;
4987
- if (this.options.attributesGroupName && i2 === this.options.attributesGroupName)
4988
- continue;
4989
- const n2 = t2[i2];
4990
- if (i2 === this.options.textNodeName)
4991
- e2 += n2;
4992
- else if (Array.isArray(n2)) {
4993
- for (let t3 of n2)
4994
- if (typeof t3 == "string" || typeof t3 == "number")
4995
- e2 += `<${i2}>${t3}</${i2}>`;
4996
- else if (typeof t3 == "object" && t3 !== null) {
4997
- const n3 = this.buildRawContent(t3), s2 = this.buildAttributesForStopNode(t3);
4998
- e2 += n3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${n3}</${i2}>`;
4999
- }
5000
- } else if (typeof n2 == "object" && n2 !== null) {
5001
- const t3 = this.buildRawContent(n2), s2 = this.buildAttributesForStopNode(n2);
5002
- e2 += t3 === "" ? `<${i2}${s2}/>` : `<${i2}${s2}>${t3}</${i2}>`;
5003
- } else
5004
- e2 += `<${i2}>${n2}</${i2}>`;
5005
- }
5006
- return e2;
5007
- }, St.prototype.buildAttributesForStopNode = function(t2) {
5008
- if (!t2 || typeof t2 != "object")
5009
- return "";
5010
- let e2 = "";
5011
- if (this.options.attributesGroupName && t2[this.options.attributesGroupName]) {
5012
- const i2 = t2[this.options.attributesGroupName];
5013
- for (let t3 in i2) {
5014
- if (!Object.prototype.hasOwnProperty.call(i2, t3))
5015
- continue;
5016
- const n2 = t3.startsWith(this.options.attributeNamePrefix) ? t3.substring(this.options.attributeNamePrefix.length) : t3, s2 = i2[t3];
5017
- s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
5018
- }
5019
- } else
5020
- for (let i2 in t2) {
5021
- if (!Object.prototype.hasOwnProperty.call(t2, i2))
5022
- continue;
5023
- const n2 = this.isAttribute(i2);
5024
- if (n2) {
5025
- const s2 = t2[i2];
5026
- s2 === true && this.options.suppressBooleanAttributes ? e2 += " " + n2 : e2 += " " + n2 + '="' + s2 + '"';
5027
- }
5028
- }
5029
- return e2;
5030
- }, St.prototype.buildObjectNode = function(t2, e2, i2, n2) {
5031
- if (t2 === "")
5032
- return e2[0] === "?" ? this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar;
5033
- {
5034
- let s2 = "</" + e2 + this.tagEndChar, r2 = "";
5035
- return e2[0] === "?" && (r2 = "?", s2 = ""), !i2 && i2 !== "" || t2.indexOf("<") !== -1 ? this.options.commentPropName !== false && e2 === this.options.commentPropName && r2.length === 0 ? this.indentate(n2) + `<!--${t2}-->` + this.newLine : this.indentate(n2) + "<" + e2 + i2 + r2 + this.tagEndChar + t2 + this.indentate(n2) + s2 : this.indentate(n2) + "<" + e2 + i2 + r2 + ">" + t2 + s2;
5036
- }
5037
- }, St.prototype.closeTag = function(t2) {
5038
- let e2 = "";
5039
- return this.options.unpairedTags.indexOf(t2) !== -1 ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
5040
- }, St.prototype.checkStopNode = function(t2) {
5041
- if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0)
5042
- return false;
5043
- for (let e2 = 0;e2 < this.stopNodeExpressions.length; e2++)
5044
- if (t2.matches(this.stopNodeExpressions[e2]))
5045
- return true;
5046
- return false;
5047
- }, St.prototype.buildTextValNode = function(t2, e2, i2, n2, s2) {
5048
- if (this.options.cdataPropName !== false && e2 === this.options.cdataPropName)
5049
- return this.indentate(n2) + `<![CDATA[${t2}]]>` + this.newLine;
5050
- if (this.options.commentPropName !== false && e2 === this.options.commentPropName)
5051
- return this.indentate(n2) + `<!--${t2}-->` + this.newLine;
5052
- if (e2[0] === "?")
5053
- return this.indentate(n2) + "<" + e2 + i2 + "?" + this.tagEndChar;
5054
- {
5055
- let s3 = this.options.tagValueProcessor(e2, t2);
5056
- return s3 = this.replaceEntitiesValue(s3), s3 === "" ? this.indentate(n2) + "<" + e2 + i2 + this.closeTag(e2) + this.tagEndChar : this.indentate(n2) + "<" + e2 + i2 + ">" + s3 + "</" + e2 + this.tagEndChar;
5057
- }
5058
- }, St.prototype.replaceEntitiesValue = function(t2) {
5059
- if (t2 && t2.length > 0 && this.options.processEntities)
5060
- for (let e2 = 0;e2 < this.options.entities.length; e2++) {
5061
- const i2 = this.options.entities[e2];
5062
- t2 = t2.replace(i2.regex, i2.val);
5063
- }
5064
- return t2;
5065
- };
5066
- const $t = St, It = { validate: l };
5067
- module.exports = e;
5068
- })();
5069
- });
5070
-
5071
3356
  // node_modules/.bun/@aws-sdk+xml-builder@3.972.17/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js
5072
3357
  var require_xml_parser = __commonJS((exports) => {
5073
3358
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5097,7 +3382,7 @@ var require_xml_parser = __commonJS((exports) => {
5097
3382
  });
5098
3383
 
5099
3384
  // node_modules/.bun/@aws-sdk+xml-builder@3.972.17/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js
5100
- var require_dist_cjs33 = __commonJS((exports) => {
3385
+ var require_dist_cjs32 = __commonJS((exports) => {
5101
3386
  var xmlParser = require_xml_parser();
5102
3387
  var ATTR_ESCAPE_RE = /[&<>"]/g;
5103
3388
  var ATTR_ESCAPE_MAP = {
@@ -5230,12 +3515,12 @@ var require_dist_cjs33 = __commonJS((exports) => {
5230
3515
  var require_protocols2 = __commonJS((exports) => {
5231
3516
  var cbor = require_cbor();
5232
3517
  var schema = require_schema();
5233
- var smithyClient = require_dist_cjs11();
3518
+ var smithyClient = require_dist_cjs16();
5234
3519
  var protocols = require_protocols();
5235
3520
  var serde = require_serde();
5236
- var utilBase64 = require_dist_cjs10();
5237
- var utilUtf8 = require_dist_cjs9();
5238
- var xmlBuilder = require_dist_cjs33();
3521
+ var utilBase64 = require_dist_cjs4();
3522
+ var utilUtf8 = require_dist_cjs3();
3523
+ var xmlBuilder = require_dist_cjs32();
5239
3524
 
5240
3525
  class ProtocolLib {
5241
3526
  queryCompat;
@@ -7042,4 +5327,4 @@ var require_protocols2 = __commonJS((exports) => {
7042
5327
  exports.parseXmlErrorBody = parseXmlErrorBody;
7043
5328
  });
7044
5329
 
7045
- export { require_dist_cjs16 as require_dist_cjs, require_dist_cjs17 as require_dist_cjs1, require_dist_cjs18 as require_dist_cjs2, require_dist_cjs19 as require_dist_cjs3, require_dist_cjs21 as require_dist_cjs4, require_dist_cjs22 as require_dist_cjs5, require_dist_cjs23 as require_dist_cjs6, require_dist_cjs25 as require_dist_cjs7, require_dist_cjs26 as require_dist_cjs8, require_dist_cjs28 as require_dist_cjs9, require_dist_cjs29 as require_dist_cjs10, require_dist_cjs30 as require_dist_cjs11, require_dist_cjs31 as require_dist_cjs12, require_protocols2 as require_protocols, require_dist_cjs27 as require_dist_cjs13 };
5330
+ export { require_dist_cjs17 as require_dist_cjs, require_dist_cjs18 as require_dist_cjs1, require_dist_cjs19 as require_dist_cjs2, require_dist_cjs20 as require_dist_cjs3, require_dist_cjs22 as require_dist_cjs4, require_dist_cjs23 as require_dist_cjs5, require_dist_cjs24 as require_dist_cjs6, require_dist_cjs26 as require_dist_cjs7, require_dist_cjs27 as require_dist_cjs8, require_dist_cjs29 as require_dist_cjs9, require_dist_cjs30 as require_dist_cjs10, require_dist_cjs31 as require_dist_cjs11, require_protocols2 as require_protocols, require_dist_cjs28 as require_dist_cjs12 };