agentworkshop 0.5.1 → 0.5.2
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/.output/.AgentWorkShop/prompts/host-tools.json +631 -0
- package/.output/.AgentWorkShop/prompts/lead-supervise.md +42 -0
- package/.output/.AgentWorkShop/prompts/mode-goal.md +26 -0
- package/.output/.AgentWorkShop/prompts/mode-loop.md +10 -0
- package/.output/.AgentWorkShop/prompts/mode-pipeline.md +16 -0
- package/.output/.AgentWorkShop/prompts/peer-lead-roster.md +3 -0
- package/.output/.AgentWorkShop/prompts/peer-message.md +14 -0
- package/.output/.AgentWorkShop/prompts/peer-reply-optional.md +2 -0
- package/.output/.AgentWorkShop/prompts/peer-reply-required.md +8 -0
- package/.output/.AgentWorkShop/prompts/scenario-default.md +11 -0
- package/.output/.AgentWorkShop/prompts/system-manual.md +18 -0
- package/.output/.AgentWorkShop/prompts/team-roster.md +9 -0
- package/.output/.AgentWorkShop/prompts/worker-workflow.md +19 -0
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2LwEn9gX.js +2 -0
- package/.output/public/_nuxt/36oeS8_R2.js +1 -0
- package/.output/public/_nuxt/7ZABjMRh2.js +1 -0
- package/.output/public/_nuxt/9X0fVBD7.js +57 -0
- package/.output/public/_nuxt/B-PgoIPN.js +1 -0
- package/.output/public/_nuxt/B0haAGoq.js +1 -0
- package/.output/public/_nuxt/B3__nfxM.js +1 -0
- package/.output/public/_nuxt/B4GHHF6d2.js +13 -0
- package/.output/public/_nuxt/B6M2WJWm2.js +1 -0
- package/.output/public/_nuxt/B7V9IfTL.js +1 -0
- package/.output/public/_nuxt/B9aPoQvt.js +17 -0
- package/.output/public/_nuxt/BBrRELH32.js +2 -0
- package/.output/public/_nuxt/BCipft_k2.js +1 -0
- package/.output/public/_nuxt/BDUjyaF4.js +42 -0
- package/.output/public/_nuxt/BE5QyG5J2.js +1 -0
- package/.output/public/_nuxt/BF9XPEuw.js +1 -0
- package/.output/public/_nuxt/BFYNhG9S.js +13 -0
- package/.output/public/_nuxt/BFjGV-RV2.js +4108 -0
- package/.output/public/_nuxt/BGkumHZ32.js +102 -0
- package/.output/public/_nuxt/BJvGPTpC.js +1 -0
- package/.output/public/_nuxt/BSCpFtzG.js +3 -0
- package/.output/public/_nuxt/BSSUlJnx2.js +1 -0
- package/.output/public/_nuxt/BUNGEK2z.js +18 -0
- package/.output/public/_nuxt/BUcmySDa2.js +209 -0
- package/.output/public/_nuxt/BUxYN2mw.js +1 -0
- package/.output/public/_nuxt/BbQornXa.js +1 -0
- package/.output/public/_nuxt/Bc_mM2cU.js +1 -0
- package/.output/public/_nuxt/BdKzfJiM.js +2 -0
- package/.output/public/_nuxt/BeIfu4N3.js +3 -0
- package/.output/public/_nuxt/BfGc7TJp.js +1 -0
- package/.output/public/_nuxt/Bi6AiCuP.js +1 -0
- package/.output/public/_nuxt/Bok1DRqh.js +19 -0
- package/.output/public/_nuxt/Bq_KKxCg.js +1 -0
- package/.output/public/_nuxt/BrIJiJSN.js +18 -0
- package/.output/public/_nuxt/Bsc69G4x.js +24 -0
- package/.output/public/_nuxt/Bxh5nf8j.js +1 -0
- package/.output/public/_nuxt/ByGNWgAr.js +23 -0
- package/.output/public/_nuxt/C9f8QMp12.js +1 -0
- package/.output/public/_nuxt/CE2ynNi9.js +1 -0
- package/.output/public/_nuxt/CNs_Ozdc2.js +1 -0
- package/.output/public/_nuxt/CWDzKGtj.js +1 -0
- package/.output/public/_nuxt/CWKEp1wx2.js +2 -0
- package/.output/public/_nuxt/CXLI50Sq.js +1 -0
- package/.output/public/_nuxt/C_gFA2H_2.js +1 -0
- package/.output/public/_nuxt/Ce1zyNYu.js +1 -0
- package/.output/public/_nuxt/CfIXY-ET.js +75 -0
- package/.output/public/_nuxt/ChEKFMxj.js +1 -0
- package/.output/public/_nuxt/ClptO7LA.js +1 -0
- package/.output/public/_nuxt/Cno6kYiO2.js +1 -0
- package/.output/public/_nuxt/CrFGZYVB2.js +7 -0
- package/.output/public/_nuxt/D-Ne4C9a.js +1 -0
- package/.output/public/_nuxt/D0C5Q0di.js +1 -0
- package/.output/public/_nuxt/D5KJ7_0V.js +1 -0
- package/.output/public/_nuxt/D8DDDzV62.js +1 -0
- package/.output/public/_nuxt/D95h62Jn.js +1 -0
- package/.output/public/_nuxt/DEHNjlTq2.js +1 -0
- package/.output/public/_nuxt/DEkQ0qQ02.js +1 -0
- package/.output/public/_nuxt/DIOBYJe3.js +1 -0
- package/.output/public/_nuxt/DNJSkm3Q.js +1 -0
- package/.output/public/_nuxt/DP6bdyIp.js +1 -0
- package/.output/public/_nuxt/DPDqAD1e.js +2 -0
- package/.output/public/_nuxt/DRlJ2-4p.js +1 -0
- package/.output/public/_nuxt/DRq09ZmT.js +1 -0
- package/.output/public/_nuxt/DSBfvCi5.js +19 -0
- package/.output/public/_nuxt/DVNYfGsj.js +1 -0
- package/.output/public/_nuxt/DVQAz9WI.js +3 -0
- package/.output/public/_nuxt/DXK1U43I.js +1 -0
- package/.output/public/_nuxt/DYWgGHNo.js +7 -0
- package/.output/public/_nuxt/DdPeifHR.js +3 -0
- package/.output/public/_nuxt/Dm5mD6XT.js +1 -0
- package/.output/public/_nuxt/HWXLx5Hz.js +9 -0
- package/.output/public/_nuxt/HclGiUj8.js +1 -0
- package/.output/public/_nuxt/NIM0Wglj2.js +1 -0
- package/.output/public/_nuxt/OmpTerminalPanel.Bc9GjNU5.css +1 -0
- package/.output/public/_nuxt/OwJ1LJkF.js +31 -0
- package/.output/public/_nuxt/PQLnLxYe.js +1 -0
- package/.output/public/_nuxt/RYFtK4qZ2.js +1 -0
- package/.output/public/_nuxt/R_WxTozV2.js +1 -0
- package/.output/public/_nuxt/TownView.CI2Wpzty.css +1 -0
- package/.output/public/_nuxt/W1E3-5ML.js +14 -0
- package/.output/public/_nuxt/Z8k0uMSI.js +5 -0
- package/.output/public/_nuxt/_id_.CbiF5PrV.css +1 -0
- package/.output/public/_nuxt/_id_.Ci4u30cR.css +1 -0
- package/.output/public/_nuxt/_wsId_.DET_GinP.css +1 -0
- package/.output/public/_nuxt/agents.BJwgTLFZ.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/eede1532-1366-486a-bdab-4d27fa03a1d8.json +1 -0
- package/.output/public/_nuxt/channel-templates.lkqEYlWY.css +1 -0
- package/.output/public/_nuxt/dObsRdSQ.js +1 -0
- package/.output/public/_nuxt/dRAyjbJ6.js +14 -0
- package/.output/public/_nuxt/daq.m1dxZaD-.css +1 -0
- package/.output/public/_nuxt/dcw.C46dGiF_.css +1 -0
- package/.output/public/_nuxt/default.iGJy9dP-.css +1 -0
- package/.output/public/_nuxt/dt2tKE95.js +4 -0
- package/.output/public/_nuxt/eHGLpQSg2.js +1 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-italic.BGIwiowF.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-italic.BZInx2ys.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-normal.C0kVTdou.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-normal.DDLP67lu.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-italic.Bz1w3xqM.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-italic.CYS3phfl.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-normal.DG8lny6_.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-normal.o8fRvAFQ.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-italic.BamGE6QP.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-italic.Dqr5KC66.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-normal.CVAbzS9p.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-normal.d4JlP2QH.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-italic.BL1XYHtS.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-italic.CHZOQEtG.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-normal.BaZl8BIK.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-normal.K8pwR3tn.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-italic.CDFyLPXJ.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-italic.DSEbMgZu.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-normal.BCNrxLz_.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-normal.maQnHeKB.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-italic.DUSsnRSD.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-italic.V7s3nWfX.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-normal.B4EmgUmt.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-normal.o4A__6QZ.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-italic.DQ8HKnks.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-italic.ORtyMVfw.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-normal.CLvJdMEL.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-normal.ifvNSiWx.woff +0 -0
- package/.output/public/_nuxt/entry.DjhxLu-f.css +1 -0
- package/.output/public/_nuxt/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2 +0 -0
- package/.output/public/_nuxt/geist-cyrillic-wght-normal.BEAKL7Jp.woff2 +0 -0
- package/.output/public/_nuxt/geist-latin-ext-wght-normal.DC-KSUi6.woff2 +0 -0
- package/.output/public/_nuxt/geist-latin-wght-normal.BgDaEnEv.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-cyrillic-ext-wght-normal.X_5orZeX.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-cyrillic-wght-normal.DiZS0aHC.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-latin-ext-wght-normal.Bwz-egvJ.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-latin-wght-normal.XN7g48iV.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-symbols2-wght-normal.CO5SzqOn.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-vietnamese-wght-normal.DadHysG0.woff2 +0 -0
- package/.output/public/_nuxt/geist-vietnamese-wght-normal.6IgcOCM7.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-400-normal.BSMlKf0J.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-400-normal.CEL4l2ZJ.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-500-normal.Ael50iVv.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-500-normal.Bq9vWWag.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-600-normal.CTOM6hUh.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-600-normal.fLZuRloM.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-400-normal.DMdlQ8Kv.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-400-normal.xuaO2J-f.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-500-normal.BIfNGwUT.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-500-normal.BqneJy0T.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-600-normal.9HEixskS.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-600-normal.V-xxqcpd.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-400-normal.CvHOgSBP.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-500-normal.CB9ihrfo.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-600-normal.BgSNZQsw.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-600-normal.DWFSQ4vo.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-400-normal.BmRBH3aV.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-400-normal.D3D2R8hC.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-500-normal.CAhNIIs5.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-500-normal.CZ70TYgx.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-600-normal.D38SheWl.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-600-normal.DmB0ttJJ.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-400-normal.BulugwFq.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-400-normal.DDuiU_S-.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-500-normal.C8zxqsMH.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-500-normal.DZ4AoWbu.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-600-normal.D2EvbN8M.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-600-normal.iLQfcSjf.woff +0 -0
- package/.output/public/_nuxt/kZl6yT-12.js +1 -0
- package/.output/public/_nuxt/lO5tpDZ5.js +1 -0
- package/.output/public/_nuxt/logs.DaIsHWZE.css +1 -0
- package/.output/public/_nuxt/monitor.41fCD6TB.css +1 -0
- package/.output/public/_nuxt/pRQri7vQ2.js +4 -0
- package/.output/public/_nuxt/pages.CytEOfUs.css +1 -0
- package/.output/public/_nuxt/plugins.FTm0PcEe.css +1 -0
- package/.output/public/_nuxt/rzGB_ojX.js +32 -0
- package/.output/public/_nuxt/settings.BANibAnV.css +1 -0
- package/.output/public/_nuxt/teams.B8JNbUZg.css +1 -0
- package/.output/public/_nuxt/tokens.CWOTXM-Z.css +1 -0
- package/.output/public/_nuxt/town.BLrD9-WH.css +1 -0
- package/.output/public/_nuxt/town.C_DsNW0J.css +1 -0
- package/.output/public/_nuxt/uBbDCfTz.js +1 -0
- package/.output/public/_nuxt/ubPfs9mQ.js +1 -0
- package/.output/public/_nuxt/users.D8lcLE62.css +1 -0
- package/.output/public/_nuxt/workshop.B98sHiJq.css +1 -0
- package/.output/public/assets/game/character/bot.png +0 -0
- package/.output/public/assets/game/character/device-3d.glb +0 -0
- package/.output/public/assets/game/character/hero-3d.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-1.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-2.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-3.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-4.glb +0 -0
- package/.output/public/assets/game/character/knight.png +0 -0
- package/.output/public/assets/game/character/mage.png +0 -0
- package/.output/public/assets/game/coin.png +0 -0
- package/.output/public/assets/game/devices/agv.glb +0 -0
- package/.output/public/assets/game/devices/caster.glb +0 -0
- package/.output/public/assets/game/devices/device-console.glb +0 -0
- package/.output/public/assets/game/devices/device-robot-arm.glb +0 -0
- package/.output/public/assets/game/devices/device-scanner.glb +0 -0
- package/.output/public/assets/game/devices/extruder.glb +0 -0
- package/.output/public/assets/game/devices/mdo.glb +0 -0
- package/.output/public/assets/game/devices/power-cabinet.glb +0 -0
- package/.output/public/assets/game/devices/pump.glb +0 -0
- package/.output/public/assets/game/devices/tdo.glb +0 -0
- package/.output/public/assets/game/devices/thickness-scanner.glb +0 -0
- package/.output/public/assets/game/devices/winder.glb +0 -0
- package/.output/public/assets/game/npc/boltnu-sheet.png +0 -0
- package/.output/public/assets/game/npc/fluttaflap-sheet.png +0 -0
- package/.output/public/assets/game/npc/rockitten-sheet.png +0 -0
- package/.output/public/assets/game/npc/tux-sheet.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-back.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-front.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-left.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-right.png +0 -0
- package/.output/public/assets/game/player-sheet.png +0 -0
- package/.output/public/assets/game/tuxemon-town.json +1 -0
- package/.output/public/assets/game/tuxmon-sample-32px-extruded.png +0 -0
- package/.output/public/assets/game/wuwa/scene-map.png +0 -0
- package/.output/public/assets/game/wuwa/world-far.png +0 -0
- package/.output/public/assets/game/wuwa/world-middle.png +0 -0
- package/.output/public/assets/game/wuwa/world-near.png +0 -0
- package/.output/public/assets/game/wuwa/wu-aura.png +0 -0
- package/.output/public/assets/game/wuwa/wu-lead.png +0 -0
- package/.output/public/assets/game/wuwa/wu-ring.png +0 -0
- package/.output/public/assets/game/wuwa/wu-slash.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-0.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-1.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-2.png +0 -0
- package/.output/public/favicon.svg +14 -0
- package/.output/public/scene/background/cyber-town-background.svg +110 -0
- package/.output/server/chunks/_/LeftOutlined.mjs +23 -0
- package/.output/server/chunks/_/LeftOutlined.mjs.map +1 -0
- package/.output/server/chunks/_/SearchOutlined.mjs +5141 -0
- package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -0
- package/.output/server/chunks/_/character-asset.repo.mjs +86 -0
- package/.output/server/chunks/_/character-asset.repo.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/host-bindings.mjs +53 -0
- package/.output/server/chunks/_/host-bindings.mjs.map +1 -0
- package/.output/server/chunks/_/nitro.mjs +26860 -0
- package/.output/server/chunks/_/nitro.mjs.map +1 -0
- package/.output/server/chunks/_/scene-layout.repo.mjs +72 -0
- package/.output/server/chunks/_/scene-layout.repo.mjs.map +1 -0
- package/.output/server/chunks/_/user.schema.mjs +36 -0
- package/.output/server/chunks/_/user.schema.mjs.map +1 -0
- package/.output/server/chunks/build/Col-D7fjGDF6.mjs +338 -0
- package/.output/server/chunks/build/Col-D7fjGDF6.mjs.map +1 -0
- package/.output/server/chunks/build/OmpTerminalPanel-CZnxR3M_.mjs +915 -0
- package/.output/server/chunks/build/OmpTerminalPanel-CZnxR3M_.mjs.map +1 -0
- package/.output/server/chunks/build/TownView-DYlUNRZe.mjs +2671 -0
- package/.output/server/chunks/build/TownView-DYlUNRZe.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-BOhG2yz8.mjs +659 -0
- package/.output/server/chunks/build/_id_-BOhG2yz8.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-CuyMYmhY.mjs +312 -0
- package/.output/server/chunks/build/_id_-CuyMYmhY.mjs.map +1 -0
- package/.output/server/chunks/build/_wsId_-B5f5BdW2.mjs +9324 -0
- package/.output/server/chunks/build/_wsId_-B5f5BdW2.mjs.map +1 -0
- package/.output/server/chunks/build/agents-BVaxN75W.mjs +934 -0
- package/.output/server/chunks/build/agents-BVaxN75W.mjs.map +1 -0
- package/.output/server/chunks/build/alert-gH-s7yIh.mjs +264 -0
- package/.output/server/chunks/build/alert-gH-s7yIh.mjs.map +1 -0
- package/.output/server/chunks/build/button-BhbX5ACI.mjs +1938 -0
- package/.output/server/chunks/build/button-BhbX5ACI.mjs.map +1 -0
- package/.output/server/chunks/build/card-l4BbX67w.mjs +955 -0
- package/.output/server/chunks/build/card-l4BbX67w.mjs.map +1 -0
- package/.output/server/chunks/build/channel-templates-D1K2IKrE.mjs +832 -0
- package/.output/server/chunks/build/channel-templates-D1K2IKrE.mjs.map +1 -0
- package/.output/server/chunks/build/checkbox-BF11p3dH.mjs +439 -0
- package/.output/server/chunks/build/checkbox-BF11p3dH.mjs.map +1 -0
- package/.output/server/chunks/build/client-only-CFTHwakk.mjs +43 -0
- package/.output/server/chunks/build/client-only-CFTHwakk.mjs.map +1 -0
- package/.output/server/chunks/build/connection-Dc0fn6yd.mjs +120 -0
- package/.output/server/chunks/build/connection-Dc0fn6yd.mjs.map +1 -0
- package/.output/server/chunks/build/daq-ObtN1TQ4.mjs +1066 -0
- package/.output/server/chunks/build/daq-ObtN1TQ4.mjs.map +1 -0
- package/.output/server/chunks/build/dcw-fINr-He1.mjs +243 -0
- package/.output/server/chunks/build/dcw-fINr-He1.mjs.map +1 -0
- package/.output/server/chunks/build/default-CVVO40Jj.mjs +1209 -0
- package/.output/server/chunks/build/default-CVVO40Jj.mjs.map +1 -0
- package/.output/server/chunks/build/drawer-CVValqoh.mjs +836 -0
- package/.output/server/chunks/build/drawer-CVValqoh.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-ByCsEWlQ.mjs +14 -0
- package/.output/server/chunks/build/dropdown-ByCsEWlQ.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-Dex8PXu6.mjs +558 -0
- package/.output/server/chunks/build/dropdown-Dex8PXu6.mjs.map +1 -0
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs +21 -0
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs.map +1 -0
- package/.output/server/chunks/build/input--KMeLYqZ.mjs +2617 -0
- package/.output/server/chunks/build/input--KMeLYqZ.mjs.map +1 -0
- package/.output/server/chunks/build/input-number-BBlRoAJ7.mjs +1521 -0
- package/.output/server/chunks/build/input-number-BBlRoAJ7.mjs.map +1 -0
- package/.output/server/chunks/build/interval-Bt11uRPw.mjs +9 -0
- package/.output/server/chunks/build/interval-Bt11uRPw.mjs.map +1 -0
- package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs +7 -0
- package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs.map +1 -0
- package/.output/server/chunks/build/logs-DqNgCJAn.mjs +188 -0
- package/.output/server/chunks/build/logs-DqNgCJAn.mjs.map +1 -0
- package/.output/server/chunks/build/menu-xN-SXb9Q.mjs +1950 -0
- package/.output/server/chunks/build/menu-xN-SXb9Q.mjs.map +1 -0
- package/.output/server/chunks/build/modal-DrCOcjrl.mjs +1272 -0
- package/.output/server/chunks/build/modal-DrCOcjrl.mjs.map +1 -0
- package/.output/server/chunks/build/monitor-CTZLwbdw.mjs +2329 -0
- package/.output/server/chunks/build/monitor-CTZLwbdw.mjs.map +1 -0
- package/.output/server/chunks/build/pages-DC52d7z7.mjs +470 -0
- package/.output/server/chunks/build/pages-DC52d7z7.mjs.map +1 -0
- package/.output/server/chunks/build/plugins-DVQty7qG.mjs +231 -0
- package/.output/server/chunks/build/plugins-DVQty7qG.mjs.map +1 -0
- package/.output/server/chunks/build/popconfirm-C5H1Qoh3.mjs +342 -0
- package/.output/server/chunks/build/popconfirm-C5H1Qoh3.mjs.map +1 -0
- package/.output/server/chunks/build/responsiveObserve-CS0UB6wQ.mjs +78 -0
- package/.output/server/chunks/build/responsiveObserve-CS0UB6wQ.mjs.map +1 -0
- package/.output/server/chunks/build/select-D7H2ysgT.mjs +3923 -0
- package/.output/server/chunks/build/select-D7H2ysgT.mjs.map +1 -0
- package/.output/server/chunks/build/settings-BeergncK.mjs +557 -0
- package/.output/server/chunks/build/settings-BeergncK.mjs.map +1 -0
- package/.output/server/chunks/build/space-DCwIlnkI.mjs +197 -0
- package/.output/server/chunks/build/space-DCwIlnkI.mjs.map +1 -0
- package/.output/server/chunks/build/spin-HVY81X_L.mjs +358 -0
- package/.output/server/chunks/build/spin-HVY81X_L.mjs.map +1 -0
- package/.output/server/chunks/build/switch-VC0m9ede.mjs +377 -0
- package/.output/server/chunks/build/switch-VC0m9ede.mjs.map +1 -0
- package/.output/server/chunks/build/table-BksLg3Q_.mjs +8883 -0
- package/.output/server/chunks/build/table-BksLg3Q_.mjs.map +1 -0
- package/.output/server/chunks/build/tabs-CzUfD3iX.mjs +1925 -0
- package/.output/server/chunks/build/tabs-CzUfD3iX.mjs.map +1 -0
- package/.output/server/chunks/build/tag-oQI3VtqM.mjs +1157 -0
- package/.output/server/chunks/build/tag-oQI3VtqM.mjs.map +1 -0
- package/.output/server/chunks/build/teams-CFeDlHDh.mjs +910 -0
- package/.output/server/chunks/build/teams-CFeDlHDh.mjs.map +1 -0
- package/.output/server/chunks/build/tokens-CBAUbOce.mjs +818 -0
- package/.output/server/chunks/build/tokens-CBAUbOce.mjs.map +1 -0
- package/.output/server/chunks/build/town-BUqRobze.mjs +48 -0
- package/.output/server/chunks/build/town-BUqRobze.mjs.map +1 -0
- package/.output/server/chunks/build/town-BxH-XXth.mjs +94 -0
- package/.output/server/chunks/build/town-BxH-XXth.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqStream-CwORhsD7.mjs +310 -0
- package/.output/server/chunks/build/useDaqStream-CwORhsD7.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwStream-BkWDGaWp.mjs +450 -0
- package/.output/server/chunks/build/useDcwStream-BkWDGaWp.mjs.map +1 -0
- package/.output/server/chunks/build/useDeviceTwins-NhtXqSkU.mjs +127 -0
- package/.output/server/chunks/build/useDeviceTwins-NhtXqSkU.mjs.map +1 -0
- package/.output/server/chunks/build/useOpsLog-CU64VDg5.mjs +124 -0
- package/.output/server/chunks/build/useOpsLog-CU64VDg5.mjs.map +1 -0
- package/.output/server/chunks/build/useSiteConfig-Cc-ABesl.mjs +27 -0
- package/.output/server/chunks/build/useSiteConfig-Cc-ABesl.mjs.map +1 -0
- package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs +25 -0
- package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopApi-5er8_EHZ.mjs +4786 -0
- package/.output/server/chunks/build/useWorkshopApi-5er8_EHZ.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopWs-Dwr_1Q8f.mjs +1068 -0
- package/.output/server/chunks/build/useWorkshopWs-Dwr_1Q8f.mjs.map +1 -0
- package/.output/server/chunks/build/user-CpVY4OAA.mjs +140 -0
- package/.output/server/chunks/build/user-CpVY4OAA.mjs.map +1 -0
- package/.output/server/chunks/build/users-BMs4s_6K.mjs +558 -0
- package/.output/server/chunks/build/users-BMs4s_6K.mjs.map +1 -0
- package/.output/server/chunks/build/workshop-CJAyZ5zS.mjs +917 -0
- package/.output/server/chunks/build/workshop-CJAyZ5zS.mjs.map +1 -0
- package/.output/server/chunks/build/workspaces-Dq-1zvu9.mjs +125 -0
- package/.output/server/chunks/build/workspaces-Dq-1zvu9.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +40 -0
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +27 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +27 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +498 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs.map +1 -0
- package/.output/server/chunks/routes/api/metrics.mjs +66 -0
- package/.output/server/chunks/routes/api/metrics.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +33 -0
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +30 -0
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +22 -0
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/config.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/config.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/index.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/index.patch.mjs +30 -0
- package/.output/server/chunks/routes/api/system/index.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +148 -0
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +41 -0
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/monitor.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs +35 -0
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +24 -0
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +26 -0
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.get.mjs +26 -0
- package/.output/server/chunks/routes/api/users/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.put.mjs +29 -0
- package/.output/server/chunks/routes/api/users/_id_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/index.get.mjs +23 -0
- package/.output/server/chunks/routes/api/users/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/index.post.mjs +26 -0
- package/.output/server/chunks/routes/api/users/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/login.post.mjs +25 -0
- package/.output/server/chunks/routes/api/users/login.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/logout.post.mjs +23 -0
- package/.output/server/chunks/routes/api/users/logout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/me.get.mjs +23 -0
- package/.output/server/chunks/routes/api/users/me.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/register.post.mjs +25 -0
- package/.output/server/chunks/routes/api/users/register.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +25 -0
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +25 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs +22 -0
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +61 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +333 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +81 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +81 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +56 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs +55 -0
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/caller.mjs +107 -0
- package/.output/server/chunks/routes/api/workshop/caller.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +55 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +52 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +59 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +58 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +49 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +74 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +84 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +53 -0
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +53 -0
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +45 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +44 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs +68 -0
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +44 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +392 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/chunks/virtual/entry.mjs +18401 -0
- package/.output/server/chunks/virtual/entry.mjs.map +1 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
- package/.output/server/index.mjs +5561 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.10/dist/index.cjs +42 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.10/package.json +32 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
- package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
- package/.output/server/node_modules/@ant-design/colors/dist/index.js +255 -0
- package/.output/server/node_modules/@ant-design/colors/package.json +53 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/conversion.js +250 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/css-color-names.js +157 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/format-input.js +189 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/from-ratio.js +30 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/index.js +512 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/interfaces.js +2 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/public_api.js +28 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/random.js +282 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/readability.js +86 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +20 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/util.js +92 -0
- package/.output/server/node_modules/@ctrl/tinycolor/package.json +80 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +949 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
- package/.output/server/node_modules/@phc/format/index.js +229 -0
- package/.output/server/node_modules/@phc/format/package.json +60 -0
- package/.output/server/node_modules/@poppinss/exception/build/index.js +44 -0
- package/.output/server/node_modules/@poppinss/exception/package.json +109 -0
- package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
- package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
- package/.output/server/node_modules/@poppinss/string/build/index.js +2 -0
- package/.output/server/node_modules/@poppinss/string/build/string-DVIVpZLG.js +737 -0
- package/.output/server/node_modules/@poppinss/string/package.json +131 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
- package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
- package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
- package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6781 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +45 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +35 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@xterm/addon-fit/lib/addon-fit.js +2 -0
- package/.output/server/node_modules/@xterm/addon-fit/package.json +26 -0
- package/.output/server/node_modules/@xterm/xterm/lib/xterm.js +2 -0
- package/.output/server/node_modules/@xterm/xterm/package.json +111 -0
- package/.output/server/node_modules/agent-base/dist/src/index.js +203 -0
- package/.output/server/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/.output/server/node_modules/agent-base/package.json +64 -0
- package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
- package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
- package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/ajv/dist/core.js +618 -0
- package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/ajv/package.json +126 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/asynckit/index.js +6 -0
- package/.output/server/node_modules/asynckit/lib/abort.js +29 -0
- package/.output/server/node_modules/asynckit/lib/async.js +34 -0
- package/.output/server/node_modules/asynckit/lib/defer.js +26 -0
- package/.output/server/node_modules/asynckit/lib/iterate.js +75 -0
- package/.output/server/node_modules/asynckit/lib/state.js +37 -0
- package/.output/server/node_modules/asynckit/lib/terminator.js +29 -0
- package/.output/server/node_modules/asynckit/package.json +63 -0
- package/.output/server/node_modules/asynckit/parallel.js +43 -0
- package/.output/server/node_modules/asynckit/serial.js +17 -0
- package/.output/server/node_modules/asynckit/serialOrdered.js +75 -0
- package/.output/server/node_modules/axios/index.js +45 -0
- package/.output/server/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/.output/server/node_modules/axios/lib/adapters/fetch.js +643 -0
- package/.output/server/node_modules/axios/lib/adapters/http.js +1406 -0
- package/.output/server/node_modules/axios/lib/adapters/xhr.js +228 -0
- package/.output/server/node_modules/axios/lib/axios.js +89 -0
- package/.output/server/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/.output/server/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/.output/server/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/.output/server/node_modules/axios/lib/core/Axios.js +301 -0
- package/.output/server/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/.output/server/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/.output/server/node_modules/axios/lib/core/InterceptorManager.js +72 -0
- package/.output/server/node_modules/axios/lib/core/buildFullPath.js +88 -0
- package/.output/server/node_modules/axios/lib/core/dispatchRequest.js +89 -0
- package/.output/server/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/.output/server/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/.output/server/node_modules/axios/lib/core/settle.js +27 -0
- package/.output/server/node_modules/axios/lib/core/transformData.js +28 -0
- package/.output/server/node_modules/axios/lib/defaults/index.js +177 -0
- package/.output/server/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/.output/server/node_modules/axios/lib/env/data.js +1 -0
- package/.output/server/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/.output/server/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/.output/server/node_modules/axios/lib/helpers/Http2Sessions.js +119 -0
- package/.output/server/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/.output/server/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/.output/server/node_modules/axios/lib/helpers/bind.js +14 -0
- package/.output/server/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/.output/server/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/.output/server/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/.output/server/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/.output/server/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/.output/server/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/.output/server/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/.output/server/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/.output/server/node_modules/axios/lib/helpers/fromDataURI.js +68 -0
- package/.output/server/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/.output/server/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/.output/server/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/.output/server/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/.output/server/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/.output/server/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/.output/server/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/.output/server/node_modules/axios/lib/helpers/resolveConfig.js +105 -0
- package/.output/server/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/.output/server/node_modules/axios/lib/helpers/shouldBypassProxy.js +329 -0
- package/.output/server/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/.output/server/node_modules/axios/lib/helpers/spread.js +28 -0
- package/.output/server/node_modules/axios/lib/helpers/throttle.js +44 -0
- package/.output/server/node_modules/axios/lib/helpers/toFormData.js +286 -0
- package/.output/server/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/.output/server/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/.output/server/node_modules/axios/lib/helpers/validator.js +112 -0
- package/.output/server/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/.output/server/node_modules/axios/lib/platform/index.js +7 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/.output/server/node_modules/axios/lib/platform/node/index.js +37 -0
- package/.output/server/node_modules/axios/lib/utils.js +1029 -0
- package/.output/server/node_modules/axios/package.json +203 -0
- package/.output/server/node_modules/birpc/dist/index.cjs +296 -0
- package/.output/server/node_modules/birpc/package.json +57 -0
- package/.output/server/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/.output/server/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/.output/server/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/.output/server/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/.output/server/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/.output/server/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/.output/server/node_modules/case-anything/dist/core.js +242 -0
- package/.output/server/node_modules/case-anything/dist/index.js +1 -0
- package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
- package/.output/server/node_modules/case-anything/package.json +61 -0
- package/.output/server/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.output/server/node_modules/combined-stream/package.json +25 -0
- package/.output/server/node_modules/content-type/index.js +225 -0
- package/.output/server/node_modules/content-type/package.json +42 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.output/server/node_modules/delayed-stream/package.json +27 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +193 -0
- package/.output/server/node_modules/devalue/src/parse.js +270 -0
- package/.output/server/node_modules/devalue/src/stringify.js +428 -0
- package/.output/server/node_modules/devalue/src/uneval.js +582 -0
- package/.output/server/node_modules/devalue/src/utils.js +185 -0
- package/.output/server/node_modules/dunder-proto/get.js +30 -0
- package/.output/server/node_modules/dunder-proto/package.json +76 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/es-define-property/index.js +14 -0
- package/.output/server/node_modules/es-define-property/package.json +81 -0
- package/.output/server/node_modules/es-errors/eval.js +4 -0
- package/.output/server/node_modules/es-errors/index.js +4 -0
- package/.output/server/node_modules/es-errors/package.json +80 -0
- package/.output/server/node_modules/es-errors/range.js +4 -0
- package/.output/server/node_modules/es-errors/ref.js +4 -0
- package/.output/server/node_modules/es-errors/syntax.js +4 -0
- package/.output/server/node_modules/es-errors/type.js +4 -0
- package/.output/server/node_modules/es-errors/uri.js +4 -0
- package/.output/server/node_modules/es-object-atoms/index.js +4 -0
- package/.output/server/node_modules/es-object-atoms/package.json +79 -0
- package/.output/server/node_modules/es-set-tostringtag/index.js +35 -0
- package/.output/server/node_modules/es-set-tostringtag/package.json +78 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
- package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
- package/.output/server/node_modules/fast-uri/index.js +459 -0
- package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
- package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
- package/.output/server/node_modules/fast-uri/package.json +68 -0
- package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
- package/.output/server/node_modules/flattie/package.json +48 -0
- package/.output/server/node_modules/follow-redirects/debug.js +15 -0
- package/.output/server/node_modules/follow-redirects/index.js +709 -0
- package/.output/server/node_modules/follow-redirects/package.json +58 -0
- package/.output/server/node_modules/form-data/lib/form_data.js +506 -0
- package/.output/server/node_modules/form-data/lib/populate.js +10 -0
- package/.output/server/node_modules/form-data/package.json +82 -0
- package/.output/server/node_modules/function-bind/implementation.js +84 -0
- package/.output/server/node_modules/function-bind/index.js +5 -0
- package/.output/server/node_modules/function-bind/package.json +87 -0
- package/.output/server/node_modules/get-intrinsic/index.js +378 -0
- package/.output/server/node_modules/get-intrinsic/package.json +97 -0
- package/.output/server/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/.output/server/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/.output/server/node_modules/get-proto/index.js +27 -0
- package/.output/server/node_modules/get-proto/package.json +81 -0
- package/.output/server/node_modules/gopd/gOPD.js +4 -0
- package/.output/server/node_modules/gopd/index.js +15 -0
- package/.output/server/node_modules/gopd/package.json +77 -0
- package/.output/server/node_modules/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/has-symbols/index.js +14 -0
- package/.output/server/node_modules/has-symbols/package.json +111 -0
- package/.output/server/node_modules/has-symbols/shams.js +45 -0
- package/.output/server/node_modules/has-tostringtag/package.json +108 -0
- package/.output/server/node_modules/has-tostringtag/shams.js +8 -0
- package/.output/server/node_modules/hasown/index.js +8 -0
- package/.output/server/node_modules/hasown/package.json +91 -0
- package/.output/server/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/.output/server/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/.output/server/node_modules/https-proxy-agent/package.json +56 -0
- package/.output/server/node_modules/jose/dist/webapi/index.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +11 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +72 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +51 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +166 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +78 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +170 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +51 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +64 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/.output/server/node_modules/jose/dist/webapi/key/export.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +48 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +174 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/content_encryption.js +142 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +28 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/helpers.js +42 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +26 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +186 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +110 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_sign.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_verify.js +107 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +197 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key.js +132 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_management.js +256 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/options.js +48 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/signing.js +26 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/type_checks.js +35 -0
- package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +39 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/.output/server/node_modules/jose/package.json +198 -0
- package/.output/server/node_modules/js-yaml/dist/js-yaml.mjs +3074 -0
- package/.output/server/node_modules/js-yaml/package.json +83 -0
- package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
- package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
- package/.output/server/node_modules/math-intrinsics/abs.js +4 -0
- package/.output/server/node_modules/math-intrinsics/floor.js +4 -0
- package/.output/server/node_modules/math-intrinsics/isNaN.js +6 -0
- package/.output/server/node_modules/math-intrinsics/max.js +4 -0
- package/.output/server/node_modules/math-intrinsics/min.js +4 -0
- package/.output/server/node_modules/math-intrinsics/package.json +86 -0
- package/.output/server/node_modules/math-intrinsics/pow.js +4 -0
- package/.output/server/node_modules/math-intrinsics/round.js +4 -0
- package/.output/server/node_modules/math-intrinsics/sign.js +11 -0
- package/.output/server/node_modules/mime-db/db.json +8519 -0
- package/.output/server/node_modules/mime-db/index.js +12 -0
- package/.output/server/node_modules/mime-db/package.json +60 -0
- package/.output/server/node_modules/mime-types/index.js +188 -0
- package/.output/server/node_modules/mime-types/package.json +44 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
- package/.output/server/node_modules/nostics/package.json +125 -0
- package/.output/server/node_modules/oauth4webapi/build/index.js +2506 -0
- package/.output/server/node_modules/oauth4webapi/package.json +105 -0
- package/.output/server/node_modules/openid-client/build/index.js +1357 -0
- package/.output/server/node_modules/openid-client/package.json +122 -0
- package/.output/server/node_modules/perfect-debounce/dist/index.cjs +59 -0
- package/.output/server/node_modules/perfect-debounce/package.json +44 -0
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +719 -0
- package/.output/server/node_modules/pinia/package.json +94 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -0
- package/.output/server/node_modules/proxy-from-env/index.js +103 -0
- package/.output/server/node_modules/proxy-from-env/package.json +46 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
- package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
- package/.output/server/node_modules/secure-json-parse/index.js +161 -0
- package/.output/server/node_modules/secure-json-parse/package.json +74 -0
- package/.output/server/node_modules/slugify/package.json +42 -0
- package/.output/server/node_modules/slugify/slugify.js +69 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/supports-color/index.js +135 -0
- package/.output/server/node_modules/supports-color/package.json +53 -0
- package/.output/server/node_modules/three/build/three.cjs +80028 -0
- package/.output/server/node_modules/three/build/three.core.js +60007 -0
- package/.output/server/node_modules/three/build/three.module.js +19610 -0
- package/.output/server/node_modules/three/examples/jsm/environments/RoomEnvironment.js +185 -0
- package/.output/server/node_modules/three/examples/jsm/loaders/GLTFLoader.js +4860 -0
- package/.output/server/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +1501 -0
- package/.output/server/node_modules/three/examples/jsm/utils/SkeletonUtils.js +496 -0
- package/.output/server/node_modules/three/package.json +123 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +172 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
- package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.10KEJHqy.mjs +184 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BCcw-xUY.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BTzUdyNs.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BuspQZgK.mjs +231 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.JIneUUHd.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.q9F_9EzH.mjs +588 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.sGLr_XKf.mjs +201 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +118 -0
- package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
- package/.output/server/node_modules/zod/v3/errors.js +9 -0
- package/.output/server/node_modules/zod/v3/external.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
- package/.output/server/node_modules/zod/v3/index.js +4 -0
- package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v3/types.js +3693 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +27 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +41 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +18 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +6 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/.output/server/node_modules/zod/v4/core/api.js +906 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +565 -0
- package/.output/server/node_modules/zod/v4/core/core.js +61 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +195 -0
- package/.output/server/node_modules/zod/v4/core/function.js +75 -0
- package/.output/server/node_modules/zod/v4/core/index.js +15 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +57 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +95 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +1717 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/.output/server/node_modules/zod/v4/core/util.js +493 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +135 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +39 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +121 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/.output/server/node_modules/zod/v4/mini/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/mini/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/mini/external.js +13 -0
- package/.output/server/node_modules/zod/v4/mini/index.js +3 -0
- package/.output/server/node_modules/zod/v4/mini/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/mini/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/mini/schemas.js +732 -0
- package/.output/server/node_modules/zod/v4-mini/index.js +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/.output/server/node_modules/zod-to-json-schema/package.json +85 -0
- package/.output/server/package.json +93 -0
- package/package.json +2 -1
|
@@ -0,0 +1,3074 @@
|
|
|
1
|
+
function getDefaultExportFromCjs(x) {
|
|
2
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3
|
+
}
|
|
4
|
+
var jsYaml = {};
|
|
5
|
+
var loader = {};
|
|
6
|
+
var common = {};
|
|
7
|
+
var hasRequiredCommon;
|
|
8
|
+
function requireCommon() {
|
|
9
|
+
if (hasRequiredCommon) return common;
|
|
10
|
+
hasRequiredCommon = 1;
|
|
11
|
+
function isNothing(subject) {
|
|
12
|
+
return typeof subject === "undefined" || subject === null;
|
|
13
|
+
}
|
|
14
|
+
function isObject(subject) {
|
|
15
|
+
return typeof subject === "object" && subject !== null;
|
|
16
|
+
}
|
|
17
|
+
function toArray(sequence) {
|
|
18
|
+
if (Array.isArray(sequence)) return sequence;
|
|
19
|
+
else if (isNothing(sequence)) return [];
|
|
20
|
+
return [sequence];
|
|
21
|
+
}
|
|
22
|
+
function extend(target, source) {
|
|
23
|
+
if (source) {
|
|
24
|
+
const sourceKeys = Object.keys(source);
|
|
25
|
+
for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
26
|
+
const key = sourceKeys[index];
|
|
27
|
+
target[key] = source[key];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
}
|
|
32
|
+
function repeat(string, count) {
|
|
33
|
+
let result = "";
|
|
34
|
+
for (let cycle = 0; cycle < count; cycle += 1) {
|
|
35
|
+
result += string;
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
function isNegativeZero(number) {
|
|
40
|
+
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
41
|
+
}
|
|
42
|
+
common.isNothing = isNothing;
|
|
43
|
+
common.isObject = isObject;
|
|
44
|
+
common.toArray = toArray;
|
|
45
|
+
common.repeat = repeat;
|
|
46
|
+
common.isNegativeZero = isNegativeZero;
|
|
47
|
+
common.extend = extend;
|
|
48
|
+
return common;
|
|
49
|
+
}
|
|
50
|
+
var exception;
|
|
51
|
+
var hasRequiredException;
|
|
52
|
+
function requireException() {
|
|
53
|
+
if (hasRequiredException) return exception;
|
|
54
|
+
hasRequiredException = 1;
|
|
55
|
+
function formatError(exception2, compact) {
|
|
56
|
+
let where = "";
|
|
57
|
+
const message = exception2.reason || "(unknown reason)";
|
|
58
|
+
if (!exception2.mark) return message;
|
|
59
|
+
if (exception2.mark.name) {
|
|
60
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
61
|
+
}
|
|
62
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
63
|
+
if (!compact && exception2.mark.snippet) {
|
|
64
|
+
where += "\n\n" + exception2.mark.snippet;
|
|
65
|
+
}
|
|
66
|
+
return message + " " + where;
|
|
67
|
+
}
|
|
68
|
+
function YAMLException2(reason, mark) {
|
|
69
|
+
Error.call(this);
|
|
70
|
+
this.name = "YAMLException";
|
|
71
|
+
this.reason = reason;
|
|
72
|
+
this.mark = mark;
|
|
73
|
+
this.message = formatError(this, false);
|
|
74
|
+
if (Error.captureStackTrace) {
|
|
75
|
+
Error.captureStackTrace(this, this.constructor);
|
|
76
|
+
} else {
|
|
77
|
+
this.stack = new Error().stack || "";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
81
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
82
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
83
|
+
return this.name + ": " + formatError(this, compact);
|
|
84
|
+
};
|
|
85
|
+
exception = YAMLException2;
|
|
86
|
+
return exception;
|
|
87
|
+
}
|
|
88
|
+
var snippet;
|
|
89
|
+
var hasRequiredSnippet;
|
|
90
|
+
function requireSnippet() {
|
|
91
|
+
if (hasRequiredSnippet) return snippet;
|
|
92
|
+
hasRequiredSnippet = 1;
|
|
93
|
+
const common2 = requireCommon();
|
|
94
|
+
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
95
|
+
let head = "";
|
|
96
|
+
let tail = "";
|
|
97
|
+
const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
98
|
+
if (position - lineStart > maxHalfLength) {
|
|
99
|
+
head = " ... ";
|
|
100
|
+
lineStart = position - maxHalfLength + head.length;
|
|
101
|
+
}
|
|
102
|
+
if (lineEnd - position > maxHalfLength) {
|
|
103
|
+
tail = " ...";
|
|
104
|
+
lineEnd = position + maxHalfLength - tail.length;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
|
|
108
|
+
pos: position - lineStart + head.length
|
|
109
|
+
// relative position
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function padStart(string, max) {
|
|
113
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
114
|
+
}
|
|
115
|
+
function makeSnippet(mark, options) {
|
|
116
|
+
options = Object.create(options || null);
|
|
117
|
+
if (!mark.buffer) return null;
|
|
118
|
+
if (!options.maxLength) options.maxLength = 79;
|
|
119
|
+
if (typeof options.indent !== "number") options.indent = 1;
|
|
120
|
+
if (typeof options.linesBefore !== "number") options.linesBefore = 3;
|
|
121
|
+
if (typeof options.linesAfter !== "number") options.linesAfter = 2;
|
|
122
|
+
const re = /\r?\n|\r|\0/g;
|
|
123
|
+
const lineStarts = [0];
|
|
124
|
+
const lineEnds = [];
|
|
125
|
+
let match;
|
|
126
|
+
let foundLineNo = -1;
|
|
127
|
+
while (match = re.exec(mark.buffer)) {
|
|
128
|
+
lineEnds.push(match.index);
|
|
129
|
+
lineStarts.push(match.index + match[0].length);
|
|
130
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
131
|
+
foundLineNo = lineStarts.length - 2;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
135
|
+
let result = "";
|
|
136
|
+
const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
137
|
+
const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
138
|
+
for (let i = 1; i <= options.linesBefore; i++) {
|
|
139
|
+
if (foundLineNo - i < 0) break;
|
|
140
|
+
const line2 = getLine(
|
|
141
|
+
mark.buffer,
|
|
142
|
+
lineStarts[foundLineNo - i],
|
|
143
|
+
lineEnds[foundLineNo - i],
|
|
144
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
|
|
145
|
+
maxLineLength
|
|
146
|
+
);
|
|
147
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result;
|
|
148
|
+
}
|
|
149
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
150
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
151
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
152
|
+
for (let i = 1; i <= options.linesAfter; i++) {
|
|
153
|
+
if (foundLineNo + i >= lineEnds.length) break;
|
|
154
|
+
const line2 = getLine(
|
|
155
|
+
mark.buffer,
|
|
156
|
+
lineStarts[foundLineNo + i],
|
|
157
|
+
lineEnds[foundLineNo + i],
|
|
158
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
|
|
159
|
+
maxLineLength
|
|
160
|
+
);
|
|
161
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n";
|
|
162
|
+
}
|
|
163
|
+
return result.replace(/\n$/, "");
|
|
164
|
+
}
|
|
165
|
+
snippet = makeSnippet;
|
|
166
|
+
return snippet;
|
|
167
|
+
}
|
|
168
|
+
var type;
|
|
169
|
+
var hasRequiredType;
|
|
170
|
+
function requireType() {
|
|
171
|
+
if (hasRequiredType) return type;
|
|
172
|
+
hasRequiredType = 1;
|
|
173
|
+
const YAMLException2 = requireException();
|
|
174
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
175
|
+
"kind",
|
|
176
|
+
"multi",
|
|
177
|
+
"resolve",
|
|
178
|
+
"construct",
|
|
179
|
+
"instanceOf",
|
|
180
|
+
"predicate",
|
|
181
|
+
"represent",
|
|
182
|
+
"representName",
|
|
183
|
+
"defaultStyle",
|
|
184
|
+
"styleAliases"
|
|
185
|
+
];
|
|
186
|
+
const YAML_NODE_KINDS = [
|
|
187
|
+
"scalar",
|
|
188
|
+
"sequence",
|
|
189
|
+
"mapping"
|
|
190
|
+
];
|
|
191
|
+
function compileStyleAliases(map2) {
|
|
192
|
+
const result = {};
|
|
193
|
+
if (map2 !== null) {
|
|
194
|
+
Object.keys(map2).forEach(function(style) {
|
|
195
|
+
map2[style].forEach(function(alias) {
|
|
196
|
+
result[String(alias)] = style;
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
function Type2(tag, options) {
|
|
203
|
+
options = options || {};
|
|
204
|
+
Object.keys(options).forEach(function(name) {
|
|
205
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
206
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
this.options = options;
|
|
210
|
+
this.tag = tag;
|
|
211
|
+
this.kind = options["kind"] || null;
|
|
212
|
+
this.resolve = options["resolve"] || function() {
|
|
213
|
+
return true;
|
|
214
|
+
};
|
|
215
|
+
this.construct = options["construct"] || function(data) {
|
|
216
|
+
return data;
|
|
217
|
+
};
|
|
218
|
+
this.instanceOf = options["instanceOf"] || null;
|
|
219
|
+
this.predicate = options["predicate"] || null;
|
|
220
|
+
this.represent = options["represent"] || null;
|
|
221
|
+
this.representName = options["representName"] || null;
|
|
222
|
+
this.defaultStyle = options["defaultStyle"] || null;
|
|
223
|
+
this.multi = options["multi"] || false;
|
|
224
|
+
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
225
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
226
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
type = Type2;
|
|
230
|
+
return type;
|
|
231
|
+
}
|
|
232
|
+
var schema;
|
|
233
|
+
var hasRequiredSchema;
|
|
234
|
+
function requireSchema() {
|
|
235
|
+
if (hasRequiredSchema) return schema;
|
|
236
|
+
hasRequiredSchema = 1;
|
|
237
|
+
const YAMLException2 = requireException();
|
|
238
|
+
const Type2 = requireType();
|
|
239
|
+
function compileList(schema2, name) {
|
|
240
|
+
const result = [];
|
|
241
|
+
schema2[name].forEach(function(currentType) {
|
|
242
|
+
let newIndex = result.length;
|
|
243
|
+
result.forEach(function(previousType, previousIndex) {
|
|
244
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
245
|
+
newIndex = previousIndex;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
result[newIndex] = currentType;
|
|
249
|
+
});
|
|
250
|
+
return result;
|
|
251
|
+
}
|
|
252
|
+
function compileMap() {
|
|
253
|
+
const result = {
|
|
254
|
+
scalar: {},
|
|
255
|
+
sequence: {},
|
|
256
|
+
mapping: {},
|
|
257
|
+
fallback: {},
|
|
258
|
+
multi: {
|
|
259
|
+
scalar: [],
|
|
260
|
+
sequence: [],
|
|
261
|
+
mapping: [],
|
|
262
|
+
fallback: []
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
function collectType(type2) {
|
|
266
|
+
if (type2.multi) {
|
|
267
|
+
result.multi[type2.kind].push(type2);
|
|
268
|
+
result.multi["fallback"].push(type2);
|
|
269
|
+
} else {
|
|
270
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
for (let index = 0, length = arguments.length; index < length; index += 1) {
|
|
274
|
+
arguments[index].forEach(collectType);
|
|
275
|
+
}
|
|
276
|
+
return result;
|
|
277
|
+
}
|
|
278
|
+
function Schema2(definition) {
|
|
279
|
+
return this.extend(definition);
|
|
280
|
+
}
|
|
281
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
282
|
+
let implicit = [];
|
|
283
|
+
let explicit = [];
|
|
284
|
+
if (definition instanceof Type2) {
|
|
285
|
+
explicit.push(definition);
|
|
286
|
+
} else if (Array.isArray(definition)) {
|
|
287
|
+
explicit = explicit.concat(definition);
|
|
288
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
289
|
+
if (definition.implicit) implicit = implicit.concat(definition.implicit);
|
|
290
|
+
if (definition.explicit) explicit = explicit.concat(definition.explicit);
|
|
291
|
+
} else {
|
|
292
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
293
|
+
}
|
|
294
|
+
implicit.forEach(function(type2) {
|
|
295
|
+
if (!(type2 instanceof Type2)) {
|
|
296
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
297
|
+
}
|
|
298
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
299
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
300
|
+
}
|
|
301
|
+
if (type2.multi) {
|
|
302
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
explicit.forEach(function(type2) {
|
|
306
|
+
if (!(type2 instanceof Type2)) {
|
|
307
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
const result = Object.create(Schema2.prototype);
|
|
311
|
+
result.implicit = (this.implicit || []).concat(implicit);
|
|
312
|
+
result.explicit = (this.explicit || []).concat(explicit);
|
|
313
|
+
result.compiledImplicit = compileList(result, "implicit");
|
|
314
|
+
result.compiledExplicit = compileList(result, "explicit");
|
|
315
|
+
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
316
|
+
return result;
|
|
317
|
+
};
|
|
318
|
+
schema = Schema2;
|
|
319
|
+
return schema;
|
|
320
|
+
}
|
|
321
|
+
var str;
|
|
322
|
+
var hasRequiredStr;
|
|
323
|
+
function requireStr() {
|
|
324
|
+
if (hasRequiredStr) return str;
|
|
325
|
+
hasRequiredStr = 1;
|
|
326
|
+
const Type2 = requireType();
|
|
327
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
328
|
+
kind: "scalar",
|
|
329
|
+
construct: function(data) {
|
|
330
|
+
return data !== null ? data : "";
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
return str;
|
|
334
|
+
}
|
|
335
|
+
var seq;
|
|
336
|
+
var hasRequiredSeq;
|
|
337
|
+
function requireSeq() {
|
|
338
|
+
if (hasRequiredSeq) return seq;
|
|
339
|
+
hasRequiredSeq = 1;
|
|
340
|
+
const Type2 = requireType();
|
|
341
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
342
|
+
kind: "sequence",
|
|
343
|
+
construct: function(data) {
|
|
344
|
+
return data !== null ? data : [];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
return seq;
|
|
348
|
+
}
|
|
349
|
+
var map;
|
|
350
|
+
var hasRequiredMap;
|
|
351
|
+
function requireMap() {
|
|
352
|
+
if (hasRequiredMap) return map;
|
|
353
|
+
hasRequiredMap = 1;
|
|
354
|
+
const Type2 = requireType();
|
|
355
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
356
|
+
kind: "mapping",
|
|
357
|
+
construct: function(data) {
|
|
358
|
+
return data !== null ? data : {};
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
return map;
|
|
362
|
+
}
|
|
363
|
+
var failsafe;
|
|
364
|
+
var hasRequiredFailsafe;
|
|
365
|
+
function requireFailsafe() {
|
|
366
|
+
if (hasRequiredFailsafe) return failsafe;
|
|
367
|
+
hasRequiredFailsafe = 1;
|
|
368
|
+
const Schema2 = requireSchema();
|
|
369
|
+
failsafe = new Schema2({
|
|
370
|
+
explicit: [
|
|
371
|
+
requireStr(),
|
|
372
|
+
requireSeq(),
|
|
373
|
+
requireMap()
|
|
374
|
+
]
|
|
375
|
+
});
|
|
376
|
+
return failsafe;
|
|
377
|
+
}
|
|
378
|
+
var _null;
|
|
379
|
+
var hasRequired_null;
|
|
380
|
+
function require_null() {
|
|
381
|
+
if (hasRequired_null) return _null;
|
|
382
|
+
hasRequired_null = 1;
|
|
383
|
+
const Type2 = requireType();
|
|
384
|
+
function resolveYamlNull(data) {
|
|
385
|
+
if (data === null) return true;
|
|
386
|
+
const max = data.length;
|
|
387
|
+
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
388
|
+
}
|
|
389
|
+
function constructYamlNull() {
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
function isNull(object) {
|
|
393
|
+
return object === null;
|
|
394
|
+
}
|
|
395
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
396
|
+
kind: "scalar",
|
|
397
|
+
resolve: resolveYamlNull,
|
|
398
|
+
construct: constructYamlNull,
|
|
399
|
+
predicate: isNull,
|
|
400
|
+
represent: {
|
|
401
|
+
canonical: function() {
|
|
402
|
+
return "~";
|
|
403
|
+
},
|
|
404
|
+
lowercase: function() {
|
|
405
|
+
return "null";
|
|
406
|
+
},
|
|
407
|
+
uppercase: function() {
|
|
408
|
+
return "NULL";
|
|
409
|
+
},
|
|
410
|
+
camelcase: function() {
|
|
411
|
+
return "Null";
|
|
412
|
+
},
|
|
413
|
+
empty: function() {
|
|
414
|
+
return "";
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
defaultStyle: "lowercase"
|
|
418
|
+
});
|
|
419
|
+
return _null;
|
|
420
|
+
}
|
|
421
|
+
var bool;
|
|
422
|
+
var hasRequiredBool;
|
|
423
|
+
function requireBool() {
|
|
424
|
+
if (hasRequiredBool) return bool;
|
|
425
|
+
hasRequiredBool = 1;
|
|
426
|
+
const Type2 = requireType();
|
|
427
|
+
function resolveYamlBoolean(data) {
|
|
428
|
+
if (data === null) return false;
|
|
429
|
+
const max = data.length;
|
|
430
|
+
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
431
|
+
}
|
|
432
|
+
function constructYamlBoolean(data) {
|
|
433
|
+
return data === "true" || data === "True" || data === "TRUE";
|
|
434
|
+
}
|
|
435
|
+
function isBoolean(object) {
|
|
436
|
+
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
437
|
+
}
|
|
438
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
439
|
+
kind: "scalar",
|
|
440
|
+
resolve: resolveYamlBoolean,
|
|
441
|
+
construct: constructYamlBoolean,
|
|
442
|
+
predicate: isBoolean,
|
|
443
|
+
represent: {
|
|
444
|
+
lowercase: function(object) {
|
|
445
|
+
return object ? "true" : "false";
|
|
446
|
+
},
|
|
447
|
+
uppercase: function(object) {
|
|
448
|
+
return object ? "TRUE" : "FALSE";
|
|
449
|
+
},
|
|
450
|
+
camelcase: function(object) {
|
|
451
|
+
return object ? "True" : "False";
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
defaultStyle: "lowercase"
|
|
455
|
+
});
|
|
456
|
+
return bool;
|
|
457
|
+
}
|
|
458
|
+
var int;
|
|
459
|
+
var hasRequiredInt;
|
|
460
|
+
function requireInt() {
|
|
461
|
+
if (hasRequiredInt) return int;
|
|
462
|
+
hasRequiredInt = 1;
|
|
463
|
+
const common2 = requireCommon();
|
|
464
|
+
const Type2 = requireType();
|
|
465
|
+
function isHexCode(c) {
|
|
466
|
+
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
467
|
+
}
|
|
468
|
+
function isOctCode(c) {
|
|
469
|
+
return c >= 48 && c <= 55;
|
|
470
|
+
}
|
|
471
|
+
function isDecCode(c) {
|
|
472
|
+
return c >= 48 && c <= 57;
|
|
473
|
+
}
|
|
474
|
+
function resolveYamlInteger(data) {
|
|
475
|
+
if (data === null) return false;
|
|
476
|
+
const max = data.length;
|
|
477
|
+
let index = 0;
|
|
478
|
+
let hasDigits = false;
|
|
479
|
+
if (!max) return false;
|
|
480
|
+
let ch = data[index];
|
|
481
|
+
if (ch === "-" || ch === "+") {
|
|
482
|
+
ch = data[++index];
|
|
483
|
+
}
|
|
484
|
+
if (ch === "0") {
|
|
485
|
+
if (index + 1 === max) return true;
|
|
486
|
+
ch = data[++index];
|
|
487
|
+
if (ch === "b") {
|
|
488
|
+
index++;
|
|
489
|
+
for (; index < max; index++) {
|
|
490
|
+
ch = data[index];
|
|
491
|
+
if (ch !== "0" && ch !== "1") return false;
|
|
492
|
+
hasDigits = true;
|
|
493
|
+
}
|
|
494
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
495
|
+
}
|
|
496
|
+
if (ch === "x") {
|
|
497
|
+
index++;
|
|
498
|
+
for (; index < max; index++) {
|
|
499
|
+
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
500
|
+
hasDigits = true;
|
|
501
|
+
}
|
|
502
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
503
|
+
}
|
|
504
|
+
if (ch === "o") {
|
|
505
|
+
index++;
|
|
506
|
+
for (; index < max; index++) {
|
|
507
|
+
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
508
|
+
hasDigits = true;
|
|
509
|
+
}
|
|
510
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
for (; index < max; index++) {
|
|
514
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
515
|
+
return false;
|
|
516
|
+
}
|
|
517
|
+
hasDigits = true;
|
|
518
|
+
}
|
|
519
|
+
if (!hasDigits) return false;
|
|
520
|
+
return isFinite(parseYamlInteger(data));
|
|
521
|
+
}
|
|
522
|
+
function parseYamlInteger(data) {
|
|
523
|
+
let value = data;
|
|
524
|
+
let sign = 1;
|
|
525
|
+
let ch = value[0];
|
|
526
|
+
if (ch === "-" || ch === "+") {
|
|
527
|
+
if (ch === "-") sign = -1;
|
|
528
|
+
value = value.slice(1);
|
|
529
|
+
ch = value[0];
|
|
530
|
+
}
|
|
531
|
+
if (value === "0") return 0;
|
|
532
|
+
if (ch === "0") {
|
|
533
|
+
if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
|
|
534
|
+
if (value[1] === "x") return sign * parseInt(value.slice(2), 16);
|
|
535
|
+
if (value[1] === "o") return sign * parseInt(value.slice(2), 8);
|
|
536
|
+
}
|
|
537
|
+
return sign * parseInt(value, 10);
|
|
538
|
+
}
|
|
539
|
+
function constructYamlInteger(data) {
|
|
540
|
+
return parseYamlInteger(data);
|
|
541
|
+
}
|
|
542
|
+
function isInteger(object) {
|
|
543
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
544
|
+
}
|
|
545
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
546
|
+
kind: "scalar",
|
|
547
|
+
resolve: resolveYamlInteger,
|
|
548
|
+
construct: constructYamlInteger,
|
|
549
|
+
predicate: isInteger,
|
|
550
|
+
represent: {
|
|
551
|
+
binary: function(obj) {
|
|
552
|
+
return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
|
|
553
|
+
},
|
|
554
|
+
octal: function(obj) {
|
|
555
|
+
return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
|
|
556
|
+
},
|
|
557
|
+
decimal: function(obj) {
|
|
558
|
+
return obj.toString(10);
|
|
559
|
+
},
|
|
560
|
+
hexadecimal: function(obj) {
|
|
561
|
+
return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
defaultStyle: "decimal",
|
|
565
|
+
styleAliases: {
|
|
566
|
+
binary: [2, "bin"],
|
|
567
|
+
octal: [8, "oct"],
|
|
568
|
+
decimal: [10, "dec"],
|
|
569
|
+
hexadecimal: [16, "hex"]
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
return int;
|
|
573
|
+
}
|
|
574
|
+
var float;
|
|
575
|
+
var hasRequiredFloat;
|
|
576
|
+
function requireFloat() {
|
|
577
|
+
if (hasRequiredFloat) return float;
|
|
578
|
+
hasRequiredFloat = 1;
|
|
579
|
+
const common2 = requireCommon();
|
|
580
|
+
const Type2 = requireType();
|
|
581
|
+
const YAML_FLOAT_PATTERN = new RegExp(
|
|
582
|
+
// 2.5e4, 2.5 and integers
|
|
583
|
+
"^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
584
|
+
);
|
|
585
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp(
|
|
586
|
+
"^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
587
|
+
);
|
|
588
|
+
function resolveYamlFloat(data) {
|
|
589
|
+
if (data === null) return false;
|
|
590
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
594
|
+
return true;
|
|
595
|
+
}
|
|
596
|
+
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
597
|
+
}
|
|
598
|
+
function constructYamlFloat(data) {
|
|
599
|
+
let value = data.toLowerCase();
|
|
600
|
+
const sign = value[0] === "-" ? -1 : 1;
|
|
601
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
602
|
+
value = value.slice(1);
|
|
603
|
+
}
|
|
604
|
+
if (value === ".inf") {
|
|
605
|
+
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
606
|
+
} else if (value === ".nan") {
|
|
607
|
+
return NaN;
|
|
608
|
+
}
|
|
609
|
+
return sign * parseFloat(value, 10);
|
|
610
|
+
}
|
|
611
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
612
|
+
function representYamlFloat(object, style) {
|
|
613
|
+
if (isNaN(object)) {
|
|
614
|
+
switch (style) {
|
|
615
|
+
case "lowercase":
|
|
616
|
+
return ".nan";
|
|
617
|
+
case "uppercase":
|
|
618
|
+
return ".NAN";
|
|
619
|
+
case "camelcase":
|
|
620
|
+
return ".NaN";
|
|
621
|
+
}
|
|
622
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
623
|
+
switch (style) {
|
|
624
|
+
case "lowercase":
|
|
625
|
+
return ".inf";
|
|
626
|
+
case "uppercase":
|
|
627
|
+
return ".INF";
|
|
628
|
+
case "camelcase":
|
|
629
|
+
return ".Inf";
|
|
630
|
+
}
|
|
631
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
632
|
+
switch (style) {
|
|
633
|
+
case "lowercase":
|
|
634
|
+
return "-.inf";
|
|
635
|
+
case "uppercase":
|
|
636
|
+
return "-.INF";
|
|
637
|
+
case "camelcase":
|
|
638
|
+
return "-.Inf";
|
|
639
|
+
}
|
|
640
|
+
} else if (common2.isNegativeZero(object)) {
|
|
641
|
+
return "-0.0";
|
|
642
|
+
}
|
|
643
|
+
const res = object.toString(10);
|
|
644
|
+
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
645
|
+
}
|
|
646
|
+
function isFloat(object) {
|
|
647
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
648
|
+
}
|
|
649
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
650
|
+
kind: "scalar",
|
|
651
|
+
resolve: resolveYamlFloat,
|
|
652
|
+
construct: constructYamlFloat,
|
|
653
|
+
predicate: isFloat,
|
|
654
|
+
represent: representYamlFloat,
|
|
655
|
+
defaultStyle: "lowercase"
|
|
656
|
+
});
|
|
657
|
+
return float;
|
|
658
|
+
}
|
|
659
|
+
var json;
|
|
660
|
+
var hasRequiredJson;
|
|
661
|
+
function requireJson() {
|
|
662
|
+
if (hasRequiredJson) return json;
|
|
663
|
+
hasRequiredJson = 1;
|
|
664
|
+
json = requireFailsafe().extend({
|
|
665
|
+
implicit: [
|
|
666
|
+
require_null(),
|
|
667
|
+
requireBool(),
|
|
668
|
+
requireInt(),
|
|
669
|
+
requireFloat()
|
|
670
|
+
]
|
|
671
|
+
});
|
|
672
|
+
return json;
|
|
673
|
+
}
|
|
674
|
+
var core;
|
|
675
|
+
var hasRequiredCore;
|
|
676
|
+
function requireCore() {
|
|
677
|
+
if (hasRequiredCore) return core;
|
|
678
|
+
hasRequiredCore = 1;
|
|
679
|
+
core = requireJson();
|
|
680
|
+
return core;
|
|
681
|
+
}
|
|
682
|
+
var timestamp;
|
|
683
|
+
var hasRequiredTimestamp;
|
|
684
|
+
function requireTimestamp() {
|
|
685
|
+
if (hasRequiredTimestamp) return timestamp;
|
|
686
|
+
hasRequiredTimestamp = 1;
|
|
687
|
+
const Type2 = requireType();
|
|
688
|
+
const YAML_DATE_REGEXP = new RegExp(
|
|
689
|
+
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
690
|
+
);
|
|
691
|
+
const YAML_TIMESTAMP_REGEXP = new RegExp(
|
|
692
|
+
"^([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]))?))?$"
|
|
693
|
+
);
|
|
694
|
+
function resolveYamlTimestamp(data) {
|
|
695
|
+
if (data === null) return false;
|
|
696
|
+
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
697
|
+
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
|
|
698
|
+
return false;
|
|
699
|
+
}
|
|
700
|
+
function constructYamlTimestamp(data) {
|
|
701
|
+
let fraction = 0;
|
|
702
|
+
let delta = null;
|
|
703
|
+
let match = YAML_DATE_REGEXP.exec(data);
|
|
704
|
+
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
705
|
+
if (match === null) throw new Error("Date resolve error");
|
|
706
|
+
const year = +match[1];
|
|
707
|
+
const month = +match[2] - 1;
|
|
708
|
+
const day = +match[3];
|
|
709
|
+
if (!match[4]) {
|
|
710
|
+
return new Date(Date.UTC(year, month, day));
|
|
711
|
+
}
|
|
712
|
+
const hour = +match[4];
|
|
713
|
+
const minute = +match[5];
|
|
714
|
+
const second = +match[6];
|
|
715
|
+
if (match[7]) {
|
|
716
|
+
fraction = match[7].slice(0, 3);
|
|
717
|
+
while (fraction.length < 3) {
|
|
718
|
+
fraction += "0";
|
|
719
|
+
}
|
|
720
|
+
fraction = +fraction;
|
|
721
|
+
}
|
|
722
|
+
if (match[9]) {
|
|
723
|
+
const tzHour = +match[10];
|
|
724
|
+
const tzMinute = +(match[11] || 0);
|
|
725
|
+
delta = (tzHour * 60 + tzMinute) * 6e4;
|
|
726
|
+
if (match[9] === "-") delta = -delta;
|
|
727
|
+
}
|
|
728
|
+
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
729
|
+
if (delta) date.setTime(date.getTime() - delta);
|
|
730
|
+
return date;
|
|
731
|
+
}
|
|
732
|
+
function representYamlTimestamp(object) {
|
|
733
|
+
return object.toISOString();
|
|
734
|
+
}
|
|
735
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
736
|
+
kind: "scalar",
|
|
737
|
+
resolve: resolveYamlTimestamp,
|
|
738
|
+
construct: constructYamlTimestamp,
|
|
739
|
+
instanceOf: Date,
|
|
740
|
+
represent: representYamlTimestamp
|
|
741
|
+
});
|
|
742
|
+
return timestamp;
|
|
743
|
+
}
|
|
744
|
+
var merge;
|
|
745
|
+
var hasRequiredMerge;
|
|
746
|
+
function requireMerge() {
|
|
747
|
+
if (hasRequiredMerge) return merge;
|
|
748
|
+
hasRequiredMerge = 1;
|
|
749
|
+
const Type2 = requireType();
|
|
750
|
+
function resolveYamlMerge(data) {
|
|
751
|
+
return data === "<<" || data === null;
|
|
752
|
+
}
|
|
753
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
754
|
+
kind: "scalar",
|
|
755
|
+
resolve: resolveYamlMerge
|
|
756
|
+
});
|
|
757
|
+
return merge;
|
|
758
|
+
}
|
|
759
|
+
var binary;
|
|
760
|
+
var hasRequiredBinary;
|
|
761
|
+
function requireBinary() {
|
|
762
|
+
if (hasRequiredBinary) return binary;
|
|
763
|
+
hasRequiredBinary = 1;
|
|
764
|
+
const Type2 = requireType();
|
|
765
|
+
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
766
|
+
function resolveYamlBinary(data) {
|
|
767
|
+
if (data === null) return false;
|
|
768
|
+
let bitlen = 0;
|
|
769
|
+
const max = data.length;
|
|
770
|
+
const map2 = BASE64_MAP;
|
|
771
|
+
for (let idx = 0; idx < max; idx++) {
|
|
772
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
773
|
+
if (code > 64) continue;
|
|
774
|
+
if (code < 0) return false;
|
|
775
|
+
bitlen += 6;
|
|
776
|
+
}
|
|
777
|
+
return bitlen % 8 === 0;
|
|
778
|
+
}
|
|
779
|
+
function constructYamlBinary(data) {
|
|
780
|
+
const input = data.replace(/[\r\n=]/g, "");
|
|
781
|
+
const max = input.length;
|
|
782
|
+
const map2 = BASE64_MAP;
|
|
783
|
+
let bits = 0;
|
|
784
|
+
const result = [];
|
|
785
|
+
for (let idx = 0; idx < max; idx++) {
|
|
786
|
+
if (idx % 4 === 0 && idx) {
|
|
787
|
+
result.push(bits >> 16 & 255);
|
|
788
|
+
result.push(bits >> 8 & 255);
|
|
789
|
+
result.push(bits & 255);
|
|
790
|
+
}
|
|
791
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
792
|
+
}
|
|
793
|
+
const tailbits = max % 4 * 6;
|
|
794
|
+
if (tailbits === 0) {
|
|
795
|
+
result.push(bits >> 16 & 255);
|
|
796
|
+
result.push(bits >> 8 & 255);
|
|
797
|
+
result.push(bits & 255);
|
|
798
|
+
} else if (tailbits === 18) {
|
|
799
|
+
result.push(bits >> 10 & 255);
|
|
800
|
+
result.push(bits >> 2 & 255);
|
|
801
|
+
} else if (tailbits === 12) {
|
|
802
|
+
result.push(bits >> 4 & 255);
|
|
803
|
+
}
|
|
804
|
+
return new Uint8Array(result);
|
|
805
|
+
}
|
|
806
|
+
function representYamlBinary(object) {
|
|
807
|
+
let result = "";
|
|
808
|
+
let bits = 0;
|
|
809
|
+
const max = object.length;
|
|
810
|
+
const map2 = BASE64_MAP;
|
|
811
|
+
for (let idx = 0; idx < max; idx++) {
|
|
812
|
+
if (idx % 3 === 0 && idx) {
|
|
813
|
+
result += map2[bits >> 18 & 63];
|
|
814
|
+
result += map2[bits >> 12 & 63];
|
|
815
|
+
result += map2[bits >> 6 & 63];
|
|
816
|
+
result += map2[bits & 63];
|
|
817
|
+
}
|
|
818
|
+
bits = (bits << 8) + object[idx];
|
|
819
|
+
}
|
|
820
|
+
const tail = max % 3;
|
|
821
|
+
if (tail === 0) {
|
|
822
|
+
result += map2[bits >> 18 & 63];
|
|
823
|
+
result += map2[bits >> 12 & 63];
|
|
824
|
+
result += map2[bits >> 6 & 63];
|
|
825
|
+
result += map2[bits & 63];
|
|
826
|
+
} else if (tail === 2) {
|
|
827
|
+
result += map2[bits >> 10 & 63];
|
|
828
|
+
result += map2[bits >> 4 & 63];
|
|
829
|
+
result += map2[bits << 2 & 63];
|
|
830
|
+
result += map2[64];
|
|
831
|
+
} else if (tail === 1) {
|
|
832
|
+
result += map2[bits >> 2 & 63];
|
|
833
|
+
result += map2[bits << 4 & 63];
|
|
834
|
+
result += map2[64];
|
|
835
|
+
result += map2[64];
|
|
836
|
+
}
|
|
837
|
+
return result;
|
|
838
|
+
}
|
|
839
|
+
function isBinary(obj) {
|
|
840
|
+
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
841
|
+
}
|
|
842
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
843
|
+
kind: "scalar",
|
|
844
|
+
resolve: resolveYamlBinary,
|
|
845
|
+
construct: constructYamlBinary,
|
|
846
|
+
predicate: isBinary,
|
|
847
|
+
represent: representYamlBinary
|
|
848
|
+
});
|
|
849
|
+
return binary;
|
|
850
|
+
}
|
|
851
|
+
var omap;
|
|
852
|
+
var hasRequiredOmap;
|
|
853
|
+
function requireOmap() {
|
|
854
|
+
if (hasRequiredOmap) return omap;
|
|
855
|
+
hasRequiredOmap = 1;
|
|
856
|
+
const Type2 = requireType();
|
|
857
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
858
|
+
const _toString = Object.prototype.toString;
|
|
859
|
+
function resolveYamlOmap(data) {
|
|
860
|
+
if (data === null) return true;
|
|
861
|
+
const objectKeys = {};
|
|
862
|
+
const object = data;
|
|
863
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
864
|
+
const pair = object[index];
|
|
865
|
+
let pairHasKey = false;
|
|
866
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
867
|
+
let pairKey;
|
|
868
|
+
for (pairKey in pair) {
|
|
869
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
870
|
+
if (!pairHasKey) pairHasKey = true;
|
|
871
|
+
else return false;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
if (!pairHasKey) return false;
|
|
875
|
+
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
876
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
877
|
+
}
|
|
878
|
+
return true;
|
|
879
|
+
}
|
|
880
|
+
function constructYamlOmap(data) {
|
|
881
|
+
return data !== null ? data : [];
|
|
882
|
+
}
|
|
883
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
884
|
+
kind: "sequence",
|
|
885
|
+
resolve: resolveYamlOmap,
|
|
886
|
+
construct: constructYamlOmap
|
|
887
|
+
});
|
|
888
|
+
return omap;
|
|
889
|
+
}
|
|
890
|
+
var pairs;
|
|
891
|
+
var hasRequiredPairs;
|
|
892
|
+
function requirePairs() {
|
|
893
|
+
if (hasRequiredPairs) return pairs;
|
|
894
|
+
hasRequiredPairs = 1;
|
|
895
|
+
const Type2 = requireType();
|
|
896
|
+
const _toString = Object.prototype.toString;
|
|
897
|
+
function resolveYamlPairs(data) {
|
|
898
|
+
if (data === null) return true;
|
|
899
|
+
const object = data;
|
|
900
|
+
const result = new Array(object.length);
|
|
901
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
902
|
+
const pair = object[index];
|
|
903
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
904
|
+
const keys = Object.keys(pair);
|
|
905
|
+
if (keys.length !== 1) return false;
|
|
906
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
907
|
+
}
|
|
908
|
+
return true;
|
|
909
|
+
}
|
|
910
|
+
function constructYamlPairs(data) {
|
|
911
|
+
if (data === null) return [];
|
|
912
|
+
const object = data;
|
|
913
|
+
const result = new Array(object.length);
|
|
914
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
915
|
+
const pair = object[index];
|
|
916
|
+
const keys = Object.keys(pair);
|
|
917
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
918
|
+
}
|
|
919
|
+
return result;
|
|
920
|
+
}
|
|
921
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
922
|
+
kind: "sequence",
|
|
923
|
+
resolve: resolveYamlPairs,
|
|
924
|
+
construct: constructYamlPairs
|
|
925
|
+
});
|
|
926
|
+
return pairs;
|
|
927
|
+
}
|
|
928
|
+
var set;
|
|
929
|
+
var hasRequiredSet;
|
|
930
|
+
function requireSet() {
|
|
931
|
+
if (hasRequiredSet) return set;
|
|
932
|
+
hasRequiredSet = 1;
|
|
933
|
+
const Type2 = requireType();
|
|
934
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
935
|
+
function resolveYamlSet(data) {
|
|
936
|
+
if (data === null) return true;
|
|
937
|
+
const object = data;
|
|
938
|
+
for (const key in object) {
|
|
939
|
+
if (_hasOwnProperty.call(object, key)) {
|
|
940
|
+
if (object[key] !== null) return false;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
return true;
|
|
944
|
+
}
|
|
945
|
+
function constructYamlSet(data) {
|
|
946
|
+
return data !== null ? data : {};
|
|
947
|
+
}
|
|
948
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
949
|
+
kind: "mapping",
|
|
950
|
+
resolve: resolveYamlSet,
|
|
951
|
+
construct: constructYamlSet
|
|
952
|
+
});
|
|
953
|
+
return set;
|
|
954
|
+
}
|
|
955
|
+
var _default;
|
|
956
|
+
var hasRequired_default;
|
|
957
|
+
function require_default() {
|
|
958
|
+
if (hasRequired_default) return _default;
|
|
959
|
+
hasRequired_default = 1;
|
|
960
|
+
_default = requireCore().extend({
|
|
961
|
+
implicit: [
|
|
962
|
+
requireTimestamp(),
|
|
963
|
+
requireMerge()
|
|
964
|
+
],
|
|
965
|
+
explicit: [
|
|
966
|
+
requireBinary(),
|
|
967
|
+
requireOmap(),
|
|
968
|
+
requirePairs(),
|
|
969
|
+
requireSet()
|
|
970
|
+
]
|
|
971
|
+
});
|
|
972
|
+
return _default;
|
|
973
|
+
}
|
|
974
|
+
var hasRequiredLoader;
|
|
975
|
+
function requireLoader() {
|
|
976
|
+
if (hasRequiredLoader) return loader;
|
|
977
|
+
hasRequiredLoader = 1;
|
|
978
|
+
const common2 = requireCommon();
|
|
979
|
+
const YAMLException2 = requireException();
|
|
980
|
+
const makeSnippet = requireSnippet();
|
|
981
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
982
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
983
|
+
const CONTEXT_FLOW_IN = 1;
|
|
984
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
985
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
986
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
987
|
+
const CHOMPING_CLIP = 1;
|
|
988
|
+
const CHOMPING_STRIP = 2;
|
|
989
|
+
const CHOMPING_KEEP = 3;
|
|
990
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
991
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
992
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
993
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
994
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
995
|
+
function _class(obj) {
|
|
996
|
+
return Object.prototype.toString.call(obj);
|
|
997
|
+
}
|
|
998
|
+
function isEol(c) {
|
|
999
|
+
return c === 10 || c === 13;
|
|
1000
|
+
}
|
|
1001
|
+
function isWhiteSpace(c) {
|
|
1002
|
+
return c === 9 || c === 32;
|
|
1003
|
+
}
|
|
1004
|
+
function isWsOrEol(c) {
|
|
1005
|
+
return c === 9 || c === 32 || c === 10 || c === 13;
|
|
1006
|
+
}
|
|
1007
|
+
function isFlowIndicator(c) {
|
|
1008
|
+
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
1009
|
+
}
|
|
1010
|
+
function fromHexCode(c) {
|
|
1011
|
+
if (c >= 48 && c <= 57) {
|
|
1012
|
+
return c - 48;
|
|
1013
|
+
}
|
|
1014
|
+
const lc = c | 32;
|
|
1015
|
+
if (lc >= 97 && lc <= 102) {
|
|
1016
|
+
return lc - 97 + 10;
|
|
1017
|
+
}
|
|
1018
|
+
return -1;
|
|
1019
|
+
}
|
|
1020
|
+
function escapedHexLen(c) {
|
|
1021
|
+
if (c === 120) {
|
|
1022
|
+
return 2;
|
|
1023
|
+
}
|
|
1024
|
+
if (c === 117) {
|
|
1025
|
+
return 4;
|
|
1026
|
+
}
|
|
1027
|
+
if (c === 85) {
|
|
1028
|
+
return 8;
|
|
1029
|
+
}
|
|
1030
|
+
return 0;
|
|
1031
|
+
}
|
|
1032
|
+
function fromDecimalCode(c) {
|
|
1033
|
+
if (c >= 48 && c <= 57) {
|
|
1034
|
+
return c - 48;
|
|
1035
|
+
}
|
|
1036
|
+
return -1;
|
|
1037
|
+
}
|
|
1038
|
+
function simpleEscapeSequence(c) {
|
|
1039
|
+
switch (c) {
|
|
1040
|
+
case 48:
|
|
1041
|
+
return "\0";
|
|
1042
|
+
case 97:
|
|
1043
|
+
return "\x07";
|
|
1044
|
+
case 98:
|
|
1045
|
+
return "\b";
|
|
1046
|
+
case 116:
|
|
1047
|
+
return " ";
|
|
1048
|
+
case 9:
|
|
1049
|
+
return " ";
|
|
1050
|
+
case 110:
|
|
1051
|
+
return "\n";
|
|
1052
|
+
case 118:
|
|
1053
|
+
return "\v";
|
|
1054
|
+
case 102:
|
|
1055
|
+
return "\f";
|
|
1056
|
+
case 114:
|
|
1057
|
+
return "\r";
|
|
1058
|
+
case 101:
|
|
1059
|
+
return "\x1B";
|
|
1060
|
+
case 32:
|
|
1061
|
+
return " ";
|
|
1062
|
+
case 34:
|
|
1063
|
+
return '"';
|
|
1064
|
+
case 47:
|
|
1065
|
+
return "/";
|
|
1066
|
+
case 92:
|
|
1067
|
+
return "\\";
|
|
1068
|
+
case 78:
|
|
1069
|
+
return "
";
|
|
1070
|
+
case 95:
|
|
1071
|
+
return " ";
|
|
1072
|
+
case 76:
|
|
1073
|
+
return "\u2028";
|
|
1074
|
+
case 80:
|
|
1075
|
+
return "\u2029";
|
|
1076
|
+
default:
|
|
1077
|
+
return "";
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function charFromCodepoint(c) {
|
|
1081
|
+
if (c <= 65535) {
|
|
1082
|
+
return String.fromCharCode(c);
|
|
1083
|
+
}
|
|
1084
|
+
return String.fromCharCode(
|
|
1085
|
+
(c - 65536 >> 10) + 55296,
|
|
1086
|
+
(c - 65536 & 1023) + 56320
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
function setProperty(object, key, value) {
|
|
1090
|
+
if (key === "__proto__") {
|
|
1091
|
+
Object.defineProperty(object, key, {
|
|
1092
|
+
configurable: true,
|
|
1093
|
+
enumerable: true,
|
|
1094
|
+
writable: true,
|
|
1095
|
+
value
|
|
1096
|
+
});
|
|
1097
|
+
} else {
|
|
1098
|
+
object[key] = value;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
const simpleEscapeCheck = new Array(256);
|
|
1102
|
+
const simpleEscapeMap = new Array(256);
|
|
1103
|
+
for (let i = 0; i < 256; i++) {
|
|
1104
|
+
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
1105
|
+
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
1106
|
+
}
|
|
1107
|
+
function State(input, options) {
|
|
1108
|
+
this.input = input;
|
|
1109
|
+
this.filename = options["filename"] || null;
|
|
1110
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
1111
|
+
this.onWarning = options["onWarning"] || null;
|
|
1112
|
+
this.legacy = options["legacy"] || false;
|
|
1113
|
+
this.json = options["json"] || false;
|
|
1114
|
+
this.listener = options["listener"] || null;
|
|
1115
|
+
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
1116
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
1117
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
1118
|
+
this.typeMap = this.schema.compiledTypeMap;
|
|
1119
|
+
this.length = input.length;
|
|
1120
|
+
this.position = 0;
|
|
1121
|
+
this.line = 0;
|
|
1122
|
+
this.lineStart = 0;
|
|
1123
|
+
this.lineIndent = 0;
|
|
1124
|
+
this.depth = 0;
|
|
1125
|
+
this.totalMergeKeys = 0;
|
|
1126
|
+
this.firstTabInLine = -1;
|
|
1127
|
+
this.documents = [];
|
|
1128
|
+
this.anchorMapTransactions = [];
|
|
1129
|
+
}
|
|
1130
|
+
function generateError(state, message) {
|
|
1131
|
+
const mark = {
|
|
1132
|
+
name: state.filename,
|
|
1133
|
+
buffer: state.input.slice(0, -1),
|
|
1134
|
+
// omit trailing \0
|
|
1135
|
+
position: state.position,
|
|
1136
|
+
line: state.line,
|
|
1137
|
+
column: state.position - state.lineStart
|
|
1138
|
+
};
|
|
1139
|
+
mark.snippet = makeSnippet(mark);
|
|
1140
|
+
return new YAMLException2(message, mark);
|
|
1141
|
+
}
|
|
1142
|
+
function throwError(state, message) {
|
|
1143
|
+
throw generateError(state, message);
|
|
1144
|
+
}
|
|
1145
|
+
function throwWarning(state, message) {
|
|
1146
|
+
if (state.onWarning) {
|
|
1147
|
+
state.onWarning.call(null, generateError(state, message));
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
function storeAnchor(state, name, value) {
|
|
1151
|
+
const transactions = state.anchorMapTransactions;
|
|
1152
|
+
if (transactions.length !== 0) {
|
|
1153
|
+
const transaction = transactions[transactions.length - 1];
|
|
1154
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
1155
|
+
transaction[name] = {
|
|
1156
|
+
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
1157
|
+
value: state.anchorMap[name]
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
state.anchorMap[name] = value;
|
|
1162
|
+
}
|
|
1163
|
+
function beginAnchorTransaction(state) {
|
|
1164
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
1165
|
+
}
|
|
1166
|
+
function commitAnchorTransaction(state) {
|
|
1167
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
1168
|
+
const transactions = state.anchorMapTransactions;
|
|
1169
|
+
if (transactions.length === 0) return;
|
|
1170
|
+
const parent = transactions[transactions.length - 1];
|
|
1171
|
+
const names = Object.keys(transaction);
|
|
1172
|
+
for (let index = 0, length = names.length; index < length; index += 1) {
|
|
1173
|
+
const name = names[index];
|
|
1174
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
1175
|
+
parent[name] = transaction[name];
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
function rollbackAnchorTransaction(state) {
|
|
1180
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
1181
|
+
const names = Object.keys(transaction);
|
|
1182
|
+
for (let index = names.length - 1; index >= 0; index -= 1) {
|
|
1183
|
+
const entry = transaction[names[index]];
|
|
1184
|
+
if (entry.existed) {
|
|
1185
|
+
state.anchorMap[names[index]] = entry.value;
|
|
1186
|
+
} else {
|
|
1187
|
+
delete state.anchorMap[names[index]];
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
function snapshotState(state) {
|
|
1192
|
+
return {
|
|
1193
|
+
position: state.position,
|
|
1194
|
+
line: state.line,
|
|
1195
|
+
lineStart: state.lineStart,
|
|
1196
|
+
lineIndent: state.lineIndent,
|
|
1197
|
+
firstTabInLine: state.firstTabInLine,
|
|
1198
|
+
tag: state.tag,
|
|
1199
|
+
anchor: state.anchor,
|
|
1200
|
+
kind: state.kind,
|
|
1201
|
+
result: state.result
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
function restoreState(state, snapshot) {
|
|
1205
|
+
state.position = snapshot.position;
|
|
1206
|
+
state.line = snapshot.line;
|
|
1207
|
+
state.lineStart = snapshot.lineStart;
|
|
1208
|
+
state.lineIndent = snapshot.lineIndent;
|
|
1209
|
+
state.firstTabInLine = snapshot.firstTabInLine;
|
|
1210
|
+
state.tag = snapshot.tag;
|
|
1211
|
+
state.anchor = snapshot.anchor;
|
|
1212
|
+
state.kind = snapshot.kind;
|
|
1213
|
+
state.result = snapshot.result;
|
|
1214
|
+
}
|
|
1215
|
+
const directiveHandlers = {
|
|
1216
|
+
YAML: function handleYamlDirective(state, name, args) {
|
|
1217
|
+
if (state.version !== null) {
|
|
1218
|
+
throwError(state, "duplication of %YAML directive");
|
|
1219
|
+
}
|
|
1220
|
+
if (args.length !== 1) {
|
|
1221
|
+
throwError(state, "YAML directive accepts exactly one argument");
|
|
1222
|
+
}
|
|
1223
|
+
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
1224
|
+
if (match === null) {
|
|
1225
|
+
throwError(state, "ill-formed argument of the YAML directive");
|
|
1226
|
+
}
|
|
1227
|
+
const major = parseInt(match[1], 10);
|
|
1228
|
+
const minor = parseInt(match[2], 10);
|
|
1229
|
+
if (major !== 1) {
|
|
1230
|
+
throwError(state, "unacceptable YAML version of the document");
|
|
1231
|
+
}
|
|
1232
|
+
state.version = args[0];
|
|
1233
|
+
state.checkLineBreaks = minor < 2;
|
|
1234
|
+
if (minor !== 1 && minor !== 2) {
|
|
1235
|
+
throwWarning(state, "unsupported YAML version of the document");
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
TAG: function handleTagDirective(state, name, args) {
|
|
1239
|
+
let prefix;
|
|
1240
|
+
if (args.length !== 2) {
|
|
1241
|
+
throwError(state, "TAG directive accepts exactly two arguments");
|
|
1242
|
+
}
|
|
1243
|
+
const handle = args[0];
|
|
1244
|
+
prefix = args[1];
|
|
1245
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
1246
|
+
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
1247
|
+
}
|
|
1248
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
1249
|
+
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
1250
|
+
}
|
|
1251
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
1252
|
+
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1253
|
+
}
|
|
1254
|
+
try {
|
|
1255
|
+
prefix = decodeURIComponent(prefix);
|
|
1256
|
+
} catch (err) {
|
|
1257
|
+
throwError(state, "tag prefix is malformed: " + prefix);
|
|
1258
|
+
}
|
|
1259
|
+
state.tagMap[handle] = prefix;
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
function captureSegment(state, start, end, checkJson) {
|
|
1263
|
+
if (start < end) {
|
|
1264
|
+
const _result = state.input.slice(start, end);
|
|
1265
|
+
if (checkJson) {
|
|
1266
|
+
for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
1267
|
+
const _character = _result.charCodeAt(_position);
|
|
1268
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
1269
|
+
throwError(state, "expected valid JSON character");
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
1273
|
+
throwError(state, "the stream contains non-printable characters");
|
|
1274
|
+
}
|
|
1275
|
+
state.result += _result;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
function mergeMappings(state, destination, source, overridableKeys) {
|
|
1279
|
+
if (!common2.isObject(source)) {
|
|
1280
|
+
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
1281
|
+
}
|
|
1282
|
+
const sourceKeys = Object.keys(source);
|
|
1283
|
+
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
1284
|
+
const key = sourceKeys[index];
|
|
1285
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
1286
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
1287
|
+
}
|
|
1288
|
+
if (!_hasOwnProperty.call(destination, key)) {
|
|
1289
|
+
setProperty(destination, key, source[key]);
|
|
1290
|
+
overridableKeys[key] = true;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
1295
|
+
if (Array.isArray(keyNode)) {
|
|
1296
|
+
keyNode = Array.prototype.slice.call(keyNode);
|
|
1297
|
+
for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
1298
|
+
if (Array.isArray(keyNode[index])) {
|
|
1299
|
+
throwError(state, "nested arrays are not supported inside keys");
|
|
1300
|
+
}
|
|
1301
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
1302
|
+
keyNode[index] = "[object Object]";
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
1307
|
+
keyNode = "[object Object]";
|
|
1308
|
+
}
|
|
1309
|
+
keyNode = String(keyNode);
|
|
1310
|
+
if (_result === null) {
|
|
1311
|
+
_result = {};
|
|
1312
|
+
}
|
|
1313
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
1314
|
+
if (Array.isArray(valueNode)) {
|
|
1315
|
+
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
1316
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
1317
|
+
}
|
|
1318
|
+
} else {
|
|
1319
|
+
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
1320
|
+
}
|
|
1321
|
+
} else {
|
|
1322
|
+
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
1323
|
+
state.line = startLine || state.line;
|
|
1324
|
+
state.lineStart = startLineStart || state.lineStart;
|
|
1325
|
+
state.position = startPos || state.position;
|
|
1326
|
+
throwError(state, "duplicated mapping key");
|
|
1327
|
+
}
|
|
1328
|
+
setProperty(_result, keyNode, valueNode);
|
|
1329
|
+
delete overridableKeys[keyNode];
|
|
1330
|
+
}
|
|
1331
|
+
return _result;
|
|
1332
|
+
}
|
|
1333
|
+
function readLineBreak(state) {
|
|
1334
|
+
const ch = state.input.charCodeAt(state.position);
|
|
1335
|
+
if (ch === 10) {
|
|
1336
|
+
state.position++;
|
|
1337
|
+
} else if (ch === 13) {
|
|
1338
|
+
state.position++;
|
|
1339
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
1340
|
+
state.position++;
|
|
1341
|
+
}
|
|
1342
|
+
} else {
|
|
1343
|
+
throwError(state, "a line break is expected");
|
|
1344
|
+
}
|
|
1345
|
+
state.line += 1;
|
|
1346
|
+
state.lineStart = state.position;
|
|
1347
|
+
state.firstTabInLine = -1;
|
|
1348
|
+
}
|
|
1349
|
+
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
1350
|
+
let lineBreaks = 0;
|
|
1351
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1352
|
+
while (ch !== 0) {
|
|
1353
|
+
while (isWhiteSpace(ch)) {
|
|
1354
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
1355
|
+
state.firstTabInLine = state.position;
|
|
1356
|
+
}
|
|
1357
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1358
|
+
}
|
|
1359
|
+
if (allowComments && ch === 35) {
|
|
1360
|
+
do {
|
|
1361
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1362
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
1363
|
+
}
|
|
1364
|
+
if (isEol(ch)) {
|
|
1365
|
+
readLineBreak(state);
|
|
1366
|
+
ch = state.input.charCodeAt(state.position);
|
|
1367
|
+
lineBreaks++;
|
|
1368
|
+
state.lineIndent = 0;
|
|
1369
|
+
while (ch === 32) {
|
|
1370
|
+
state.lineIndent++;
|
|
1371
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1372
|
+
}
|
|
1373
|
+
} else {
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
1378
|
+
throwWarning(state, "deficient indentation");
|
|
1379
|
+
}
|
|
1380
|
+
return lineBreaks;
|
|
1381
|
+
}
|
|
1382
|
+
function testDocumentSeparator(state) {
|
|
1383
|
+
let _position = state.position;
|
|
1384
|
+
let ch = state.input.charCodeAt(_position);
|
|
1385
|
+
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
1386
|
+
_position += 3;
|
|
1387
|
+
ch = state.input.charCodeAt(_position);
|
|
1388
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
1389
|
+
return true;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
return false;
|
|
1393
|
+
}
|
|
1394
|
+
function writeFoldedLines(state, count) {
|
|
1395
|
+
if (count === 1) {
|
|
1396
|
+
state.result += " ";
|
|
1397
|
+
} else if (count > 1) {
|
|
1398
|
+
state.result += common2.repeat("\n", count - 1);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
1402
|
+
let captureStart;
|
|
1403
|
+
let captureEnd;
|
|
1404
|
+
let hasPendingContent;
|
|
1405
|
+
let _line;
|
|
1406
|
+
let _lineStart;
|
|
1407
|
+
let _lineIndent;
|
|
1408
|
+
const _kind = state.kind;
|
|
1409
|
+
const _result = state.result;
|
|
1410
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1411
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
|
|
1412
|
+
return false;
|
|
1413
|
+
}
|
|
1414
|
+
if (ch === 63 || ch === 45) {
|
|
1415
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
1416
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
1417
|
+
return false;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
state.kind = "scalar";
|
|
1421
|
+
state.result = "";
|
|
1422
|
+
captureStart = captureEnd = state.position;
|
|
1423
|
+
hasPendingContent = false;
|
|
1424
|
+
while (ch !== 0) {
|
|
1425
|
+
if (ch === 58) {
|
|
1426
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
1427
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
} else if (ch === 35) {
|
|
1431
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
1432
|
+
if (isWsOrEol(preceding)) {
|
|
1433
|
+
break;
|
|
1434
|
+
}
|
|
1435
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
1436
|
+
break;
|
|
1437
|
+
} else if (isEol(ch)) {
|
|
1438
|
+
_line = state.line;
|
|
1439
|
+
_lineStart = state.lineStart;
|
|
1440
|
+
_lineIndent = state.lineIndent;
|
|
1441
|
+
skipSeparationSpace(state, false, -1);
|
|
1442
|
+
if (state.lineIndent >= nodeIndent) {
|
|
1443
|
+
hasPendingContent = true;
|
|
1444
|
+
ch = state.input.charCodeAt(state.position);
|
|
1445
|
+
continue;
|
|
1446
|
+
} else {
|
|
1447
|
+
state.position = captureEnd;
|
|
1448
|
+
state.line = _line;
|
|
1449
|
+
state.lineStart = _lineStart;
|
|
1450
|
+
state.lineIndent = _lineIndent;
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
if (hasPendingContent) {
|
|
1455
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
1456
|
+
writeFoldedLines(state, state.line - _line);
|
|
1457
|
+
captureStart = captureEnd = state.position;
|
|
1458
|
+
hasPendingContent = false;
|
|
1459
|
+
}
|
|
1460
|
+
if (!isWhiteSpace(ch)) {
|
|
1461
|
+
captureEnd = state.position + 1;
|
|
1462
|
+
}
|
|
1463
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1464
|
+
}
|
|
1465
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
1466
|
+
if (state.result) {
|
|
1467
|
+
return true;
|
|
1468
|
+
}
|
|
1469
|
+
state.kind = _kind;
|
|
1470
|
+
state.result = _result;
|
|
1471
|
+
return false;
|
|
1472
|
+
}
|
|
1473
|
+
function readSingleQuotedScalar(state, nodeIndent) {
|
|
1474
|
+
let captureStart;
|
|
1475
|
+
let captureEnd;
|
|
1476
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1477
|
+
if (ch !== 39) {
|
|
1478
|
+
return false;
|
|
1479
|
+
}
|
|
1480
|
+
state.kind = "scalar";
|
|
1481
|
+
state.result = "";
|
|
1482
|
+
state.position++;
|
|
1483
|
+
captureStart = captureEnd = state.position;
|
|
1484
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
1485
|
+
if (ch === 39) {
|
|
1486
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1487
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1488
|
+
if (ch === 39) {
|
|
1489
|
+
captureStart = state.position;
|
|
1490
|
+
state.position++;
|
|
1491
|
+
captureEnd = state.position;
|
|
1492
|
+
} else {
|
|
1493
|
+
return true;
|
|
1494
|
+
}
|
|
1495
|
+
} else if (isEol(ch)) {
|
|
1496
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
1497
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
1498
|
+
captureStart = captureEnd = state.position;
|
|
1499
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
1500
|
+
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
1501
|
+
} else {
|
|
1502
|
+
state.position++;
|
|
1503
|
+
if (!isWhiteSpace(ch)) {
|
|
1504
|
+
captureEnd = state.position;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
1509
|
+
}
|
|
1510
|
+
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
1511
|
+
let captureStart;
|
|
1512
|
+
let captureEnd;
|
|
1513
|
+
let tmp;
|
|
1514
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1515
|
+
if (ch !== 34) {
|
|
1516
|
+
return false;
|
|
1517
|
+
}
|
|
1518
|
+
state.kind = "scalar";
|
|
1519
|
+
state.result = "";
|
|
1520
|
+
state.position++;
|
|
1521
|
+
captureStart = captureEnd = state.position;
|
|
1522
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
1523
|
+
if (ch === 34) {
|
|
1524
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1525
|
+
state.position++;
|
|
1526
|
+
return true;
|
|
1527
|
+
} else if (ch === 92) {
|
|
1528
|
+
captureSegment(state, captureStart, state.position, true);
|
|
1529
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1530
|
+
if (isEol(ch)) {
|
|
1531
|
+
skipSeparationSpace(state, false, nodeIndent);
|
|
1532
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
1533
|
+
state.result += simpleEscapeMap[ch];
|
|
1534
|
+
state.position++;
|
|
1535
|
+
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
1536
|
+
let hexLength = tmp;
|
|
1537
|
+
let hexResult = 0;
|
|
1538
|
+
for (; hexLength > 0; hexLength--) {
|
|
1539
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1540
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
1541
|
+
hexResult = (hexResult << 4) + tmp;
|
|
1542
|
+
} else {
|
|
1543
|
+
throwError(state, "expected hexadecimal character");
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
state.result += charFromCodepoint(hexResult);
|
|
1547
|
+
state.position++;
|
|
1548
|
+
} else {
|
|
1549
|
+
throwError(state, "unknown escape sequence");
|
|
1550
|
+
}
|
|
1551
|
+
captureStart = captureEnd = state.position;
|
|
1552
|
+
} else if (isEol(ch)) {
|
|
1553
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
1554
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
1555
|
+
captureStart = captureEnd = state.position;
|
|
1556
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
1557
|
+
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
1558
|
+
} else {
|
|
1559
|
+
state.position++;
|
|
1560
|
+
if (!isWhiteSpace(ch)) {
|
|
1561
|
+
captureEnd = state.position;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
1566
|
+
}
|
|
1567
|
+
function readFlowCollection(state, nodeIndent) {
|
|
1568
|
+
let readNext = true;
|
|
1569
|
+
let _line;
|
|
1570
|
+
let _lineStart;
|
|
1571
|
+
let _pos;
|
|
1572
|
+
const _tag = state.tag;
|
|
1573
|
+
let _result;
|
|
1574
|
+
const _anchor = state.anchor;
|
|
1575
|
+
let terminator;
|
|
1576
|
+
let isPair;
|
|
1577
|
+
let isExplicitPair;
|
|
1578
|
+
let isMapping;
|
|
1579
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
1580
|
+
let keyNode;
|
|
1581
|
+
let keyTag;
|
|
1582
|
+
let valueNode;
|
|
1583
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1584
|
+
if (ch === 91) {
|
|
1585
|
+
terminator = 93;
|
|
1586
|
+
isMapping = false;
|
|
1587
|
+
_result = [];
|
|
1588
|
+
} else if (ch === 123) {
|
|
1589
|
+
terminator = 125;
|
|
1590
|
+
isMapping = true;
|
|
1591
|
+
_result = {};
|
|
1592
|
+
} else {
|
|
1593
|
+
return false;
|
|
1594
|
+
}
|
|
1595
|
+
if (state.anchor !== null) {
|
|
1596
|
+
storeAnchor(state, state.anchor, _result);
|
|
1597
|
+
}
|
|
1598
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1599
|
+
while (ch !== 0) {
|
|
1600
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1601
|
+
ch = state.input.charCodeAt(state.position);
|
|
1602
|
+
if (ch === terminator) {
|
|
1603
|
+
state.position++;
|
|
1604
|
+
state.tag = _tag;
|
|
1605
|
+
state.anchor = _anchor;
|
|
1606
|
+
state.kind = isMapping ? "mapping" : "sequence";
|
|
1607
|
+
state.result = _result;
|
|
1608
|
+
return true;
|
|
1609
|
+
} else if (!readNext) {
|
|
1610
|
+
throwError(state, "missed comma between flow collection entries");
|
|
1611
|
+
} else if (ch === 44) {
|
|
1612
|
+
throwError(state, "expected the node content, but found ','");
|
|
1613
|
+
}
|
|
1614
|
+
keyTag = keyNode = valueNode = null;
|
|
1615
|
+
isPair = isExplicitPair = false;
|
|
1616
|
+
if (ch === 63) {
|
|
1617
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
1618
|
+
if (isWsOrEol(following)) {
|
|
1619
|
+
isPair = isExplicitPair = true;
|
|
1620
|
+
state.position++;
|
|
1621
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
_line = state.line;
|
|
1625
|
+
_lineStart = state.lineStart;
|
|
1626
|
+
_pos = state.position;
|
|
1627
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
1628
|
+
keyTag = state.tag;
|
|
1629
|
+
keyNode = state.result;
|
|
1630
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1631
|
+
ch = state.input.charCodeAt(state.position);
|
|
1632
|
+
if ((isExplicitPair || state.line === _line) && ch === 58) {
|
|
1633
|
+
isPair = true;
|
|
1634
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1635
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1636
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
1637
|
+
valueNode = state.result;
|
|
1638
|
+
}
|
|
1639
|
+
if (isMapping) {
|
|
1640
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
1641
|
+
} else if (isPair) {
|
|
1642
|
+
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
1643
|
+
} else {
|
|
1644
|
+
_result.push(keyNode);
|
|
1645
|
+
}
|
|
1646
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
1647
|
+
ch = state.input.charCodeAt(state.position);
|
|
1648
|
+
if (ch === 44) {
|
|
1649
|
+
readNext = true;
|
|
1650
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1651
|
+
} else {
|
|
1652
|
+
readNext = false;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
throwError(state, "unexpected end of the stream within a flow collection");
|
|
1656
|
+
}
|
|
1657
|
+
function readBlockScalar(state, nodeIndent) {
|
|
1658
|
+
let folding;
|
|
1659
|
+
let chomping = CHOMPING_CLIP;
|
|
1660
|
+
let didReadContent = false;
|
|
1661
|
+
let detectedIndent = false;
|
|
1662
|
+
let textIndent = nodeIndent;
|
|
1663
|
+
let emptyLines = 0;
|
|
1664
|
+
let atMoreIndented = false;
|
|
1665
|
+
let tmp;
|
|
1666
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1667
|
+
if (ch === 124) {
|
|
1668
|
+
folding = false;
|
|
1669
|
+
} else if (ch === 62) {
|
|
1670
|
+
folding = true;
|
|
1671
|
+
} else {
|
|
1672
|
+
return false;
|
|
1673
|
+
}
|
|
1674
|
+
state.kind = "scalar";
|
|
1675
|
+
state.result = "";
|
|
1676
|
+
while (ch !== 0) {
|
|
1677
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1678
|
+
if (ch === 43 || ch === 45) {
|
|
1679
|
+
if (CHOMPING_CLIP === chomping) {
|
|
1680
|
+
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
1681
|
+
} else {
|
|
1682
|
+
throwError(state, "repeat of a chomping mode identifier");
|
|
1683
|
+
}
|
|
1684
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
1685
|
+
if (tmp === 0) {
|
|
1686
|
+
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
1687
|
+
} else if (!detectedIndent) {
|
|
1688
|
+
textIndent = nodeIndent + tmp - 1;
|
|
1689
|
+
detectedIndent = true;
|
|
1690
|
+
} else {
|
|
1691
|
+
throwError(state, "repeat of an indentation width identifier");
|
|
1692
|
+
}
|
|
1693
|
+
} else {
|
|
1694
|
+
break;
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
if (isWhiteSpace(ch)) {
|
|
1698
|
+
do {
|
|
1699
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1700
|
+
} while (isWhiteSpace(ch));
|
|
1701
|
+
if (ch === 35) {
|
|
1702
|
+
do {
|
|
1703
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1704
|
+
} while (!isEol(ch) && ch !== 0);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
while (ch !== 0) {
|
|
1708
|
+
readLineBreak(state);
|
|
1709
|
+
state.lineIndent = 0;
|
|
1710
|
+
ch = state.input.charCodeAt(state.position);
|
|
1711
|
+
while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
|
|
1712
|
+
state.lineIndent++;
|
|
1713
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1714
|
+
}
|
|
1715
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
1716
|
+
textIndent = state.lineIndent;
|
|
1717
|
+
}
|
|
1718
|
+
if (isEol(ch)) {
|
|
1719
|
+
emptyLines++;
|
|
1720
|
+
continue;
|
|
1721
|
+
}
|
|
1722
|
+
if (!detectedIndent && textIndent === 0) {
|
|
1723
|
+
throwError(state, "missing indentation for block scalar");
|
|
1724
|
+
}
|
|
1725
|
+
if (state.lineIndent < textIndent) {
|
|
1726
|
+
if (chomping === CHOMPING_KEEP) {
|
|
1727
|
+
state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1728
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
1729
|
+
if (didReadContent) {
|
|
1730
|
+
state.result += "\n";
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
break;
|
|
1734
|
+
}
|
|
1735
|
+
if (folding) {
|
|
1736
|
+
if (isWhiteSpace(ch)) {
|
|
1737
|
+
atMoreIndented = true;
|
|
1738
|
+
state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1739
|
+
} else if (atMoreIndented) {
|
|
1740
|
+
atMoreIndented = false;
|
|
1741
|
+
state.result += common2.repeat("\n", emptyLines + 1);
|
|
1742
|
+
} else if (emptyLines === 0) {
|
|
1743
|
+
if (didReadContent) {
|
|
1744
|
+
state.result += " ";
|
|
1745
|
+
}
|
|
1746
|
+
} else {
|
|
1747
|
+
state.result += common2.repeat("\n", emptyLines);
|
|
1748
|
+
}
|
|
1749
|
+
} else {
|
|
1750
|
+
state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
1751
|
+
}
|
|
1752
|
+
didReadContent = true;
|
|
1753
|
+
detectedIndent = true;
|
|
1754
|
+
emptyLines = 0;
|
|
1755
|
+
const captureStart = state.position;
|
|
1756
|
+
while (!isEol(ch) && ch !== 0) {
|
|
1757
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1758
|
+
}
|
|
1759
|
+
captureSegment(state, captureStart, state.position, false);
|
|
1760
|
+
}
|
|
1761
|
+
return true;
|
|
1762
|
+
}
|
|
1763
|
+
function readBlockSequence(state, nodeIndent) {
|
|
1764
|
+
const _tag = state.tag;
|
|
1765
|
+
const _anchor = state.anchor;
|
|
1766
|
+
const _result = [];
|
|
1767
|
+
let detected = false;
|
|
1768
|
+
if (state.firstTabInLine !== -1) return false;
|
|
1769
|
+
if (state.anchor !== null) {
|
|
1770
|
+
storeAnchor(state, state.anchor, _result);
|
|
1771
|
+
}
|
|
1772
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1773
|
+
while (ch !== 0) {
|
|
1774
|
+
if (state.firstTabInLine !== -1) {
|
|
1775
|
+
state.position = state.firstTabInLine;
|
|
1776
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
1777
|
+
}
|
|
1778
|
+
if (ch !== 45) {
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
1782
|
+
if (!isWsOrEol(following)) {
|
|
1783
|
+
break;
|
|
1784
|
+
}
|
|
1785
|
+
detected = true;
|
|
1786
|
+
state.position++;
|
|
1787
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
1788
|
+
if (state.lineIndent <= nodeIndent) {
|
|
1789
|
+
_result.push(null);
|
|
1790
|
+
ch = state.input.charCodeAt(state.position);
|
|
1791
|
+
continue;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
const _line = state.line;
|
|
1795
|
+
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
1796
|
+
_result.push(state.result);
|
|
1797
|
+
skipSeparationSpace(state, true, -1);
|
|
1798
|
+
ch = state.input.charCodeAt(state.position);
|
|
1799
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
1800
|
+
throwError(state, "bad indentation of a sequence entry");
|
|
1801
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
1802
|
+
break;
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
if (detected) {
|
|
1806
|
+
state.tag = _tag;
|
|
1807
|
+
state.anchor = _anchor;
|
|
1808
|
+
state.kind = "sequence";
|
|
1809
|
+
state.result = _result;
|
|
1810
|
+
return true;
|
|
1811
|
+
}
|
|
1812
|
+
return false;
|
|
1813
|
+
}
|
|
1814
|
+
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
1815
|
+
let allowCompact;
|
|
1816
|
+
let _keyLine;
|
|
1817
|
+
let _keyLineStart;
|
|
1818
|
+
let _keyPos;
|
|
1819
|
+
const _tag = state.tag;
|
|
1820
|
+
const _anchor = state.anchor;
|
|
1821
|
+
const _result = {};
|
|
1822
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
1823
|
+
let keyTag = null;
|
|
1824
|
+
let keyNode = null;
|
|
1825
|
+
let valueNode = null;
|
|
1826
|
+
let atExplicitKey = false;
|
|
1827
|
+
let detected = false;
|
|
1828
|
+
if (state.firstTabInLine !== -1) return false;
|
|
1829
|
+
if (state.anchor !== null) {
|
|
1830
|
+
storeAnchor(state, state.anchor, _result);
|
|
1831
|
+
}
|
|
1832
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1833
|
+
while (ch !== 0) {
|
|
1834
|
+
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
1835
|
+
state.position = state.firstTabInLine;
|
|
1836
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
1837
|
+
}
|
|
1838
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
1839
|
+
const _line = state.line;
|
|
1840
|
+
if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
|
|
1841
|
+
if (ch === 63) {
|
|
1842
|
+
if (atExplicitKey) {
|
|
1843
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1844
|
+
keyTag = keyNode = valueNode = null;
|
|
1845
|
+
}
|
|
1846
|
+
detected = true;
|
|
1847
|
+
atExplicitKey = true;
|
|
1848
|
+
allowCompact = true;
|
|
1849
|
+
} else if (atExplicitKey) {
|
|
1850
|
+
atExplicitKey = false;
|
|
1851
|
+
allowCompact = true;
|
|
1852
|
+
} else {
|
|
1853
|
+
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
1854
|
+
}
|
|
1855
|
+
state.position += 1;
|
|
1856
|
+
ch = following;
|
|
1857
|
+
} else {
|
|
1858
|
+
_keyLine = state.line;
|
|
1859
|
+
_keyLineStart = state.lineStart;
|
|
1860
|
+
_keyPos = state.position;
|
|
1861
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
1862
|
+
break;
|
|
1863
|
+
}
|
|
1864
|
+
if (state.line === _line) {
|
|
1865
|
+
ch = state.input.charCodeAt(state.position);
|
|
1866
|
+
while (isWhiteSpace(ch)) {
|
|
1867
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1868
|
+
}
|
|
1869
|
+
if (ch === 58) {
|
|
1870
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1871
|
+
if (!isWsOrEol(ch)) {
|
|
1872
|
+
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
1873
|
+
}
|
|
1874
|
+
if (atExplicitKey) {
|
|
1875
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1876
|
+
keyTag = keyNode = valueNode = null;
|
|
1877
|
+
}
|
|
1878
|
+
detected = true;
|
|
1879
|
+
atExplicitKey = false;
|
|
1880
|
+
allowCompact = false;
|
|
1881
|
+
keyTag = state.tag;
|
|
1882
|
+
keyNode = state.result;
|
|
1883
|
+
} else if (detected) {
|
|
1884
|
+
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
1885
|
+
} else {
|
|
1886
|
+
state.tag = _tag;
|
|
1887
|
+
state.anchor = _anchor;
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
} else if (detected) {
|
|
1891
|
+
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1892
|
+
} else {
|
|
1893
|
+
state.tag = _tag;
|
|
1894
|
+
state.anchor = _anchor;
|
|
1895
|
+
return true;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
if (state.line === _line || state.lineIndent > nodeIndent) {
|
|
1899
|
+
if (atExplicitKey) {
|
|
1900
|
+
_keyLine = state.line;
|
|
1901
|
+
_keyLineStart = state.lineStart;
|
|
1902
|
+
_keyPos = state.position;
|
|
1903
|
+
}
|
|
1904
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
1905
|
+
if (atExplicitKey) {
|
|
1906
|
+
keyNode = state.result;
|
|
1907
|
+
} else {
|
|
1908
|
+
valueNode = state.result;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
if (!atExplicitKey) {
|
|
1912
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
1913
|
+
keyTag = keyNode = valueNode = null;
|
|
1914
|
+
}
|
|
1915
|
+
skipSeparationSpace(state, true, -1);
|
|
1916
|
+
ch = state.input.charCodeAt(state.position);
|
|
1917
|
+
}
|
|
1918
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
1919
|
+
throwError(state, "bad indentation of a mapping entry");
|
|
1920
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
1921
|
+
break;
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
if (atExplicitKey) {
|
|
1925
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
1926
|
+
}
|
|
1927
|
+
if (detected) {
|
|
1928
|
+
state.tag = _tag;
|
|
1929
|
+
state.anchor = _anchor;
|
|
1930
|
+
state.kind = "mapping";
|
|
1931
|
+
state.result = _result;
|
|
1932
|
+
}
|
|
1933
|
+
return detected;
|
|
1934
|
+
}
|
|
1935
|
+
function readTagProperty(state) {
|
|
1936
|
+
let isVerbatim = false;
|
|
1937
|
+
let isNamed = false;
|
|
1938
|
+
let tagHandle;
|
|
1939
|
+
let tagName;
|
|
1940
|
+
let ch = state.input.charCodeAt(state.position);
|
|
1941
|
+
if (ch !== 33) return false;
|
|
1942
|
+
if (state.tag !== null) {
|
|
1943
|
+
throwError(state, "duplication of a tag property");
|
|
1944
|
+
}
|
|
1945
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1946
|
+
if (ch === 60) {
|
|
1947
|
+
isVerbatim = true;
|
|
1948
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1949
|
+
} else if (ch === 33) {
|
|
1950
|
+
isNamed = true;
|
|
1951
|
+
tagHandle = "!!";
|
|
1952
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1953
|
+
} else {
|
|
1954
|
+
tagHandle = "!";
|
|
1955
|
+
}
|
|
1956
|
+
let _position = state.position;
|
|
1957
|
+
if (isVerbatim) {
|
|
1958
|
+
do {
|
|
1959
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1960
|
+
} while (ch !== 0 && ch !== 62);
|
|
1961
|
+
if (state.position < state.length) {
|
|
1962
|
+
tagName = state.input.slice(_position, state.position);
|
|
1963
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1964
|
+
} else {
|
|
1965
|
+
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
1966
|
+
}
|
|
1967
|
+
} else {
|
|
1968
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
1969
|
+
if (ch === 33) {
|
|
1970
|
+
if (!isNamed) {
|
|
1971
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
1972
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
1973
|
+
throwError(state, "named tag handle cannot contain such characters");
|
|
1974
|
+
}
|
|
1975
|
+
isNamed = true;
|
|
1976
|
+
_position = state.position + 1;
|
|
1977
|
+
} else {
|
|
1978
|
+
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
ch = state.input.charCodeAt(++state.position);
|
|
1982
|
+
}
|
|
1983
|
+
tagName = state.input.slice(_position, state.position);
|
|
1984
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
1985
|
+
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
1989
|
+
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
1990
|
+
}
|
|
1991
|
+
try {
|
|
1992
|
+
tagName = decodeURIComponent(tagName);
|
|
1993
|
+
} catch (err) {
|
|
1994
|
+
throwError(state, "tag name is malformed: " + tagName);
|
|
1995
|
+
}
|
|
1996
|
+
if (isVerbatim) {
|
|
1997
|
+
state.tag = tagName;
|
|
1998
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
1999
|
+
state.tag = state.tagMap[tagHandle] + tagName;
|
|
2000
|
+
} else if (tagHandle === "!") {
|
|
2001
|
+
state.tag = "!" + tagName;
|
|
2002
|
+
} else if (tagHandle === "!!") {
|
|
2003
|
+
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
2004
|
+
} else {
|
|
2005
|
+
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
2006
|
+
}
|
|
2007
|
+
return true;
|
|
2008
|
+
}
|
|
2009
|
+
function readAnchorProperty(state) {
|
|
2010
|
+
let ch = state.input.charCodeAt(state.position);
|
|
2011
|
+
if (ch !== 38) return false;
|
|
2012
|
+
if (state.anchor !== null) {
|
|
2013
|
+
throwError(state, "duplication of an anchor property");
|
|
2014
|
+
}
|
|
2015
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2016
|
+
const _position = state.position;
|
|
2017
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
2018
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2019
|
+
}
|
|
2020
|
+
if (state.position === _position) {
|
|
2021
|
+
throwError(state, "name of an anchor node must contain at least one character");
|
|
2022
|
+
}
|
|
2023
|
+
state.anchor = state.input.slice(_position, state.position);
|
|
2024
|
+
return true;
|
|
2025
|
+
}
|
|
2026
|
+
function readAlias(state) {
|
|
2027
|
+
let ch = state.input.charCodeAt(state.position);
|
|
2028
|
+
if (ch !== 42) return false;
|
|
2029
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2030
|
+
const _position = state.position;
|
|
2031
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
2032
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2033
|
+
}
|
|
2034
|
+
if (state.position === _position) {
|
|
2035
|
+
throwError(state, "name of an alias node must contain at least one character");
|
|
2036
|
+
}
|
|
2037
|
+
const alias = state.input.slice(_position, state.position);
|
|
2038
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
2039
|
+
throwError(state, 'unidentified alias "' + alias + '"');
|
|
2040
|
+
}
|
|
2041
|
+
state.result = state.anchorMap[alias];
|
|
2042
|
+
skipSeparationSpace(state, true, -1);
|
|
2043
|
+
return true;
|
|
2044
|
+
}
|
|
2045
|
+
function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
|
|
2046
|
+
const fallbackState = snapshotState(state);
|
|
2047
|
+
beginAnchorTransaction(state);
|
|
2048
|
+
restoreState(state, propertyStart);
|
|
2049
|
+
state.tag = null;
|
|
2050
|
+
state.anchor = null;
|
|
2051
|
+
state.kind = null;
|
|
2052
|
+
state.result = null;
|
|
2053
|
+
if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
|
|
2054
|
+
commitAnchorTransaction(state);
|
|
2055
|
+
return true;
|
|
2056
|
+
}
|
|
2057
|
+
rollbackAnchorTransaction(state);
|
|
2058
|
+
restoreState(state, fallbackState);
|
|
2059
|
+
return false;
|
|
2060
|
+
}
|
|
2061
|
+
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
2062
|
+
let allowBlockScalars;
|
|
2063
|
+
let allowBlockCollections;
|
|
2064
|
+
let indentStatus = 1;
|
|
2065
|
+
let atNewLine = false;
|
|
2066
|
+
let hasContent = false;
|
|
2067
|
+
let propertyStart = null;
|
|
2068
|
+
let type2;
|
|
2069
|
+
let flowIndent;
|
|
2070
|
+
let blockIndent;
|
|
2071
|
+
if (state.depth >= state.maxDepth) {
|
|
2072
|
+
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
2073
|
+
}
|
|
2074
|
+
state.depth += 1;
|
|
2075
|
+
if (state.listener !== null) {
|
|
2076
|
+
state.listener("open", state);
|
|
2077
|
+
}
|
|
2078
|
+
state.tag = null;
|
|
2079
|
+
state.anchor = null;
|
|
2080
|
+
state.kind = null;
|
|
2081
|
+
state.result = null;
|
|
2082
|
+
const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
2083
|
+
if (allowToSeek) {
|
|
2084
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
2085
|
+
atNewLine = true;
|
|
2086
|
+
if (state.lineIndent > parentIndent) {
|
|
2087
|
+
indentStatus = 1;
|
|
2088
|
+
} else if (state.lineIndent === parentIndent) {
|
|
2089
|
+
indentStatus = 0;
|
|
2090
|
+
} else if (state.lineIndent < parentIndent) {
|
|
2091
|
+
indentStatus = -1;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
if (indentStatus === 1) {
|
|
2096
|
+
while (true) {
|
|
2097
|
+
const ch = state.input.charCodeAt(state.position);
|
|
2098
|
+
const propertyState = snapshotState(state);
|
|
2099
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
2100
|
+
break;
|
|
2101
|
+
}
|
|
2102
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
2103
|
+
break;
|
|
2104
|
+
}
|
|
2105
|
+
if (propertyStart === null) {
|
|
2106
|
+
propertyStart = propertyState;
|
|
2107
|
+
}
|
|
2108
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
2109
|
+
atNewLine = true;
|
|
2110
|
+
allowBlockCollections = allowBlockStyles;
|
|
2111
|
+
if (state.lineIndent > parentIndent) {
|
|
2112
|
+
indentStatus = 1;
|
|
2113
|
+
} else if (state.lineIndent === parentIndent) {
|
|
2114
|
+
indentStatus = 0;
|
|
2115
|
+
} else if (state.lineIndent < parentIndent) {
|
|
2116
|
+
indentStatus = -1;
|
|
2117
|
+
}
|
|
2118
|
+
} else {
|
|
2119
|
+
allowBlockCollections = false;
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
if (allowBlockCollections) {
|
|
2124
|
+
allowBlockCollections = atNewLine || allowCompact;
|
|
2125
|
+
}
|
|
2126
|
+
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
2127
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
2128
|
+
flowIndent = parentIndent;
|
|
2129
|
+
} else {
|
|
2130
|
+
flowIndent = parentIndent + 1;
|
|
2131
|
+
}
|
|
2132
|
+
blockIndent = state.position - state.lineStart;
|
|
2133
|
+
if (indentStatus === 1) {
|
|
2134
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
2135
|
+
hasContent = true;
|
|
2136
|
+
} else {
|
|
2137
|
+
const ch = state.input.charCodeAt(state.position);
|
|
2138
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(
|
|
2139
|
+
state,
|
|
2140
|
+
propertyStart,
|
|
2141
|
+
propertyStart.position - propertyStart.lineStart,
|
|
2142
|
+
flowIndent
|
|
2143
|
+
)) {
|
|
2144
|
+
hasContent = true;
|
|
2145
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
2146
|
+
hasContent = true;
|
|
2147
|
+
} else if (readAlias(state)) {
|
|
2148
|
+
hasContent = true;
|
|
2149
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
2150
|
+
throwError(state, "alias node should not have any properties");
|
|
2151
|
+
}
|
|
2152
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
2153
|
+
hasContent = true;
|
|
2154
|
+
if (state.tag === null) {
|
|
2155
|
+
state.tag = "?";
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
if (state.anchor !== null) {
|
|
2159
|
+
storeAnchor(state, state.anchor, state.result);
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
} else if (indentStatus === 0) {
|
|
2163
|
+
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
if (state.tag === null) {
|
|
2167
|
+
if (state.anchor !== null) {
|
|
2168
|
+
storeAnchor(state, state.anchor, state.result);
|
|
2169
|
+
}
|
|
2170
|
+
} else if (state.tag === "?") {
|
|
2171
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
2172
|
+
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
2173
|
+
}
|
|
2174
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
2175
|
+
type2 = state.implicitTypes[typeIndex];
|
|
2176
|
+
if (type2.resolve(state.result)) {
|
|
2177
|
+
state.result = type2.construct(state.result);
|
|
2178
|
+
state.tag = type2.tag;
|
|
2179
|
+
if (state.anchor !== null) {
|
|
2180
|
+
storeAnchor(state, state.anchor, state.result);
|
|
2181
|
+
}
|
|
2182
|
+
break;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
} else if (state.tag !== "!") {
|
|
2186
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
2187
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
2188
|
+
} else {
|
|
2189
|
+
type2 = null;
|
|
2190
|
+
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
2191
|
+
for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
2192
|
+
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
2193
|
+
type2 = typeList[typeIndex];
|
|
2194
|
+
break;
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
if (!type2) {
|
|
2199
|
+
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
2200
|
+
}
|
|
2201
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
2202
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
2203
|
+
}
|
|
2204
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
2205
|
+
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
2206
|
+
} else {
|
|
2207
|
+
state.result = type2.construct(state.result, state.tag);
|
|
2208
|
+
if (state.anchor !== null) {
|
|
2209
|
+
storeAnchor(state, state.anchor, state.result);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
if (state.listener !== null) {
|
|
2214
|
+
state.listener("close", state);
|
|
2215
|
+
}
|
|
2216
|
+
state.depth -= 1;
|
|
2217
|
+
return state.tag !== null || state.anchor !== null || hasContent;
|
|
2218
|
+
}
|
|
2219
|
+
function readDocument(state) {
|
|
2220
|
+
const documentStart = state.position;
|
|
2221
|
+
let hasDirectives = false;
|
|
2222
|
+
let ch;
|
|
2223
|
+
state.version = null;
|
|
2224
|
+
state.checkLineBreaks = state.legacy;
|
|
2225
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
2226
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
2227
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
2228
|
+
skipSeparationSpace(state, true, -1);
|
|
2229
|
+
ch = state.input.charCodeAt(state.position);
|
|
2230
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
2231
|
+
break;
|
|
2232
|
+
}
|
|
2233
|
+
hasDirectives = true;
|
|
2234
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2235
|
+
let _position = state.position;
|
|
2236
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
2237
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2238
|
+
}
|
|
2239
|
+
const directiveName = state.input.slice(_position, state.position);
|
|
2240
|
+
const directiveArgs = [];
|
|
2241
|
+
if (directiveName.length < 1) {
|
|
2242
|
+
throwError(state, "directive name must not be less than one character in length");
|
|
2243
|
+
}
|
|
2244
|
+
while (ch !== 0) {
|
|
2245
|
+
while (isWhiteSpace(ch)) {
|
|
2246
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2247
|
+
}
|
|
2248
|
+
if (ch === 35) {
|
|
2249
|
+
do {
|
|
2250
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2251
|
+
} while (ch !== 0 && !isEol(ch));
|
|
2252
|
+
break;
|
|
2253
|
+
}
|
|
2254
|
+
if (isEol(ch)) break;
|
|
2255
|
+
_position = state.position;
|
|
2256
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
2257
|
+
ch = state.input.charCodeAt(++state.position);
|
|
2258
|
+
}
|
|
2259
|
+
directiveArgs.push(state.input.slice(_position, state.position));
|
|
2260
|
+
}
|
|
2261
|
+
if (ch !== 0) readLineBreak(state);
|
|
2262
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
2263
|
+
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
2264
|
+
} else {
|
|
2265
|
+
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
skipSeparationSpace(state, true, -1);
|
|
2269
|
+
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
2270
|
+
state.position += 3;
|
|
2271
|
+
skipSeparationSpace(state, true, -1);
|
|
2272
|
+
} else if (hasDirectives) {
|
|
2273
|
+
throwError(state, "directives end mark is expected");
|
|
2274
|
+
}
|
|
2275
|
+
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
2276
|
+
skipSeparationSpace(state, true, -1);
|
|
2277
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
2278
|
+
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
2279
|
+
}
|
|
2280
|
+
state.documents.push(state.result);
|
|
2281
|
+
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
2282
|
+
if (state.input.charCodeAt(state.position) === 46) {
|
|
2283
|
+
state.position += 3;
|
|
2284
|
+
skipSeparationSpace(state, true, -1);
|
|
2285
|
+
}
|
|
2286
|
+
return;
|
|
2287
|
+
}
|
|
2288
|
+
if (state.position < state.length - 1) {
|
|
2289
|
+
throwError(state, "end of the stream or a document separator is expected");
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
function loadDocuments(input, options) {
|
|
2293
|
+
input = String(input);
|
|
2294
|
+
options = options || {};
|
|
2295
|
+
if (input.length !== 0) {
|
|
2296
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
2297
|
+
input += "\n";
|
|
2298
|
+
}
|
|
2299
|
+
if (input.charCodeAt(0) === 65279) {
|
|
2300
|
+
input = input.slice(1);
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
const state = new State(input, options);
|
|
2304
|
+
const nullpos = input.indexOf("\0");
|
|
2305
|
+
if (nullpos !== -1) {
|
|
2306
|
+
state.position = nullpos;
|
|
2307
|
+
throwError(state, "null byte is not allowed in input");
|
|
2308
|
+
}
|
|
2309
|
+
state.input += "\0";
|
|
2310
|
+
while (state.input.charCodeAt(state.position) === 32) {
|
|
2311
|
+
state.lineIndent += 1;
|
|
2312
|
+
state.position += 1;
|
|
2313
|
+
}
|
|
2314
|
+
while (state.position < state.length - 1) {
|
|
2315
|
+
readDocument(state);
|
|
2316
|
+
}
|
|
2317
|
+
return state.documents;
|
|
2318
|
+
}
|
|
2319
|
+
function loadAll2(input, iterator, options) {
|
|
2320
|
+
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
2321
|
+
options = iterator;
|
|
2322
|
+
iterator = null;
|
|
2323
|
+
}
|
|
2324
|
+
const documents = loadDocuments(input, options);
|
|
2325
|
+
if (typeof iterator !== "function") {
|
|
2326
|
+
return documents;
|
|
2327
|
+
}
|
|
2328
|
+
for (let index = 0, length = documents.length; index < length; index += 1) {
|
|
2329
|
+
iterator(documents[index]);
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
function load2(input, options) {
|
|
2333
|
+
const documents = loadDocuments(input, options);
|
|
2334
|
+
if (documents.length === 0) {
|
|
2335
|
+
return void 0;
|
|
2336
|
+
} else if (documents.length === 1) {
|
|
2337
|
+
return documents[0];
|
|
2338
|
+
}
|
|
2339
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
2340
|
+
}
|
|
2341
|
+
loader.loadAll = loadAll2;
|
|
2342
|
+
loader.load = load2;
|
|
2343
|
+
return loader;
|
|
2344
|
+
}
|
|
2345
|
+
var dumper = {};
|
|
2346
|
+
var hasRequiredDumper;
|
|
2347
|
+
function requireDumper() {
|
|
2348
|
+
if (hasRequiredDumper) return dumper;
|
|
2349
|
+
hasRequiredDumper = 1;
|
|
2350
|
+
const common2 = requireCommon();
|
|
2351
|
+
const YAMLException2 = requireException();
|
|
2352
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
2353
|
+
const _toString = Object.prototype.toString;
|
|
2354
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2355
|
+
const CHAR_BOM = 65279;
|
|
2356
|
+
const CHAR_TAB = 9;
|
|
2357
|
+
const CHAR_LINE_FEED = 10;
|
|
2358
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
2359
|
+
const CHAR_SPACE = 32;
|
|
2360
|
+
const CHAR_EXCLAMATION = 33;
|
|
2361
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
2362
|
+
const CHAR_SHARP = 35;
|
|
2363
|
+
const CHAR_PERCENT = 37;
|
|
2364
|
+
const CHAR_AMPERSAND = 38;
|
|
2365
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
2366
|
+
const CHAR_ASTERISK = 42;
|
|
2367
|
+
const CHAR_COMMA = 44;
|
|
2368
|
+
const CHAR_MINUS = 45;
|
|
2369
|
+
const CHAR_COLON = 58;
|
|
2370
|
+
const CHAR_EQUALS = 61;
|
|
2371
|
+
const CHAR_GREATER_THAN = 62;
|
|
2372
|
+
const CHAR_QUESTION = 63;
|
|
2373
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
2374
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
2375
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
2376
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
2377
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
2378
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
2379
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
2380
|
+
const ESCAPE_SEQUENCES = {};
|
|
2381
|
+
ESCAPE_SEQUENCES[0] = "\\0";
|
|
2382
|
+
ESCAPE_SEQUENCES[7] = "\\a";
|
|
2383
|
+
ESCAPE_SEQUENCES[8] = "\\b";
|
|
2384
|
+
ESCAPE_SEQUENCES[9] = "\\t";
|
|
2385
|
+
ESCAPE_SEQUENCES[10] = "\\n";
|
|
2386
|
+
ESCAPE_SEQUENCES[11] = "\\v";
|
|
2387
|
+
ESCAPE_SEQUENCES[12] = "\\f";
|
|
2388
|
+
ESCAPE_SEQUENCES[13] = "\\r";
|
|
2389
|
+
ESCAPE_SEQUENCES[27] = "\\e";
|
|
2390
|
+
ESCAPE_SEQUENCES[34] = '\\"';
|
|
2391
|
+
ESCAPE_SEQUENCES[92] = "\\\\";
|
|
2392
|
+
ESCAPE_SEQUENCES[133] = "\\N";
|
|
2393
|
+
ESCAPE_SEQUENCES[160] = "\\_";
|
|
2394
|
+
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
2395
|
+
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
2396
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
2397
|
+
"y",
|
|
2398
|
+
"Y",
|
|
2399
|
+
"yes",
|
|
2400
|
+
"Yes",
|
|
2401
|
+
"YES",
|
|
2402
|
+
"on",
|
|
2403
|
+
"On",
|
|
2404
|
+
"ON",
|
|
2405
|
+
"n",
|
|
2406
|
+
"N",
|
|
2407
|
+
"no",
|
|
2408
|
+
"No",
|
|
2409
|
+
"NO",
|
|
2410
|
+
"off",
|
|
2411
|
+
"Off",
|
|
2412
|
+
"OFF"
|
|
2413
|
+
];
|
|
2414
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2415
|
+
function compileStyleMap(schema2, map2) {
|
|
2416
|
+
if (map2 === null) return {};
|
|
2417
|
+
const result = {};
|
|
2418
|
+
const keys = Object.keys(map2);
|
|
2419
|
+
for (let index = 0, length = keys.length; index < length; index += 1) {
|
|
2420
|
+
let tag = keys[index];
|
|
2421
|
+
let style = String(map2[tag]);
|
|
2422
|
+
if (tag.slice(0, 2) === "!!") {
|
|
2423
|
+
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
2424
|
+
}
|
|
2425
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
2426
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
2427
|
+
style = type2.styleAliases[style];
|
|
2428
|
+
}
|
|
2429
|
+
result[tag] = style;
|
|
2430
|
+
}
|
|
2431
|
+
return result;
|
|
2432
|
+
}
|
|
2433
|
+
function encodeHex(character) {
|
|
2434
|
+
let handle;
|
|
2435
|
+
let length;
|
|
2436
|
+
const string = character.toString(16).toUpperCase();
|
|
2437
|
+
if (character <= 255) {
|
|
2438
|
+
handle = "x";
|
|
2439
|
+
length = 2;
|
|
2440
|
+
} else if (character <= 65535) {
|
|
2441
|
+
handle = "u";
|
|
2442
|
+
length = 4;
|
|
2443
|
+
} else if (character <= 4294967295) {
|
|
2444
|
+
handle = "U";
|
|
2445
|
+
length = 8;
|
|
2446
|
+
} else {
|
|
2447
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2448
|
+
}
|
|
2449
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
2450
|
+
}
|
|
2451
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
2452
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
2453
|
+
function State(options) {
|
|
2454
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
2455
|
+
this.indent = Math.max(1, options["indent"] || 2);
|
|
2456
|
+
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
2457
|
+
this.skipInvalid = options["skipInvalid"] || false;
|
|
2458
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
2459
|
+
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
2460
|
+
this.sortKeys = options["sortKeys"] || false;
|
|
2461
|
+
this.lineWidth = options["lineWidth"] || 80;
|
|
2462
|
+
this.noRefs = options["noRefs"] || false;
|
|
2463
|
+
this.noCompatMode = options["noCompatMode"] || false;
|
|
2464
|
+
this.condenseFlow = options["condenseFlow"] || false;
|
|
2465
|
+
this.quotingType = options["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
|
|
2466
|
+
this.forceQuotes = options["forceQuotes"] || false;
|
|
2467
|
+
this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null;
|
|
2468
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
2469
|
+
this.explicitTypes = this.schema.compiledExplicit;
|
|
2470
|
+
this.tag = null;
|
|
2471
|
+
this.result = "";
|
|
2472
|
+
this.duplicates = [];
|
|
2473
|
+
this.usedDuplicates = null;
|
|
2474
|
+
}
|
|
2475
|
+
function indentString(string, spaces) {
|
|
2476
|
+
const ind = common2.repeat(" ", spaces);
|
|
2477
|
+
let position = 0;
|
|
2478
|
+
let result = "";
|
|
2479
|
+
const length = string.length;
|
|
2480
|
+
while (position < length) {
|
|
2481
|
+
let line;
|
|
2482
|
+
const next = string.indexOf("\n", position);
|
|
2483
|
+
if (next === -1) {
|
|
2484
|
+
line = string.slice(position);
|
|
2485
|
+
position = length;
|
|
2486
|
+
} else {
|
|
2487
|
+
line = string.slice(position, next + 1);
|
|
2488
|
+
position = next + 1;
|
|
2489
|
+
}
|
|
2490
|
+
if (line.length && line !== "\n") result += ind;
|
|
2491
|
+
result += line;
|
|
2492
|
+
}
|
|
2493
|
+
return result;
|
|
2494
|
+
}
|
|
2495
|
+
function generateNextLine(state, level) {
|
|
2496
|
+
return "\n" + common2.repeat(" ", state.indent * level);
|
|
2497
|
+
}
|
|
2498
|
+
function testImplicitResolving(state, str2) {
|
|
2499
|
+
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
2500
|
+
const type2 = state.implicitTypes[index];
|
|
2501
|
+
if (type2.resolve(str2)) {
|
|
2502
|
+
return true;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
return false;
|
|
2506
|
+
}
|
|
2507
|
+
function isWhitespace(c) {
|
|
2508
|
+
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
2509
|
+
}
|
|
2510
|
+
function isPrintable(c) {
|
|
2511
|
+
return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
|
|
2512
|
+
}
|
|
2513
|
+
function isNsCharOrWhitespace(c) {
|
|
2514
|
+
return isPrintable(c) && c !== CHAR_BOM && // - b-char
|
|
2515
|
+
c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
2516
|
+
}
|
|
2517
|
+
function isPlainSafe(c, prev, inblock) {
|
|
2518
|
+
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
2519
|
+
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
2520
|
+
return (
|
|
2521
|
+
// ns-plain-safe
|
|
2522
|
+
(inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && // - c-flow-indicator
|
|
2523
|
+
c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && // ns-plain-char
|
|
2524
|
+
c !== CHAR_SHARP && // false on '#'
|
|
2525
|
+
!(prev === CHAR_COLON && !cIsNsChar) || // false on ': '
|
|
2526
|
+
isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || // change to true on '[^ ]#'
|
|
2527
|
+
prev === CHAR_COLON && cIsNsChar
|
|
2528
|
+
);
|
|
2529
|
+
}
|
|
2530
|
+
function isPlainSafeFirst(c) {
|
|
2531
|
+
return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && // - s-white
|
|
2532
|
+
// - (c-indicator ::=
|
|
2533
|
+
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
2534
|
+
c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
2535
|
+
c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && // | “%” | “@” | “`”)
|
|
2536
|
+
c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
|
|
2537
|
+
}
|
|
2538
|
+
function isPlainSafeLast(c) {
|
|
2539
|
+
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
2540
|
+
}
|
|
2541
|
+
function codePointAt(string, pos) {
|
|
2542
|
+
const first = string.charCodeAt(pos);
|
|
2543
|
+
let second;
|
|
2544
|
+
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
2545
|
+
second = string.charCodeAt(pos + 1);
|
|
2546
|
+
if (second >= 56320 && second <= 57343) {
|
|
2547
|
+
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
return first;
|
|
2551
|
+
}
|
|
2552
|
+
function needIndentIndicator(string) {
|
|
2553
|
+
const leadingSpaceRe = /^\n* /;
|
|
2554
|
+
return leadingSpaceRe.test(string);
|
|
2555
|
+
}
|
|
2556
|
+
const STYLE_PLAIN = 1;
|
|
2557
|
+
const STYLE_SINGLE = 2;
|
|
2558
|
+
const STYLE_LITERAL = 3;
|
|
2559
|
+
const STYLE_FOLDED = 4;
|
|
2560
|
+
const STYLE_DOUBLE = 5;
|
|
2561
|
+
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
2562
|
+
let i;
|
|
2563
|
+
let char = 0;
|
|
2564
|
+
let prevChar = null;
|
|
2565
|
+
let hasLineBreak = false;
|
|
2566
|
+
let hasFoldableLine = false;
|
|
2567
|
+
const shouldTrackWidth = lineWidth !== -1;
|
|
2568
|
+
let previousLineBreak = -1;
|
|
2569
|
+
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
2570
|
+
if (singleLineOnly || forceQuotes) {
|
|
2571
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2572
|
+
char = codePointAt(string, i);
|
|
2573
|
+
if (!isPrintable(char)) {
|
|
2574
|
+
return STYLE_DOUBLE;
|
|
2575
|
+
}
|
|
2576
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
2577
|
+
prevChar = char;
|
|
2578
|
+
}
|
|
2579
|
+
} else {
|
|
2580
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2581
|
+
char = codePointAt(string, i);
|
|
2582
|
+
if (char === CHAR_LINE_FEED) {
|
|
2583
|
+
hasLineBreak = true;
|
|
2584
|
+
if (shouldTrackWidth) {
|
|
2585
|
+
hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
|
|
2586
|
+
i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
2587
|
+
previousLineBreak = i;
|
|
2588
|
+
}
|
|
2589
|
+
} else if (!isPrintable(char)) {
|
|
2590
|
+
return STYLE_DOUBLE;
|
|
2591
|
+
}
|
|
2592
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
2593
|
+
prevChar = char;
|
|
2594
|
+
}
|
|
2595
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
2596
|
+
}
|
|
2597
|
+
if (!hasLineBreak && !hasFoldableLine) {
|
|
2598
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
2599
|
+
return STYLE_PLAIN;
|
|
2600
|
+
}
|
|
2601
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
2602
|
+
}
|
|
2603
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
2604
|
+
return STYLE_DOUBLE;
|
|
2605
|
+
}
|
|
2606
|
+
if (!forceQuotes) {
|
|
2607
|
+
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
2608
|
+
}
|
|
2609
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
2610
|
+
}
|
|
2611
|
+
function writeScalar(state, string, level, iskey, inblock) {
|
|
2612
|
+
state.dump = (function() {
|
|
2613
|
+
if (string.length === 0) {
|
|
2614
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
2615
|
+
}
|
|
2616
|
+
if (!state.noCompatMode) {
|
|
2617
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
2618
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
const indent = state.indent * Math.max(1, level);
|
|
2622
|
+
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
2623
|
+
const singleLineOnly = iskey || // No block styles in flow mode.
|
|
2624
|
+
state.flowLevel > -1 && level >= state.flowLevel;
|
|
2625
|
+
function testAmbiguity(string2) {
|
|
2626
|
+
return testImplicitResolving(state, string2);
|
|
2627
|
+
}
|
|
2628
|
+
switch (chooseScalarStyle(
|
|
2629
|
+
string,
|
|
2630
|
+
singleLineOnly,
|
|
2631
|
+
state.indent,
|
|
2632
|
+
lineWidth,
|
|
2633
|
+
testAmbiguity,
|
|
2634
|
+
state.quotingType,
|
|
2635
|
+
state.forceQuotes && !iskey,
|
|
2636
|
+
inblock
|
|
2637
|
+
)) {
|
|
2638
|
+
case STYLE_PLAIN:
|
|
2639
|
+
return string;
|
|
2640
|
+
case STYLE_SINGLE:
|
|
2641
|
+
return "'" + string.replace(/'/g, "''") + "'";
|
|
2642
|
+
case STYLE_LITERAL:
|
|
2643
|
+
return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
|
|
2644
|
+
case STYLE_FOLDED:
|
|
2645
|
+
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
2646
|
+
case STYLE_DOUBLE:
|
|
2647
|
+
return '"' + escapeString(string) + '"';
|
|
2648
|
+
default:
|
|
2649
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
2650
|
+
}
|
|
2651
|
+
})();
|
|
2652
|
+
}
|
|
2653
|
+
function blockHeader(string, indentPerLevel) {
|
|
2654
|
+
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
2655
|
+
const clip = string[string.length - 1] === "\n";
|
|
2656
|
+
const keep = clip && (string[string.length - 2] === "\n" || string === "\n");
|
|
2657
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
2658
|
+
return indentIndicator + chomp + "\n";
|
|
2659
|
+
}
|
|
2660
|
+
function dropEndingNewline(string) {
|
|
2661
|
+
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
2662
|
+
}
|
|
2663
|
+
function foldString(string, width) {
|
|
2664
|
+
const lineRe = /(\n+)([^\n]*)/g;
|
|
2665
|
+
let result = (function() {
|
|
2666
|
+
let nextLF = string.indexOf("\n");
|
|
2667
|
+
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
2668
|
+
lineRe.lastIndex = nextLF;
|
|
2669
|
+
return foldLine(string.slice(0, nextLF), width);
|
|
2670
|
+
})();
|
|
2671
|
+
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
2672
|
+
let moreIndented;
|
|
2673
|
+
let match;
|
|
2674
|
+
while (match = lineRe.exec(string)) {
|
|
2675
|
+
const prefix = match[1];
|
|
2676
|
+
const line = match[2];
|
|
2677
|
+
moreIndented = line[0] === " ";
|
|
2678
|
+
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
2679
|
+
prevMoreIndented = moreIndented;
|
|
2680
|
+
}
|
|
2681
|
+
return result;
|
|
2682
|
+
}
|
|
2683
|
+
function foldLine(line, width) {
|
|
2684
|
+
if (line === "" || line[0] === " ") return line;
|
|
2685
|
+
const breakRe = / [^ ]/g;
|
|
2686
|
+
let match;
|
|
2687
|
+
let start = 0;
|
|
2688
|
+
let end;
|
|
2689
|
+
let curr = 0;
|
|
2690
|
+
let next = 0;
|
|
2691
|
+
let result = "";
|
|
2692
|
+
while (match = breakRe.exec(line)) {
|
|
2693
|
+
next = match.index;
|
|
2694
|
+
if (next - start > width) {
|
|
2695
|
+
end = curr > start ? curr : next;
|
|
2696
|
+
result += "\n" + line.slice(start, end);
|
|
2697
|
+
start = end + 1;
|
|
2698
|
+
}
|
|
2699
|
+
curr = next;
|
|
2700
|
+
}
|
|
2701
|
+
result += "\n";
|
|
2702
|
+
if (line.length - start > width && curr > start) {
|
|
2703
|
+
result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
|
|
2704
|
+
} else {
|
|
2705
|
+
result += line.slice(start);
|
|
2706
|
+
}
|
|
2707
|
+
return result.slice(1);
|
|
2708
|
+
}
|
|
2709
|
+
function escapeString(string) {
|
|
2710
|
+
let result = "";
|
|
2711
|
+
let char = 0;
|
|
2712
|
+
for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2713
|
+
char = codePointAt(string, i);
|
|
2714
|
+
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
2715
|
+
if (!escapeSeq && isPrintable(char)) {
|
|
2716
|
+
result += string[i];
|
|
2717
|
+
if (char >= 65536) result += string[i + 1];
|
|
2718
|
+
} else {
|
|
2719
|
+
result += escapeSeq || encodeHex(char);
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
return result;
|
|
2723
|
+
}
|
|
2724
|
+
function writeFlowSequence(state, level, object) {
|
|
2725
|
+
let _result = "";
|
|
2726
|
+
const _tag = state.tag;
|
|
2727
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
2728
|
+
let value = object[index];
|
|
2729
|
+
if (state.replacer) {
|
|
2730
|
+
value = state.replacer.call(object, String(index), value);
|
|
2731
|
+
}
|
|
2732
|
+
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
2733
|
+
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
2734
|
+
_result += state.dump;
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
state.tag = _tag;
|
|
2738
|
+
state.dump = "[" + _result + "]";
|
|
2739
|
+
}
|
|
2740
|
+
function writeBlockSequence(state, level, object, compact) {
|
|
2741
|
+
let _result = "";
|
|
2742
|
+
const _tag = state.tag;
|
|
2743
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
2744
|
+
let value = object[index];
|
|
2745
|
+
if (state.replacer) {
|
|
2746
|
+
value = state.replacer.call(object, String(index), value);
|
|
2747
|
+
}
|
|
2748
|
+
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
2749
|
+
if (!compact || _result !== "") {
|
|
2750
|
+
_result += generateNextLine(state, level);
|
|
2751
|
+
}
|
|
2752
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2753
|
+
_result += "-";
|
|
2754
|
+
} else {
|
|
2755
|
+
_result += "- ";
|
|
2756
|
+
}
|
|
2757
|
+
_result += state.dump;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
state.tag = _tag;
|
|
2761
|
+
state.dump = _result || "[]";
|
|
2762
|
+
}
|
|
2763
|
+
function writeFlowMapping(state, level, object) {
|
|
2764
|
+
let _result = "";
|
|
2765
|
+
const _tag = state.tag;
|
|
2766
|
+
const objectKeyList = Object.keys(object);
|
|
2767
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
2768
|
+
let pairBuffer = "";
|
|
2769
|
+
if (_result !== "") pairBuffer += ", ";
|
|
2770
|
+
if (state.condenseFlow) pairBuffer += '"';
|
|
2771
|
+
const objectKey = objectKeyList[index];
|
|
2772
|
+
let objectValue = object[objectKey];
|
|
2773
|
+
if (state.replacer) {
|
|
2774
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
2775
|
+
}
|
|
2776
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
2777
|
+
continue;
|
|
2778
|
+
}
|
|
2779
|
+
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
2780
|
+
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
2781
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
2782
|
+
continue;
|
|
2783
|
+
}
|
|
2784
|
+
pairBuffer += state.dump;
|
|
2785
|
+
_result += pairBuffer;
|
|
2786
|
+
}
|
|
2787
|
+
state.tag = _tag;
|
|
2788
|
+
state.dump = "{" + _result + "}";
|
|
2789
|
+
}
|
|
2790
|
+
function writeBlockMapping(state, level, object, compact) {
|
|
2791
|
+
let _result = "";
|
|
2792
|
+
const _tag = state.tag;
|
|
2793
|
+
const objectKeyList = Object.keys(object);
|
|
2794
|
+
if (state.sortKeys === true) {
|
|
2795
|
+
objectKeyList.sort();
|
|
2796
|
+
} else if (typeof state.sortKeys === "function") {
|
|
2797
|
+
objectKeyList.sort(state.sortKeys);
|
|
2798
|
+
} else if (state.sortKeys) {
|
|
2799
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
2800
|
+
}
|
|
2801
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
2802
|
+
let pairBuffer = "";
|
|
2803
|
+
if (!compact || _result !== "") {
|
|
2804
|
+
pairBuffer += generateNextLine(state, level);
|
|
2805
|
+
}
|
|
2806
|
+
const objectKey = objectKeyList[index];
|
|
2807
|
+
let objectValue = object[objectKey];
|
|
2808
|
+
if (state.replacer) {
|
|
2809
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
2810
|
+
}
|
|
2811
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
2812
|
+
continue;
|
|
2813
|
+
}
|
|
2814
|
+
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
2815
|
+
if (explicitPair) {
|
|
2816
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2817
|
+
pairBuffer += "?";
|
|
2818
|
+
} else {
|
|
2819
|
+
pairBuffer += "? ";
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
pairBuffer += state.dump;
|
|
2823
|
+
if (explicitPair) {
|
|
2824
|
+
pairBuffer += generateNextLine(state, level);
|
|
2825
|
+
}
|
|
2826
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
2827
|
+
continue;
|
|
2828
|
+
}
|
|
2829
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
2830
|
+
pairBuffer += ":";
|
|
2831
|
+
} else {
|
|
2832
|
+
pairBuffer += ": ";
|
|
2833
|
+
}
|
|
2834
|
+
pairBuffer += state.dump;
|
|
2835
|
+
_result += pairBuffer;
|
|
2836
|
+
}
|
|
2837
|
+
state.tag = _tag;
|
|
2838
|
+
state.dump = _result || "{}";
|
|
2839
|
+
}
|
|
2840
|
+
function detectType(state, object, explicit) {
|
|
2841
|
+
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
2842
|
+
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
2843
|
+
const type2 = typeList[index];
|
|
2844
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
2845
|
+
if (explicit) {
|
|
2846
|
+
if (type2.multi && type2.representName) {
|
|
2847
|
+
state.tag = type2.representName(object);
|
|
2848
|
+
} else {
|
|
2849
|
+
state.tag = type2.tag;
|
|
2850
|
+
}
|
|
2851
|
+
} else {
|
|
2852
|
+
state.tag = "?";
|
|
2853
|
+
}
|
|
2854
|
+
if (type2.represent) {
|
|
2855
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
2856
|
+
let _result;
|
|
2857
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
2858
|
+
_result = type2.represent(object, style);
|
|
2859
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
2860
|
+
_result = type2.represent[style](object, style);
|
|
2861
|
+
} else {
|
|
2862
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
2863
|
+
}
|
|
2864
|
+
state.dump = _result;
|
|
2865
|
+
}
|
|
2866
|
+
return true;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
return false;
|
|
2870
|
+
}
|
|
2871
|
+
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
2872
|
+
state.tag = null;
|
|
2873
|
+
state.dump = object;
|
|
2874
|
+
if (!detectType(state, object, false)) {
|
|
2875
|
+
detectType(state, object, true);
|
|
2876
|
+
}
|
|
2877
|
+
const type2 = _toString.call(state.dump);
|
|
2878
|
+
const inblock = block;
|
|
2879
|
+
if (block) {
|
|
2880
|
+
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
2881
|
+
}
|
|
2882
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
2883
|
+
let duplicateIndex;
|
|
2884
|
+
let duplicate;
|
|
2885
|
+
if (objectOrArray) {
|
|
2886
|
+
duplicateIndex = state.duplicates.indexOf(object);
|
|
2887
|
+
duplicate = duplicateIndex !== -1;
|
|
2888
|
+
}
|
|
2889
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
2890
|
+
compact = false;
|
|
2891
|
+
}
|
|
2892
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
2893
|
+
state.dump = "*ref_" + duplicateIndex;
|
|
2894
|
+
} else {
|
|
2895
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
2896
|
+
state.usedDuplicates[duplicateIndex] = true;
|
|
2897
|
+
}
|
|
2898
|
+
if (type2 === "[object Object]") {
|
|
2899
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
2900
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
2901
|
+
if (duplicate) {
|
|
2902
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2903
|
+
}
|
|
2904
|
+
} else {
|
|
2905
|
+
writeFlowMapping(state, level, state.dump);
|
|
2906
|
+
if (duplicate) {
|
|
2907
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
} else if (type2 === "[object Array]") {
|
|
2911
|
+
if (block && state.dump.length !== 0) {
|
|
2912
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
2913
|
+
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
2914
|
+
} else {
|
|
2915
|
+
writeBlockSequence(state, level, state.dump, compact);
|
|
2916
|
+
}
|
|
2917
|
+
if (duplicate) {
|
|
2918
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
2919
|
+
}
|
|
2920
|
+
} else {
|
|
2921
|
+
writeFlowSequence(state, level, state.dump);
|
|
2922
|
+
if (duplicate) {
|
|
2923
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
} else if (type2 === "[object String]") {
|
|
2927
|
+
if (state.tag !== "?") {
|
|
2928
|
+
writeScalar(state, state.dump, level, iskey, inblock);
|
|
2929
|
+
}
|
|
2930
|
+
} else if (type2 === "[object Undefined]") {
|
|
2931
|
+
return false;
|
|
2932
|
+
} else {
|
|
2933
|
+
if (state.skipInvalid) return false;
|
|
2934
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
2935
|
+
}
|
|
2936
|
+
if (state.tag !== null && state.tag !== "?") {
|
|
2937
|
+
let tagStr = encodeURI(
|
|
2938
|
+
state.tag[0] === "!" ? state.tag.slice(1) : state.tag
|
|
2939
|
+
).replace(/!/g, "%21");
|
|
2940
|
+
if (state.tag[0] === "!") {
|
|
2941
|
+
tagStr = "!" + tagStr;
|
|
2942
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
2943
|
+
tagStr = "!!" + tagStr.slice(18);
|
|
2944
|
+
} else {
|
|
2945
|
+
tagStr = "!<" + tagStr + ">";
|
|
2946
|
+
}
|
|
2947
|
+
state.dump = tagStr + " " + state.dump;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
return true;
|
|
2951
|
+
}
|
|
2952
|
+
function getDuplicateReferences(object, state) {
|
|
2953
|
+
const objects = [];
|
|
2954
|
+
const duplicatesIndexes = [];
|
|
2955
|
+
inspectNode(object, objects, duplicatesIndexes);
|
|
2956
|
+
const length = duplicatesIndexes.length;
|
|
2957
|
+
for (let index = 0; index < length; index += 1) {
|
|
2958
|
+
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
2959
|
+
}
|
|
2960
|
+
state.usedDuplicates = new Array(length);
|
|
2961
|
+
}
|
|
2962
|
+
function inspectNode(object, objects, duplicatesIndexes) {
|
|
2963
|
+
if (object !== null && typeof object === "object") {
|
|
2964
|
+
const index = objects.indexOf(object);
|
|
2965
|
+
if (index !== -1) {
|
|
2966
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
2967
|
+
duplicatesIndexes.push(index);
|
|
2968
|
+
}
|
|
2969
|
+
} else {
|
|
2970
|
+
objects.push(object);
|
|
2971
|
+
if (Array.isArray(object)) {
|
|
2972
|
+
for (let i = 0, length = object.length; i < length; i += 1) {
|
|
2973
|
+
inspectNode(object[i], objects, duplicatesIndexes);
|
|
2974
|
+
}
|
|
2975
|
+
} else {
|
|
2976
|
+
const objectKeyList = Object.keys(object);
|
|
2977
|
+
for (let i = 0, length = objectKeyList.length; i < length; i += 1) {
|
|
2978
|
+
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
function dump2(input, options) {
|
|
2985
|
+
options = options || {};
|
|
2986
|
+
const state = new State(options);
|
|
2987
|
+
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
2988
|
+
let value = input;
|
|
2989
|
+
if (state.replacer) {
|
|
2990
|
+
value = state.replacer.call({ "": value }, "", value);
|
|
2991
|
+
}
|
|
2992
|
+
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
2993
|
+
return "";
|
|
2994
|
+
}
|
|
2995
|
+
dumper.dump = dump2;
|
|
2996
|
+
return dumper;
|
|
2997
|
+
}
|
|
2998
|
+
var hasRequiredJsYaml;
|
|
2999
|
+
function requireJsYaml() {
|
|
3000
|
+
if (hasRequiredJsYaml) return jsYaml;
|
|
3001
|
+
hasRequiredJsYaml = 1;
|
|
3002
|
+
const loader2 = requireLoader();
|
|
3003
|
+
const dumper2 = requireDumper();
|
|
3004
|
+
function renamed(from, to) {
|
|
3005
|
+
return function() {
|
|
3006
|
+
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
3007
|
+
};
|
|
3008
|
+
}
|
|
3009
|
+
jsYaml.Type = requireType();
|
|
3010
|
+
jsYaml.Schema = requireSchema();
|
|
3011
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
3012
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
3013
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
3014
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
3015
|
+
jsYaml.load = loader2.load;
|
|
3016
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
3017
|
+
jsYaml.dump = dumper2.dump;
|
|
3018
|
+
jsYaml.YAMLException = requireException();
|
|
3019
|
+
jsYaml.types = {
|
|
3020
|
+
binary: requireBinary(),
|
|
3021
|
+
float: requireFloat(),
|
|
3022
|
+
map: requireMap(),
|
|
3023
|
+
null: require_null(),
|
|
3024
|
+
pairs: requirePairs(),
|
|
3025
|
+
set: requireSet(),
|
|
3026
|
+
timestamp: requireTimestamp(),
|
|
3027
|
+
bool: requireBool(),
|
|
3028
|
+
int: requireInt(),
|
|
3029
|
+
merge: requireMerge(),
|
|
3030
|
+
omap: requireOmap(),
|
|
3031
|
+
seq: requireSeq(),
|
|
3032
|
+
str: requireStr()
|
|
3033
|
+
};
|
|
3034
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
3035
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
3036
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
3037
|
+
return jsYaml;
|
|
3038
|
+
}
|
|
3039
|
+
var jsYamlExports = requireJsYaml();
|
|
3040
|
+
const yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
3041
|
+
const {
|
|
3042
|
+
Type,
|
|
3043
|
+
Schema,
|
|
3044
|
+
FAILSAFE_SCHEMA,
|
|
3045
|
+
JSON_SCHEMA,
|
|
3046
|
+
CORE_SCHEMA,
|
|
3047
|
+
DEFAULT_SCHEMA,
|
|
3048
|
+
load,
|
|
3049
|
+
loadAll,
|
|
3050
|
+
dump,
|
|
3051
|
+
YAMLException,
|
|
3052
|
+
types,
|
|
3053
|
+
safeLoad,
|
|
3054
|
+
safeLoadAll,
|
|
3055
|
+
safeDump
|
|
3056
|
+
} = yaml;
|
|
3057
|
+
export {
|
|
3058
|
+
CORE_SCHEMA,
|
|
3059
|
+
DEFAULT_SCHEMA,
|
|
3060
|
+
FAILSAFE_SCHEMA,
|
|
3061
|
+
JSON_SCHEMA,
|
|
3062
|
+
Schema,
|
|
3063
|
+
Type,
|
|
3064
|
+
YAMLException,
|
|
3065
|
+
yaml as default,
|
|
3066
|
+
dump,
|
|
3067
|
+
load,
|
|
3068
|
+
loadAll,
|
|
3069
|
+
safeDump,
|
|
3070
|
+
safeLoad,
|
|
3071
|
+
safeLoadAll,
|
|
3072
|
+
types
|
|
3073
|
+
};
|
|
3074
|
+
//# sourceMappingURL=js-yaml.mjs.map
|