@qitqode/qitqode-android-arm64 0.1.34 → 0.1.36
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.
- package/bundle/{chunk-7311jry1.js → chunk-00sr2gwz.js} +2 -2
- package/bundle/{chunk-azhw650z.js → chunk-02xcb52z.js} +2 -2
- package/bundle/{chunk-gws1rn1v.js → chunk-08q55ya0.js} +1 -1
- package/bundle/chunk-092bx2yw.js +2 -0
- package/bundle/{chunk-xgr6jnd6.js → chunk-0g25z230.js} +1 -1
- package/bundle/chunk-0j6dhrew.js +2 -0
- package/bundle/chunk-0jrgk6vk.js +2 -0
- package/bundle/chunk-0qn52zsd.js +2 -0
- package/bundle/chunk-10accb7b.js +2 -0
- package/bundle/{chunk-rjy5mqwz.js → chunk-132tcp2j.js} +2 -2
- package/bundle/chunk-13kpdfr7.js +2 -0
- package/bundle/chunk-15s8zwgf.js +2 -0
- package/bundle/{chunk-nj4d554m.js → chunk-1bx2sjn6.js} +1 -1
- package/bundle/chunk-1kgyfja6.js +2 -0
- package/bundle/{chunk-bv29k2pf.js → chunk-1mcsf4yb.js} +2 -2
- package/bundle/{chunk-kwx9ewe0.js → chunk-1wpjmwnh.js} +1 -1
- package/bundle/chunk-1yv5h8k4.js +2 -0
- package/bundle/chunk-24rw1br0.js +3 -0
- package/bundle/{chunk-snr44en9.js → chunk-25bp7pcm.js} +2 -2
- package/bundle/{chunk-kmcsz8yv.js → chunk-2dkrfc1s.js} +1 -1
- package/bundle/chunk-364ccew0.js +3 -0
- package/bundle/{chunk-ppkqr9cn.js → chunk-37dvnent.js} +2 -2
- package/bundle/chunk-3bkdbqjj.js +2 -0
- package/bundle/chunk-3bnqw3xp.js +3 -0
- package/bundle/{chunk-08m0hkdz.js → chunk-3dr4469n.js} +1 -1
- package/bundle/{chunk-2fkfbdcy.js → chunk-3gw6r3hf.js} +179 -179
- package/bundle/{chunk-n96tvjgj.js → chunk-3mepk08v.js} +2 -2
- package/bundle/chunk-3sz6gw10.js +3 -0
- package/bundle/chunk-41x11r2s.js +3 -0
- package/bundle/{chunk-xqdrr7xg.js → chunk-45mjcxqk.js} +1 -1
- package/bundle/{chunk-qrtc3etn.js → chunk-4fa390yr.js} +2 -2
- package/bundle/chunk-4gs87ghj.js +3 -0
- package/bundle/chunk-4kqdzdv5.js +3 -0
- package/bundle/{chunk-3k2b05fv.js → chunk-4sazy0nq.js} +1 -1
- package/bundle/chunk-4tbqsrsn.js +2 -0
- package/bundle/{chunk-ngccf7ga.js → chunk-52b1v7mn.js} +1 -1
- package/bundle/chunk-53kns5wy.js +2 -0
- package/bundle/{chunk-11v7vz3y.js → chunk-549ptbaj.js} +1 -1
- package/bundle/chunk-559ek1ym.js +2 -0
- package/bundle/{chunk-34p46th6.js → chunk-5bate758.js} +1 -1
- package/bundle/{chunk-kdcnder5.js → chunk-5kmfnkzv.js} +1 -1
- package/bundle/{chunk-9msnx26q.js → chunk-5pkg052s.js} +2 -2
- package/bundle/chunk-5yfzzmv0.js +2 -0
- package/bundle/{chunk-rsszcqxd.js → chunk-60qyqqxx.js} +1 -1
- package/bundle/{chunk-94pcpztx.js → chunk-64s7vfj7.js} +2 -2
- package/bundle/{chunk-bzgj60w4.js → chunk-6sfhbckv.js} +1 -1
- package/bundle/{chunk-8762ty72.js → chunk-70pb4kcm.js} +2 -2
- package/bundle/{chunk-04hvaaje.js → chunk-72zxassf.js} +1 -1
- package/bundle/{chunk-yz6898wy.js → chunk-73ckx171.js} +1 -1
- package/bundle/chunk-7cbj28fp.js +2 -0
- package/bundle/chunk-7dep7g7c.js +2 -0
- package/bundle/{chunk-gj0wt0cy.js → chunk-7fawtcnn.js} +1 -1
- package/bundle/{chunk-zfn0z4sh.js → chunk-7gbytqkn.js} +2 -2
- package/bundle/{chunk-x66ycpfs.js → chunk-7jhrxzjx.js} +2 -2
- package/bundle/{chunk-09pkckr1.js → chunk-7vftsy04.js} +1 -1
- package/bundle/{chunk-zfd70p01.js → chunk-8dxdeksr.js} +1 -1
- package/bundle/{chunk-6styp5dn.js → chunk-8fgamz4y.js} +1 -1
- package/bundle/{chunk-9qdr9t8c.js → chunk-8q6z6emx.js} +1 -1
- package/bundle/{chunk-4ttf9rjd.js → chunk-8r3410c2.js} +1 -1
- package/bundle/{chunk-3mzcr3fw.js → chunk-8tp4whyw.js} +1 -1
- package/bundle/chunk-8yn64y27.js +2 -0
- package/bundle/{chunk-41v0x1jk.js → chunk-8yr682pv.js} +2 -2
- package/bundle/chunk-8ywa7az5.js +2 -0
- package/bundle/chunk-8ywdddts.js +2 -0
- package/bundle/chunk-8zmreqxx.js +2 -0
- package/bundle/chunk-92zjark4.js +2 -0
- package/bundle/chunk-983rqajz.js +7 -0
- package/bundle/{chunk-kjyw00jp.js → chunk-9cw4cnz0.js} +1 -1
- package/bundle/{chunk-2swch6mx.js → chunk-9dh9bc9d.js} +1 -1
- package/bundle/{chunk-y437vyza.js → chunk-9fkmhmh6.js} +1 -1
- package/bundle/{chunk-7vd91wsd.js → chunk-9nk0ts0s.js} +1 -1
- package/bundle/{chunk-p9cnzxb8.js → chunk-9s4whpg1.js} +2 -2
- package/bundle/{chunk-yajd975f.js → chunk-9xvctnjr.js} +1 -1
- package/bundle/chunk-9yakc5yv.js +28 -0
- package/bundle/{chunk-4wxxyrxn.js → chunk-9zre5e54.js} +1 -1
- package/bundle/chunk-a42q5mx4.js +3 -0
- package/bundle/{chunk-yt3f3j35.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-mex0fe9s.js → chunk-acyj91wq.js} +1 -1
- package/bundle/chunk-aq28ejhv.js +2 -0
- package/bundle/{chunk-pkc4ddw1.js → chunk-atpzz901.js} +1 -1
- package/bundle/chunk-ax1y4699.js +2 -0
- package/bundle/{chunk-dctj3c22.js → chunk-b0jh0rby.js} +2 -2
- package/bundle/chunk-b0x888w9.js +2 -0
- package/bundle/chunk-b10px5g4.js +2 -0
- package/bundle/chunk-b1qhpxee.js +2 -0
- package/bundle/chunk-b4ysd5b4.js +9 -0
- package/bundle/chunk-bcs2gvmp.js +2 -0
- package/bundle/{chunk-7mxt5b0h.js → chunk-bjcb9kt0.js} +1 -1
- package/bundle/{chunk-67d5d8mr.js → chunk-bnz0mxak.js} +1 -1
- package/bundle/{chunk-wwgd4rzx.js → chunk-brh35yt5.js} +2 -2
- package/bundle/chunk-bs020a3x.js +2 -0
- package/bundle/{chunk-7eexey82.js → chunk-c72jajx9.js} +1 -1
- package/bundle/{chunk-81trveht.js → chunk-cagk1sjd.js} +1 -1
- package/bundle/{chunk-1byd3wma.js → chunk-cdh26622.js} +2 -2
- package/bundle/chunk-cjxcnhmq.js +14 -0
- package/bundle/{chunk-ygjtwjnk.js → chunk-cx0j6mpq.js} +1 -1
- package/bundle/{chunk-zh3fny3z.js → chunk-cx7p4ezk.js} +2 -2
- package/bundle/chunk-d0xs3j5h.js +2 -0
- package/bundle/{chunk-pxmhe36r.js → chunk-d1rn44wz.js} +1 -1
- package/bundle/chunk-d72rty3t.js +2 -0
- package/bundle/{chunk-0c6ep9mc.js → chunk-d93z6hrn.js} +1 -1
- package/bundle/{chunk-seghf5fc.js → chunk-dgx4rq86.js} +1 -1
- package/bundle/{chunk-qzj6027k.js → chunk-dh1h513y.js} +1 -1
- package/bundle/chunk-dj951pms.js +2 -0
- package/bundle/chunk-dp6zktka.js +2 -0
- package/bundle/{chunk-ba3h1pzs.js → chunk-dshnn54c.js} +1 -1
- package/bundle/{chunk-73myw3bj.js → chunk-dt899wbf.js} +2 -2
- package/bundle/chunk-dvqdtdza.js +2 -0
- package/bundle/{chunk-6ynxf3q7.js → chunk-dvxk6mr6.js} +2 -2
- package/bundle/chunk-dx7h5r8j.js +2 -0
- package/bundle/{chunk-bnss5dkk.js → chunk-dykqn0nj.js} +2 -2
- package/bundle/chunk-e03tgfpb.js +8 -0
- package/bundle/chunk-e07dbha4.js +2 -0
- package/bundle/chunk-e88wd9ex.js +2 -0
- package/bundle/{chunk-y9zstzed.js → chunk-eaqfnwdj.js} +1 -1
- package/bundle/chunk-ebabnv33.js +3 -0
- package/bundle/chunk-ebdpg3cn.js +2 -0
- package/bundle/{chunk-w9nzsd3w.js → chunk-ebkztnpf.js} +180 -178
- package/bundle/chunk-ec7pznsp.js +2 -0
- package/bundle/chunk-et7kz7kx.js +2 -0
- package/bundle/{chunk-kfmz2p27.js → chunk-ev3a2sxv.js} +2 -2
- package/bundle/{chunk-d00c1k9w.js → chunk-ewpzqnj4.js} +1 -1
- package/bundle/chunk-eyc6tb5h.js +2 -0
- package/bundle/chunk-eywryd3k.js +2 -0
- package/bundle/chunk-eze57bty.js +2 -0
- package/bundle/{chunk-qddt2gcs.js → chunk-ezrskm25.js} +1 -1
- package/bundle/chunk-f36ctnbp.js +3 -0
- package/bundle/{chunk-q5fygrnr.js → chunk-f77nxt23.js} +2 -2
- package/bundle/chunk-fa47vzfc.js +2 -0
- package/bundle/chunk-fe397ph0.js +2 -0
- package/bundle/chunk-fjm9kstr.js +5 -0
- package/bundle/{chunk-5xq3h51b.js → chunk-fmxm4kaj.js} +2 -2
- package/bundle/chunk-fr75ytdr.js +2 -0
- package/bundle/chunk-fw2tnbt6.js +2 -0
- package/bundle/chunk-fwr2qgqb.js +2 -0
- package/bundle/chunk-g204pt98.js +2 -0
- package/bundle/chunk-g5prcvq2.js +14 -0
- package/bundle/{chunk-ggydr1ze.js → chunk-g794ey6w.js} +1 -1
- package/bundle/chunk-gcgmwqhh.js +2 -0
- package/bundle/{chunk-rmve21dh.js → chunk-gg7bg3ek.js} +1 -1
- package/bundle/{chunk-9x25d115.js → chunk-gkj4a27z.js} +1 -1
- package/bundle/chunk-gvtjxg0d.js +2 -0
- package/bundle/chunk-gw36mrg4.js +2 -0
- package/bundle/{chunk-z8gdmvgg.js → chunk-gwfx7tx7.js} +2 -2
- package/bundle/{chunk-q8hd01j7.js → chunk-gxmxx8jb.js} +1 -1
- package/bundle/{chunk-tge53d52.js → chunk-h1kg35mn.js} +1 -1
- package/bundle/chunk-h36qec67.js +2 -0
- package/bundle/{chunk-0msqaywp.js → chunk-h7w35n7w.js} +1 -1
- package/bundle/chunk-h9gtymfm.js +2 -0
- package/bundle/chunk-h9qn35pn.js +2 -0
- package/bundle/{chunk-mr8j7rc6.js → chunk-hb9mc5f9.js} +1 -1
- package/bundle/{chunk-5a7fs1hg.js → chunk-hbh2034m.js} +1 -1
- package/bundle/{chunk-df2aswz3.js → chunk-hcy77w6t.js} +1 -1
- package/bundle/{chunk-6a7c7wnf.js → chunk-hgsykghj.js} +2 -2
- package/bundle/chunk-hhjkezfz.js +2 -0
- package/bundle/chunk-hnz570f9.js +3 -0
- package/bundle/{chunk-0csy9x1n.js → chunk-htkwc2se.js} +2 -2
- package/bundle/chunk-j21dnncc.js +4 -0
- package/bundle/{chunk-1yt5rsew.js → chunk-j63fkt6n.js} +1 -1
- package/bundle/chunk-ja18tvc7.js +2 -0
- package/bundle/{chunk-03xppy47.js → chunk-jcjaw7tk.js} +2 -2
- package/bundle/{chunk-jkh6eg7d.js → chunk-jf6ry79j.js} +4 -4
- package/bundle/{chunk-ke7n9t5p.js → chunk-jgz1a29w.js} +3 -3
- package/bundle/{chunk-ebcdxmdd.js → chunk-jngchw38.js} +1 -1
- package/bundle/{chunk-j5ymkhry.js → chunk-jqn27885.js} +1 -1
- package/bundle/chunk-jr2q5295.js +3 -0
- package/bundle/{chunk-hj3ddt53.js → chunk-jts0dma5.js} +2 -2
- package/bundle/chunk-jw16f6t0.js +4 -0
- package/bundle/chunk-jxg15t11.js +2 -0
- package/bundle/{chunk-7hm0c2yg.js → chunk-kqhh2pm9.js} +1 -1
- package/bundle/{chunk-0h8wdch6.js → chunk-kt0ej3nq.js} +1 -1
- package/bundle/chunk-kwzawx7r.js +2 -0
- package/bundle/{chunk-n6msxne8.js → chunk-kx2dp8ch.js} +1 -1
- package/bundle/chunk-m0mek3es.js +2 -0
- package/bundle/chunk-m31d2n6h.js +2 -0
- package/bundle/{chunk-egn55fa2.js → chunk-mcc5ynma.js} +3 -3
- package/bundle/{chunk-md8161zd.js → chunk-mdzzcrf9.js} +2 -2
- package/bundle/{chunk-knpyt206.js → chunk-mqtqcc10.js} +2 -2
- package/bundle/{chunk-ynwkr3yh.js → chunk-mvnxwwe7.js} +2 -2
- package/bundle/{chunk-xkv3yta0.js → chunk-mvsrzvc4.js} +4 -4
- package/bundle/{chunk-b4knxpqh.js → chunk-mw2hr4pd.js} +1 -1
- package/bundle/{chunk-vszbqv24.js → chunk-mzbr0m2v.js} +1 -1
- package/bundle/{chunk-bj00xk8k.js → chunk-n0trgp1c.js} +2 -2
- package/bundle/chunk-n14qktbg.js +2 -0
- package/bundle/{chunk-yjk6zv2z.js → chunk-n2ygpy76.js} +1 -1
- package/bundle/{chunk-4ntbxet5.js → chunk-n7xgfm5x.js} +2 -2
- package/bundle/{chunk-06k6egt2.js → chunk-neqy8j4n.js} +1 -1
- package/bundle/{chunk-nj61v4n7.js → chunk-njkserae.js} +1 -1
- package/bundle/{chunk-n6gtdx5h.js → chunk-nq495be3.js} +1 -1
- package/bundle/chunk-nr4q9fv7.js +2 -0
- package/bundle/{chunk-p3qkexpk.js → chunk-nsjp44fp.js} +1 -1
- package/bundle/chunk-nzzsj54n.js +2 -0
- package/bundle/chunk-p19qfw59.js +2 -0
- package/bundle/chunk-p2yxj9s4.js +2 -0
- package/bundle/{chunk-1dtzxt2w.js → chunk-p3rp99na.js} +1 -1
- package/bundle/chunk-p8czsxp0.js +3 -0
- package/bundle/chunk-p8k48st6.js +5 -0
- package/bundle/{chunk-79agp7v3.js → chunk-p8kpqyxb.js} +2 -2
- package/bundle/{chunk-9fxkh84w.js → chunk-p9zrk16q.js} +1 -1
- package/bundle/{chunk-xhkd9yf3.js → chunk-pmv8yr8c.js} +2 -2
- package/bundle/{chunk-ee23d2nz.js → chunk-pnq1h5az.js} +2 -2
- package/bundle/chunk-pq3qwxa8.js +2 -0
- package/bundle/{chunk-wfd5h6ax.js → chunk-pqnbdygz.js} +2 -2
- package/bundle/chunk-ps9p14y6.js +2 -0
- package/bundle/{chunk-zfcp509b.js → chunk-pxx2hz0g.js} +2 -2
- package/bundle/{chunk-zpf31kxb.js → chunk-q7rt76qw.js} +1 -1
- package/bundle/{chunk-rq4w0by4.js → chunk-q81m4m9z.js} +1 -1
- package/bundle/chunk-qagc6v17.js +2 -0
- package/bundle/{chunk-mq6jn47r.js → chunk-qb35hqm4.js} +1 -1
- package/bundle/chunk-qc0zhbhm.js +2 -0
- package/bundle/{chunk-keveg5gx.js → chunk-qdcf1ay5.js} +2 -2
- package/bundle/chunk-qp9y0g73.js +3 -0
- package/bundle/chunk-qpd0gab8.js +2 -0
- package/bundle/{chunk-6b196wjz.js → chunk-qqne79vp.js} +2 -2
- package/bundle/{chunk-g4gjz7sq.js → chunk-qs4wef8c.js} +1 -1
- package/bundle/chunk-r0ewmh6f.js +2 -0
- package/bundle/chunk-r3df289z.js +2 -0
- package/bundle/{chunk-by855es0.js → chunk-r58gzg6m.js} +1 -1
- package/bundle/{chunk-fmq0m4k5.js → chunk-r6ndvzd0.js} +1 -1
- package/bundle/chunk-r78kfhvz.js +2 -0
- package/bundle/{chunk-dyv2hqvc.js → chunk-rcyhqkv5.js} +1 -1
- package/bundle/{chunk-h2m8fdqm.js → chunk-rd4x4tsv.js} +1 -1
- package/bundle/chunk-rebsz3bj.js +2 -0
- package/bundle/{chunk-yp5bypsp.js → chunk-rexdr63q.js} +2 -2
- package/bundle/{chunk-1me21qdc.js → chunk-rgxy4ngt.js} +1 -1
- package/bundle/chunk-rph5xswc.js +2 -0
- package/bundle/{chunk-dcndy4sr.js → chunk-rph9zj24.js} +1 -1
- package/bundle/chunk-rqmvj7f4.js +3 -0
- package/bundle/{chunk-ryfqwsft.js → chunk-rrd0jf5m.js} +1 -1
- package/bundle/{chunk-mpygdb5a.js → chunk-s8mghr5a.js} +2 -2
- package/bundle/chunk-schtpyjs.js +2 -0
- package/bundle/{chunk-nmehsm3w.js → chunk-shwjjrj8.js} +1 -1
- package/bundle/{chunk-08f4khsw.js → chunk-snt1kefv.js} +3 -3
- package/bundle/{chunk-s8hq6trz.js → chunk-srxx88nb.js} +1 -1
- package/bundle/{chunk-gy0wm7e1.js → chunk-std2bgv7.js} +2 -2
- package/bundle/{chunk-dffhkd30.js → chunk-swcgsrbj.js} +1 -1
- package/bundle/chunk-sy3n0qhc.js +800 -0
- package/bundle/{chunk-wgk7ynt3.js → chunk-t01bhw5h.js} +3 -3
- package/bundle/chunk-t0jjes17.js +2 -0
- package/bundle/{chunk-y370dqf3.js → chunk-t5tfppwv.js} +2 -2
- package/bundle/chunk-t8rke5fr.js +8 -0
- package/bundle/chunk-tabcpx7t.js +4 -0
- package/bundle/{chunk-gmzrvxnv.js → chunk-tdmn21z0.js} +2 -2
- package/bundle/{chunk-71zw0qhf.js → chunk-tdxbm1nd.js} +1 -1
- package/bundle/{chunk-p825vsjy.js → chunk-te5tfq79.js} +1 -1
- package/bundle/chunk-tf4xwqz7.js +2 -0
- package/bundle/{chunk-fg35hwa0.js → chunk-tgd5ctnt.js} +2 -2
- package/bundle/chunk-tqazneg6.js +2 -0
- package/bundle/{chunk-qa2j0qmy.js → chunk-txqc7543.js} +2 -2
- package/bundle/chunk-tzg4z74d.js +2 -0
- package/bundle/{chunk-a3a1trap.js → chunk-v3x5nrc4.js} +2 -2
- package/bundle/chunk-v8dd6tyn.js +2 -0
- package/bundle/chunk-v8ksjgc3.js +2 -0
- package/bundle/chunk-v8vcwx23.js +2 -0
- package/bundle/chunk-vc4e6xc4.js +10 -0
- package/bundle/chunk-vcrakhgy.js +3 -0
- package/bundle/{chunk-za63b5mc.js → chunk-vdpd4akk.js} +2 -2
- package/bundle/{chunk-6p7yg5sr.js → chunk-vftqwdpg.js} +1 -1
- package/bundle/chunk-vg41rtdy.js +2 -0
- package/bundle/{chunk-r0k21apr.js → chunk-vgaxv70x.js} +2 -2
- package/bundle/{chunk-nkk4fyqf.js → chunk-vgnddhdj.js} +1 -1
- package/bundle/{chunk-xd3xc1vv.js → chunk-vm58fkrv.js} +1 -1
- package/bundle/{chunk-qg2vk5fw.js → chunk-vsys768k.js} +1 -1
- package/bundle/{chunk-s4qtphwx.js → chunk-w03fdrxe.js} +1 -1
- package/bundle/chunk-w1ypf53m.js +3 -0
- package/bundle/chunk-w24660y4.js +3 -0
- package/bundle/{chunk-z1ay3qd0.js → chunk-w3bmf3zz.js} +1 -1
- package/bundle/{chunk-28cm7m3t.js → chunk-w57j3pgz.js} +82 -82
- package/bundle/{chunk-vsr8mnj6.js → chunk-w5940jxm.js} +1 -1
- package/bundle/chunk-w6rf2knb.js +2 -0
- package/bundle/chunk-w9pdvcf9.js +3 -0
- package/bundle/{chunk-yk97q51d.js → chunk-wev34grp.js} +2 -2
- package/bundle/chunk-wh7r96t3.js +2 -0
- package/bundle/{chunk-1pg6pv0m.js → chunk-wm77svwm.js} +1 -1
- package/bundle/chunk-wnjqaxze.js +2 -0
- package/bundle/{chunk-qkjdr337.js → chunk-x6rr6ss1.js} +1 -1
- package/bundle/{chunk-bbzztav6.js → chunk-xdacgfba.js} +1 -1
- package/bundle/{chunk-6p94fpbn.js → chunk-xdjwapwy.js} +2 -2
- package/bundle/chunk-xfz698bh.js +2 -0
- package/bundle/{chunk-zwnhf4z1.js → chunk-xhbb8b5g.js} +1 -1
- package/bundle/chunk-xqwvx3qq.js +2 -0
- package/bundle/chunk-xxj3sgd5.js +2 -0
- package/bundle/chunk-xyjehgzm.js +3 -0
- package/bundle/{chunk-cs38g1bx.js → chunk-y0ydzdfc.js} +1 -1
- package/bundle/{chunk-wvf5q2hz.js → chunk-y1b2h15z.js} +1 -1
- package/bundle/{chunk-1gf116rg.js → chunk-yacccwf6.js} +1 -1
- package/bundle/chunk-ydc6ypjt.js +77 -0
- package/bundle/{chunk-dhqaqeq6.js → chunk-yeq7b87a.js} +1 -1
- package/bundle/chunk-yfp9y71y.js +2 -0
- package/bundle/chunk-yg9c1v8v.js +2 -0
- package/bundle/{chunk-e6xnynaz.js → chunk-yha554nm.js} +2 -2
- package/bundle/{chunk-rv1stdvb.js → chunk-yj6rbe9p.js} +2 -2
- package/bundle/chunk-yjjh339w.js +2 -0
- package/bundle/{chunk-j8q252w3.js → chunk-yjp0btmq.js} +3 -3
- package/bundle/{chunk-c5pb87yf.js → chunk-ymtcm4xd.js} +1 -1
- package/bundle/chunk-yt6vd7a5.js +2 -0
- package/bundle/{chunk-ssk8tkwd.js → chunk-yw9pfqxt.js} +1 -1
- package/bundle/{chunk-g6cyhxwg.js → chunk-yykjvt7f.js} +2 -2
- package/bundle/{chunk-sfes6pp1.js → chunk-yzh4rmrt.js} +1 -1
- package/bundle/chunk-yzq3c3dq.js +2 -0
- package/bundle/{chunk-prh3c44x.js → chunk-yzwgvjzd.js} +1 -1
- package/bundle/chunk-z1j25911.js +2 -0
- package/bundle/{chunk-rkwrjphh.js → chunk-z1rshv6g.js} +1 -1
- package/bundle/chunk-z29ahthm.js +2 -0
- package/bundle/{chunk-jgjnz82k.js → chunk-zaan8jk6.js} +1 -1
- package/bundle/{chunk-6gb65bv1.js → chunk-zbqzm65q.js} +1 -1
- package/bundle/{chunk-bk4phk66.js → chunk-zesbm9k1.js} +1 -1
- package/bundle/{chunk-c6vfwjg4.js → chunk-zfcfyagt.js} +1 -1
- package/bundle/{chunk-ywkvq7zb.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/chunk-zgre4gc2.js +2 -0
- package/bundle/{chunk-z7430qxg.js → chunk-zrmx397j.js} +1 -1
- package/bundle/chunk-zthkjx33.js +2 -0
- package/bundle/chunk-zxddasg8.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0x5jn813.js +0 -2
- package/bundle/chunk-1hmq2fpt.js +0 -14
- package/bundle/chunk-28t9akfn.js +0 -2
- package/bundle/chunk-2h1fcqvf.js +0 -2
- package/bundle/chunk-2scyp9ns.js +0 -2
- package/bundle/chunk-2tw58kwb.js +0 -2
- package/bundle/chunk-2vxx0tax.js +0 -2
- package/bundle/chunk-2ybt3p5z.js +0 -2
- package/bundle/chunk-2zpkw3ge.js +0 -2
- package/bundle/chunk-397be2x0.js +0 -2
- package/bundle/chunk-3c78nkgn.js +0 -2
- package/bundle/chunk-3vnnxq40.js +0 -2
- package/bundle/chunk-425mq6k8.js +0 -2
- package/bundle/chunk-43yv7tz1.js +0 -2
- package/bundle/chunk-499gp5g5.js +0 -2
- package/bundle/chunk-4sw6frjt.js +0 -2
- package/bundle/chunk-4xw14sed.js +0 -2
- package/bundle/chunk-536naqqv.js +0 -2
- package/bundle/chunk-57najm15.js +0 -2
- package/bundle/chunk-5he3d7cy.js +0 -2
- package/bundle/chunk-5vzrn6za.js +0 -3
- package/bundle/chunk-696z96a6.js +0 -2
- package/bundle/chunk-6hybp2mt.js +0 -2
- package/bundle/chunk-6v9nbb4c.js +0 -3
- package/bundle/chunk-6y423jax.js +0 -3
- package/bundle/chunk-72ghkgcn.js +0 -2
- package/bundle/chunk-741teh8k.js +0 -2
- package/bundle/chunk-7b3wx6kn.js +0 -2
- package/bundle/chunk-7bwe0ayr.js +0 -3
- package/bundle/chunk-7hh0654f.js +0 -3
- package/bundle/chunk-891yevv2.js +0 -2
- package/bundle/chunk-8d5k45yj.js +0 -2
- package/bundle/chunk-8eje5baf.js +0 -8
- package/bundle/chunk-8ktgy41r.js +0 -2
- package/bundle/chunk-8q73cjyj.js +0 -2
- package/bundle/chunk-8y623qdx.js +0 -2
- package/bundle/chunk-921vn745.js +0 -2
- package/bundle/chunk-9y97bzht.js +0 -8
- package/bundle/chunk-a0rp7gh4.js +0 -77
- package/bundle/chunk-a48t0g95.js +0 -3
- package/bundle/chunk-a8119c3a.js +0 -2
- package/bundle/chunk-akk84fnc.js +0 -2
- package/bundle/chunk-aw7j7brm.js +0 -2
- package/bundle/chunk-b34t8v7x.js +0 -2
- package/bundle/chunk-b8hmj4jq.js +0 -2
- package/bundle/chunk-bja8q0ke.js +0 -3
- package/bundle/chunk-c5fa8cb1.js +0 -2
- package/bundle/chunk-cfw9pyt7.js +0 -2
- package/bundle/chunk-ckbwdrm3.js +0 -2
- package/bundle/chunk-cz3h5n1v.js +0 -3
- package/bundle/chunk-d80hk5x9.js +0 -3
- package/bundle/chunk-d8dk05kd.js +0 -2
- package/bundle/chunk-dwajajaq.js +0 -2
- package/bundle/chunk-dxcrggvq.js +0 -2
- package/bundle/chunk-e7ah0e61.js +0 -2
- package/bundle/chunk-e7v9trve.js +0 -11
- package/bundle/chunk-efndtzby.js +0 -2
- package/bundle/chunk-eq2pepce.js +0 -2
- package/bundle/chunk-esp6jv63.js +0 -7
- package/bundle/chunk-f693s9vn.js +0 -2
- package/bundle/chunk-f9v5n0t6.js +0 -2
- package/bundle/chunk-fdadk5tw.js +0 -2
- package/bundle/chunk-ftepqwyq.js +0 -2
- package/bundle/chunk-g4nq9swr.js +0 -3
- package/bundle/chunk-gdb67zmn.js +0 -14
- package/bundle/chunk-gk28ffhg.js +0 -2
- package/bundle/chunk-gpfc4z4v.js +0 -2
- package/bundle/chunk-gqvg02zp.js +0 -2
- package/bundle/chunk-h3k1dk9m.js +0 -2
- package/bundle/chunk-h8c3dcqt.js +0 -2
- package/bundle/chunk-hfq11w4h.js +0 -2
- package/bundle/chunk-hg0etbkx.js +0 -3
- package/bundle/chunk-hw5qyht3.js +0 -3
- package/bundle/chunk-hwf58w1k.js +0 -2
- package/bundle/chunk-j0jdkqf5.js +0 -5
- package/bundle/chunk-jm722vy1.js +0 -4
- package/bundle/chunk-kdvs4871.js +0 -2
- package/bundle/chunk-kk3ve911.js +0 -2
- package/bundle/chunk-kv72hxkp.js +0 -3
- package/bundle/chunk-m4j7jyrd.js +0 -3
- package/bundle/chunk-mdts0641.js +0 -2
- package/bundle/chunk-mf3sm0pk.js +0 -2
- package/bundle/chunk-mkng9ykt.js +0 -2
- package/bundle/chunk-npv80mcx.js +0 -2
- package/bundle/chunk-ny9hnvzy.js +0 -2
- package/bundle/chunk-p15sv2dg.js +0 -3
- package/bundle/chunk-pe98rznj.js +0 -2
- package/bundle/chunk-q1czj6be.js +0 -2
- package/bundle/chunk-q6wm9yt0.js +0 -2
- package/bundle/chunk-qbx70v64.js +0 -2
- package/bundle/chunk-qc3ce3vc.js +0 -3
- package/bundle/chunk-qek6a75r.js +0 -2
- package/bundle/chunk-qkk1as5n.js +0 -2
- package/bundle/chunk-qsm9xw87.js +0 -2
- package/bundle/chunk-qyzze0dv.js +0 -2
- package/bundle/chunk-r2w3gr8d.js +0 -2
- package/bundle/chunk-r5bqcpkz.js +0 -2
- package/bundle/chunk-r67c858b.js +0 -2
- package/bundle/chunk-r9fvfkee.js +0 -2
- package/bundle/chunk-rq47pn3r.js +0 -2
- package/bundle/chunk-rvt1tdy8.js +0 -2
- package/bundle/chunk-ry7q8xn6.js +0 -2
- package/bundle/chunk-s27xvrft.js +0 -2
- package/bundle/chunk-s2vasbwj.js +0 -2
- package/bundle/chunk-scy39p6q.js +0 -2
- package/bundle/chunk-shenqgrx.js +0 -2
- package/bundle/chunk-sz0gkx88.js +0 -5
- package/bundle/chunk-t5qamf96.js +0 -2
- package/bundle/chunk-t9mz17gb.js +0 -3
- package/bundle/chunk-tt8jke90.js +0 -2
- package/bundle/chunk-ttevj0pj.js +0 -2
- package/bundle/chunk-v6tgn668.js +0 -2
- package/bundle/chunk-v7c54cyj.js +0 -2
- package/bundle/chunk-vgefaens.js +0 -2
- package/bundle/chunk-vkq0faj8.js +0 -2
- package/bundle/chunk-vkqzmzpw.js +0 -2
- package/bundle/chunk-vv59b4re.js +0 -2
- package/bundle/chunk-vwqy7n3g.js +0 -2
- package/bundle/chunk-w5kg2yz0.js +0 -3
- package/bundle/chunk-wbzs30fk.js +0 -28
- package/bundle/chunk-wet3bnwn.js +0 -2
- package/bundle/chunk-wfegee41.js +0 -2
- package/bundle/chunk-wmaz57f6.js +0 -800
- package/bundle/chunk-wn076jwj.js +0 -2
- package/bundle/chunk-x0m1qye9.js +0 -2
- package/bundle/chunk-x9s90xd1.js +0 -3
- package/bundle/chunk-xy5cjach.js +0 -2
- package/bundle/chunk-y70aachh.js +0 -2
- package/bundle/chunk-ya8g02hv.js +0 -9
- package/bundle/chunk-yqk58hf6.js +0 -3
- package/bundle/chunk-ysgxt83y.js +0 -2
- package/bundle/chunk-zm5dfk2b.js +0 -3
- package/bundle/chunk-zph1c2q1.js +0 -3
- package/bundle/chunk-zwdnh860.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{iQ as B7,kQ as RZ}from"./chunk-4sazy0nq.js";import{createRequire as M8}from"module";import{fileURLToPath as k8}from"url";import{dirname as b8}from"path";import B0 from"path";import*as y6 from"path";import*as q4 from"url";import K6 from"path";import*as U6 from"path";import*as $2 from"fs/promises";import*as w6 from"path";import OJ from"process";import*as z1 from"path";import _J from"process";import Q4 from"path";import{pathToFileURL as Jz}from"url";import uz from"fs/promises";import cz from"path";import{pathToFileURL as nz}from"url";import A6 from"assert";import{statSync as f6,realpathSync as dz}from"fs";import p0 from"process";import{URL as KZ,fileURLToPath as HZ,pathToFileURL as j4}from"url";import g6 from"path";import{builtinModules as y4}from"module";import{fileURLToPath as ez}from"url";import oz from"fs";import tz from"path";import{fileURLToPath as p2}from"url";import ZV from"v8";import E0 from"assert";import{format as $V,inspect as E2}from"util";import{createRequire as nV}from"module";import f5 from"assert";import{fileURLToPath as kQ}from"url";import _Q from"assert";import D5 from"path";import{pathToFileURL as l5}from"url";import TW from"path";import s1 from"path";import sW from"url";var U2={};B7(U2,{utils:()=>s4,printer:()=>i4,default:()=>w8,builders:()=>_4});var S7=Object.defineProperty,F7=(Z,$)=>{for(var J in $)S7(Z,J,{get:$[J],enumerable:!0})},P4={};F7(P4,{builders:()=>_4,printer:()=>i4,utils:()=>s4});var R0="string",xZ="array",Y0="cursor",H0="indent",X0="align",v0="trim",CZ="group",j0="fill",DZ="if-break",y0="indent-if-break",G0="line-suffix",K0="line-suffix-boundary",AZ="line",U0="label",aZ="break-parent",C4=new Set([Y0,H0,X0,v0,CZ,j0,DZ,y0,G0,K0,AZ,U0,aZ]),N7=(Z,$,J)=>{if(Z&&($===void 0||$===null))return;if(Array.isArray($)||typeof $==="string")return $[J<0?$.length+J:J];return $.at(J)},W0=N7;function h7(Z){let $=Z.length;while($>0&&(Z[$-1]==="\r"||Z[$-1]===`
|
|
3
3
|
`))$--;return $<Z.length?Z.slice(0,$):Z}function L7(Z){if(typeof Z==="string")return R0;if(Array.isArray(Z))return xZ;if(!Z)return;let{type:$}=Z;if(C4.has($))return $}var I0=L7,A7=(Z)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Z);function f7(Z){let $=Z===null?"null":typeof Z;if($!=="string"&&$!=="object")return`Unexpected doc '${$}',
|
|
4
4
|
Expected it to be 'string' or 'object'.`;if(I0(Z))throw Error("doc is valid.");let J=Object.prototype.toString.call(Z);if(J!=="[object Object]")return`Unexpected doc '${J}'.`;let z=A7([...C4].map((V)=>`'${V}'`));return`Unexpected doc.type '${Z.type}'.
|
|
5
5
|
Expected it to be ${z}.`}var g7=class extends Error{name="InvalidDocError";constructor(Z){super(f7(Z));this.doc=Z}},r0=g7,R4={};function m7(Z,$,J,z){let V=[Z];while(V.length>0){let q=V.pop();if(q===R4){J(V.pop());continue}if(J)V.push(q,R4);let Q=I0(q);if(!Q)throw new r0(q);if(($==null?void 0:$(q))===!1)continue;switch(Q){case xZ:case j0:{let W=Q===xZ?q:q.parts;for(let H=W.length,v=H-1;v>=0;--v)V.push(W[v]);break}case DZ:V.push(q.flatContents,q.breakContents);break;case CZ:if(z&&q.expandedStates)for(let W=q.expandedStates.length,H=W-1;H>=0;--H)V.push(q.expandedStates[H]);else V.push(q.contents);break;case X0:case H0:case y0:case U0:case G0:V.push(q.contents);break;case R0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(q)}}}var v2=m7;function f1(Z,$){if(typeof Z==="string")return $(Z);let J=new Map;return z(Z);function z(q){if(J.has(q))return J.get(q);let Q=V(q);return J.set(q,Q),Q}function V(q){switch(I0(q)){case xZ:return $(q.map(z));case j0:return $({...q,parts:q.parts.map(z)});case DZ:return $({...q,breakContents:z(q.breakContents),flatContents:z(q.flatContents)});case CZ:{let{expandedStates:Q,contents:W}=q;if(Q)Q=Q.map(z),W=Q[0];else W=z(W);return $({...q,contents:W,expandedStates:Q})}case X0:case H0:case y0:case U0:case G0:return $({...q,contents:z(q.contents)});case R0:case Y0:case v0:case K0:case AZ:case aZ:return $(q);default:throw new r0(q)}}}function j2(Z,$,J){let z=J,V=!1;function q(Q){if(V)return!1;let W=$(Q);if(W!==void 0)V=!0,z=W}return v2(Z,q),z}function R7(Z){if(Z.type===CZ&&Z.break)return!0;if(Z.type===AZ&&Z.hard)return!0;if(Z.type===aZ)return!0}function Y7(Z){return j2(Z,R7,!1)}function Y4(Z){if(Z.length>0){let $=W0(!1,Z,-1);if(!$.expandedStates&&!$.break)$.break="propagated"}return null}function I7(Z){let $=new Set,J=[];function z(q){if(q.type===aZ)Y4(J);if(q.type===CZ){if(J.push(q),$.has(q))return!1;$.add(q)}}function V(q){if(q.type===CZ){if(J.pop().break)Y4(J)}}v2(Z,z,V,!0)}function P7(Z){if(Z.type===AZ&&!Z.hard)return Z.soft?"":" ";if(Z.type===DZ)return Z.flatContents;return Z}function C7(Z){return f1(Z,P7)}function I4(Z){Z=[...Z];while(Z.length>=2&&W0(!1,Z,-2).type===AZ&&W0(!1,Z,-1).type===aZ)Z.length-=2;if(Z.length>0){let $=q1(W0(!1,Z,-1));Z[Z.length-1]=$}return Z}function q1(Z){switch(I0(Z)){case H0:case y0:case CZ:case G0:case U0:{let $=q1(Z.contents);return{...Z,contents:$}}case DZ:return{...Z,breakContents:q1(Z.breakContents),flatContents:q1(Z.flatContents)};case j0:return{...Z,parts:I4(Z.parts)};case xZ:return I4(Z);case R0:return h7(Z);case X0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(Z)}return Z}function T7(Z){return q1(u7(Z))}function O7(Z){switch(I0(Z)){case j0:if(Z.parts.every(($)=>$===""))return"";break;case CZ:if(!Z.contents&&!Z.id&&!Z.break&&!Z.expandedStates)return"";if(Z.contents.type===CZ&&Z.contents.id===Z.id&&Z.contents.break===Z.break&&Z.contents.expandedStates===Z.expandedStates)return Z.contents;break;case X0:case H0:case y0:case G0:if(!Z.contents)return"";break;case DZ:if(!Z.flatContents&&!Z.breakContents)return"";break;case xZ:{let $=[];for(let J of Z){if(!J)continue;let[z,...V]=Array.isArray(J)?J:[J];if(typeof z==="string"&&typeof W0(!1,$,-1)==="string")$[$.length-1]+=z;else $.push(z);$.push(...V)}if($.length===0)return"";if($.length===1)return $[0];return $}case R0:case Y0:case v0:case K0:case AZ:case U0:case aZ:break;default:throw new r0(Z)}return Z}function u7(Z){return f1(Z,($)=>O7($))}function D7(Z,$=D4){return f1(Z,(J)=>typeof J==="string"?l4($,J.split(`
|
|
@@ -75,7 +75,7 @@ ${V}`,$);this.line=J,this.column=z,this.codeblock=V}};function n1(Z,$=0,J=Z.leng
|
|
|
75
75
|
`)throw new $Z("newlines are not allowed in inline tables",{toml:Z,ptr:$-1});else if(q==="#")throw new $Z("inline tables cannot contain comments",{toml:Z,ptr:$-1});else if(q===",")throw new $Z("expected key-value, found comma",{toml:Z,ptr:$-1});else if(q!==" "&&q!=="\t"){let W,H=z,v=!1,[X,j]=l2(Z,$-1);for(let G=0;G<X.length;G++){if(G)H=v?H[W]:H[W]={};if(W=X[G],(v=Object.hasOwn(H,W))&&(typeof H[W]!=="object"||V.has(H[W])))throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});if(!v&&W==="__proto__")Object.defineProperty(H,W,{enumerable:!0,configurable:!0,writable:!0})}if(v)throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});let[y,K]=X4(Z,j,"}",J-1);V.add(y),H[W]=y,$=K,Q=Z[$-1]===","?$-1:0}if(Q)throw new $Z("trailing commas are not allowed in inline tables",{toml:Z,ptr:Q});if(!q)throw new $Z("unfinished table encountered",{toml:Z,ptr:$});return[z,$]}function Tz(Z,$,J=-1){let z=[],V;$++;while((V=Z[$++])!=="]"&&V)if(V===",")throw new $Z("expected value, found comma",{toml:Z,ptr:$-1});else if(V==="#")$=H4(Z,$);else if(V!==" "&&V!=="\t"&&V!==`
|
|
76
76
|
`&&V!=="\r"){let q=X4(Z,$-1,"]",J-1);z.push(q[0]),$=q[1]}if(!V)throw new $Z("unfinished array encountered",{toml:Z,ptr:$});return[z,$]}function X5(Z,$,J,z){var V,q;let Q=$,W=J,H,v=!1,X;for(let j=0;j<Z.length;j++){if(j){if(Q=v?Q[H]:Q[H]={},W=(X=W[H]).c,z===0&&(X.t===1||X.t===2))return null;if(X.t===2){let y=Q.length-1;Q=Q[y],W=W[y].c}}if(H=Z[j],(v=Object.hasOwn(Q,H))&&((V=W[H])==null?void 0:V.t)===0&&((q=W[H])==null?void 0:q.d))return null;if(!v){if(H==="__proto__")Object.defineProperty(Q,H,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(W,H,{enumerable:!0,configurable:!0,writable:!0});W[H]={t:j<Z.length-1&&z===2?3:z,d:!1,i:0,c:{}}}}if(X=W[H],X.t!==z&&!(z===1&&X.t===3))return null;if(z===2){if(!X.d)X.d=!0,Q[H]=[];Q[H].push(Q={}),X.c[X.i++]=X={t:1,d:!1,i:0,c:{}}}if(X.d)return null;if(X.d=!0,z===1)Q=v?Q[H]:Q[H]={};else if(z===0&&v)return null;return[H,Q,X.c]}function Oz(Z,$){let J=($==null?void 0:$.maxDepth)??1000,z={},V={},q=z,Q=V;for(let W=Z0(Z,0);W<Z.length;){if(Z[W]==="["){let H=Z[++W]==="[",v=l2(Z,W+=+H,"]");if(H){if(Z[v[1]-1]!=="]")throw new $Z("expected end of table declaration",{toml:Z,ptr:v[1]-1});v[1]++}let X=X5(v[0],z,V,H?2:1);if(!X)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});Q=X[2],q=X[1],W=v[1]}else{let H=l2(Z,W),v=X5(H[0],q,Q,0);if(!v)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});let X=X4(Z,H[1],void 0,J);v[1][v[0]]=X[0],W=X[1]}if(W=Z0(Z,W,!0),Z[W]&&Z[W]!==`
|
|
77
77
|
`&&Z[W]!=="\r")throw new $Z("each key-value declaration must be followed by an end-of-line",{toml:Z,ptr:W});W=Z0(Z,W)}return z}async function Dz(Z){if(G6(Z))Z=new URL(Z);try{return await uz.readFile(Z,"utf8")}catch($){if($.code==="ENOENT")return;throw Error(`Unable to read '${Z}': ${$.message}`)}}var b1=Dz;async function v4(Z){let $=await b1(Z);try{return Sz($)}catch(J){throw J.message=`JSON Error in ${Z}:
|
|
78
|
-
${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-
|
|
78
|
+
${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-zesbm9k1.js"));try{return b2($)}catch(J){throw J.message=`YAML Error in ${Z}:
|
|
79
79
|
${J.message}`,J}}async function pz(Z){let $=await b1(Z);try{return Oz($)}catch(J){throw J.message=`TOML Error in ${Z}:
|
|
80
80
|
${J.message}`,J}}async function Ez(Z){let $=await b1(Z);try{return yz.parse($)}catch(J){throw J.message=`JSON5 Error in ${Z}:
|
|
81
81
|
${J.message}`,J}}var _z={".toml":pz,".json5":Ez,".json":v4,".js":O0,".mjs":O0,".cjs":O0,".ts":O0,".mts":O0,".cts":O0,".yaml":D1,".yml":D1,"":D1},iz=_z,sz=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];async function az({name:Z,path:$}){if(Z==="package.json")try{return Boolean(await h6($))}catch{return!1}if(Z==="package.yaml")try{return Boolean(await L6($))}catch{return!1}return!0}function rz(Z){return new aJ(sz,{filter:az,stopDirectory:Z})}var xz=rz,JV={}.hasOwnProperty,zV=/^([A-Z][a-z\d]*)+$/,VV=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),NZ={};function B2(Z,$="and"){return Z.length<3?Z.join(` ${$} `):`${Z.slice(0,-1).join(", ")}, ${$} ${Z[Z.length-1]}`}var m6=new Map,qV="__node_internal_",v5;NZ.ERR_INVALID_ARG_TYPE=uZ("ERR_INVALID_ARG_TYPE",(Z,$,J)=>{if(E0(typeof Z==="string","'name' must be a string"),!Array.isArray($))$=[$];let z="The ";if(Z.endsWith(" argument"))z+=`${Z} `;else{let W=Z.includes(".")?"property":"argument";z+=`"${Z}" ${W} `}z+="must be ";let V=[],q=[],Q=[];for(let W of $)if(E0(typeof W==="string","All expected entries have to be of type string"),VV.has(W))V.push(W.toLowerCase());else if(zV.exec(W)===null)E0(W!=="object",'The value "object" should be written as "Object"'),Q.push(W);else q.push(W);if(q.length>0){let W=V.indexOf("object");if(W!==-1)V.slice(W,1),q.push("Object")}if(V.length>0){if(z+=`${V.length>1?"one of type":"of type"} ${B2(V,"or")}`,q.length>0||Q.length>0)z+=" or "}if(q.length>0){if(z+=`an instance of ${B2(q,"or")}`,Q.length>0)z+=" or "}if(Q.length>0)if(Q.length>1)z+=`one of ${B2(Q,"or")}`;else{if(Q[0].toLowerCase()!==Q[0])z+="an ";z+=`${Q[0]}`}return z+=`. Received ${vV(J)}`,z},TypeError);NZ.ERR_INVALID_MODULE_SPECIFIER=uZ("ERR_INVALID_MODULE_SPECIFIER",(Z,$,J=void 0)=>{return`Invalid module "${Z}" ${$}${J?` imported from ${J}`:""}`},TypeError);NZ.ERR_INVALID_PACKAGE_CONFIG=uZ("ERR_INVALID_PACKAGE_CONFIG",(Z,$,J)=>{return`Invalid package config ${Z}${$?` while importing ${$}`:""}${J?`. ${J}`:""}`},Error);NZ.ERR_INVALID_PACKAGE_TARGET=uZ("ERR_INVALID_PACKAGE_TARGET",(Z,$,J,z=!1,V=void 0)=>{let q=typeof J==="string"&&!z&&J.length>0&&!J.startsWith("./");if($===".")return E0(z===!1),`Invalid "exports" main target ${JSON.stringify(J)} defined in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`;return`Invalid "${z?"imports":"exports"}" target ${JSON.stringify(J)} defined for '${$}' in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`},Error);NZ.ERR_MODULE_NOT_FOUND=uZ("ERR_MODULE_NOT_FOUND",(Z,$,J=!1)=>{return`Cannot find ${J?"module":"package"} '${Z}' imported from ${$}`},Error);NZ.ERR_NETWORK_IMPORT_DISALLOWED=uZ("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);NZ.ERR_PACKAGE_IMPORT_NOT_DEFINED=uZ("ERR_PACKAGE_IMPORT_NOT_DEFINED",(Z,$,J)=>{return`Package import specifier "${Z}" is not defined${$?` in package ${$}package.json`:""} imported from ${J}`},TypeError);NZ.ERR_PACKAGE_PATH_NOT_EXPORTED=uZ("ERR_PACKAGE_PATH_NOT_EXPORTED",(Z,$,J=void 0)=>{if($===".")return`No "exports" main defined in ${Z}package.json${J?` imported from ${J}`:""}`;return`Package subpath '${$}' is not defined by "exports" in ${Z}package.json${J?` imported from ${J}`:""}`},Error);NZ.ERR_UNSUPPORTED_DIR_IMPORT=uZ("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);NZ.ERR_UNSUPPORTED_RESOLVE_REQUEST=uZ("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);NZ.ERR_UNKNOWN_FILE_EXTENSION=uZ("ERR_UNKNOWN_FILE_EXTENSION",(Z,$)=>{return`Unknown file extension "${Z}" for ${$}`},TypeError);NZ.ERR_INVALID_ARG_VALUE=uZ("ERR_INVALID_ARG_VALUE",(Z,$,J="is invalid")=>{let z=E2($);if(z.length>128)z=`${z.slice(0,128)}...`;return`The ${Z.includes(".")?"property":"argument"} '${Z}' ${J}. Received ${z}`},TypeError);function uZ(Z,$,J){return m6.set(Z,$),QV(J,Z)}function QV(Z,$){return J;function J(...z){let V=Error.stackTraceLimit;if(_2())Error.stackTraceLimit=0;let q=new Z;if(_2())Error.stackTraceLimit=V;let Q=XV($,z,q);return Object.defineProperties(q,{message:{value:Q,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${$}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),HV(q),q.code=$,q}}function _2(){try{if(ZV.startupSnapshot.isBuildingSnapshot())return!1}catch{}let Z=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(Z===void 0)return Object.isExtensible(Error);return JV.call(Z,"writable")&&Z.writable!==void 0?Z.writable:Z.set!==void 0}function WV(Z){let $=qV+Z.name;return Object.defineProperty(Z,"name",{value:$}),Z}var HV=WV(function(Z){let $=_2();if($)v5=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(Z),$)Error.stackTraceLimit=v5;return Z});function XV(Z,$,J){let z=m6.get(Z);if(E0(z!==void 0,"expected `message` to be found"),typeof z==="function")return E0(z.length<=$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${z.length}).`),Reflect.apply(z,J,$);let V=/%[dfijoOs]/g,q=0;while(V.exec(z)!==null)q++;if(E0(q===$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${q}).`),$.length===0)return z;return $.unshift(z),Reflect.apply($V,null,$)}function vV(Z){if(Z===null||Z===void 0)return String(Z);if(typeof Z==="function"&&Z.name)return`function ${Z.name}`;if(typeof Z==="object"){if(Z.constructor&&Z.constructor.name)return`an instance of ${Z.constructor.name}`;return`${E2(Z,{depth:-1})}`}let $=E2(Z,{colors:!1});if($.length>28)$=`${$.slice(0,25)}...`;return`type ${typeof Z} (${$})`}var Q1={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:jV}=NZ,j5=new Map;function R6(Z,{base:$,specifier:J}){let z=j5.get(Z);if(z)return z;let V;try{V=oz.readFileSync(tz.toNamespacedPath(Z),"utf8")}catch(Q){let W=Q;if(W.code!=="ENOENT")throw W}let q={exists:!1,pjsonPath:Z,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(V!==void 0){let Q;try{Q=JSON.parse(V)}catch(W){let H=W,v=new jV(Z,($?`"${J}" from `:"")+p2($||J),H.message);throw v.cause=H,v}if(q.exists=!0,Q1.call(Q,"name")&&typeof Q.name==="string")q.name=Q.name;if(Q1.call(Q,"main")&&typeof Q.main==="string")q.main=Q.main;if(Q1.call(Q,"exports"))q.exports=Q.exports;if(Q1.call(Q,"imports"))q.imports=Q.imports;if(Q1.call(Q,"type")&&(Q.type==="commonjs"||Q.type==="module"))q.type=Q.type}return j5.set(Z,q),q}function G4(Z){let $=new URL("package.json",Z);while(!0){if($.pathname.endsWith("node_modules/package.json"))break;let V=R6(p2($),{specifier:Z});if(V.exists)return V;let q=$;if($=new URL("../package.json",$),$.pathname===q.pathname)break}return{pjsonPath:p2($),exists:!1,type:"none"}}function y5(Z){return G4(Z).type}var{ERR_UNKNOWN_FILE_EXTENSION:yV}=NZ,GV={}.hasOwnProperty,KV={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function UV(Z){if(Z&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(Z))return"module";if(Z==="application/json")return"json";return null}var G5={__proto__:null,"data:":wV,"file:":kV,"http:":K5,"https:":K5,"node:"(){return"builtin"}};function wV(Z){let{1:$}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(Z.pathname)||[null,null,null];return UV($)}function MV(Z){let $=Z.pathname,J=$.length;while(J--){let z=$.codePointAt(J);if(z===47)return"";if(z===46)return $.codePointAt(J-1)===47?"":$.slice(J)}return""}function kV(Z,$,J){let z=MV(Z);if(z===".js"){let Q=y5(Z);if(Q!=="none")return Q;return"commonjs"}if(z===""){let Q=y5(Z);if(Q==="none"||Q==="commonjs")return"commonjs";return"module"}let V=KV[z];if(V)return V;if(J)return;let q=ez(Z);throw new yV(z,q)}function K5(){}function Y6(Z,$){let J=Z.protocol;if(!GV.call(G5,J))return null;return G5[J](Z,$,!0)||null}var{ERR_INVALID_ARG_VALUE:bV}=NZ,I6=Object.freeze(["node","import"]),BV=new Set(I6);function SV(){return I6}function FV(){return BV}function NV(Z){if(Z!==void 0&&Z!==SV()){if(!Array.isArray(Z))throw new bV("conditions",Z,"expected an array");return new Set(Z)}return FV()}var m1=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:S2,ERR_INVALID_MODULE_SPECIFIER:J2,ERR_INVALID_PACKAGE_CONFIG:P6,ERR_INVALID_PACKAGE_TARGET:hV,ERR_MODULE_NOT_FOUND:K4,ERR_PACKAGE_IMPORT_NOT_DEFINED:LV,ERR_PACKAGE_PATH_NOT_EXPORTED:AV,ERR_UNSUPPORTED_DIR_IMPORT:fV,ERR_UNSUPPORTED_RESOLVE_REQUEST:U5}=NZ,C6={}.hasOwnProperty,w5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,M5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,gV=/^\.|%|\\/,R1=/\*/g,mV=/%2f|%5c/i,k5=new Set,RV=/[/\\]{2}/;function b5(Z,$,J,z,V,q,Q){if(p0.noDeprecation)return;let W=HZ(z),H=RV.exec(Q?Z:$)!==null;p0.emitWarning(`Use of deprecated ${H?"double slash":"leading or trailing slash matching"} resolving "${Z}" for module request "${$}" ${$===J?"":`matched to "${J}" `}in the "${V?"imports":"exports"}" field module resolution of the package at ${W}${q?` imported from ${HZ(q)}`:""}.`,"DeprecationWarning","DEP0166")}function B5(Z,$,J,z){if(p0.noDeprecation)return;if(Y6(Z,{parentURL:J.href})!=="module")return;let q=HZ(Z.href),Q=HZ(new KZ(".",$)),W=HZ(J);if(!z)p0.emitWarning(`No "main" or "exports" field defined in the package.json for ${Q} resolving the main entry point "${q.slice(Q.length)}", imported from ${W}.
|
|
@@ -104,7 +104,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
104
104
|
`)y+=E6(K.slice(0,y),`
|
|
105
105
|
`);K=B1(!1,K,`
|
|
106
106
|
`,G)}return{formatted:K,cursorOffset:y,comments:X.comments}}function g2(Z,$,J){if(typeof $!=="number"||Number.isNaN($)||$<0||$>Z.length)return J;return $}function T5(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V}=$;return J=g2(Z,J,-1),z=g2(Z,z,0),V=g2(Z,V,Z.length),{...$,cursorOffset:J,rangeStart:z,rangeEnd:V}}function v7(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q}=T5(Z,$),Q=Z.charAt(0)===H7;if(Q)Z=Z.slice(1),J--,z--,V--;if(q==="auto")q=Gq(Z);if(Z.includes("\r")){let W=(H)=>E6(Z.slice(0,Math.max(H,0)),`\r
|
|
107
|
-
`);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-gws1rn1v.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-ssk8tkwd.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-0h8wdch6.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-vsr8mnj6.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-cs38g1bx.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-ba3h1pzs.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-kmcsz8yv.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-z7430qxg.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-9fxkh84w.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-sfes6pp1.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-04hvaaje.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-ggydr1ze.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-bk4phk66.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
|
|
107
|
+
`);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-08q55ya0.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-yw9pfqxt.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-kt0ej3nq.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-w5940jxm.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-y0ydzdfc.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-dshnn54c.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-2dkrfc1s.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-zrmx397j.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-p9zrk16q.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-yzh4rmrt.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-72zxassf.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-g794ey6w.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-zesbm9k1.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
|
|
108
108
|
node_modules`;if(!J)return;let z=(0,iW.default)({allowRelativePaths:!0}).add(J);return(V)=>z.checkIgnore(aW(rW(V,Z))).ignored}async function w7(Z,$){if(Z.length===0&&!$)Z=[void 0];let J=(await Promise.all(Z.map((z)=>xW(z,$)))).filter(Boolean);return(z)=>J.some((V)=>V(z))}async function cW(Z,$){let{ignorePath:J,withNodeModules:z}=$;return(await w7(J,z))(Z)}function nW(Z,$){return $=new Set($),Object.fromEntries(Object.entries(Z).filter(([J])=>!$.has(J)))}var dW=nW;async function eW(Z,$={}){if(typeof Z!=="string"&&!(Z instanceof URL))throw TypeError(`expect \`file\` to be a string or URL, got \`${typeof Z}\``);let{ignorePath:J,withNodeModules:z}=$;if(!Array.isArray(J))J=[J];let V=await cW(Z,{ignorePath:J,withNodeModules:z}),q;if(!V)q=$.parser??await oW(Z,$);return{ignored:V,inferredParser:q??null}}async function oW(Z,$){let J;if($.resolveConfig!==!1)J=await p6(Z,{editorconfig:!1});if(J==null?void 0:J.parser)return J.parser;let z=$.plugins??(J==null?void 0:J.plugins)??[];return z=(await Promise.all([K7(),U7(z)])).flat(),h4({plugins:z},{physicalFile:Z})}var tW=eW,ZH="3.6.2",M7={};M1(M7,{addDanglingComment:()=>D0,addLeadingComment:()=>U1,addTrailingComment:()=>w1,getAlignmentSize:()=>b4,getIndentSize:()=>QH,getMaxContinuousCount:()=>XH,getNextNonSpaceNonCommentCharacter:()=>jH,getNextNonSpaceNonCommentCharacterIndex:()=>SH,getPreferredQuote:()=>GH,getStringWidth:()=>M4,hasNewline:()=>b0,hasNewlineInRange:()=>UH,hasSpaces:()=>MH,isNextLineEmpty:()=>LH,isNextLineEmptyAfterIndex:()=>m4,isPreviousLineEmpty:()=>NH,makeString:()=>bH,skip:()=>S1,skipEverythingButNewLine:()=>x6,skipInlineComment:()=>A4,skipNewline:()=>_0,skipSpaces:()=>F0,skipToLineEnd:()=>r6,skipTrailingComment:()=>f4,skipWhitespace:()=>xq});function $H(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="*"){for(let J=$+2;J<Z.length;++J)if(Z.charAt(J)==="*"&&Z.charAt(J+1)==="/")return J+2}return $}var A4=$H;function JH(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="/")return x6(Z,$);return $}var f4=JH;function zH(Z,$){let J=null,z=$;while(z!==J)J=z,z=F0(Z,z),z=A4(Z,z),z=f4(Z,z),z=_0(Z,z);return z}var g4=zH;function VH(Z,$){let J=null,z=$;while(z!==J)J=z,z=r6(Z,z),z=A4(Z,z),z=F0(Z,z);return z=f4(Z,z),z=_0(Z,z),z!==!1&&b0(Z,z)}var m4=VH;function qH(Z,$){let J=Z.lastIndexOf(`
|
|
109
109
|
`);if(J===-1)return 0;return b4(Z.slice(J+1).match(/^[\t ]*/u)[0],$)}var QH=qH;function WH(Z){if(typeof Z!=="string")throw TypeError("Expected a string");return Z.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function HH(Z,$){let J=Z.match(new RegExp(`(${WH($)})+`,"gu"));if(J===null)return 0;return J.reduce((z,V)=>Math.max(z,V.length/$.length),0)}var XH=HH;function vH(Z,$){let J=g4(Z,$);return J===!1?"":Z.charAt(J)}var jH=vH,I1="'",p5='"';function yH(Z,$){let J=$===!0||$===I1?I1:p5,z=J===I1?p5:I1,V=0,q=0;for(let Q of Z)if(Q===J)V++;else if(Q===z)q++;return V>q?z:J}var GH=yH;function KH(Z,$,J){for(let z=$;z<J;++z)if(Z.charAt(z)===`
|
|
110
110
|
`)return!0;return!1}var UH=KH;function wH(Z,$,J={}){return F0(Z,J.backwards?$-1:$,J)!==$}var MH=wH;function kH(Z,$,J){let z=$==='"'?"'":'"',q=B1(!1,Z,/\\(.)|(["'])/gsu,(Q,W,H)=>{if(W===z)return W;if(H===$)return"\\"+H;if(H)return H;return J&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(W)?W:"\\"+W});return $+q+$}var bH=kH;function BH(Z,$,J){return g4(Z,J($))}function SH(Z,$){return arguments.length===2||typeof $==="number"?g4(Z,$):BH(...arguments)}function FH(Z,$,J){return F4(Z,J($))}function NH(Z,$){return arguments.length===2||typeof $==="number"?F4(Z,$):FH(...arguments)}function hH(Z,$,J){return m4(Z,J($))}function LH(Z,$){return arguments.length===2||typeof $==="number"?m4(Z,$):hH(...arguments)}function k0(Z,$=1){return async(...J)=>{let z=J[$]??{},{plugins:V=[]}=z;return J[$]={...z,plugins:(await Promise.all([K7(),U7(V)])).flat()},Z(...J)}}var k7=k0(j7);async function b7(Z,$){let{formatted:J}=await k7(Z,{...$,cursorOffset:-1});return J}async function AH(Z,$){return await b7(Z,$)===Z}async function fH(){Qq(),EW()}var gH=k0(N4,0),mH=k0((Z,$)=>h4($,{physicalFile:Z})),RH={errors:X6,optionCategories:y7,createIsIgnoredFunction:w7,formatOptionsHiddenDefaults:c2,normalizeOptions:$7,getSupportInfoWithoutPlugins:N4,normalizeOptionSettings:t6,inferParser:(Z,$)=>Promise.resolve(($==null?void 0:$.parser)??mH(Z,$)),vnopts:{ChoiceSchema:H6,apiDescriptor:l0},fastGlob:JJ.default,createTwoFilesPatch:ZJ,picocolors:zJ.default,leven:J6,utils:{omit:dW,createMockable:v6}},YH={parse:k0(eQ),formatAST:k0(oQ),formatDoc:k0(tQ),printToDoc:k0(ZW),printDocToString:k0($W),mockable:j6},KX=Z6;export{ZH as version,M7 as util,Xq as resolveConfigFile,p6 as resolveConfig,gH as getSupportInfo,tW as getFileInfo,k7 as formatWithCursor,b7 as format,U2 as doc,KX as default,fH as clearConfigCache,AH as check,RH as __internal,YH as __debug};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{eQ as D}from"./chunk-dt899wbf.js";import{fQ as C}from"./chunk-pnq1h5az.js";import{hQ as z,kQ as B}from"./chunk-4sazy0nq.js";var H=z((v)=>{Object.defineProperty(v,"__esModule",{value:!0});v.getMachineId=void 0;var E=B("fs"),F=D(),q=C();async function G(){try{return(await E.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(k){q.diag.debug(`error reading machine id: ${k}`)}try{return(await(0,F.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(k){q.diag.debug(`error reading machine id: ${k}`)}return}v.getMachineId=G});export default H();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":'Posez votre question... "{{example}}"',"tui.prompt.placeholder.shell":'Ex\xE9cuter une commande... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab pour accepter)","tui.home.placeholder.example.todo":"Corriger un TODO dans le code","tui.home.placeholder.example.stack":"Quelle est la stack technique de ce projet ?","tui.home.placeholder.example.tests":"R\xE9parer les tests cass\xE9s","tui.home.agreement.prefix":"En utilisant QitQode, vous acceptez nos ","tui.home.agreement.terms":"Conditions d'utilisation","tui.home.agreement.separator":" et notre ","tui.home.agreement.privacy":"Politique de confidentialit\xE9","tui.home.agreement.suffix":"","tui.prompt.hint.attach_file":"joindre un fichier","tui.prompt.hint.subagent":"sous-agent","tui.prompt.hint.commands":"commandes","tui.prompt.hint.switch_mode":"changer de mode","tui.prompt.hint.settings":"param\xE8tres","tui.tips.label":"Astuce","tui.tips.plain_terminal":"Nous recommandons iTerm ou le terminal VS Code","tui.tips.attach_file":"Tapez {highlight}@{/highlight} suivi d'un nom de fichier pour rechercher et joindre des fichiers","tui.tips.shell_prefix":"Commencez un message par {highlight}!{/highlight} pour ex\xE9cuter directement des commandes shell (ex. {highlight}!ls -la{/highlight})","tui.tips.tab_agent":"Appuyez sur {highlight}Tab{/highlight} ou {highlight}Shift+Tab{/highlight} pour basculer entre les agents Build, Plan et Compose","tui.tips.theme_mode":"Ex\xE9cutez {highlight}/dark{/highlight} pour le mode sombre ou {highlight}/light{/highlight} pour le mode clair","tui.tips.doc":"Ex\xE9cutez {highlight}/doc{/highlight} pour ouvrir la documentation utilisateur","tui.tips.undo":"Utilisez {highlight}/undo{/highlight} pour annuler le dernier message et ses modifications","tui.tips.redo":"Utilisez {highlight}/redo{/highlight} pour r\xE9tablir des messages et modifications pr\xE9c\xE9demment annul\xE9s","tui.tips.drag_drop":"Glissez-d\xE9posez des images ou PDF dans le terminal pour les ajouter au contexte","tui.tips.paste_image":"Appuyez sur {highlight}Ctrl+V{/highlight} pour coller des images du presse-papiers dans l'invite","tui.tips.editor":"Appuyez sur {highlight}Ctrl+X E{/highlight} ou {highlight}/editor{/highlight} pour r\xE9diger des messages dans votre \xE9diteur externe","tui.tips.init":"Ex\xE9cutez {highlight}/init{/highlight} pour g\xE9n\xE9rer automatiquement les r\xE8gles du projet \xE0 partir de votre code","tui.tips.models":"Ex\xE9cutez {highlight}/models{/highlight} ou {highlight}Ctrl+X M{/highlight} pour changer de mod\xE8le","tui.tips.theme":`Verrouillez le mode du th\xE8me face \xE0 l'arri\xE8re-plan du terminal \u2014 ouvrez la palette de commandes ({highlight}Ctrl+P{/highlight}) et cherchez "lock"`,"tui.tips.new_session":"Appuyez sur {highlight}Ctrl+X N{/highlight} ou {highlight}/new{/highlight} pour d\xE9marrer une nouvelle session","tui.tips.sessions":"Utilisez {highlight}/sessions{/highlight} ou {highlight}Ctrl+X L{/highlight} pour lister et reprendre des conversations","tui.tips.compact":"Ex\xE9cutez {highlight}/compact{/highlight} pour r\xE9sumer les longues sessions \xE0 l'approche de la limite de contexte","tui.tips.export":"Appuyez sur {highlight}Ctrl+X X{/highlight} ou {highlight}/export{/highlight} pour enregistrer la conversation en Markdown","tui.tips.copy_last":"Appuyez sur {highlight}Ctrl+X Y{/highlight} pour copier le dernier message de l'assistant","tui.tips.command_palette":"Appuyez sur {highlight}Ctrl+P{/highlight} pour voir toutes les actions et commandes disponibles","tui.tips.leader":"La touche leader est {highlight}Ctrl+X{/highlight} ; combinez-la avec d'autres pour des actions rapides","tui.tips.f2":"Appuyez sur {highlight}F2{/highlight} pour basculer rapidement entre les mod\xE8les r\xE9cents","tui.tips.sidebar":"Appuyez sur {highlight}Ctrl+X B{/highlight} pour afficher/masquer la barre lat\xE9rale","tui.tips.history":"Utilisez {highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} pour parcourir l'historique de la conversation","tui.tips.jump_first":"Appuyez sur {highlight}Ctrl+G{/highlight} ou {highlight}Home{/highlight} pour aller au d\xE9but de la conversation","tui.tips.jump_last":"Appuyez sur {highlight}Ctrl+Alt+G{/highlight} ou {highlight}End{/highlight} pour aller au message le plus r\xE9cent","tui.tips.newline":"Appuyez sur {highlight}Shift+Enter{/highlight} ou {highlight}Ctrl+J{/highlight} pour ins\xE9rer un saut de ligne dans l'invite","tui.tips.clear_input":"Appuyez sur {highlight}Ctrl+C{/highlight} pendant la saisie pour vider le champ","tui.tips.escape":"Appuyez sur {highlight}Escape{/highlight} pour interrompre l'IA en cours de r\xE9ponse","tui.tips.plan_agent":"Passez \xE0 l'agent {highlight}Plan{/highlight} pour obtenir des suggestions sans appliquer de modifications","tui.tips.subagent":"Utilisez {highlight}@agent-name{/highlight} dans les invites pour invoquer des sous-agents sp\xE9cialis\xE9s","tui.tips.cycle_sessions":"Appuyez sur {highlight}Ctrl+X Right/Left{/highlight} pour parcourir les sessions parent et enfant","tui.tips.config_files":"Cr\xE9ez {highlight}qitqode.json{/highlight} pour la configuration serveur et {highlight}tui.json{/highlight} pour le TUI","tui.tips.global_config":"Placez les param\xE8tres TUI dans {highlight}~/.config/qitqode/tui.json{/highlight} comme configuration globale","tui.tips.schema":"Ajoutez {highlight}$schema{/highlight} \xE0 votre config pour l'auto-compl\xE9tion dans l'\xE9diteur","tui.tips.default_model":"Configurez {highlight}model{/highlight} dans la config pour d\xE9finir le mod\xE8le par d\xE9faut","tui.tips.keybinds":"Remplacez n'importe quel raccourci dans {highlight}tui.json{/highlight} via la section {highlight}keybinds{/highlight}","tui.tips.disable_keybind":"D\xE9finissez un raccourci sur {highlight}none{/highlight} pour le d\xE9sactiver compl\xE8tement","tui.tips.mcp_config":"Configurez les serveurs MCP locaux ou distants dans la section {highlight}mcp{/highlight}","tui.tips.mcp_oauth":"QitQode g\xE8re automatiquement OAuth pour les serveurs MCP distants n\xE9cessitant une authentification","tui.tips.custom_command":"Ajoutez des fichiers {highlight}.md{/highlight} dans {highlight}.qitqode/command/{/highlight} pour d\xE9finir des invites personnalis\xE9es r\xE9utilisables","tui.tips.command_args":"Utilisez {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} dans les commandes pour des entr\xE9es dynamiques","tui.tips.command_backticks":"Utilisez des backticks dans les commandes pour injecter la sortie shell (ex. {highlight}`git status`{/highlight})","tui.tips.custom_agent":"Ajoutez des fichiers {highlight}.md{/highlight} dans {highlight}.qitqode/agent/{/highlight} pour des personas IA sp\xE9cialis\xE9s","tui.tips.agent_perms":"Configurez par agent les permissions des outils {highlight}edit{/highlight}, {highlight}bash{/highlight} et {highlight}webfetch{/highlight}","tui.tips.bash_allow":'Utilisez des motifs comme {highlight}"git *": "allow"{/highlight} pour des permissions bash fines',"tui.tips.bash_deny":'D\xE9finissez {highlight}"rm -rf *": "deny"{/highlight} pour bloquer les commandes destructrices',"tui.tips.bash_ask":'Configurez {highlight}"git push": "ask"{/highlight} pour exiger une confirmation avant le push',"tui.tips.formatter":"QitQode formate automatiquement les fichiers avec prettier, gofmt, ruff, etc.","tui.tips.disable_formatter":'D\xE9finissez {highlight}"formatter": false{/highlight} dans la config pour d\xE9sactiver le formatage automatique',"tui.tips.custom_formatter":"D\xE9finissez des commandes de formatage personnalis\xE9es par extension de fichier dans la config","tui.tips.lsp":"QitQode utilise des serveurs LSP pour une analyse de code intelligente","tui.tips.custom_tool":"Cr\xE9ez des fichiers {highlight}.ts{/highlight} dans {highlight}.qitqode/tools/{/highlight} pour d\xE9finir de nouveaux outils LLM","tui.tips.tool_scripts":"Les d\xE9finitions d'outils peuvent invoquer des scripts en Python, Go, etc.","tui.tips.plugins":"Ajoutez des fichiers {highlight}.ts{/highlight} dans {highlight}.qitqode/plugin/{/highlight} pour des hooks d'\xE9v\xE9nements","tui.tips.plugin_notify":"Utilisez des plugins pour envoyer des notifications syst\xE8me \xE0 la fin des sessions","tui.tips.plugin_protect":"Cr\xE9ez un plugin pour emp\xEAcher QitQode de lire des fichiers sensibles","tui.tips.run":"Utilisez {highlight}qitqode run{/highlight} pour des scripts non interactifs","tui.tips.continue":"Utilisez {highlight}qitqode --continue{/highlight} pour reprendre la derni\xE8re session","tui.tips.attach_cli":"Utilisez {highlight}qitqode run -f file.ts{/highlight} pour joindre des fichiers via la CLI","tui.tips.format_json":"Utilisez {highlight}--format json{/highlight} pour une sortie lisible par machine dans les scripts","tui.tips.auth_list":"Ex\xE9cutez {highlight}qitqode auth status{/highlight} pour voir votre \xE9tat de connexion actuel","tui.tips.agent_create":"Ex\xE9cutez {highlight}qitqode agent create{/highlight} pour cr\xE9er un agent en mode guid\xE9","tui.tips.theme_system":'Utilisez {highlight}"theme": "system"{/highlight} pour suivre les couleurs du terminal',"tui.tips.theme_files":"Cr\xE9ez des fichiers de th\xE8me JSON dans le dossier {highlight}.qitqode/themes/{/highlight}","tui.tips.theme_variants":"Les th\xE8mes prennent en charge des variantes claires/sombres pour les deux modes","tui.tips.theme_ansi":"R\xE9f\xE9rencez les couleurs ANSI 0-255 dans des th\xE8mes personnalis\xE9s","tui.tips.env_var":"Utilisez la syntaxe {highlight}{env:VAR_NAME}{/highlight} pour r\xE9f\xE9rencer des variables d'environnement","tui.tips.file_var":"Utilisez {highlight}{file:path}{/highlight} pour inclure le contenu d'un fichier dans la config","tui.tips.instructions":"Utilisez {highlight}instructions{/highlight} dans la config pour charger des fichiers de r\xE8gles suppl\xE9mentaires","tui.tips.temperature":"R\xE9glez la {highlight}temperature{/highlight} de l'agent de 0.0 (focalis\xE9) \xE0 1.0 (cr\xE9atif)","tui.tips.steps":"Configurez {highlight}steps{/highlight} pour limiter les it\xE9rations agentiques par requ\xEAte","tui.tips.disable_tool":'D\xE9finissez {highlight}"tools": {"bash": false}{/highlight} pour d\xE9sactiver des outils sp\xE9cifiques',"tui.tips.disable_mcp_tools":`D\xE9finissez {highlight}"mcp_*": false{/highlight} pour d\xE9sactiver tous les outils d'un serveur MCP`,"tui.tips.tool_override":"Remplacez les param\xE8tres globaux des outils dans la configuration de chaque agent","tui.tips.doom_loop":"La permission {highlight}doom_loop{/highlight} pr\xE9vient les boucles infinies d'appels d'outils","tui.tips.external_dir":"La permission {highlight}external_directory{/highlight} prot\xE8ge les fichiers en dehors du projet","tui.tips.debug_config":"Ex\xE9cutez {highlight}qitqode debug config{/highlight} pour diagnostiquer la configuration","tui.tips.print_logs":"Utilisez l'option {highlight}--print-logs{/highlight} pour afficher des journaux d\xE9taill\xE9s sur stderr","tui.tips.timeline":"Appuyez sur {highlight}Ctrl+X G{/highlight} ou {highlight}/timeline{/highlight} pour aller \xE0 un message pr\xE9cis","tui.tips.toggle_code":"Appuyez sur {highlight}Ctrl+X H{/highlight} pour afficher/masquer les blocs de code des messages","tui.tips.status":"Appuyez sur {highlight}Ctrl+X S{/highlight} ou {highlight}/status{/highlight} pour voir l'\xE9tat du syst\xE8me","tui.tips.scroll_accel":"Activez {highlight}scroll_acceleration{/highlight} dans {highlight}tui.json{/highlight} pour un d\xE9filement fluide","tui.tips.agents_md":"Versionnez le fichier {highlight}AGENTS.md{/highlight} de votre projet sur Git pour le partager avec l'\xE9quipe","tui.tips.review":"Utilisez {highlight}/review{/highlight} pour r\xE9viser les modifications non commit, branches ou PR","tui.tips.help":"Ex\xE9cutez {highlight}/help{/highlight} ou {highlight}Ctrl+X H{/highlight} pour ouvrir l'aide","tui.tips.rename":"Utilisez {highlight}/rename{/highlight} pour renommer la session courante","tui.tips.suspend.unix":"Appuyez sur {highlight}Ctrl+Z{/highlight} pour suspendre le terminal et revenir au shell","tui.tips.suspend.win":"Appuyez sur {highlight}Ctrl+Z{/highlight} pour annuler les modifications dans l'invite","tui.command.palette.title":"Commandes","tui.command.palette.suggested":"Sugg\xE9r\xE9es","tui.command.category.session":"Session","tui.command.category.agent":"Agent","tui.command.category.provider":"Fournisseur","tui.command.category.system":"Syst\xE8me","tui.command.category.prompt":"Invite","tui.command.category.internal":"Interne","tui.command.category.external":"Externe","tui.slash.init.description":"configuration guid\xE9e de AGENTS.md","tui.slash.review.description":"revoir les changements [commit|branch|pr], par d\xE9faut non commit\xE9s","tui.slash.dream.description":"consolider manuellement la m\xE9moire du projet \xE0 partir des fichiers memory et de la trajectoire brute","tui.slash.distill.description":"trouver les workflows r\xE9p\xE9t\xE9s dans le travail r\xE9cent et les empaqueter en skills, sous-agents ou commandes","tui.slash.goal.description":"d\xE9finir un objectif avec condition d'arr\xEAt ; s'ex\xE9cute jusqu'\xE0 ce qu'un juge confirme. /goal clear pour annuler","tui.slash.deep-research.description":"rapport de recherche approfondi multi-sources et v\xE9rifi\xE9 (ex\xE9cute le workflow deep-research)","tui.command.language.switch.title":"Changer de langue","tui.command.language.switch.description":"Modifier la langue d'affichage","tui.command.language.dialog.title":"Changer de langue","tui.language.auto":"Auto (syst\xE8me)","tui.language.current":"Actuelle","tui.command.session.list.title":"Changer de session","tui.command.session.new.title":"Nouvelle session","tui.command.workflow.list.title":"Workflows","tui.command.model.list.title":"Changer de mod\xE8le","tui.command.model.cycle_recent.title":"Mod\xE8les r\xE9cents","tui.command.model.cycle_recent_reverse.title":"Mod\xE8les r\xE9cents (inverse)","tui.command.model.cycle_favorite.title":"Favoris","tui.command.model.cycle_favorite_reverse.title":"Favoris (inverse)","tui.command.agent.list.title":"Changer d'agent","tui.command.mcp.list.title":"Activer/d\xE9sactiver MCP","tui.command.never_ask.title_on":"Sans questions : ACTIV\xC9 (auto-d\xE9cider, autorisations exclues) \u2014 cliquer pour d\xE9sactiver","tui.command.never_ask.title_off":"Sans questions : D\xC9SACTIV\xC9 \u2014 cliquer pour activer (auto-d\xE9cider, autorisations exclues)","tui.command.never_ask.toast_on":"Sans questions ACTIV\xC9 \u2014 je ne te demanderai rien ; je choisirai moi-m\xEAme la meilleure option jusqu'\xE0 ce que tu le d\xE9sactives (/never-ask). Les demandes d'autorisation n\xE9cessitent toujours ton approbation.","tui.command.never_ask.toast_off":"Sans questions D\xC9SACTIV\xC9 \u2014 je te redemanderai aux points de d\xE9cision.","tui.command.never_ask.title_on_fullauto":"Sans questions : ACTIV\xC9 (auto-d\xE9cider ; le mode full-auto approuve aussi les autorisations) \u2014 cliquer pour d\xE9sactiver","tui.command.never_ask.title_off_fullauto":"Sans questions : D\xC9SACTIV\xC9 \u2014 cliquer pour activer (auto-d\xE9cider ; le mode full-auto approuve toujours les autorisations)","tui.command.never_ask.toast_on_fullauto":"Sans questions ACTIV\xC9 \u2014 je ne te demanderai rien ; je choisirai moi-m\xEAme la meilleure option jusqu'\xE0 ce que tu le d\xE9sactives (/never-ask). Le mode full-auto est actif : les autorisations d'outils sont \xE9galement approuv\xE9es automatiquement.","tui.command.agent.cycle.title":"Cycle d'agents","tui.command.variant.cycle.title":"Cycle de variantes","tui.command.variant.list.title":"Changer de variante de mod\xE8le","tui.command.agent.cycle.reverse.title":"Cycle d'agents (inverse)","tui.command.provider.login.title":"Connexion","tui.command.provider.logout.title":"D\xE9connexion","tui.command.console.org.switch.title":"Changer d'organisation","tui.command.qitqode.status.title":"Voir l'\xE9tat","tui.command.theme.switch.title":"Changer de th\xE8me","tui.command.theme.switch_mode.to_light":"Passer au mode clair","tui.command.theme.switch_mode.to_dark":"Passer au mode sombre","tui.command.theme.mode.unlock":"D\xE9verrouiller le mode du th\xE8me","tui.command.theme.mode.lock":"Verrouiller le mode du th\xE8me","tui.command.help.show.title":"Aide","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"Accessibilit\xE9 : activez ou d\xE9sactivez les animations et le son depuis la liste de commandes. Variables d'environnement : NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND.","tui.dialog.help.announcements":"Annonces : en mode accessible, choisissez le niveau de d\xE9tail des annonces du lecteur d'\xE9cran (silencieux, normal, d\xE9taill\xE9) depuis la liste de commandes ou avec QITQODE_TUI_ANNOUNCEMENTS. Les erreurs sont toujours annonc\xE9es.","tui.dialog.help.dialog_keys":"Bo\xEEtes de dialogue : toutes fonctionnent uniquement au clavier \u2014 \xC9chap ferme, Tab ou les fl\xE8ches d\xE9placent le focus, Entr\xE9e ou Espace active le contr\xF4le cibl\xE9.","tui.command.app.announcements.cycle":"Annonces : {{level}} (s\xE9lectionner pour changer)","tui.announcements.level.quiet":"silencieux","tui.announcements.level.normal":"normal","tui.announcements.level.verbose":"d\xE9taill\xE9","tui.app.terminal_too_small":"Terminal trop petit ({{width}}x{{height}}). Redimensionnez-le \xE0 au moins 40x8.","tui.dialog.help.command_list":"Appuyez sur {{keybind}} pour voir toutes les actions et commandes disponibles dans n'importe quel contexte.","tui.dialog.help.ok":"OK","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 d\xE9filer \xB7 PgPr\xE9c/PgSuiv page \xB7 esc fermer","tui.dialog.ok":"OK","tui.dialog.confirm.cancel":"Annuler","tui.dialog.confirm.confirm":"Confirmer","tui.dialog.agreement.title":"Conditions et confidentialit\xE9","tui.dialog.agreement.message":"Veuillez les lire et les accepter pour continuer.","tui.dialog.agreement.confirm":"Accepter et continuer","tui.command.docs.terms.title":"Voir les conditions d'utilisation","tui.command.docs.privacy.title":"Voir la politique de confidentialit\xE9","tui.command.consent.revoke.title":"R\xE9voquer l'accord du mod\xE8le gratuit","tui.consent.revoked":"Accord du mod\xE8le gratuit r\xE9voqu\xE9 \u2014 vous devrez l'accepter \xE0 nouveau","tui.dialog.select.placeholder":"Rechercher","tui.dialog.select.no_results":"Aucun r\xE9sultat trouv\xE9","tui.dialog.prompt.placeholder":"Saisir du texte","tui.dialog.prompt.busy":"Traitement...","tui.dialog.prompt.processing":"traitement...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"envoyer","tui.dialog.export.title":"Options d'export","tui.dialog.export.filename":"Nom du fichier :","tui.dialog.export.filename_placeholder":"Saisir le nom du fichier","tui.dialog.export.include_thinking":"Inclure la r\xE9flexion","tui.dialog.export.include_tool_details":"Inclure les d\xE9tails des outils","tui.dialog.export.include_assistant_metadata":"Inclure les m\xE9tadonn\xE9es de l'assistant","tui.dialog.export.open_without_saving":"Ouvrir sans enregistrer","tui.dialog.export.hint.toggle_prefix":"Appuyez sur","tui.dialog.export.hint.toggle_action":"pour basculer","tui.dialog.export.hint.confirm_action":"pour confirmer","tui.dialog.export.hint.options_action":"pour les options","tui.toast.copied_to_clipboard":"Copi\xE9 dans le presse-papiers","tui.toast.instructions_loaded":"Charg\xE9 {{files}}","tui.toast.update_available.title":"Mise \xE0 jour disponible","tui.toast.update_available.confirm":"La nouvelle version v{{version}} est disponible. Voulez-vous mettre \xE0 jour maintenant ?","tui.toast.update_available.updating":"Mise \xE0 jour vers v{{version}}...","tui.toast.update_available.failed":"La mise \xE0 jour a \xE9chou\xE9","tui.toast.update_available.success":"Mis \xE0 jour vers QitQode v{{version}}. Veuillez red\xE9marrer l'application.","tui.toast.updated.title":"Mis \xE0 jour automatiquement","tui.toast.updated.message":"Correctif appliqu\xE9 automatiquement : v{{version}}. Red\xE9marrez pour utiliser la nouvelle version. D\xE9sactivez avec autoupdate: false dans la configuration.","tui.sidebar.instructions":"Instructions","tui.sidebar.cwd":"R\xE9pertoire de travail","tui.toast.unknown_error":"Une erreur inconnue s'est produite","tui.command.docs.open.title":"Ouvrir la documentation","tui.command.app.exit.title":"Quitter l'application","tui.command.app.debug.title":"Basculer le panneau de d\xE9bogage","tui.command.app.console.title":"Basculer la console","tui.command.app.heap_snapshot.title":"Exporter le snapshot du tas","tui.command.terminal.suspend.title":"Suspendre le terminal","tui.command.terminal.title.disable":"D\xE9sactiver le titre du terminal","tui.command.terminal.title.enable":"Activer le titre du terminal","tui.command.app.toggle.animations.disable":"D\xE9sactiver les animations","tui.command.app.toggle.animations.enable":"Activer les animations","tui.command.app.toggle.diffwrap.disable":"D\xE9sactiver le retour \xE0 la ligne des diffs","tui.command.app.toggle.diffwrap.enable":"Activer le retour \xE0 la ligne des diffs","tui.command.app.toggle.sound.disable":"D\xE9sactiver le son","tui.command.app.toggle.sound.enable":"Activer le son","tui.command.logout.toast":"D\xE9connect\xE9","tui.command.session.share.title":"Partager la session","tui.command.session.share.copy_link":"Copier le lien de partage","tui.command.session.rename.title":"Renommer la session","tui.command.session.timeline.title":"Aller \xE0 un message","tui.command.session.fork.title":"Dupliquer la session","tui.command.session.compact.title":"Compacter la session","tui.command.session.unshare.title":"Annuler le partage","tui.command.session.undo.title":"Annuler le message pr\xE9c\xE9dent","tui.command.session.redo.title":"R\xE9tablir","tui.command.session.sidebar.show":"Afficher la barre lat\xE9rale","tui.command.session.sidebar.hide":"Masquer la barre lat\xE9rale","tui.command.session.conceal.disable":"D\xE9sactiver le masquage du code","tui.command.session.conceal.enable":"Activer le masquage du code","tui.command.session.timestamps.show":"Afficher les horodatages","tui.command.session.timestamps.hide":"Masquer les horodatages","tui.command.session.thinking.expand":"D\xE9velopper la r\xE9flexion","tui.command.session.thinking.collapse":"R\xE9duire la r\xE9flexion","tui.command.session.tool_details.show":"Afficher les d\xE9tails des outils","tui.command.session.tool_details.hide":"Masquer les d\xE9tails des outils","tui.command.session.scrollbar.toggle":"Basculer la barre de d\xE9filement","tui.command.session.generic_tool_output.show":"Afficher la sortie d'outil g\xE9n\xE9rique","tui.command.session.generic_tool_output.hide":"Masquer la sortie d'outil g\xE9n\xE9rique","tui.command.session.page_up.title":"Page pr\xE9c\xE9dente","tui.command.session.page_down.title":"Page suivante","tui.command.session.line_up.title":"Ligne au-dessus","tui.command.session.line_down.title":"Ligne en dessous","tui.command.session.half_page_up.title":"Demi-page vers le haut","tui.command.session.half_page_down.title":"Demi-page vers le bas","tui.command.session.first.title":"Premier message","tui.command.session.last.title":"Dernier message","tui.command.session.last_user.title":"Aller au dernier message utilisateur","tui.command.session.message_next.title":"Message suivant","tui.command.session.message_previous.title":"Message pr\xE9c\xE9dent","tui.command.messages.copy.title":"Copier le dernier message de l'assistant","tui.command.session.copy.title":"Copier la transcription","tui.command.session.export.title":"Exporter la transcription","tui.command.session.child_first.title":"Aller \xE0 la session enfant","tui.command.session.parent.title":"Aller \xE0 la session parente","tui.command.session.child_next.title":"Session enfant suivante","tui.command.session.child_previous.title":"Session enfant pr\xE9c\xE9dente","tui.command.prompt.clear.title":"Vider l'invite","tui.command.prompt.submit.title":"Envoyer l'invite","tui.command.prompt.paste.title":"Coller","tui.command.session.interrupt.title":"Interrompre la session","tui.command.prompt.editor.title":"Ouvrir l'\xE9diteur","tui.command.prompt.skills.title":"Comp\xE9tences","tui.command.voice.toggle.title":"Activer/d\xE9sactiver la saisie vocale","tui.command.voice.toggle.title_on":"Saisie vocale : activ\xE9e \u2014 cliquer pour d\xE9sactiver","tui.command.voice.toggle.title_off":"Saisie vocale : d\xE9sactiv\xE9e \u2014 cliquer pour activer","tui.voice.enabled":"Saisie vocale activ\xE9e (chinois/anglais) \u2014 cliquez sur [Voice] pour enregistrer","tui.voice.disabled":"Saisie vocale d\xE9sactiv\xE9e","tui.voice.send.enabled":'Envoi vocal activ\xE9 \u2014 dites\u300C\u53D1\u9001\u300Dou "send it" pour envoyer',"tui.voice.send.disabled":"Envoi vocal d\xE9sactiv\xE9","tui.command.voice.send.title":"Basculer l'envoi vocal","tui.command.voice.send.title_on":"Envoi vocal : activ\xE9 \u2014 cliquer pour d\xE9sactiver","tui.command.voice.send.title_off":"Envoi vocal : d\xE9sactiv\xE9 \u2014 cliquer pour activer","tui.voice.control.enabled":"Contr\xF4le vocal activ\xE9 \u2014 utilise le mod\xE8le multimodal pour l'\xE9dition intelligente (plus lent)","tui.voice.control.disabled":"Contr\xF4le vocal d\xE9sactiv\xE9 \u2014 utilise la transcription ASR rapide","tui.command.voice.control.title":"Basculer le contr\xF4le vocal (multimodal)","tui.command.voice.control.title_on":"Contr\xF4le vocal : activ\xE9 (multimodal) \u2014 cliquer pour d\xE9sactiver","tui.command.voice.control.title_off":"Contr\xF4le vocal : d\xE9sactiv\xE9 (ASR rapide) \u2014 cliquer pour activer","tui.voice.error.no_auth":"Utilisez /connect pour vous connecter \xE0 QitQode, ou configurez voice.asr_model pour un autre fournisseur","tui.voice.error.no_auth_provider":`Le fournisseur vocal "{{provider}}" n'est pas authentifi\xE9, v\xE9rifiez son apiKey`,"tui.voice.error.provider_not_found":`Fournisseur "{{provider}}" indisponible \u2014 /connect pour s'authentifier, ou d\xE9clarez models dans la config pour les endpoints personnalis\xE9s`,"tui.voice.error.no_url":`Le fournisseur "{{provider}}" n'a pas de baseURL configur\xE9 \u2014 d\xE9finissez options.baseURL dans la configuration`,"tui.voice.error.no_device":"Aucun microphone/appareil audio trouv\xE9 \u2014 v\xE9rifiez les param\xE8tres audio du syst\xE8me","tui.voice.error.recorder_failed":"L'enregistrement a \xE9chou\xE9","tui.voice.error.no_recorder":"Aucun outil d'enregistrement trouv\xE9, installez sox","tui.voice.error.too_short":"Enregistrement trop court","tui.voice.error.network":"La transcription a \xE9chou\xE9, v\xE9rifiez votre r\xE9seau","tui.command.prompt.stash.title":"Mettre l'invite de c\xF4t\xE9","tui.command.prompt.stash.pop.title":"R\xE9cup\xE9rer l'invite","tui.command.prompt.stash.list.title":"Liste des invites mises de c\xF4t\xE9","tui.command.tips.toggle.show":"Afficher les astuces","tui.command.tips.toggle.hide":"Masquer les astuces","tui.command.plugins.list.title":"Plugins","tui.command.plugins.install.title":"Installer un plugin","cli.providers.select":"S\xE9lectionner un fournisseur","cli.providers.other":"Autre fournisseur","tui.question.plan_enter.question":"Voulez-vous basculer en mode plan pour une planification structur\xE9e ?","tui.question.plan_enter.header":"Entrer dans le plan","tui.question.plan_enter.option.0.label":"Oui","tui.question.plan_enter.option.0.description":"Basculer vers l'agent plan pour une planification en lecture seule","tui.question.plan_enter.option.1.label":"Non","tui.question.plan_enter.option.1.description":"Rester dans le mode actuel","tui.question.plan_exit.question":"Le plan {{plan}} est termin\xE9. Voulez-vous basculer vers l'agent build pour commencer l'impl\xE9mentation ?","tui.question.plan_exit.header":"Quitter le plan","tui.question.plan_exit.option.0.label":"Oui","tui.question.plan_exit.option.0.description":"Basculer vers l'agent build et commencer l'impl\xE9mentation","tui.question.plan_exit.option.1.label":"Non","tui.question.plan_exit.option.1.description":"Rester avec l'agent plan pour continuer \xE0 affiner","tui.session.badge.auto":"Auto","trust.title":"Acc\xE8s \xE0 l'espace de travail :","trust.safety_check":"V\xE9rification rapide : est-ce un projet que vous avez cr\xE9\xE9 ou auquel vous faites confiance ? (Votre propre code, un projet open source reconnu ou un travail de votre \xE9quipe). Sinon, prenez un moment pour examiner le contenu de ce dossier.","trust.capabilities":"QitQode pourra lire, modifier et ex\xE9cuter des fichiers ici.","trust.plugin_warn":"Si des plugins malveillants existent dans ce r\xE9pertoire, ils peuvent ex\xE9cuter du code arbitraire, lire, modifier ou exfiltrer vos fichiers.","trust.option.yes":"Oui, je fais confiance \xE0 ce dossier","trust.option.no":"Non, quitter","trust.dangerous.title_home":"ATTENTION : Vous \xEAtes sur le point d'ouvrir votre R\xC9PERTOIRE PERSONNEL.","trust.dangerous.title_root":"ATTENTION : Vous \xEAtes sur le point d'ouvrir la RACINE DU SYST\xC8ME DE FICHIERS.","trust.dangerous.body_home":"Le mod\xE8le aura acc\xE8s \xE0 TOUS vos fichiers personnels \u2014 cl\xE9s SSH, identifiants, profils de navigateur et tout le contenu de votre dossier personnel.","trust.dangerous.body_root":"Le mod\xE8le aura acc\xE8s \xE0 l'ENSEMBLE du syst\xE8me de fichiers \u2014 fichiers syst\xE8me, donn\xE9es de tous les utilisateurs, identifiants et tout sur cette machine.","trust.dangerous.advice_home":"Sauf raison tr\xE8s sp\xE9cifique, NE faites PAS confiance \xE0 l'int\xE9gralit\xE9 de votre r\xE9pertoire personnel.","trust.dangerous.advice_root":"Sauf raison tr\xE8s sp\xE9cifique, NE faites PAS confiance \xE0 la racine du syst\xE8me de fichiers.","trust.dangerous.option.yes":"Je comprends les risques, faire confiance pour cette session","trust.dangerous.option.no":"Quitter (recommand\xE9)"};
|
|
3
|
-
export{f as
|
|
3
|
+
export{f as wd};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Zf as E}from"./chunk-cjxcnhmq.js";import"./chunk-htkwc2se.js";import"./chunk-mqtqcc10.js";import"./chunk-b4ysd5b4.js";import"./chunk-ebabnv33.js";import"./chunk-nfg7nt13.js";import"./chunk-yj6rbe9p.js";import"./chunk-f77nxt23.js";import"./chunk-w57j3pgz.js";import"./chunk-ebkztnpf.js";import"./chunk-pxx2hz0g.js";import"./chunk-rexdr63q.js";import"./chunk-kqhh2pm9.js";import"./chunk-7fawtcnn.js";import"./chunk-mdzzcrf9.js";import"./chunk-wev34grp.js";import"./chunk-sy3n0qhc.js";import"./chunk-364ccew0.js";import"./chunk-vdpd4akk.js";import"./chunk-yjp0btmq.js";import"./chunk-1bx2sjn6.js";import"./chunk-g5prcvq2.js";import"./chunk-t5tfppwv.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-e03tgfpb.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-brh35yt5.js";import"./chunk-vcrakhgy.js";import"./chunk-xdjwapwy.js";import"./chunk-7dep7g7c.js";import"./chunk-tabcpx7t.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-3sz6gw10.js";import"./chunk-xqwvx3qq.js";import"./chunk-qp9y0g73.js";import"./chunk-xyjehgzm.js";import"./chunk-j21dnncc.js";import"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-pqnbdygz.js";import"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import{kQ as z}from"./chunk-4sazy0nq.js";var J={command:"generate",handler:async()=>{let A=await E.openapi();for(let q of Object.values(A.paths))for(let y of["get","post","put","delete","patch"]){let k=q[y];if(!k?.operationId)continue;k["x-codeSamples"]=[{lang:"js",source:['import { createQitQodeClient } from "@qitqode/sdk"',"","const client = createQitQodeClient()",`await client.${k.operationId}({`," ...","})"].join(`
|
|
3
|
+
`)}]}let F=JSON.stringify(A,null,2),B=await import("./chunk-jgz1a29w.js"),C=await import("./chunk-kt0ej3nq.js"),D=await import("./chunk-w5940jxm.js"),G=await(B.format??B.default?.format)(F,{parser:"json",plugins:[C.default??C,D.default??D],printWidth:120});await new Promise((q,y)=>{process.stdout.write(G,(k)=>{if(k)y(k);else q()})})}};export{J as GenerateCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ce as mt}from"./chunk-41v0x1jk.js";import{uf as fr,vf as pt,yf as ft}from"./chunk-a3a1trap.js";import{$P as xe}from"./chunk-3k2b05fv.js";var br=xe((Ti)=>{var re=ft(),_e=mt(),oi=pt(),be=fr(),Oe=0,Ue=1,me=2,ce=3,Pe=4,ke=5,mr=6,ct=7,gr=20,ut=21,yr=22,ai=23,gt=24,ge=25,ye=26,he=27,yt=31;function Ae(r){return typeof Buffer<"u"?Buffer.alloc(r):new Uint8Array(r)}var xt=Symbol("@smithy/core/cbor::tagSymbol");function wt(r){return r[xt]=!0,r}var ci=typeof TextDecoder<"u",hi=typeof Buffer<"u",O=Ae(0),oe=new DataView(O.buffer,O.byteOffset,O.byteLength),ur=ci?new TextDecoder:null,D=0;function li(r){O=r,oe=new DataView(O.buffer,O.byteOffset,O.byteLength)}function ae(r,t){if(r>=t)throw Error("unexpected end of (decode) payload.");let i=(O[r]&224)>>5,n=O[r]&31;switch(i){case Oe:case Ue:case mr:let l,c;if(n<24)l=n,c=1;else switch(n){case gt:case ge:case ye:case he:let d=wr[n],f=d+1;if(c=f,t-r<f)throw Error(`countLength ${d} greater than remaining buf len.`);let m=r+1;if(d===1)l=O[m];else if(d===2)l=oe.getUint16(m);else if(d===4)l=oe.getUint32(m);else l=oe.getBigUint64(m);break;default:throw Error(`unexpected minor value ${n}.`)}if(i===Oe)return D=c,ht(l);else if(i===Ue){let d;if(typeof l==="bigint")d=BigInt(-1)-l;else d=-1-l;return D=c,ht(d)}else if(n===2||n===3){let d=$e(r+c,t),f=BigInt(0),m=r+c+D;for(let w=m;w<m+d;++w)f=f<<BigInt(8)|BigInt(O[w]);return D=c+D+d,n===3?-f-BigInt(1):f}else if(n===4){let d=ae(r+c,t),[f,m]=d,w=m<0?-1:1,E="0".repeat(Math.abs(f)+1)+String(BigInt(w)*BigInt(m)),S,_=m<0?"-":"";if(S=f===0?E:E.slice(0,E.length+f)+"."+E.slice(f),S=S.replace(/^0+/g,""),S==="")S="0";if(S[0]===".")S="0"+S;return S=_+S,D=c+D,re.nv(S)}else{let d=ae(r+c,t);return D=c+D,wt({tag:ht(l),value:d})}case ce:case ke:case Pe:case me:if(n===yt)switch(i){case ce:return fi(r,t);case ke:return wi(r,t);case Pe:return yi(r,t);case me:return mi(r,t)}else switch(i){case ce:return pi(r,t);case ke:return xi(r,t);case Pe:return gi(r,t);case me:return Et(r,t)}default:return Ei(r,t)}}function xr(r,t,i){if(hi&&r.constructor?.name==="Buffer")return r.toString("utf-8",t,i);if(ur)return ur.decode(r.subarray(t,i));return re.toUtf8(r.subarray(t,i))}function ui(r){let t=Number(r);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${r}) to ${t} with loss of precision.`));return t}var wr={[gt]:1,[ge]:2,[ye]:4,[he]:8};function di(r,t){let i=r>>7,n=(r&124)>>2,l=(r&3)<<8|t,c=i===0?1:-1,d,f;if(n===0)if(l===0)return 0;else d=Math.pow(2,-14),f=0;else if(n===31)if(l===0)return c*(1/0);else return NaN;else d=Math.pow(2,n-15),f=1;return f+=l/1024,c*(d*f)}function $e(r,t){let i=O[r]&31;if(i<24)return D=1,i;if(i===gt||i===ge||i===ye||i===he){let n=wr[i];if(D=n+1,t-r<D)throw Error(`countLength ${n} greater than remaining buf len.`);let l=r+1;if(n===1)return O[l];else if(n===2)return oe.getUint16(l);else if(n===4)return oe.getUint32(l);return ui(oe.getBigUint64(l))}throw Error(`unexpected minor value ${i}.`)}function pi(r,t){let i=$e(r,t),n=D;if(r+=n,t-r<i)throw Error(`string len ${i} greater than remaining buf len.`);let l=xr(O,r,r+i);return D=n+i,l}function fi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255){let m=Ae(i.length);return m.set(i,0),D=r-n+2,xr(m,0,m.length)}let l=(O[r]&224)>>5,c=O[r]&31;if(l!==ce)throw Error(`unexpected major type ${l} in indefinite string.`);if(c===yt)throw Error("nested indefinite string.");let d=Et(r,t);r+=D;for(let m=0;m<d.length;++m)i.push(d[m])}throw Error("expected break marker.")}function Et(r,t){let i=$e(r,t),n=D;if(r+=n,t-r<i)throw Error(`unstructured byte string len ${i} greater than remaining buf len.`);let l=O.subarray(r,r+i);return D=n+i,l}function mi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255){let m=Ae(i.length);return m.set(i,0),D=r-n+2,m}let l=(O[r]&224)>>5,c=O[r]&31;if(l!==me)throw Error(`unexpected major type ${l} in indefinite string.`);if(c===yt)throw Error("nested indefinite string.");let d=Et(r,t);r+=D;for(let m=0;m<d.length;++m)i.push(d[m])}throw Error("expected break marker.")}function gi(r,t){let i=$e(r,t),n=D;r+=n;let l=r,c=Array(i);for(let d=0;d<i;++d){let f=ae(r,t),m=D;c[d]=f,r+=m}return D=n+(r-l),c}function yi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255)return D=r-n+2,i;let l=ae(r,t);r+=D,i.push(l)}throw Error("expected break marker.")}function xi(r,t){let i=$e(r,t),n=D;r+=n;let l=r,c={};for(let d=0;d<i;++d){if(r>=t)throw Error("unexpected end of map payload.");let f=(O[r]&224)>>5;if(f!==ce)throw Error(`unexpected major type ${f} for map key at index ${r}.`);let m=ae(r,t);r+=D;let w=ae(r,t);r+=D,c[m]=w}return D=n+(r-l),c}function wi(r,t){r+=1;let i=r,n={};for(;r<t;){if(r>=t)throw Error("unexpected end of map payload.");if(O[r]===255)return D=r-i+2,n;let l=(O[r]&224)>>5;if(l!==ce)throw Error(`unexpected major type ${l} for map key.`);let c=ae(r,t);r+=D;let d=ae(r,t);r+=D,n[c]=d}throw Error("expected break marker.")}function Ei(r,t){let i=O[r]&31;switch(i){case ut:case gr:return D=1,i===ut;case yr:return D=1,null;case ai:return D=1,null;case ge:if(t-r<3)throw Error("incomplete float16 at end of buf.");return D=3,di(O[r+1],O[r+2]);case ye:if(t-r<5)throw Error("incomplete float32 at end of buf.");return D=5,oe.getFloat32(r+1);case he:if(t-r<9)throw Error("incomplete float64 at end of buf.");return D=9,oe.getFloat64(r+1);default:throw Error(`unexpected minor value ${i}.`)}}function ht(r){if(typeof r==="number")return r;let t=Number(r);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER)return t;return r}var dr=typeof Buffer<"u",Ni=2048,$=Ae(Ni),ne=new DataView($.buffer,$.byteOffset,$.byteLength),C=0;function lt(r){if($.byteLength-C<r)if(C<16000000)dt(Math.max($.byteLength*4,$.byteLength+r));else dt($.byteLength+r+16000000)}function pr(){let r=Ae(C);return r.set($.subarray(0,C),0),C=0,r}function dt(r){let t=$;if($=Ae(r),t)if(t.copy)t.copy($,0,0,t.byteLength);else $.set(t,0);ne=new DataView($.buffer,$.byteOffset,$.byteLength)}function ie(r,t){if(t<24)$[C++]=r<<5|t;else if(t<256)$[C++]=r<<5|24,$[C++]=t;else if(t<65536)$[C++]=r<<5|ge,ne.setUint16(C,t),C+=2;else if(t<4294967296)$[C++]=r<<5|ye,ne.setUint32(C,t),C+=4;else $[C++]=r<<5|he,ne.setBigUint64(C,typeof t==="bigint"?t:BigInt(t)),C+=8}function Si(r){let t=[r];while(t.length){let i=t.pop();if(lt(typeof i==="string"?i.length*4:64),typeof i==="string"){if(dr)ie(ce,Buffer.byteLength(i)),C+=$.write(i,C);else{let n=re.fromUtf8(i);ie(ce,n.byteLength),$.set(n,C),C+=n.byteLength}continue}else if(typeof i==="number"){if(Number.isInteger(i)){let n=i>=0,l=n?Oe:Ue,c=n?i:-i-1;if(c<24)$[C++]=l<<5|c;else if(c<256)$[C++]=l<<5|24,$[C++]=c;else if(c<65536)$[C++]=l<<5|ge,$[C++]=c>>8,$[C++]=c;else if(c<4294967296)$[C++]=l<<5|ye,ne.setUint32(C,c),C+=4;else $[C++]=l<<5|he,ne.setBigUint64(C,BigInt(c)),C+=8;continue}$[C++]=ct<<5|he,ne.setFloat64(C,i),C+=8;continue}else if(typeof i==="bigint"){let n=i>=0,l=n?Oe:Ue,c=n?i:-i-BigInt(1),d=Number(c);if(d<24)$[C++]=l<<5|d;else if(d<256)$[C++]=l<<5|24,$[C++]=d;else if(d<65536)$[C++]=l<<5|ge,$[C++]=d>>8,$[C++]=d&255;else if(d<4294967296)$[C++]=l<<5|ye,ne.setUint32(C,d),C+=4;else if(c<BigInt("18446744073709551616"))$[C++]=l<<5|he,ne.setBigUint64(C,c),C+=8;else{let f=c.toString(2),m=new Uint8Array(Math.ceil(f.length/8)),w=c,E=0;while(m.byteLength-++E>=0)m[m.byteLength-E]=Number(w&BigInt(255)),w>>=BigInt(8);if(lt(m.byteLength*2),$[C++]=n?194:195,dr)ie(me,Buffer.byteLength(m));else ie(me,m.byteLength);$.set(m,C),C+=m.byteLength}continue}else if(i===null){$[C++]=ct<<5|yr;continue}else if(typeof i==="boolean"){$[C++]=ct<<5|(i?ut:gr);continue}else if(typeof i>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(i)){for(let n=i.length-1;n>=0;--n)t.push(i[n]);ie(Pe,i.length);continue}else if(typeof i.byteLength==="number"){lt(i.length*2),ie(me,i.length),$.set(i,C),C+=i.byteLength;continue}else if(typeof i==="object"){if(i instanceof re.NumericValue){let l=i.string.indexOf("."),c=l===-1?0:l-i.string.length+1,d=BigInt(i.string.replace(".",""));$[C++]=196,t.push(d),t.push(c),ie(Pe,2);continue}if(i[xt])if("tag"in i&&"value"in i){t.push(i.value),ie(mr,i.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(i));let n=Object.keys(i);for(let l=n.length-1;l>=0;--l){let c=n[l];t.push(i[c]),t.push(c)}ie(ke,n.length);continue}throw Error(`data type ${i?.constructor?.name??typeof i} not compatible for encoding.`)}}var Ve={deserialize(r){return li(r),ae(0,r.length)},serialize(r){try{return Si(r),pr()}catch(t){throw pr(),t}},resizeEncodingBuffer(r){dt(r)}},Er=(r,t)=>{return _e.collectBody(r,t).then(async(i)=>{if(i.length)try{return Ve.deserialize(i)}catch(n){throw Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(i)}),n}return{}})},ze=(r)=>{return wt({tag:1,value:r.getTime()/1000})},bi=async(r,t)=>{let i=await Er(r,t);return i.message=i.message??i.Message,i},Nr=(r,t)=>{let i=(l)=>{let c=l;if(typeof c==="number")c=c.toString();if(c.indexOf(",")>=0)c=c.split(",")[0];if(c.indexOf(":")>=0)c=c.split(":")[0];if(c.indexOf("#")>=0)c=c.split("#")[1];return c};if(t.__type!==void 0)return i(t.__type);let n;for(let l in t)if(l.toLowerCase()==="code"){n=l;break}if(n&&t[n]!==void 0)return i(t[n])},_i=(r)=>{if(String(r.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+r.statusCode)},Ai=async(r,t,i,n,l)=>{let c=await r.endpoint(),{hostname:d,protocol:f="https",port:m,path:w}=c,E={protocol:f,hostname:d,port:m,method:"POST",path:w.endsWith("/")?w.slice(0,-1)+i:w+i,headers:{...t}};if(n!==void 0)E.hostname=n;if(c.headers)for(let S in c.headers)E.headers[S]=c.headers[S];if(l!==void 0){E.body=l;try{E.headers["content-length"]=String(re.calculateBodyLength(l))}catch(S){}}return new _e.HttpRequest(E)};class Nt extends _e.SerdeContext{createSerializer(){let r=new St;return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new bt;return r.setSerdeContext(this.serdeContext),r}}class St extends _e.SerdeContext{value;write(r,t){this.value=this.serialize(r,t)}serialize(r,t){let i=be.NormalizedSchema.of(r);if(t==null){if(i.isIdempotencyToken())return re.generateIdempotencyToken();return t}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??re.fromBase64)(t);return t}if(i.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint")return ze(new Date(Number(t)/1000|0));return ze(t)}if(typeof t==="function"||typeof t==="object"){let n=t;if(i.isListSchema()&&Array.isArray(n)){let c=!!i.getMergedTraits().sparse,d=[],f=0;for(let m of n){let w=this.serialize(i.getValueSchema(),m);if(w!=null||c)d[f++]=w}return d}if(n instanceof Date)return ze(n);let l={};if(i.isMapSchema()){let c=!!i.getMergedTraits().sparse;for(let d in n){let f=this.serialize(i.getValueSchema(),n[d]);if(f!=null||c)l[d]=f}}else if(i.isStructSchema()){for(let[d,f]of i.structIterator()){let m=this.serialize(f,n[d]);if(m!=null)l[d]=m}if(i.isUnionSchema()&&Array.isArray(n.$unknown)){let[d,f]=n.$unknown;l[d]=f}else if(typeof n.__type==="string"){for(let d in n)if(!(d in l))l[d]=this.serialize(15,n[d])}}else if(i.isDocumentSchema())for(let c in n)l[c]=this.serialize(i.getValueSchema(),n[c]);else if(i.isBigDecimalSchema())return n;return l}return t}flush(){let r=Ve.serialize(this.value);return this.value=void 0,r}}class bt extends _e.SerdeContext{read(r,t){let i=Ve.deserialize(t);return this.readValue(r,i)}readValue(r,t){let i=be.NormalizedSchema.of(r);if(i.isTimestampSchema()){if(typeof t==="number")return re._parseEpochTimestamp(t);if(typeof t==="object"){if(t.tag===1&&"value"in t)return re._parseEpochTimestamp(t.value)}}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??re.fromBase64)(t);return t}if(typeof t>"u"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol")return t;else if(typeof t==="object"){if(t===null)return null;if("byteLength"in t)return t;if(t instanceof Date)return t;if(i.isDocumentSchema())return t;if(i.isListSchema()){let l=[],c=i.getValueSchema();for(let d of t){let f=this.readValue(c,d);l.push(f)}return l}let n={};if(i.isMapSchema()){let l=i.getValueSchema();for(let c in t){let d=this.readValue(l,t[c]);n[c]=d}}else if(i.isStructSchema()){let l=i.isUnionSchema(),c;if(l){c=new Set;for(let d in t)if(d!=="__type")c.add(d)}for(let[d,f]of i.structIterator()){if(l)c.delete(d);if(t[d]!=null)n[d]=this.readValue(f,t[d])}if(l&&c?.size===1){let d=!0;for(let f in n){d=!1;break}if(d){let f=c.values().next().value;n.$unknown=[f,t[f]]}}else if(typeof t.__type==="string"){for(let d in t)if(!(d in n))n[d]=t[d]}}else if(t instanceof re.NumericValue)return t;return n}else return t}}class Sr extends _e.RpcProtocol{codec=new Nt;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:r,errorTypeRegistries:t}){super({defaultNamespace:r,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(r,t,i){let n=await super.serializeRequest(r,t,i);if(Object.assign(n.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),be.deref(r.input)==="unit")delete n.body,delete n.headers["content-type"];else{if(!n.body)this.serializer.write(15,{}),n.body=this.serializer.flush();try{n.headers["content-length"]=String(n.body.byteLength)}catch(f){}}let{service:l,operation:c}=oi.getSmithyContext(i),d=`/service/${l}/operation/${c}`;if(n.path.endsWith("/"))n.path+=d.slice(1);else n.path+=d;return n}async deserializeResponse(r,t,i){return super.deserializeResponse(r,t,i)}async handleError(r,t,i,n,l){let c=Nr(i,n)??"Unknown",d={$metadata:l,$fault:i.statusCode<=500?"client":"server"},f=this.options.defaultNamespace;if(c.includes("#"))[f]=c.split("#");let m=this.compositeErrorRegistry,w=be.TypeRegistry.for(f);m.copyFrom(w);let E;try{E=m.getSchema(c)}catch(V){if(n.Message)n.message=n.Message;let B=be.TypeRegistry.for("smithy.ts.sdk.synthetic."+f);m.copyFrom(B);let Z=m.getBaseException();if(Z){let L=m.getErrorCtor(Z);throw Object.assign(new L({name:c}),d,n)}throw Object.assign(Error(c),d,n)}let S=be.NormalizedSchema.of(E),_=m.getErrorCtor(E),A=n.message??n.Message??"Unknown",I=new _({}),P={};for(let[V,B]of S.structIterator())P[V]=this.deserializer.readValue(B,n[V]);throw Object.assign(I,d,{$fault:S.getMergedTraits().error,message:A},P)}getDefaultContentType(){return"application/cbor"}}Ti.CborCodec=Nt;Ti.CborShapeDeserializer=bt;Ti.CborShapeSerializer=St;Ti.SmithyRpcV2CborProtocol=Sr;Ti.buildHttpRpcRequest=Ai;Ti.cbor=Ve;Ti.checkCborResponse=_i;Ti.dateToTag=ze;Ti.loadSmithyRpcV2CborErrorCode=Nr;Ti.parseCborBody=Er;Ti.parseCborErrorBody=bi;Ti.tag=wt;Ti.tagSymbol=xt});var Ar=xe((vo,_r)=>{(()=>{var r={d:(e,s)=>{for(var o in s)r.o(s,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},o:(e,s)=>Object.prototype.hasOwnProperty.call(e,s),r:(e)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};r.r(t),r.d(t,{XMLBuilder:()=>ii,XMLParser:()=>ir,XMLValidator:()=>ni});let 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]*$");function l(e,s){let o=[],a=s.exec(e);for(;a;){let h=[];h.startIndex=s.lastIndex-a[0].length;let u=a.length;for(let x=0;x<u;x++)h.push(a[x]);o.push(h),a=s.exec(e)}return o}let c=function(e){return n.exec(e)!=null},d=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],f=["__proto__","constructor","prototype"],m={allowBooleanAttributes:!1,unpairedTags:[]};function w(e,s){s=Object.assign({},m,s);let o=[],a=!1,h=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let u=0;u<e.length;u++)if(e[u]==="<"&&e[u+1]==="?"){if(u+=2,u=S(e,u),u.err)return u}else{if(e[u]!=="<"){if(E(e[u]))continue;return L("InvalidChar","char '"+e[u]+"' is not expected.",F(e,u))}{let x=u;if(u++,e[u]==="!"){u=_(e,u);continue}{let p=!1;e[u]==="/"&&(p=!0,u++);let y="";for(;u<e.length&&e[u]!==">"&&e[u]!==" "&&e[u]!=="\t"&&e[u]!==`
|
|
2
|
+
import{Ae as mt}from"./chunk-8yr682pv.js";import{sf as fr,tf as pt,wf as ft}from"./chunk-v3x5nrc4.js";import{hQ as xe}from"./chunk-4sazy0nq.js";var br=xe((Ti)=>{var re=ft(),_e=mt(),oi=pt(),be=fr(),Oe=0,Ue=1,me=2,ce=3,Pe=4,ke=5,mr=6,ct=7,gr=20,ut=21,yr=22,ai=23,gt=24,ge=25,ye=26,he=27,yt=31;function Ae(r){return typeof Buffer<"u"?Buffer.alloc(r):new Uint8Array(r)}var xt=Symbol("@smithy/core/cbor::tagSymbol");function wt(r){return r[xt]=!0,r}var ci=typeof TextDecoder<"u",hi=typeof Buffer<"u",O=Ae(0),oe=new DataView(O.buffer,O.byteOffset,O.byteLength),ur=ci?new TextDecoder:null,D=0;function li(r){O=r,oe=new DataView(O.buffer,O.byteOffset,O.byteLength)}function ae(r,t){if(r>=t)throw Error("unexpected end of (decode) payload.");let i=(O[r]&224)>>5,n=O[r]&31;switch(i){case Oe:case Ue:case mr:let l,c;if(n<24)l=n,c=1;else switch(n){case gt:case ge:case ye:case he:let d=wr[n],f=d+1;if(c=f,t-r<f)throw Error(`countLength ${d} greater than remaining buf len.`);let m=r+1;if(d===1)l=O[m];else if(d===2)l=oe.getUint16(m);else if(d===4)l=oe.getUint32(m);else l=oe.getBigUint64(m);break;default:throw Error(`unexpected minor value ${n}.`)}if(i===Oe)return D=c,ht(l);else if(i===Ue){let d;if(typeof l==="bigint")d=BigInt(-1)-l;else d=-1-l;return D=c,ht(d)}else if(n===2||n===3){let d=$e(r+c,t),f=BigInt(0),m=r+c+D;for(let w=m;w<m+d;++w)f=f<<BigInt(8)|BigInt(O[w]);return D=c+D+d,n===3?-f-BigInt(1):f}else if(n===4){let d=ae(r+c,t),[f,m]=d,w=m<0?-1:1,E="0".repeat(Math.abs(f)+1)+String(BigInt(w)*BigInt(m)),S,_=m<0?"-":"";if(S=f===0?E:E.slice(0,E.length+f)+"."+E.slice(f),S=S.replace(/^0+/g,""),S==="")S="0";if(S[0]===".")S="0"+S;return S=_+S,D=c+D,re.nv(S)}else{let d=ae(r+c,t);return D=c+D,wt({tag:ht(l),value:d})}case ce:case ke:case Pe:case me:if(n===yt)switch(i){case ce:return fi(r,t);case ke:return wi(r,t);case Pe:return yi(r,t);case me:return mi(r,t)}else switch(i){case ce:return pi(r,t);case ke:return xi(r,t);case Pe:return gi(r,t);case me:return Et(r,t)}default:return Ei(r,t)}}function xr(r,t,i){if(hi&&r.constructor?.name==="Buffer")return r.toString("utf-8",t,i);if(ur)return ur.decode(r.subarray(t,i));return re.toUtf8(r.subarray(t,i))}function ui(r){let t=Number(r);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${r}) to ${t} with loss of precision.`));return t}var wr={[gt]:1,[ge]:2,[ye]:4,[he]:8};function di(r,t){let i=r>>7,n=(r&124)>>2,l=(r&3)<<8|t,c=i===0?1:-1,d,f;if(n===0)if(l===0)return 0;else d=Math.pow(2,-14),f=0;else if(n===31)if(l===0)return c*(1/0);else return NaN;else d=Math.pow(2,n-15),f=1;return f+=l/1024,c*(d*f)}function $e(r,t){let i=O[r]&31;if(i<24)return D=1,i;if(i===gt||i===ge||i===ye||i===he){let n=wr[i];if(D=n+1,t-r<D)throw Error(`countLength ${n} greater than remaining buf len.`);let l=r+1;if(n===1)return O[l];else if(n===2)return oe.getUint16(l);else if(n===4)return oe.getUint32(l);return ui(oe.getBigUint64(l))}throw Error(`unexpected minor value ${i}.`)}function pi(r,t){let i=$e(r,t),n=D;if(r+=n,t-r<i)throw Error(`string len ${i} greater than remaining buf len.`);let l=xr(O,r,r+i);return D=n+i,l}function fi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255){let m=Ae(i.length);return m.set(i,0),D=r-n+2,xr(m,0,m.length)}let l=(O[r]&224)>>5,c=O[r]&31;if(l!==ce)throw Error(`unexpected major type ${l} in indefinite string.`);if(c===yt)throw Error("nested indefinite string.");let d=Et(r,t);r+=D;for(let m=0;m<d.length;++m)i.push(d[m])}throw Error("expected break marker.")}function Et(r,t){let i=$e(r,t),n=D;if(r+=n,t-r<i)throw Error(`unstructured byte string len ${i} greater than remaining buf len.`);let l=O.subarray(r,r+i);return D=n+i,l}function mi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255){let m=Ae(i.length);return m.set(i,0),D=r-n+2,m}let l=(O[r]&224)>>5,c=O[r]&31;if(l!==me)throw Error(`unexpected major type ${l} in indefinite string.`);if(c===yt)throw Error("nested indefinite string.");let d=Et(r,t);r+=D;for(let m=0;m<d.length;++m)i.push(d[m])}throw Error("expected break marker.")}function gi(r,t){let i=$e(r,t),n=D;r+=n;let l=r,c=Array(i);for(let d=0;d<i;++d){let f=ae(r,t),m=D;c[d]=f,r+=m}return D=n+(r-l),c}function yi(r,t){r+=1;let i=[];for(let n=r;r<t;){if(O[r]===255)return D=r-n+2,i;let l=ae(r,t);r+=D,i.push(l)}throw Error("expected break marker.")}function xi(r,t){let i=$e(r,t),n=D;r+=n;let l=r,c={};for(let d=0;d<i;++d){if(r>=t)throw Error("unexpected end of map payload.");let f=(O[r]&224)>>5;if(f!==ce)throw Error(`unexpected major type ${f} for map key at index ${r}.`);let m=ae(r,t);r+=D;let w=ae(r,t);r+=D,c[m]=w}return D=n+(r-l),c}function wi(r,t){r+=1;let i=r,n={};for(;r<t;){if(r>=t)throw Error("unexpected end of map payload.");if(O[r]===255)return D=r-i+2,n;let l=(O[r]&224)>>5;if(l!==ce)throw Error(`unexpected major type ${l} for map key.`);let c=ae(r,t);r+=D;let d=ae(r,t);r+=D,n[c]=d}throw Error("expected break marker.")}function Ei(r,t){let i=O[r]&31;switch(i){case ut:case gr:return D=1,i===ut;case yr:return D=1,null;case ai:return D=1,null;case ge:if(t-r<3)throw Error("incomplete float16 at end of buf.");return D=3,di(O[r+1],O[r+2]);case ye:if(t-r<5)throw Error("incomplete float32 at end of buf.");return D=5,oe.getFloat32(r+1);case he:if(t-r<9)throw Error("incomplete float64 at end of buf.");return D=9,oe.getFloat64(r+1);default:throw Error(`unexpected minor value ${i}.`)}}function ht(r){if(typeof r==="number")return r;let t=Number(r);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER)return t;return r}var dr=typeof Buffer<"u",Ni=2048,$=Ae(Ni),ne=new DataView($.buffer,$.byteOffset,$.byteLength),C=0;function lt(r){if($.byteLength-C<r)if(C<16000000)dt(Math.max($.byteLength*4,$.byteLength+r));else dt($.byteLength+r+16000000)}function pr(){let r=Ae(C);return r.set($.subarray(0,C),0),C=0,r}function dt(r){let t=$;if($=Ae(r),t)if(t.copy)t.copy($,0,0,t.byteLength);else $.set(t,0);ne=new DataView($.buffer,$.byteOffset,$.byteLength)}function ie(r,t){if(t<24)$[C++]=r<<5|t;else if(t<256)$[C++]=r<<5|24,$[C++]=t;else if(t<65536)$[C++]=r<<5|ge,ne.setUint16(C,t),C+=2;else if(t<4294967296)$[C++]=r<<5|ye,ne.setUint32(C,t),C+=4;else $[C++]=r<<5|he,ne.setBigUint64(C,typeof t==="bigint"?t:BigInt(t)),C+=8}function Si(r){let t=[r];while(t.length){let i=t.pop();if(lt(typeof i==="string"?i.length*4:64),typeof i==="string"){if(dr)ie(ce,Buffer.byteLength(i)),C+=$.write(i,C);else{let n=re.fromUtf8(i);ie(ce,n.byteLength),$.set(n,C),C+=n.byteLength}continue}else if(typeof i==="number"){if(Number.isInteger(i)){let n=i>=0,l=n?Oe:Ue,c=n?i:-i-1;if(c<24)$[C++]=l<<5|c;else if(c<256)$[C++]=l<<5|24,$[C++]=c;else if(c<65536)$[C++]=l<<5|ge,$[C++]=c>>8,$[C++]=c;else if(c<4294967296)$[C++]=l<<5|ye,ne.setUint32(C,c),C+=4;else $[C++]=l<<5|he,ne.setBigUint64(C,BigInt(c)),C+=8;continue}$[C++]=ct<<5|he,ne.setFloat64(C,i),C+=8;continue}else if(typeof i==="bigint"){let n=i>=0,l=n?Oe:Ue,c=n?i:-i-BigInt(1),d=Number(c);if(d<24)$[C++]=l<<5|d;else if(d<256)$[C++]=l<<5|24,$[C++]=d;else if(d<65536)$[C++]=l<<5|ge,$[C++]=d>>8,$[C++]=d&255;else if(d<4294967296)$[C++]=l<<5|ye,ne.setUint32(C,d),C+=4;else if(c<BigInt("18446744073709551616"))$[C++]=l<<5|he,ne.setBigUint64(C,c),C+=8;else{let f=c.toString(2),m=new Uint8Array(Math.ceil(f.length/8)),w=c,E=0;while(m.byteLength-++E>=0)m[m.byteLength-E]=Number(w&BigInt(255)),w>>=BigInt(8);if(lt(m.byteLength*2),$[C++]=n?194:195,dr)ie(me,Buffer.byteLength(m));else ie(me,m.byteLength);$.set(m,C),C+=m.byteLength}continue}else if(i===null){$[C++]=ct<<5|yr;continue}else if(typeof i==="boolean"){$[C++]=ct<<5|(i?ut:gr);continue}else if(typeof i>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(i)){for(let n=i.length-1;n>=0;--n)t.push(i[n]);ie(Pe,i.length);continue}else if(typeof i.byteLength==="number"){lt(i.length*2),ie(me,i.length),$.set(i,C),C+=i.byteLength;continue}else if(typeof i==="object"){if(i instanceof re.NumericValue){let l=i.string.indexOf("."),c=l===-1?0:l-i.string.length+1,d=BigInt(i.string.replace(".",""));$[C++]=196,t.push(d),t.push(c),ie(Pe,2);continue}if(i[xt])if("tag"in i&&"value"in i){t.push(i.value),ie(mr,i.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(i));let n=Object.keys(i);for(let l=n.length-1;l>=0;--l){let c=n[l];t.push(i[c]),t.push(c)}ie(ke,n.length);continue}throw Error(`data type ${i?.constructor?.name??typeof i} not compatible for encoding.`)}}var Ve={deserialize(r){return li(r),ae(0,r.length)},serialize(r){try{return Si(r),pr()}catch(t){throw pr(),t}},resizeEncodingBuffer(r){dt(r)}},Er=(r,t)=>{return _e.collectBody(r,t).then(async(i)=>{if(i.length)try{return Ve.deserialize(i)}catch(n){throw Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(i)}),n}return{}})},ze=(r)=>{return wt({tag:1,value:r.getTime()/1000})},bi=async(r,t)=>{let i=await Er(r,t);return i.message=i.message??i.Message,i},Nr=(r,t)=>{let i=(l)=>{let c=l;if(typeof c==="number")c=c.toString();if(c.indexOf(",")>=0)c=c.split(",")[0];if(c.indexOf(":")>=0)c=c.split(":")[0];if(c.indexOf("#")>=0)c=c.split("#")[1];return c};if(t.__type!==void 0)return i(t.__type);let n;for(let l in t)if(l.toLowerCase()==="code"){n=l;break}if(n&&t[n]!==void 0)return i(t[n])},_i=(r)=>{if(String(r.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+r.statusCode)},Ai=async(r,t,i,n,l)=>{let c=await r.endpoint(),{hostname:d,protocol:f="https",port:m,path:w}=c,E={protocol:f,hostname:d,port:m,method:"POST",path:w.endsWith("/")?w.slice(0,-1)+i:w+i,headers:{...t}};if(n!==void 0)E.hostname=n;if(c.headers)for(let S in c.headers)E.headers[S]=c.headers[S];if(l!==void 0){E.body=l;try{E.headers["content-length"]=String(re.calculateBodyLength(l))}catch(S){}}return new _e.HttpRequest(E)};class Nt extends _e.SerdeContext{createSerializer(){let r=new St;return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new bt;return r.setSerdeContext(this.serdeContext),r}}class St extends _e.SerdeContext{value;write(r,t){this.value=this.serialize(r,t)}serialize(r,t){let i=be.NormalizedSchema.of(r);if(t==null){if(i.isIdempotencyToken())return re.generateIdempotencyToken();return t}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??re.fromBase64)(t);return t}if(i.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint")return ze(new Date(Number(t)/1000|0));return ze(t)}if(typeof t==="function"||typeof t==="object"){let n=t;if(i.isListSchema()&&Array.isArray(n)){let c=!!i.getMergedTraits().sparse,d=[],f=0;for(let m of n){let w=this.serialize(i.getValueSchema(),m);if(w!=null||c)d[f++]=w}return d}if(n instanceof Date)return ze(n);let l={};if(i.isMapSchema()){let c=!!i.getMergedTraits().sparse;for(let d in n){let f=this.serialize(i.getValueSchema(),n[d]);if(f!=null||c)l[d]=f}}else if(i.isStructSchema()){for(let[d,f]of i.structIterator()){let m=this.serialize(f,n[d]);if(m!=null)l[d]=m}if(i.isUnionSchema()&&Array.isArray(n.$unknown)){let[d,f]=n.$unknown;l[d]=f}else if(typeof n.__type==="string"){for(let d in n)if(!(d in l))l[d]=this.serialize(15,n[d])}}else if(i.isDocumentSchema())for(let c in n)l[c]=this.serialize(i.getValueSchema(),n[c]);else if(i.isBigDecimalSchema())return n;return l}return t}flush(){let r=Ve.serialize(this.value);return this.value=void 0,r}}class bt extends _e.SerdeContext{read(r,t){let i=Ve.deserialize(t);return this.readValue(r,i)}readValue(r,t){let i=be.NormalizedSchema.of(r);if(i.isTimestampSchema()){if(typeof t==="number")return re._parseEpochTimestamp(t);if(typeof t==="object"){if(t.tag===1&&"value"in t)return re._parseEpochTimestamp(t.value)}}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??re.fromBase64)(t);return t}if(typeof t>"u"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol")return t;else if(typeof t==="object"){if(t===null)return null;if("byteLength"in t)return t;if(t instanceof Date)return t;if(i.isDocumentSchema())return t;if(i.isListSchema()){let l=[],c=i.getValueSchema();for(let d of t){let f=this.readValue(c,d);l.push(f)}return l}let n={};if(i.isMapSchema()){let l=i.getValueSchema();for(let c in t){let d=this.readValue(l,t[c]);n[c]=d}}else if(i.isStructSchema()){let l=i.isUnionSchema(),c;if(l){c=new Set;for(let d in t)if(d!=="__type")c.add(d)}for(let[d,f]of i.structIterator()){if(l)c.delete(d);if(t[d]!=null)n[d]=this.readValue(f,t[d])}if(l&&c?.size===1){let d=!0;for(let f in n){d=!1;break}if(d){let f=c.values().next().value;n.$unknown=[f,t[f]]}}else if(typeof t.__type==="string"){for(let d in t)if(!(d in n))n[d]=t[d]}}else if(t instanceof re.NumericValue)return t;return n}else return t}}class Sr extends _e.RpcProtocol{codec=new Nt;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:r,errorTypeRegistries:t}){super({defaultNamespace:r,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(r,t,i){let n=await super.serializeRequest(r,t,i);if(Object.assign(n.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),be.deref(r.input)==="unit")delete n.body,delete n.headers["content-type"];else{if(!n.body)this.serializer.write(15,{}),n.body=this.serializer.flush();try{n.headers["content-length"]=String(n.body.byteLength)}catch(f){}}let{service:l,operation:c}=oi.getSmithyContext(i),d=`/service/${l}/operation/${c}`;if(n.path.endsWith("/"))n.path+=d.slice(1);else n.path+=d;return n}async deserializeResponse(r,t,i){return super.deserializeResponse(r,t,i)}async handleError(r,t,i,n,l){let c=Nr(i,n)??"Unknown",d={$metadata:l,$fault:i.statusCode<=500?"client":"server"},f=this.options.defaultNamespace;if(c.includes("#"))[f]=c.split("#");let m=this.compositeErrorRegistry,w=be.TypeRegistry.for(f);m.copyFrom(w);let E;try{E=m.getSchema(c)}catch(V){if(n.Message)n.message=n.Message;let B=be.TypeRegistry.for("smithy.ts.sdk.synthetic."+f);m.copyFrom(B);let Z=m.getBaseException();if(Z){let L=m.getErrorCtor(Z);throw Object.assign(new L({name:c}),d,n)}throw Object.assign(Error(c),d,n)}let S=be.NormalizedSchema.of(E),_=m.getErrorCtor(E),A=n.message??n.Message??"Unknown",I=new _({}),P={};for(let[V,B]of S.structIterator())P[V]=this.deserializer.readValue(B,n[V]);throw Object.assign(I,d,{$fault:S.getMergedTraits().error,message:A},P)}getDefaultContentType(){return"application/cbor"}}Ti.CborCodec=Nt;Ti.CborShapeDeserializer=bt;Ti.CborShapeSerializer=St;Ti.SmithyRpcV2CborProtocol=Sr;Ti.buildHttpRpcRequest=Ai;Ti.cbor=Ve;Ti.checkCborResponse=_i;Ti.dateToTag=ze;Ti.loadSmithyRpcV2CborErrorCode=Nr;Ti.parseCborBody=Er;Ti.parseCborErrorBody=bi;Ti.tag=wt;Ti.tagSymbol=xt});var Ar=xe((vo,_r)=>{(()=>{var r={d:(e,s)=>{for(var o in s)r.o(s,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},o:(e,s)=>Object.prototype.hasOwnProperty.call(e,s),r:(e)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};r.r(t),r.d(t,{XMLBuilder:()=>ii,XMLParser:()=>ir,XMLValidator:()=>ni});let 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]*$");function l(e,s){let o=[],a=s.exec(e);for(;a;){let h=[];h.startIndex=s.lastIndex-a[0].length;let u=a.length;for(let x=0;x<u;x++)h.push(a[x]);o.push(h),a=s.exec(e)}return o}let c=function(e){return n.exec(e)!=null},d=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],f=["__proto__","constructor","prototype"],m={allowBooleanAttributes:!1,unpairedTags:[]};function w(e,s){s=Object.assign({},m,s);let o=[],a=!1,h=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let u=0;u<e.length;u++)if(e[u]==="<"&&e[u+1]==="?"){if(u+=2,u=S(e,u),u.err)return u}else{if(e[u]!=="<"){if(E(e[u]))continue;return L("InvalidChar","char '"+e[u]+"' is not expected.",F(e,u))}{let x=u;if(u++,e[u]==="!"){u=_(e,u);continue}{let p=!1;e[u]==="/"&&(p=!0,u++);let y="";for(;u<e.length&&e[u]!==">"&&e[u]!==" "&&e[u]!=="\t"&&e[u]!==`
|
|
3
3
|
`&&e[u]!=="\r";u++)y+=e[u];if(y=y.trim(),y[y.length-1]==="/"&&(y=y.substring(0,y.length-1),u--),!Ye(y)){let b;return b=y.trim().length===0?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",L("InvalidTag",b,F(e,u))}let g=P(e,u);if(g===!1)return L("InvalidAttr","Attributes for '"+y+"' have open quote.",F(e,u));let N=g.value;if(u=g.index,N[N.length-1]==="/"){let b=u-N.length;N=N.substring(0,N.length-1);let T=B(N,s);if(T!==!0)return L(T.err.code,T.err.msg,F(e,b+T.err.line));a=!0}else if(p){if(!g.tagClosed)return L("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",F(e,u));if(N.trim().length>0)return L("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",F(e,x));if(o.length===0)return L("InvalidTag","Closing tag '"+y+"' has not been opened.",F(e,x));{let b=o.pop();if(y!==b.tagName){let T=F(e,b.tagStartPos);return L("InvalidTag","Expected closing tag '"+b.tagName+"' (opened in line "+T.line+", col "+T.col+") instead of closing tag '"+y+"'.",F(e,x))}o.length==0&&(h=!0)}}else{let b=B(N,s);if(b!==!0)return L(b.err.code,b.err.msg,F(e,u-N.length+b.err.line));if(h===!0)return L("InvalidXml","Multiple possible root nodes found.",F(e,u));s.unpairedTags.indexOf(y)!==-1||o.push({tagName:y,tagStartPos:x}),a=!0}for(u++;u<e.length;u++)if(e[u]==="<"){if(e[u+1]==="!"){u++,u=_(e,u);continue}if(e[u+1]!=="?")break;if(u=S(e,++u),u.err)return u}else if(e[u]==="&"){let b=Z(e,u);if(b==-1)return L("InvalidChar","char '&' is not expected.",F(e,u));u=b}else if(h===!0&&!E(e[u]))return L("InvalidXml","Extra text at the end",F(e,u));e[u]==="<"&&u--}}}return a?o.length==1?L("InvalidTag","Unclosed tag '"+o[0].tagName+"'.",F(e,o[0].tagStartPos)):!(o.length>0)||L("InvalidXml","Invalid '"+JSON.stringify(o.map((u)=>u.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):L("InvalidXml","Start tag expected.",1)}function E(e){return e===" "||e==="\t"||e===`
|
|
4
4
|
`||e==="\r"}function S(e,s){let o=s;for(;s<e.length;s++)if(e[s]=="?"||e[s]==" "){let a=e.substr(o,s-o);if(s>5&&a==="xml")return L("InvalidXml","XML declaration allowed only at the start of the document.",F(e,s));if(e[s]=="?"&&e[s+1]==">"){s++;break}continue}return s}function _(e,s){if(e.length>s+5&&e[s+1]==="-"&&e[s+2]==="-"){for(s+=3;s<e.length;s++)if(e[s]==="-"&&e[s+1]==="-"&&e[s+2]===">"){s+=2;break}}else if(e.length>s+8&&e[s+1]==="D"&&e[s+2]==="O"&&e[s+3]==="C"&&e[s+4]==="T"&&e[s+5]==="Y"&&e[s+6]==="P"&&e[s+7]==="E"){let o=1;for(s+=8;s<e.length;s++)if(e[s]==="<")o++;else if(e[s]===">"&&(o--,o===0))break}else if(e.length>s+9&&e[s+1]==="["&&e[s+2]==="C"&&e[s+3]==="D"&&e[s+4]==="A"&&e[s+5]==="T"&&e[s+6]==="A"&&e[s+7]==="["){for(s+=8;s<e.length;s++)if(e[s]==="]"&&e[s+1]==="]"&&e[s+2]===">"){s+=2;break}}return s}let A='"',I="'";function P(e,s){let o="",a="",h=!1;for(;s<e.length;s++){if(e[s]===A||e[s]===I)a===""?a=e[s]:a!==e[s]||(a="");else if(e[s]===">"&&a===""){h=!0;break}o+=e[s]}return a===""&&{value:o,index:s,tagClosed:h}}let V=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function B(e,s){let o=l(e,V),a={};for(let h=0;h<o.length;h++){if(o[h][1].length===0)return L("InvalidAttr","Attribute '"+o[h][2]+"' has no space in starting.",te(o[h]));if(o[h][3]!==void 0&&o[h][4]===void 0)return L("InvalidAttr","Attribute '"+o[h][2]+"' is without value.",te(o[h]));if(o[h][3]===void 0&&!s.allowBooleanAttributes)return L("InvalidAttr","boolean attribute '"+o[h][2]+"' is not allowed.",te(o[h]));let u=o[h][2];if(!ue(u))return L("InvalidAttr","Attribute '"+u+"' is an invalid name.",te(o[h]));if(Object.prototype.hasOwnProperty.call(a,u))return L("InvalidAttr","Attribute '"+u+"' is repeated.",te(o[h]));a[u]=1}return!0}function Z(e,s){if(e[++s]===";")return-1;if(e[s]==="#")return function(a,h){let u=/\d/;for(a[h]==="x"&&(h++,u=/[\da-fA-F]/);h<a.length;h++){if(a[h]===";")return h;if(!a[h].match(u))break}return-1}(e,++s);let o=0;for(;s<e.length;s++,o++)if(!(e[s].match(/\w/)&&o<20)){if(e[s]===";")break;return-1}return s}function L(e,s,o){return{err:{code:e,msg:s,line:o.line||o,col:o.col}}}function ue(e){return c(e)}function Ye(e){return c(e)}function F(e,s){let o=e.substring(0,s).split(/\r?\n/);return{line:o.length,col:o[o.length-1].length+1}}function te(e){return e.startIndex+e[1].length}let Qt=(e)=>d.includes(e)?"__"+e:e,Ns={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,s){return s},attributeValueProcessor:function(e,s){return s},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,s,o){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Qt};function Ss(e,s){if(typeof e!="string")return;let o=e.toLowerCase();if(d.some((a)=>o===a.toLowerCase()))throw Error(`[SECURITY] Invalid ${s}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(f.some((a)=>o===a.toLowerCase()))throw Error(`[SECURITY] Invalid ${s}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Kt(e,s){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1000,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1000),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:Kt(!0)}let bs=function(e){let s=Object.assign({},Ns,e),o=[{value:s.attributeNamePrefix,name:"attributeNamePrefix"},{value:s.attributesGroupName,name:"attributesGroupName"},{value:s.textNodeName,name:"textNodeName"},{value:s.cdataPropName,name:"cdataPropName"},{value:s.commentPropName,name:"commentPropName"}];for(let{value:a,name:h}of o)a&&Ss(a,h);return s.onDangerousProperty===null&&(s.onDangerousProperty=Qt),s.processEntities=Kt(s.processEntities,s.htmlEntities),s.unpairedTagsSet=new Set(s.unpairedTags),s.stopNodes&&Array.isArray(s.stopNodes)&&(s.stopNodes=s.stopNodes.map((a)=>typeof a=="string"&&a.startsWith("*.")?".."+a.substring(2):a)),s},Ze;Ze=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class se{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,s){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:s})}addChild(e,s){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),s!==void 0&&(this.child[this.child.length-1][Ze]={startIndex:s})}static getMetaDataSymbol(){return Ze}}class Gt{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,s){let o=Object.create(null),a=0;if(e[s+3]!=="O"||e[s+4]!=="C"||e[s+5]!=="T"||e[s+6]!=="Y"||e[s+7]!=="P"||e[s+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{s+=9;let h=1,u=!1,x=!1,p="";for(;s<e.length;s++)if(e[s]!=="<"||x)if(e[s]===">"){if(x?e[s-1]==="-"&&e[s-2]==="-"&&(x=!1,h--):h--,h===0)break}else e[s]==="["?u=!0:p+=e[s];else{if(u&&de(e,"!ENTITY",s)){let y,g;if(s+=7,[y,g,s]=this.readEntityExp(e,s+1,this.suppressValidationErr),g.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&a>=this.options.maxEntityCount)throw Error(`Entity count (${a+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);o[y]=g,a++}}else if(u&&de(e,"!ELEMENT",s)){s+=8;let{index:y}=this.readElementExp(e,s+1);s=y}else if(u&&de(e,"!ATTLIST",s))s+=8;else if(u&&de(e,"!NOTATION",s)){s+=9;let{index:y}=this.readNotationExp(e,s+1,this.suppressValidationErr);s=y}else{if(!de(e,"!--",s))throw Error("Invalid DOCTYPE");x=!0}h++,p=""}if(h!==0)throw Error("Unclosed DOCTYPE")}return{entities:o,i:s}}readEntityExp(e,s){let o=s=J(e,s);for(;s<e.length&&!/\s/.test(e[s])&&e[s]!=='"'&&e[s]!=="'";)s++;let a=e.substring(o,s);if(Re(a),s=J(e,s),!this.suppressValidationErr){if(e.substring(s,s+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(e[s]==="%")throw Error("Parameter entities are not supported")}let h="";if([s,h]=this.readIdentifierVal(e,s,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&h.length>this.options.maxEntitySize)throw Error(`Entity "${a}" size (${h.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[a,h,--s]}readNotationExp(e,s){let o=s=J(e,s);for(;s<e.length&&!/\s/.test(e[s]);)s++;let a=e.substring(o,s);!this.suppressValidationErr&&Re(a),s=J(e,s);let h=e.substring(s,s+6).toUpperCase();if(!this.suppressValidationErr&&h!=="SYSTEM"&&h!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${h}"`);s+=h.length,s=J(e,s);let u=null,x=null;if(h==="PUBLIC")[s,u]=this.readIdentifierVal(e,s,"publicIdentifier"),e[s=J(e,s)]!=='"'&&e[s]!=="'"||([s,x]=this.readIdentifierVal(e,s,"systemIdentifier"));else if(h==="SYSTEM"&&([s,x]=this.readIdentifierVal(e,s,"systemIdentifier"),!this.suppressValidationErr&&!x))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:a,publicIdentifier:u,systemIdentifier:x,index:--s}}readIdentifierVal(e,s,o){let a="",h=e[s];if(h!=='"'&&h!=="'")throw Error(`Expected quoted string, found "${h}"`);let u=++s;for(;s<e.length&&e[s]!==h;)s++;if(a=e.substring(u,s),e[s]!==h)throw Error(`Unterminated ${o} value`);return[++s,a]}readElementExp(e,s){let o=s=J(e,s);for(;s<e.length&&!/\s/.test(e[s]);)s++;let a=e.substring(o,s);if(!this.suppressValidationErr&&!c(a))throw Error(`Invalid element name: "${a}"`);let h="";if(e[s=J(e,s)]==="E"&&de(e,"MPTY",s))s+=4;else if(e[s]==="A"&&de(e,"NY",s))s+=2;else if(e[s]==="("){let u=++s;for(;s<e.length&&e[s]!==")";)s++;if(h=e.substring(u,s),e[s]!==")")throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[s]}"`);return{elementName:a,contentModel:h.trim(),index:s}}readAttlistExp(e,s){let o=s=J(e,s);for(;s<e.length&&!/\s/.test(e[s]);)s++;let a=e.substring(o,s);for(Re(a),o=s=J(e,s);s<e.length&&!/\s/.test(e[s]);)s++;let h=e.substring(o,s);if(!Re(h))throw Error(`Invalid attribute name: "${h}"`);s=J(e,s);let u="";if(e.substring(s,s+8).toUpperCase()==="NOTATION"){if(u="NOTATION",e[s=J(e,s+=8)]!=="(")throw Error(`Expected '(', found "${e[s]}"`);s++;let p=[];for(;s<e.length&&e[s]!==")";){let y=s;for(;s<e.length&&e[s]!=="|"&&e[s]!==")";)s++;let g=e.substring(y,s);if(g=g.trim(),!Re(g))throw Error(`Invalid notation name: "${g}"`);p.push(g),e[s]==="|"&&(s++,s=J(e,s))}if(e[s]!==")")throw Error("Unterminated list of notations");s++,u+=" ("+p.join("|")+")"}else{let p=s;for(;s<e.length&&!/\s/.test(e[s]);)s++;u+=e.substring(p,s);let y=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!y.includes(u.toUpperCase()))throw Error(`Invalid attribute type: "${u}"`)}s=J(e,s);let x="";return e.substring(s,s+8).toUpperCase()==="#REQUIRED"?(x="#REQUIRED",s+=8):e.substring(s,s+7).toUpperCase()==="#IMPLIED"?(x="#IMPLIED",s+=7):[s,x]=this.readIdentifierVal(e,s,"ATTLIST"),{elementName:a,attributeName:h,attributeType:u,defaultValue:x,index:s}}}let J=(e,s)=>{for(;s<e.length&&/\s/.test(e[s]);)s++;return s};function de(e,s,o){for(let a=0;a<s.length;a++)if(s[a]!==e[o+a+1])return!1;return!0}function Re(e){if(c(e))return e;throw Error(`Invalid entity name ${e}`)}let _s=/^[-+]?0x[a-fA-F0-9]+$/,As=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Ts={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},Cs=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class Wt{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let s=this._matcher.path;if(s.length!==0)return s[s.length-1].values?.[e]}hasAttr(e){let s=this._matcher.path;if(s.length===0)return!1;let o=s[s.length-1];return o.values!==void 0&&e in o.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,s=!0){return this._matcher.toString(e,s)}toArray(){return this._matcher.path.map((e)=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class De{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Wt(this)}push(e,s=null,o=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let a=this.path.length;this.siblingStacks[a]||(this.siblingStacks[a]=new Map);let h=this.siblingStacks[a],u=o?`${o}:${e}`:e,x=h.get(u)||0,p=0;for(let g of h.values())p+=g;h.set(u,x+1);let y={tag:e,position:p,counter:x};o!=null&&(y.namespace=o),s!=null&&(y.values=s),this.path.push(y)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let s=this.path[this.path.length-1];e!=null&&(s.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let s=this.path[this.path.length-1];return s.values!==void 0&&e in s.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,s=!0){let o=e||this.separator;if(o===this.separator&&s===!0){if(this._pathStringCache!==null)return this._pathStringCache;let a=this.path.map((h)=>h.namespace?`${h.namespace}:${h.tag}`:h.tag).join(o);return this._pathStringCache=a,a}return this.path.map((a)=>s&&a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(o)}toArray(){return this.path.map((e)=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let s=e.segments;return s.length!==0&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(s):this._matchSimple(s))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let s=0;s<e.length;s++)if(!this._matchSegment(e[s],this.path[s],s===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let s=this.path.length-1,o=e.length-1;for(;o>=0&&s>=0;){let a=e[o];if(a.type==="deep-wildcard"){if(o--,o<0)return!0;let h=e[o],u=!1;for(let x=s;x>=0;x--)if(this._matchSegment(h,this.path[x],x===this.path.length-1)){s=x-1,o--,u=!0;break}if(!u)return!1}else{if(!this._matchSegment(a,this.path[s],s===this.path.length-1))return!1;s--,o--}}return o<0}_matchSegment(e,s,o){if(e.tag!=="*"&&e.tag!==s.tag)return!1;if(e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==s.namespace)return!1;if(e.attrName!==void 0){if(!o)return!1;if(!s.values||!(e.attrName in s.values))return!1;if(e.attrValue!==void 0&&String(s.values[e.attrName])!==String(e.attrValue))return!1}if(e.position!==void 0){if(!o)return!1;let a=s.counter??0;if(e.position==="first"&&a!==0)return!1;if(e.position==="odd"&&a%2!=1)return!1;if(e.position==="even"&&a%2!=0)return!1;if(e.position==="nth"&&a!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map((e)=>({...e})),siblingStacks:this.siblingStacks.map((e)=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map((s)=>({...s})),this.siblingStacks=e.siblingStacks.map((s)=>new Map(s))}readOnly(){return this._view}}class pe{constructor(e,s={},o){this.pattern=e,this.separator=s.separator||".",this.segments=this._parse(e),this.data=o,this._hasDeepWildcard=this.segments.some((a)=>a.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some((a)=>a.attrName!==void 0),this._hasPositionSelector=this.segments.some((a)=>a.position!==void 0)}_parse(e){let s=[],o=0,a="";for(;o<e.length;)e[o]===this.separator?o+1<e.length&&e[o+1]===this.separator?(a.trim()&&(s.push(this._parseSegment(a.trim())),a=""),s.push({type:"deep-wildcard"}),o+=2):(a.trim()&&s.push(this._parseSegment(a.trim())),a="",o++):(a+=e[o],o++);return a.trim()&&s.push(this._parseSegment(a.trim())),s}_parseSegment(e){let s={type:"tag"},o=null,a=e,h=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(h&&(a=h[1]+h[3],h[2])){let g=h[2].slice(1,-1);g&&(o=g)}let u,x,p=a;if(a.includes("::")){let g=a.indexOf("::");if(u=a.substring(0,g).trim(),p=a.substring(g+2).trim(),!u)throw Error(`Invalid namespace in pattern: ${e}`)}let y=null;if(p.includes(":")){let g=p.lastIndexOf(":"),N=p.substring(0,g).trim(),b=p.substring(g+1).trim();["first","last","odd","even"].includes(b)||/^nth\(\d+\)$/.test(b)?(x=N,y=b):x=p}else x=p;if(!x)throw Error(`Invalid segment pattern: ${e}`);if(s.tag=x,u&&(s.namespace=u),o)if(o.includes("=")){let g=o.indexOf("=");s.attrName=o.substring(0,g).trim(),s.attrValue=o.substring(g+1).trim()}else s.attrName=o.trim();if(y){let g=y.match(/^nth\((\d+)\)$/);g?(s.position="nth",s.positionValue=parseInt(g[1],10)):s.position=y}return s}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class Jt{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;let s=e.length,o=e.segments[e.segments.length-1],a=o?.tag;if(a&&a!=="*"){let h=`${s}:${a}`;this._byDepthAndTag.has(h)||this._byDepthAndTag.set(h,[]),this._byDepthAndTag.get(h).push(e)}else this._wildcardByDepth.has(s)||this._wildcardByDepth.set(s,[]),this._wildcardByDepth.get(s).push(e);return this}addAll(e){for(let s of e)this.add(s);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let s=e.getDepth(),o=`${s}:${e.getCurrentTag()}`,a=this._byDepthAndTag.get(o);if(a){for(let u=0;u<a.length;u++)if(e.matches(a[u]))return a[u]}let h=this._wildcardByDepth.get(s);if(h){for(let u=0;u<h.length;u++)if(e.matches(h[u]))return h[u]}for(let u=0;u<this._deepWildcards.length;u++)if(e.matches(this._deepWildcards[u]))return this._deepWildcards[u];return null}}let Ms={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},jt={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Rs={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"},Ps=new Set("!?\\\\/[]$%{}^&*()<>|+");function Yt(e){if(e[0]==="#")throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let s of e)if(Ps.has(s))throw Error(`[EntityReplacer] Invalid character '${s}' in entity name: "${e}"`);return e}function et(...e){let s=Object.create(null);for(let o of e)if(o)for(let a of Object.keys(o)){let h=o[a];if(typeof h=="string")s[a]=h;else if(h&&typeof h=="object"&&h.val!==void 0){let u=h.val;typeof u=="string"&&(s[a]=u)}}return s}let fe="external",Le="base",tt="all",Y=Object.freeze({allow:0,leave:1,remove:2,throw:3}),$s=new Set([9,10,13]);class Zt{constructor(e={}){var s;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:(a)=>a,this._limitTiers=(s=this._limit.applyLimitsTo??fe)&&s!==fe?s===tt?new Set([tt]):s===Le?new Set([Le]):Array.isArray(s)?new Set(s):new Set([fe]):new Set([fe]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=et(jt,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let o=function(a){if(!a)return{xmlVersion:1,onLevel:Y.allow,nullLevel:Y.remove};let h=a.xmlVersion===1.1?1.1:1,u=Y[a.onNCR]??Y.allow,x=Y[a.nullNCR]??Y.remove;return{xmlVersion:h,onLevel:u,nullLevel:Math.max(x,Y.remove)}}(e.ncr);this._ncrXmlVersion=o.xmlVersion,this._ncrOnLevel=o.onLevel,this._ncrNullLevel=o.nullLevel}setExternalEntities(e){if(e)for(let s of Object.keys(e))Yt(s);this._externalMap=et(e)}addExternalEntity(e,s){Yt(e),typeof s=="string"&&s.indexOf("&")===-1&&(this._externalMap[e]=s)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=et(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let s=e,o=[],a=e.length,h=0,u=0,x=this._maxTotalExpansions>0,p=this._maxExpandedLength>0,y=x||p;for(;u<a;){if(e.charCodeAt(u)!==38){u++;continue}let N=u+1;for(;N<a&&e.charCodeAt(N)!==59&&N-u<=32;)N++;if(N>=a||e.charCodeAt(N)!==59){u++;continue}let b=e.slice(u+1,N);if(b.length===0){u++;continue}let T,M;if(this._removeSet.has(b))T="",M===void 0&&(M=fe);else{if(this._leaveSet.has(b)){u++;continue}if(b.charCodeAt(0)===35){let R=this._resolveNCR(b);if(R===void 0){u++;continue}T=R,M=Le}else{let R=this._resolveName(b);T=R?.value,M=R?.tier}}if(T!==void 0){if(u>h&&o.push(e.slice(h,u)),o.push(T),h=N+1,u=h,y&&this._tierCounts(M)){if(x&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(p){let R=T.length-(b.length+2);if(R>0&&(this._expandedLength+=R,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else u++}h<a&&o.push(e.slice(h));let g=o.length===0?e:o.join("");return this._postCheck(g,s)}_tierCounts(e){return!!this._limitTiers.has(tt)||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:fe}:(e in this._externalMap)?{value:this._externalMap[e],tier:fe}:(e in this._baseMap)?{value:this._baseMap[e],tier:Le}:void 0}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!$s.has(e)?Y.remove:-1}_applyNCRAction(e,s,o){switch(e){case Y.allow:return String.fromCodePoint(o);case Y.remove:return"";case Y.leave:return;case Y.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${s}; (U+${o.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(o)}}_resolveNCR(e){let s=e.charCodeAt(1),o;if(o=s===120||s===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(o)||o<0||o>1114111)return;let a=this._classifyNCR(o);if(!this._numericAllowed&&a<Y.remove)return;let h=a===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,a);return this._applyNCRAction(h,e,o)}}function Is(e,s){if(!e)return{};let o=s.attributesGroupName?e[s.attributesGroupName]:e;if(!o)return{};let a={};for(let h in o)h.startsWith(s.attributeNamePrefix)?a[h.substring(s.attributeNamePrefix.length)]=o[h]:a[h]=o[h];return a}function Ds(e){if(!e||typeof e!="string")return;let s=e.indexOf(":");if(s!==-1&&s>0){let o=e.substring(0,s);if(o!=="xmlns")return o}}class er{constructor(e,s){var o;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Us,this.parseTextData=Ls,this.resolveNameSpace=ks,this.buildAttributesMap=Os,this.isItStopNode=vs,this.replaceEntitiesValue=Bs,this.readStopNodeData=Hs,this.saveTextToParentTag=Xs,this.addChild=Vs,this.ignoreAttributesFn=typeof(o=this.options.ignoreAttributes)=="function"?o:Array.isArray(o)?(u)=>{for(let x of o){if(typeof x=="string"&&u===x)return!0;if(x instanceof RegExp&&x.test(u))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let a={...jt};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?a=this.options.htmlEntities:this.options.htmlEntities===!0&&(a={...Rs,...Ms}),this.entityDecoder=new Zt({namedEntities:{...a,...s},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new De,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Jt;let h=this.options.stopNodes;if(h&&h.length>0){for(let u=0;u<h.length;u++){let x=h[u];typeof x=="string"?this.stopNodeExpressionsSet.add(new pe(x)):x instanceof pe&&this.stopNodeExpressionsSet.add(x)}this.stopNodeExpressionsSet.seal()}}}function Ls(e,s,o,a,h,u,x){let p=this.options;if(e!==void 0&&(p.trimValues&&!a&&(e=e.trim()),e.length>0)){x||(e=this.replaceEntitiesValue(e,s,o));let y=p.jPath?o.toString():o,g=p.tagValueProcessor(s,e,y,h,u);return g==null?e:typeof g!=typeof e||g!==e?g:p.trimValues||e.trim()===e?tr(e,p.parseTagValue,p.numberParseOptions):e}}function ks(e){if(this.options.removeNSPrefix){let s=e.split(":"),o=e.charAt(0)==="/"?"/":"";if(s[0]==="xmlns")return"";s.length===2&&(e=o+s[1])}return e}let zs=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Os(e,s,o,a=!1){let h=this.options;if(a===!0||h.ignoreAttributes!==!0&&typeof e=="string"){let u=l(e,zs),x=u.length,p={},y=Array(x),g=!1,N={};for(let M=0;M<x;M++){let R=this.resolveNameSpace(u[M][1]),z=u[M][4];if(R.length&&z!==void 0){let v=z;h.trimValues&&(v=v.trim()),v=this.replaceEntitiesValue(v,o,this.readonlyMatcher),y[M]=v,N[R]=v,g=!0}}g&&typeof s=="object"&&s.updateCurrent&&s.updateCurrent(N);let b=h.jPath?s.toString():this.readonlyMatcher,T=!1;for(let M=0;M<x;M++){let R=this.resolveNameSpace(u[M][1]);if(this.ignoreAttributesFn(R,b))continue;let z=h.attributeNamePrefix+R;if(R.length)if(h.transformAttributeName&&(z=h.transformAttributeName(z)),z=rr(z,h),u[M][4]!==void 0){let v=y[M],K=h.attributeValueProcessor(R,v,b);p[z]=K==null?v:typeof K!=typeof v||K!==v?K:tr(v,h.parseAttributeValue,h.numberParseOptions),T=!0}else h.allowBooleanAttributes&&(p[z]=!0,T=!0)}if(!T)return;if(h.attributesGroupName&&!h.preserveOrder){let M={};return M[h.attributesGroupName]=p,M}return p}}let Us=function(e){e=e.replace(/\r\n?/g,`
|
|
5
5
|
`);let s=new se("!xml"),o=s,a="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let h=this.options,u=new Gt(h.processEntities),x=e.length;for(let p=0;p<x;p++)if(e[p]==="<"){let y=e.charCodeAt(p+1);if(y===47){let g=Ee(e,">",p,"Closing Tag is not closed."),N=e.substring(p+2,g).trim();if(h.removeNSPrefix){let T=N.indexOf(":");T!==-1&&(N=N.substr(T+1))}N=st(h.transformTagName,N,"",h).tagName,o&&(a=this.saveTextToParentTag(a,o,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(N&&h.unpairedTagsSet.has(N))throw Error(`Unpaired tag can not be used as closing tag: </${N}>`);b&&h.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,o=this.tagsNodeStack.pop(),a="",p=g}else if(y===63){let g=rt(e,p,!1,"?>");if(!g)throw Error("Pi Tag is not closed.");a=this.saveTextToParentTag(a,o,this.readonlyMatcher);let N=this.buildAttributesMap(g.tagExp,this.matcher,g.tagName,!0);if(N){let b=N[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1)}if(h.ignoreDeclaration&&g.tagName==="?xml"||h.ignorePiTags);else{let b=new se(g.tagName);b.add(h.textNodeName,""),g.tagName!==g.tagExp&&g.attrExpPresent&&h.ignoreAttributes!==!0&&(b[":@"]=N),this.addChild(o,b,this.readonlyMatcher,p)}p=g.closeIndex+1}else if(y===33&&e.charCodeAt(p+2)===45&&e.charCodeAt(p+3)===45){let g=Ee(e,"-->",p+4,"Comment is not closed.");if(h.commentPropName){let N=e.substring(p+4,g-2);a=this.saveTextToParentTag(a,o,this.readonlyMatcher),o.add(h.commentPropName,[{[h.textNodeName]:N}])}p=g}else if(y===33&&e.charCodeAt(p+2)===68){let g=u.readDocType(e,p);this.entityDecoder.addInputEntities(g.entities),p=g.i}else if(y===33&&e.charCodeAt(p+2)===91){let g=Ee(e,"]]>",p,"CDATA is not closed.")-2,N=e.substring(p+9,g);a=this.saveTextToParentTag(a,o,this.readonlyMatcher);let b=this.parseTextData(N,o.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),h.cdataPropName?o.add(h.cdataPropName,[{[h.textNodeName]:N}]):o.add(h.textNodeName,b),p=g+2}else{let g=rt(e,p,h.removeNSPrefix);if(!g){let X=e.substring(Math.max(0,p-50),Math.min(x,p+50));throw Error(`readTagExp returned undefined at position ${p}. Context: "${X}"`)}let{tagName:N,rawTagName:b,tagExp:T,attrExpPresent:M,closeIndex:R}=g;if({tagName:N,tagExp:T}=st(h.transformTagName,N,T,h),h.strictReservedNames&&(N===h.commentPropName||N===h.cdataPropName||N===h.textNodeName||N===h.attributesGroupName))throw Error(`Invalid tag name: ${N}`);o&&a&&o.tagname!=="!xml"&&(a=this.saveTextToParentTag(a,o,this.readonlyMatcher,!1));let z=o;z&&h.unpairedTagsSet.has(z.tagname)&&(o=this.tagsNodeStack.pop(),this.matcher.pop());let v=!1;T.length>0&&T.lastIndexOf("/")===T.length-1&&(v=!0,N[N.length-1]==="/"?(N=N.substr(0,N.length-1),T=N):T=T.substr(0,T.length-1),M=N!==T);let K,q=null,Se={};K=Ds(b),N!==s.tagname&&this.matcher.push(N,{},K),N!==T&&M&&(q=this.buildAttributesMap(T,this.matcher,N),q&&(Se=Is(q,h))),N!==s.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let G=p;if(this.isCurrentNodeStopNode){let X="";if(v)p=g.closeIndex;else if(h.unpairedTagsSet.has(N))p=g.closeIndex;else{let at=this.readStopNodeData(e,b,R+1);if(!at)throw Error(`Unexpected end of ${b}`);p=at.i,X=at.tagContent}let ot=new se(N);q&&(ot[":@"]=q),ot.add(h.textNodeName,X),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(o,ot,this.readonlyMatcher,G)}else{if(v){({tagName:N,tagExp:T}=st(h.transformTagName,N,T,h));let X=new se(N);q&&(X[":@"]=q),this.addChild(o,X,this.readonlyMatcher,G),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(h.unpairedTagsSet.has(N)){let X=new se(N);q&&(X[":@"]=q),this.addChild(o,X,this.readonlyMatcher,G),this.matcher.pop(),this.isCurrentNodeStopNode=!1,p=g.closeIndex;continue}{let X=new se(N);if(this.tagsNodeStack.length>h.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(o),q&&(X[":@"]=q),this.addChild(o,X,this.readonlyMatcher,G),o=X}}a="",p=R}}}else a+=e[p];return s.child};function Vs(e,s,o,a){this.options.captureMetaData||(a=void 0);let h=this.options.jPath?o.toString():o,u=this.options.updateTag(s.tagname,h,s[":@"]);u===!1||(typeof u=="string"?(s.tagname=u,e.addChild(s,a)):e.addChild(s,a))}function Bs(e,s,o){let a=this.options.processEntities;if(!a||!a.enabled)return e;if(a.allowedTags){let h=this.options.jPath?o.toString():o;if(!(Array.isArray(a.allowedTags)?a.allowedTags.includes(s):a.allowedTags(s,h)))return e}if(a.tagFilter){let h=this.options.jPath?o.toString():o;if(!a.tagFilter(s,h))return e}return this.entityDecoder.decode(e)}function Xs(e,s,o,a){return e&&(a===void 0&&(a=s.child.length===0),(e=this.parseTextData(e,s.tagname,o,!1,!!s[":@"]&&Object.keys(s[":@"]).length!==0,a))!==void 0&&e!==""&&s.add(this.options.textNodeName,e),e=""),e}function vs(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Ee(e,s,o,a){let h=e.indexOf(s,o);if(h===-1)throw Error(a);return h+s.length-1}function Fs(e,s,o,a){let h=e.indexOf(s,o);if(h===-1)throw Error(a);return h}function rt(e,s,o,a=">"){let h=function(b,T,M=">"){let R=0,z=b.length,v=M.charCodeAt(0),K=M.length>1?M.charCodeAt(1):-1,q="",Se=T;for(let G=T;G<z;G++){let X=b.charCodeAt(G);if(R)X===R&&(R=0);else if(X===34||X===39)R=X;else if(X===v){if(K===-1)return q+=b.substring(Se,G),{data:q,index:G};if(b.charCodeAt(G+1)===K)return q+=b.substring(Se,G),{data:q,index:G}}else X!==9||R||(q+=b.substring(Se,G)+" ",Se=G+1)}}(e,s+1,a);if(!h)return;let{data:u,index:x}=h,p=u.search(/\s/),y=u,g=!0;p!==-1&&(y=u.substring(0,p),u=u.substring(p+1).trimStart());let N=y;if(o){let b=y.indexOf(":");b!==-1&&(y=y.substr(b+1),g=y!==h.data.substr(b+1))}return{tagName:y,tagExp:u,closeIndex:x,attrExpPresent:g,rawTagName:N}}function Hs(e,s,o){let a=o,h=1,u=e.length;for(;o<u;o++)if(e[o]==="<"){let x=e.charCodeAt(o+1);if(x===47){let p=Fs(e,">",o,`${s} is not closed`);if(e.substring(o+2,p).trim()===s&&(h--,h===0))return{tagContent:e.substring(a,o),i:p};o=p}else if(x===63)o=Ee(e,"?>",o+1,"StopNode is not closed.");else if(x===33&&e.charCodeAt(o+2)===45&&e.charCodeAt(o+3)===45)o=Ee(e,"-->",o+3,"StopNode is not closed.");else if(x===33&&e.charCodeAt(o+2)===91)o=Ee(e,"]]>",o,"StopNode is not closed.")-2;else{let p=rt(e,o,!1);p&&((p&&p.tagName)===s&&p.tagExp[p.tagExp.length-1]!=="/"&&h++,o=p.closeIndex)}}}function tr(e,s,o){if(s&&typeof e=="string"){let a=e.trim();return a==="true"||a!=="false"&&function(h,u={}){if(u=Object.assign({},Ts,u),!h||typeof h!="string")return h;let x=h.trim();if(x.length===0)return h;if(u.skipLike!==void 0&&u.skipLike.test(x))return h;if(x==="0")return 0;if(u.hex&&_s.test(x))return function(y){if(parseInt)return parseInt(y,16);if(Number.parseInt)return Number.parseInt(y,16);if(window&&window.parseInt)return window.parseInt(y,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}(x);if(isFinite(x)){if(x.includes("e")||x.includes("E"))return function(y,g,N){if(!N.eNotation)return y;let b=g.match(Cs);if(b){let T=b[1]||"",M=b[3].indexOf("e")===-1?"E":"e",R=b[2],z=T?y[R.length+1]===M:y[R.length]===M;return R.length>1&&z?y:(R.length!==1||!b[3].startsWith(`.${M}`)&&b[3][0]!==M)&&R.length>0?N.leadingZeros&&!z?(g=(b[1]||"")+b[3],Number(g)):y:Number(g)}return y}(h,x,u);{let y=As.exec(x);if(y){let g=y[1]||"",N=y[2],b=(p=y[3])&&p.indexOf(".")!==-1?((p=p.replace(/0+$/,""))==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substring(0,p.length-1)),p):p,T=g?h[N.length+1]===".":h[N.length]===".";if(!u.leadingZeros&&(N.length>1||N.length===1&&!T))return h;{let M=Number(x),R=String(M);if(M===0)return M;if(R.search(/[eE]/)!==-1)return u.eNotation?M:h;if(x.indexOf(".")!==-1)return R==="0"||R===b||R===`${g}${b}`?M:h;let z=N?b:x;return N?z===R||g+z===R?M:h:z===R||z===g+R?M:h}}return h}}var p;return function(y,g,N){let b=g===1/0;switch(N.infinity.toLowerCase()){case"null":return null;case"infinity":return g;case"string":return b?"Infinity":"-Infinity";default:return y}}(h,Number(x),u)}(e,o)}return e!==void 0?e:""}function st(e,s,o,a){if(e){let h=e(s);o===s&&(o=h),s=h}return{tagName:s=rr(s,a),tagExp:o}}function rr(e,s){if(f.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return d.includes(e)?s.onDangerousProperty(e):e}let it=se.getMetaDataSymbol();function qs(e,s){if(!e||typeof e!="object")return{};if(!s)return e;let o={};for(let a in e)a.startsWith(s)?o[a.substring(s.length)]=e[a]:o[a]=e[a];return o}function Qs(e,s,o,a){return sr(e,s,o,a)}function sr(e,s,o,a){let h,u={};for(let x=0;x<e.length;x++){let p=e[x],y=Ks(p);if(y!==void 0&&y!==s.textNodeName){let g=qs(p[":@"]||{},s.attributeNamePrefix);o.push(y,g)}if(y===s.textNodeName)h===void 0?h=p[y]:h+=""+p[y];else{if(y===void 0)continue;if(p[y]){let g=sr(p[y],s,o,a),N=Ws(g,s);if(Object.keys(g).length===0&&s.alwaysCreateTextNode&&(g[s.textNodeName]=""),p[":@"]?Gs(g,p[":@"],a,s):Object.keys(g).length!==1||g[s.textNodeName]===void 0||s.alwaysCreateTextNode?Object.keys(g).length===0&&(s.alwaysCreateTextNode?g[s.textNodeName]="":g=""):g=g[s.textNodeName],p[it]!==void 0&&typeof g=="object"&&g!==null&&(g[it]=p[it]),u[y]!==void 0&&Object.prototype.hasOwnProperty.call(u,y))Array.isArray(u[y])||(u[y]=[u[y]]),u[y].push(g);else{let b=s.jPath?a.toString():a;s.isArray(y,b,N)?u[y]=[g]:u[y]=g}y!==void 0&&y!==s.textNodeName&&o.pop()}}}return typeof h=="string"?h.length>0&&(u[s.textNodeName]=h):h!==void 0&&(u[s.textNodeName]=h),u}function Ks(e){let s=Object.keys(e);for(let o=0;o<s.length;o++){let a=s[o];if(a!==":@")return a}}function Gs(e,s,o,a){if(s){let h=Object.keys(s),u=h.length;for(let x=0;x<u;x++){let p=h[x],y=p.startsWith(a.attributeNamePrefix)?p.substring(a.attributeNamePrefix.length):p,g=a.jPath?o.toString()+"."+y:o;a.isArray(p,g,!0,!0)?e[p]=[s[p]]:e[p]=s[p]}}}function Ws(e,s){let{textNodeName:o}=s,a=Object.keys(e).length;return a===0||!(a!==1||!e[o]&&typeof e[o]!="boolean"&&e[o]!==0)}class ir{constructor(e){this.externalEntities={},this.options=bs(e)}parse(e,s){if(typeof e!="string"&&e.toString)e=e.toString();else if(typeof e!="string")throw Error("XML data is accepted in String or Bytes[] form.");if(s){s===!0&&(s={});let h=w(e,s);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}let o=new er(this.options,this.externalEntities),a=o.parseXml(e);return this.options.preserveOrder||a===void 0?a:Qs(a,this.options,o.matcher,o.readonlyMatcher)}addEntity(e,s){if(s.indexOf("&")!==-1)throw Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(s==="&")throw Error("An entity with value '&' is not permitted");this.externalEntities[e]=s}static getMetaDataSymbol(){return se.getMetaDataSymbol()}}function nr(e){return String(e).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function or(e){return String(e).replace(/\]\]>/g,"]]]]><![CDATA[>")}function Ne(e){return String(e).replace(/"/g,""").replace(/'/g,"'")}function Js(e,s){let o="";s.format&&s.indentBy.length>0&&(o=`
|
|
@@ -18,4 +18,4 @@ ${r}
|
|
|
18
18
|
${t}
|
|
19
19
|
${Q.toHex(c)}`}getCanonicalPath({path:r}){if(this.uriEscapePath){let t=[];for(let l of r.split("/")){if(l?.length===0)continue;if(l===".")continue;if(l==="..")t.pop();else t.push(l)}let i=`${r?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&r?.endsWith("/")?"/":""}`;return Me.escapeUri(i).replace(/%2F/g,"/")}return r}validateResolvedCredentials(r){if(typeof r!=="object"||typeof r.accessKeyId!=="string"||typeof r.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(r){let t=Wn(r).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(r){return Object.keys(r).sort().join(";")}}var Ce={},Ge=[],We=(r,t,i)=>`${r}/${t}/${i}/${Ht}`,ys=async(r,t,i,n,l)=>{let c=await Zr(r,t.secretAccessKey,t.accessKeyId),d=`${i}:${n}:${l}:${Q.toHex(c)}:${t.sessionToken}`;if(d in Ce)return Ce[d];Ge.push(d);while(Ge.length>fs)delete Ce[Ge.shift()];let f=`AWS4${t.secretAccessKey}`;for(let m of[i,n,l,Ht])f=await Zr(r,f,m);return Ce[d]=f},jn=()=>{Ge.length=0,Object.keys(Ce).forEach((r)=>{delete Ce[r]})},Zr=(r,t,i)=>{let n=new r(t);return n.update(Q.toUint8Array(i)),n.digest()},zt=({headers:r},t,i)=>{let n={};for(let l of Object.keys(r).sort()){if(r[l]==null)continue;let c=l.toLowerCase();if(c in hs||t?.has(c)||ls.test(c)||us.test(c)){if(!i||i&&!i.has(c))continue}n[c]=r[l].trim().replace(/\s+/g," ")}return n},Je=async({headers:r,body:t},i)=>{for(let n of Object.keys(r))if(n.toLowerCase()===je)return r[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||Q.isArrayBuffer(t)){let n=new i;return n.update(Q.toUint8Array(t)),Q.toHex(await n.digest())}return ps},xs=(r,t)=>{r=r.toLowerCase();for(let i of Object.keys(t))if(r===i.toLowerCase())return!0;return!1},ws=(r,t={})=>{let{headers:i,query:n={}}=Me.HttpRequest.clone(r);for(let l of Object.keys(i)){let c=l.toLowerCase();if(c.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(c)||t.hoistableHeaders?.has(c))n[l]=i[l],delete i[l]}return{...r,headers:i,query:n}},Ot=(r)=>{r=Me.HttpRequest.clone(r);for(let t of Object.keys(r.headers))if(os.indexOf(t.toLowerCase())>-1)delete r.headers[t];return r};class Es extends qt{headerFormatter=new es;constructor({applyChecksum:r,credentials:t,region:i,service:n,sha256:l,uriEscapePath:c=!0}){super({applyChecksum:r,credentials:t,region:i,service:n,sha256:l,uriEscapePath:c})}async presign(r,t={}){let{signingDate:i=new Date,expiresIn:n=3600,unsignableHeaders:l,unhoistableHeaders:c,signableHeaders:d,hoistableHeaders:f,signingRegion:m,signingService:w}=t,E=await this.credentialProvider();this.validateResolvedCredentials(E);let S=m??await this.regionProvider(),{longDate:_,shortDate:A}=this.formatDate(i);if(n>ms)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let I=We(A,S,w??this.service),P=ws(Ot(r),{unhoistableHeaders:c,hoistableHeaders:f});if(E.sessionToken)P.query[Xt]=E.sessionToken;P.query[ts]=Ke,P.query[rs]=`${E.accessKeyId}/${I}`,P.query[Vt]=_,P.query[is]=n.toString(10);let V=zt(P,l,d);return P.query[ss]=this.getCanonicalHeaderList(V),P.query[Bt]=await this.getSignature(_,I,this.getSigningKey(E,S,A,w),this.createCanonicalRequest(P,V,await Je(r,this.sha256))),P}async sign(r,t){if(typeof r==="string")return this.signString(r,t);else if(r.headers&&r.payload)return this.signEvent(r,t);else if(r.message)return this.signMessage(r,t);else return this.signRequest(r,t)}async signEvent({headers:r,payload:t},{signingDate:i=new Date,priorSignature:n,signingRegion:l,signingService:c,eventStreamCredentials:d}){let f=l??await this.regionProvider(),{shortDate:m,longDate:w}=this.formatDate(i),E=We(m,f,c??this.service),S=await Je({headers:{},body:t},this.sha256),_=new this.sha256;_.update(r);let A=Q.toHex(await _.digest()),I=[ds,w,E,n,A,S].join(`
|
|
20
20
|
`);return this.signString(I,{signingDate:i,signingRegion:f,signingService:c,eventStreamCredentials:d})}async signMessage(r,{signingDate:t=new Date,signingRegion:i,signingService:n,eventStreamCredentials:l}){return this.signEvent({headers:this.headerFormatter.format(r.message.headers),payload:r.message.body},{signingDate:t,signingRegion:i,signingService:n,priorSignature:r.priorSignature,eventStreamCredentials:l}).then((d)=>{return{message:r.message,signature:d}})}async signString(r,{signingDate:t=new Date,signingRegion:i,signingService:n,eventStreamCredentials:l}={}){let c=l??await this.credentialProvider();this.validateResolvedCredentials(c);let d=i??await this.regionProvider(),{shortDate:f}=this.formatDate(t),m=new this.sha256(await this.getSigningKey(c,d,f,n));return m.update(Q.toUint8Array(r)),Q.toHex(await m.digest())}async signRequest(r,{signingDate:t=new Date,signableHeaders:i,unsignableHeaders:n,signingRegion:l,signingService:c}={}){let d=await this.credentialProvider();this.validateResolvedCredentials(d);let f=l??await this.regionProvider(),m=Ot(r),{longDate:w,shortDate:E}=this.formatDate(t),S=We(E,f,c??this.service);if(m.headers[Ft]=w,d.sessionToken)m.headers[cs]=d.sessionToken;let _=await Je(m,this.sha256);if(!xs(je,m.headers)&&this.applyChecksum)m.headers[je]=_;let A=zt(m,n,i),I=await this.getSignature(w,S,this.getSigningKey(d,f,E,c),this.createCanonicalRequest(m,A,_));return m.headers[vt]=`${Ke} Credential=${d.accessKeyId}/${S}, SignedHeaders=${this.getCanonicalHeaderList(A)}, Signature=${I}`,m}async getSignature(r,t,i,n){let l=await this.createStringToSign(r,t,n,Ke),c=new this.sha256(await i);return c.update(Q.toUint8Array(l)),Q.toHex(await c.digest())}getSigningKey(r,t,i,n){return ys(this.sha256,r,i,t,n||this.service)}}var Yn={SignatureV4a:null};Zn.ALGORITHM_IDENTIFIER=Ke;Zn.ALGORITHM_IDENTIFIER_V4A=Gn;Zn.ALGORITHM_QUERY_PARAM=ts;Zn.ALWAYS_UNSIGNABLE_HEADERS=hs;Zn.AMZ_DATE_HEADER=Ft;Zn.AMZ_DATE_QUERY_PARAM=Vt;Zn.AUTH_HEADER=vt;Zn.CREDENTIAL_QUERY_PARAM=rs;Zn.DATE_HEADER=ns;Zn.EVENT_ALGORITHM_IDENTIFIER=ds;Zn.EXPIRES_QUERY_PARAM=is;Zn.GENERATED_HEADERS=os;Zn.HOST_HEADER=Qn;Zn.KEY_TYPE_IDENTIFIER=Ht;Zn.MAX_CACHE_SIZE=fs;Zn.MAX_PRESIGNED_TTL=ms;Zn.PROXY_HEADER_PATTERN=ls;Zn.REGION_SET_PARAM=qn;Zn.SEC_HEADER_PATTERN=us;Zn.SHA256_HEADER=je;Zn.SIGNATURE_HEADER=as;Zn.SIGNATURE_QUERY_PARAM=Bt;Zn.SIGNED_HEADERS_QUERY_PARAM=ss;Zn.SignatureV4=Es;Zn.SignatureV4Base=qt;Zn.TOKEN_HEADER=cs;Zn.TOKEN_QUERY_PARAM=Xt;Zn.UNSIGNABLE_PATTERNS=Kn;Zn.UNSIGNED_PAYLOAD=ps;Zn.clearCredentialCache=jn;Zn.createScope=We;Zn.getCanonicalHeaders=zt;Zn.getCanonicalQuery=gs;Zn.getPayloadHash=Je;Zn.getSigningKey=ys;Zn.hasHeader=xs;Zn.moveHeadersToQuery=ws;Zn.prepareRequest=Ot;Zn.signatureV4aContainer=Yn});
|
|
21
|
-
export{Bo as
|
|
21
|
+
export{Bo as se,br as te,Dr as ue,Fn as ve};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Xo as j,Yo as R,Zo as O,_o as A,ep as y,jp as q,kp as M,mp as C,sp as K}from"./chunk-t5tfppwv.js";import{zt as D}from"./chunk-tabcpx7t.js";import{qu as m,tu as v}from"./chunk-xyjehgzm.js";import{Vu as d,Xu as b,_u as I}from"./chunk-vc4e6xc4.js";import{lQ as T,mQ as _}from"./chunk-4sazy0nq.js";import P from"path";function pt(t){let e=t&&typeof t==="object"&&"cause"in t?t.cause??t:t;if(!(e instanceof D.RunFailedError))return{error:e,detail:v(e),missing:!1};let r=e.stderr.toString().split(/\r?\n/).map((o)=>o.trim()).filter(Boolean),n=r.filter((o)=>o.startsWith("error:")).map((o)=>o.replace(/^error:\s*/,""));return{error:e,detail:n[0]??r.at(-1),missing:r.some((o)=>o.includes("No version matching"))}}var $={resolve:(t)=>q(t)},z={readText:(t)=>d.readText(t),write:async(t,e)=>{await d.write(t,e)},exists:(t)=>d.exists(t),files:(t,e)=>K(t,e)},G=z;function V(t){if(typeof t==="string")return t;if(!Array.isArray(t))return;if(typeof t[0]!=="string")return;return t[0]}function H(t){if(!t||typeof t!=="object"||Array.isArray(t))return;let e=t;if(!Array.isArray(e.plugin))return;return e.plugin}function Q(t){if(typeof t==="string"){let e=t.trim();if(e)return e;return}if(!m(t))return;for(let e of["import","default"]){let r=t[e];if(typeof r!=="string")continue;let n=r.trim();if(!n)continue;return n}}function U(t){if(!m(t))return;let e=t.config;if(!m(e))return;return e}function E(t,e){let r=t.exports;if(!m(r))return;let n=r[`./${e}`];if(!Q(n))return;return{opts:U(n)}}function X(t){let e=t.main;if(typeof e!=="string")return!1;return Boolean(e.trim())}function Y(t){let e=typeof t.json.name==="string"&&t.json.name.trim().length>0?t.json.name.trim():P.basename(t.dir),r=[],n=E(t.json,"server");if(n)r.push({kind:"server",opts:n.opts});else if(X(t.json))r.push({kind:"server"});let o=E(t.json,"tui");if(o)r.push({kind:"tui",opts:o.opts});if(!r.some((c)=>c.kind==="tui")&&C(e,t).length)r.push({kind:"tui"});return r}function g(t,e,r,n=!1){return A(t,O(t,e,r,{formattingOptions:{tabSize:2,insertSpaces:!0},isArrayInsertion:n}))}function Z(t,e,r,n,o=!1){let c=y(r).pkg,u=(e??[]).map((i,p)=>({item:i,i:p,spec:V(i)})).filter((i)=>{if(!i.spec)return!1;if(i.spec===r)return!0;if(i.spec.startsWith("file://"))return!1;return y(i.spec).pkg===c});if(!u.length){if(!e)return{mode:"add",text:g(t,["plugin"],[n])};return{mode:"add",text:g(t,["plugin",e.length],n,!0)}}if(!o)return{mode:"noop",text:t};let s=u[0];if(!s)return{mode:"noop",text:t};if(u.length===1&&s.spec===r)return{mode:"noop",text:t};let a=t;if(typeof s.item==="string")a=g(a,["plugin",s.i],n);if(Array.isArray(s.item)&&typeof s.item[0]==="string")a=g(a,["plugin",s.i,0],r);let l=u.map((i)=>i.i).filter((i)=>i!==s.i).sort((i,p)=>p-i);for(let i of l)a=g(a,["plugin",i],void 0);return{mode:"replace",text:a}}async function gt(t,e=$){let r=await e.resolve(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"install_failed",error:r.error};return{ok:!0,target:r.item}}async function dt(t){let e=await M(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!e.ok)return{ok:!1,code:"manifest_read_failed",file:t,error:e.error};let r=await Promise.resolve().then(()=>Y(e.item)).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"manifest_read_failed",file:e.item.pkg,error:r.error};if(!r.item.length)return{ok:!1,code:"manifest_no_targets",file:e.item.pkg};return{ok:!0,targets:r.item}}function tt(t){if(t.global)return t.config??I.Path.config;let r=t.vcs==="git"&&t.worktree!=="/"?t.worktree:t.directory;return P.join(r,".qitqode")}function et(t){if(t==="server")return"qitqode";return"tui"}async function rt(t,e,r,n,o){let x=[];try{let c=et(e.kind);const S=T(x,await b.acquire(`plug-config:${d.resolve(P.join(t,c))}`),1);let u=o.files(t,c);let s=u[0];for(let f of u){if(!await o.exists(f))continue;s=f;break}let a=await o.readText(s).catch((f)=>{if(f.code==="ENOENT")return"{}";return f});if(a instanceof Error)return{ok:!1,code:"patch_failed",kind:e.kind,error:a};let l=a.trim()?a:"{}";let i=[];let p=j(l,i,{allowTrailingComma:!0});if(i.length){let f=i[0],h=l.substring(0,f.offset).split(`
|
|
3
|
+
`);return{ok:!1,code:"invalid_json",kind:e.kind,file:s,line:h.length,col:h[h.length-1].length+1,parse:R(f.error)}}let N=H(p);let F=e.opts?[r,e.opts]:r;let k=Z(l,N,r,F,n);if(k.mode==="noop")return{ok:!0,item:{kind:e.kind,mode:k.mode,file:s}};let w=await o.write(s,k.text).catch((f)=>f);if(w instanceof Error)return{ok:!1,code:"patch_failed",kind:e.kind,error:w};return{ok:!0,item:{kind:e.kind,mode:k.mode,file:s}}}catch(J){var B=J,L=1}finally{var W=_(x,B,L);W&&await W}}async function mt(t,e=G){let r=tt(t),n=[];for(let o of t.targets){let c=await rt(r,o,t.spec,Boolean(t.force),e);if(!c.ok)return{...c,dir:r};n.push(c.item)}return{ok:!0,dir:r,items:n}}
|
|
4
|
+
export{pt as p,z as q,gt as r,dt as s,mt as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-wm77svwm.js";import"./chunk-7jhrxzjx.js";import"./chunk-jcjaw7tk.js";import{Pd as u}from"./chunk-9xvctnjr.js";import{Sf as s}from"./chunk-9s4whpg1.js";import{Xg as f}from"./chunk-w57j3pgz.js";import"./chunk-ebkztnpf.js";import{Rh as E}from"./chunk-pxx2hz0g.js";import"./chunk-rexdr63q.js";import"./chunk-kqhh2pm9.js";import"./chunk-7fawtcnn.js";import"./chunk-mdzzcrf9.js";import"./chunk-wev34grp.js";import{Pj as S,Qj as p}from"./chunk-sy3n0qhc.js";import"./chunk-364ccew0.js";import"./chunk-vdpd4akk.js";import"./chunk-yjp0btmq.js";import"./chunk-1bx2sjn6.js";import"./chunk-g5prcvq2.js";import"./chunk-t5tfppwv.js";import"./chunk-25bp7pcm.js";import"./chunk-qdcf1ay5.js";import"./chunk-45mjcxqk.js";import"./chunk-qqne79vp.js";import"./chunk-64s7vfj7.js";import"./chunk-e03tgfpb.js";import"./chunk-gwfx7tx7.js";import"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-yykjvt7f.js";import"./chunk-3mepk08v.js";import"./chunk-atpzz901.js";import"./chunk-0g25z230.js";import"./chunk-w9pdvcf9.js";import"./chunk-4gs87ghj.js";import"./chunk-brh35yt5.js";import"./chunk-vcrakhgy.js";import"./chunk-xdjwapwy.js";import"./chunk-7dep7g7c.js";import"./chunk-tabcpx7t.js";import"./chunk-cx7p4ezk.js";import"./chunk-tgd5ctnt.js";import"./chunk-p8kpqyxb.js";import"./chunk-3sz6gw10.js";import"./chunk-xqwvx3qq.js";import"./chunk-qp9y0g73.js";import"./chunk-xyjehgzm.js";import"./chunk-j21dnncc.js";import"./chunk-vc4e6xc4.js";import"./chunk-hnz570f9.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import{EA as I}from"./chunk-pqnbdygz.js";import{$C as d,UI as l,oE as D}from"./chunk-ydc6ypjt.js";import"./chunk-ev3a2sxv.js";import"./chunk-pnq1h5az.js";import"./chunk-4sazy0nq.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
|