@kaeawc/auto-mobile 0.0.93 → 0.0.94
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/dist/build-info.json +12 -12
- package/dist/src/ble-peripheral.py +153 -0
- package/dist/src/{chunk-r6z1eztj.js → chunk-026y62r9.js} +11 -11
- package/dist/src/chunk-0jyfg947.js +4 -0
- package/dist/src/{chunk-8g1922rp.js → chunk-0zfpp1wh.js} +4 -4
- package/dist/src/{chunk-qf6nynk6.js → chunk-13qxf7ym.js} +5 -5
- package/dist/src/chunk-1scenrk7.js +4 -0
- package/dist/src/chunk-1vb5ph1k.js +4 -0
- package/dist/src/{chunk-710rxz9y.js → chunk-20g565q7.js} +3 -3
- package/dist/src/chunk-21h6dhdm.js +5 -0
- package/dist/src/chunk-25mfpthk.js +78 -0
- package/dist/src/{chunk-rbpdk7m0.js → chunk-2b39zyxc.js} +3 -3
- package/dist/src/chunk-2gzd6wbd.js +4 -0
- package/dist/src/{chunk-xgan0qqp.js → chunk-3dntffy9.js} +1 -1
- package/dist/src/chunk-3gfczcsn.js +4 -0
- package/dist/src/{chunk-dgrbdpb7.js → chunk-3h5jz1vb.js} +6 -6
- package/dist/src/{chunk-t6c8akcm.js → chunk-41zcy6b3.js} +3 -3
- package/dist/src/chunk-47n9m2de.js +4 -0
- package/dist/src/chunk-4vxeq0vd.js +58 -0
- package/dist/src/chunk-59dx6qaf.js +4 -0
- package/dist/src/chunk-5sdf9y92.js +4 -0
- package/dist/src/{chunk-58wzr3mt.js → chunk-5wk1t46v.js} +3 -3
- package/dist/src/{chunk-vy3bwm1d.js → chunk-661c50hh.js} +5 -5
- package/dist/src/chunk-68n6bjjd.js +21 -0
- package/dist/src/{chunk-v6pya0dm.js → chunk-69pmjdf2.js} +3 -3
- package/dist/src/{chunk-e98dqnc9.js → chunk-6hrj3jt6.js} +20 -20
- package/dist/src/{chunk-wbh8spm5.js → chunk-6myr26wx.js} +8 -8
- package/dist/src/chunk-6n96k09n.js +4 -0
- package/dist/src/chunk-6vwrbkre.js +4 -0
- package/dist/src/chunk-6wk0yrab.js +4 -0
- package/dist/src/chunk-6yhm9een.js +4 -0
- package/dist/src/{chunk-mjrps0ac.js → chunk-7k7gjg2t.js} +5 -5
- package/dist/src/chunk-7n5fz68h.js +4 -0
- package/dist/src/chunk-8cvnpnbp.js +4 -0
- package/dist/src/chunk-8kzv7rk7.js +4 -0
- package/dist/src/chunk-8nj68t1v.js +167 -0
- package/dist/src/{chunk-g7tmjbkt.js → chunk-96r3bpg7.js} +3 -3
- package/dist/src/chunk-97x887te.js +4 -0
- package/dist/src/{chunk-8ph29g99.js → chunk-99a6tbvd.js} +1 -1
- package/dist/src/chunk-9p5d2994.js +5 -0
- package/dist/src/{chunk-aabchzxk.js → chunk-9q265er0.js} +4 -4
- package/dist/src/{chunk-jh6vhqzx.js → chunk-9xgnrv5w.js} +3 -3
- package/dist/src/chunk-9xgsmshb.js +5 -0
- package/dist/src/chunk-a02d1wgv.js +4 -0
- package/dist/src/{chunk-ndt1ccxm.js → chunk-a9ps00a1.js} +10 -10
- package/dist/src/{chunk-5d2hft6c.js → chunk-aewdveet.js} +3 -3
- package/dist/src/{chunk-ycaj2sgf.js → chunk-b3tdtq7r.js} +6 -6
- package/dist/src/chunk-bn7jx7a2.js +4 -0
- package/dist/src/{chunk-3y6eykz9.js → chunk-bnyw27ja.js} +2 -2
- package/dist/src/{chunk-rqc9ap3x.js → chunk-bpwsg76p.js} +2 -2
- package/dist/src/chunk-bvranw3g.js +4 -0
- package/dist/src/chunk-c25a84zb.js +4 -0
- package/dist/src/chunk-c27yv1dx.js +5 -0
- package/dist/src/chunk-c3ewxm4x.js +5 -0
- package/dist/src/{chunk-rvvy1bte.js → chunk-cb1ga9rd.js} +5 -5
- package/dist/src/chunk-cn7fwy7k.js +4 -0
- package/dist/src/chunk-cnvy4a64.js +4 -0
- package/dist/src/{chunk-7rz9898k.js → chunk-cqhw4yr6.js} +3 -3
- package/dist/src/{chunk-g04bwyj3.js → chunk-ctmfshjc.js} +2 -2
- package/dist/src/chunk-ctwmhz13.js +4 -0
- package/dist/src/{chunk-waqwcjyn.js → chunk-d3jx9bz5.js} +2 -2
- package/dist/src/{chunk-ayp07wbb.js → chunk-d6rb08ga.js} +1 -1
- package/dist/src/chunk-ddqhj4eg.js +5 -0
- package/dist/src/{chunk-r7bpkgff.js → chunk-ddrhs1c3.js} +2 -2
- package/dist/src/chunk-dnjnh9p6.js +4 -0
- package/dist/src/{chunk-wyrkw6hw.js → chunk-dw5rwgya.js} +3 -3
- package/dist/src/{chunk-3xkpk44w.js → chunk-e0870khr.js} +3 -3
- package/dist/src/chunk-ea3k10kj.js +4 -0
- package/dist/src/chunk-emv82m1w.js +7 -0
- package/dist/src/chunk-f3m6pdnx.js +4 -0
- package/dist/src/chunk-f84z32cb.js +4 -0
- package/dist/src/chunk-fpczgf0z.js +4 -0
- package/dist/src/{chunk-2tqzq5qh.js → chunk-g2js4c2v.js} +18 -18
- package/dist/src/chunk-g3af2qbk.js +5 -0
- package/dist/src/{chunk-3qwrzxh0.js → chunk-gadtna7s.js} +6 -6
- package/dist/src/{chunk-ybbtagbt.js → chunk-gcyx407v.js} +3 -3
- package/dist/src/{chunk-bfw6125s.js → chunk-gfpntwc1.js} +3 -3
- package/dist/src/chunk-gmnm5e3e.js +4 -0
- package/dist/src/chunk-gp6vb5gf.js +4 -0
- package/dist/src/chunk-gppgy7pa.js +4 -0
- package/dist/src/chunk-hegfz0ae.js +5 -0
- package/dist/src/chunk-hpzxdp1k.js +17 -0
- package/dist/src/{chunk-qcxzr2my.js → chunk-j69g8b50.js} +3 -3
- package/dist/src/chunk-jvstjnqm.js +19 -0
- package/dist/src/chunk-jzqrv78s.js +4 -0
- package/dist/src/chunk-k2948b8d.js +4 -0
- package/dist/src/chunk-k4ftd40d.js +4 -0
- package/dist/src/{chunk-bxmsax22.js → chunk-kd9vfaxh.js} +3 -3
- package/dist/src/{chunk-s3jc6cwp.js → chunk-kdczmgwk.js} +3 -3
- package/dist/src/{chunk-t6bfvfkg.js → chunk-ke3wn14v.js} +1 -1
- package/dist/src/chunk-kh5n7m6w.js +4 -0
- package/dist/src/{chunk-6wt9rgjf.js → chunk-khejfph4.js} +3 -3
- package/dist/src/chunk-kny2xemh.js +4 -0
- package/dist/src/chunk-knyzw9md.js +4 -0
- package/dist/src/chunk-mbzpt2hp.js +4 -0
- package/dist/src/chunk-mm8rcxad.js +4 -0
- package/dist/src/chunk-nc4516tx.js +4 -0
- package/dist/src/{chunk-6bznss4t.js → chunk-ntfrqrqn.js} +5 -5
- package/dist/src/chunk-nz5h2j52.js +4 -0
- package/dist/src/chunk-p22s97qy.js +4 -0
- package/dist/src/chunk-p9kt1sgr.js +6 -0
- package/dist/src/{chunk-yb97j25b.js → chunk-pf282r5g.js} +4 -4
- package/dist/src/chunk-pnd4mrxy.js +4 -0
- package/dist/src/chunk-pqqteyj6.js +4 -0
- package/dist/src/{chunk-6xmss8er.js → chunk-qj1tbnv2.js} +6 -6
- package/dist/src/chunk-qnh9egwr.js +4 -0
- package/dist/src/chunk-qy3khhf8.js +8 -0
- package/dist/src/{chunk-z637nqg8.js → chunk-r0vp315h.js} +6 -6
- package/dist/src/chunk-r4j43b9s.js +237 -0
- package/dist/src/{chunk-1p7xf5kb.js → chunk-r54cxxze.js} +3 -3
- package/dist/src/{chunk-yf7ympyz.js → chunk-r6pvhj33.js} +92 -92
- package/dist/src/chunk-rb7aa5gr.js +54 -0
- package/dist/src/chunk-rdj50kb4.js +4 -0
- package/dist/src/chunk-rnd4vcas.js +4 -0
- package/dist/src/{chunk-w5b2jwk3.js → chunk-s3y3zfcx.js} +8 -8
- package/dist/src/chunk-s4g43k75.js +5 -0
- package/dist/src/chunk-sfqe223f.js +311 -0
- package/dist/src/{chunk-284ptqa4.js → chunk-sqdrxjw5.js} +5 -5
- package/dist/src/{chunk-zgja5f3p.js → chunk-t54k47em.js} +4 -4
- package/dist/src/{chunk-3sy6ahhz.js → chunk-tek4pnvv.js} +10 -10
- package/dist/src/chunk-tn74y7af.js +4 -0
- package/dist/src/{chunk-thbh3jew.js → chunk-tvq0nzam.js} +3 -3
- package/dist/src/{chunk-0jrrsnc9.js → chunk-tx4f0h9c.js} +4 -4
- package/dist/src/chunk-vdqag3fj.js +5 -0
- package/dist/src/chunk-vz5zzs57.js +4 -0
- package/dist/src/chunk-w4s2vfpj.js +4 -0
- package/dist/src/{chunk-4hw3665t.js → chunk-w5yypt53.js} +11 -11
- package/dist/src/{chunk-8037tzzj.js → chunk-w68v64vh.js} +3 -3
- package/dist/src/chunk-whwj0pdk.js +5 -0
- package/dist/src/chunk-wnmqt1dc.js +4 -0
- package/dist/src/{chunk-cyy71ggq.js → chunk-wpe46vsa.js} +3 -3
- package/dist/src/{chunk-w3vs79ex.js → chunk-wxdjeb4k.js} +19 -19
- package/dist/src/chunk-xcqzwf9j.js +247 -0
- package/dist/src/chunk-xezekwwn.js +5 -0
- package/dist/src/chunk-xf19m15s.js +4 -0
- package/dist/src/chunk-xghbxha4.js +4 -0
- package/dist/src/{chunk-00167wan.js → chunk-xn9m3xc2.js} +5 -5
- package/dist/src/{chunk-26k317v5.js → chunk-yqfz4vts.js} +3 -3
- package/dist/src/chunk-z8tvs8nk.js +5 -0
- package/dist/src/chunk-zm2rehqb.js +5 -0
- package/dist/src/chunk-zs6dqm35.js +4 -0
- package/dist/src/daemon/processEntry.js +2 -2
- package/dist/src/index.js +4 -4
- package/dist/src/runtime/bunRuntimeGuard.js +2 -2
- package/dist/src/utils/workers/iosBundleExtractWorker.js +2 -2
- package/package.json +2 -2
- package/dist/src/chunk-0n6swkwg.js +0 -5
- package/dist/src/chunk-0qsy1qsx.js +0 -57
- package/dist/src/chunk-11m8wj8j.js +0 -237
- package/dist/src/chunk-23p5f095.js +0 -4
- package/dist/src/chunk-28re4xrg.js +0 -4
- package/dist/src/chunk-2f9rkmhx.js +0 -5
- package/dist/src/chunk-2fxdh48t.js +0 -4
- package/dist/src/chunk-2tbdrbt6.js +0 -4
- package/dist/src/chunk-32gvv9b4.js +0 -21
- package/dist/src/chunk-3f3t1x97.js +0 -8
- package/dist/src/chunk-3fspkbc7.js +0 -4
- package/dist/src/chunk-3vg455e6.js +0 -4
- package/dist/src/chunk-49bsqdx3.js +0 -4
- package/dist/src/chunk-5snsn9cf.js +0 -4
- package/dist/src/chunk-5tm9mn47.js +0 -54
- package/dist/src/chunk-5zc77a5t.js +0 -4
- package/dist/src/chunk-64j0majr.js +0 -19
- package/dist/src/chunk-65y8v4td.js +0 -17
- package/dist/src/chunk-6awz7vhq.js +0 -5
- package/dist/src/chunk-6ep7f5ge.js +0 -4
- package/dist/src/chunk-7cs2da62.js +0 -5
- package/dist/src/chunk-7g103b54.js +0 -4
- package/dist/src/chunk-7j5vj4pa.js +0 -4
- package/dist/src/chunk-7tw8x05v.js +0 -4
- package/dist/src/chunk-7zy586cb.js +0 -4
- package/dist/src/chunk-84nanf8s.js +0 -5
- package/dist/src/chunk-8gvwcv2p.js +0 -4
- package/dist/src/chunk-8thrmfat.js +0 -4
- package/dist/src/chunk-8zgzzs7k.js +0 -78
- package/dist/src/chunk-97b1zmaq.js +0 -4
- package/dist/src/chunk-9fth9ayh.js +0 -4
- package/dist/src/chunk-9j6anhjr.js +0 -4
- package/dist/src/chunk-bfjwqk8q.js +0 -4
- package/dist/src/chunk-bnhscm2n.js +0 -4
- package/dist/src/chunk-c1vs4g1n.js +0 -4
- package/dist/src/chunk-ct3e7yng.js +0 -4
- package/dist/src/chunk-ddzkz92z.js +0 -4
- package/dist/src/chunk-drdz8hee.js +0 -5
- package/dist/src/chunk-eersndy7.js +0 -5
- package/dist/src/chunk-eggq53ks.js +0 -4
- package/dist/src/chunk-f2dya7cs.js +0 -4
- package/dist/src/chunk-fbakd6cw.js +0 -4
- package/dist/src/chunk-fgb98zjj.js +0 -5
- package/dist/src/chunk-fmpad823.js +0 -5
- package/dist/src/chunk-g0xr8zw0.js +0 -4
- package/dist/src/chunk-g3rjs80x.js +0 -4
- package/dist/src/chunk-g78rtrfv.js +0 -4
- package/dist/src/chunk-gabgv3y5.js +0 -4
- package/dist/src/chunk-gmr45m8f.js +0 -4
- package/dist/src/chunk-gsyfebqj.js +0 -4
- package/dist/src/chunk-h5rpn9wr.js +0 -247
- package/dist/src/chunk-hb1x7v55.js +0 -4
- package/dist/src/chunk-hrfytkxh.js +0 -168
- package/dist/src/chunk-j4yjzbak.js +0 -4
- package/dist/src/chunk-jd6a5v6p.js +0 -5
- package/dist/src/chunk-kn5spq15.js +0 -4
- package/dist/src/chunk-m94qs0f0.js +0 -4
- package/dist/src/chunk-n03dmn5q.js +0 -5
- package/dist/src/chunk-n72qhwd9.js +0 -4
- package/dist/src/chunk-nr6y0n4y.js +0 -5
- package/dist/src/chunk-pcsen2vs.js +0 -4
- package/dist/src/chunk-ppfr0b8h.js +0 -4
- package/dist/src/chunk-q10bdnat.js +0 -4
- package/dist/src/chunk-q9xmq595.js +0 -4
- package/dist/src/chunk-qyqypn28.js +0 -5
- package/dist/src/chunk-r2epb56s.js +0 -4
- package/dist/src/chunk-r5bxavdx.js +0 -311
- package/dist/src/chunk-r8jf3d92.js +0 -4
- package/dist/src/chunk-rc0dbypm.js +0 -4
- package/dist/src/chunk-rhcty4ms.js +0 -4
- package/dist/src/chunk-rpvckv3p.js +0 -4
- package/dist/src/chunk-ry0mz41y.js +0 -4
- package/dist/src/chunk-sfv61xjb.js +0 -6
- package/dist/src/chunk-t7w8rctc.js +0 -4
- package/dist/src/chunk-v2wd4n3e.js +0 -5
- package/dist/src/chunk-w4zga19f.js +0 -4
- package/dist/src/chunk-w7hkv422.js +0 -5
- package/dist/src/chunk-xa73x2cx.js +0 -5
- package/dist/src/chunk-y2vs6jwg.js +0 -4
- package/dist/src/chunk-yattm52s.js +0 -4
- package/dist/src/chunk-yjawdzk8.js +0 -4
- package/dist/src/chunk-zs1sghs9.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{eJ}from"./chunk-p9kt1sgr.js";import"./chunk-6hrj3jt6.js";import"./chunk-cqhw4yr6.js";import"./chunk-4vxeq0vd.js";import"./chunk-9xgnrv5w.js";import"./chunk-69pmjdf2.js";import"./chunk-sfqe223f.js";import"./chunk-r6pvhj33.js";import"./chunk-w5yypt53.js";import"./chunk-aewdveet.js";import"./chunk-r0vp315h.js";import"./chunk-5wk1t46v.js";export{eJ as getSharedStorageReadService};
|
|
3
|
+
|
|
4
|
+
//# debugId=25AFCC515312329664756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{rc,DE,qf,H8,q8,V8,e}from"./chunk-r0vp315h.js";import"./chunk-5wk1t46v.js";export{rc as LogLevel,H8 as isStructuredLoggingEnabled,V8 as logSinkStalledWithin,e as logger,q8 as registerLogRetentionNamespaceSource,DE as resolveAutomobileLogFormat,qf as resolveAutomobileLogSink};
|
|
3
|
+
|
|
4
|
+
//# debugId=5AB1A4E67483E1FC64756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
/*! js-yaml 5.5.0 https://github.com/nodeca/js-yaml @license MIT */var E=Symbol("NOT_RESOLVED");function _(e,n){return{tagName:e,nodeKind:"scalar",implicit:n.implicit??!1,matchByTagPrefix:n.matchByTagPrefix??!1,implicitFirstChars:n.implicitFirstChars??null,resolve:n.resolve,identify:n.identify,represent:n.represent??((i)=>String(i)),representTagName:n.representTagName??(()=>e)}}function Ie(e,n){let i=n.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addItem:n.addItem,finalize:n.finalize??((r)=>r),carrierIsResult:i,identify:n.identify,represent:n.represent??((r)=>r),representTagName:n.representTagName??(()=>e)}}function ie(e,n){let i=n.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addPair:n.addPair,has:n.has,keys:n.keys,get:n.get,finalize:n.finalize??((r)=>r),carrierIsResult:i,identify:n.identify,represent:n.represent??((r)=>r),representTagName:n.representTagName??(()=>e)}}var Fn=_("tag:yaml.org,2002:str",{resolve:(e)=>e,identify:(e)=>typeof e==="string"}),xn=["","~","null","Null","NULL"],bn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:(e)=>{if(xn.indexOf(e)!==-1)return null;return E},identify:(e)=>e===null,represent:()=>"null"}),wn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,n)=>{if(e==="null"||n&&e==="")return null;return E},identify:(e)=>e===null,represent:()=>"null"}),Pn=["","~","null","Null","NULL"],Rn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:(e)=>{if(Pn.indexOf(e)!==-1)return null;return E},identify:(e)=>e===null,represent:()=>"null"}),$n=["true","True","TRUE"],Bn=["false","False","FALSE"],Dn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:(e)=>{if($n.indexOf(e)!==-1)return!0;if(Bn.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Mn=["true"],Un=["false"],Kn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:(e)=>{if(Mn.indexOf(e)!==-1)return!0;if(Un.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Yn=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],qn=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],Wn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:(e)=>{if(Yn.indexOf(e)!==-1)return!0;if(qn.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Gn=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),Vn=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Hn(e){let n=e,i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0o"))return i*parseInt(n.slice(2),8);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);return i*parseInt(n,10)}function Qn(e,n){if(n){if(!Vn.test(e))return E}else if(!Gn.test(e))return E;let i=Hn(e);return Number.isFinite(i)?i:E}var ze=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Qn,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),jn=new RegExp("^-?(?:0|[1-9][0-9]*)$"),zn=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Xn(e){let n=e,i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0o"))return i*parseInt(n.slice(2),8);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);return i*parseInt(n,10)}function Jn(e,n){if(n){if(!zn.test(e))return E}else if(!jn.test(e))return E;let i=Xn(e);return Number.isFinite(i)?i:E}var Zn=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Jn,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),ei=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function ni(e){let n=e.replace(/_/g,""),i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);if(n.includes(":")){let r=0;for(let t of n.split(":"))r=r*60+Number(t);return i*r}if(n!=="0"&&n[0]==="0")return i*parseInt(n,8);return i*parseInt(n,10)}function ii(e){if(!ei.test(e))return E;let n=ni(e);return Number.isFinite(n)?n:E}var he=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:ii,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),ri=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),ti=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oi(e){if(!ri.test(e))return E;let n=e.toLowerCase(),i=n[0]==="-"?-1:1;if("+-".includes(n[0]))n=n.slice(1);if(n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let r=i*parseFloat(n);if(Number.isFinite(r)||ti.test(e))return r;return E}function ai(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var Xe=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:oi,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:ai}),li=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),ci=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function si(e,n){if(n){if(!ci.test(e))return E;let r=e.toLowerCase(),t=r[0]==="-"?-1:1;if("+-".includes(r[0]))r=r.slice(1);if(r===".inf")return t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;let o=t*parseFloat(r);return Number.isFinite(o)?o:E}if(!li.test(e))return E;let i=Number(e);if(Number.isFinite(i))return i;return E}function fi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var ui=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:si,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:fi}),pi=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),di=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function hi(e){if(!pi.test(e))return E;let n=e.toLowerCase().replace(/_/g,""),i=n[0]==="-"?-1:1;if("+-".includes(n[0]))n=n.slice(1);if(n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let r=0;if(n.includes(":")){for(let t of n.split(":"))r=r*60+Number(t);r*=i}else r=i*parseFloat(n);if(Number.isFinite(r)||di.test(e))return r;return E}function gi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var ge=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:hi,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:gi}),s5=_("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,n)=>{if(e==="<<"||n&&e==="")return"<<";return E},identify:()=>!1}),mi=/^[A-Za-z0-9+/]*={0,2}$/;function Si(e){let n=e.replace(/\s/g,"");if(n.length%4!==0||!mi.test(n))return E;let i=atob(n),r=new Uint8Array(i.length);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return r}function Ei(e){let n="";for(let i=0;i<e.length;i++)n+=String.fromCharCode(e[i]);return btoa(n)}var Ai=_("tag:yaml.org,2002:binary",{resolve:Si,identify:(e)=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ei}),Ti=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function we(e,n,i,r=0,t=0,o=0,a=0){let l=new Date(Date.UTC(e,n,i,r,t,o,a));return l.setUTCFullYear(e,n,i),l}function Ni(e){let n=Ti.exec(e);if(n===null)n=Li.exec(e);if(n===null)return E;let i=+n[1],r=+n[2]-1,t=+n[3];if(!n[4]){let s=we(i,r,t);if(s.getUTCFullYear()!==i||s.getUTCMonth()!==r||s.getUTCDate()!==t)return E;return s}let o=+n[4],a=+n[5],l=+n[6],c=0;if(o>23||a>59||l>59)return E;if(n[7]){let s=n[7].slice(0,3);while(s.length<3)s+="0";c=+s}let f=we(i,r,t,o,a,l,c);if(f.getUTCFullYear()!==i||f.getUTCMonth()!==r||f.getUTCDate()!==t)return E;if(n[9]){let s=+n[10],u=+(n[11]||0);if(s>23||u>59)return E;let p=(s*60+u)*60000;f.setTime(f.getTime()-(n[9]==="-"?-p:p))}return f}var Ci=_("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:Ni,identify:(e)=>e instanceof Date,represent:(e)=>e.toISOString()}),Ii=Ie("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,n)=>{e.push(n)},identify:Array.isArray});function re(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!1;let n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function me(e,n){let i={};for(let r of n)if(e[r]!==void 0)i[r]=e[r];return i}var _i=Ie("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,n)=>{let i;if(n instanceof Map){if(n.size!==1)return"cannot resolve an ordered map item";i=n.keys().next().value}else if(re(n)){let r=Object.keys(n);if(r.length!==1)return"cannot resolve an ordered map item";i=r[0]}else return"cannot resolve an ordered map item";if(e.seen.has(i))return"duplicate key in ordered map";return e.seen.add(i),e.list.push(n),""},finalize:(e)=>e.list,identify:()=>!1}),Oi=Ie("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,n)=>{if(n instanceof Map){if(n.size!==1)return"cannot resolve a pairs item";return e.push(n.entries().next().value),""}if(Object.prototype.toString.call(n)!=="[object Object]")return"cannot resolve a pairs item";let i=n,r=Object.keys(i);if(r.length!==1)return"cannot resolve a pairs item";return e.push([r[0],i[r[0]]]),""},identify:()=>!1}),vi=ie("tag:yaml.org,2002:map",{create:()=>({}),identify:re,represent:(e)=>{let n=new Map;for(let i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{if(n!==null&&typeof n==="object")return"object-based map does not support complex keys";let r=String(n);if(r==="__proto__")Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0});else e[r]=i;return""},has:(e,n)=>{if(n!==null&&typeof n==="object")return!1;return Object.prototype.hasOwnProperty.call(e,String(n))},keys:(e)=>Object.keys(e),get:(e,n)=>{let i=String(n);if(!Object.prototype.hasOwnProperty.call(e,i))return null;return e[i]}}),yi=ie("tag:yaml.org,2002:set",{create:()=>new Set,identify:(e)=>e instanceof Set,represent:(e)=>{let n=new Map;for(let i of e)n.set(i,null);return n},addPair:(e,n,i)=>{if(i!==null)return"cannot resolve a set item";return e.add(n),""},has:(e,n)=>e.has(n),keys:(e)=>e.keys(),get:()=>null});function ki(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Fi(){return{scalar:[],sequence:[],mapping:[]}}function xi(e){let n=[];for(let i of e){let r=n.length;for(let t=0;t<n.length;t++){let o=n[t];if(o.nodeKind===i.nodeKind&&o.tagName===i.tagName&&o.matchByTagPrefix===i.matchByTagPrefix){r=t;break}}n[r]=i}return n}var te=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(n){let i=xi(n),r=[],t=ki(),o=Fi();for(let s of i){if(s.nodeKind==="scalar"&&s.implicit){if(s.matchByTagPrefix)throw Error("Implicit scalar tags cannot match by tag prefix");r.push(s)}switch(s.nodeKind){case"scalar":if(s.matchByTagPrefix)o.scalar.push(s);else t.scalar[s.tagName]=s;break;case"sequence":if(s.matchByTagPrefix)o.sequence.push(s);else t.sequence[s.tagName]=s;break;case"mapping":if(s.matchByTagPrefix)o.mapping.push(s);else t.mapping[s.tagName]=s}}let a=r.filter((s)=>s.implicitFirstChars===null),l=new Set;for(let s of r)if(s.implicitFirstChars!==null)for(let u of s.implicitFirstChars)l.add(u);let c=new Map;for(let s of l)c.set(s,r.filter((u)=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(s)!==-1));let f=t.scalar["tag:yaml.org,2002:str"];if(!f)throw Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=i,this.implicitScalarTags=r,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=f,this.defaultSequenceTag=t.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=t.mapping["tag:yaml.org,2002:map"],this.exact=t,this.prefix=o}lookupScalarTag(n){let i=this.exact.scalar[n];if(i)return i;for(let r of this.prefix.scalar)if(n.startsWith(r.tagName))return r}lookupSequenceTag(n){let i=this.exact.sequence[n];if(i)return i;for(let r of this.prefix.sequence)if(n.startsWith(r.tagName))return r}lookupMappingTag(n){let i=this.exact.mapping[n];if(i)return i;for(let r of this.prefix.mapping)if(n.startsWith(r.tagName))return r}resolveImplicitScalarTag(n){let i=this.implicitScalarByFirstChar.get(n.charAt(0))??this.implicitScalarAnyFirstChar;for(let t of i){let o=t.resolve(n,!1,t.tagName);if(o!==E)return{value:o,tag:t}}let r=this.defaultScalarTag;return{value:r.resolve(n,!1,r.tagName),tag:r}}withTags(...n){let i=[];for(let r of n)i=i.concat(r);return new e([...this.tags,...i])}},_e=new te([Fn,Ii,vi]),Ot=new te([..._e.tags,wn,Kn,Zn,ui]),a5=new te([..._e.tags,bn,Dn,ze,Xe]),bi=new te([..._e.tags,Rn,Wn,he,ge,Ci,s5,Ai,_i,Oi,yi]),wi=bi.withTags({...he,resolve:(e,n,i)=>{let r=he.resolve(e,n,i);return r===E?ze.resolve(e,n,i):r}},{...ge,resolve:(e,n,i)=>{let r=ge.resolve(e,n,i);return r===E?Xe.resolve(e,n,i):r}}),vt=ie("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,n,i)=>(e.set(n,i),""),has:(e,n)=>e.has(n),keys:(e)=>e.keys(),get:(e,n)=>e.get(n),identify:(e)=>e instanceof Map||re(e),represent:(e)=>{if(e instanceof Map)return e;let n=new Map,i=e;for(let r of Object.keys(i))n.set(r,i[r]);return n}});function Pe(e){if(Array.isArray(e)){let n=Array.prototype.slice.call(e);for(let i=0;i<n.length;i++){if(Array.isArray(n[i]))return null;if(typeof n[i]==="object"&&Object.prototype.toString.call(n[i])==="[object Object]")n[i]="[object Object]"}return String(n)}if(typeof e==="object"&&Object.prototype.toString.call(e)==="[object Object]")return"[object Object]";return String(e)}var yt=ie("tag:yaml.org,2002:map",{create:()=>({}),identify:re,represent:(e)=>{let n=new Map;for(let i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{let r=Pe(n);if(r===null)return"nested arrays are not supported inside keys";if(r==="__proto__")Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0});else e[r]=i;return""},has:(e,n)=>{let i=Pe(n);return i!==null&&Object.prototype.hasOwnProperty.call(e,i)},keys:(e)=>Object.keys(e),get:(e,n)=>{let i=String(n);if(!Object.prototype.hasOwnProperty.call(e,i))return null;return e[i]}}),Pi={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function le(e,n,i,r,t){let o="",a="",l=Math.floor(t/2)-1;if(r-n>l)o=" ... ",n=r-l+o.length;if(i-r>l)a=" ...",i=r+l-a.length;return{str:o+e.slice(n,i).replace(/\t/g,"\u2192")+a,pos:r-n+o.length}}function ce(e,n){return" ".repeat(Math.max(n-e.length,0))+e}function Ri(e,n){if(!e.buffer)return null;let i={...Pi,...n},r=/\r?\n|\r|\0/g,t=[0],o=[],a,l=-1;while(a=r.exec(e.buffer))if(o.push(a.index),t.push(a.index+a[0].length),e.position<=a.index&&l<0)l=t.length-2;if(l<0)l=t.length-1;let c="",f=Math.min(e.line+i.linesAfter,o.length).toString().length,s=i.maxLength-(i.indent+f+3);for(let p=1;p<=i.linesBefore;p++){if(l-p<0)break;let m=le(e.buffer,t[l-p],o[l-p],e.position-(t[l]-t[l-p]),s);c=`${" ".repeat(i.indent)}${ce((e.line-p+1).toString(),f)} | ${m.str}
|
|
2
|
+
/*! js-yaml 5.5.0 https://github.com/nodeca/js-yaml @license MIT */var E=Symbol("NOT_RESOLVED");function _(e,n){return{tagName:e,nodeKind:"scalar",implicit:n.implicit??!1,matchByTagPrefix:n.matchByTagPrefix??!1,implicitFirstChars:n.implicitFirstChars??null,resolve:n.resolve,identify:n.identify,represent:n.represent??((i)=>String(i)),representTagName:n.representTagName??(()=>e)}}function Ie(e,n){let i=n.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addItem:n.addItem,finalize:n.finalize??((r)=>r),carrierIsResult:i,identify:n.identify,represent:n.represent??((r)=>r),representTagName:n.representTagName??(()=>e)}}function ie(e,n){let i=n.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addPair:n.addPair,has:n.has,keys:n.keys,get:n.get,finalize:n.finalize??((r)=>r),carrierIsResult:i,identify:n.identify,represent:n.represent??((r)=>r),representTagName:n.representTagName??(()=>e)}}var Fn=_("tag:yaml.org,2002:str",{resolve:(e)=>e,identify:(e)=>typeof e==="string"}),xn=["","~","null","Null","NULL"],bn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:(e)=>{if(xn.indexOf(e)!==-1)return null;return E},identify:(e)=>e===null,represent:()=>"null"}),wn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,n)=>{if(e==="null"||n&&e==="")return null;return E},identify:(e)=>e===null,represent:()=>"null"}),Pn=["","~","null","Null","NULL"],Rn=_("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:(e)=>{if(Pn.indexOf(e)!==-1)return null;return E},identify:(e)=>e===null,represent:()=>"null"}),$n=["true","True","TRUE"],Bn=["false","False","FALSE"],Dn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:(e)=>{if($n.indexOf(e)!==-1)return!0;if(Bn.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Mn=["true"],Un=["false"],Kn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:(e)=>{if(Mn.indexOf(e)!==-1)return!0;if(Un.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Yn=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],qn=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],Wn=_("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:(e)=>{if(Yn.indexOf(e)!==-1)return!0;if(qn.indexOf(e)!==-1)return!1;return E},identify:(e)=>Object.prototype.toString.call(e)==="[object Boolean]",represent:(e)=>e?"true":"false"}),Gn=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),Vn=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Hn(e){let n=e,i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0o"))return i*parseInt(n.slice(2),8);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);return i*parseInt(n,10)}function Qn(e,n){if(n){if(!Vn.test(e))return E}else if(!Gn.test(e))return E;let i=Hn(e);return Number.isFinite(i)?i:E}var ze=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Qn,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),jn=new RegExp("^-?(?:0|[1-9][0-9]*)$"),zn=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function Xn(e){let n=e,i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0o"))return i*parseInt(n.slice(2),8);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);return i*parseInt(n,10)}function Jn(e,n){if(n){if(!zn.test(e))return E}else if(!jn.test(e))return E;let i=Xn(e);return Number.isFinite(i)?i:E}var Zn=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Jn,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),ei=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function ni(e){let n=e.replace(/_/g,""),i=1;if(n[0]==="-"||n[0]==="+"){if(n[0]==="-")i=-1;n=n.slice(1)}if(n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);if(n.includes(":")){let r=0;for(let t of n.split(":"))r=r*60+Number(t);return i*r}if(n!=="0"&&n[0]==="0")return i*parseInt(n,8);return i*parseInt(n,10)}function ii(e){if(!ei.test(e))return E;let n=ni(e);return Number.isFinite(n)?n:E}var he=_("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:ii,identify:(e)=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:(e)=>e.toString(10)}),ri=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),ti=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oi(e){if(!ri.test(e))return E;let n=e.toLowerCase(),i=n[0]==="-"?-1:1;if("+-".includes(n[0]))n=n.slice(1);if(n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let r=i*parseFloat(n);if(Number.isFinite(r)||ti.test(e))return r;return E}function ai(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var Xe=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:oi,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:ai}),li=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),ci=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function si(e,n){if(n){if(!ci.test(e))return E;let r=e.toLowerCase(),t=r[0]==="-"?-1:1;if("+-".includes(r[0]))r=r.slice(1);if(r===".inf")return t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;let o=t*parseFloat(r);return Number.isFinite(o)?o:E}if(!li.test(e))return E;let i=Number(e);if(Number.isFinite(i))return i;return E}function fi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var ui=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:si,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:fi}),pi=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),di=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function hi(e){if(!pi.test(e))return E;let n=e.toLowerCase().replace(/_/g,""),i=n[0]==="-"?-1:1;if("+-".includes(n[0]))n=n.slice(1);if(n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let r=0;if(n.includes(":")){for(let t of n.split(":"))r=r*60+Number(t);r*=i}else r=i*parseFloat(n);if(Number.isFinite(r)||di.test(e))return r;return E}function gi(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var ge=_("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:hi,identify:(e)=>typeof e==="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:gi}),w5=_("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,n)=>{if(e==="<<"||n&&e==="")return"<<";return E},identify:()=>!1}),mi=/^[A-Za-z0-9+/]*={0,2}$/;function Si(e){let n=e.replace(/\s/g,"");if(n.length%4!==0||!mi.test(n))return E;let i=atob(n),r=new Uint8Array(i.length);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return r}function Ei(e){let n="";for(let i=0;i<e.length;i++)n+=String.fromCharCode(e[i]);return btoa(n)}var Ai=_("tag:yaml.org,2002:binary",{resolve:Si,identify:(e)=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ei}),Ti=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function we(e,n,i,r=0,t=0,o=0,a=0){let l=new Date(Date.UTC(e,n,i,r,t,o,a));return l.setUTCFullYear(e,n,i),l}function Ni(e){let n=Ti.exec(e);if(n===null)n=Li.exec(e);if(n===null)return E;let i=+n[1],r=+n[2]-1,t=+n[3];if(!n[4]){let s=we(i,r,t);if(s.getUTCFullYear()!==i||s.getUTCMonth()!==r||s.getUTCDate()!==t)return E;return s}let o=+n[4],a=+n[5],l=+n[6],c=0;if(o>23||a>59||l>59)return E;if(n[7]){let s=n[7].slice(0,3);while(s.length<3)s+="0";c=+s}let f=we(i,r,t,o,a,l,c);if(f.getUTCFullYear()!==i||f.getUTCMonth()!==r||f.getUTCDate()!==t)return E;if(n[9]){let s=+n[10],u=+(n[11]||0);if(s>23||u>59)return E;let p=(s*60+u)*60000;f.setTime(f.getTime()-(n[9]==="-"?-p:p))}return f}var Ci=_("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:Ni,identify:(e)=>e instanceof Date,represent:(e)=>e.toISOString()}),Ii=Ie("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,n)=>{e.push(n)},identify:Array.isArray});function re(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!1;let n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function me(e,n){let i={};for(let r of n)if(e[r]!==void 0)i[r]=e[r];return i}var _i=Ie("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,n)=>{let i;if(n instanceof Map){if(n.size!==1)return"cannot resolve an ordered map item";i=n.keys().next().value}else if(re(n)){let r=Object.keys(n);if(r.length!==1)return"cannot resolve an ordered map item";i=r[0]}else return"cannot resolve an ordered map item";if(e.seen.has(i))return"duplicate key in ordered map";return e.seen.add(i),e.list.push(n),""},finalize:(e)=>e.list,identify:()=>!1}),Oi=Ie("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,n)=>{if(n instanceof Map){if(n.size!==1)return"cannot resolve a pairs item";return e.push(n.entries().next().value),""}if(Object.prototype.toString.call(n)!=="[object Object]")return"cannot resolve a pairs item";let i=n,r=Object.keys(i);if(r.length!==1)return"cannot resolve a pairs item";return e.push([r[0],i[r[0]]]),""},identify:()=>!1}),vi=ie("tag:yaml.org,2002:map",{create:()=>({}),identify:re,represent:(e)=>{let n=new Map;for(let i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{if(n!==null&&typeof n==="object")return"object-based map does not support complex keys";let r=String(n);if(r==="__proto__")Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0});else e[r]=i;return""},has:(e,n)=>{if(n!==null&&typeof n==="object")return!1;return Object.prototype.hasOwnProperty.call(e,String(n))},keys:(e)=>Object.keys(e),get:(e,n)=>{let i=String(n);if(!Object.prototype.hasOwnProperty.call(e,i))return null;return e[i]}}),yi=ie("tag:yaml.org,2002:set",{create:()=>new Set,identify:(e)=>e instanceof Set,represent:(e)=>{let n=new Map;for(let i of e)n.set(i,null);return n},addPair:(e,n,i)=>{if(i!==null)return"cannot resolve a set item";return e.add(n),""},has:(e,n)=>e.has(n),keys:(e)=>e.keys(),get:()=>null});function ki(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Fi(){return{scalar:[],sequence:[],mapping:[]}}function xi(e){let n=[];for(let i of e){let r=n.length;for(let t=0;t<n.length;t++){let o=n[t];if(o.nodeKind===i.nodeKind&&o.tagName===i.tagName&&o.matchByTagPrefix===i.matchByTagPrefix){r=t;break}}n[r]=i}return n}var te=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(n){let i=xi(n),r=[],t=ki(),o=Fi();for(let s of i){if(s.nodeKind==="scalar"&&s.implicit){if(s.matchByTagPrefix)throw Error("Implicit scalar tags cannot match by tag prefix");r.push(s)}switch(s.nodeKind){case"scalar":if(s.matchByTagPrefix)o.scalar.push(s);else t.scalar[s.tagName]=s;break;case"sequence":if(s.matchByTagPrefix)o.sequence.push(s);else t.sequence[s.tagName]=s;break;case"mapping":if(s.matchByTagPrefix)o.mapping.push(s);else t.mapping[s.tagName]=s}}let a=r.filter((s)=>s.implicitFirstChars===null),l=new Set;for(let s of r)if(s.implicitFirstChars!==null)for(let u of s.implicitFirstChars)l.add(u);let c=new Map;for(let s of l)c.set(s,r.filter((u)=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(s)!==-1));let f=t.scalar["tag:yaml.org,2002:str"];if(!f)throw Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=i,this.implicitScalarTags=r,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=f,this.defaultSequenceTag=t.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=t.mapping["tag:yaml.org,2002:map"],this.exact=t,this.prefix=o}lookupScalarTag(n){let i=this.exact.scalar[n];if(i)return i;for(let r of this.prefix.scalar)if(n.startsWith(r.tagName))return r}lookupSequenceTag(n){let i=this.exact.sequence[n];if(i)return i;for(let r of this.prefix.sequence)if(n.startsWith(r.tagName))return r}lookupMappingTag(n){let i=this.exact.mapping[n];if(i)return i;for(let r of this.prefix.mapping)if(n.startsWith(r.tagName))return r}resolveImplicitScalarTag(n){let i=this.implicitScalarByFirstChar.get(n.charAt(0))??this.implicitScalarAnyFirstChar;for(let t of i){let o=t.resolve(n,!1,t.tagName);if(o!==E)return{value:o,tag:t}}let r=this.defaultScalarTag;return{value:r.resolve(n,!1,r.tagName),tag:r}}withTags(...n){let i=[];for(let r of n)i=i.concat(r);return new e([...this.tags,...i])}},_e=new te([Fn,Ii,vi]),Ot=new te([..._e.tags,wn,Kn,Zn,ui]),R5=new te([..._e.tags,bn,Dn,ze,Xe]),bi=new te([..._e.tags,Rn,Wn,he,ge,Ci,w5,Ai,_i,Oi,yi]),wi=bi.withTags({...he,resolve:(e,n,i)=>{let r=he.resolve(e,n,i);return r===E?ze.resolve(e,n,i):r}},{...ge,resolve:(e,n,i)=>{let r=ge.resolve(e,n,i);return r===E?Xe.resolve(e,n,i):r}}),vt=ie("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,n,i)=>(e.set(n,i),""),has:(e,n)=>e.has(n),keys:(e)=>e.keys(),get:(e,n)=>e.get(n),identify:(e)=>e instanceof Map||re(e),represent:(e)=>{if(e instanceof Map)return e;let n=new Map,i=e;for(let r of Object.keys(i))n.set(r,i[r]);return n}});function Pe(e){if(Array.isArray(e)){let n=Array.prototype.slice.call(e);for(let i=0;i<n.length;i++){if(Array.isArray(n[i]))return null;if(typeof n[i]==="object"&&Object.prototype.toString.call(n[i])==="[object Object]")n[i]="[object Object]"}return String(n)}if(typeof e==="object"&&Object.prototype.toString.call(e)==="[object Object]")return"[object Object]";return String(e)}var yt=ie("tag:yaml.org,2002:map",{create:()=>({}),identify:re,represent:(e)=>{let n=new Map;for(let i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{let r=Pe(n);if(r===null)return"nested arrays are not supported inside keys";if(r==="__proto__")Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0});else e[r]=i;return""},has:(e,n)=>{let i=Pe(n);return i!==null&&Object.prototype.hasOwnProperty.call(e,i)},keys:(e)=>Object.keys(e),get:(e,n)=>{let i=String(n);if(!Object.prototype.hasOwnProperty.call(e,i))return null;return e[i]}}),Pi={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function le(e,n,i,r,t){let o="",a="",l=Math.floor(t/2)-1;if(r-n>l)o=" ... ",n=r-l+o.length;if(i-r>l)a=" ...",i=r+l-a.length;return{str:o+e.slice(n,i).replace(/\t/g,"\u2192")+a,pos:r-n+o.length}}function ce(e,n){return" ".repeat(Math.max(n-e.length,0))+e}function Ri(e,n){if(!e.buffer)return null;let i={...Pi,...n},r=/\r?\n|\r|\0/g,t=[0],o=[],a,l=-1;while(a=r.exec(e.buffer))if(o.push(a.index),t.push(a.index+a[0].length),e.position<=a.index&&l<0)l=t.length-2;if(l<0)l=t.length-1;let c="",f=Math.min(e.line+i.linesAfter,o.length).toString().length,s=i.maxLength-(i.indent+f+3);for(let p=1;p<=i.linesBefore;p++){if(l-p<0)break;let m=le(e.buffer,t[l-p],o[l-p],e.position-(t[l]-t[l-p]),s);c=`${" ".repeat(i.indent)}${ce((e.line-p+1).toString(),f)} | ${m.str}
|
|
3
3
|
${c}`}let u=le(e.buffer,t[l],o[l],e.position,s);c+=`${" ".repeat(i.indent)}${ce((e.line+1).toString(),f)} | ${u.str}
|
|
4
4
|
`,c+=`${"-".repeat(i.indent+f+3+u.pos)}^
|
|
5
5
|
`;for(let p=1;p<=i.linesAfter;p++){if(l+p>=o.length)break;let m=le(e.buffer,t[l+p],o[l+p],e.position-(t[l]-t[l+p]),s);c+=`${" ".repeat(i.indent)}${ce((e.line+p+1).toString(),f)} | ${m.str}
|
|
@@ -16,7 +16,7 @@ ${e.mark.snippet}`;return`${e.reason} ${i}`}var P=class e extends Error{reason;m
|
|
|
16
16
|
`.repeat(u);else f+=`
|
|
17
17
|
`.repeat(s?1+u:u);f+=S,s=!0,u=0}if(t===y.KEEP)f+=`
|
|
18
18
|
`.repeat(s?1+u:u);else if(t!==y.STRIP){if(s)f+=`
|
|
19
|
-
`}return f}function qi(e,n){if(n.valueStart===$i)return"";let{valueStart:i,valueEnd:r}=n;if(n.fast)return e.slice(i,r);switch(n.style){case h.SINGLE_QUOTED:return Ki(e,i,r);case h.DOUBLE_QUOTED:return Yi(e,i,r);case h.LITERAL_BLOCK:return Be(e,i,r,n.indent,n.chomping,!1);case h.FOLDED_BLOCK:return Be(e,i,r,n.indent,n.chomping,!0);default:return Ui(e,i,r)}}var Wi=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),en="-#;/?:@&=+$_.~*'()",Gi=en+"!,[]",De="0123456789ABCDEF";function x(e){return"%"+De[e>>4]+De[e&15]}function se(e,n){let i=n?en:Gi,r="";for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||i.includes(e[t])){r+=e[t];continue}if(o>=55296&&o<=56319)o=65536+((o&1023)<<10)+(e.charCodeAt(++t)&1023);if(o<128)r+=x(o);else if(o<2048)r+=x(192|o>>6)+x(128|o&63);else if(o<65536)r+=x(224|o>>12)+x(128|o>>6&63)+x(128|o&63);else r+=x(240|o>>18)+x(128|o>>12&63)+x(128|o>>6&63)+x(128|o&63)}return r}function fe(e){let n="",i=0;while(i<e.length){if(e.charCodeAt(i)!==37){n+=e[i++];continue}let r=parseInt(e.slice(i+1,i+3),16);if(i+=3,r>=192){let t=r<224?1:r<240?2:3;r&=(1<<6-t)-1;while(t-- >0)r=r<<6|parseInt(e.slice(i+1,i+3),16)&63,i+=3}if(r<65536)n+=String.fromCharCode(r);else r-=65536,n+=String.fromCharCode(55296|r>>10,56320|r&1023)}return n}function nn(e,n){if(e.startsWith("!<")&&e.endsWith(">"))return fe(e.slice(2,-1));let i=e.indexOf("!",1),r=i===-1?"!":e.slice(0,i+1);return fe(n?.[r]??Wi[r]??r)+fe(e.slice(r.length))}function rn(e){let n=e;if(n.charCodeAt(0)===33)return n=n.slice(1),`!${se(n,!0)}`;if(n.slice(0,18)==="tag:yaml.org,2002:")return`!!${se(n.slice(18),!0)}`;return`!<${se(n,!1)}>`}var M=-1,Vi="tag:yaml.org,2002:merge",ve={filename:"",schema:a5,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Hi(e){if("tagStart"in e&&e.tagStart!==M)return e.tagStart;if("anchorStart"in e&&e.anchorStart!==M)return e.anchorStart;if("valueStart"in e&&e.valueStart!==M)return e.valueStart;if("start"in e)return e.start;return 0}function C(e,n){P.throwAt(e.source,e.position,n,e.filename)}function tn(e,n,i,r){try{return i.finalize(r)}catch(t){if(t instanceof P)throw t;P.throwAt(e.source,n,t instanceof Error?t.message:String(t),e.filename)}}function Qi(e,n){let i=qi(e.source,n),r=n.tagStart===M?"":e.source.slice(n.tagStart,n.tagEnd),t=e.schema.defaultScalarTag;if(r!==""){if(r==="!")return{value:i,tag:t};let o=nn(r,e.tagHandlers),a=e.schema.lookupScalarTag(o);if(a){let c=a.resolve(i,!0,o);if(c===E)C(e,`cannot resolve a node with !<${o}> explicit tag`);return{value:c,tag:a}}let l=e.schema.lookupMappingTag(o)??e.schema.lookupSequenceTag(o);if(l){if(i!=="")C(e,`cannot resolve a node with !<${o}> explicit tag`);let c=l.create(o);return{value:l.carrierIsResult?c:tn(e,e.position,l,c),tag:l}}C(e,`unknown scalar tag !<${o}>`)}if(n.style===h.PLAIN)return e.schema.resolveImplicitScalarTag(i);return{value:t.resolve(i,!1,t.tagName),tag:t}}function Me(e,n,i){let r=n.tagStart===M?"":e.source.slice(n.tagStart,n.tagEnd);return r===""||r==="!"?i:nn(r,e.tagHandlers)}function on(e){return e.nodeKind==="mapping"}function Ue(e){if(e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys)C(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Ke(e,n,i,r){Ue(e);for(let t of r.keys(i)){if(Ue(e),n.tag.has(n.value,t))continue;let o=n.tag.addPair(n.value,t,r.get(i,t));if(o)C(e,o);n.overridable??=new Set,n.overridable.add(t)}}function ji(e,n,i,r){if(e.position=n.keyPosition,on(r))Ke(e,n,i,r);else if(r.nodeKind==="sequence"&&Array.isArray(i)){if(i.length>100)C(e,"abnormal merge sequence size");for(let t of i){let o=e.nodeTags.get(t);if(!o)C(e,"cannot merge mappings; the provided source object is unacceptable");Ke(e,n,t,o)}}else C(e,"cannot merge mappings; the provided source object is unacceptable")}function zi(e,n,i,r,t){if(e.position=n.keyPosition,n.keyIsMerge){ji(e,n,r,t);return}if(!e.json&&n.tag.has(n.value,i)&&!n.overridable?.has(i))C(e,"duplicated mapping key");let o=n.tag.addPair(n.value,i,r);if(o)C(e,o);n.overridable?.delete(i)}function ue(e,n,i){let r=e.frames[e.frames.length-1];if(r.kind==="document")r.value=n,r.hasValue=!0;else if(r.kind==="sequence"){if(on(i))e.nodeTags.set(n,i);let t=r.tag.addItem(r.value,n,r.index++);if(t)C(e,t)}else if(r.hasKey){let t=r.key;r.key=void 0,r.hasKey=!1,zi(e,r,t,n,i)}else r.key=n,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=i.tagName===Vi}function pe(e,n,i,r,t){if(n.anchorStart!==M){let o={value:i,tag:r,isValueFinal:t};return e.anchors.set(e.source.slice(n.anchorStart,n.anchorEnd),o),o}return null}function Xi(e,n){let i={...ve,...n,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};while(i.eventIndex<i.events.length){let r=i.events[i.eventIndex++];switch(i.position=Hi(r),r.type){case T.DOCUMENT:i.anchors=new Map,i.nodeTags=new Map,i.aliasCount=0,i.tagHandlers=Object.create(null);for(let t of r.directives)if(t.kind==="tag")i.tagHandlers[t.handle]=t.prefix;i.frames.push({kind:"document",position:i.position,value:void 0,hasValue:!1});break;case T.SCALAR:{let{value:t,tag:o}=Qi(i,r);pe(i,r,t,o,!0),ue(i,t,o);break}case T.SEQUENCE:{let t=Me(i,r,"tag:yaml.org,2002:seq"),o=i.schema.lookupSequenceTag(t);if(!o)C(i,`unknown sequence tag !<${t}>`);let a=o.create(t),l=pe(i,r,a,o,o.carrierIsResult);i.frames.push({kind:"sequence",position:i.position,value:a,tag:o,anchor:l,index:0});break}case T.MAPPING:{let t=Me(i,r,"tag:yaml.org,2002:map"),o=i.schema.lookupMappingTag(t);if(!o)C(i,`unknown mapping tag !<${t}>`);let a=o.create(t),l=pe(i,r,a,o,o.carrierIsResult);i.frames.push({kind:"mapping",position:i.position,value:a,tag:o,anchor:l,key:void 0,keyPosition:i.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case T.ALIAS:{if(i.maxAliases!==-1&&++i.aliasCount>i.maxAliases)C(i,`aliases exceeded maxAliases (${i.maxAliases})`);let t=i.source.slice(r.anchorStart,r.anchorEnd),o=i.anchors.get(t);if(!o)C(i,`unidentified alias "${t}"`);if(!o.isValueFinal)C(i,`recursive alias "${t}" is not supported for tag ${o.tag.tagName} because it uses finalize()`);ue(i,o.value,o.tag);break}case T.POP:{let t=i.frames.pop();if(t.kind==="mapping"&&t.hasKey)i.position=t.keyPosition,C(i,"incomplete mapping pair in event stream");if(t.kind==="document")i.documents.push(t.value);else{let o=t.tag.carrierIsResult?t.value:tn(i,t.position,t.tag,t.value);if(t.anchor)t.anchor.value=o,t.anchor.isValueFinal=!0;ue(i,o,t.tag)}break}}}return i.documents}var A=-1,an=Object.prototype.hasOwnProperty,q=1,ln=2,cn=3,Z=4,Ji=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zi=/[,\[\]{}]/,sn=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Se=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,fn=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,er=new RegExp(`^(?:${Se})*$`),nr=new RegExp(`^(?:${fn})+$`),ir=new RegExp(`^(?:!(?:${Se})*|${fn}(?:${Se})*)$`),ye={filename:"",maxDepth:100};function rr(e,n,i){e.events.push({type:T.DOCUMENT,explicitStart:n,explicitEnd:i,directives:e.directives})}function un(e,n,i,r,t,o,a){e.events.push({type:T.SEQUENCE,start:n,anchorStart:i,anchorEnd:r,tagStart:t,tagEnd:o,style:a})}function pn(e,n,i,r,t,o,a){e.events.push({type:T.MAPPING,start:n,anchorStart:i,anchorEnd:r,tagStart:t,tagEnd:o,style:a})}function Ye(e,n){e.events.splice(n.eventsLength,0,{type:T.MAPPING,start:n.position,anchorStart:A,anchorEnd:A,tagStart:A,tagEnd:A,style:v.FLOW})}function V(e,n,i,r,t,o,a,l,c=y.CLIP,f=-1,s=!1){e.events.push({type:T.SCALAR,valueStart:n,valueEnd:i,anchorStart:r,anchorEnd:t,tagStart:o,tagEnd:a,style:l,chomping:c,indent:f,fast:s})}function tr(e,n,i){e.events.push({type:T.ALIAS,anchorStart:n,anchorEnd:i})}function U(e){e.events.push({type:T.POP})}function O(e){V(e,A,A,A,A,A,A,h.PLAIN)}function qe(){return{anchorStart:A,anchorEnd:A,tagStart:A,tagEnd:A}}function K(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Y(e,n){e.position=n.position,e.line=n.line,e.lineStart=n.lineStart,e.lineIndent=n.lineIndent,e.firstTabInLine=n.firstTabInLine,e.events.length=n.eventsLength}function d(e,n){P.throwAt(e.input.slice(0,e.length),e.position,n,e.filename)}function N(e){return e===10||e===13}function H(e){return e===9||e===32}function F(e){return H(e)||N(e)}function b(e){return e===0||F(e)}function B(e){return e===44||e===91||e===93||e===123||e===125}function or(e){return e>=48&&e<=57?e-48:-1}function ar(e){if(e>=48&&e<=57)return e-48;let n=e|32;if(n>=97&&n<=102)return n-97+10;return-1}function lr(e){if(e===120)return 2;if(e===117)return 4;if(e===85)return 8;return 0}function cr(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function ee(e){if(e.input.charCodeAt(e.position)===10)e.position++;else if(e.position++,e.input.charCodeAt(e.position)===10)e.position++;e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function I(e,n){let i=0,r=e.input.charCodeAt(e.position),t=e.position===e.lineStart||F(e.input.charCodeAt(e.position-1));while(r!==0){while(H(r)){if(t=!0,r===9&&e.firstTabInLine===-1)e.firstTabInLine=e.position;r=e.input.charCodeAt(++e.position)}if(n&&t&&r===35)do r=e.input.charCodeAt(++e.position);while(!N(r)&&r!==0);if(!N(r))break;ee(e),i++,t=!0,r=e.input.charCodeAt(e.position);while(r===32)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return i}function W(e,n=e.position){let i=e.input.charCodeAt(n);if((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)){let r=e.input.charCodeAt(n+3);return r===0||F(r)}return!1}function dn(e){if(e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279)e.position++,e.lineStart=e.position}function ke(e){if(e.position!==e.lineStart)return!1;if(W(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let n=K(e);dn(e),I(e,!0);let i=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(i===37||i===45&&W(e));return Y(e,n),r}function We(e){let n=e.input.charCodeAt(e.position);while(n!==0&&!N(n))n=e.input.charCodeAt(++e.position)}function hn(e,n,i){let r=Ji.exec(e.input.slice(n,i));if(r!==null)e.position=n+r.index+r[0].length-1,d(e,"the stream contains non-printable characters")}function sr(e,n,i){if(e.input.charCodeAt(e.position)!==33)return!1;if(n.tagStart!==A)d(e,"duplication of a tag property");let r=e.position,t=!1,o=!1,a="!",l=e.input.charCodeAt(++e.position);if(l===60)t=!0,l=e.input.charCodeAt(++e.position);else if(l===33)o=!0,a="!!",l=e.input.charCodeAt(++e.position);let c=e.position,f;if(t){while(l!==0&&l!==62)l=e.input.charCodeAt(++e.position);if(l!==62)d(e,"unexpected end of the stream within a verbatim tag");f=e.input.slice(c,e.position),e.position++}else{while(l!==0&&!F(l)&&!(i&&B(l))){if(l===33)if(!o){if(a=e.input.slice(c-1,e.position+1),!sn.test(a))d(e,"named tag handle cannot contain such characters");o=!0,c=e.position+1}else d(e,"tag suffix cannot contain exclamation marks");l=e.input.charCodeAt(++e.position)}if(f=e.input.slice(c,e.position),Zi.test(f))d(e,"tag suffix cannot contain flow indicator characters")}if(f&&!(t?er.test(f):nr.test(f)))d(e,`tag name cannot contain such characters: ${f}`);if(!t&&a!=="!"&&a!=="!!"&&!an.call(e.tagHandlers,a))d(e,`undeclared tag handle "${a}"`);return n.tagStart=r,n.tagEnd=e.position,!0}function fr(e,n){if(e.input.charCodeAt(e.position)!==38)return!1;if(n.anchorStart!==A)d(e,"duplication of an anchor property");e.position++;let i=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position))&&!B(e.input.charCodeAt(e.position)))e.position++;if(e.position===i)d(e,"name of an anchor node must contain at least one character");return n.anchorStart=i,n.anchorEnd=e.position,!0}function ur(e,n){if(e.input.charCodeAt(e.position)!==42)return!1;if(n.anchorStart!==A||n.tagStart!==A)d(e,"alias node should not have any properties");e.position++;let i=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position))&&!B(e.input.charCodeAt(e.position)))e.position++;if(e.position===i)d(e,"name of an alias node must contain at least one character");return tr(e,i,e.position),!0}function Ee(e,n){if(I(e,!1),e.lineIndent<n)d(e,"deficient indentation")}function pr(e,n,i){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,t=!0;while(e.input.charCodeAt(e.position)!==0){let o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){t=!1,e.position+=2;continue}let a=e.position;return e.position++,V(e,r,a,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,h.SINGLE_QUOTED,y.CLIP,-1,t),!0}if(N(o))t=!1,Ee(e,n);else if(e.position===e.lineStart&&W(e))d(e,"unexpected end of the document within a single quoted scalar");else if(o!==9&&o<32)d(e,"expected valid JSON character");else e.position++}d(e,"unexpected end of the stream within a single quoted scalar")}function dr(e,n,i){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,t=!0;while(e.input.charCodeAt(e.position)!==0){let o=e.input.charCodeAt(e.position);if(o===34){let a=e.position;return e.position++,V(e,r,a,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,h.DOUBLE_QUOTED,y.CLIP,-1,t),!0}if(o===92){t=!1;let a=e.input.charCodeAt(++e.position);if(N(a))Ee(e,n);else if(cr(a))e.position++;else{let l=lr(a);if(l===0)d(e,"unknown escape sequence");while(l-- >0)if(e.position++,ar(e.input.charCodeAt(e.position))<0)d(e,"expected hexadecimal character");e.position++}}else if(N(o))t=!1,Ee(e,n);else if(e.position===e.lineStart&&W(e))d(e,"unexpected end of the document within a double quoted scalar");else if(o!==9&&o<32)d(e,"expected valid JSON character");else e.position++}d(e,"unexpected end of the stream within a double quoted scalar")}function hr(e,n,i){let r=e.input.charCodeAt(e.position),t=y.CLIP,o=-1,a=!1;if(r!==124&&r!==62)return!1;let l=r===124?h.LITERAL_BLOCK:h.FOLDED_BLOCK;e.position++;while(e.input.charCodeAt(e.position)!==0){let m=e.input.charCodeAt(e.position),g=or(m);if(m===43||m===45){if(t!==y.CLIP)d(e,"repeat of a chomping mode identifier");t=m===43?y.KEEP:y.STRIP,e.position++}else if(g>=0){if(g===0)d(e,"bad explicit indentation width of a block scalar; it cannot be less than one");if(a)d(e,"repeat of an indentation width identifier");o=n+g-1,a=!0,e.position++}else break}let c=!1;while(H(e.input.charCodeAt(e.position)))c=!0,e.position++;if(c&&e.input.charCodeAt(e.position)===35)We(e);if(N(e.input.charCodeAt(e.position)))ee(e);else if(e.input.charCodeAt(e.position)!==0)d(e,"a line break is expected");let f=a?o:-1,s=0,{position:u,position:p}=e;while(e.input.charCodeAt(e.position)!==0){let m=e.position,g=0;while(e.input.charCodeAt(m+g)===32)g++;let S=e.input.charCodeAt(m+g);if(S===0){if(f>=0){if(g>f)p=m+g}else if(g>0)p=m+g;break}if(ke(e))break;if(!a&&f===-1&&N(S))s=Math.max(s,g);if(!a&&f===-1&&!N(S)){if(S===9&&g<n)e.position=m+g,d(e,"tab characters must not be used in indentation");if(g>=n&&g<s)e.position=m+g,d(e,"bad indentation of a mapping entry")}if(f===-1&&S!==0&&!N(S)&&g<n){e.lineIndent=g,e.position=m+g;break}if(!a&&S!==0&&!N(S)&&f===-1)f=g;let L=f===-1?n+1:f;if(S!==0&&!N(S)&&g<L){e.lineIndent=g,e.position=m+g;break}if(We(e),p=e.position,N(e.input.charCodeAt(e.position)))ee(e),p=e.position}return hn(e,u,p),V(e,u,p,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,l,t,f),!0}function gr(e,n){let i=e.input.charCodeAt(e.position),r=n===q;if(i===0||F(i)||i===35||i===38||i===42||i===33||i===124||i===62||i===39||i===34||i===37||i===64||i===96||B(i))return!1;if(i===63||i===45){let t=e.input.charCodeAt(e.position+1);if(b(t)||r&&B(t))return!1}return!0}function mr(e,n,i,r){if(!gr(e,i))return!1;let{position:t,position:o}=e,a=e.input.charCodeAt(e.position),l=i===q,c=!1;while(a!==0){if(ke(e))break;if(a===58){let f=e.input.charCodeAt(e.position+1);if(b(f)||l&&B(f))break}else if(a===35){if(F(e.input.charCodeAt(e.position-1)))break}else if(l&&B(a))break;else if(N(a)){let{position:f,line:s,lineStart:u,lineIndent:p}=e;if(I(e,!1),e.lineIndent>=n){c=!0,a=e.input.charCodeAt(e.position);continue}e.position=f,e.line=s,e.lineStart=u,e.lineIndent=p;break}if(!H(a))o=e.position+1;a=e.input.charCodeAt(++e.position)}if(o===t)return!1;return hn(e,t,o),V(e,t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,h.PLAIN,y.CLIP,-1,!c),!0}function Q(e,n){let i=e.line;if(I(e,!0),e.line>i&&e.lineIndent<n||e.firstTabInLine!==-1&&e.lineIndent<n)d(e,"deficient indentation")}function Sr(e,n,i){let r=e.input.charCodeAt(e.position),t=r===123,o=e.position,a=!0;if(r!==91&&r!==123)return!1;let l=t?125:93;if(t)pn(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.FLOW);else un(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.FLOW);e.position++;while(e.input.charCodeAt(e.position)!==0){Q(e,n);let c=e.input.charCodeAt(e.position);if(c===l)return e.position++,U(e),!0;else if(!a)d(e,"missed comma between flow collection entries");else if(c===44)d(e,"expected the node content, but found ','");let f=!1,s=!1;if(c===63&&F(e.input.charCodeAt(e.position+1)))f=s=!0,e.position+=1,Q(e,n);let u=e.line,p=K(e),m=G(e,n,q,!1,!0);if(Q(e,n),c=e.input.charCodeAt(e.position),(t||s||e.line===u)&&c===58){if(f=!0,e.position++,Q(e,n),!t){if(Ye(e,p),!m)O(e)}else if(!m)O(e);if(!G(e,n,q,!1,!0))O(e);if(Q(e,n),!t)U(e)}else if(t&&f){if(!m)O(e);O(e)}else if(t)O(e);else if(f){if(Ye(e,p),!m)O(e);O(e),U(e)}if(c=e.input.charCodeAt(e.position),c===44)a=!0,e.position++;else a=!1}d(e,"unexpected end of the stream within a flow collection")}function Ge(e,n,i){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!b(e.input.charCodeAt(e.position+1)))return!1;un(e,e.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.BLOCK);while(e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1))){if(e.firstTabInLine!==-1)e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation");let r=e.line;e.position++;let t=I(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1)))d(e,"bad indentation of a sequence entry");if(t&&e.lineIndent<=n)O(e);else G(e,n,cn,!1,!0);if(I(e,!0),e.lineIndent<n||e.position>=e.length)break;if(e.lineIndent>n)d(e,"bad indentation of a sequence entry");if(e.line===r&&e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1)))d(e,"bad indentation of a sequence entry")}return U(e),!0}function de(e,n,i,r){let t=!1,o=!1,a=!1,l=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);while(c!==0){if(!t&&e.firstTabInLine!==-1)e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation");let f=e.input.charCodeAt(e.position+1),s=e.line;if((c===63||c===58)&&b(f)){if(!a)pn(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,v.BLOCK),a=!0;if(c===63){if(t)O(e);o=!0,t=!0}else if(t)t=!1;else O(e),o=!0,t=!1;e.position+=1,l=!0}else{if(t)O(e),t=!1;let u=K(e);if(!G(e,i,ln,!1,!0))break;if(e.line===s){c=e.input.charCodeAt(e.position);while(H(c))c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),!b(c))d(e,"a whitespace character is expected after the key-value separator within a block mapping");if(!a)e.events.splice(u.eventsLength,0,{type:T.MAPPING,start:u.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:v.BLOCK}),a=!0;o=!0,t=!1,l=!1}else if(o)d(e,"expected ':' after a mapping key");else{if(r.anchorStart!==A||r.tagStart!==A)return Y(e,u),!1;return!0}}else if(o)d(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else{if(r.anchorStart!==A||r.tagStart!==A)return Y(e,u),!1;return!0}}if(G(e,n,Z,!0,l))l=!1;if(!t){if(l)O(e),l=!1}if(I(e,!0),c=e.input.charCodeAt(e.position),(e.line===s||e.lineIndent>n)&&c!==0)d(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}if(!o)return!1;if(t)O(e);if(a)U(e);return!0}function G(e,n,i,r,t,o=!0){if(e.depth>=e.maxDepth)d(e,`nesting exceeded maxDepth (${e.maxDepth})`);e.depth++;let a=1,l=!1,c=!1,f=null,s=qe(),u=i===Z||i===cn,p=u,m=u;if(r&&I(e,!0))if(l=!0,e.lineIndent>n)a=1;else if(e.lineIndent===n)a=0;else a=-1;if(a===1)while(!0){let g=e.input.charCodeAt(e.position),S=K(e);if(l&&a!==1&&(g===33||g===38))break;if(l&&m&&(s.tagStart!==A||s.anchorStart!==A)&&(g===33||g===38)){let L=K(e),k=n+1;if(de(e,e.position-e.lineStart,k,s)&&e.events[L.eventsLength]?.type===T.MAPPING)return e.depth--,!0;Y(e,L)}if(l&&(g===33&&s.tagStart!==A||g===38&&s.anchorStart!==A))break;if(!sr(e,s,i===q)&&!fr(e,s))break;if(f===null)f=S;if(I(e,!0))if(l=!0,p=m,e.lineIndent>n)a=1;else if(e.lineIndent===n)a=0;else a=-1;else p=!1}if(p)p=l||t;if(a===1||i===Z){let g=i===q||i===ln?n:n+1,S=e.position-e.lineStart;if(a===1)if(p&&(Ge(e,S,s)||de(e,S,g,s))||Sr(e,g,s))c=!0;else{let L=e.input.charCodeAt(e.position);if(f!==null&&o&&m&&!p&&L!==124&&L!==62){let k=K(e),D=f.position-f.lineStart;if(Y(e,f),de(e,D,g,qe())&&e.events[k.eventsLength]?.type===T.MAPPING)c=!0;else Y(e,k)}if(!c&&(u&&hr(e,g,s)||pr(e,g,s)||dr(e,g,s)||ur(e,s)||mr(e,g,i,s)))c=!0}else if(a===0)c=p&&Ge(e,S,s)}if(u=u&&!c,!c&&(s.anchorStart!==A||s.tagStart!==A||u))V(e,A,A,s.anchorStart,s.anchorEnd,s.tagStart,s.tagEnd,h.PLAIN),c=!0;return e.depth--,c||s.anchorStart!==A||s.tagStart!==A}function Er(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let n=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position)))e.position++;let i=e.input.slice(n,e.position),r=[];if(i.length===0)d(e,"directive name must not be less than one character in length");while(e.input.charCodeAt(e.position)!==0&&!N(e.input.charCodeAt(e.position))){while(H(e.input.charCodeAt(e.position)))e.position++;if(e.input.charCodeAt(e.position)===35||N(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position)))e.position++;r.push(e.input.slice(t,e.position))}if(N(e.input.charCodeAt(e.position)))ee(e);if(i==="YAML"){if(e.directives.some((o)=>o.kind==="yaml"))d(e,"duplication of %YAML directive");if(r.length!==1)d(e,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(t===null)d(e,"ill-formed argument of the YAML directive");if(parseInt(t[1],10)!==1)d(e,"unacceptable YAML version of the document");e.directives.push({kind:"yaml",version:r[0]})}else if(i==="TAG"){if(r.length!==2)d(e,"TAG directive accepts exactly two arguments");let[t,o]=r;if(!sn.test(t))d(e,"ill-formed tag handle (first argument) of the TAG directive");if(an.call(e.tagHandlers,t))d(e,`there is a previously declared suffix for "${t}" tag handle`);if(!ir.test(o))d(e,"ill-formed tag prefix (second argument) of the TAG directive");e.tagHandlers[t]=o,e.directives.push({kind:"tag",handle:t,prefix:o})}return!0}function Ar(e){e.directives=[],e.tagHandlers=Object.create(null);let n=!1;I(e,!0);while(Er(e))n=!0,I(e,!0);let i=!1,r=!1,t=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&b(e.input.charCodeAt(e.position+3))){i=!0;let l=e.line;e.position+=3,I(e,!0),t=e.line>l}else if(n)d(e,"directives end mark is expected");let o=e.events.length;if(!i&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&W(e)){e.position+=3,I(e,!0);return}if(rr(e,i,!1),!G(e,e.lineIndent-1,Z,!1,t,t))O(e);if(I(e,!0),e.position===e.lineStart&&W(e)){if(r=e.input.charCodeAt(e.position)===46,r){let l=e.line;if(e.position+=3,I(e,!0),e.line===l&&e.position<e.length)d(e,"end of the stream or a document separator is expected")}}let a=e.events[o];if(a?.type===T.DOCUMENT)a.explicitEnd=r;if(U(e),!r&&e.position<e.length&&!ke(e))d(e,"end of the stream or a document separator is expected")}function Tr(e,n){let i=e.length,r={...ye,...n,input:`${e}\x00`,length:i,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},t=e.indexOf("\x00");if(t!==-1)P.throwAt(e,t,"null byte is not allowed in input",r.filename);while(r.position<r.length){if(dn(r),I(r,!0),r.position>=r.length)break;let o=r.position;if(Ar(r),r.position===o)d(r,"can not read a document")}return r.events}var Lr={...ye,...ve};function Nr(e,n={}){let i={...Lr,...n},r=String(e),t=Object.keys(ye),o=Object.keys(ve);return Xi(Tr(r,me(i,t)),{...me(i,o),source:r})}function nv(e,n){let i=Nr(e,n);if(i.length===0)throw new P("expected a document, but the input is empty");if(i.length===1)return i[0];throw new P("expected a single document in the stream, but found more")}var R=Symbol("INVALID");function Cr(e){let n=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter((o)=>o!==void 0)),i=e.implicitScalarTags,r=e.tags.filter((o)=>!(o.nodeKind==="scalar"&&o.implicit)&&!n.has(o)),t=e.tags.filter((o)=>n.has(o));return[...i.map((o)=>({tag:o,implicitTag:!0})),...r.map((o)=>({tag:o,implicitTag:!1})),...t.map((o)=>({tag:o,implicitTag:!0}))]}function Ir(e,n){for(let i=0,r=e.representTypes.length;i<r;i+=1){let{tag:t,implicitTag:o}=e.representTypes[i];if(t.identify(n)){let a;if(t.matchByTagPrefix)a=t.representTagName(n);else a=t.tagName;return{tag:t,tagName:a,implicitTag:o}}}return null}function z(e,n){if(!e.noRefs&&n!==null&&typeof n==="object"){let f=e.refs.get(n);if(f){if(f.anchor===void 0)f.anchor=`ref_${e.refCounter++}`;return{kind:"alias",anchor:f.anchor}}}let i=Ir(e,n);if(!i){if(n===void 0)return R;if(e.skipInvalid)return R;throw new P(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`)}let{tag:r,tagName:t,implicitTag:o}=i,a=o?t:rn(t);if(r.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!o,style:h.PLAIN,value:r.represent(n)};if(r.nodeKind==="sequence"){let f=r.represent(n),s={kind:"sequence",tag:a,tagged:!o,style:v.BLOCK,items:[]};if(!e.noRefs)e.refs.set(n,s);for(let u=0,p=f.length;u<p;u+=1){let m=z(e,f[u]);if(m===R&&f[u]===void 0)m=z(e,null);if(m===R)continue;s.items.push(m)}return s}let l=r.represent(n),c={kind:"mapping",tag:a,tagged:!o,style:v.BLOCK,items:[]};if(!e.noRefs)e.refs.set(n,c);for(let[f,s]of l){let u=z(e,f);if(u===R)continue;let p=z(e,s);if(p===R)continue;c.items.push({key:u,value:p})}return c}function _r(e,n,i={}){let r=z({representTypes:Cr(n),noRefs:i.noRefs??!1,skipInvalid:i.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===R?null:r,directives:[]}]}var Or=Symbol("visit:break"),gn=Symbol("visit:skip");function X(e,n,i){let r=n(e,i);if(r===Or)return!0;if(r===gn)return!1;let t=i.depth+1;switch(e.kind){case"sequence":for(let o of e.items)if(X(o,n,{depth:t,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:o,value:a}of e.items){if(X(o,n,{depth:t,parent:e,isKey:!0}))return!0;if(X(a,n,{depth:t,parent:e,isKey:!1}))return!0}}return!1}function Ve(e,n){for(let i of e)if(i.contents&&X(i.contents,n,{depth:0,parent:null,isKey:!1}))return}function oe(e,n){return(e&1<<n)!==0}var He={applyQuoteFlowKeysOption:vr,doubleQuoteForInvisibles:yr,doubleQuoteWhitespaceOnly:kr,applyForceQuotesOption:Fr,tryLongOrMultilineAsBlock:xr,quoteInvalidPlain:br,fallbackToDoubleQuoted:wr};function mn(e){if(e.presenterOptions.quoteStyle==="single"&&oe(e.allowedStylesMask,h.SINGLE_QUOTED))return h.SINGLE_QUOTED;return h.DOUBLE_QUOTED}function vr(e){if(!e.presenterOptions.quoteFlowKeys)return;if(!e.isKey||!e.flowOnly||e.style!==h.PLAIN)return;e.style=h.DOUBLE_QUOTED}function yr(e){if(e.style===h.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value))e.style=h.DOUBLE_QUOTED}function kr(e){if(e.style===h.PLAIN&&/^\s+$/.test(e.node.value))e.style=h.DOUBLE_QUOTED}function Fr(e){if(!e.presenterOptions.forceQuotes)return;if(e.isKey||e.style!==h.PLAIN)return;if(e.node.tag!==e.presenterOptions.schema.defaultScalarTag.tagName)return;e.style=e.node.value.includes(`
|
|
19
|
+
`}return f}function qi(e,n){if(n.valueStart===$i)return"";let{valueStart:i,valueEnd:r}=n;if(n.fast)return e.slice(i,r);switch(n.style){case h.SINGLE_QUOTED:return Ki(e,i,r);case h.DOUBLE_QUOTED:return Yi(e,i,r);case h.LITERAL_BLOCK:return Be(e,i,r,n.indent,n.chomping,!1);case h.FOLDED_BLOCK:return Be(e,i,r,n.indent,n.chomping,!0);default:return Ui(e,i,r)}}var Wi=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),en="-#;/?:@&=+$_.~*'()",Gi=en+"!,[]",De="0123456789ABCDEF";function x(e){return"%"+De[e>>4]+De[e&15]}function se(e,n){let i=n?en:Gi,r="";for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||i.includes(e[t])){r+=e[t];continue}if(o>=55296&&o<=56319)o=65536+((o&1023)<<10)+(e.charCodeAt(++t)&1023);if(o<128)r+=x(o);else if(o<2048)r+=x(192|o>>6)+x(128|o&63);else if(o<65536)r+=x(224|o>>12)+x(128|o>>6&63)+x(128|o&63);else r+=x(240|o>>18)+x(128|o>>12&63)+x(128|o>>6&63)+x(128|o&63)}return r}function fe(e){let n="",i=0;while(i<e.length){if(e.charCodeAt(i)!==37){n+=e[i++];continue}let r=parseInt(e.slice(i+1,i+3),16);if(i+=3,r>=192){let t=r<224?1:r<240?2:3;r&=(1<<6-t)-1;while(t-- >0)r=r<<6|parseInt(e.slice(i+1,i+3),16)&63,i+=3}if(r<65536)n+=String.fromCharCode(r);else r-=65536,n+=String.fromCharCode(55296|r>>10,56320|r&1023)}return n}function nn(e,n){if(e.startsWith("!<")&&e.endsWith(">"))return fe(e.slice(2,-1));let i=e.indexOf("!",1),r=i===-1?"!":e.slice(0,i+1);return fe(n?.[r]??Wi[r]??r)+fe(e.slice(r.length))}function rn(e){let n=e;if(n.charCodeAt(0)===33)return n=n.slice(1),`!${se(n,!0)}`;if(n.slice(0,18)==="tag:yaml.org,2002:")return`!!${se(n.slice(18),!0)}`;return`!<${se(n,!1)}>`}var M=-1,Vi="tag:yaml.org,2002:merge",ve={filename:"",schema:R5,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Hi(e){if("tagStart"in e&&e.tagStart!==M)return e.tagStart;if("anchorStart"in e&&e.anchorStart!==M)return e.anchorStart;if("valueStart"in e&&e.valueStart!==M)return e.valueStart;if("start"in e)return e.start;return 0}function C(e,n){P.throwAt(e.source,e.position,n,e.filename)}function tn(e,n,i,r){try{return i.finalize(r)}catch(t){if(t instanceof P)throw t;P.throwAt(e.source,n,t instanceof Error?t.message:String(t),e.filename)}}function Qi(e,n){let i=qi(e.source,n),r=n.tagStart===M?"":e.source.slice(n.tagStart,n.tagEnd),t=e.schema.defaultScalarTag;if(r!==""){if(r==="!")return{value:i,tag:t};let o=nn(r,e.tagHandlers),a=e.schema.lookupScalarTag(o);if(a){let c=a.resolve(i,!0,o);if(c===E)C(e,`cannot resolve a node with !<${o}> explicit tag`);return{value:c,tag:a}}let l=e.schema.lookupMappingTag(o)??e.schema.lookupSequenceTag(o);if(l){if(i!=="")C(e,`cannot resolve a node with !<${o}> explicit tag`);let c=l.create(o);return{value:l.carrierIsResult?c:tn(e,e.position,l,c),tag:l}}C(e,`unknown scalar tag !<${o}>`)}if(n.style===h.PLAIN)return e.schema.resolveImplicitScalarTag(i);return{value:t.resolve(i,!1,t.tagName),tag:t}}function Me(e,n,i){let r=n.tagStart===M?"":e.source.slice(n.tagStart,n.tagEnd);return r===""||r==="!"?i:nn(r,e.tagHandlers)}function on(e){return e.nodeKind==="mapping"}function Ue(e){if(e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys)C(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Ke(e,n,i,r){Ue(e);for(let t of r.keys(i)){if(Ue(e),n.tag.has(n.value,t))continue;let o=n.tag.addPair(n.value,t,r.get(i,t));if(o)C(e,o);n.overridable??=new Set,n.overridable.add(t)}}function ji(e,n,i,r){if(e.position=n.keyPosition,on(r))Ke(e,n,i,r);else if(r.nodeKind==="sequence"&&Array.isArray(i)){if(i.length>100)C(e,"abnormal merge sequence size");for(let t of i){let o=e.nodeTags.get(t);if(!o)C(e,"cannot merge mappings; the provided source object is unacceptable");Ke(e,n,t,o)}}else C(e,"cannot merge mappings; the provided source object is unacceptable")}function zi(e,n,i,r,t){if(e.position=n.keyPosition,n.keyIsMerge){ji(e,n,r,t);return}if(!e.json&&n.tag.has(n.value,i)&&!n.overridable?.has(i))C(e,"duplicated mapping key");let o=n.tag.addPair(n.value,i,r);if(o)C(e,o);n.overridable?.delete(i)}function ue(e,n,i){let r=e.frames[e.frames.length-1];if(r.kind==="document")r.value=n,r.hasValue=!0;else if(r.kind==="sequence"){if(on(i))e.nodeTags.set(n,i);let t=r.tag.addItem(r.value,n,r.index++);if(t)C(e,t)}else if(r.hasKey){let t=r.key;r.key=void 0,r.hasKey=!1,zi(e,r,t,n,i)}else r.key=n,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=i.tagName===Vi}function pe(e,n,i,r,t){if(n.anchorStart!==M){let o={value:i,tag:r,isValueFinal:t};return e.anchors.set(e.source.slice(n.anchorStart,n.anchorEnd),o),o}return null}function Xi(e,n){let i={...ve,...n,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};while(i.eventIndex<i.events.length){let r=i.events[i.eventIndex++];switch(i.position=Hi(r),r.type){case T.DOCUMENT:i.anchors=new Map,i.nodeTags=new Map,i.aliasCount=0,i.tagHandlers=Object.create(null);for(let t of r.directives)if(t.kind==="tag")i.tagHandlers[t.handle]=t.prefix;i.frames.push({kind:"document",position:i.position,value:void 0,hasValue:!1});break;case T.SCALAR:{let{value:t,tag:o}=Qi(i,r);pe(i,r,t,o,!0),ue(i,t,o);break}case T.SEQUENCE:{let t=Me(i,r,"tag:yaml.org,2002:seq"),o=i.schema.lookupSequenceTag(t);if(!o)C(i,`unknown sequence tag !<${t}>`);let a=o.create(t),l=pe(i,r,a,o,o.carrierIsResult);i.frames.push({kind:"sequence",position:i.position,value:a,tag:o,anchor:l,index:0});break}case T.MAPPING:{let t=Me(i,r,"tag:yaml.org,2002:map"),o=i.schema.lookupMappingTag(t);if(!o)C(i,`unknown mapping tag !<${t}>`);let a=o.create(t),l=pe(i,r,a,o,o.carrierIsResult);i.frames.push({kind:"mapping",position:i.position,value:a,tag:o,anchor:l,key:void 0,keyPosition:i.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case T.ALIAS:{if(i.maxAliases!==-1&&++i.aliasCount>i.maxAliases)C(i,`aliases exceeded maxAliases (${i.maxAliases})`);let t=i.source.slice(r.anchorStart,r.anchorEnd),o=i.anchors.get(t);if(!o)C(i,`unidentified alias "${t}"`);if(!o.isValueFinal)C(i,`recursive alias "${t}" is not supported for tag ${o.tag.tagName} because it uses finalize()`);ue(i,o.value,o.tag);break}case T.POP:{let t=i.frames.pop();if(t.kind==="mapping"&&t.hasKey)i.position=t.keyPosition,C(i,"incomplete mapping pair in event stream");if(t.kind==="document")i.documents.push(t.value);else{let o=t.tag.carrierIsResult?t.value:tn(i,t.position,t.tag,t.value);if(t.anchor)t.anchor.value=o,t.anchor.isValueFinal=!0;ue(i,o,t.tag)}break}}}return i.documents}var A=-1,an=Object.prototype.hasOwnProperty,q=1,ln=2,cn=3,Z=4,Ji=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zi=/[,\[\]{}]/,sn=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Se=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,fn=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,er=new RegExp(`^(?:${Se})*$`),nr=new RegExp(`^(?:${fn})+$`),ir=new RegExp(`^(?:!(?:${Se})*|${fn}(?:${Se})*)$`),ye={filename:"",maxDepth:100};function rr(e,n,i){e.events.push({type:T.DOCUMENT,explicitStart:n,explicitEnd:i,directives:e.directives})}function un(e,n,i,r,t,o,a){e.events.push({type:T.SEQUENCE,start:n,anchorStart:i,anchorEnd:r,tagStart:t,tagEnd:o,style:a})}function pn(e,n,i,r,t,o,a){e.events.push({type:T.MAPPING,start:n,anchorStart:i,anchorEnd:r,tagStart:t,tagEnd:o,style:a})}function Ye(e,n){e.events.splice(n.eventsLength,0,{type:T.MAPPING,start:n.position,anchorStart:A,anchorEnd:A,tagStart:A,tagEnd:A,style:v.FLOW})}function V(e,n,i,r,t,o,a,l,c=y.CLIP,f=-1,s=!1){e.events.push({type:T.SCALAR,valueStart:n,valueEnd:i,anchorStart:r,anchorEnd:t,tagStart:o,tagEnd:a,style:l,chomping:c,indent:f,fast:s})}function tr(e,n,i){e.events.push({type:T.ALIAS,anchorStart:n,anchorEnd:i})}function U(e){e.events.push({type:T.POP})}function O(e){V(e,A,A,A,A,A,A,h.PLAIN)}function qe(){return{anchorStart:A,anchorEnd:A,tagStart:A,tagEnd:A}}function K(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Y(e,n){e.position=n.position,e.line=n.line,e.lineStart=n.lineStart,e.lineIndent=n.lineIndent,e.firstTabInLine=n.firstTabInLine,e.events.length=n.eventsLength}function d(e,n){P.throwAt(e.input.slice(0,e.length),e.position,n,e.filename)}function N(e){return e===10||e===13}function H(e){return e===9||e===32}function F(e){return H(e)||N(e)}function b(e){return e===0||F(e)}function B(e){return e===44||e===91||e===93||e===123||e===125}function or(e){return e>=48&&e<=57?e-48:-1}function ar(e){if(e>=48&&e<=57)return e-48;let n=e|32;if(n>=97&&n<=102)return n-97+10;return-1}function lr(e){if(e===120)return 2;if(e===117)return 4;if(e===85)return 8;return 0}function cr(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function ee(e){if(e.input.charCodeAt(e.position)===10)e.position++;else if(e.position++,e.input.charCodeAt(e.position)===10)e.position++;e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function I(e,n){let i=0,r=e.input.charCodeAt(e.position),t=e.position===e.lineStart||F(e.input.charCodeAt(e.position-1));while(r!==0){while(H(r)){if(t=!0,r===9&&e.firstTabInLine===-1)e.firstTabInLine=e.position;r=e.input.charCodeAt(++e.position)}if(n&&t&&r===35)do r=e.input.charCodeAt(++e.position);while(!N(r)&&r!==0);if(!N(r))break;ee(e),i++,t=!0,r=e.input.charCodeAt(e.position);while(r===32)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return i}function W(e,n=e.position){let i=e.input.charCodeAt(n);if((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)){let r=e.input.charCodeAt(n+3);return r===0||F(r)}return!1}function dn(e){if(e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279)e.position++,e.lineStart=e.position}function ke(e){if(e.position!==e.lineStart)return!1;if(W(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let n=K(e);dn(e),I(e,!0);let i=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(i===37||i===45&&W(e));return Y(e,n),r}function We(e){let n=e.input.charCodeAt(e.position);while(n!==0&&!N(n))n=e.input.charCodeAt(++e.position)}function hn(e,n,i){let r=Ji.exec(e.input.slice(n,i));if(r!==null)e.position=n+r.index+r[0].length-1,d(e,"the stream contains non-printable characters")}function sr(e,n,i){if(e.input.charCodeAt(e.position)!==33)return!1;if(n.tagStart!==A)d(e,"duplication of a tag property");let r=e.position,t=!1,o=!1,a="!",l=e.input.charCodeAt(++e.position);if(l===60)t=!0,l=e.input.charCodeAt(++e.position);else if(l===33)o=!0,a="!!",l=e.input.charCodeAt(++e.position);let c=e.position,f;if(t){while(l!==0&&l!==62)l=e.input.charCodeAt(++e.position);if(l!==62)d(e,"unexpected end of the stream within a verbatim tag");f=e.input.slice(c,e.position),e.position++}else{while(l!==0&&!F(l)&&!(i&&B(l))){if(l===33)if(!o){if(a=e.input.slice(c-1,e.position+1),!sn.test(a))d(e,"named tag handle cannot contain such characters");o=!0,c=e.position+1}else d(e,"tag suffix cannot contain exclamation marks");l=e.input.charCodeAt(++e.position)}if(f=e.input.slice(c,e.position),Zi.test(f))d(e,"tag suffix cannot contain flow indicator characters")}if(f&&!(t?er.test(f):nr.test(f)))d(e,`tag name cannot contain such characters: ${f}`);if(!t&&a!=="!"&&a!=="!!"&&!an.call(e.tagHandlers,a))d(e,`undeclared tag handle "${a}"`);return n.tagStart=r,n.tagEnd=e.position,!0}function fr(e,n){if(e.input.charCodeAt(e.position)!==38)return!1;if(n.anchorStart!==A)d(e,"duplication of an anchor property");e.position++;let i=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position))&&!B(e.input.charCodeAt(e.position)))e.position++;if(e.position===i)d(e,"name of an anchor node must contain at least one character");return n.anchorStart=i,n.anchorEnd=e.position,!0}function ur(e,n){if(e.input.charCodeAt(e.position)!==42)return!1;if(n.anchorStart!==A||n.tagStart!==A)d(e,"alias node should not have any properties");e.position++;let i=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position))&&!B(e.input.charCodeAt(e.position)))e.position++;if(e.position===i)d(e,"name of an alias node must contain at least one character");return tr(e,i,e.position),!0}function Ee(e,n){if(I(e,!1),e.lineIndent<n)d(e,"deficient indentation")}function pr(e,n,i){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let r=e.position,t=!0;while(e.input.charCodeAt(e.position)!==0){let o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){t=!1,e.position+=2;continue}let a=e.position;return e.position++,V(e,r,a,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,h.SINGLE_QUOTED,y.CLIP,-1,t),!0}if(N(o))t=!1,Ee(e,n);else if(e.position===e.lineStart&&W(e))d(e,"unexpected end of the document within a single quoted scalar");else if(o!==9&&o<32)d(e,"expected valid JSON character");else e.position++}d(e,"unexpected end of the stream within a single quoted scalar")}function dr(e,n,i){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let r=e.position,t=!0;while(e.input.charCodeAt(e.position)!==0){let o=e.input.charCodeAt(e.position);if(o===34){let a=e.position;return e.position++,V(e,r,a,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,h.DOUBLE_QUOTED,y.CLIP,-1,t),!0}if(o===92){t=!1;let a=e.input.charCodeAt(++e.position);if(N(a))Ee(e,n);else if(cr(a))e.position++;else{let l=lr(a);if(l===0)d(e,"unknown escape sequence");while(l-- >0)if(e.position++,ar(e.input.charCodeAt(e.position))<0)d(e,"expected hexadecimal character");e.position++}}else if(N(o))t=!1,Ee(e,n);else if(e.position===e.lineStart&&W(e))d(e,"unexpected end of the document within a double quoted scalar");else if(o!==9&&o<32)d(e,"expected valid JSON character");else e.position++}d(e,"unexpected end of the stream within a double quoted scalar")}function hr(e,n,i){let r=e.input.charCodeAt(e.position),t=y.CLIP,o=-1,a=!1;if(r!==124&&r!==62)return!1;let l=r===124?h.LITERAL_BLOCK:h.FOLDED_BLOCK;e.position++;while(e.input.charCodeAt(e.position)!==0){let m=e.input.charCodeAt(e.position),g=or(m);if(m===43||m===45){if(t!==y.CLIP)d(e,"repeat of a chomping mode identifier");t=m===43?y.KEEP:y.STRIP,e.position++}else if(g>=0){if(g===0)d(e,"bad explicit indentation width of a block scalar; it cannot be less than one");if(a)d(e,"repeat of an indentation width identifier");o=n+g-1,a=!0,e.position++}else break}let c=!1;while(H(e.input.charCodeAt(e.position)))c=!0,e.position++;if(c&&e.input.charCodeAt(e.position)===35)We(e);if(N(e.input.charCodeAt(e.position)))ee(e);else if(e.input.charCodeAt(e.position)!==0)d(e,"a line break is expected");let f=a?o:-1,s=0,{position:u,position:p}=e;while(e.input.charCodeAt(e.position)!==0){let m=e.position,g=0;while(e.input.charCodeAt(m+g)===32)g++;let S=e.input.charCodeAt(m+g);if(S===0){if(f>=0){if(g>f)p=m+g}else if(g>0)p=m+g;break}if(ke(e))break;if(!a&&f===-1&&N(S))s=Math.max(s,g);if(!a&&f===-1&&!N(S)){if(S===9&&g<n)e.position=m+g,d(e,"tab characters must not be used in indentation");if(g>=n&&g<s)e.position=m+g,d(e,"bad indentation of a mapping entry")}if(f===-1&&S!==0&&!N(S)&&g<n){e.lineIndent=g,e.position=m+g;break}if(!a&&S!==0&&!N(S)&&f===-1)f=g;let L=f===-1?n+1:f;if(S!==0&&!N(S)&&g<L){e.lineIndent=g,e.position=m+g;break}if(We(e),p=e.position,N(e.input.charCodeAt(e.position)))ee(e),p=e.position}return hn(e,u,p),V(e,u,p,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,l,t,f),!0}function gr(e,n){let i=e.input.charCodeAt(e.position),r=n===q;if(i===0||F(i)||i===35||i===38||i===42||i===33||i===124||i===62||i===39||i===34||i===37||i===64||i===96||B(i))return!1;if(i===63||i===45){let t=e.input.charCodeAt(e.position+1);if(b(t)||r&&B(t))return!1}return!0}function mr(e,n,i,r){if(!gr(e,i))return!1;let{position:t,position:o}=e,a=e.input.charCodeAt(e.position),l=i===q,c=!1;while(a!==0){if(ke(e))break;if(a===58){let f=e.input.charCodeAt(e.position+1);if(b(f)||l&&B(f))break}else if(a===35){if(F(e.input.charCodeAt(e.position-1)))break}else if(l&&B(a))break;else if(N(a)){let{position:f,line:s,lineStart:u,lineIndent:p}=e;if(I(e,!1),e.lineIndent>=n){c=!0,a=e.input.charCodeAt(e.position);continue}e.position=f,e.line=s,e.lineStart=u,e.lineIndent=p;break}if(!H(a))o=e.position+1;a=e.input.charCodeAt(++e.position)}if(o===t)return!1;return hn(e,t,o),V(e,t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,h.PLAIN,y.CLIP,-1,!c),!0}function Q(e,n){let i=e.line;if(I(e,!0),e.line>i&&e.lineIndent<n||e.firstTabInLine!==-1&&e.lineIndent<n)d(e,"deficient indentation")}function Sr(e,n,i){let r=e.input.charCodeAt(e.position),t=r===123,o=e.position,a=!0;if(r!==91&&r!==123)return!1;let l=t?125:93;if(t)pn(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.FLOW);else un(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.FLOW);e.position++;while(e.input.charCodeAt(e.position)!==0){Q(e,n);let c=e.input.charCodeAt(e.position);if(c===l)return e.position++,U(e),!0;else if(!a)d(e,"missed comma between flow collection entries");else if(c===44)d(e,"expected the node content, but found ','");let f=!1,s=!1;if(c===63&&F(e.input.charCodeAt(e.position+1)))f=s=!0,e.position+=1,Q(e,n);let u=e.line,p=K(e),m=G(e,n,q,!1,!0);if(Q(e,n),c=e.input.charCodeAt(e.position),(t||s||e.line===u)&&c===58){if(f=!0,e.position++,Q(e,n),!t){if(Ye(e,p),!m)O(e)}else if(!m)O(e);if(!G(e,n,q,!1,!0))O(e);if(Q(e,n),!t)U(e)}else if(t&&f){if(!m)O(e);O(e)}else if(t)O(e);else if(f){if(Ye(e,p),!m)O(e);O(e),U(e)}if(c=e.input.charCodeAt(e.position),c===44)a=!0,e.position++;else a=!1}d(e,"unexpected end of the stream within a flow collection")}function Ge(e,n,i){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!b(e.input.charCodeAt(e.position+1)))return!1;un(e,e.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,v.BLOCK);while(e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1))){if(e.firstTabInLine!==-1)e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation");let r=e.line;e.position++;let t=I(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1)))d(e,"bad indentation of a sequence entry");if(t&&e.lineIndent<=n)O(e);else G(e,n,cn,!1,!0);if(I(e,!0),e.lineIndent<n||e.position>=e.length)break;if(e.lineIndent>n)d(e,"bad indentation of a sequence entry");if(e.line===r&&e.input.charCodeAt(e.position)===45&&b(e.input.charCodeAt(e.position+1)))d(e,"bad indentation of a sequence entry")}return U(e),!0}function de(e,n,i,r){let t=!1,o=!1,a=!1,l=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);while(c!==0){if(!t&&e.firstTabInLine!==-1)e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation");let f=e.input.charCodeAt(e.position+1),s=e.line;if((c===63||c===58)&&b(f)){if(!a)pn(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,v.BLOCK),a=!0;if(c===63){if(t)O(e);o=!0,t=!0}else if(t)t=!1;else O(e),o=!0,t=!1;e.position+=1,l=!0}else{if(t)O(e),t=!1;let u=K(e);if(!G(e,i,ln,!1,!0))break;if(e.line===s){c=e.input.charCodeAt(e.position);while(H(c))c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),!b(c))d(e,"a whitespace character is expected after the key-value separator within a block mapping");if(!a)e.events.splice(u.eventsLength,0,{type:T.MAPPING,start:u.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:v.BLOCK}),a=!0;o=!0,t=!1,l=!1}else if(o)d(e,"expected ':' after a mapping key");else{if(r.anchorStart!==A||r.tagStart!==A)return Y(e,u),!1;return!0}}else if(o)d(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else{if(r.anchorStart!==A||r.tagStart!==A)return Y(e,u),!1;return!0}}if(G(e,n,Z,!0,l))l=!1;if(!t){if(l)O(e),l=!1}if(I(e,!0),c=e.input.charCodeAt(e.position),(e.line===s||e.lineIndent>n)&&c!==0)d(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}if(!o)return!1;if(t)O(e);if(a)U(e);return!0}function G(e,n,i,r,t,o=!0){if(e.depth>=e.maxDepth)d(e,`nesting exceeded maxDepth (${e.maxDepth})`);e.depth++;let a=1,l=!1,c=!1,f=null,s=qe(),u=i===Z||i===cn,p=u,m=u;if(r&&I(e,!0))if(l=!0,e.lineIndent>n)a=1;else if(e.lineIndent===n)a=0;else a=-1;if(a===1)while(!0){let g=e.input.charCodeAt(e.position),S=K(e);if(l&&a!==1&&(g===33||g===38))break;if(l&&m&&(s.tagStart!==A||s.anchorStart!==A)&&(g===33||g===38)){let L=K(e),k=n+1;if(de(e,e.position-e.lineStart,k,s)&&e.events[L.eventsLength]?.type===T.MAPPING)return e.depth--,!0;Y(e,L)}if(l&&(g===33&&s.tagStart!==A||g===38&&s.anchorStart!==A))break;if(!sr(e,s,i===q)&&!fr(e,s))break;if(f===null)f=S;if(I(e,!0))if(l=!0,p=m,e.lineIndent>n)a=1;else if(e.lineIndent===n)a=0;else a=-1;else p=!1}if(p)p=l||t;if(a===1||i===Z){let g=i===q||i===ln?n:n+1,S=e.position-e.lineStart;if(a===1)if(p&&(Ge(e,S,s)||de(e,S,g,s))||Sr(e,g,s))c=!0;else{let L=e.input.charCodeAt(e.position);if(f!==null&&o&&m&&!p&&L!==124&&L!==62){let k=K(e),D=f.position-f.lineStart;if(Y(e,f),de(e,D,g,qe())&&e.events[k.eventsLength]?.type===T.MAPPING)c=!0;else Y(e,k)}if(!c&&(u&&hr(e,g,s)||pr(e,g,s)||dr(e,g,s)||ur(e,s)||mr(e,g,i,s)))c=!0}else if(a===0)c=p&&Ge(e,S,s)}if(u=u&&!c,!c&&(s.anchorStart!==A||s.tagStart!==A||u))V(e,A,A,s.anchorStart,s.anchorEnd,s.tagStart,s.tagEnd,h.PLAIN),c=!0;return e.depth--,c||s.anchorStart!==A||s.tagStart!==A}function Er(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let n=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position)))e.position++;let i=e.input.slice(n,e.position),r=[];if(i.length===0)d(e,"directive name must not be less than one character in length");while(e.input.charCodeAt(e.position)!==0&&!N(e.input.charCodeAt(e.position))){while(H(e.input.charCodeAt(e.position)))e.position++;if(e.input.charCodeAt(e.position)===35||N(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;while(e.input.charCodeAt(e.position)!==0&&!F(e.input.charCodeAt(e.position)))e.position++;r.push(e.input.slice(t,e.position))}if(N(e.input.charCodeAt(e.position)))ee(e);if(i==="YAML"){if(e.directives.some((o)=>o.kind==="yaml"))d(e,"duplication of %YAML directive");if(r.length!==1)d(e,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(t===null)d(e,"ill-formed argument of the YAML directive");if(parseInt(t[1],10)!==1)d(e,"unacceptable YAML version of the document");e.directives.push({kind:"yaml",version:r[0]})}else if(i==="TAG"){if(r.length!==2)d(e,"TAG directive accepts exactly two arguments");let[t,o]=r;if(!sn.test(t))d(e,"ill-formed tag handle (first argument) of the TAG directive");if(an.call(e.tagHandlers,t))d(e,`there is a previously declared suffix for "${t}" tag handle`);if(!ir.test(o))d(e,"ill-formed tag prefix (second argument) of the TAG directive");e.tagHandlers[t]=o,e.directives.push({kind:"tag",handle:t,prefix:o})}return!0}function Ar(e){e.directives=[],e.tagHandlers=Object.create(null);let n=!1;I(e,!0);while(Er(e))n=!0,I(e,!0);let i=!1,r=!1,t=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&b(e.input.charCodeAt(e.position+3))){i=!0;let l=e.line;e.position+=3,I(e,!0),t=e.line>l}else if(n)d(e,"directives end mark is expected");let o=e.events.length;if(!i&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&W(e)){e.position+=3,I(e,!0);return}if(rr(e,i,!1),!G(e,e.lineIndent-1,Z,!1,t,t))O(e);if(I(e,!0),e.position===e.lineStart&&W(e)){if(r=e.input.charCodeAt(e.position)===46,r){let l=e.line;if(e.position+=3,I(e,!0),e.line===l&&e.position<e.length)d(e,"end of the stream or a document separator is expected")}}let a=e.events[o];if(a?.type===T.DOCUMENT)a.explicitEnd=r;if(U(e),!r&&e.position<e.length&&!ke(e))d(e,"end of the stream or a document separator is expected")}function Tr(e,n){let i=e.length,r={...ye,...n,input:`${e}\x00`,length:i,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},t=e.indexOf("\x00");if(t!==-1)P.throwAt(e,t,"null byte is not allowed in input",r.filename);while(r.position<r.length){if(dn(r),I(r,!0),r.position>=r.length)break;let o=r.position;if(Ar(r),r.position===o)d(r,"can not read a document")}return r.events}var Lr={...ye,...ve};function Nr(e,n={}){let i={...Lr,...n},r=String(e),t=Object.keys(ye),o=Object.keys(ve);return Xi(Tr(r,me(i,t)),{...me(i,o),source:r})}function bv(e,n){let i=Nr(e,n);if(i.length===0)throw new P("expected a document, but the input is empty");if(i.length===1)return i[0];throw new P("expected a single document in the stream, but found more")}var R=Symbol("INVALID");function Cr(e){let n=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter((o)=>o!==void 0)),i=e.implicitScalarTags,r=e.tags.filter((o)=>!(o.nodeKind==="scalar"&&o.implicit)&&!n.has(o)),t=e.tags.filter((o)=>n.has(o));return[...i.map((o)=>({tag:o,implicitTag:!0})),...r.map((o)=>({tag:o,implicitTag:!1})),...t.map((o)=>({tag:o,implicitTag:!0}))]}function Ir(e,n){for(let i=0,r=e.representTypes.length;i<r;i+=1){let{tag:t,implicitTag:o}=e.representTypes[i];if(t.identify(n)){let a;if(t.matchByTagPrefix)a=t.representTagName(n);else a=t.tagName;return{tag:t,tagName:a,implicitTag:o}}}return null}function z(e,n){if(!e.noRefs&&n!==null&&typeof n==="object"){let f=e.refs.get(n);if(f){if(f.anchor===void 0)f.anchor=`ref_${e.refCounter++}`;return{kind:"alias",anchor:f.anchor}}}let i=Ir(e,n);if(!i){if(n===void 0)return R;if(e.skipInvalid)return R;throw new P(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`)}let{tag:r,tagName:t,implicitTag:o}=i,a=o?t:rn(t);if(r.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!o,style:h.PLAIN,value:r.represent(n)};if(r.nodeKind==="sequence"){let f=r.represent(n),s={kind:"sequence",tag:a,tagged:!o,style:v.BLOCK,items:[]};if(!e.noRefs)e.refs.set(n,s);for(let u=0,p=f.length;u<p;u+=1){let m=z(e,f[u]);if(m===R&&f[u]===void 0)m=z(e,null);if(m===R)continue;s.items.push(m)}return s}let l=r.represent(n),c={kind:"mapping",tag:a,tagged:!o,style:v.BLOCK,items:[]};if(!e.noRefs)e.refs.set(n,c);for(let[f,s]of l){let u=z(e,f);if(u===R)continue;let p=z(e,s);if(p===R)continue;c.items.push({key:u,value:p})}return c}function _r(e,n,i={}){let r=z({representTypes:Cr(n),noRefs:i.noRefs??!1,skipInvalid:i.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===R?null:r,directives:[]}]}var Or=Symbol("visit:break"),gn=Symbol("visit:skip");function X(e,n,i){let r=n(e,i);if(r===Or)return!0;if(r===gn)return!1;let t=i.depth+1;switch(e.kind){case"sequence":for(let o of e.items)if(X(o,n,{depth:t,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:o,value:a}of e.items){if(X(o,n,{depth:t,parent:e,isKey:!0}))return!0;if(X(a,n,{depth:t,parent:e,isKey:!1}))return!0}}return!1}function Ve(e,n){for(let i of e)if(i.contents&&X(i.contents,n,{depth:0,parent:null,isKey:!1}))return}function oe(e,n){return(e&1<<n)!==0}var He={applyQuoteFlowKeysOption:vr,doubleQuoteForInvisibles:yr,doubleQuoteWhitespaceOnly:kr,applyForceQuotesOption:Fr,tryLongOrMultilineAsBlock:xr,quoteInvalidPlain:br,fallbackToDoubleQuoted:wr};function mn(e){if(e.presenterOptions.quoteStyle==="single"&&oe(e.allowedStylesMask,h.SINGLE_QUOTED))return h.SINGLE_QUOTED;return h.DOUBLE_QUOTED}function vr(e){if(!e.presenterOptions.quoteFlowKeys)return;if(!e.isKey||!e.flowOnly||e.style!==h.PLAIN)return;e.style=h.DOUBLE_QUOTED}function yr(e){if(e.style===h.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value))e.style=h.DOUBLE_QUOTED}function kr(e){if(e.style===h.PLAIN&&/^\s+$/.test(e.node.value))e.style=h.DOUBLE_QUOTED}function Fr(e){if(!e.presenterOptions.forceQuotes)return;if(e.isKey||e.style!==h.PLAIN)return;if(e.node.tag!==e.presenterOptions.schema.defaultScalarTag.tagName)return;e.style=e.node.value.includes(`
|
|
20
20
|
`)?h.DOUBLE_QUOTED:mn(e)}function xr(e){if(e.style!==h.PLAIN||e.isKey)return;let n=e.node.value,i=n.indexOf(`
|
|
21
21
|
`)!==-1;if(!oe(e.allowedStylesMask,h.LITERAL_BLOCK)){if(i)e.style=h.DOUBLE_QUOTED;return}let r=e.presenterOptions.lineWidth;if(r===-1){if(i)e.style=h.LITERAL_BLOCK;return}let t=Math.max(Math.min(r,40),r-e.shiftOfContent),o=0,a=!1;while(o<=n.length){let l=n.length,c=n.indexOf(`
|
|
22
22
|
`,o);if(c!==-1)l=c;let f=n.slice(o,l);if(f.length>t&&f[0]!==" "&&/ [^ \t]/.test(f))a=!0;if(c===-1)break;o=c+1}if(a)e.style=h.FOLDED_BLOCK;else if(i)e.style=h.LITERAL_BLOCK}function br(e){if(e.style===h.PLAIN&&!oe(e.allowedStylesMask,h.PLAIN))e.style=mn(e)}function wr(e){if(!oe(e.allowedStylesMask,e.style))e.style=h.DOUBLE_QUOTED}function j(e,n){return e|1<<n}var Pr="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Rr="[\\n\\r]",$r="\\uFEFF",Fe="[ \\t]",Sn=`(?:(?!(?:${Rr}|${$r}))${Pr})`,ae=`(?:(?!${Fe})${Sn})`,En="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",An="[-?:,\\[\\]{}#&*!|>'\"%@`]",Br="[,\\[\\]{}]",Ae=ae,Te=`(?:(?!${Br})${ae})`,Dr=`(?:(?:(?!${An})${ae})|[?:-](?=${Ae}))`,Mr=`(?:(?:(?!${An})${ae})|[?:-](?=${Te}))`,Tn=`(?:(?:(?![:#])${Ae})|:(?=${Ae}))#*`,Ln=`(?:(?:(?![:#])${Te})|:(?=${Te}))#*`,Nn=`(?:${Fe}*${Tn})*`,Cn=`(?:${Fe}*${Ln})*`,In=`${Dr}#*${Nn}`,_n=`${Mr}#*${Cn}`,Ur=In,Kr=_n,Yr=`\\n+${Tn}${Nn}`,qr=`\\n+${Ln}${Cn}`,Wr=`${In}(?:${Yr})*`,Gr=`${_n}(?:${qr})*`,Vr=new RegExp(`^(?:${Wr})$`,"u"),Hr=new RegExp(`^(?:${Gr})$`,"u"),Qr=new RegExp(`^(?:${Ur})$`,"u"),jr=new RegExp(`^(?:${Kr})$`,"u"),zr=new RegExp(`^(?:${En})*$`,"u"),Xr=new RegExp(`^(?:${En}|\\n)*$`,"u"),Jr=new RegExp(`^(?:${Sn}|\\n)*$`,"u"),Zr=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,xe=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function et(e){let n=e.node.value;if(n!==""){if(!(e.isKey?e.flowOnly?jr:Qr:e.flowOnly?Hr:Vr).test(n))return!1;if(e.shiftOfFirstLine===0&&Zr.test(n))return!1;if(e.shiftOfContent===0){let r=n.indexOf(`
|
|
@@ -49,7 +49,7 @@ ${" ".repeat(e.indent*n)}`}function St(e,n,i,r,t,o){return{node:n,parent:i,level
|
|
|
49
49
|
`:" ";r+=`---${u}${s}
|
|
50
50
|
`}else r+=w(i,0,a.contents,null,{block:!0,compact:!0}).text+`
|
|
51
51
|
`;if(t=a.explicitEnd||i.openEnded,t)r+=`...
|
|
52
|
-
`}return r}var It={...be,schema:wi,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function _t(e,n){let i=String(e),r=String(n);if(i<r)return-1;if(i>r)return 1;return 0}function
|
|
53
|
-
export{
|
|
52
|
+
`}return r}var It={...be,schema:wi,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function _t(e,n){let i=String(e),r=String(n);if(i<r)return-1;if(i>r)return 1;return 0}function ow(e,n={}){let i={...It,...n},r=_r(e,i.schema,{noRefs:i.noRefs,skipInvalid:i.skipInvalid});if(i.flowLevel>=0)Ve(r,(t,o)=>{if(o.depth<i.flowLevel)return;if(t.kind==="sequence"||t.kind==="mapping")t.style=v.FLOW;return gn});if(i.sortKeys){let t=i.sortKeys===!0?_t:i.sortKeys;Ve(r,(o)=>{if(o.kind!=="mapping")return;o.items.sort((a,l)=>t(a.key.kind==="scalar"?a.key.value:"",l.key.kind==="scalar"?l.key.value:""))})}return i.transform(r),Ct(r,{...me(i,Object.keys(be)),schema:i.schema})}var{DOCUMENT:kt,SEQUENCE:Ft,MAPPING:xt,SCALAR:bt,ALIAS:wt,POP:Pt}=T,{PLAIN:Rt,SINGLE_QUOTED:$t,DOUBLE_QUOTED:Bt,LITERAL_BLOCK:Dt,FOLDED_BLOCK:Mt}=h,{BLOCK:Ut,FLOW:Kt}=v,{CLIP:Yt,STRIP:qt,KEEP:Wt}=y;
|
|
53
|
+
export{w5,R5,bv,ow};
|
|
54
54
|
|
|
55
|
-
//# debugId=
|
|
55
|
+
//# debugId=5FAD6C4925F9503864756E2164756E21
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Qt,Rr,Qe,fn,e}from"./chunk-z637nqg8.js";import{xw,Br,me,Fs,v,oi,Lg,y$,Bg,Lk}from"./chunk-r5bxavdx.js";import{r,t,u}from"./chunk-rbpdk7m0.js";class Ju extends t{code;snapshotName;reasons;retryable=!1;constructor(n,i,a,s=[]){super(a);this.code=n;this.snapshotName=i;this.reasons=s;this.name="SnapshotFixtureRefusedError"}toPayload(){return{code:this.code,snapshotName:this.snapshotName,retryable:this.retryable,...this.reasons.length>0?{reasons:[...this.reasons]}:{}}}}import*as w from"path";function Jy(n,i){let a=(s)=>{throw new t(`Invalid ${n} '${i}': ${s}. Use a single path segment without path separators, '.'/'..', or an absolute path.`)};if(typeof i!=="string"||i.trim().length===0){a(`${n} must be a non-empty string`);return}if(i.includes("\x00")){a(`${n} contains a NUL byte`);return}if(i.includes("/")||i.includes("\\")){a(`${n} contains a path separator`);return}if(i==="."||i===".."){a(`${n} is a path traversal segment`);return}if(w.isAbsolute(i)||w.win32.isAbsolute(i)){a(`${n} is an absolute path`);return}}function dh(n){if(Jy("snapshot name",n),d_(n))throw new t("Broker baseline snapshots are reserved and cannot be accessed by deviceSnapshot tools")}var V4="automobile-broker-baseline-v1";function d_(n){return n.toLowerCase().startsWith("automobile-broker-baseline-")}import{promises as p}from"fs";import*as d from"path";var Zd=".replacing",Gq="ios",Yq="android";function kQ(n){let i=n.toLowerCase();if(i===Gq||i===Yq)return{kind:"scope-root",name:i};if(i.endsWith(Zd))return{kind:"suffix",suffix:Zd};return}async function b(n){let i=await p.open(n,"r");try{await i.sync()}finally{await i.close()}}class lh{syncDirectory;syncFile;basePath;constructor(n,i=b,a=(s)=>s.sync()){this.syncDirectory=i;this.syncFile=a;this.basePath=n||Qe(fn.SNAPSHOTS)}getBasePath(){return this.basePath}async ensureSnapshotsDirectory(){try{await p.mkdir(this.basePath,{recursive:!0})}catch(n){throw e.error(`Failed to create snapshots directory: ${n}`),n}}getSnapshotPath(n){return d.join(this.basePath,n)}getSnapshotPathWithOptions(n,i){if(i?.platform==="ios"&&i.deviceId)return Jy("iOS device id",i.deviceId),d.join(this.basePath,Gq,i.deviceId,n);if(i?.platform==="android"&&i.avdName)return Jy("Android AVD name",i.avdName),d.join(this.basePath,Yq,i.avdName,n);return this.getSnapshotPath(n)}getSettingsPath(n,i){return d.join(this.getSnapshotPathWithOptions(n,i),"settings.json")}getMetadataPath(n,i){return d.join(this.getSnapshotPathWithOptions(n,i),"metadata.json")}getAppDataPath(n,i){let a=i?.platform==="ios"?"app-data":"app_data";return d.join(this.getSnapshotPathWithOptions(n,i),a)}async snapshotDirectoryExists(n,i){try{return await p.access(this.getSnapshotPathWithOptions(n,i)),!0}catch(a){return e.debug(`src/utils/DeviceSnapshotStore.ts fallback failed: ${a}`,a),!1}}async replaceSnapshotData(n,i,a){let s=this.getSnapshotPathWithOptions(n,i),o=`${s}${Zd}`,c=this.getJournalPath(s);await this.recoverSnapshotData(n,i);let m=await this.pathExists(s);if(await this.writeJournal(c,m?"pending-existing":"pending-new"),m){try{await p.rename(s,o)}catch(h){if(h.code!=="ENOENT")throw h;await this.writeJournal(c,"pending-new")}await this.syncParent(s)}let l;try{l=await a()}catch(h){try{await this.recoverSnapshotData(n,i)}catch(g){e.warn(`Failed to roll back snapshot '${n}' after a failed overwrite; prior data may be stranded at '${o}': ${g}`)}throw h}await this.writeJournal(c,"committed");try{await this.recoverSnapshotData(n,i)}catch(h){e.warn(`Failed to clean committed snapshot journal '${c}'; it will be cleaned up on the next capture: ${h}`)}return l}async recoverSnapshotData(n,i){let a=this.getSnapshotPathWithOptions(n,i),s=`${a}${Zd}`,o=this.getJournalPath(a),c=this.getTempJournalPath(o),m=d.dirname(a);await p.mkdir(m,{recursive:!0});let l=await Qt(m);if(l.includes(d.basename(c)))await p.rm(c);let h=l.includes(d.basename(o))?await p.readFile(o,"utf-8"):void 0,g=await this.pathExists(s);if(h===void 0){if(g)await this.recoverLegacyAside(a,s);return}if(h!=="pending-existing"&&h!=="pending-new"&&h!=="committed")throw Error(`Invalid snapshot journal at '${o}': '${h}'`);if(h==="committed")await p.rm(s,{recursive:!0,force:!0});else if(g){if(h!=="pending-existing")throw Error(`Unexpected set-aside snapshot for new capture at '${s}'`);await p.rm(a,{recursive:!0,force:!0}),await p.rename(s,a)}else if(h==="pending-new")await p.rm(a,{recursive:!0,force:!0});await this.syncParent(a),await p.rm(o),await this.syncParent(a)}async discardSnapshotArtifacts(n,i){let a=this.getSnapshotPathWithOptions(n,i),s=this.getJournalPath(a),o=[];for(let c of[`${a}${Zd}`,s,this.getTempJournalPath(s)])try{await p.rm(c,{recursive:!0,force:!0})}catch(m){e.warn(`Failed to discard snapshot artifact '${c}'`,m),o.push(c)}return o}async listLeftoverSnapshotJournals(n){let i=[],a=await this.readJournalDirectory(this.getBasePath());if(this.collectJournalEntries(a,void 0,i,n.maxEntries))return{entries:i,truncated:!0};let s=0;for(let o of["android","ios"]){if(!a.some((l)=>l.name===o&&l.isDirectory()))continue;let c=d.join(this.getBasePath(),o),m=await this.readJournalDirectory(c);for(let l of m){if(!l.isDirectory()||!this.isSafeJournalSegment(l.name))continue;if(s>=n.maxScopeDirectories)return{entries:i,truncated:!0};s++;let h=o==="android"?{platform:o,avdName:l.name}:{platform:o,deviceId:l.name},g=await this.readJournalDirectory(d.join(c,l.name));if(this.collectJournalEntries(g,h,i,n.maxEntries))return{entries:i,truncated:!0}}}return{entries:i,truncated:!1}}async readJournalDirectory(n){try{return(await Rr(n)).sort((a,s)=>a.name<s.name?-1:a.name>s.name?1:0)}catch(i){if(i.code==="ENOENT")return e.debug(`Snapshot journal directory '${n}' does not exist`,i),[];throw u(i,`Failed to enumerate snapshot journals in '${n}'`)}}isSafeJournalSegment(n){try{return Jy("snapshot journal segment",n),!0}catch(i){return e.debug(`Skipping unsafe snapshot journal segment '${n}'`,i),!1}}collectJournalEntries(n,i,a,s){let o=new Set;for(let c of n){if(!c.name.endsWith(Zd)||c.isSymbolicLink())continue;let m=c.name.endsWith(".journal.tmp.replacing")?".journal.tmp.replacing":c.name.endsWith(".journal.replacing")?".journal.replacing":Zd,l=c.name.slice(0,-m.length);if(!this.isSafeJournalSegment(l)||o.has(l))continue;if(!i&&["android","ios"].includes(l))continue;if(o.add(l),a.length>=s)return!0;if(a.push({snapshotName:l,options:i}),a.length>=s)return!0}return!1}async recoverLegacyAside(n,i){if(await this.pathExists(n))e.warn(`Removing legacy set-aside snapshot '${i}' because '${n}' exists`),await p.rm(i,{recursive:!0,force:!0});else e.warn(`Restoring legacy set-aside snapshot '${i}' to '${n}'`),await p.rename(i,n);await this.syncParent(n)}getJournalPath(n){return`${n}.journal${Zd}`}getTempJournalPath(n){return`${n.slice(0,-Zd.length)}.tmp${Zd}`}async writeJournal(n,i){let a=this.getTempJournalPath(n),s=await p.open(a,"wx");try{await s.writeFile(i),await this.syncFile(s)}finally{await s.close()}await p.rename(a,n),await this.syncParent(n)}async syncParent(n){try{await this.syncDirectory(d.dirname(n))}catch(i){let a=i.code;if(a==="EPERM"||a==="EINVAL"||a==="EISDIR"||a==="ENOTSUP"){e.debug(`Skipping unsupported directory sync for '${n}': ${i}`);return}throw i}}async pathExists(n){return(await Qt(d.dirname(n))).includes(d.basename(n))}async deleteSnapshotData(n,i){let a=this.getSnapshotPathWithOptions(n,i);try{await p.rm(a,{recursive:!0,force:!0})}catch(s){e.warn(`Failed to delete snapshot data '${n}': ${s}`)}}generateSnapshotName(n){let a=new Date().toISOString().replace(/[:.]/g,"-").replace("T","_").split(".")[0];if(n)return`${n.replace(/[^a-zA-Z0-9-_]/g,"_")}_${a}`;return`snapshot_${a}`}async getSnapshotSizeBytes(n,i){let a=this.getSnapshotPathWithOptions(n,i),s;try{s=await Rr(a)}catch(o){if(o.code==="ENOENT")return e.debug(`Snapshot archive ${a} does not exist: ${o}`),0;return e.warn(`Failed to read snapshot archive ${a}: ${o}`,o),null}return this.getDirectorySizeFromEntries(a,s)}async getDirectorySize(n){let i;try{i=await Rr(n)}catch(a){return e.debug(`Failed to get directory size for ${n}: ${a}`),null}return this.getDirectorySizeFromEntries(n,i)}async getDirectorySizeFromEntries(n,i){let a=0;for(let s of i){let o=d.join(n,s.name);if(s.isDirectory()){let c=await this.getDirectorySize(o);if(c===null)return null;a+=c}else{let c=await this.getFileSize(o);if(c===null)return null;a+=c}}return a}async listSubdirectoryNames(n){try{return(await Rr(n)).filter((a)=>a.isDirectory()).map((a)=>a.name)}catch(i){return e.debug(`Failed to list subdirectories of ${n}: ${i}`),null}}async listFileNames(n){try{return(await Rr(n)).filter((a)=>a.isFile()).map((a)=>a.name)}catch(i){return e.debug(`Failed to list files of ${n}: ${i}`),null}}async getFileSize(n){try{return(await p.stat(n)).size}catch(i){return e.debug(`Failed to stat ${n} while measuring a directory: ${i}`),null}}}async function Jq(n,i){if(!n)return null;return(await i()).find((s)=>s.name===n)?.deviceId??null}import*as P from"path";var lm="default_boot",D=".avd",A=".ini";class W4{directories;avdDirectories;emulator;adbFactory;consoleBusyRegistry;constructor(n=new lh,{avdDirectories:i=new Br,emulator:a=new oi,adbFactory:s=v,consoleBusyRegistry:o=Fs}={}){this.consoleBusyRegistry=o,this.directories=n,this.avdDirectories=i,this.emulator=a,this.adbFactory=s}async measureVmSnapshotBytes(n,i){let a=await this.resolveSnapshotsRoot(n);if(!a)return null;return this.directories.getDirectorySize(P.join(a,i))}async listAvdSnapshotDirectories(n){let i=await this.resolveSnapshotsRoot(n);if(!i)return[];let a=await this.directories.listSubdirectoryNames(i);if(!a)return[];let s=[];for(let o of a){if(d_(o))continue;let c=P.join(i,o);s.push({snapshotName:o,directoryPath:c,sizeBytes:await this.directories.getDirectorySize(c)})}return s}async listKnownAvdNames(){let n=this.avdDirectories.getAvdHome(),i=new Set;for(let[a,s]of[[await this.directories.listSubdirectoryNames(n),D],[await this.directories.listFileNames(n),A]])for(let o of a??[])if(o.endsWith(s)&&o.length>s.length)i.add(o.slice(0,-s.length));return Array.from(i)}async findLiveEmulatorSerial(n){if(!n)return null;try{return await Jq(n,()=>this.emulator.getBootedDevices(!0))}catch(i){return e.warn(`[AvdSnapshot] Failed to look up a live emulator for AVD '${n}': ${r(i)}`,i),null}}async deleteVmSnapshot(n,i,a,s){if(d_(i))return{reclaimed:!1,reason:"Broker baseline snapshot is reserved"};let o=this.adbFactory.create({deviceId:n,name:n,platform:"android"}),c;try{c=Lg("delete",i)}catch(y){let f=r(y);return e.warn(`[AvdSnapshot] ${f}`,y),{reclaimed:!1,reason:f}}let m=s===void 0?void 0:new AbortController,l=m?me(m.signal):void 0,h,g;try{g=await this.consoleBusyRegistry.runExclusive(n,async()=>o.execute(c.split(" "),{timeoutMs:a,waitForProcessSettlementAfterAbort:!0,...m?{signal:l,beforeDispatch:async(y)=>{let f=await this.emulator.resolveAvdNameForSerial(n,{signal:l,timeoutMs:y??a,consoleExclusiveOwner:!0});if(f!==s)throw h=`Skipping VM snapshot delete for '${i}': serial '${n}' expected AVD '${s}' but currently hosts '${f??"no longer live"}'`,e.warn(`[AvdSnapshot] ${h}`),m.abort(),Error(h)}}:{}}))}catch(y){if(h!==void 0)return{reclaimed:!1,reason:h};let f=Lk("delete",i,y);return e.warn(`[AvdSnapshot] ${f}`,y),{reclaimed:!1,reason:f}}let S=Bg("delete",i,g);if(S.ok)return{reclaimed:!0};if(y$(S.errorMessage))return e.debug(`[AvdSnapshot] ${S.errorMessage}`),{reclaimed:!0};return e.warn(`[AvdSnapshot] ${S.errorMessage}`),{reclaimed:!1,reason:S.errorMessage}}async resolveSnapshotsRoot(n){if(!n)return null;let i=await this.avdDirectories.resolveAvdDirectory(n);if(!i)return null;return P.join(i,xw)}}
|
|
3
|
-
export{
|
|
2
|
+
import{er,Tr,Je,vn,e}from"./chunk-r0vp315h.js";import{Jw,Nr,me,qs,v,pi,ry,M$,ny,eE}from"./chunk-sfqe223f.js";import{r,t,u}from"./chunk-2b39zyxc.js";class lp extends t{code;snapshotName;reasons;retryable=!1;constructor(n,i,a,s=[]){super(a);this.code=n;this.snapshotName=i;this.reasons=s;this.name="SnapshotFixtureRefusedError"}toPayload(){return{code:this.code,snapshotName:this.snapshotName,retryable:this.retryable,...this.reasons.length>0?{reasons:[...this.reasons]}:{}}}}import*as w from"path";function pv(n,i){let a=(s)=>{throw new t(`Invalid ${n} '${i}': ${s}. Use a single path segment without path separators, '.'/'..', or an absolute path.`)};if(typeof i!=="string"||i.trim().length===0){a(`${n} must be a non-empty string`);return}if(i.includes("\x00")){a(`${n} contains a NUL byte`);return}if(i.includes("/")||i.includes("\\")){a(`${n} contains a path separator`);return}if(i==="."||i===".."){a(`${n} is a path traversal segment`);return}if(w.isAbsolute(i)||w.win32.isAbsolute(i)){a(`${n} is an absolute path`);return}}function wh(n){if(pv("snapshot name",n),b_(n))throw new t("Broker baseline snapshots are reserved and cannot be accessed by deviceSnapshot tools")}var i5="automobile-broker-baseline-v1";function b_(n){return n.toLowerCase().startsWith("automobile-broker-baseline-")}import{promises as p}from"fs";import*as d from"path";var sl=".replacing",oV="ios",sV="android";function HQ(n){let i=n.toLowerCase();if(i===oV||i===sV)return{kind:"scope-root",name:i};if(i.endsWith(sl))return{kind:"suffix",suffix:sl};return}async function b(n){let i=await p.open(n,"r");try{await i.sync()}finally{await i.close()}}class Rh{syncDirectory;syncFile;basePath;constructor(n,i=b,a=(s)=>s.sync()){this.syncDirectory=i;this.syncFile=a;this.basePath=n||Je(vn.SNAPSHOTS)}getBasePath(){return this.basePath}async ensureSnapshotsDirectory(){try{await p.mkdir(this.basePath,{recursive:!0})}catch(n){throw e.error(`Failed to create snapshots directory: ${n}`),n}}getSnapshotPath(n){return d.join(this.basePath,n)}getSnapshotPathWithOptions(n,i){if(i?.platform==="ios"&&i.deviceId)return pv("iOS device id",i.deviceId),d.join(this.basePath,oV,i.deviceId,n);if(i?.platform==="android"&&i.avdName)return pv("Android AVD name",i.avdName),d.join(this.basePath,sV,i.avdName,n);return this.getSnapshotPath(n)}getSettingsPath(n,i){return d.join(this.getSnapshotPathWithOptions(n,i),"settings.json")}getMetadataPath(n,i){return d.join(this.getSnapshotPathWithOptions(n,i),"metadata.json")}getAppDataPath(n,i){let a=i?.platform==="ios"?"app-data":"app_data";return d.join(this.getSnapshotPathWithOptions(n,i),a)}async snapshotDirectoryExists(n,i){try{return await p.access(this.getSnapshotPathWithOptions(n,i)),!0}catch(a){return e.debug(`src/utils/DeviceSnapshotStore.ts fallback failed: ${a}`,a),!1}}async replaceSnapshotData(n,i,a){let s=this.getSnapshotPathWithOptions(n,i),o=`${s}${sl}`,c=this.getJournalPath(s);await this.recoverSnapshotData(n,i);let m=await this.pathExists(s);if(await this.writeJournal(c,m?"pending-existing":"pending-new"),m){try{await p.rename(s,o)}catch(h){if(h.code!=="ENOENT")throw h;await this.writeJournal(c,"pending-new")}await this.syncParent(s)}let l;try{l=await a()}catch(h){try{await this.recoverSnapshotData(n,i)}catch(g){e.warn(`Failed to roll back snapshot '${n}' after a failed overwrite; prior data may be stranded at '${o}': ${g}`)}throw h}await this.writeJournal(c,"committed");try{await this.recoverSnapshotData(n,i)}catch(h){e.warn(`Failed to clean committed snapshot journal '${c}'; it will be cleaned up on the next capture: ${h}`)}return l}async recoverSnapshotData(n,i){let a=this.getSnapshotPathWithOptions(n,i),s=`${a}${sl}`,o=this.getJournalPath(a),c=this.getTempJournalPath(o),m=d.dirname(a);await p.mkdir(m,{recursive:!0});let l=await er(m);if(l.includes(d.basename(c)))await p.rm(c);let h=l.includes(d.basename(o))?await p.readFile(o,"utf-8"):void 0,g=await this.pathExists(s);if(h===void 0){if(g)await this.recoverLegacyAside(a,s);return}if(h!=="pending-existing"&&h!=="pending-new"&&h!=="committed")throw Error(`Invalid snapshot journal at '${o}': '${h}'`);if(h==="committed")await p.rm(s,{recursive:!0,force:!0});else if(g){if(h!=="pending-existing")throw Error(`Unexpected set-aside snapshot for new capture at '${s}'`);await p.rm(a,{recursive:!0,force:!0}),await p.rename(s,a)}else if(h==="pending-new")await p.rm(a,{recursive:!0,force:!0});await this.syncParent(a),await p.rm(o),await this.syncParent(a)}async discardSnapshotArtifacts(n,i){let a=this.getSnapshotPathWithOptions(n,i),s=this.getJournalPath(a),o=[];for(let c of[`${a}${sl}`,s,this.getTempJournalPath(s)])try{await p.rm(c,{recursive:!0,force:!0})}catch(m){e.warn(`Failed to discard snapshot artifact '${c}'`,m),o.push(c)}return o}async listLeftoverSnapshotJournals(n){let i=[],a=await this.readJournalDirectory(this.getBasePath());if(this.collectJournalEntries(a,void 0,i,n.maxEntries))return{entries:i,truncated:!0};let s=0;for(let o of["android","ios"]){if(!a.some((l)=>l.name===o&&l.isDirectory()))continue;let c=d.join(this.getBasePath(),o),m=await this.readJournalDirectory(c);for(let l of m){if(!l.isDirectory()||!this.isSafeJournalSegment(l.name))continue;if(s>=n.maxScopeDirectories)return{entries:i,truncated:!0};s++;let h=o==="android"?{platform:o,avdName:l.name}:{platform:o,deviceId:l.name},g=await this.readJournalDirectory(d.join(c,l.name));if(this.collectJournalEntries(g,h,i,n.maxEntries))return{entries:i,truncated:!0}}}return{entries:i,truncated:!1}}async readJournalDirectory(n){try{return(await Tr(n)).sort((a,s)=>a.name<s.name?-1:a.name>s.name?1:0)}catch(i){if(i.code==="ENOENT")return e.debug(`Snapshot journal directory '${n}' does not exist`,i),[];throw u(i,`Failed to enumerate snapshot journals in '${n}'`)}}isSafeJournalSegment(n){try{return pv("snapshot journal segment",n),!0}catch(i){return e.debug(`Skipping unsafe snapshot journal segment '${n}'`,i),!1}}collectJournalEntries(n,i,a,s){let o=new Set;for(let c of n){if(!c.name.endsWith(sl)||c.isSymbolicLink())continue;let m=c.name.endsWith(".journal.tmp.replacing")?".journal.tmp.replacing":c.name.endsWith(".journal.replacing")?".journal.replacing":sl,l=c.name.slice(0,-m.length);if(!this.isSafeJournalSegment(l)||o.has(l))continue;if(!i&&["android","ios"].includes(l))continue;if(o.add(l),a.length>=s)return!0;if(a.push({snapshotName:l,options:i}),a.length>=s)return!0}return!1}async recoverLegacyAside(n,i){if(await this.pathExists(n))e.warn(`Removing legacy set-aside snapshot '${i}' because '${n}' exists`),await p.rm(i,{recursive:!0,force:!0});else e.warn(`Restoring legacy set-aside snapshot '${i}' to '${n}'`),await p.rename(i,n);await this.syncParent(n)}getJournalPath(n){return`${n}.journal${sl}`}getTempJournalPath(n){return`${n.slice(0,-sl.length)}.tmp${sl}`}async writeJournal(n,i){let a=this.getTempJournalPath(n),s=await p.open(a,"wx");try{await s.writeFile(i),await this.syncFile(s)}finally{await s.close()}await p.rename(a,n),await this.syncParent(n)}async syncParent(n){try{await this.syncDirectory(d.dirname(n))}catch(i){let a=i.code;if(a==="EPERM"||a==="EINVAL"||a==="EISDIR"||a==="ENOTSUP"){e.debug(`Skipping unsupported directory sync for '${n}': ${i}`);return}throw i}}async pathExists(n){return(await er(d.dirname(n))).includes(d.basename(n))}async deleteSnapshotData(n,i){let a=this.getSnapshotPathWithOptions(n,i);try{await p.rm(a,{recursive:!0,force:!0})}catch(s){e.warn(`Failed to delete snapshot data '${n}': ${s}`)}}generateSnapshotName(n){let a=new Date().toISOString().replace(/[:.]/g,"-").replace("T","_").split(".")[0];if(n)return`${n.replace(/[^a-zA-Z0-9-_]/g,"_")}_${a}`;return`snapshot_${a}`}async getSnapshotSizeBytes(n,i){let a=this.getSnapshotPathWithOptions(n,i),s;try{s=await Tr(a)}catch(o){if(o.code==="ENOENT")return e.debug(`Snapshot archive ${a} does not exist: ${o}`),0;return e.warn(`Failed to read snapshot archive ${a}: ${o}`,o),null}return this.getDirectorySizeFromEntries(a,s)}async getDirectorySize(n){let i;try{i=await Tr(n)}catch(a){return e.debug(`Failed to get directory size for ${n}: ${a}`),null}return this.getDirectorySizeFromEntries(n,i)}async getDirectorySizeFromEntries(n,i){let a=0;for(let s of i){let o=d.join(n,s.name);if(s.isDirectory()){let c=await this.getDirectorySize(o);if(c===null)return null;a+=c}else{let c=await this.getFileSize(o);if(c===null)return null;a+=c}}return a}async listSubdirectoryNames(n){try{return(await Tr(n)).filter((a)=>a.isDirectory()).map((a)=>a.name)}catch(i){return e.debug(`Failed to list subdirectories of ${n}: ${i}`),null}}async listFileNames(n){try{return(await Tr(n)).filter((a)=>a.isFile()).map((a)=>a.name)}catch(i){return e.debug(`Failed to list files of ${n}: ${i}`),null}}async getFileSize(n){try{return(await p.stat(n)).size}catch(i){return e.debug(`Failed to stat ${n} while measuring a directory: ${i}`),null}}}async function aV(n,i){if(!n)return null;return(await i()).find((s)=>s.name===n)?.deviceId??null}import*as P from"path";var Am="default_boot",D=".avd",A=".ini";class o5{directories;avdDirectories;emulator;adbFactory;consoleBusyRegistry;constructor(n=new Rh,{avdDirectories:i=new Nr,emulator:a=new pi,adbFactory:s=v,consoleBusyRegistry:o=qs}={}){this.consoleBusyRegistry=o,this.directories=n,this.avdDirectories=i,this.emulator=a,this.adbFactory=s}async measureVmSnapshotBytes(n,i){let a=await this.resolveSnapshotsRoot(n);if(!a)return null;return this.directories.getDirectorySize(P.join(a,i))}async listAvdSnapshotDirectories(n){let i=await this.resolveSnapshotsRoot(n);if(!i)return[];let a=await this.directories.listSubdirectoryNames(i);if(!a)return[];let s=[];for(let o of a){if(b_(o))continue;let c=P.join(i,o);s.push({snapshotName:o,directoryPath:c,sizeBytes:await this.directories.getDirectorySize(c)})}return s}async listKnownAvdNames(){let n=this.avdDirectories.getAvdHome(),i=new Set;for(let[a,s]of[[await this.directories.listSubdirectoryNames(n),D],[await this.directories.listFileNames(n),A]])for(let o of a??[])if(o.endsWith(s)&&o.length>s.length)i.add(o.slice(0,-s.length));return Array.from(i)}async findLiveEmulatorSerial(n){if(!n)return null;try{return await aV(n,()=>this.emulator.getBootedDevices(!0))}catch(i){return e.warn(`[AvdSnapshot] Failed to look up a live emulator for AVD '${n}': ${r(i)}`,i),null}}async deleteVmSnapshot(n,i,a,s){if(b_(i))return{reclaimed:!1,reason:"Broker baseline snapshot is reserved"};let o=this.adbFactory.create({deviceId:n,name:n,platform:"android"}),c;try{c=ry("delete",i)}catch(y){let f=r(y);return e.warn(`[AvdSnapshot] ${f}`,y),{reclaimed:!1,reason:f}}let m=s===void 0?void 0:new AbortController,l=m?me(m.signal):void 0,h,g;try{g=await this.consoleBusyRegistry.runExclusive(n,async()=>o.execute(c.split(" "),{timeoutMs:a,waitForProcessSettlementAfterAbort:!0,...m?{signal:l,beforeDispatch:async(y)=>{let f=await this.emulator.resolveAvdNameForSerial(n,{signal:l,timeoutMs:y??a,consoleExclusiveOwner:!0});if(f!==s)throw h=`Skipping VM snapshot delete for '${i}': serial '${n}' expected AVD '${s}' but currently hosts '${f??"no longer live"}'`,e.warn(`[AvdSnapshot] ${h}`),m.abort(),Error(h)}}:{}}))}catch(y){if(h!==void 0)return{reclaimed:!1,reason:h};let f=eE("delete",i,y);return e.warn(`[AvdSnapshot] ${f}`,y),{reclaimed:!1,reason:f}}let S=ny("delete",i,g);if(S.ok)return{reclaimed:!0};if(M$(S.errorMessage))return e.debug(`[AvdSnapshot] ${S.errorMessage}`),{reclaimed:!0};return e.warn(`[AvdSnapshot] ${S.errorMessage}`),{reclaimed:!1,reason:S.errorMessage}}async resolveSnapshotsRoot(n){if(!n)return null;let i=await this.avdDirectories.resolveAvdDirectory(n);if(!i)return null;return P.join(i,Jw)}}
|
|
3
|
+
export{lp,pv,wh,i5,b_,sl,oV,sV,HQ,Rh,aV,Am,o5};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=DA0BD9FC363E64D764756E2164756E21
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{r_,bi,cu,ra}from"./chunk-8nj68t1v.js";import{y,te,g,ne}from"./chunk-w5yypt53.js";var mee=g({type:ne("mcp_response"),id:y().nullable(),success:te(),error:y().optional()}).passthrough();function fee(e){if(!e||typeof e!=="object"||Array.isArray(e))return;let n=e;if(typeof n.name!=="string"||n.name.length===0||typeof n.message!=="string"||n.message.length===0)return;return{name:n.name,message:n.message}}var yc="daemon_session_not_found",Ch="liveness_owner_superseded",Dh="liveness_owner_unowned",JA="liveness_owner_not_owner",mu="daemon_session_suspect",Q0="daemon_instance_changed",nw="liveness_owner_conflict",eF="liveness_owner_is_proxy",pp="daemon_tool_unavailable";function hee(e){return e!==null&&typeof e==="object"&&"code"in e&&e.code===pp}var Tm="daemon_unknown_tool",km="daemon_session_not_active";function SV(e){if(e===null||typeof e!=="object"||!("code"in e))return;return e.code}var tF="bound_session_lost";function Ns(e){if(e===null||typeof e!=="object"||!("releaseReason"in e))return;let{releaseReason:n}=e;return typeof n==="string"&&n.length>0?n:void 0}function Xc(e){if(e===null||typeof e!=="object"||!("daemonInstance"in e))return;let{daemonInstance:n}=e;return typeof n==="string"&&n.length>0?n:void 0}function Oh(e,n){if(!e)return{};return{releaseReason:e,...bi(e),...cu(e,n)}}function S5(e){if(e===null||typeof e!=="object"||!("idleTimeoutMs"in e))return;let{idleTimeoutMs:n}=e;return typeof n==="number"&&Number.isSafeInteger(n)&&n>0?n:void 0}var t="owner-disconnected",s="heartbeat-timeout";function rF(e){let n=`Device session ${e.sessionUuid} is no longer active (${e.reason}). `,o="Acquire a new device session before continuing.";if(e.reason===s)return`${n}The daemon stopped receiving this session's liveness heartbeats, so it released the device; check that the client process holding the session is still running. Acquire a new device session before continuing.`;if(e.reason===t)return`${n}The client connection that owned this session closed, so the daemon released the device. Acquire a new device session before continuing.`;if(ra(e.reason))return`${n}The daemon shut down or restarted, or the device restarted, and this session was not restored. Acquire a new device session before continuing.`;return r_(e.reason)?`${n}The session was released after sitting idle past its window; time the host spent asleep counts toward that window. Acquire a new device session before continuing.`:`${n}Acquire a new device session before continuing.`}function r(e,n){return[e.sessionId===n,typeof e.deviceId==="string",typeof e.releaseReason==="string",typeof e.releasedAtMs==="number"&&Number.isFinite(e.releasedAtMs),typeof e.terminal==="boolean"].every(Boolean)}function i(e){if(!e||typeof e!=="object"||Array.isArray(e))return!1;let n=e;return[typeof n.lastHeartbeatMs==="number"&&Number.isFinite(n.lastHeartbeatMs),typeof n.hasReceivedHeartbeat==="boolean",typeof n.timeoutMs==="number"&&Number.isFinite(n.timeoutMs),typeof n.ageMs==="number"&&Number.isFinite(n.ageMs)].every(Boolean)}function a(e,n){if(!e||typeof e!=="object"||Array.isArray(e))return;let o=e;if(!r(o,n)||!i(o.heartbeat))return;return{sessionId:n,deviceId:o.deviceId,releaseReason:o.releaseReason,releasedAtMs:o.releasedAtMs,terminal:o.terminal,...typeof o.ownerPid==="number"&&Number.isInteger(o.ownerPid)?{ownerPid:o.ownerPid}:{},...typeof o.cliIdleTimeoutMs==="number"&&Number.isSafeInteger(o.cliIdleTimeoutMs)&&o.cliIdleTimeoutMs>0?{cliIdleTimeoutMs:o.cliIdleTimeoutMs}:{},heartbeat:o.heartbeat}}function gee(e){if(!e||typeof e!=="object"||Array.isArray(e))return;let n=e;if(n.code!==tF||typeof n.sessionUuid!=="string"||n.sessionUuid.trim().length===0||typeof n.reason!=="string"||n.reason.trim().length===0)return;let o=a(n.release,n.sessionUuid);return{code:tF,sessionUuid:n.sessionUuid,reason:n.reason,...bi(n.reason),...o?{release:o}:{}}}var iw="notifications/progress",nF="notifications/automobile/requestBudget",XA="resources/subscribe",iF="resources/unsubscribe",yee=g({type:ne("daemon_notification"),method:y()}).passthrough();
|
|
3
|
+
export{mee,fee,yc,Ch,Dh,JA,mu,Q0,nw,eF,pp,hee,Tm,km,SV,tF,Ns,Xc,Oh,S5,rF,gee,iw,nF,XA,iF,yee};
|
|
4
|
+
|
|
5
|
+
//# debugId=7D26AF4BEA75157A64756E2164756E21
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function D(e,r,t,o,n){if(o==="m")throw TypeError("Private method is not writable");if(o==="a"&&!n)throw TypeError("Private accessor was defined without a setter");if(typeof r==="function"?e!==r||!n:!r.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?n.call(e,t):n?n.value=t:r.set(e,t),t}function d(e,r,t,o){if(t==="a"&&!o)throw TypeError("Private accessor was defined without a getter");if(typeof r==="function"?e!==r||!o:!r.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?o:t==="a"?o.call(e):o?o.value:r.get(e)}function wu(e){return typeof e==="object"&&e!==null&&(("name"in e)&&e.name==="AbortError"||("message"in e)&&String(e.message).includes("FetchRequestCanceledException"))}var Ew=(e)=>{if(e instanceof Error)return e;if(typeof e==="object"&&e!==null){try{let r=Object.prototype.toString.call(e);if(r==="[object Error]"||r==="[object DOMException]"){let t=Error(e.message,e.cause?{cause:e.cause}:{});if(e.stack)t.stack=e.stack;if(e.cause&&!t.cause)t.cause=e.cause;if(e.name)t.name=e.name;return t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};var Z=(()=>{class e extends Error{constructor(r,t){super(r,t);Object.defineProperty(this,"name",{value:new.target._errorName,writable:!0,configurable:!0})}}return e._errorName="AnthropicError",e})(),rn=(()=>{class e extends Z{constructor(r,t,o,n,a){super(`${e.makeMessage(r,t,o)}`);this.status=r,this.headers=n,this.requestID=n?.get("request-id"),this.workspaceID=n?.get("anthropic-workspace-id"),this.error=t;let s=t??{};this.apiMessage=s.error?.message??null,this.type=a??s.error?.type??null;let l=s.error?.details?.error_code;this.errorCode=typeof l==="string"?l:null,this.details=s.error?.details??null}static makeMessage(r,t,o){let n=t?.message?typeof t.message==="string"?t.message:JSON.stringify(t.message):t?JSON.stringify(t):o;if(r&&n)return`${r} ${n}`;if(r)return`${r} status code (no body)`;if(n)return n;return"(no status code or body)"}static generate(r,t,o,n){if(!r||!n)return new Ov({message:o,cause:Ew(t)});let a=t,s=b.get(r);if(s)return new s(r,a,o,n);if(r>=500)return new ET(r,a,o,n);return new e(r,a,o,n)}}return e._errorName="APIError",e})(),aa=(()=>{class e extends rn{constructor({message:r}={}){super(void 0,void 0,r||"Request was aborted.",void 0)}}return e._errorName="APIUserAbortError",e})(),Ov=(()=>{class e extends rn{constructor({message:r,cause:t}){super(void 0,void 0,r||"Connection error.",void 0);if(t)this.cause=t}}return e._errorName="APIConnectionError",e})(),pL=(()=>{class e extends Ov{constructor({message:r}={}){super({message:r??"Request timed out."})}}return e._errorName="APIConnectionTimeoutError",e})(),dte=(()=>{class e extends Z{constructor(r,{cause:t}={}){super(r??"Retryable error.");if(t!==void 0)this.cause=t}}return e._errorName="RetryableError",e})(),qe=(()=>{class e extends rn{}return e._errorName="BadRequestError",e})(),e3=(()=>{class e extends rn{}return e._errorName="AuthenticationError",e})(),ds=(()=>{class e extends rn{}return e._errorName="PermissionDeniedError",e})(),$m=(()=>{class e extends rn{}return e._errorName="NotFoundError",e})(),t3=(()=>{class e extends rn{}return e._errorName="RequestTimeoutError",e})(),nd=(()=>{class e extends rn{}return e._errorName="ConflictError",e})(),mL=(()=>{class e extends rn{}return e._errorName="PreconditionFailedError",e})(),fL=(()=>{class e extends rn{}return e._errorName="ContentTooLargeError",e})(),r3=(()=>{class e extends rn{}return e._errorName="UnprocessableEntityError",e})(),CC=(()=>{class e extends rn{}return e._errorName="RateLimitError",e})(),n3=(()=>{class e extends rn{}return e._errorName="RequestHeaderFieldsTooLargeError",e})(),i3=(()=>{class e extends rn{}return e._errorName="ClientClosedRequestError",e})(),ET=(()=>{class e extends rn{}return e._errorName="InternalServerError",e})(),o3=(()=>{class e extends ET{}return e._errorName="NotImplementedError",e})(),Iw=(()=>{class e extends ET{}return e._errorName="ServiceUnavailableError",e})(),s3=(()=>{class e extends ET{}return e._errorName="GatewayTimeoutError",e})(),hL=(()=>{class e extends ET{}return e._errorName="OverloadedError",e})(),b=new Map([[400,qe],[401,e3],[403,ds],[404,$m],[408,t3],[409,nd],[412,mL],[413,fL],[422,r3],[429,CC],[431,n3],[499,i3],[501,o3],[503,Iw],[504,s3],[529,hL]]);var E=/^[a-z][a-z0-9+.-]*:/i,lte=(e)=>E.test(e),Sc=(e)=>(Sc=Array.isArray,Sc(e)),gL=Sc;function DC(e){if(typeof e!=="object")return{};return e??{}}function a3(e){if(!e)return!0;for(let r in e)return!1;return!0}function x(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Wo(e){return e!=null&&typeof e==="object"&&!Array.isArray(e)}var jV=(e,r)=>{if(typeof r!=="number"||!Number.isInteger(r))throw new Z(`${e} must be an integer`);if(r<0)throw new Z(`${e} must be a positive integer`);return r},IT=["apiKey","authToken","credentials","config","profile"];var KV=(e)=>{try{return JSON.parse(e)}catch(r){return}};function yp(e){}function ute(e){let r=0;for(let n of e)r+=n.length;let t=new Uint8Array(r),o=0;for(let n of e)t.set(n,o),o+=n.length;return t}var m;function _w(e){let r;return(m??(r=new globalThis.TextEncoder,m=r.encode.bind(r)))(e)}var y;function xw(e){let r;return(y??(r=new globalThis.TextDecoder,y=r.decode.bind(r)))(e)}var Lt=(e)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[e]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(e)?.trim()||void 0;return};var yL="warn",u={off:0,error:200,warn:300,info:400,debug:500},GV=(e,r,t)=>{if(!e)return;if(x(u,e))return e;t.warn(`${r} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(u))}`);return};function i(){}function c(e,r,t){if(!r||u[e]>u[t])return i;else return r[e].bind(r)}var _={error:i,warn:i,info:i,debug:i},g=new WeakMap;function f(e,r){let t=g.get(e);if(t&&t[0]===r)return t[1];let o={error:c("error",e,r),warn:c("warn",e,r),info:c("info",e,r),debug:c("debug",e,r)};return g.set(e,[r,o]),o}function tt(e){let r=e.logger,t=e.logLevel??"off";if(!r)return _;return f(r,t)}var h,p;function YV(){let e=Lt("ANTHROPIC_LOG");if(!p||e!==h)h=e,p=f(console,GV(e,"process.env['ANTHROPIC_LOG']",f(console,yL))??yL);return p}function Qh(e,r,t){if(e.debug===i)return;e.debug(r,N(t))}var N=(e)=>{if(e.options)e.options={...e.options},delete e.options.headers,delete e.options.__span;if(e.headers)e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([r,t])=>[r,r.toLowerCase()==="authorization"||r.toLowerCase()==="proxy-authorization"||r.toLowerCase()==="api-key"||r.toLowerCase()==="x-api-key"||r.toLowerCase()==="x-amz-security-token"||r.toLowerCase()==="cookie"||r.toLowerCase()==="set-cookie"?"***":t]));if("retryOfRequestLogID"in e){if(e.retryOfRequestLogID)e.retryOf=e.retryOfRequestLogID;delete e.retryOfRequestLogID}return e};function ca(e,r){return e instanceof rn&&e.status===r}function O(e){return e instanceof rn&&typeof e.status==="number"&&e.status>=400&&e.status<500}function _T(e){return O(e)&&!ca(e,408)&&!ca(e,409)&&!ca(e,429)}function JV(e,r,t){return Math.min(r*2**e,t)}function pte(e,r){return e+Math.random()*(r-e)}function XV(e){return e*(1-Math.random()*0.25)}var Mt=(()=>{class e extends Error{constructor(r){let t=typeof r==="string"?r:r.map((o)=>{if(o.type==="text")return o.text;return`[${o.type}]`}).join(" ");super(t);this.name="ToolError",this.content=r}}return e})();var c3=15000,w=5000;function vL(e,r){if(!(e>=w))throw new Z(`${r} must be at least ${w}ms (got ${e}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`)}function xT(){let e,r;return{promise:new Promise((o,n)=>{e=o,r=n}),resolve:e,reject:r}}
|
|
3
|
+
export{D,d,wu,Ew,Z,rn,aa,Ov,pL,dte,qe,e3,ds,$m,t3,nd,mL,fL,r3,CC,n3,i3,ET,o3,Iw,s3,hL,lte,Sc,gL,DC,a3,Wo,jV,IT,KV,yp,ute,_w,xw,Lt,yL,GV,tt,YV,Qh,ca,_T,JV,pte,XV,Mt,c3,vL,xT};
|
|
4
|
+
|
|
5
|
+
//# debugId=CD7959FCFC1F6D1564756E2164756E21
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{nu,XN,_a,iu,ZN,QN,ou,Rq,DA,e0,wr,Os,t0,r0,su,n0,JI,A4,i0,cc,ym,LS,nv,Xt,au,iv,QI}from"./chunk-tx4f0h9c.js";import"./chunk-8nj68t1v.js";import"./chunk-xezekwwn.js";import"./chunk-z8tvs8nk.js";import"./chunk-xn9m3xc2.js";import"./chunk-sqdrxjw5.js";import"./chunk-c27yv1dx.js";import"./chunk-cqhw4yr6.js";import"./chunk-vdqag3fj.js";import"./chunk-e0870khr.js";import"./chunk-4vxeq0vd.js";import"./chunk-9xgnrv5w.js";import"./chunk-cb1ga9rd.js";import"./chunk-sfqe223f.js";import"./chunk-r6pvhj33.js";import"./chunk-w5yypt53.js";import"./chunk-aewdveet.js";import"./chunk-r0vp315h.js";import"./chunk-5wk1t46v.js";export{XN as ANONYMOUS_ACQUISITION_SESSION_SOURCE,QN as BIOMETRIC_ENROLLMENT_RESTORE_TIMEOUT_MS,Rq as CLOCK_RESTORE_TIMEOUT_MS,ym as DEVICE_RESTART_RECOVERY_WINDOW_MS,nv as DaemonSessionCreationRejectedError,ZN as KEEP_SCREEN_AWAKE_RESTORE_TIMEOUT_MS,DA as NETWORK_CONDITION_RESTORE_RETRY_DELAY_MS,ou as NETWORK_CONDITION_RESTORE_TIMEOUT_MS,i0 as PLAN_AUTO_RELEASE_REASON,_a as PLAN_LABEL_SESSION_SOURCE,su as SESSION_CREATE_WAIT_TIMEOUT_MS,n0 as SESSION_CREATION_TIMEOUT_REASON,A4 as SESSION_REHYDRATION_CONCURRENCY,JI as SESSION_REHYDRATION_DEADLINE_MS,Os as SESSION_RELEASE_PERSIST_TIMEOUT_MS,t0 as SESSION_RELEASE_STUCK_DEADLINE_MS,wr as SESSION_RELEASE_TEARDOWN_CAP_MS,e0 as SESSION_SETUP_DRAIN_TIMEOUT_MS,QI as SessionManager,au as SessionRecoveryIdentityLossError,Xt as TerminalSessionError,iv as UnissuedSessionError,LS as getDefaultPreFirstHeartbeatGraceMs,cc as getDefaultSessionHeartbeatTimeoutMs,r0 as getSessionReleaseStuckDeadlineMs,iu as isAnonymousAcquisitionSession,nu as releaseWasForced};
|
|
3
|
+
|
|
4
|
+
//# debugId=C7E748E477EF3DAE64756E2164756E21
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./chunk-
|
|
3
|
+
import"./chunk-0zfpp1wh.js";import"./chunk-9xgsmshb.js";import{Ft,M,z8}from"./chunk-j69g8b50.js";var se=M(function(){/*! *****************************************************************************
|
|
4
4
|
Copyright (C) Microsoft. All rights reserved.
|
|
5
5
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
6
6
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -13,7 +13,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
13
13
|
|
|
14
14
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
15
15
|
and limitations under the License.
|
|
16
|
-
***************************************************************************** */var ue;(function(g){(function(p){var _=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:D(),k=E(g);if(typeof _.Reflect<"u")k=E(_.Reflect,k);if(p(k,_),typeof _.Reflect>"u")_.Reflect=g;function E(P,R){return function(O,C){if(Object.defineProperty(P,O,{configurable:!0,writable:!0,value:C}),R)R(O,C)}}function F(){try{return Function("return this;")()}catch(P){}}function T(){try{return(0,eval)("(function() { return this; })()")}catch(P){}}function D(){return F()||T()}})(function(p,_){var k=Object.prototype.hasOwnProperty,E=typeof Symbol==="function",F=E&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",T=E&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",D=typeof Object.create==="function",P={__proto__:[]}instanceof Array,R=!D&&!P,O={create:D?function(){return B(Object.create(null))}:P?function(){return B({__proto__:null})}:function(){return B({})},has:R?function(e,t){return k.call(e,t)}:function(e,t){return t in e},get:R?function(e,t){return k.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},C=Object.getPrototypeOf(Function),x=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:xe(),U=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:Ge(),W=typeof WeakMap==="function"?WeakMap:De(),S=E?Symbol.for("@reflect-metadata:registry"):void 0,A=je(),L=Re(A);function le(e,t,r,n){if(!s(r)){if(!ee(e))throw TypeError();if(!h(t))throw TypeError();if(!h(n)&&!s(n)&&!I(n))throw TypeError();if(I(n))n=void 0;return r=m(r),Oe(e,t,r,n)}else{if(!ee(e))throw TypeError();if(!te(t))throw TypeError();return me(e,t)}}p("decorate",le);function he(e,t){function r(n,u){if(!h(n))throw TypeError();if(!s(u)&&!Se(u))throw TypeError();J(e,t,n,u)}return r}p("metadata",he);function ve(e,t,r,n){if(!h(r))throw TypeError();if(!s(n))n=m(n);return J(e,t,r,n)}p("defineMetadata",ve);function ye(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return N(e,t,r)}p("hasMetadata",ye);function we(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return H(e,t,r)}p("hasOwnMetadata",we);function pe(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return Z(e,t,r)}p("getMetadata",pe);function _e(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return q(e,t,r)}p("getOwnMetadata",_e);function Me(e,t){if(!h(e))throw TypeError();if(!s(t))t=m(t);return Q(e,t)}p("getMetadataKeys",Me);function ge(e,t){if(!h(e))throw TypeError();if(!s(t))t=m(t);return X(e,t)}p("getOwnMetadataKeys",ge);function be(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);if(!h(t))throw TypeError();if(!s(r))r=m(r);var n=G(t,r,!1);if(s(n))return!1;return n.OrdinaryDeleteMetadata(e,t,r)}p("deleteMetadata",be);function me(e,t){for(var r=e.length-1;r>=0;--r){var n=e[r],u=n(t);if(!s(u)&&!I(u)){if(!te(u))throw TypeError();t=u}}return t}function Oe(e,t,r,n){for(var u=e.length-1;u>=0;--u){var v=e[u],w=v(t,r,n);if(!s(w)&&!I(w)){if(!h(w))throw TypeError();n=w}}return n}function N(e,t,r){var n=H(e,t,r);if(n)return!0;var u=z(t);if(!I(u))return N(e,u,r);return!1}function H(e,t,r){var n=G(t,r,!1);if(s(n))return!1;return K(n.OrdinaryHasOwnMetadata(e,t,r))}function Z(e,t,r){var n=H(e,t,r);if(n)return q(e,t,r);var u=z(t);if(!I(u))return Z(e,u,r);return}function q(e,t,r){var n=G(t,r,!1);if(s(n))return;return n.OrdinaryGetOwnMetadata(e,t,r)}function J(e,t,r,n){var u=G(r,n,!0);u.OrdinaryDefineOwnMetadata(e,t,r,n)}function Q(e,t){var r=X(e,t),n=z(e);if(n===null)return r;var u=Q(n,t);if(u.length<=0)return r;if(r.length<=0)return u;var v=new U,w=[];for(var c=0,a=r;c<a.length;c++){var i=a[c],o=v.has(i);if(!o)v.add(i),w.push(i)}for(var f=0,d=u;f<d.length;f++){var i=d[f],o=v.has(i);if(!o)v.add(i),w.push(i)}return w}function X(e,t){var r=G(e,t,!1);if(!r)return[];return r.OrdinaryOwnMetadataKeys(e,t)}function Y(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function s(e){return e===void 0}function I(e){return e===null}function ke(e){return typeof e==="symbol"}function h(e){return typeof e==="object"?e!==null:typeof e==="function"}function Ee(e,t){switch(Y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var r=t===3?"string":t===5?"number":"default",n=re(e,F);if(n!==void 0){var u=n.call(e,r);if(h(u))throw TypeError();return u}return Te(e,r==="default"?"number":r)}function Te(e,t){if(t==="string"){var r=e.toString;if(j(r)){var n=r.call(e);if(!h(n))return n}var u=e.valueOf;if(j(u)){var n=u.call(e);if(!h(n))return n}}else{var u=e.valueOf;if(j(u)){var n=u.call(e);if(!h(n))return n}var v=e.toString;if(j(v)){var n=v.call(e);if(!h(n))return n}}throw TypeError()}function K(e){return!!e}function Pe(e){return""+e}function m(e){var t=Ee(e,3);if(ke(t))return t;return Pe(t)}function ee(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function j(e){return typeof e==="function"}function te(e){return typeof e==="function"}function Se(e){switch(Y(e)){case 3:return!0;case 4:return!0;default:return!1}}function V(e,t){return e===t||e!==e&&t!==t}function re(e,t){var r=e[t];if(r===void 0||r===null)return;if(!j(r))throw TypeError();return r}function ne(e){var t=re(e,T);if(!j(t))throw TypeError();var r=t.call(e);if(!h(r))throw TypeError();return r}function ae(e){return e.value}function ie(e){var t=e.next();return t.done?!1:t}function oe(e){var t=e.return;if(t)t.call(e)}function z(e){var t=Object.getPrototypeOf(e);if(typeof e!=="function"||e===C)return t;if(t!==C)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(n==null||n===Object.prototype)return t;var u=n.constructor;if(typeof u!=="function")return t;if(u===e)return t;return u}function Ie(){var e;if(!s(S)&&typeof _.Reflect<"u"&&!(S in _.Reflect)&&typeof _.Reflect.defineMetadata==="function")e=Ce(_.Reflect);var t,r,n,u=new W,v={registerProvider:w,getProvider:a,setProvider:o};return v;function w(f){if(!Object.isExtensible(v))throw Error("Cannot add provider to a frozen registry.");switch(!0){case e===f:break;case s(t):t=f;break;case t===f:break;case s(r):r=f;break;case r===f:break;default:if(n===void 0)n=new U;n.add(f);break}}function c(f,d){if(!s(t)){if(t.isProviderFor(f,d))return t;if(!s(r)){if(r.isProviderFor(f,d))return t;if(!s(n)){var l=ne(n);while(!0){var y=ie(l);if(!y)return;var b=ae(y);if(b.isProviderFor(f,d))return oe(l),b}}}}if(!s(e)&&e.isProviderFor(f,d))return e;return}function a(f,d){var l=u.get(f),y;if(!s(l))y=l.get(d);if(!s(y))return y;if(y=c(f,d),!s(y)){if(s(l))l=new x,u.set(f,l);l.set(d,y)}return y}function i(f){if(s(f))throw TypeError();return t===f||r===f||!s(n)&&n.has(f)}function o(f,d,l){if(!i(l))throw Error("Metadata provider not registered.");var y=a(f,d);if(y!==l){if(!s(y))return!1;var b=u.get(f);if(s(b))b=new x,u.set(f,b);b.set(d,l)}return!0}}function je(){var e;if(!s(S)&&h(_.Reflect)&&Object.isExtensible(_.Reflect))e=_.Reflect[S];if(s(e))e=Ie();if(!s(S)&&h(_.Reflect)&&Object.isExtensible(_.Reflect))Object.defineProperty(_.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:e});return e}function Re(e){var t=new W,r={isProviderFor:function(i,o){var f=t.get(i);if(s(f))return!1;return f.has(o)},OrdinaryDefineOwnMetadata:w,OrdinaryHasOwnMetadata:u,OrdinaryGetOwnMetadata:v,OrdinaryOwnMetadataKeys:c,OrdinaryDeleteMetadata:a};return A.registerProvider(r),r;function n(i,o,f){var d=t.get(i),l=!1;if(s(d)){if(!f)return;d=new x,t.set(i,d),l=!0}var y=d.get(o);if(s(y)){if(!f)return;if(y=new x,d.set(o,y),!e.setProvider(i,o,r)){if(d.delete(o),l)t.delete(i);throw Error("Wrong provider for target.")}}return y}function u(i,o,f){var d=n(o,f,!1);if(s(d))return!1;return K(d.has(i))}function v(i,o,f){var d=n(o,f,!1);if(s(d))return;return d.get(i)}function w(i,o,f,d){var l=n(f,d,!0);l.set(i,o)}function c(i,o){var f=[],d=n(i,o,!1);if(s(d))return f;var l=d.keys(),y=ne(l),b=0;while(!0){var fe=ie(y);if(!fe)return f.length=b,f;var Ae=ae(fe);try{f[b]=Ae}catch(Fe){try{oe(y)}finally{throw Fe}}b++}}function a(i,o,f){var d=n(o,f,!1);if(s(d))return!1;if(!d.delete(i))return!1;if(d.size===0){var l=t.get(o);if(!s(l)){if(l.delete(f),l.size===0)t.delete(l)}}return!0}}function Ce(e){var{defineMetadata:t,hasOwnMetadata:r,getOwnMetadata:n,getOwnMetadataKeys:u,deleteMetadata:v}=e,w=new W,c={isProviderFor:function(a,i){var o=w.get(a);if(!s(o)&&o.has(i))return!0;if(u(a,i).length){if(s(o))o=new U,w.set(a,o);return o.add(i),!0}return!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:u,OrdinaryDeleteMetadata:v};return c}function G(e,t,r){var n=A.getProvider(e,t);if(!s(n))return n;if(r){if(A.setProvider(e,t,L))return L;throw Error("Illegal state.")}return}function xe(){var e={},t=[],r=function(){function c(a,i,o){this._index=0,this._keys=a,this._values=i,this._selector=o}return c.prototype["@@iterator"]=function(){return this},c.prototype[T]=function(){return this},c.prototype.next=function(){var a=this._index;if(a>=0&&a<this._keys.length){var i=this._selector(this._keys[a],this._values[a]);if(a+1>=this._keys.length)this._index=-1,this._keys=t,this._values=t;else this._index++;return{value:i,done:!1}}return{value:void 0,done:!0}},c.prototype.throw=function(a){if(this._index>=0)this._index=-1,this._keys=t,this._values=t;throw a},c.prototype.return=function(a){if(this._index>=0)this._index=-1,this._keys=t,this._values=t;return{value:a,done:!0}},c}(),n=function(){function c(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(c.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),c.prototype.has=function(a){return this._find(a,!1)>=0},c.prototype.get=function(a){var i=this._find(a,!1);return i>=0?this._values[i]:void 0},c.prototype.set=function(a,i){var o=this._find(a,!0);return this._values[o]=i,this},c.prototype.delete=function(a){var i=this._find(a,!1);if(i>=0){var o=this._keys.length;for(var f=i+1;f<o;f++)this._keys[f-1]=this._keys[f],this._values[f-1]=this._values[f];if(this._keys.length--,this._values.length--,V(a,this._cacheKey))this._cacheKey=e,this._cacheIndex=-2;return!0}return!1},c.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},c.prototype.keys=function(){return new r(this._keys,this._values,u)},c.prototype.values=function(){return new r(this._keys,this._values,v)},c.prototype.entries=function(){return new r(this._keys,this._values,w)},c.prototype["@@iterator"]=function(){return this.entries()},c.prototype[T]=function(){return this.entries()},c.prototype._find=function(a,i){if(!V(this._cacheKey,a)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(V(this._keys[o],a)){this._cacheIndex=o;break}}if(this._cacheIndex<0&&i)this._cacheIndex=this._keys.length,this._keys.push(a),this._values.push(void 0);return this._cacheIndex},c}();return n;function u(c,a){return c}function v(c,a){return a}function w(c,a){return[c,a]}}function Ge(){var e=function(){function t(){this._map=new x}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return this._map.set(r,r),this},t.prototype.delete=function(r){return this._map.delete(r)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[T]=function(){return this.keys()},t}();return e}function De(){var e=16,t=O.create(),r=n();return function(){function a(){this._key=n()}return a.prototype.has=function(i){var o=u(i,!1);return o!==void 0?O.has(o,this._key):!1},a.prototype.get=function(i){var o=u(i,!1);return o!==void 0?O.get(o,this._key):void 0},a.prototype.set=function(i,o){var f=u(i,!0);return f[this._key]=o,this},a.prototype.delete=function(i){var o=u(i,!1);return o!==void 0?delete o[this._key]:!1},a.prototype.clear=function(){this._key=n()},a}();function n(){var a;do a="@@WeakMap@@"+c();while(O.has(t,a));return t[a]=!0,a}function u(a,i){if(!k.call(a,r)){if(!i)return;Object.defineProperty(a,r,{value:O.create()})}return a[r]}function v(a,i){for(var o=0;o<i;++o)a[o]=Math.random()*255|0;return a}function w(a){if(typeof Uint8Array==="function"){var i=new Uint8Array(a);if(typeof crypto<"u")crypto.getRandomValues(i);else if(typeof msCrypto<"u")msCrypto.getRandomValues(i);else v(i,a);return i}return v(Array(a),a)}function c(){var a=w(e);a[6]=a[6]&79|64,a[8]=a[8]&191|128;var i="";for(var o=0;o<e;++o){var f=a[o];if(o===4||o===6||o===8)i+="-";if(f<16)i+="0";i+=f.toString(16).toLowerCase()}return i}}function B(e){return e.__=void 0,delete e.__,e}})})(ue||(ue={}))});var He=Nt(se());function ce(g){let p=g instanceof Error?g.stack??g.message:String(g);process.stderr.write(`Fatal error loading AutoMobile: ${p}
|
|
17
|
-
`),process.exit(1)}var de=process.argv.slice(2);if(
|
|
16
|
+
***************************************************************************** */var ue;(function(g){(function(p){var _=typeof globalThis==="object"?globalThis:typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:D(),k=E(g);if(typeof _.Reflect<"u")k=E(_.Reflect,k);if(p(k,_),typeof _.Reflect>"u")_.Reflect=g;function E(P,R){return function(O,C){if(Object.defineProperty(P,O,{configurable:!0,writable:!0,value:C}),R)R(O,C)}}function F(){try{return Function("return this;")()}catch(P){}}function T(){try{return(0,eval)("(function() { return this; })()")}catch(P){}}function D(){return F()||T()}})(function(p,_){var k=Object.prototype.hasOwnProperty,E=typeof Symbol==="function",F=E&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",T=E&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",D=typeof Object.create==="function",P={__proto__:[]}instanceof Array,R=!D&&!P,O={create:D?function(){return B(Object.create(null))}:P?function(){return B({__proto__:null})}:function(){return B({})},has:R?function(e,t){return k.call(e,t)}:function(e,t){return t in e},get:R?function(e,t){return k.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},C=Object.getPrototypeOf(Function),x=typeof Map==="function"&&typeof Map.prototype.entries==="function"?Map:xe(),U=typeof Set==="function"&&typeof Set.prototype.entries==="function"?Set:Ge(),W=typeof WeakMap==="function"?WeakMap:De(),S=E?Symbol.for("@reflect-metadata:registry"):void 0,A=je(),L=Re(A);function le(e,t,r,n){if(!s(r)){if(!ee(e))throw TypeError();if(!h(t))throw TypeError();if(!h(n)&&!s(n)&&!I(n))throw TypeError();if(I(n))n=void 0;return r=m(r),Oe(e,t,r,n)}else{if(!ee(e))throw TypeError();if(!te(t))throw TypeError();return me(e,t)}}p("decorate",le);function he(e,t){function r(n,u){if(!h(n))throw TypeError();if(!s(u)&&!Se(u))throw TypeError();J(e,t,n,u)}return r}p("metadata",he);function ve(e,t,r,n){if(!h(r))throw TypeError();if(!s(n))n=m(n);return J(e,t,r,n)}p("defineMetadata",ve);function ye(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return N(e,t,r)}p("hasMetadata",ye);function we(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return H(e,t,r)}p("hasOwnMetadata",we);function pe(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return Z(e,t,r)}p("getMetadata",pe);function _e(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);return q(e,t,r)}p("getOwnMetadata",_e);function Me(e,t){if(!h(e))throw TypeError();if(!s(t))t=m(t);return Q(e,t)}p("getMetadataKeys",Me);function ge(e,t){if(!h(e))throw TypeError();if(!s(t))t=m(t);return X(e,t)}p("getOwnMetadataKeys",ge);function be(e,t,r){if(!h(t))throw TypeError();if(!s(r))r=m(r);if(!h(t))throw TypeError();if(!s(r))r=m(r);var n=G(t,r,!1);if(s(n))return!1;return n.OrdinaryDeleteMetadata(e,t,r)}p("deleteMetadata",be);function me(e,t){for(var r=e.length-1;r>=0;--r){var n=e[r],u=n(t);if(!s(u)&&!I(u)){if(!te(u))throw TypeError();t=u}}return t}function Oe(e,t,r,n){for(var u=e.length-1;u>=0;--u){var v=e[u],w=v(t,r,n);if(!s(w)&&!I(w)){if(!h(w))throw TypeError();n=w}}return n}function N(e,t,r){var n=H(e,t,r);if(n)return!0;var u=z(t);if(!I(u))return N(e,u,r);return!1}function H(e,t,r){var n=G(t,r,!1);if(s(n))return!1;return K(n.OrdinaryHasOwnMetadata(e,t,r))}function Z(e,t,r){var n=H(e,t,r);if(n)return q(e,t,r);var u=z(t);if(!I(u))return Z(e,u,r);return}function q(e,t,r){var n=G(t,r,!1);if(s(n))return;return n.OrdinaryGetOwnMetadata(e,t,r)}function J(e,t,r,n){var u=G(r,n,!0);u.OrdinaryDefineOwnMetadata(e,t,r,n)}function Q(e,t){var r=X(e,t),n=z(e);if(n===null)return r;var u=Q(n,t);if(u.length<=0)return r;if(r.length<=0)return u;var v=new U,w=[];for(var c=0,a=r;c<a.length;c++){var i=a[c],o=v.has(i);if(!o)v.add(i),w.push(i)}for(var f=0,d=u;f<d.length;f++){var i=d[f],o=v.has(i);if(!o)v.add(i),w.push(i)}return w}function X(e,t){var r=G(e,t,!1);if(!r)return[];return r.OrdinaryOwnMetadataKeys(e,t)}function Y(e){if(e===null)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return e===null?1:6;default:return 6}}function s(e){return e===void 0}function I(e){return e===null}function ke(e){return typeof e==="symbol"}function h(e){return typeof e==="object"?e!==null:typeof e==="function"}function Ee(e,t){switch(Y(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var r=t===3?"string":t===5?"number":"default",n=re(e,F);if(n!==void 0){var u=n.call(e,r);if(h(u))throw TypeError();return u}return Te(e,r==="default"?"number":r)}function Te(e,t){if(t==="string"){var r=e.toString;if(j(r)){var n=r.call(e);if(!h(n))return n}var u=e.valueOf;if(j(u)){var n=u.call(e);if(!h(n))return n}}else{var u=e.valueOf;if(j(u)){var n=u.call(e);if(!h(n))return n}var v=e.toString;if(j(v)){var n=v.call(e);if(!h(n))return n}}throw TypeError()}function K(e){return!!e}function Pe(e){return""+e}function m(e){var t=Ee(e,3);if(ke(t))return t;return Pe(t)}function ee(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)==="[object Array]"}function j(e){return typeof e==="function"}function te(e){return typeof e==="function"}function Se(e){switch(Y(e)){case 3:return!0;case 4:return!0;default:return!1}}function V(e,t){return e===t||e!==e&&t!==t}function re(e,t){var r=e[t];if(r===void 0||r===null)return;if(!j(r))throw TypeError();return r}function ne(e){var t=re(e,T);if(!j(t))throw TypeError();var r=t.call(e);if(!h(r))throw TypeError();return r}function ae(e){return e.value}function ie(e){var t=e.next();return t.done?!1:t}function oe(e){var t=e.return;if(t)t.call(e)}function z(e){var t=Object.getPrototypeOf(e);if(typeof e!=="function"||e===C)return t;if(t!==C)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(n==null||n===Object.prototype)return t;var u=n.constructor;if(typeof u!=="function")return t;if(u===e)return t;return u}function Ie(){var e;if(!s(S)&&typeof _.Reflect<"u"&&!(S in _.Reflect)&&typeof _.Reflect.defineMetadata==="function")e=Ce(_.Reflect);var t,r,n,u=new W,v={registerProvider:w,getProvider:a,setProvider:o};return v;function w(f){if(!Object.isExtensible(v))throw Error("Cannot add provider to a frozen registry.");switch(!0){case e===f:break;case s(t):t=f;break;case t===f:break;case s(r):r=f;break;case r===f:break;default:if(n===void 0)n=new U;n.add(f);break}}function c(f,d){if(!s(t)){if(t.isProviderFor(f,d))return t;if(!s(r)){if(r.isProviderFor(f,d))return t;if(!s(n)){var l=ne(n);while(!0){var y=ie(l);if(!y)return;var b=ae(y);if(b.isProviderFor(f,d))return oe(l),b}}}}if(!s(e)&&e.isProviderFor(f,d))return e;return}function a(f,d){var l=u.get(f),y;if(!s(l))y=l.get(d);if(!s(y))return y;if(y=c(f,d),!s(y)){if(s(l))l=new x,u.set(f,l);l.set(d,y)}return y}function i(f){if(s(f))throw TypeError();return t===f||r===f||!s(n)&&n.has(f)}function o(f,d,l){if(!i(l))throw Error("Metadata provider not registered.");var y=a(f,d);if(y!==l){if(!s(y))return!1;var b=u.get(f);if(s(b))b=new x,u.set(f,b);b.set(d,l)}return!0}}function je(){var e;if(!s(S)&&h(_.Reflect)&&Object.isExtensible(_.Reflect))e=_.Reflect[S];if(s(e))e=Ie();if(!s(S)&&h(_.Reflect)&&Object.isExtensible(_.Reflect))Object.defineProperty(_.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:e});return e}function Re(e){var t=new W,r={isProviderFor:function(i,o){var f=t.get(i);if(s(f))return!1;return f.has(o)},OrdinaryDefineOwnMetadata:w,OrdinaryHasOwnMetadata:u,OrdinaryGetOwnMetadata:v,OrdinaryOwnMetadataKeys:c,OrdinaryDeleteMetadata:a};return A.registerProvider(r),r;function n(i,o,f){var d=t.get(i),l=!1;if(s(d)){if(!f)return;d=new x,t.set(i,d),l=!0}var y=d.get(o);if(s(y)){if(!f)return;if(y=new x,d.set(o,y),!e.setProvider(i,o,r)){if(d.delete(o),l)t.delete(i);throw Error("Wrong provider for target.")}}return y}function u(i,o,f){var d=n(o,f,!1);if(s(d))return!1;return K(d.has(i))}function v(i,o,f){var d=n(o,f,!1);if(s(d))return;return d.get(i)}function w(i,o,f,d){var l=n(f,d,!0);l.set(i,o)}function c(i,o){var f=[],d=n(i,o,!1);if(s(d))return f;var l=d.keys(),y=ne(l),b=0;while(!0){var fe=ie(y);if(!fe)return f.length=b,f;var Ae=ae(fe);try{f[b]=Ae}catch(Fe){try{oe(y)}finally{throw Fe}}b++}}function a(i,o,f){var d=n(o,f,!1);if(s(d))return!1;if(!d.delete(i))return!1;if(d.size===0){var l=t.get(o);if(!s(l)){if(l.delete(f),l.size===0)t.delete(l)}}return!0}}function Ce(e){var{defineMetadata:t,hasOwnMetadata:r,getOwnMetadata:n,getOwnMetadataKeys:u,deleteMetadata:v}=e,w=new W,c={isProviderFor:function(a,i){var o=w.get(a);if(!s(o)&&o.has(i))return!0;if(u(a,i).length){if(s(o))o=new U,w.set(a,o);return o.add(i),!0}return!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:u,OrdinaryDeleteMetadata:v};return c}function G(e,t,r){var n=A.getProvider(e,t);if(!s(n))return n;if(r){if(A.setProvider(e,t,L))return L;throw Error("Illegal state.")}return}function xe(){var e={},t=[],r=function(){function c(a,i,o){this._index=0,this._keys=a,this._values=i,this._selector=o}return c.prototype["@@iterator"]=function(){return this},c.prototype[T]=function(){return this},c.prototype.next=function(){var a=this._index;if(a>=0&&a<this._keys.length){var i=this._selector(this._keys[a],this._values[a]);if(a+1>=this._keys.length)this._index=-1,this._keys=t,this._values=t;else this._index++;return{value:i,done:!1}}return{value:void 0,done:!0}},c.prototype.throw=function(a){if(this._index>=0)this._index=-1,this._keys=t,this._values=t;throw a},c.prototype.return=function(a){if(this._index>=0)this._index=-1,this._keys=t,this._values=t;return{value:a,done:!0}},c}(),n=function(){function c(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(c.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),c.prototype.has=function(a){return this._find(a,!1)>=0},c.prototype.get=function(a){var i=this._find(a,!1);return i>=0?this._values[i]:void 0},c.prototype.set=function(a,i){var o=this._find(a,!0);return this._values[o]=i,this},c.prototype.delete=function(a){var i=this._find(a,!1);if(i>=0){var o=this._keys.length;for(var f=i+1;f<o;f++)this._keys[f-1]=this._keys[f],this._values[f-1]=this._values[f];if(this._keys.length--,this._values.length--,V(a,this._cacheKey))this._cacheKey=e,this._cacheIndex=-2;return!0}return!1},c.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},c.prototype.keys=function(){return new r(this._keys,this._values,u)},c.prototype.values=function(){return new r(this._keys,this._values,v)},c.prototype.entries=function(){return new r(this._keys,this._values,w)},c.prototype["@@iterator"]=function(){return this.entries()},c.prototype[T]=function(){return this.entries()},c.prototype._find=function(a,i){if(!V(this._cacheKey,a)){this._cacheIndex=-1;for(var o=0;o<this._keys.length;o++)if(V(this._keys[o],a)){this._cacheIndex=o;break}}if(this._cacheIndex<0&&i)this._cacheIndex=this._keys.length,this._keys.push(a),this._values.push(void 0);return this._cacheIndex},c}();return n;function u(c,a){return c}function v(c,a){return a}function w(c,a){return[c,a]}}function Ge(){var e=function(){function t(){this._map=new x}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return this._map.set(r,r),this},t.prototype.delete=function(r){return this._map.delete(r)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[T]=function(){return this.keys()},t}();return e}function De(){var e=16,t=O.create(),r=n();return function(){function a(){this._key=n()}return a.prototype.has=function(i){var o=u(i,!1);return o!==void 0?O.has(o,this._key):!1},a.prototype.get=function(i){var o=u(i,!1);return o!==void 0?O.get(o,this._key):void 0},a.prototype.set=function(i,o){var f=u(i,!0);return f[this._key]=o,this},a.prototype.delete=function(i){var o=u(i,!1);return o!==void 0?delete o[this._key]:!1},a.prototype.clear=function(){this._key=n()},a}();function n(){var a;do a="@@WeakMap@@"+c();while(O.has(t,a));return t[a]=!0,a}function u(a,i){if(!k.call(a,r)){if(!i)return;Object.defineProperty(a,r,{value:O.create()})}return a[r]}function v(a,i){for(var o=0;o<i;++o)a[o]=Math.random()*255|0;return a}function w(a){if(typeof Uint8Array==="function"){var i=new Uint8Array(a);if(typeof crypto<"u")crypto.getRandomValues(i);else if(typeof msCrypto<"u")msCrypto.getRandomValues(i);else v(i,a);return i}return v(Array(a),a)}function c(){var a=w(e);a[6]=a[6]&79|64,a[8]=a[8]&191|128;var i="";for(var o=0;o<e;++o){var f=a[o];if(o===4||o===6||o===8)i+="-";if(f<16)i+="0";i+=f.toString(16).toLowerCase()}return i}}function B(e){return e.__=void 0,delete e.__,e}})})(ue||(ue={}))});var He=Ft(se());function ce(g){let p=g instanceof Error?g.stack??g.message:String(g);process.stderr.write(`Fatal error loading AutoMobile: ${p}
|
|
17
|
+
`),process.exit(1)}var de=process.argv.slice(2);if(z8(de))import("./chunk-cn7fwy7k.js").then(({runVersionEntrypoint:g})=>g(de)).catch(ce);else{let g=import.meta.main;import("./chunk-qnh9egwr.js").then(({runServerEntry:p})=>{if(g)p()}).catch(ce)}
|
|
18
18
|
|
|
19
|
-
//# debugId=
|
|
19
|
+
//# debugId=0DE8D3E5E0A28B0E64756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{lce,uce}from"../chunk-0zfpp1wh.js";export{uce as enforceBunRuntime,lce as unsupportedRuntimeMessage};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=34CAF5FD0176975364756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fd,CU}from"../../chunk-khejfph4.js";import{r}from"../../chunk-2b39zyxc.js";import{Ft}from"../../chunk-j69g8b50.js";import{parentPort as i,workerData as f}from"worker_threads";import*as c from"fs";import*as n from"path";function a(t){return(t&73)!==0?448:384}var m=Ft(Fd());function p(t,o){for(let e of t.getEntries()){if(e.isDirectory)continue;c.chmodSync(n.join(o,e.entryName),a(e.header.fileAttr))}}function u(){let{bundlePath:t,destination:o}=f;try{let e=new m.default(t);CU(e,o);let s=n.resolve(o);e.extractAllTo(s,!0),p(e,s);let d={ok:!0};i?.postMessage(d)}catch(e){let s={ok:!1,message:r(e),stack:e instanceof Error?e.stack:void 0};i?.postMessage(s)}}u();
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=EB4858710B7552D664756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaeawc/auto-mobile",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "Mobile device interaction automation via MCP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adb",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"knip": "^6.0.0",
|
|
218
218
|
"kysely": "0.29.8",
|
|
219
219
|
"oxc-parser": "0.157.0",
|
|
220
|
-
"oxfmt": "0.
|
|
220
|
+
"oxfmt": "0.78.0",
|
|
221
221
|
"oxlint": "1.92.0",
|
|
222
222
|
"oxlint-tsgolint": "7.0.2006",
|
|
223
223
|
"pixelmatch": "^8.0.0",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{HI,fi,Ql,Ys}from"./chunk-hrfytkxh.js";import{y,ee,g,ne}from"./chunk-4hw3665t.js";var QQ=g({type:ne("mcp_response"),id:y().nullable(),success:ee(),error:y().optional()}).passthrough();function eee(e){if(!e||typeof e!=="object"||Array.isArray(e))return;let n=e;if(typeof n.name!=="string"||n.name.length===0||typeof n.message!=="string"||n.message.length===0)return;return{name:n.name,message:n.message}}var fc="daemon_session_not_found",bh="liveness_owner_superseded",Sh="liveness_owner_unowned",$A="liveness_owner_not_owner",nu="daemon_session_suspect",U0="daemon_instance_changed",WS="liveness_owner_conflict",H0="liveness_owner_is_proxy",Zu="daemon_tool_unavailable";function tee(e){return e!==null&&typeof e==="object"&&"code"in e&&e.code===Zu}var pm="daemon_unknown_tool",mm="daemon_session_not_active";function dV(e){if(e===null||typeof e!=="object"||!("code"in e))return;return e.code}var q0="bound_session_lost";function Os(e){if(e===null||typeof e!=="object"||!("releaseReason"in e))return;let{releaseReason:n}=e;return typeof n==="string"&&n.length>0?n:void 0}function zc(e){if(e===null||typeof e!=="object"||!("daemonInstance"in e))return;let{daemonInstance:n}=e;return typeof n==="string"&&n.length>0?n:void 0}function wh(e,n){if(!e)return{};return{releaseReason:e,...fi(e),...Ql(e,n)}}function o5(e){if(e===null||typeof e!=="object"||!("idleTimeoutMs"in e))return;let{idleTimeoutMs:n}=e;return typeof n==="number"&&Number.isSafeInteger(n)&&n>0?n:void 0}var t="owner-disconnected",s="heartbeat-timeout";function V0(e){let n=`Device session ${e.sessionUuid} is no longer active (${e.reason}). `,o="Acquire a new device session before continuing.";if(e.reason===s)return`${n}The daemon stopped receiving this session's liveness heartbeats, so it released the device; check that the client process holding the session is still running. Acquire a new device session before continuing.`;if(e.reason===t)return`${n}The client connection that owned this session closed, so the daemon released the device. Acquire a new device session before continuing.`;if(Ys(e.reason))return`${n}The daemon shut down or restarted, or the device restarted, and this session was not restored. Acquire a new device session before continuing.`;return HI(e.reason)?`${n}The session was released after sitting idle past its window; time the host spent asleep counts toward that window. Acquire a new device session before continuing.`:`${n}Acquire a new device session before continuing.`}function r(e,n){return[e.sessionId===n,typeof e.deviceId==="string",typeof e.releaseReason==="string",typeof e.releasedAtMs==="number"&&Number.isFinite(e.releasedAtMs),typeof e.terminal==="boolean"].every(Boolean)}function i(e){if(!e||typeof e!=="object"||Array.isArray(e))return!1;let n=e;return[typeof n.lastHeartbeatMs==="number"&&Number.isFinite(n.lastHeartbeatMs),typeof n.hasReceivedHeartbeat==="boolean",typeof n.timeoutMs==="number"&&Number.isFinite(n.timeoutMs),typeof n.ageMs==="number"&&Number.isFinite(n.ageMs)].every(Boolean)}function a(e,n){if(!e||typeof e!=="object"||Array.isArray(e))return;let o=e;if(!r(o,n)||!i(o.heartbeat))return;return{sessionId:n,deviceId:o.deviceId,releaseReason:o.releaseReason,releasedAtMs:o.releasedAtMs,terminal:o.terminal,...typeof o.ownerPid==="number"&&Number.isInteger(o.ownerPid)?{ownerPid:o.ownerPid}:{},...typeof o.cliIdleTimeoutMs==="number"&&Number.isSafeInteger(o.cliIdleTimeoutMs)&&o.cliIdleTimeoutMs>0?{cliIdleTimeoutMs:o.cliIdleTimeoutMs}:{},heartbeat:o.heartbeat}}function ree(e){if(!e||typeof e!=="object"||Array.isArray(e))return;let n=e;if(n.code!==q0||typeof n.sessionUuid!=="string"||n.sessionUuid.trim().length===0||typeof n.reason!=="string"||n.reason.trim().length===0)return;let o=a(n.release,n.sessionUuid);return{code:q0,sessionUuid:n.sessionUuid,reason:n.reason,...fi(n.reason),...o?{release:o}:{}}}var zS="notifications/progress",W0="notifications/automobile/requestBudget",UA="resources/subscribe",z0="resources/unsubscribe",nee=g({type:ne("daemon_notification"),method:y()}).passthrough();
|
|
3
|
-
export{QQ,eee,fc,bh,Sh,$A,nu,U0,WS,H0,Zu,tee,pm,mm,dV,q0,Os,zc,wh,o5,V0,ree,zS,W0,UA,z0,nee};
|
|
4
|
-
|
|
5
|
-
//# debugId=029D4C583AB8763964756E2164756E21
|