agentworkshop 0.5.1 → 0.5.3
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/fb769eda-b1db-437b-adc7-ecf71eb3b30b.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 +26962 -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/cli/core/context.mjs +8 -4
- package/package.json +2 -1
- package/scripts/_dbg-full-feature-e2e.mjs +1 -1
- package/server/data/daqs.json +75 -75
- package/server/data/dcw-lines.json +14 -0
- package/server/data/dcw-products.json +14 -0
- package/server/data/dcw-rollback.json +222 -1
- package/server/data/dcw-runs.json +54 -36
- package/server/data/dcw-writes.json +96 -0
- package/server/data/dcws.json +42 -0
- package/server/data/line-runs.json +22 -22
- package/server/services/workshop/agents/node-bindings.repo.ts +2 -2
- package/shared/config/home.mjs +60 -15
|
@@ -0,0 +1,4786 @@
|
|
|
1
|
+
import { U as Icon, w as withInstall, a0 as useHttp, d as useConfigInject_default, a1 as useProviderSize, a2 as useProviderDisabled, a3 as useInjectGlobalForm, e as _extends$1, h as classNames, i as _objectSpread2, Y as LoadingOutlined, C as CloseCircleFilled, a4 as ExclamationCircleFilled, q as CheckCircleFilled, l as filterEmpty, k as genComponentStyleHook, m as merge, P as PropTypes, y as functionType, x as booleanType, s as stringType, r as someType, v as anyType, t as objectType, $ as tuple, a5 as useLocaleReceiver, a6 as localeValues, a7 as arrayType, z as resetComponent, a8 as getTransitionGroupProps, j as getTransitionProps, F as isValidElement, a9 as textEllipsis } from '../virtual/entry.mjs';
|
|
2
|
+
import { z as zoomIn, a as genCollapseMotion, t as tooltip_default, c as collapseMotion, r as removeClass, b as addClass, L as ListCache, S as SetCache, e as eq, d as cacheHas, s as setToArray, M as MapCache, f as baseFindIndex, h as arrayIncludes } from '../_/SearchOutlined.mjs';
|
|
3
|
+
import { i as initDefaultProps } from './initDefaultProps-DIbWwP4R.mjs';
|
|
4
|
+
import { u as useProvideFormItemContext, F as FormItemInputContext, i as isObject$1, _ as _getTag_default, a as isBuffer, e as isArrayLike, f as isArray, h as isPrototype, j as baseUnary, k as baseKeys, l as isObjectLike, S as Symbol$1, r as root, n as nodeUtil, m as isArguments, o as isTypedArray, p as useInjectFormItemContext, q as FormItemContext_default, M as Map$1 } from './button-BhbX5ACI.mjs';
|
|
5
|
+
import { f as flatRest, g as getPrototype, a as identity, b as arrayPush, c as isKey, t as toKey, h as hasIn, d as isIndex, e as baseGet, s as setToString, o as overRest, j as assignValue, k as arrayMap, l as castPath, m as baseAssignValue, n as isPlainObject } from './input--KMeLYqZ.mjs';
|
|
6
|
+
import { d as debounce, t as toNumber } from './tag-oQI3VtqM.mjs';
|
|
7
|
+
import { A as ARow, C as Col_default } from './Col-D7fjGDF6.mjs';
|
|
8
|
+
import { createVNode, defineComponent, computed, ref, watch, shallowRef, watchEffect, reactive, Fragment, unref, provide, inject, nextTick, toRaw, Transition, withDirectives, TransitionGroup, vShow, cloneVNode } from 'vue';
|
|
9
|
+
|
|
10
|
+
// This icon file is generated automatically.
|
|
11
|
+
var QuestionCircleOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, "name": "question-circle", "theme": "outlined" };
|
|
12
|
+
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
14
|
+
|
|
15
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
|
|
17
|
+
var QuestionCircleOutlined = function QuestionCircleOutlined(props, context) {
|
|
18
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
19
|
+
|
|
20
|
+
return createVNode(Icon, _objectSpread({}, p, {
|
|
21
|
+
"icon": QuestionCircleOutlined$1
|
|
22
|
+
}), null);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
QuestionCircleOutlined.displayName = 'QuestionCircleOutlined';
|
|
26
|
+
QuestionCircleOutlined.inheritAttrs = false;
|
|
27
|
+
|
|
28
|
+
//#region node_modules/.pnpm/compute-scroll-into-view@1.0.20/node_modules/compute-scroll-into-view/dist/index.mjs
|
|
29
|
+
function t(t) {
|
|
30
|
+
return "object" == typeof t && null != t && 1 === t.nodeType;
|
|
31
|
+
}
|
|
32
|
+
function e(t, e) {
|
|
33
|
+
return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
|
|
34
|
+
}
|
|
35
|
+
function n(t, n) {
|
|
36
|
+
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
37
|
+
var r = getComputedStyle(t, null);
|
|
38
|
+
return e(r.overflowY, n) || e(r.overflowX, n) || function(t) {
|
|
39
|
+
var e = function(t) {
|
|
40
|
+
if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
|
|
41
|
+
try {
|
|
42
|
+
return t.ownerDocument.defaultView.frameElement;
|
|
43
|
+
} catch (t) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}(t);
|
|
47
|
+
return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
|
|
48
|
+
}(t);
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
function r(t, e, n, r, i, o, l, d) {
|
|
53
|
+
return o < t && l > e || o > t && l < e ? 0 : o <= t && d <= n || l >= e && d >= n ? o - t - r : l > e && d < n || o < t && d > n ? l - e + i : 0;
|
|
54
|
+
}
|
|
55
|
+
var i = function(e, i) {
|
|
56
|
+
var o = void 0, l = i.scrollMode, d = i.block, f = i.inline, h = i.boundary, u = i.skipOverflowHiddenElements, s = "function" == typeof h ? h : function(t) {
|
|
57
|
+
return t !== h;
|
|
58
|
+
};
|
|
59
|
+
if (!t(e)) throw new TypeError("Invalid target");
|
|
60
|
+
for (var a, c, g = (void 0).scrollingElement || (void 0).documentElement, p = [], m = e; t(m) && s(m);) {
|
|
61
|
+
if ((m = null == (c = (a = m).parentElement) ? a.getRootNode().host || null : c) === g) {
|
|
62
|
+
p.push(m);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
null != m && m === (void 0).body && n(m) && !n((void 0).documentElement) || null != m && n(m, u) && p.push(m);
|
|
66
|
+
}
|
|
67
|
+
for (var w = o.visualViewport ? o.visualViewport.width : innerWidth, v = o.visualViewport ? o.visualViewport.height : innerHeight, W = (void 0).scrollX || pageXOffset, H = (void 0).scrollY || pageYOffset, b = e.getBoundingClientRect(), y = b.height, E = b.width, M = b.top, V = b.right, x = b.bottom, I = b.left, C = "start" === d || "nearest" === d ? M : "end" === d ? x : M + y / 2, R = "center" === f ? I + E / 2 : "end" === f ? V : I, T = [], k = 0; k < p.length; k++) {
|
|
68
|
+
var B = p[k], D = B.getBoundingClientRect(), O = D.height, X = D.width, Y = D.top, L = D.right, S = D.bottom, j = D.left;
|
|
69
|
+
if ("if-needed" === l && M >= 0 && I >= 0 && x <= v && V <= w && M >= Y && x <= S && I >= j && V <= L) return T;
|
|
70
|
+
var N = getComputedStyle(B), q = parseInt(N.borderLeftWidth, 10), z = parseInt(N.borderTopWidth, 10), A = parseInt(N.borderRightWidth, 10), F = parseInt(N.borderBottomWidth, 10), G = 0, J = 0, K = "offsetWidth" in B ? B.offsetWidth - B.clientWidth - q - A : 0, P = "offsetHeight" in B ? B.offsetHeight - B.clientHeight - z - F : 0, Q = "offsetWidth" in B ? 0 === B.offsetWidth ? 0 : X / B.offsetWidth : 0, U = "offsetHeight" in B ? 0 === B.offsetHeight ? 0 : O / B.offsetHeight : 0;
|
|
71
|
+
if (g === B) G = "start" === d ? C : "end" === d ? C - v : "nearest" === d ? r(H, H + v, v, z, F, H + C, H + C + y, y) : C - v / 2, J = "start" === f ? R : "center" === f ? R - w / 2 : "end" === f ? R - w : r(W, W + w, w, q, A, W + R, W + R + E, E), G = Math.max(0, G + H), J = Math.max(0, J + W);
|
|
72
|
+
else {
|
|
73
|
+
G = "start" === d ? C - Y - z : "end" === d ? C - S + F + P : "nearest" === d ? r(Y, S, O, z, F + P, C, C + y, y) : C - (Y + O / 2) + P / 2, J = "start" === f ? R - j - q : "center" === f ? R - (j + X / 2) + K / 2 : "end" === f ? R - L + A + K : r(j, L, X, q, A + K, R, R + E, E);
|
|
74
|
+
var Z = B.scrollLeft, $ = B.scrollTop;
|
|
75
|
+
C += $ - (G = Math.max(0, Math.min($ + G / U, B.scrollHeight - O / U + P))), R += Z - (J = Math.max(0, Math.min(Z + J / Q, B.scrollWidth - X / Q + K)));
|
|
76
|
+
}
|
|
77
|
+
T.push({
|
|
78
|
+
el: B,
|
|
79
|
+
top: G,
|
|
80
|
+
left: J
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return T;
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region node_modules/.pnpm/scroll-into-view-if-needed@2.2.31/node_modules/scroll-into-view-if-needed/es/index.js
|
|
87
|
+
function isOptionsObject(options) {
|
|
88
|
+
return options === Object(options) && Object.keys(options).length !== 0;
|
|
89
|
+
}
|
|
90
|
+
function defaultBehavior(actions, behavior) {
|
|
91
|
+
if (behavior === void 0) behavior = "auto";
|
|
92
|
+
var canSmoothScroll = "scrollBehavior" in (void 0).body.style;
|
|
93
|
+
actions.forEach(function(_ref) {
|
|
94
|
+
var el = _ref.el, top = _ref.top, left = _ref.left;
|
|
95
|
+
if (el.scroll && canSmoothScroll) el.scroll({
|
|
96
|
+
top,
|
|
97
|
+
left,
|
|
98
|
+
behavior
|
|
99
|
+
});
|
|
100
|
+
else {
|
|
101
|
+
el.scrollTop = top;
|
|
102
|
+
el.scrollLeft = left;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function getOptions(options) {
|
|
107
|
+
if (options === false) return {
|
|
108
|
+
block: "end",
|
|
109
|
+
inline: "nearest"
|
|
110
|
+
};
|
|
111
|
+
if (isOptionsObject(options)) return options;
|
|
112
|
+
return {
|
|
113
|
+
block: "start",
|
|
114
|
+
inline: "nearest"
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function scrollIntoView(target, options) {
|
|
118
|
+
var isTargetAttached = target.isConnected || target.ownerDocument.documentElement.contains(target);
|
|
119
|
+
if (isOptionsObject(options) && typeof options.behavior === "function") return options.behavior(isTargetAttached ? i(target, options) : []);
|
|
120
|
+
if (!isTargetAttached) return;
|
|
121
|
+
var computeOptions = getOptions(options);
|
|
122
|
+
return defaultBehavior(i(target, computeOptions), computeOptions.behavior);
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
126
|
+
/**
|
|
127
|
+
* Removes all key-value entries from the stack.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
130
|
+
* @name clear
|
|
131
|
+
* @memberOf Stack
|
|
132
|
+
*/
|
|
133
|
+
function stackClear() {
|
|
134
|
+
this.__data__ = new ListCache();
|
|
135
|
+
this.size = 0;
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
139
|
+
/**
|
|
140
|
+
* Removes `key` and its value from the stack.
|
|
141
|
+
*
|
|
142
|
+
* @private
|
|
143
|
+
* @name delete
|
|
144
|
+
* @memberOf Stack
|
|
145
|
+
* @param {string} key The key of the value to remove.
|
|
146
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
147
|
+
*/
|
|
148
|
+
function stackDelete(key) {
|
|
149
|
+
var data = this.__data__, result = data["delete"](key);
|
|
150
|
+
this.size = data.size;
|
|
151
|
+
return result;
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
155
|
+
/**
|
|
156
|
+
* Gets the stack value for `key`.
|
|
157
|
+
*
|
|
158
|
+
* @private
|
|
159
|
+
* @name get
|
|
160
|
+
* @memberOf Stack
|
|
161
|
+
* @param {string} key The key of the value to get.
|
|
162
|
+
* @returns {*} Returns the entry value.
|
|
163
|
+
*/
|
|
164
|
+
function stackGet(key) {
|
|
165
|
+
return this.__data__.get(key);
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
169
|
+
/**
|
|
170
|
+
* Checks if a stack value for `key` exists.
|
|
171
|
+
*
|
|
172
|
+
* @private
|
|
173
|
+
* @name has
|
|
174
|
+
* @memberOf Stack
|
|
175
|
+
* @param {string} key The key of the entry to check.
|
|
176
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
177
|
+
*/
|
|
178
|
+
function stackHas(key) {
|
|
179
|
+
return this.__data__.has(key);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
183
|
+
/** Used as the size to enable large array optimizations. */
|
|
184
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
185
|
+
/**
|
|
186
|
+
* Sets the stack `key` to `value`.
|
|
187
|
+
*
|
|
188
|
+
* @private
|
|
189
|
+
* @name set
|
|
190
|
+
* @memberOf Stack
|
|
191
|
+
* @param {string} key The key of the value to set.
|
|
192
|
+
* @param {*} value The value to set.
|
|
193
|
+
* @returns {Object} Returns the stack cache instance.
|
|
194
|
+
*/
|
|
195
|
+
function stackSet(key, value) {
|
|
196
|
+
var data = this.__data__;
|
|
197
|
+
if (data instanceof ListCache) {
|
|
198
|
+
var pairs = data.__data__;
|
|
199
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
200
|
+
pairs.push([key, value]);
|
|
201
|
+
this.size = ++data.size;
|
|
202
|
+
return this;
|
|
203
|
+
}
|
|
204
|
+
data = this.__data__ = new MapCache(pairs);
|
|
205
|
+
}
|
|
206
|
+
data.set(key, value);
|
|
207
|
+
this.size = data.size;
|
|
208
|
+
return this;
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
212
|
+
/**
|
|
213
|
+
* Creates a stack cache object to store key-value pairs.
|
|
214
|
+
*
|
|
215
|
+
* @private
|
|
216
|
+
* @constructor
|
|
217
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
218
|
+
*/
|
|
219
|
+
function Stack(entries) {
|
|
220
|
+
var data = this.__data__ = new ListCache(entries);
|
|
221
|
+
this.size = data.size;
|
|
222
|
+
}
|
|
223
|
+
Stack.prototype.clear = stackClear;
|
|
224
|
+
Stack.prototype["delete"] = stackDelete;
|
|
225
|
+
Stack.prototype.get = stackGet;
|
|
226
|
+
Stack.prototype.has = stackHas;
|
|
227
|
+
Stack.prototype.set = stackSet;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
230
|
+
/**
|
|
231
|
+
* A specialized version of `_.some` for arrays without support for iteratee
|
|
232
|
+
* shorthands.
|
|
233
|
+
*
|
|
234
|
+
* @private
|
|
235
|
+
* @param {Array} [array] The array to iterate over.
|
|
236
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
237
|
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
238
|
+
* else `false`.
|
|
239
|
+
*/
|
|
240
|
+
function arraySome(array, predicate) {
|
|
241
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
242
|
+
while (++index < length) if (predicate(array[index], index, array)) return true;
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
247
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
248
|
+
var COMPARE_PARTIAL_FLAG$5 = 1;
|
|
249
|
+
var COMPARE_UNORDERED_FLAG$3 = 2;
|
|
250
|
+
/**
|
|
251
|
+
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
252
|
+
* partial deep comparisons.
|
|
253
|
+
*
|
|
254
|
+
* @private
|
|
255
|
+
* @param {Array} array The array to compare.
|
|
256
|
+
* @param {Array} other The other array to compare.
|
|
257
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
258
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
259
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
260
|
+
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
261
|
+
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
262
|
+
*/
|
|
263
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
264
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
|
|
265
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
|
|
266
|
+
var arrStacked = stack.get(array);
|
|
267
|
+
var othStacked = stack.get(other);
|
|
268
|
+
if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
|
|
269
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
270
|
+
stack.set(array, other);
|
|
271
|
+
stack.set(other, array);
|
|
272
|
+
while (++index < arrLength) {
|
|
273
|
+
var arrValue = array[index], othValue = other[index];
|
|
274
|
+
if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
275
|
+
if (compared !== void 0) {
|
|
276
|
+
if (compared) continue;
|
|
277
|
+
result = false;
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
if (seen) {
|
|
281
|
+
if (!arraySome(other, function(othValue, othIndex) {
|
|
282
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
|
|
283
|
+
})) {
|
|
284
|
+
result = false;
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
288
|
+
result = false;
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
stack["delete"](array);
|
|
293
|
+
stack["delete"](other);
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
298
|
+
/** Built-in value references. */
|
|
299
|
+
var Uint8Array = root.Uint8Array;
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
302
|
+
/**
|
|
303
|
+
* Converts `map` to its key-value pairs.
|
|
304
|
+
*
|
|
305
|
+
* @private
|
|
306
|
+
* @param {Object} map The map to convert.
|
|
307
|
+
* @returns {Array} Returns the key-value pairs.
|
|
308
|
+
*/
|
|
309
|
+
function mapToArray(map) {
|
|
310
|
+
var index = -1, result = Array(map.size);
|
|
311
|
+
map.forEach(function(value, key) {
|
|
312
|
+
result[++index] = [key, value];
|
|
313
|
+
});
|
|
314
|
+
return result;
|
|
315
|
+
}
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
318
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
319
|
+
var COMPARE_PARTIAL_FLAG$4 = 1;
|
|
320
|
+
var COMPARE_UNORDERED_FLAG$2 = 2;
|
|
321
|
+
/** `Object#toString` result references. */
|
|
322
|
+
var boolTag$2 = "[object Boolean]";
|
|
323
|
+
var dateTag$2 = "[object Date]";
|
|
324
|
+
var errorTag$1 = "[object Error]";
|
|
325
|
+
var mapTag$3 = "[object Map]";
|
|
326
|
+
var numberTag$2 = "[object Number]";
|
|
327
|
+
var regexpTag$2 = "[object RegExp]";
|
|
328
|
+
var setTag$3 = "[object Set]";
|
|
329
|
+
var stringTag$2 = "[object String]";
|
|
330
|
+
var symbolTag$2 = "[object Symbol]";
|
|
331
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]";
|
|
332
|
+
var dataViewTag$2 = "[object DataView]";
|
|
333
|
+
/** Used to convert symbols to primitives and strings. */
|
|
334
|
+
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
335
|
+
var symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
336
|
+
/**
|
|
337
|
+
* A specialized version of `baseIsEqualDeep` for comparing objects of
|
|
338
|
+
* the same `toStringTag`.
|
|
339
|
+
*
|
|
340
|
+
* **Note:** This function only supports comparing values with tags of
|
|
341
|
+
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
342
|
+
*
|
|
343
|
+
* @private
|
|
344
|
+
* @param {Object} object The object to compare.
|
|
345
|
+
* @param {Object} other The other object to compare.
|
|
346
|
+
* @param {string} tag The `toStringTag` of the objects to compare.
|
|
347
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
348
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
349
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
350
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
351
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
352
|
+
*/
|
|
353
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
354
|
+
switch (tag) {
|
|
355
|
+
case dataViewTag$2:
|
|
356
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
|
|
357
|
+
object = object.buffer;
|
|
358
|
+
other = other.buffer;
|
|
359
|
+
case arrayBufferTag$2:
|
|
360
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) return false;
|
|
361
|
+
return true;
|
|
362
|
+
case boolTag$2:
|
|
363
|
+
case dateTag$2:
|
|
364
|
+
case numberTag$2: return eq(+object, +other);
|
|
365
|
+
case errorTag$1: return object.name == other.name && object.message == other.message;
|
|
366
|
+
case regexpTag$2:
|
|
367
|
+
case stringTag$2: return object == other + "";
|
|
368
|
+
case mapTag$3: var convert = mapToArray;
|
|
369
|
+
case setTag$3:
|
|
370
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
|
371
|
+
convert || (convert = setToArray);
|
|
372
|
+
if (object.size != other.size && !isPartial) return false;
|
|
373
|
+
var stacked = stack.get(object);
|
|
374
|
+
if (stacked) return stacked == other;
|
|
375
|
+
bitmask |= COMPARE_UNORDERED_FLAG$2;
|
|
376
|
+
stack.set(object, other);
|
|
377
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
378
|
+
stack["delete"](object);
|
|
379
|
+
return result;
|
|
380
|
+
case symbolTag$2: if (symbolValueOf$1) return symbolValueOf$1.call(object) == symbolValueOf$1.call(other);
|
|
381
|
+
}
|
|
382
|
+
return false;
|
|
383
|
+
}
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
386
|
+
/**
|
|
387
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
388
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
389
|
+
* symbols of `object`.
|
|
390
|
+
*
|
|
391
|
+
* @private
|
|
392
|
+
* @param {Object} object The object to query.
|
|
393
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
394
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
395
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
396
|
+
*/
|
|
397
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
398
|
+
var result = keysFunc(object);
|
|
399
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
400
|
+
}
|
|
401
|
+
//#endregion
|
|
402
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
403
|
+
/**
|
|
404
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
405
|
+
* iteratee shorthands.
|
|
406
|
+
*
|
|
407
|
+
* @private
|
|
408
|
+
* @param {Array} [array] The array to iterate over.
|
|
409
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
410
|
+
* @returns {Array} Returns the new filtered array.
|
|
411
|
+
*/
|
|
412
|
+
function arrayFilter(array, predicate) {
|
|
413
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
414
|
+
while (++index < length) {
|
|
415
|
+
var value = array[index];
|
|
416
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
417
|
+
}
|
|
418
|
+
return result;
|
|
419
|
+
}
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
422
|
+
/**
|
|
423
|
+
* This method returns a new empty array.
|
|
424
|
+
*
|
|
425
|
+
* @static
|
|
426
|
+
* @memberOf _
|
|
427
|
+
* @since 4.13.0
|
|
428
|
+
* @category Util
|
|
429
|
+
* @returns {Array} Returns the new empty array.
|
|
430
|
+
* @example
|
|
431
|
+
*
|
|
432
|
+
* var arrays = _.times(2, _.stubArray);
|
|
433
|
+
*
|
|
434
|
+
* console.log(arrays);
|
|
435
|
+
* // => [[], []]
|
|
436
|
+
*
|
|
437
|
+
* console.log(arrays[0] === arrays[1]);
|
|
438
|
+
* // => false
|
|
439
|
+
*/
|
|
440
|
+
function stubArray() {
|
|
441
|
+
return [];
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
444
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
445
|
+
/** Built-in value references. */
|
|
446
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
447
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
448
|
+
/**
|
|
449
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
450
|
+
*
|
|
451
|
+
* @private
|
|
452
|
+
* @param {Object} object The object to query.
|
|
453
|
+
* @returns {Array} Returns the array of symbols.
|
|
454
|
+
*/
|
|
455
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
456
|
+
if (object == null) return [];
|
|
457
|
+
object = Object(object);
|
|
458
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
459
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
464
|
+
/**
|
|
465
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
466
|
+
* or max array length checks.
|
|
467
|
+
*
|
|
468
|
+
* @private
|
|
469
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
470
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
471
|
+
* @returns {Array} Returns the array of results.
|
|
472
|
+
*/
|
|
473
|
+
function baseTimes(n, iteratee) {
|
|
474
|
+
var index = -1, result = Array(n);
|
|
475
|
+
while (++index < n) result[index] = iteratee(index);
|
|
476
|
+
return result;
|
|
477
|
+
}
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
480
|
+
/** Used to check objects for own properties. */
|
|
481
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
482
|
+
/**
|
|
483
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
484
|
+
*
|
|
485
|
+
* @private
|
|
486
|
+
* @param {*} value The value to query.
|
|
487
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
488
|
+
* @returns {Array} Returns the array of property names.
|
|
489
|
+
*/
|
|
490
|
+
function arrayLikeKeys(value, inherited) {
|
|
491
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
492
|
+
for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
493
|
+
return result;
|
|
494
|
+
}
|
|
495
|
+
//#endregion
|
|
496
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
497
|
+
/**
|
|
498
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
499
|
+
*
|
|
500
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
501
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
502
|
+
* for more details.
|
|
503
|
+
*
|
|
504
|
+
* @static
|
|
505
|
+
* @since 0.1.0
|
|
506
|
+
* @memberOf _
|
|
507
|
+
* @category Object
|
|
508
|
+
* @param {Object} object The object to query.
|
|
509
|
+
* @returns {Array} Returns the array of property names.
|
|
510
|
+
* @example
|
|
511
|
+
*
|
|
512
|
+
* function Foo() {
|
|
513
|
+
* this.a = 1;
|
|
514
|
+
* this.b = 2;
|
|
515
|
+
* }
|
|
516
|
+
*
|
|
517
|
+
* Foo.prototype.c = 3;
|
|
518
|
+
*
|
|
519
|
+
* _.keys(new Foo);
|
|
520
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
521
|
+
*
|
|
522
|
+
* _.keys('hi');
|
|
523
|
+
* // => ['0', '1']
|
|
524
|
+
*/
|
|
525
|
+
function keys(object) {
|
|
526
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
527
|
+
}
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
530
|
+
/**
|
|
531
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
532
|
+
*
|
|
533
|
+
* @private
|
|
534
|
+
* @param {Object} object The object to query.
|
|
535
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
536
|
+
*/
|
|
537
|
+
function getAllKeys(object) {
|
|
538
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
539
|
+
}
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
542
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
543
|
+
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
544
|
+
/** Used to check objects for own properties. */
|
|
545
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
546
|
+
/**
|
|
547
|
+
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
548
|
+
* partial deep comparisons.
|
|
549
|
+
*
|
|
550
|
+
* @private
|
|
551
|
+
* @param {Object} object The object to compare.
|
|
552
|
+
* @param {Object} other The other object to compare.
|
|
553
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
554
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
555
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
556
|
+
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
557
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
558
|
+
*/
|
|
559
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
560
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length;
|
|
561
|
+
if (objLength != getAllKeys(other).length && !isPartial) return false;
|
|
562
|
+
var index = objLength;
|
|
563
|
+
while (index--) {
|
|
564
|
+
var key = objProps[index];
|
|
565
|
+
if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) return false;
|
|
566
|
+
}
|
|
567
|
+
var objStacked = stack.get(object);
|
|
568
|
+
var othStacked = stack.get(other);
|
|
569
|
+
if (objStacked && othStacked) return objStacked == other && othStacked == object;
|
|
570
|
+
var result = true;
|
|
571
|
+
stack.set(object, other);
|
|
572
|
+
stack.set(other, object);
|
|
573
|
+
var skipCtor = isPartial;
|
|
574
|
+
while (++index < objLength) {
|
|
575
|
+
key = objProps[index];
|
|
576
|
+
var objValue = object[key], othValue = other[key];
|
|
577
|
+
if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
578
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
579
|
+
result = false;
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
583
|
+
}
|
|
584
|
+
if (result && !skipCtor) {
|
|
585
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
586
|
+
if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
|
|
587
|
+
}
|
|
588
|
+
stack["delete"](object);
|
|
589
|
+
stack["delete"](other);
|
|
590
|
+
return result;
|
|
591
|
+
}
|
|
592
|
+
//#endregion
|
|
593
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
594
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
595
|
+
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
596
|
+
/** `Object#toString` result references. */
|
|
597
|
+
var argsTag$1 = "[object Arguments]";
|
|
598
|
+
var arrayTag$1 = "[object Array]";
|
|
599
|
+
var objectTag$1 = "[object Object]";
|
|
600
|
+
/** Used to check objects for own properties. */
|
|
601
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
602
|
+
/**
|
|
603
|
+
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
604
|
+
* deep comparisons and tracks traversed objects enabling objects with circular
|
|
605
|
+
* references to be compared.
|
|
606
|
+
*
|
|
607
|
+
* @private
|
|
608
|
+
* @param {Object} object The object to compare.
|
|
609
|
+
* @param {Object} other The other object to compare.
|
|
610
|
+
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
|
|
611
|
+
* @param {Function} customizer The function to customize comparisons.
|
|
612
|
+
* @param {Function} equalFunc The function to determine equivalents of values.
|
|
613
|
+
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
614
|
+
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
615
|
+
*/
|
|
616
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
617
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag$1 : _getTag_default(object), othTag = othIsArr ? arrayTag$1 : _getTag_default(other);
|
|
618
|
+
objTag = objTag == argsTag$1 ? objectTag$1 : objTag;
|
|
619
|
+
othTag = othTag == argsTag$1 ? objectTag$1 : othTag;
|
|
620
|
+
var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
|
621
|
+
if (isSameTag && isBuffer(object)) {
|
|
622
|
+
if (!isBuffer(other)) return false;
|
|
623
|
+
objIsArr = true;
|
|
624
|
+
objIsObj = false;
|
|
625
|
+
}
|
|
626
|
+
if (isSameTag && !objIsObj) {
|
|
627
|
+
stack || (stack = new Stack());
|
|
628
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
629
|
+
}
|
|
630
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
631
|
+
var objIsWrapped = objIsObj && hasOwnProperty$3.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
|
|
632
|
+
if (objIsWrapped || othIsWrapped) {
|
|
633
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
634
|
+
stack || (stack = new Stack());
|
|
635
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
if (!isSameTag) return false;
|
|
639
|
+
stack || (stack = new Stack());
|
|
640
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
641
|
+
}
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
644
|
+
/**
|
|
645
|
+
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
646
|
+
* and tracks traversed objects.
|
|
647
|
+
*
|
|
648
|
+
* @private
|
|
649
|
+
* @param {*} value The value to compare.
|
|
650
|
+
* @param {*} other The other value to compare.
|
|
651
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
652
|
+
* 1 - Unordered comparison
|
|
653
|
+
* 2 - Partial comparison
|
|
654
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
655
|
+
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
656
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
657
|
+
*/
|
|
658
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
659
|
+
if (value === other) return true;
|
|
660
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
|
|
661
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
662
|
+
}
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
|
|
665
|
+
/**
|
|
666
|
+
* Performs a deep comparison between two values to determine if they are
|
|
667
|
+
* equivalent.
|
|
668
|
+
*
|
|
669
|
+
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
|
670
|
+
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
|
671
|
+
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
|
672
|
+
* by their own, not inherited, enumerable properties. Functions and DOM
|
|
673
|
+
* nodes are compared by strict equality, i.e. `===`.
|
|
674
|
+
*
|
|
675
|
+
* @static
|
|
676
|
+
* @memberOf _
|
|
677
|
+
* @since 0.1.0
|
|
678
|
+
* @category Lang
|
|
679
|
+
* @param {*} value The value to compare.
|
|
680
|
+
* @param {*} other The other value to compare.
|
|
681
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
682
|
+
* @example
|
|
683
|
+
*
|
|
684
|
+
* var object = { 'a': 1 };
|
|
685
|
+
* var other = { 'a': 1 };
|
|
686
|
+
*
|
|
687
|
+
* _.isEqual(object, other);
|
|
688
|
+
* // => true
|
|
689
|
+
*
|
|
690
|
+
* object === other;
|
|
691
|
+
* // => false
|
|
692
|
+
*/
|
|
693
|
+
function isEqual(value, other) {
|
|
694
|
+
return baseIsEqual(value, other);
|
|
695
|
+
}
|
|
696
|
+
//#endregion
|
|
697
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js
|
|
698
|
+
/** Used as references for various `Number` constants. */
|
|
699
|
+
var INFINITY = 1 / 0;
|
|
700
|
+
var MAX_INTEGER = 17976931348623157e292;
|
|
701
|
+
/**
|
|
702
|
+
* Converts `value` to a finite number.
|
|
703
|
+
*
|
|
704
|
+
* @static
|
|
705
|
+
* @memberOf _
|
|
706
|
+
* @since 4.12.0
|
|
707
|
+
* @category Lang
|
|
708
|
+
* @param {*} value The value to convert.
|
|
709
|
+
* @returns {number} Returns the converted number.
|
|
710
|
+
* @example
|
|
711
|
+
*
|
|
712
|
+
* _.toFinite(3.2);
|
|
713
|
+
* // => 3.2
|
|
714
|
+
*
|
|
715
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
716
|
+
* // => 5e-324
|
|
717
|
+
*
|
|
718
|
+
* _.toFinite(Infinity);
|
|
719
|
+
* // => 1.7976931348623157e+308
|
|
720
|
+
*
|
|
721
|
+
* _.toFinite('3.2');
|
|
722
|
+
* // => 3.2
|
|
723
|
+
*/
|
|
724
|
+
function toFinite(value) {
|
|
725
|
+
if (!value) return value === 0 ? value : 0;
|
|
726
|
+
value = toNumber(value);
|
|
727
|
+
if (value === INFINITY || value === -INFINITY) return (value < 0 ? -1 : 1) * MAX_INTEGER;
|
|
728
|
+
return value === value ? value : 0;
|
|
729
|
+
}
|
|
730
|
+
//#endregion
|
|
731
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js
|
|
732
|
+
/**
|
|
733
|
+
* Converts `value` to an integer.
|
|
734
|
+
*
|
|
735
|
+
* **Note:** This method is loosely based on
|
|
736
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
737
|
+
*
|
|
738
|
+
* @static
|
|
739
|
+
* @memberOf _
|
|
740
|
+
* @since 4.0.0
|
|
741
|
+
* @category Lang
|
|
742
|
+
* @param {*} value The value to convert.
|
|
743
|
+
* @returns {number} Returns the converted integer.
|
|
744
|
+
* @example
|
|
745
|
+
*
|
|
746
|
+
* _.toInteger(3.2);
|
|
747
|
+
* // => 3
|
|
748
|
+
*
|
|
749
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
750
|
+
* // => 0
|
|
751
|
+
*
|
|
752
|
+
* _.toInteger(Infinity);
|
|
753
|
+
* // => 1.7976931348623157e+308
|
|
754
|
+
*
|
|
755
|
+
* _.toInteger('3.2');
|
|
756
|
+
* // => 3
|
|
757
|
+
*/
|
|
758
|
+
function toInteger(value) {
|
|
759
|
+
var result = toFinite(value), remainder = result % 1;
|
|
760
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
761
|
+
}
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
764
|
+
/** Built-in value references. */
|
|
765
|
+
var objectCreate = Object.create;
|
|
766
|
+
/**
|
|
767
|
+
* The base implementation of `_.create` without support for assigning
|
|
768
|
+
* properties to the created object.
|
|
769
|
+
*
|
|
770
|
+
* @private
|
|
771
|
+
* @param {Object} proto The object to inherit from.
|
|
772
|
+
* @returns {Object} Returns the new object.
|
|
773
|
+
*/
|
|
774
|
+
var baseCreate = function() {
|
|
775
|
+
function object() {}
|
|
776
|
+
return function(proto) {
|
|
777
|
+
if (!isObject$1(proto)) return {};
|
|
778
|
+
if (objectCreate) return objectCreate(proto);
|
|
779
|
+
object.prototype = proto;
|
|
780
|
+
var result = new object();
|
|
781
|
+
object.prototype = void 0;
|
|
782
|
+
return result;
|
|
783
|
+
};
|
|
784
|
+
}();
|
|
785
|
+
//#endregion
|
|
786
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
787
|
+
/**
|
|
788
|
+
* Copies the values of `source` to `array`.
|
|
789
|
+
*
|
|
790
|
+
* @private
|
|
791
|
+
* @param {Array} source The array to copy values from.
|
|
792
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
793
|
+
* @returns {Array} Returns `array`.
|
|
794
|
+
*/
|
|
795
|
+
function copyArray(source, array) {
|
|
796
|
+
var index = -1, length = source.length;
|
|
797
|
+
array || (array = Array(length));
|
|
798
|
+
while (++index < length) array[index] = source[index];
|
|
799
|
+
return array;
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
803
|
+
/**
|
|
804
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
805
|
+
* iteratee shorthands.
|
|
806
|
+
*
|
|
807
|
+
* @private
|
|
808
|
+
* @param {Array} [array] The array to iterate over.
|
|
809
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
810
|
+
* @returns {Array} Returns `array`.
|
|
811
|
+
*/
|
|
812
|
+
function arrayEach(array, iteratee) {
|
|
813
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
814
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
815
|
+
return array;
|
|
816
|
+
}
|
|
817
|
+
//#endregion
|
|
818
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
819
|
+
/**
|
|
820
|
+
* Copies properties of `source` to `object`.
|
|
821
|
+
*
|
|
822
|
+
* @private
|
|
823
|
+
* @param {Object} source The object to copy properties from.
|
|
824
|
+
* @param {Array} props The property identifiers to copy.
|
|
825
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
826
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
827
|
+
* @returns {Object} Returns `object`.
|
|
828
|
+
*/
|
|
829
|
+
function copyObject(source, props, object, customizer) {
|
|
830
|
+
var isNew = !object;
|
|
831
|
+
object || (object = {});
|
|
832
|
+
var index = -1, length = props.length;
|
|
833
|
+
while (++index < length) {
|
|
834
|
+
var key = props[index];
|
|
835
|
+
var newValue = void 0;
|
|
836
|
+
if (newValue === void 0) newValue = source[key];
|
|
837
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
838
|
+
else assignValue(object, key, newValue);
|
|
839
|
+
}
|
|
840
|
+
return object;
|
|
841
|
+
}
|
|
842
|
+
//#endregion
|
|
843
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
|
|
844
|
+
/**
|
|
845
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
846
|
+
*
|
|
847
|
+
* @private
|
|
848
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
849
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
850
|
+
* @returns {Function} Returns the new function.
|
|
851
|
+
*/
|
|
852
|
+
function baseRest(func, start) {
|
|
853
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
854
|
+
}
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
857
|
+
/**
|
|
858
|
+
* This function is like
|
|
859
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
860
|
+
* except that it includes inherited enumerable properties.
|
|
861
|
+
*
|
|
862
|
+
* @private
|
|
863
|
+
* @param {Object} object The object to query.
|
|
864
|
+
* @returns {Array} Returns the array of property names.
|
|
865
|
+
*/
|
|
866
|
+
function nativeKeysIn(object) {
|
|
867
|
+
var result = [];
|
|
868
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
869
|
+
return result;
|
|
870
|
+
}
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
873
|
+
/** Used to check objects for own properties. */
|
|
874
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
875
|
+
/**
|
|
876
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
877
|
+
*
|
|
878
|
+
* @private
|
|
879
|
+
* @param {Object} object The object to query.
|
|
880
|
+
* @returns {Array} Returns the array of property names.
|
|
881
|
+
*/
|
|
882
|
+
function baseKeysIn(object) {
|
|
883
|
+
if (!isObject$1(object)) return nativeKeysIn(object);
|
|
884
|
+
var isProto = isPrototype(object), result = [];
|
|
885
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) result.push(key);
|
|
886
|
+
return result;
|
|
887
|
+
}
|
|
888
|
+
//#endregion
|
|
889
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
890
|
+
/**
|
|
891
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
892
|
+
*
|
|
893
|
+
* **Note:** Non-object values are coerced to objects.
|
|
894
|
+
*
|
|
895
|
+
* @static
|
|
896
|
+
* @memberOf _
|
|
897
|
+
* @since 3.0.0
|
|
898
|
+
* @category Object
|
|
899
|
+
* @param {Object} object The object to query.
|
|
900
|
+
* @returns {Array} Returns the array of property names.
|
|
901
|
+
* @example
|
|
902
|
+
*
|
|
903
|
+
* function Foo() {
|
|
904
|
+
* this.a = 1;
|
|
905
|
+
* this.b = 2;
|
|
906
|
+
* }
|
|
907
|
+
*
|
|
908
|
+
* Foo.prototype.c = 3;
|
|
909
|
+
*
|
|
910
|
+
* _.keysIn(new Foo);
|
|
911
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
912
|
+
*/
|
|
913
|
+
function keysIn(object) {
|
|
914
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
915
|
+
}
|
|
916
|
+
//#endregion
|
|
917
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
918
|
+
/**
|
|
919
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
920
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
921
|
+
*
|
|
922
|
+
* @static
|
|
923
|
+
* @memberOf _
|
|
924
|
+
* @since 3.7.0
|
|
925
|
+
* @category Object
|
|
926
|
+
* @param {Object} object The object to query.
|
|
927
|
+
* @param {Array|string} path The path of the property to get.
|
|
928
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
929
|
+
* @returns {*} Returns the resolved value.
|
|
930
|
+
* @example
|
|
931
|
+
*
|
|
932
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
933
|
+
*
|
|
934
|
+
* _.get(object, 'a[0].b.c');
|
|
935
|
+
* // => 3
|
|
936
|
+
*
|
|
937
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
938
|
+
* // => 3
|
|
939
|
+
*
|
|
940
|
+
* _.get(object, 'a.b.c', 'default');
|
|
941
|
+
* // => 'default'
|
|
942
|
+
*/
|
|
943
|
+
function get$1(object, path, defaultValue) {
|
|
944
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
945
|
+
return result === void 0 ? defaultValue : result;
|
|
946
|
+
}
|
|
947
|
+
//#endregion
|
|
948
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
|
|
949
|
+
/**
|
|
950
|
+
* The base implementation of `_.slice` without an iteratee call guard.
|
|
951
|
+
*
|
|
952
|
+
* @private
|
|
953
|
+
* @param {Array} array The array to slice.
|
|
954
|
+
* @param {number} [start=0] The start position.
|
|
955
|
+
* @param {number} [end=array.length] The end position.
|
|
956
|
+
* @returns {Array} Returns the slice of `array`.
|
|
957
|
+
*/
|
|
958
|
+
function baseSlice(array, start, end) {
|
|
959
|
+
var index = -1, length = array.length;
|
|
960
|
+
if (start < 0) start = -start > length ? 0 : length + start;
|
|
961
|
+
end = end > length ? length : end;
|
|
962
|
+
if (end < 0) end += length;
|
|
963
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
964
|
+
start >>>= 0;
|
|
965
|
+
var result = Array(length);
|
|
966
|
+
while (++index < length) result[index] = array[index + start];
|
|
967
|
+
return result;
|
|
968
|
+
}
|
|
969
|
+
//#endregion
|
|
970
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
971
|
+
/**
|
|
972
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
973
|
+
* or `customizer` functions.
|
|
974
|
+
*
|
|
975
|
+
* @private
|
|
976
|
+
* @param {Object} object The destination object.
|
|
977
|
+
* @param {Object} source The source object.
|
|
978
|
+
* @returns {Object} Returns `object`.
|
|
979
|
+
*/
|
|
980
|
+
function baseAssign(object, source) {
|
|
981
|
+
return object && copyObject(source, keys(source), object);
|
|
982
|
+
}
|
|
983
|
+
//#endregion
|
|
984
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
985
|
+
/**
|
|
986
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
987
|
+
* or `customizer` functions.
|
|
988
|
+
*
|
|
989
|
+
* @private
|
|
990
|
+
* @param {Object} object The destination object.
|
|
991
|
+
* @param {Object} source The source object.
|
|
992
|
+
* @returns {Object} Returns `object`.
|
|
993
|
+
*/
|
|
994
|
+
function baseAssignIn(object, source) {
|
|
995
|
+
return object && copyObject(source, keysIn(source), object);
|
|
996
|
+
}
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
999
|
+
/** Detect free variable `exports`. */
|
|
1000
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1001
|
+
/** Detect free variable `module`. */
|
|
1002
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1003
|
+
/** Built-in value references. */
|
|
1004
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
|
|
1005
|
+
var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1006
|
+
/**
|
|
1007
|
+
* Creates a clone of `buffer`.
|
|
1008
|
+
*
|
|
1009
|
+
* @private
|
|
1010
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
1011
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1012
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
1013
|
+
*/
|
|
1014
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1015
|
+
if (isDeep) return buffer.slice();
|
|
1016
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1017
|
+
buffer.copy(result);
|
|
1018
|
+
return result;
|
|
1019
|
+
}
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
1022
|
+
/**
|
|
1023
|
+
* Copies own symbols of `source` to `object`.
|
|
1024
|
+
*
|
|
1025
|
+
* @private
|
|
1026
|
+
* @param {Object} source The object to copy symbols from.
|
|
1027
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1028
|
+
* @returns {Object} Returns `object`.
|
|
1029
|
+
*/
|
|
1030
|
+
function copySymbols(source, object) {
|
|
1031
|
+
return copyObject(source, getSymbols(source), object);
|
|
1032
|
+
}
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
1035
|
+
/**
|
|
1036
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1037
|
+
*
|
|
1038
|
+
* @private
|
|
1039
|
+
* @param {Object} object The object to query.
|
|
1040
|
+
* @returns {Array} Returns the array of symbols.
|
|
1041
|
+
*/
|
|
1042
|
+
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
1043
|
+
var result = [];
|
|
1044
|
+
while (object) {
|
|
1045
|
+
arrayPush(result, getSymbols(object));
|
|
1046
|
+
object = getPrototype(object);
|
|
1047
|
+
}
|
|
1048
|
+
return result;
|
|
1049
|
+
};
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
1052
|
+
/**
|
|
1053
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
1054
|
+
*
|
|
1055
|
+
* @private
|
|
1056
|
+
* @param {Object} source The object to copy symbols from.
|
|
1057
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1058
|
+
* @returns {Object} Returns `object`.
|
|
1059
|
+
*/
|
|
1060
|
+
function copySymbolsIn(source, object) {
|
|
1061
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
1062
|
+
}
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
1065
|
+
/**
|
|
1066
|
+
* Creates an array of own and inherited enumerable property names and
|
|
1067
|
+
* symbols of `object`.
|
|
1068
|
+
*
|
|
1069
|
+
* @private
|
|
1070
|
+
* @param {Object} object The object to query.
|
|
1071
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1072
|
+
*/
|
|
1073
|
+
function getAllKeysIn(object) {
|
|
1074
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1075
|
+
}
|
|
1076
|
+
//#endregion
|
|
1077
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
1078
|
+
/** Used to check objects for own properties. */
|
|
1079
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1080
|
+
/**
|
|
1081
|
+
* Initializes an array clone.
|
|
1082
|
+
*
|
|
1083
|
+
* @private
|
|
1084
|
+
* @param {Array} array The array to clone.
|
|
1085
|
+
* @returns {Array} Returns the initialized clone.
|
|
1086
|
+
*/
|
|
1087
|
+
function initCloneArray(array) {
|
|
1088
|
+
var length = array.length, result = new array.constructor(length);
|
|
1089
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
|
|
1090
|
+
result.index = array.index;
|
|
1091
|
+
result.input = array.input;
|
|
1092
|
+
}
|
|
1093
|
+
return result;
|
|
1094
|
+
}
|
|
1095
|
+
//#endregion
|
|
1096
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1097
|
+
/**
|
|
1098
|
+
* Creates a clone of `arrayBuffer`.
|
|
1099
|
+
*
|
|
1100
|
+
* @private
|
|
1101
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1102
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1103
|
+
*/
|
|
1104
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1105
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1106
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1107
|
+
return result;
|
|
1108
|
+
}
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
1111
|
+
/**
|
|
1112
|
+
* Creates a clone of `dataView`.
|
|
1113
|
+
*
|
|
1114
|
+
* @private
|
|
1115
|
+
* @param {Object} dataView The data view to clone.
|
|
1116
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1117
|
+
* @returns {Object} Returns the cloned data view.
|
|
1118
|
+
*/
|
|
1119
|
+
function cloneDataView(dataView, isDeep) {
|
|
1120
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1121
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1122
|
+
}
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
1125
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1126
|
+
var reFlags = /\w*$/;
|
|
1127
|
+
/**
|
|
1128
|
+
* Creates a clone of `regexp`.
|
|
1129
|
+
*
|
|
1130
|
+
* @private
|
|
1131
|
+
* @param {Object} regexp The regexp to clone.
|
|
1132
|
+
* @returns {Object} Returns the cloned regexp.
|
|
1133
|
+
*/
|
|
1134
|
+
function cloneRegExp(regexp) {
|
|
1135
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1136
|
+
result.lastIndex = regexp.lastIndex;
|
|
1137
|
+
return result;
|
|
1138
|
+
}
|
|
1139
|
+
//#endregion
|
|
1140
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
1141
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1142
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0;
|
|
1143
|
+
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1144
|
+
/**
|
|
1145
|
+
* Creates a clone of the `symbol` object.
|
|
1146
|
+
*
|
|
1147
|
+
* @private
|
|
1148
|
+
* @param {Object} symbol The symbol object to clone.
|
|
1149
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
1150
|
+
*/
|
|
1151
|
+
function cloneSymbol(symbol) {
|
|
1152
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1153
|
+
}
|
|
1154
|
+
//#endregion
|
|
1155
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
1156
|
+
/**
|
|
1157
|
+
* Creates a clone of `typedArray`.
|
|
1158
|
+
*
|
|
1159
|
+
* @private
|
|
1160
|
+
* @param {Object} typedArray The typed array to clone.
|
|
1161
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1162
|
+
* @returns {Object} Returns the cloned typed array.
|
|
1163
|
+
*/
|
|
1164
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1165
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1166
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1167
|
+
}
|
|
1168
|
+
//#endregion
|
|
1169
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
1170
|
+
/** `Object#toString` result references. */
|
|
1171
|
+
var boolTag$1 = "[object Boolean]";
|
|
1172
|
+
var dateTag$1 = "[object Date]";
|
|
1173
|
+
var mapTag$2 = "[object Map]";
|
|
1174
|
+
var numberTag$1 = "[object Number]";
|
|
1175
|
+
var regexpTag$1 = "[object RegExp]";
|
|
1176
|
+
var setTag$2 = "[object Set]";
|
|
1177
|
+
var stringTag$1 = "[object String]";
|
|
1178
|
+
var symbolTag$1 = "[object Symbol]";
|
|
1179
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]";
|
|
1180
|
+
var dataViewTag$1 = "[object DataView]";
|
|
1181
|
+
var float32Tag$1 = "[object Float32Array]";
|
|
1182
|
+
var float64Tag$1 = "[object Float64Array]";
|
|
1183
|
+
var int8Tag$1 = "[object Int8Array]";
|
|
1184
|
+
var int16Tag$1 = "[object Int16Array]";
|
|
1185
|
+
var int32Tag$1 = "[object Int32Array]";
|
|
1186
|
+
var uint8Tag$1 = "[object Uint8Array]";
|
|
1187
|
+
var uint8ClampedTag$1 = "[object Uint8ClampedArray]";
|
|
1188
|
+
var uint16Tag$1 = "[object Uint16Array]";
|
|
1189
|
+
var uint32Tag$1 = "[object Uint32Array]";
|
|
1190
|
+
/**
|
|
1191
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
1192
|
+
*
|
|
1193
|
+
* **Note:** This function only supports cloning values with tags of
|
|
1194
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
1195
|
+
*
|
|
1196
|
+
* @private
|
|
1197
|
+
* @param {Object} object The object to clone.
|
|
1198
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1199
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1200
|
+
* @returns {Object} Returns the initialized clone.
|
|
1201
|
+
*/
|
|
1202
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
1203
|
+
var Ctor = object.constructor;
|
|
1204
|
+
switch (tag) {
|
|
1205
|
+
case arrayBufferTag$1: return cloneArrayBuffer(object);
|
|
1206
|
+
case boolTag$1:
|
|
1207
|
+
case dateTag$1: return new Ctor(+object);
|
|
1208
|
+
case dataViewTag$1: return cloneDataView(object, isDeep);
|
|
1209
|
+
case float32Tag$1:
|
|
1210
|
+
case float64Tag$1:
|
|
1211
|
+
case int8Tag$1:
|
|
1212
|
+
case int16Tag$1:
|
|
1213
|
+
case int32Tag$1:
|
|
1214
|
+
case uint8Tag$1:
|
|
1215
|
+
case uint8ClampedTag$1:
|
|
1216
|
+
case uint16Tag$1:
|
|
1217
|
+
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1218
|
+
case mapTag$2: return new Ctor();
|
|
1219
|
+
case numberTag$1:
|
|
1220
|
+
case stringTag$1: return new Ctor(object);
|
|
1221
|
+
case regexpTag$1: return cloneRegExp(object);
|
|
1222
|
+
case setTag$2: return new Ctor();
|
|
1223
|
+
case symbolTag$1: return cloneSymbol(object);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
1228
|
+
/**
|
|
1229
|
+
* Initializes an object clone.
|
|
1230
|
+
*
|
|
1231
|
+
* @private
|
|
1232
|
+
* @param {Object} object The object to clone.
|
|
1233
|
+
* @returns {Object} Returns the initialized clone.
|
|
1234
|
+
*/
|
|
1235
|
+
function initCloneObject(object) {
|
|
1236
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1237
|
+
}
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
1240
|
+
/** `Object#toString` result references. */
|
|
1241
|
+
var mapTag$1 = "[object Map]";
|
|
1242
|
+
/**
|
|
1243
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
1244
|
+
*
|
|
1245
|
+
* @private
|
|
1246
|
+
* @param {*} value The value to check.
|
|
1247
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1248
|
+
*/
|
|
1249
|
+
function baseIsMap(value) {
|
|
1250
|
+
return isObjectLike(value) && _getTag_default(value) == mapTag$1;
|
|
1251
|
+
}
|
|
1252
|
+
//#endregion
|
|
1253
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
1254
|
+
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1255
|
+
/**
|
|
1256
|
+
* Checks if `value` is classified as a `Map` object.
|
|
1257
|
+
*
|
|
1258
|
+
* @static
|
|
1259
|
+
* @memberOf _
|
|
1260
|
+
* @since 4.3.0
|
|
1261
|
+
* @category Lang
|
|
1262
|
+
* @param {*} value The value to check.
|
|
1263
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1264
|
+
* @example
|
|
1265
|
+
*
|
|
1266
|
+
* _.isMap(new Map);
|
|
1267
|
+
* // => true
|
|
1268
|
+
*
|
|
1269
|
+
* _.isMap(new WeakMap);
|
|
1270
|
+
* // => false
|
|
1271
|
+
*/
|
|
1272
|
+
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1273
|
+
//#endregion
|
|
1274
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
1275
|
+
/** `Object#toString` result references. */
|
|
1276
|
+
var setTag$1 = "[object Set]";
|
|
1277
|
+
/**
|
|
1278
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1279
|
+
*
|
|
1280
|
+
* @private
|
|
1281
|
+
* @param {*} value The value to check.
|
|
1282
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1283
|
+
*/
|
|
1284
|
+
function baseIsSet(value) {
|
|
1285
|
+
return isObjectLike(value) && _getTag_default(value) == setTag$1;
|
|
1286
|
+
}
|
|
1287
|
+
//#endregion
|
|
1288
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
1289
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1290
|
+
/**
|
|
1291
|
+
* Checks if `value` is classified as a `Set` object.
|
|
1292
|
+
*
|
|
1293
|
+
* @static
|
|
1294
|
+
* @memberOf _
|
|
1295
|
+
* @since 4.3.0
|
|
1296
|
+
* @category Lang
|
|
1297
|
+
* @param {*} value The value to check.
|
|
1298
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1299
|
+
* @example
|
|
1300
|
+
*
|
|
1301
|
+
* _.isSet(new Set);
|
|
1302
|
+
* // => true
|
|
1303
|
+
*
|
|
1304
|
+
* _.isSet(new WeakSet);
|
|
1305
|
+
* // => false
|
|
1306
|
+
*/
|
|
1307
|
+
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1308
|
+
//#endregion
|
|
1309
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
1310
|
+
/** Used to compose bitmasks for cloning. */
|
|
1311
|
+
var CLONE_DEEP_FLAG$2 = 1;
|
|
1312
|
+
var CLONE_FLAT_FLAG$1 = 2;
|
|
1313
|
+
var CLONE_SYMBOLS_FLAG$2 = 4;
|
|
1314
|
+
/** `Object#toString` result references. */
|
|
1315
|
+
var argsTag = "[object Arguments]";
|
|
1316
|
+
var arrayTag = "[object Array]";
|
|
1317
|
+
var boolTag = "[object Boolean]";
|
|
1318
|
+
var dateTag = "[object Date]";
|
|
1319
|
+
var errorTag = "[object Error]";
|
|
1320
|
+
var funcTag = "[object Function]";
|
|
1321
|
+
var genTag = "[object GeneratorFunction]";
|
|
1322
|
+
var mapTag = "[object Map]";
|
|
1323
|
+
var numberTag = "[object Number]";
|
|
1324
|
+
var objectTag = "[object Object]";
|
|
1325
|
+
var regexpTag = "[object RegExp]";
|
|
1326
|
+
var setTag = "[object Set]";
|
|
1327
|
+
var stringTag = "[object String]";
|
|
1328
|
+
var symbolTag = "[object Symbol]";
|
|
1329
|
+
var weakMapTag = "[object WeakMap]";
|
|
1330
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1331
|
+
var dataViewTag = "[object DataView]";
|
|
1332
|
+
var float32Tag = "[object Float32Array]";
|
|
1333
|
+
var float64Tag = "[object Float64Array]";
|
|
1334
|
+
var int8Tag = "[object Int8Array]";
|
|
1335
|
+
var int16Tag = "[object Int16Array]";
|
|
1336
|
+
var int32Tag = "[object Int32Array]";
|
|
1337
|
+
var uint8Tag = "[object Uint8Array]";
|
|
1338
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
1339
|
+
var uint16Tag = "[object Uint16Array]";
|
|
1340
|
+
var uint32Tag = "[object Uint32Array]";
|
|
1341
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
1342
|
+
var cloneableTags = {};
|
|
1343
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1344
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1345
|
+
/**
|
|
1346
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
1347
|
+
* traversed objects.
|
|
1348
|
+
*
|
|
1349
|
+
* @private
|
|
1350
|
+
* @param {*} value The value to clone.
|
|
1351
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
1352
|
+
* 1 - Deep clone
|
|
1353
|
+
* 2 - Flatten inherited properties
|
|
1354
|
+
* 4 - Clone symbols
|
|
1355
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
1356
|
+
* @param {string} [key] The key of `value`.
|
|
1357
|
+
* @param {Object} [object] The parent object of `value`.
|
|
1358
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
1359
|
+
* @returns {*} Returns the cloned value.
|
|
1360
|
+
*/
|
|
1361
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1362
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$2, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
|
|
1363
|
+
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1364
|
+
if (result !== void 0) return result;
|
|
1365
|
+
if (!isObject$1(value)) return value;
|
|
1366
|
+
var isArr = isArray(value);
|
|
1367
|
+
if (isArr) {
|
|
1368
|
+
result = initCloneArray(value);
|
|
1369
|
+
if (!isDeep) return copyArray(value, result);
|
|
1370
|
+
} else {
|
|
1371
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
1372
|
+
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
1373
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
1374
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
1375
|
+
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1376
|
+
} else {
|
|
1377
|
+
if (!cloneableTags[tag]) return object ? value : {};
|
|
1378
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
stack || (stack = new Stack());
|
|
1382
|
+
var stacked = stack.get(value);
|
|
1383
|
+
if (stacked) return stacked;
|
|
1384
|
+
stack.set(value, result);
|
|
1385
|
+
if (isSet(value)) value.forEach(function(subValue) {
|
|
1386
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1387
|
+
});
|
|
1388
|
+
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
1389
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1390
|
+
});
|
|
1391
|
+
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
1392
|
+
arrayEach(props || value, function(subValue, key) {
|
|
1393
|
+
if (props) {
|
|
1394
|
+
key = subValue;
|
|
1395
|
+
subValue = value[key];
|
|
1396
|
+
}
|
|
1397
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
1398
|
+
});
|
|
1399
|
+
return result;
|
|
1400
|
+
}
|
|
1401
|
+
//#endregion
|
|
1402
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
1403
|
+
/** Used to compose bitmasks for cloning. */
|
|
1404
|
+
var CLONE_DEEP_FLAG$1 = 1;
|
|
1405
|
+
var CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1406
|
+
/**
|
|
1407
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1408
|
+
*
|
|
1409
|
+
* @static
|
|
1410
|
+
* @memberOf _
|
|
1411
|
+
* @since 1.0.0
|
|
1412
|
+
* @category Lang
|
|
1413
|
+
* @param {*} value The value to recursively clone.
|
|
1414
|
+
* @returns {*} Returns the deep cloned value.
|
|
1415
|
+
* @see _.clone
|
|
1416
|
+
* @example
|
|
1417
|
+
*
|
|
1418
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
1419
|
+
*
|
|
1420
|
+
* var deep = _.cloneDeep(objects);
|
|
1421
|
+
* console.log(deep[0] === objects[0]);
|
|
1422
|
+
* // => false
|
|
1423
|
+
*/
|
|
1424
|
+
function cloneDeep(value) {
|
|
1425
|
+
return baseClone(value, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$1);
|
|
1426
|
+
}
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
|
|
1429
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
1430
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
1431
|
+
var COMPARE_UNORDERED_FLAG$1 = 2;
|
|
1432
|
+
/**
|
|
1433
|
+
* The base implementation of `_.isMatch` without support for iteratee shorthands.
|
|
1434
|
+
*
|
|
1435
|
+
* @private
|
|
1436
|
+
* @param {Object} object The object to inspect.
|
|
1437
|
+
* @param {Object} source The object of property values to match.
|
|
1438
|
+
* @param {Array} matchData The property names, values, and compare flags to match.
|
|
1439
|
+
* @param {Function} [customizer] The function to customize comparisons.
|
|
1440
|
+
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
1441
|
+
*/
|
|
1442
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
1443
|
+
var index = matchData.length, length = index;
|
|
1444
|
+
if (object == null) return !length;
|
|
1445
|
+
object = Object(object);
|
|
1446
|
+
while (index--) {
|
|
1447
|
+
var data = matchData[index];
|
|
1448
|
+
if (data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
|
|
1449
|
+
}
|
|
1450
|
+
while (++index < length) {
|
|
1451
|
+
data = matchData[index];
|
|
1452
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1453
|
+
if (data[2]) {
|
|
1454
|
+
if (objValue === void 0 && !(key in object)) return false;
|
|
1455
|
+
} else {
|
|
1456
|
+
var stack = new Stack();
|
|
1457
|
+
var result;
|
|
1458
|
+
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) return false;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
return true;
|
|
1462
|
+
}
|
|
1463
|
+
//#endregion
|
|
1464
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
|
|
1465
|
+
/**
|
|
1466
|
+
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
1467
|
+
*
|
|
1468
|
+
* @private
|
|
1469
|
+
* @param {*} value The value to check.
|
|
1470
|
+
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
1471
|
+
* equality comparisons, else `false`.
|
|
1472
|
+
*/
|
|
1473
|
+
function isStrictComparable(value) {
|
|
1474
|
+
return value === value && !isObject$1(value);
|
|
1475
|
+
}
|
|
1476
|
+
//#endregion
|
|
1477
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
|
|
1478
|
+
/**
|
|
1479
|
+
* Gets the property names, values, and compare flags of `object`.
|
|
1480
|
+
*
|
|
1481
|
+
* @private
|
|
1482
|
+
* @param {Object} object The object to query.
|
|
1483
|
+
* @returns {Array} Returns the match data of `object`.
|
|
1484
|
+
*/
|
|
1485
|
+
function getMatchData(object) {
|
|
1486
|
+
var result = keys(object), length = result.length;
|
|
1487
|
+
while (length--) {
|
|
1488
|
+
var key = result[length], value = object[key];
|
|
1489
|
+
result[length] = [
|
|
1490
|
+
key,
|
|
1491
|
+
value,
|
|
1492
|
+
isStrictComparable(value)
|
|
1493
|
+
];
|
|
1494
|
+
}
|
|
1495
|
+
return result;
|
|
1496
|
+
}
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
|
|
1499
|
+
/**
|
|
1500
|
+
* A specialized version of `matchesProperty` for source values suitable
|
|
1501
|
+
* for strict equality comparisons, i.e. `===`.
|
|
1502
|
+
*
|
|
1503
|
+
* @private
|
|
1504
|
+
* @param {string} key The key of the property to get.
|
|
1505
|
+
* @param {*} srcValue The value to match.
|
|
1506
|
+
* @returns {Function} Returns the new spec function.
|
|
1507
|
+
*/
|
|
1508
|
+
function matchesStrictComparable(key, srcValue) {
|
|
1509
|
+
return function(object) {
|
|
1510
|
+
if (object == null) return false;
|
|
1511
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
//#endregion
|
|
1515
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
|
|
1516
|
+
/**
|
|
1517
|
+
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
1518
|
+
*
|
|
1519
|
+
* @private
|
|
1520
|
+
* @param {Object} source The object of property values to match.
|
|
1521
|
+
* @returns {Function} Returns the new spec function.
|
|
1522
|
+
*/
|
|
1523
|
+
function baseMatches(source) {
|
|
1524
|
+
var matchData = getMatchData(source);
|
|
1525
|
+
if (matchData.length == 1 && matchData[0][2]) return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
1526
|
+
return function(object) {
|
|
1527
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
1528
|
+
};
|
|
1529
|
+
}
|
|
1530
|
+
//#endregion
|
|
1531
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
|
|
1532
|
+
/** Used to compose bitmasks for value comparisons. */
|
|
1533
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1534
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
1535
|
+
/**
|
|
1536
|
+
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
|
1537
|
+
*
|
|
1538
|
+
* @private
|
|
1539
|
+
* @param {string} path The path of the property to get.
|
|
1540
|
+
* @param {*} srcValue The value to match.
|
|
1541
|
+
* @returns {Function} Returns the new spec function.
|
|
1542
|
+
*/
|
|
1543
|
+
function baseMatchesProperty(path, srcValue) {
|
|
1544
|
+
if (isKey(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey(path), srcValue);
|
|
1545
|
+
return function(object) {
|
|
1546
|
+
var objValue = get$1(object, path);
|
|
1547
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
//#endregion
|
|
1551
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js
|
|
1552
|
+
/**
|
|
1553
|
+
* The base implementation of `_.property` without support for deep paths.
|
|
1554
|
+
*
|
|
1555
|
+
* @private
|
|
1556
|
+
* @param {string} key The key of the property to get.
|
|
1557
|
+
* @returns {Function} Returns the new accessor function.
|
|
1558
|
+
*/
|
|
1559
|
+
function baseProperty(key) {
|
|
1560
|
+
return function(object) {
|
|
1561
|
+
return object == null ? void 0 : object[key];
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
|
|
1566
|
+
/**
|
|
1567
|
+
* A specialized version of `baseProperty` which supports deep paths.
|
|
1568
|
+
*
|
|
1569
|
+
* @private
|
|
1570
|
+
* @param {Array|string} path The path of the property to get.
|
|
1571
|
+
* @returns {Function} Returns the new accessor function.
|
|
1572
|
+
*/
|
|
1573
|
+
function basePropertyDeep(path) {
|
|
1574
|
+
return function(object) {
|
|
1575
|
+
return baseGet(object, path);
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.js
|
|
1580
|
+
/**
|
|
1581
|
+
* Creates a function that returns the value at `path` of a given object.
|
|
1582
|
+
*
|
|
1583
|
+
* @static
|
|
1584
|
+
* @memberOf _
|
|
1585
|
+
* @since 2.4.0
|
|
1586
|
+
* @category Util
|
|
1587
|
+
* @param {Array|string} path The path of the property to get.
|
|
1588
|
+
* @returns {Function} Returns the new accessor function.
|
|
1589
|
+
* @example
|
|
1590
|
+
*
|
|
1591
|
+
* var objects = [
|
|
1592
|
+
* { 'a': { 'b': 2 } },
|
|
1593
|
+
* { 'a': { 'b': 1 } }
|
|
1594
|
+
* ];
|
|
1595
|
+
*
|
|
1596
|
+
* _.map(objects, _.property('a.b'));
|
|
1597
|
+
* // => [2, 1]
|
|
1598
|
+
*
|
|
1599
|
+
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
1600
|
+
* // => [1, 2]
|
|
1601
|
+
*/
|
|
1602
|
+
function property(path) {
|
|
1603
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
1604
|
+
}
|
|
1605
|
+
//#endregion
|
|
1606
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
|
|
1607
|
+
/**
|
|
1608
|
+
* The base implementation of `_.iteratee`.
|
|
1609
|
+
*
|
|
1610
|
+
* @private
|
|
1611
|
+
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
1612
|
+
* @returns {Function} Returns the iteratee.
|
|
1613
|
+
*/
|
|
1614
|
+
function baseIteratee(value) {
|
|
1615
|
+
if (typeof value == "function") return value;
|
|
1616
|
+
if (value == null) return identity;
|
|
1617
|
+
if (typeof value == "object") return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1618
|
+
return property(value);
|
|
1619
|
+
}
|
|
1620
|
+
//#endregion
|
|
1621
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js
|
|
1622
|
+
/**
|
|
1623
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1624
|
+
* is an object.
|
|
1625
|
+
*
|
|
1626
|
+
* @static
|
|
1627
|
+
* @memberOf _
|
|
1628
|
+
* @since 4.0.0
|
|
1629
|
+
* @category Lang
|
|
1630
|
+
* @param {*} value The value to check.
|
|
1631
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1632
|
+
* else `false`.
|
|
1633
|
+
* @example
|
|
1634
|
+
*
|
|
1635
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
1636
|
+
* // => true
|
|
1637
|
+
*
|
|
1638
|
+
* _.isArrayLikeObject(document.body.children);
|
|
1639
|
+
* // => true
|
|
1640
|
+
*
|
|
1641
|
+
* _.isArrayLikeObject('abc');
|
|
1642
|
+
* // => false
|
|
1643
|
+
*
|
|
1644
|
+
* _.isArrayLikeObject(_.noop);
|
|
1645
|
+
* // => false
|
|
1646
|
+
*/
|
|
1647
|
+
function isArrayLikeObject(value) {
|
|
1648
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
1649
|
+
}
|
|
1650
|
+
//#endregion
|
|
1651
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js
|
|
1652
|
+
/**
|
|
1653
|
+
* Gets the last element of `array`.
|
|
1654
|
+
*
|
|
1655
|
+
* @static
|
|
1656
|
+
* @memberOf _
|
|
1657
|
+
* @since 0.1.0
|
|
1658
|
+
* @category Array
|
|
1659
|
+
* @param {Array} array The array to query.
|
|
1660
|
+
* @returns {*} Returns the last element of `array`.
|
|
1661
|
+
* @example
|
|
1662
|
+
*
|
|
1663
|
+
* _.last([1, 2, 3]);
|
|
1664
|
+
* // => 3
|
|
1665
|
+
*/
|
|
1666
|
+
function last(array) {
|
|
1667
|
+
var length = array == null ? 0 : array.length;
|
|
1668
|
+
return length ? array[length - 1] : void 0;
|
|
1669
|
+
}
|
|
1670
|
+
//#endregion
|
|
1671
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js
|
|
1672
|
+
/**
|
|
1673
|
+
* Creates a `_.find` or `_.findLast` function.
|
|
1674
|
+
*
|
|
1675
|
+
* @private
|
|
1676
|
+
* @param {Function} findIndexFunc The function to find the collection index.
|
|
1677
|
+
* @returns {Function} Returns the new find function.
|
|
1678
|
+
*/
|
|
1679
|
+
function createFind(findIndexFunc) {
|
|
1680
|
+
return function(collection, predicate, fromIndex) {
|
|
1681
|
+
var iterable = Object(collection);
|
|
1682
|
+
if (!isArrayLike(collection)) {
|
|
1683
|
+
var iteratee = baseIteratee(predicate);
|
|
1684
|
+
collection = keys(collection);
|
|
1685
|
+
predicate = function(key) {
|
|
1686
|
+
return iteratee(iterable[key], key, iterable);
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
1690
|
+
return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
|
|
1691
|
+
};
|
|
1692
|
+
}
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js
|
|
1695
|
+
var nativeMax = Math.max;
|
|
1696
|
+
/**
|
|
1697
|
+
* This method is like `_.find` except that it returns the index of the first
|
|
1698
|
+
* element `predicate` returns truthy for instead of the element itself.
|
|
1699
|
+
*
|
|
1700
|
+
* @static
|
|
1701
|
+
* @memberOf _
|
|
1702
|
+
* @since 1.1.0
|
|
1703
|
+
* @category Array
|
|
1704
|
+
* @param {Array} array The array to inspect.
|
|
1705
|
+
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
1706
|
+
* @param {number} [fromIndex=0] The index to search from.
|
|
1707
|
+
* @returns {number} Returns the index of the found element, else `-1`.
|
|
1708
|
+
* @example
|
|
1709
|
+
*
|
|
1710
|
+
* var users = [
|
|
1711
|
+
* { 'user': 'barney', 'active': false },
|
|
1712
|
+
* { 'user': 'fred', 'active': false },
|
|
1713
|
+
* { 'user': 'pebbles', 'active': true }
|
|
1714
|
+
* ];
|
|
1715
|
+
*
|
|
1716
|
+
* _.findIndex(users, function(o) { return o.user == 'barney'; });
|
|
1717
|
+
* // => 0
|
|
1718
|
+
*
|
|
1719
|
+
* // The `_.matches` iteratee shorthand.
|
|
1720
|
+
* _.findIndex(users, { 'user': 'fred', 'active': false });
|
|
1721
|
+
* // => 1
|
|
1722
|
+
*
|
|
1723
|
+
* // The `_.matchesProperty` iteratee shorthand.
|
|
1724
|
+
* _.findIndex(users, ['active', false]);
|
|
1725
|
+
* // => 0
|
|
1726
|
+
*
|
|
1727
|
+
* // The `_.property` iteratee shorthand.
|
|
1728
|
+
* _.findIndex(users, 'active');
|
|
1729
|
+
* // => 2
|
|
1730
|
+
*/
|
|
1731
|
+
function findIndex(array, predicate, fromIndex) {
|
|
1732
|
+
var length = array == null ? 0 : array.length;
|
|
1733
|
+
if (!length) return -1;
|
|
1734
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
1735
|
+
if (index < 0) index = nativeMax(length + index, 0);
|
|
1736
|
+
return baseFindIndex(array, baseIteratee(predicate), index);
|
|
1737
|
+
}
|
|
1738
|
+
//#endregion
|
|
1739
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/find.js
|
|
1740
|
+
/**
|
|
1741
|
+
* Iterates over elements of `collection`, returning the first element
|
|
1742
|
+
* `predicate` returns truthy for. The predicate is invoked with three
|
|
1743
|
+
* arguments: (value, index|key, collection).
|
|
1744
|
+
*
|
|
1745
|
+
* @static
|
|
1746
|
+
* @memberOf _
|
|
1747
|
+
* @since 0.1.0
|
|
1748
|
+
* @category Collection
|
|
1749
|
+
* @param {Array|Object} collection The collection to inspect.
|
|
1750
|
+
* @param {Function} [predicate=_.identity] The function invoked per iteration.
|
|
1751
|
+
* @param {number} [fromIndex=0] The index to search from.
|
|
1752
|
+
* @returns {*} Returns the matched element, else `undefined`.
|
|
1753
|
+
* @example
|
|
1754
|
+
*
|
|
1755
|
+
* var users = [
|
|
1756
|
+
* { 'user': 'barney', 'age': 36, 'active': true },
|
|
1757
|
+
* { 'user': 'fred', 'age': 40, 'active': false },
|
|
1758
|
+
* { 'user': 'pebbles', 'age': 1, 'active': true }
|
|
1759
|
+
* ];
|
|
1760
|
+
*
|
|
1761
|
+
* _.find(users, function(o) { return o.age < 40; });
|
|
1762
|
+
* // => object for 'barney'
|
|
1763
|
+
*
|
|
1764
|
+
* // The `_.matches` iteratee shorthand.
|
|
1765
|
+
* _.find(users, { 'age': 1, 'active': true });
|
|
1766
|
+
* // => object for 'pebbles'
|
|
1767
|
+
*
|
|
1768
|
+
* // The `_.matchesProperty` iteratee shorthand.
|
|
1769
|
+
* _.find(users, ['active', false]);
|
|
1770
|
+
* // => object for 'fred'
|
|
1771
|
+
*
|
|
1772
|
+
* // The `_.property` iteratee shorthand.
|
|
1773
|
+
* _.find(users, 'active');
|
|
1774
|
+
* // => object for 'barney'
|
|
1775
|
+
*/
|
|
1776
|
+
var find = createFind(findIndex);
|
|
1777
|
+
//#endregion
|
|
1778
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIntersection.js
|
|
1779
|
+
var nativeMin = Math.min;
|
|
1780
|
+
/**
|
|
1781
|
+
* The base implementation of methods like `_.intersection`, without support
|
|
1782
|
+
* for iteratee shorthands, that accepts an array of arrays to inspect.
|
|
1783
|
+
*
|
|
1784
|
+
* @private
|
|
1785
|
+
* @param {Array} arrays The arrays to inspect.
|
|
1786
|
+
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
1787
|
+
* @param {Function} [comparator] The comparator invoked per element.
|
|
1788
|
+
* @returns {Array} Returns the new array of shared values.
|
|
1789
|
+
*/
|
|
1790
|
+
function baseIntersection(arrays, iteratee, comparator) {
|
|
1791
|
+
var includes = arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = Infinity, result = [];
|
|
1792
|
+
while (othIndex--) {
|
|
1793
|
+
var array = arrays[othIndex];
|
|
1794
|
+
maxLength = nativeMin(array.length, maxLength);
|
|
1795
|
+
caches[othIndex] = (length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : void 0;
|
|
1796
|
+
}
|
|
1797
|
+
array = arrays[0];
|
|
1798
|
+
var index = -1, seen = caches[0];
|
|
1799
|
+
outer: while (++index < length && result.length < maxLength) {
|
|
1800
|
+
var value = array[index], computed = value;
|
|
1801
|
+
value = value !== 0 ? value : 0;
|
|
1802
|
+
if (!(seen ? cacheHas(seen, computed) : includes(result, computed))) {
|
|
1803
|
+
othIndex = othLength;
|
|
1804
|
+
while (--othIndex) {
|
|
1805
|
+
var cache = caches[othIndex];
|
|
1806
|
+
if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed))) continue outer;
|
|
1807
|
+
}
|
|
1808
|
+
if (seen) seen.push(computed);
|
|
1809
|
+
result.push(value);
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
return result;
|
|
1813
|
+
}
|
|
1814
|
+
//#endregion
|
|
1815
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castArrayLikeObject.js
|
|
1816
|
+
/**
|
|
1817
|
+
* Casts `value` to an empty array if it's not an array like object.
|
|
1818
|
+
*
|
|
1819
|
+
* @private
|
|
1820
|
+
* @param {*} value The value to inspect.
|
|
1821
|
+
* @returns {Array|Object} Returns the cast array-like object.
|
|
1822
|
+
*/
|
|
1823
|
+
function castArrayLikeObject(value) {
|
|
1824
|
+
return isArrayLikeObject(value) ? value : [];
|
|
1825
|
+
}
|
|
1826
|
+
//#endregion
|
|
1827
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/intersection.js
|
|
1828
|
+
/**
|
|
1829
|
+
* Creates an array of unique values that are included in all given arrays
|
|
1830
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1831
|
+
* for equality comparisons. The order and references of result values are
|
|
1832
|
+
* determined by the first array.
|
|
1833
|
+
*
|
|
1834
|
+
* @static
|
|
1835
|
+
* @memberOf _
|
|
1836
|
+
* @since 0.1.0
|
|
1837
|
+
* @category Array
|
|
1838
|
+
* @param {...Array} [arrays] The arrays to inspect.
|
|
1839
|
+
* @returns {Array} Returns the new array of intersecting values.
|
|
1840
|
+
* @example
|
|
1841
|
+
*
|
|
1842
|
+
* _.intersection([2, 1], [2, 3]);
|
|
1843
|
+
* // => [2]
|
|
1844
|
+
*/
|
|
1845
|
+
var intersection = baseRest(function(arrays) {
|
|
1846
|
+
var mapped = arrayMap(arrays, castArrayLikeObject);
|
|
1847
|
+
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : [];
|
|
1848
|
+
});
|
|
1849
|
+
//#endregion
|
|
1850
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.js
|
|
1851
|
+
/**
|
|
1852
|
+
* Gets the parent value at `path` of `object`.
|
|
1853
|
+
*
|
|
1854
|
+
* @private
|
|
1855
|
+
* @param {Object} object The object to query.
|
|
1856
|
+
* @param {Array} path The path to get the parent value of.
|
|
1857
|
+
* @returns {*} Returns the parent value.
|
|
1858
|
+
*/
|
|
1859
|
+
function parent(object, path) {
|
|
1860
|
+
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
1861
|
+
}
|
|
1862
|
+
//#endregion
|
|
1863
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.js
|
|
1864
|
+
/** Used to check objects for own properties. */
|
|
1865
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1866
|
+
/**
|
|
1867
|
+
* The base implementation of `_.unset`.
|
|
1868
|
+
*
|
|
1869
|
+
* @private
|
|
1870
|
+
* @param {Object} object The object to modify.
|
|
1871
|
+
* @param {Array|string} path The property path to unset.
|
|
1872
|
+
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
|
1873
|
+
*/
|
|
1874
|
+
function baseUnset(object, path) {
|
|
1875
|
+
path = castPath(path, object);
|
|
1876
|
+
var index = -1, length = path.length;
|
|
1877
|
+
if (!length) return true;
|
|
1878
|
+
while (++index < length) {
|
|
1879
|
+
var key = toKey(path[index]);
|
|
1880
|
+
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) return false;
|
|
1881
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) return false;
|
|
1882
|
+
}
|
|
1883
|
+
var obj = parent(object, path);
|
|
1884
|
+
return obj == null || delete obj[toKey(last(path))];
|
|
1885
|
+
}
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.js
|
|
1888
|
+
/**
|
|
1889
|
+
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
|
1890
|
+
* objects.
|
|
1891
|
+
*
|
|
1892
|
+
* @private
|
|
1893
|
+
* @param {*} value The value to inspect.
|
|
1894
|
+
* @param {string} key The key of the property to inspect.
|
|
1895
|
+
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
|
1896
|
+
*/
|
|
1897
|
+
function customOmitClone(value) {
|
|
1898
|
+
return isPlainObject(value) ? void 0 : value;
|
|
1899
|
+
}
|
|
1900
|
+
//#endregion
|
|
1901
|
+
//#region node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.js
|
|
1902
|
+
/** Used to compose bitmasks for cloning. */
|
|
1903
|
+
var CLONE_DEEP_FLAG = 1;
|
|
1904
|
+
var CLONE_FLAT_FLAG = 2;
|
|
1905
|
+
var CLONE_SYMBOLS_FLAG = 4;
|
|
1906
|
+
/**
|
|
1907
|
+
* The opposite of `_.pick`; this method creates an object composed of the
|
|
1908
|
+
* own and inherited enumerable property paths of `object` that are not omitted.
|
|
1909
|
+
*
|
|
1910
|
+
* **Note:** This method is considerably slower than `_.pick`.
|
|
1911
|
+
*
|
|
1912
|
+
* @static
|
|
1913
|
+
* @since 0.1.0
|
|
1914
|
+
* @memberOf _
|
|
1915
|
+
* @category Object
|
|
1916
|
+
* @param {Object} object The source object.
|
|
1917
|
+
* @param {...(string|string[])} [paths] The property paths to omit.
|
|
1918
|
+
* @returns {Object} Returns the new object.
|
|
1919
|
+
* @example
|
|
1920
|
+
*
|
|
1921
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
1922
|
+
*
|
|
1923
|
+
* _.omit(object, ['a', 'c']);
|
|
1924
|
+
* // => { 'b': '2' }
|
|
1925
|
+
*/
|
|
1926
|
+
var omit = flatRest(function(object, paths) {
|
|
1927
|
+
var result = {};
|
|
1928
|
+
if (object == null) return result;
|
|
1929
|
+
var isDeep = false;
|
|
1930
|
+
paths = arrayMap(paths, function(path) {
|
|
1931
|
+
path = castPath(path, object);
|
|
1932
|
+
isDeep || (isDeep = path.length > 1);
|
|
1933
|
+
return path;
|
|
1934
|
+
});
|
|
1935
|
+
copyObject(object, getAllKeysIn(object), result);
|
|
1936
|
+
if (isDeep) result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
1937
|
+
var length = paths.length;
|
|
1938
|
+
while (length--) baseUnset(result, paths[length]);
|
|
1939
|
+
return result;
|
|
1940
|
+
});
|
|
1941
|
+
//#endregion
|
|
1942
|
+
//#region node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js
|
|
1943
|
+
function _extends() {
|
|
1944
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
1945
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
1946
|
+
var source = arguments[i];
|
|
1947
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
1948
|
+
}
|
|
1949
|
+
return target;
|
|
1950
|
+
};
|
|
1951
|
+
return _extends.apply(this, arguments);
|
|
1952
|
+
}
|
|
1953
|
+
function _inheritsLoose(subClass, superClass) {
|
|
1954
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
1955
|
+
subClass.prototype.constructor = subClass;
|
|
1956
|
+
_setPrototypeOf(subClass, superClass);
|
|
1957
|
+
}
|
|
1958
|
+
function _getPrototypeOf(o) {
|
|
1959
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
1960
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
1961
|
+
};
|
|
1962
|
+
return _getPrototypeOf(o);
|
|
1963
|
+
}
|
|
1964
|
+
function _setPrototypeOf(o, p) {
|
|
1965
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
1966
|
+
o.__proto__ = p;
|
|
1967
|
+
return o;
|
|
1968
|
+
};
|
|
1969
|
+
return _setPrototypeOf(o, p);
|
|
1970
|
+
}
|
|
1971
|
+
function _isNativeReflectConstruct() {
|
|
1972
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
1973
|
+
if (Reflect.construct.sham) return false;
|
|
1974
|
+
if (typeof Proxy === "function") return true;
|
|
1975
|
+
try {
|
|
1976
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1977
|
+
return true;
|
|
1978
|
+
} catch (e) {
|
|
1979
|
+
return false;
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
function _construct(Parent, args, Class) {
|
|
1983
|
+
if (_isNativeReflectConstruct()) _construct = Reflect.construct.bind();
|
|
1984
|
+
else _construct = function _construct(Parent, args, Class) {
|
|
1985
|
+
var a = [null];
|
|
1986
|
+
a.push.apply(a, args);
|
|
1987
|
+
var instance = new (Function.bind.apply(Parent, a))();
|
|
1988
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
1989
|
+
return instance;
|
|
1990
|
+
};
|
|
1991
|
+
return _construct.apply(null, arguments);
|
|
1992
|
+
}
|
|
1993
|
+
function _isNativeFunction(fn) {
|
|
1994
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
1995
|
+
}
|
|
1996
|
+
function _wrapNativeSuper(Class) {
|
|
1997
|
+
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1998
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
1999
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
2000
|
+
if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
|
|
2001
|
+
if (typeof _cache !== "undefined") {
|
|
2002
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
2003
|
+
_cache.set(Class, Wrapper);
|
|
2004
|
+
}
|
|
2005
|
+
function Wrapper() {
|
|
2006
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
2007
|
+
}
|
|
2008
|
+
Wrapper.prototype = Object.create(Class.prototype, { constructor: {
|
|
2009
|
+
value: Wrapper,
|
|
2010
|
+
enumerable: false,
|
|
2011
|
+
writable: true,
|
|
2012
|
+
configurable: true
|
|
2013
|
+
} });
|
|
2014
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
2015
|
+
};
|
|
2016
|
+
return _wrapNativeSuper(Class);
|
|
2017
|
+
}
|
|
2018
|
+
var formatRegExp = /%[sdj%]/g;
|
|
2019
|
+
var warning = function warning() {};
|
|
2020
|
+
if (typeof process !== "undefined" && process.env && false);
|
|
2021
|
+
function convertFieldsError(errors) {
|
|
2022
|
+
if (!errors || !errors.length) return null;
|
|
2023
|
+
var fields = {};
|
|
2024
|
+
errors.forEach(function(error) {
|
|
2025
|
+
var field = error.field;
|
|
2026
|
+
fields[field] = fields[field] || [];
|
|
2027
|
+
fields[field].push(error);
|
|
2028
|
+
});
|
|
2029
|
+
return fields;
|
|
2030
|
+
}
|
|
2031
|
+
function format(template) {
|
|
2032
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
|
2033
|
+
var i = 0;
|
|
2034
|
+
var len = args.length;
|
|
2035
|
+
if (typeof template === "function") return template.apply(null, args);
|
|
2036
|
+
if (typeof template === "string") return template.replace(formatRegExp, function(x) {
|
|
2037
|
+
if (x === "%%") return "%";
|
|
2038
|
+
if (i >= len) return x;
|
|
2039
|
+
switch (x) {
|
|
2040
|
+
case "%s": return String(args[i++]);
|
|
2041
|
+
case "%d": return Number(args[i++]);
|
|
2042
|
+
case "%j": try {
|
|
2043
|
+
return JSON.stringify(args[i++]);
|
|
2044
|
+
} catch (_) {
|
|
2045
|
+
return "[Circular]";
|
|
2046
|
+
}
|
|
2047
|
+
default: return x;
|
|
2048
|
+
}
|
|
2049
|
+
});
|
|
2050
|
+
return template;
|
|
2051
|
+
}
|
|
2052
|
+
function isNativeStringType(type) {
|
|
2053
|
+
return type === "string" || type === "url" || type === "hex" || type === "email" || type === "date" || type === "pattern";
|
|
2054
|
+
}
|
|
2055
|
+
function isEmptyValue(value, type) {
|
|
2056
|
+
if (value === void 0 || value === null) return true;
|
|
2057
|
+
if (type === "array" && Array.isArray(value) && !value.length) return true;
|
|
2058
|
+
if (isNativeStringType(type) && typeof value === "string" && !value) return true;
|
|
2059
|
+
return false;
|
|
2060
|
+
}
|
|
2061
|
+
function asyncParallelArray(arr, func, callback) {
|
|
2062
|
+
var results = [];
|
|
2063
|
+
var total = 0;
|
|
2064
|
+
var arrLength = arr.length;
|
|
2065
|
+
function count(errors) {
|
|
2066
|
+
results.push.apply(results, errors || []);
|
|
2067
|
+
total++;
|
|
2068
|
+
if (total === arrLength) callback(results);
|
|
2069
|
+
}
|
|
2070
|
+
arr.forEach(function(a) {
|
|
2071
|
+
func(a, count);
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
function asyncSerialArray(arr, func, callback) {
|
|
2075
|
+
var index = 0;
|
|
2076
|
+
var arrLength = arr.length;
|
|
2077
|
+
function next(errors) {
|
|
2078
|
+
if (errors && errors.length) {
|
|
2079
|
+
callback(errors);
|
|
2080
|
+
return;
|
|
2081
|
+
}
|
|
2082
|
+
var original = index;
|
|
2083
|
+
index = index + 1;
|
|
2084
|
+
if (original < arrLength) func(arr[original], next);
|
|
2085
|
+
else callback([]);
|
|
2086
|
+
}
|
|
2087
|
+
next([]);
|
|
2088
|
+
}
|
|
2089
|
+
function flattenObjArr(objArr) {
|
|
2090
|
+
var ret = [];
|
|
2091
|
+
Object.keys(objArr).forEach(function(k) {
|
|
2092
|
+
ret.push.apply(ret, objArr[k] || []);
|
|
2093
|
+
});
|
|
2094
|
+
return ret;
|
|
2095
|
+
}
|
|
2096
|
+
var AsyncValidationError = /*#__PURE__*/ function(_Error) {
|
|
2097
|
+
_inheritsLoose(AsyncValidationError, _Error);
|
|
2098
|
+
function AsyncValidationError(errors, fields) {
|
|
2099
|
+
var _this = _Error.call(this, "Async Validation Error") || this;
|
|
2100
|
+
_this.errors = errors;
|
|
2101
|
+
_this.fields = fields;
|
|
2102
|
+
return _this;
|
|
2103
|
+
}
|
|
2104
|
+
return AsyncValidationError;
|
|
2105
|
+
}(/*#__PURE__*/ _wrapNativeSuper(Error));
|
|
2106
|
+
function asyncMap(objArr, option, func, callback, source) {
|
|
2107
|
+
if (option.first) {
|
|
2108
|
+
var _pending = new Promise(function(resolve, reject) {
|
|
2109
|
+
asyncSerialArray(flattenObjArr(objArr), func, function next(errors) {
|
|
2110
|
+
callback(errors);
|
|
2111
|
+
return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);
|
|
2112
|
+
});
|
|
2113
|
+
});
|
|
2114
|
+
_pending["catch"](function(e) {
|
|
2115
|
+
return e;
|
|
2116
|
+
});
|
|
2117
|
+
return _pending;
|
|
2118
|
+
}
|
|
2119
|
+
var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];
|
|
2120
|
+
var objArrKeys = Object.keys(objArr);
|
|
2121
|
+
var objArrLength = objArrKeys.length;
|
|
2122
|
+
var total = 0;
|
|
2123
|
+
var results = [];
|
|
2124
|
+
var pending = new Promise(function(resolve, reject) {
|
|
2125
|
+
var next = function next(errors) {
|
|
2126
|
+
results.push.apply(results, errors);
|
|
2127
|
+
total++;
|
|
2128
|
+
if (total === objArrLength) {
|
|
2129
|
+
callback(results);
|
|
2130
|
+
return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);
|
|
2131
|
+
}
|
|
2132
|
+
};
|
|
2133
|
+
if (!objArrKeys.length) {
|
|
2134
|
+
callback(results);
|
|
2135
|
+
resolve(source);
|
|
2136
|
+
}
|
|
2137
|
+
objArrKeys.forEach(function(key) {
|
|
2138
|
+
var arr = objArr[key];
|
|
2139
|
+
if (firstFields.indexOf(key) !== -1) asyncSerialArray(arr, func, next);
|
|
2140
|
+
else asyncParallelArray(arr, func, next);
|
|
2141
|
+
});
|
|
2142
|
+
});
|
|
2143
|
+
pending["catch"](function(e) {
|
|
2144
|
+
return e;
|
|
2145
|
+
});
|
|
2146
|
+
return pending;
|
|
2147
|
+
}
|
|
2148
|
+
function isErrorObj(obj) {
|
|
2149
|
+
return !!(obj && obj.message !== void 0);
|
|
2150
|
+
}
|
|
2151
|
+
function getValue$1(value, path) {
|
|
2152
|
+
var v = value;
|
|
2153
|
+
for (var i = 0; i < path.length; i++) {
|
|
2154
|
+
if (v == void 0) return v;
|
|
2155
|
+
v = v[path[i]];
|
|
2156
|
+
}
|
|
2157
|
+
return v;
|
|
2158
|
+
}
|
|
2159
|
+
function complementError(rule, source) {
|
|
2160
|
+
return function(oe) {
|
|
2161
|
+
var fieldValue;
|
|
2162
|
+
if (rule.fullFields) fieldValue = getValue$1(source, rule.fullFields);
|
|
2163
|
+
else fieldValue = source[oe.field || rule.fullField];
|
|
2164
|
+
if (isErrorObj(oe)) {
|
|
2165
|
+
oe.field = oe.field || rule.fullField;
|
|
2166
|
+
oe.fieldValue = fieldValue;
|
|
2167
|
+
return oe;
|
|
2168
|
+
}
|
|
2169
|
+
return {
|
|
2170
|
+
message: typeof oe === "function" ? oe() : oe,
|
|
2171
|
+
fieldValue,
|
|
2172
|
+
field: oe.field || rule.fullField
|
|
2173
|
+
};
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
function deepMerge(target, source) {
|
|
2177
|
+
if (source) {
|
|
2178
|
+
for (var s in source) if (source.hasOwnProperty(s)) {
|
|
2179
|
+
var value = source[s];
|
|
2180
|
+
if (typeof value === "object" && typeof target[s] === "object") target[s] = _extends({}, target[s], value);
|
|
2181
|
+
else target[s] = value;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
return target;
|
|
2185
|
+
}
|
|
2186
|
+
var required$1 = function required(rule, value, source, errors, options, type) {
|
|
2187
|
+
if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) errors.push(format(options.messages.required, rule.fullField));
|
|
2188
|
+
};
|
|
2189
|
+
/**
|
|
2190
|
+
* Rule for validating whitespace.
|
|
2191
|
+
*
|
|
2192
|
+
* @param rule The validation rule.
|
|
2193
|
+
* @param value The value of the field on the source object.
|
|
2194
|
+
* @param source The source object being validated.
|
|
2195
|
+
* @param errors An array of errors that this rule may add
|
|
2196
|
+
* validation errors to.
|
|
2197
|
+
* @param options The validation options.
|
|
2198
|
+
* @param options.messages The validation messages.
|
|
2199
|
+
*/
|
|
2200
|
+
var whitespace = function whitespace(rule, value, source, errors, options) {
|
|
2201
|
+
if (/^\s+$/.test(value) || value === "") errors.push(format(options.messages.whitespace, rule.fullField));
|
|
2202
|
+
};
|
|
2203
|
+
var urlReg;
|
|
2204
|
+
var getUrlRegex = (function() {
|
|
2205
|
+
if (urlReg) return urlReg;
|
|
2206
|
+
var word = "[a-fA-F\\d:]";
|
|
2207
|
+
var b = function b(options) {
|
|
2208
|
+
return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : "";
|
|
2209
|
+
};
|
|
2210
|
+
var v4 = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}";
|
|
2211
|
+
var v6seg = "[a-fA-F\\d]{1,4}";
|
|
2212
|
+
var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
2213
|
+
var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
|
|
2214
|
+
var v4exact = new RegExp("^" + v4 + "$");
|
|
2215
|
+
var v6exact = new RegExp("^" + v6 + "$");
|
|
2216
|
+
var ip = function ip(options) {
|
|
2217
|
+
return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", "g");
|
|
2218
|
+
};
|
|
2219
|
+
ip.v4 = function(options) {
|
|
2220
|
+
return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), "g");
|
|
2221
|
+
};
|
|
2222
|
+
ip.v6 = function(options) {
|
|
2223
|
+
return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), "g");
|
|
2224
|
+
};
|
|
2225
|
+
var protocol = "(?:(?:[a-z]+:)?//)";
|
|
2226
|
+
var auth = "(?:\\S+(?::\\S*)?@)?";
|
|
2227
|
+
var ipv4 = ip.v4().source;
|
|
2228
|
+
var ipv6 = ip.v6().source;
|
|
2229
|
+
var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s\"]*)?";
|
|
2230
|
+
urlReg = new RegExp("(?:^" + regex + "$)", "i");
|
|
2231
|
+
return urlReg;
|
|
2232
|
+
});
|
|
2233
|
+
var pattern$2 = {
|
|
2234
|
+
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
2235
|
+
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
2236
|
+
};
|
|
2237
|
+
var types = {
|
|
2238
|
+
integer: function integer(value) {
|
|
2239
|
+
return types.number(value) && parseInt(value, 10) === value;
|
|
2240
|
+
},
|
|
2241
|
+
"float": function float(value) {
|
|
2242
|
+
return types.number(value) && !types.integer(value);
|
|
2243
|
+
},
|
|
2244
|
+
array: function array(value) {
|
|
2245
|
+
return Array.isArray(value);
|
|
2246
|
+
},
|
|
2247
|
+
regexp: function regexp(value) {
|
|
2248
|
+
if (value instanceof RegExp) return true;
|
|
2249
|
+
try {
|
|
2250
|
+
return !!new RegExp(value);
|
|
2251
|
+
} catch (e) {
|
|
2252
|
+
return false;
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
date: function date(value) {
|
|
2256
|
+
return typeof value.getTime === "function" && typeof value.getMonth === "function" && typeof value.getYear === "function" && !isNaN(value.getTime());
|
|
2257
|
+
},
|
|
2258
|
+
number: function number(value) {
|
|
2259
|
+
if (isNaN(value)) return false;
|
|
2260
|
+
return typeof value === "number";
|
|
2261
|
+
},
|
|
2262
|
+
object: function object(value) {
|
|
2263
|
+
return typeof value === "object" && !types.array(value);
|
|
2264
|
+
},
|
|
2265
|
+
method: function method(value) {
|
|
2266
|
+
return typeof value === "function";
|
|
2267
|
+
},
|
|
2268
|
+
email: function email(value) {
|
|
2269
|
+
return typeof value === "string" && value.length <= 320 && !!value.match(pattern$2.email);
|
|
2270
|
+
},
|
|
2271
|
+
url: function url(value) {
|
|
2272
|
+
return typeof value === "string" && value.length <= 2048 && !!value.match(getUrlRegex());
|
|
2273
|
+
},
|
|
2274
|
+
hex: function hex(value) {
|
|
2275
|
+
return typeof value === "string" && !!value.match(pattern$2.hex);
|
|
2276
|
+
}
|
|
2277
|
+
};
|
|
2278
|
+
var type$1 = function type(rule, value, source, errors, options) {
|
|
2279
|
+
if (rule.required && value === void 0) {
|
|
2280
|
+
required$1(rule, value, source, errors, options);
|
|
2281
|
+
return;
|
|
2282
|
+
}
|
|
2283
|
+
var custom = [
|
|
2284
|
+
"integer",
|
|
2285
|
+
"float",
|
|
2286
|
+
"array",
|
|
2287
|
+
"regexp",
|
|
2288
|
+
"object",
|
|
2289
|
+
"method",
|
|
2290
|
+
"email",
|
|
2291
|
+
"number",
|
|
2292
|
+
"date",
|
|
2293
|
+
"url",
|
|
2294
|
+
"hex"
|
|
2295
|
+
];
|
|
2296
|
+
var ruleType = rule.type;
|
|
2297
|
+
if (custom.indexOf(ruleType) > -1) {
|
|
2298
|
+
if (!types[ruleType](value)) errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
2299
|
+
} else if (ruleType && typeof value !== rule.type) errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
|
|
2300
|
+
};
|
|
2301
|
+
var range = function range(rule, value, source, errors, options) {
|
|
2302
|
+
var len = typeof rule.len === "number";
|
|
2303
|
+
var min = typeof rule.min === "number";
|
|
2304
|
+
var max = typeof rule.max === "number";
|
|
2305
|
+
var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
2306
|
+
var val = value;
|
|
2307
|
+
var key = null;
|
|
2308
|
+
var num = typeof value === "number";
|
|
2309
|
+
var str = typeof value === "string";
|
|
2310
|
+
var arr = Array.isArray(value);
|
|
2311
|
+
if (num) key = "number";
|
|
2312
|
+
else if (str) key = "string";
|
|
2313
|
+
else if (arr) key = "array";
|
|
2314
|
+
if (!key) return false;
|
|
2315
|
+
if (arr) val = value.length;
|
|
2316
|
+
if (str) val = value.replace(spRegexp, "_").length;
|
|
2317
|
+
if (len) {
|
|
2318
|
+
if (val !== rule.len) errors.push(format(options.messages[key].len, rule.fullField, rule.len));
|
|
2319
|
+
} else if (min && !max && val < rule.min) errors.push(format(options.messages[key].min, rule.fullField, rule.min));
|
|
2320
|
+
else if (max && !min && val > rule.max) errors.push(format(options.messages[key].max, rule.fullField, rule.max));
|
|
2321
|
+
else if (min && max && (val < rule.min || val > rule.max)) errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
|
|
2322
|
+
};
|
|
2323
|
+
var ENUM$1 = "enum";
|
|
2324
|
+
var rules = {
|
|
2325
|
+
required: required$1,
|
|
2326
|
+
whitespace,
|
|
2327
|
+
type: type$1,
|
|
2328
|
+
range,
|
|
2329
|
+
"enum": function enumerable(rule, value, source, errors, options) {
|
|
2330
|
+
rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];
|
|
2331
|
+
if (rule[ENUM$1].indexOf(value) === -1) errors.push(format(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(", ")));
|
|
2332
|
+
},
|
|
2333
|
+
pattern: function pattern(rule, value, source, errors, options) {
|
|
2334
|
+
if (rule.pattern) {
|
|
2335
|
+
if (rule.pattern instanceof RegExp) {
|
|
2336
|
+
rule.pattern.lastIndex = 0;
|
|
2337
|
+
if (!rule.pattern.test(value)) errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
2338
|
+
} else if (typeof rule.pattern === "string") {
|
|
2339
|
+
if (!new RegExp(rule.pattern).test(value)) errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
var string = function string(rule, value, callback, source, options) {
|
|
2345
|
+
var errors = [];
|
|
2346
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2347
|
+
if (isEmptyValue(value, "string") && !rule.required) return callback();
|
|
2348
|
+
rules.required(rule, value, source, errors, options, "string");
|
|
2349
|
+
if (!isEmptyValue(value, "string")) {
|
|
2350
|
+
rules.type(rule, value, source, errors, options);
|
|
2351
|
+
rules.range(rule, value, source, errors, options);
|
|
2352
|
+
rules.pattern(rule, value, source, errors, options);
|
|
2353
|
+
if (rule.whitespace === true) rules.whitespace(rule, value, source, errors, options);
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
callback(errors);
|
|
2357
|
+
};
|
|
2358
|
+
var method = function method(rule, value, callback, source, options) {
|
|
2359
|
+
var errors = [];
|
|
2360
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2361
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2362
|
+
rules.required(rule, value, source, errors, options);
|
|
2363
|
+
if (value !== void 0) rules.type(rule, value, source, errors, options);
|
|
2364
|
+
}
|
|
2365
|
+
callback(errors);
|
|
2366
|
+
};
|
|
2367
|
+
var number = function number(rule, value, callback, source, options) {
|
|
2368
|
+
var errors = [];
|
|
2369
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2370
|
+
if (value === "") value = void 0;
|
|
2371
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2372
|
+
rules.required(rule, value, source, errors, options);
|
|
2373
|
+
if (value !== void 0) {
|
|
2374
|
+
rules.type(rule, value, source, errors, options);
|
|
2375
|
+
rules.range(rule, value, source, errors, options);
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
callback(errors);
|
|
2379
|
+
};
|
|
2380
|
+
var _boolean = function _boolean(rule, value, callback, source, options) {
|
|
2381
|
+
var errors = [];
|
|
2382
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2383
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2384
|
+
rules.required(rule, value, source, errors, options);
|
|
2385
|
+
if (value !== void 0) rules.type(rule, value, source, errors, options);
|
|
2386
|
+
}
|
|
2387
|
+
callback(errors);
|
|
2388
|
+
};
|
|
2389
|
+
var regexp = function regexp(rule, value, callback, source, options) {
|
|
2390
|
+
var errors = [];
|
|
2391
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2392
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2393
|
+
rules.required(rule, value, source, errors, options);
|
|
2394
|
+
if (!isEmptyValue(value)) rules.type(rule, value, source, errors, options);
|
|
2395
|
+
}
|
|
2396
|
+
callback(errors);
|
|
2397
|
+
};
|
|
2398
|
+
var integer = function integer(rule, value, callback, source, options) {
|
|
2399
|
+
var errors = [];
|
|
2400
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2401
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2402
|
+
rules.required(rule, value, source, errors, options);
|
|
2403
|
+
if (value !== void 0) {
|
|
2404
|
+
rules.type(rule, value, source, errors, options);
|
|
2405
|
+
rules.range(rule, value, source, errors, options);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
callback(errors);
|
|
2409
|
+
};
|
|
2410
|
+
var floatFn = function floatFn(rule, value, callback, source, options) {
|
|
2411
|
+
var errors = [];
|
|
2412
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2413
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2414
|
+
rules.required(rule, value, source, errors, options);
|
|
2415
|
+
if (value !== void 0) {
|
|
2416
|
+
rules.type(rule, value, source, errors, options);
|
|
2417
|
+
rules.range(rule, value, source, errors, options);
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
callback(errors);
|
|
2421
|
+
};
|
|
2422
|
+
var array = function array(rule, value, callback, source, options) {
|
|
2423
|
+
var errors = [];
|
|
2424
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2425
|
+
if ((value === void 0 || value === null) && !rule.required) return callback();
|
|
2426
|
+
rules.required(rule, value, source, errors, options, "array");
|
|
2427
|
+
if (value !== void 0 && value !== null) {
|
|
2428
|
+
rules.type(rule, value, source, errors, options);
|
|
2429
|
+
rules.range(rule, value, source, errors, options);
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
callback(errors);
|
|
2433
|
+
};
|
|
2434
|
+
var object = function object(rule, value, callback, source, options) {
|
|
2435
|
+
var errors = [];
|
|
2436
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2437
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2438
|
+
rules.required(rule, value, source, errors, options);
|
|
2439
|
+
if (value !== void 0) rules.type(rule, value, source, errors, options);
|
|
2440
|
+
}
|
|
2441
|
+
callback(errors);
|
|
2442
|
+
};
|
|
2443
|
+
var ENUM = "enum";
|
|
2444
|
+
var enumerable = function enumerable(rule, value, callback, source, options) {
|
|
2445
|
+
var errors = [];
|
|
2446
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2447
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2448
|
+
rules.required(rule, value, source, errors, options);
|
|
2449
|
+
if (value !== void 0) rules[ENUM](rule, value, source, errors, options);
|
|
2450
|
+
}
|
|
2451
|
+
callback(errors);
|
|
2452
|
+
};
|
|
2453
|
+
var pattern = function pattern(rule, value, callback, source, options) {
|
|
2454
|
+
var errors = [];
|
|
2455
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2456
|
+
if (isEmptyValue(value, "string") && !rule.required) return callback();
|
|
2457
|
+
rules.required(rule, value, source, errors, options);
|
|
2458
|
+
if (!isEmptyValue(value, "string")) rules.pattern(rule, value, source, errors, options);
|
|
2459
|
+
}
|
|
2460
|
+
callback(errors);
|
|
2461
|
+
};
|
|
2462
|
+
var date = function date(rule, value, callback, source, options) {
|
|
2463
|
+
var errors = [];
|
|
2464
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2465
|
+
if (isEmptyValue(value, "date") && !rule.required) return callback();
|
|
2466
|
+
rules.required(rule, value, source, errors, options);
|
|
2467
|
+
if (!isEmptyValue(value, "date")) {
|
|
2468
|
+
var dateObject;
|
|
2469
|
+
if (value instanceof Date) dateObject = value;
|
|
2470
|
+
else dateObject = new Date(value);
|
|
2471
|
+
rules.type(rule, dateObject, source, errors, options);
|
|
2472
|
+
if (dateObject) rules.range(rule, dateObject.getTime(), source, errors, options);
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
callback(errors);
|
|
2476
|
+
};
|
|
2477
|
+
var required = function required(rule, value, callback, source, options) {
|
|
2478
|
+
var errors = [];
|
|
2479
|
+
var type = Array.isArray(value) ? "array" : typeof value;
|
|
2480
|
+
rules.required(rule, value, source, errors, options, type);
|
|
2481
|
+
callback(errors);
|
|
2482
|
+
};
|
|
2483
|
+
var type = function type(rule, value, callback, source, options) {
|
|
2484
|
+
var ruleType = rule.type;
|
|
2485
|
+
var errors = [];
|
|
2486
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2487
|
+
if (isEmptyValue(value, ruleType) && !rule.required) return callback();
|
|
2488
|
+
rules.required(rule, value, source, errors, options, ruleType);
|
|
2489
|
+
if (!isEmptyValue(value, ruleType)) rules.type(rule, value, source, errors, options);
|
|
2490
|
+
}
|
|
2491
|
+
callback(errors);
|
|
2492
|
+
};
|
|
2493
|
+
var validators = {
|
|
2494
|
+
string,
|
|
2495
|
+
method,
|
|
2496
|
+
number,
|
|
2497
|
+
"boolean": _boolean,
|
|
2498
|
+
regexp,
|
|
2499
|
+
integer,
|
|
2500
|
+
"float": floatFn,
|
|
2501
|
+
array,
|
|
2502
|
+
object,
|
|
2503
|
+
"enum": enumerable,
|
|
2504
|
+
pattern,
|
|
2505
|
+
date,
|
|
2506
|
+
url: type,
|
|
2507
|
+
hex: type,
|
|
2508
|
+
email: type,
|
|
2509
|
+
required,
|
|
2510
|
+
any: function any(rule, value, callback, source, options) {
|
|
2511
|
+
var errors = [];
|
|
2512
|
+
if (rule.required || !rule.required && source.hasOwnProperty(rule.field)) {
|
|
2513
|
+
if (isEmptyValue(value) && !rule.required) return callback();
|
|
2514
|
+
rules.required(rule, value, source, errors, options);
|
|
2515
|
+
}
|
|
2516
|
+
callback(errors);
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
function newMessages() {
|
|
2520
|
+
return {
|
|
2521
|
+
"default": "Validation error on field %s",
|
|
2522
|
+
required: "%s is required",
|
|
2523
|
+
"enum": "%s must be one of %s",
|
|
2524
|
+
whitespace: "%s cannot be empty",
|
|
2525
|
+
date: {
|
|
2526
|
+
format: "%s date %s is invalid for format %s",
|
|
2527
|
+
parse: "%s date could not be parsed, %s is invalid ",
|
|
2528
|
+
invalid: "%s date %s is invalid"
|
|
2529
|
+
},
|
|
2530
|
+
types: {
|
|
2531
|
+
string: "%s is not a %s",
|
|
2532
|
+
method: "%s is not a %s (function)",
|
|
2533
|
+
array: "%s is not an %s",
|
|
2534
|
+
object: "%s is not an %s",
|
|
2535
|
+
number: "%s is not a %s",
|
|
2536
|
+
date: "%s is not a %s",
|
|
2537
|
+
"boolean": "%s is not a %s",
|
|
2538
|
+
integer: "%s is not an %s",
|
|
2539
|
+
"float": "%s is not a %s",
|
|
2540
|
+
regexp: "%s is not a valid %s",
|
|
2541
|
+
email: "%s is not a valid %s",
|
|
2542
|
+
url: "%s is not a valid %s",
|
|
2543
|
+
hex: "%s is not a valid %s"
|
|
2544
|
+
},
|
|
2545
|
+
string: {
|
|
2546
|
+
len: "%s must be exactly %s characters",
|
|
2547
|
+
min: "%s must be at least %s characters",
|
|
2548
|
+
max: "%s cannot be longer than %s characters",
|
|
2549
|
+
range: "%s must be between %s and %s characters"
|
|
2550
|
+
},
|
|
2551
|
+
number: {
|
|
2552
|
+
len: "%s must equal %s",
|
|
2553
|
+
min: "%s cannot be less than %s",
|
|
2554
|
+
max: "%s cannot be greater than %s",
|
|
2555
|
+
range: "%s must be between %s and %s"
|
|
2556
|
+
},
|
|
2557
|
+
array: {
|
|
2558
|
+
len: "%s must be exactly %s in length",
|
|
2559
|
+
min: "%s cannot be less than %s in length",
|
|
2560
|
+
max: "%s cannot be greater than %s in length",
|
|
2561
|
+
range: "%s must be between %s and %s in length"
|
|
2562
|
+
},
|
|
2563
|
+
pattern: { mismatch: "%s value %s does not match pattern %s" },
|
|
2564
|
+
clone: function clone() {
|
|
2565
|
+
var cloned = JSON.parse(JSON.stringify(this));
|
|
2566
|
+
cloned.clone = this.clone;
|
|
2567
|
+
return cloned;
|
|
2568
|
+
}
|
|
2569
|
+
};
|
|
2570
|
+
}
|
|
2571
|
+
var messages = newMessages();
|
|
2572
|
+
/**
|
|
2573
|
+
* Encapsulates a validation schema.
|
|
2574
|
+
*
|
|
2575
|
+
* @param descriptor An object declaring validation rules
|
|
2576
|
+
* for this schema.
|
|
2577
|
+
*/
|
|
2578
|
+
var Schema = /*#__PURE__*/ function() {
|
|
2579
|
+
function Schema(descriptor) {
|
|
2580
|
+
this.rules = null;
|
|
2581
|
+
this._messages = messages;
|
|
2582
|
+
this.define(descriptor);
|
|
2583
|
+
}
|
|
2584
|
+
var _proto = Schema.prototype;
|
|
2585
|
+
_proto.define = function define(rules) {
|
|
2586
|
+
var _this = this;
|
|
2587
|
+
if (!rules) throw new Error("Cannot configure a schema with no rules");
|
|
2588
|
+
if (typeof rules !== "object" || Array.isArray(rules)) throw new Error("Rules must be an object");
|
|
2589
|
+
this.rules = {};
|
|
2590
|
+
Object.keys(rules).forEach(function(name) {
|
|
2591
|
+
var item = rules[name];
|
|
2592
|
+
_this.rules[name] = Array.isArray(item) ? item : [item];
|
|
2593
|
+
});
|
|
2594
|
+
};
|
|
2595
|
+
_proto.messages = function messages(_messages) {
|
|
2596
|
+
if (_messages) this._messages = deepMerge(newMessages(), _messages);
|
|
2597
|
+
return this._messages;
|
|
2598
|
+
};
|
|
2599
|
+
_proto.validate = function validate(source_, o, oc) {
|
|
2600
|
+
var _this2 = this;
|
|
2601
|
+
if (o === void 0) o = {};
|
|
2602
|
+
if (oc === void 0) oc = function oc() {};
|
|
2603
|
+
var source = source_;
|
|
2604
|
+
var options = o;
|
|
2605
|
+
var callback = oc;
|
|
2606
|
+
if (typeof options === "function") {
|
|
2607
|
+
callback = options;
|
|
2608
|
+
options = {};
|
|
2609
|
+
}
|
|
2610
|
+
if (!this.rules || Object.keys(this.rules).length === 0) {
|
|
2611
|
+
if (callback) callback(null, source);
|
|
2612
|
+
return Promise.resolve(source);
|
|
2613
|
+
}
|
|
2614
|
+
function complete(results) {
|
|
2615
|
+
var errors = [];
|
|
2616
|
+
var fields = {};
|
|
2617
|
+
function add(e) {
|
|
2618
|
+
if (Array.isArray(e)) {
|
|
2619
|
+
var _errors;
|
|
2620
|
+
errors = (_errors = errors).concat.apply(_errors, e);
|
|
2621
|
+
} else errors.push(e);
|
|
2622
|
+
}
|
|
2623
|
+
for (var i = 0; i < results.length; i++) add(results[i]);
|
|
2624
|
+
if (!errors.length) callback(null, source);
|
|
2625
|
+
else {
|
|
2626
|
+
fields = convertFieldsError(errors);
|
|
2627
|
+
callback(errors, fields);
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
if (options.messages) {
|
|
2631
|
+
var messages$1 = this.messages();
|
|
2632
|
+
if (messages$1 === messages) messages$1 = newMessages();
|
|
2633
|
+
deepMerge(messages$1, options.messages);
|
|
2634
|
+
options.messages = messages$1;
|
|
2635
|
+
} else options.messages = this.messages();
|
|
2636
|
+
var series = {};
|
|
2637
|
+
(options.keys || Object.keys(this.rules)).forEach(function(z) {
|
|
2638
|
+
var arr = _this2.rules[z];
|
|
2639
|
+
var value = source[z];
|
|
2640
|
+
arr.forEach(function(r) {
|
|
2641
|
+
var rule = r;
|
|
2642
|
+
if (typeof rule.transform === "function") {
|
|
2643
|
+
if (source === source_) source = _extends({}, source);
|
|
2644
|
+
value = source[z] = rule.transform(value);
|
|
2645
|
+
}
|
|
2646
|
+
if (typeof rule === "function") rule = { validator: rule };
|
|
2647
|
+
else rule = _extends({}, rule);
|
|
2648
|
+
rule.validator = _this2.getValidationMethod(rule);
|
|
2649
|
+
if (!rule.validator) return;
|
|
2650
|
+
rule.field = z;
|
|
2651
|
+
rule.fullField = rule.fullField || z;
|
|
2652
|
+
rule.type = _this2.getType(rule);
|
|
2653
|
+
series[z] = series[z] || [];
|
|
2654
|
+
series[z].push({
|
|
2655
|
+
rule,
|
|
2656
|
+
value,
|
|
2657
|
+
source,
|
|
2658
|
+
field: z
|
|
2659
|
+
});
|
|
2660
|
+
});
|
|
2661
|
+
});
|
|
2662
|
+
var errorFields = {};
|
|
2663
|
+
return asyncMap(series, options, function(data, doIt) {
|
|
2664
|
+
var rule = data.rule;
|
|
2665
|
+
var deep = (rule.type === "object" || rule.type === "array") && (typeof rule.fields === "object" || typeof rule.defaultField === "object");
|
|
2666
|
+
deep = deep && (rule.required || !rule.required && data.value);
|
|
2667
|
+
rule.field = data.field;
|
|
2668
|
+
function addFullField(key, schema) {
|
|
2669
|
+
return _extends({}, schema, {
|
|
2670
|
+
fullField: rule.fullField + "." + key,
|
|
2671
|
+
fullFields: rule.fullFields ? [].concat(rule.fullFields, [key]) : [key]
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
function cb(e) {
|
|
2675
|
+
if (e === void 0) e = [];
|
|
2676
|
+
var errorList = Array.isArray(e) ? e : [e];
|
|
2677
|
+
if (!options.suppressWarning && errorList.length) Schema.warning("async-validator:", errorList);
|
|
2678
|
+
if (errorList.length && rule.message !== void 0) errorList = [].concat(rule.message);
|
|
2679
|
+
var filledErrors = errorList.map(complementError(rule, source));
|
|
2680
|
+
if (options.first && filledErrors.length) {
|
|
2681
|
+
errorFields[rule.field] = 1;
|
|
2682
|
+
return doIt(filledErrors);
|
|
2683
|
+
}
|
|
2684
|
+
if (!deep) doIt(filledErrors);
|
|
2685
|
+
else {
|
|
2686
|
+
if (rule.required && !data.value) {
|
|
2687
|
+
if (rule.message !== void 0) filledErrors = [].concat(rule.message).map(complementError(rule, source));
|
|
2688
|
+
else if (options.error) filledErrors = [options.error(rule, format(options.messages.required, rule.field))];
|
|
2689
|
+
return doIt(filledErrors);
|
|
2690
|
+
}
|
|
2691
|
+
var fieldsSchema = {};
|
|
2692
|
+
if (rule.defaultField) Object.keys(data.value).map(function(key) {
|
|
2693
|
+
fieldsSchema[key] = rule.defaultField;
|
|
2694
|
+
});
|
|
2695
|
+
fieldsSchema = _extends({}, fieldsSchema, data.rule.fields);
|
|
2696
|
+
var paredFieldsSchema = {};
|
|
2697
|
+
Object.keys(fieldsSchema).forEach(function(field) {
|
|
2698
|
+
var fieldSchema = fieldsSchema[field];
|
|
2699
|
+
paredFieldsSchema[field] = (Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema]).map(addFullField.bind(null, field));
|
|
2700
|
+
});
|
|
2701
|
+
var schema = new Schema(paredFieldsSchema);
|
|
2702
|
+
schema.messages(options.messages);
|
|
2703
|
+
if (data.rule.options) {
|
|
2704
|
+
data.rule.options.messages = options.messages;
|
|
2705
|
+
data.rule.options.error = options.error;
|
|
2706
|
+
}
|
|
2707
|
+
schema.validate(data.value, data.rule.options || options, function(errs) {
|
|
2708
|
+
var finalErrors = [];
|
|
2709
|
+
if (filledErrors && filledErrors.length) finalErrors.push.apply(finalErrors, filledErrors);
|
|
2710
|
+
if (errs && errs.length) finalErrors.push.apply(finalErrors, errs);
|
|
2711
|
+
doIt(finalErrors.length ? finalErrors : null);
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
var res;
|
|
2716
|
+
if (rule.asyncValidator) res = rule.asyncValidator(rule, data.value, cb, data.source, options);
|
|
2717
|
+
else if (rule.validator) {
|
|
2718
|
+
try {
|
|
2719
|
+
res = rule.validator(rule, data.value, cb, data.source, options);
|
|
2720
|
+
} catch (error) {
|
|
2721
|
+
console.error == null || console.error(error);
|
|
2722
|
+
if (!options.suppressValidatorError) setTimeout(function() {
|
|
2723
|
+
throw error;
|
|
2724
|
+
}, 0);
|
|
2725
|
+
cb(error.message);
|
|
2726
|
+
}
|
|
2727
|
+
if (res === true) cb();
|
|
2728
|
+
else if (res === false) cb(typeof rule.message === "function" ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + " fails");
|
|
2729
|
+
else if (res instanceof Array) cb(res);
|
|
2730
|
+
else if (res instanceof Error) cb(res.message);
|
|
2731
|
+
}
|
|
2732
|
+
if (res && res.then) res.then(function() {
|
|
2733
|
+
return cb();
|
|
2734
|
+
}, function(e) {
|
|
2735
|
+
return cb(e);
|
|
2736
|
+
});
|
|
2737
|
+
}, function(results) {
|
|
2738
|
+
complete(results);
|
|
2739
|
+
}, source);
|
|
2740
|
+
};
|
|
2741
|
+
_proto.getType = function getType(rule) {
|
|
2742
|
+
if (rule.type === void 0 && rule.pattern instanceof RegExp) rule.type = "pattern";
|
|
2743
|
+
if (typeof rule.validator !== "function" && rule.type && !validators.hasOwnProperty(rule.type)) throw new Error(format("Unknown rule type %s", rule.type));
|
|
2744
|
+
return rule.type || "string";
|
|
2745
|
+
};
|
|
2746
|
+
_proto.getValidationMethod = function getValidationMethod(rule) {
|
|
2747
|
+
if (typeof rule.validator === "function") return rule.validator;
|
|
2748
|
+
var keys = Object.keys(rule);
|
|
2749
|
+
var messageIndex = keys.indexOf("message");
|
|
2750
|
+
if (messageIndex !== -1) keys.splice(messageIndex, 1);
|
|
2751
|
+
if (keys.length === 1 && keys[0] === "required") return validators.required;
|
|
2752
|
+
return validators[this.getType(rule)] || void 0;
|
|
2753
|
+
};
|
|
2754
|
+
return Schema;
|
|
2755
|
+
}();
|
|
2756
|
+
Schema.register = function register(type, validator) {
|
|
2757
|
+
if (typeof validator !== "function") throw new Error("Cannot register a validator by type, validator is not a function");
|
|
2758
|
+
validators[type] = validator;
|
|
2759
|
+
};
|
|
2760
|
+
Schema.warning = warning;
|
|
2761
|
+
Schema.messages = messages;
|
|
2762
|
+
Schema.validators = validators;
|
|
2763
|
+
//#endregion
|
|
2764
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/typeUtil.js
|
|
2765
|
+
function toArray$1(value) {
|
|
2766
|
+
if (value === void 0 || value === null) return [];
|
|
2767
|
+
return Array.isArray(value) ? value : [value];
|
|
2768
|
+
}
|
|
2769
|
+
//#endregion
|
|
2770
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-util/get.js
|
|
2771
|
+
function get(entity, path) {
|
|
2772
|
+
let current = entity;
|
|
2773
|
+
for (let i = 0; i < path.length; i += 1) {
|
|
2774
|
+
if (current === null || current === void 0) return;
|
|
2775
|
+
current = current[path[i]];
|
|
2776
|
+
}
|
|
2777
|
+
return current;
|
|
2778
|
+
}
|
|
2779
|
+
//#endregion
|
|
2780
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-util/set.js
|
|
2781
|
+
function internalSet(entity, paths, value, removeIfUndefined) {
|
|
2782
|
+
if (!paths.length) return value;
|
|
2783
|
+
const [path, ...restPath] = paths;
|
|
2784
|
+
let clone;
|
|
2785
|
+
if (!entity && typeof path === "number") clone = [];
|
|
2786
|
+
else if (Array.isArray(entity)) clone = [...entity];
|
|
2787
|
+
else clone = _extends$1({}, entity);
|
|
2788
|
+
if (removeIfUndefined && value === void 0 && restPath.length === 1) delete clone[path][restPath[0]];
|
|
2789
|
+
else clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
|
|
2790
|
+
return clone;
|
|
2791
|
+
}
|
|
2792
|
+
function set(entity, paths, value) {
|
|
2793
|
+
let removeIfUndefined = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
2794
|
+
if (paths.length && removeIfUndefined && value === void 0 && !get(entity, paths.slice(0, -1))) return entity;
|
|
2795
|
+
return internalSet(entity, paths, value, removeIfUndefined);
|
|
2796
|
+
}
|
|
2797
|
+
//#endregion
|
|
2798
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/valueUtil.js
|
|
2799
|
+
/**
|
|
2800
|
+
* Convert name to internal supported format.
|
|
2801
|
+
* This function should keep since we still thinking if need support like `a.b.c` format.
|
|
2802
|
+
* 'a' => ['a']
|
|
2803
|
+
* 123 => [123]
|
|
2804
|
+
* ['a', 123] => ['a', 123]
|
|
2805
|
+
*/
|
|
2806
|
+
function getNamePath(path) {
|
|
2807
|
+
return toArray$1(path);
|
|
2808
|
+
}
|
|
2809
|
+
function getValue(store, namePath) {
|
|
2810
|
+
return get(store, namePath);
|
|
2811
|
+
}
|
|
2812
|
+
function setValue(store, namePath, value) {
|
|
2813
|
+
return set(store, namePath, value, arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false);
|
|
2814
|
+
}
|
|
2815
|
+
function containsNamePath(namePathList, namePath) {
|
|
2816
|
+
return namePathList && namePathList.some((path) => matchNamePath(path, namePath));
|
|
2817
|
+
}
|
|
2818
|
+
function isObject(obj) {
|
|
2819
|
+
return typeof obj === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
2820
|
+
}
|
|
2821
|
+
/**
|
|
2822
|
+
* Copy values into store and return a new values object
|
|
2823
|
+
* ({ a: 1, b: { c: 2 } }, { a: 4, b: { d: 5 } }) => { a: 4, b: { c: 2, d: 5 } }
|
|
2824
|
+
*/
|
|
2825
|
+
function internalSetValues(store, values) {
|
|
2826
|
+
const newStore = Array.isArray(store) ? [...store] : _extends$1({}, store);
|
|
2827
|
+
if (!values) return newStore;
|
|
2828
|
+
Object.keys(values).forEach((key) => {
|
|
2829
|
+
const prevValue = newStore[key];
|
|
2830
|
+
const value = values[key];
|
|
2831
|
+
const recursive = isObject(prevValue) && isObject(value);
|
|
2832
|
+
newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : value;
|
|
2833
|
+
});
|
|
2834
|
+
return newStore;
|
|
2835
|
+
}
|
|
2836
|
+
function setValues(store) {
|
|
2837
|
+
for (var _len = arguments.length, restValues = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) restValues[_key - 1] = arguments[_key];
|
|
2838
|
+
return restValues.reduce((current, newStore) => internalSetValues(current, newStore), store);
|
|
2839
|
+
}
|
|
2840
|
+
function cloneByNamePathList(store, namePathList) {
|
|
2841
|
+
let newStore = {};
|
|
2842
|
+
namePathList.forEach((namePath) => {
|
|
2843
|
+
const value = getValue(store, namePath);
|
|
2844
|
+
newStore = setValue(newStore, namePath, value);
|
|
2845
|
+
});
|
|
2846
|
+
return newStore;
|
|
2847
|
+
}
|
|
2848
|
+
function matchNamePath(namePath, changedNamePath) {
|
|
2849
|
+
if (!namePath || !changedNamePath || namePath.length !== changedNamePath.length) return false;
|
|
2850
|
+
return namePath.every((nameUnit, i) => changedNamePath[i] === nameUnit);
|
|
2851
|
+
}
|
|
2852
|
+
//#endregion
|
|
2853
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/messages.js
|
|
2854
|
+
var typeTemplate = "'${name}' is not a valid ${type}";
|
|
2855
|
+
var defaultValidateMessages = {
|
|
2856
|
+
default: "Validation error on field '${name}'",
|
|
2857
|
+
required: "'${name}' is required",
|
|
2858
|
+
enum: "'${name}' must be one of [${enum}]",
|
|
2859
|
+
whitespace: "'${name}' cannot be empty",
|
|
2860
|
+
date: {
|
|
2861
|
+
format: "'${name}' is invalid for format date",
|
|
2862
|
+
parse: "'${name}' could not be parsed as date",
|
|
2863
|
+
invalid: "'${name}' is invalid date"
|
|
2864
|
+
},
|
|
2865
|
+
types: {
|
|
2866
|
+
string: typeTemplate,
|
|
2867
|
+
method: typeTemplate,
|
|
2868
|
+
array: typeTemplate,
|
|
2869
|
+
object: typeTemplate,
|
|
2870
|
+
number: typeTemplate,
|
|
2871
|
+
date: typeTemplate,
|
|
2872
|
+
boolean: typeTemplate,
|
|
2873
|
+
integer: typeTemplate,
|
|
2874
|
+
float: typeTemplate,
|
|
2875
|
+
regexp: typeTemplate,
|
|
2876
|
+
email: typeTemplate,
|
|
2877
|
+
url: typeTemplate,
|
|
2878
|
+
hex: typeTemplate
|
|
2879
|
+
},
|
|
2880
|
+
string: {
|
|
2881
|
+
len: "'${name}' must be exactly ${len} characters",
|
|
2882
|
+
min: "'${name}' must be at least ${min} characters",
|
|
2883
|
+
max: "'${name}' cannot be longer than ${max} characters",
|
|
2884
|
+
range: "'${name}' must be between ${min} and ${max} characters"
|
|
2885
|
+
},
|
|
2886
|
+
number: {
|
|
2887
|
+
len: "'${name}' must equal ${len}",
|
|
2888
|
+
min: "'${name}' cannot be less than ${min}",
|
|
2889
|
+
max: "'${name}' cannot be greater than ${max}",
|
|
2890
|
+
range: "'${name}' must be between ${min} and ${max}"
|
|
2891
|
+
},
|
|
2892
|
+
array: {
|
|
2893
|
+
len: "'${name}' must be exactly ${len} in length",
|
|
2894
|
+
min: "'${name}' cannot be less than ${min} in length",
|
|
2895
|
+
max: "'${name}' cannot be greater than ${max} in length",
|
|
2896
|
+
range: "'${name}' must be between ${min} and ${max} in length"
|
|
2897
|
+
},
|
|
2898
|
+
pattern: { mismatch: "'${name}' does not match pattern ${pattern}" }
|
|
2899
|
+
};
|
|
2900
|
+
//#endregion
|
|
2901
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/validateUtil.js
|
|
2902
|
+
var __awaiter = function(thisArg, _arguments, P, generator) {
|
|
2903
|
+
function adopt(value) {
|
|
2904
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
2905
|
+
resolve(value);
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
2909
|
+
function fulfilled(value) {
|
|
2910
|
+
try {
|
|
2911
|
+
step(generator.next(value));
|
|
2912
|
+
} catch (e) {
|
|
2913
|
+
reject(e);
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
function rejected(value) {
|
|
2917
|
+
try {
|
|
2918
|
+
step(generator["throw"](value));
|
|
2919
|
+
} catch (e) {
|
|
2920
|
+
reject(e);
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
function step(result) {
|
|
2924
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
2925
|
+
}
|
|
2926
|
+
step((generator = generator.apply(thisArg, [])).next());
|
|
2927
|
+
});
|
|
2928
|
+
};
|
|
2929
|
+
var AsyncValidator = Schema;
|
|
2930
|
+
/**
|
|
2931
|
+
* Replace with template.
|
|
2932
|
+
* `I'm ${name}` + { name: 'bamboo' } = I'm bamboo
|
|
2933
|
+
*/
|
|
2934
|
+
function replaceMessage(template, kv) {
|
|
2935
|
+
return template.replace(/\$\{\w+\}/g, (str) => {
|
|
2936
|
+
return kv[str.slice(2, -1)];
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
function validateRule(name, value, rule, options, messageVariables) {
|
|
2940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2941
|
+
const cloneRule = _extends$1({}, rule);
|
|
2942
|
+
delete cloneRule.ruleIndex;
|
|
2943
|
+
delete cloneRule.trigger;
|
|
2944
|
+
let subRuleField = null;
|
|
2945
|
+
if (cloneRule && cloneRule.type === "array" && cloneRule.defaultField) {
|
|
2946
|
+
subRuleField = cloneRule.defaultField;
|
|
2947
|
+
delete cloneRule.defaultField;
|
|
2948
|
+
}
|
|
2949
|
+
const validator = new AsyncValidator({ [name]: [cloneRule] });
|
|
2950
|
+
const messages = setValues({}, defaultValidateMessages, options.validateMessages);
|
|
2951
|
+
validator.messages(messages);
|
|
2952
|
+
let result = [];
|
|
2953
|
+
try {
|
|
2954
|
+
yield Promise.resolve(validator.validate({ [name]: value }, _extends$1({}, options)));
|
|
2955
|
+
} catch (errObj) {
|
|
2956
|
+
if (errObj.errors) result = errObj.errors.map((_ref, index) => {
|
|
2957
|
+
let { message } = _ref;
|
|
2958
|
+
return isValidElement(message) ? cloneVNode(message, { key: `error_${index}` }) : message;
|
|
2959
|
+
});
|
|
2960
|
+
else {
|
|
2961
|
+
console.error(errObj);
|
|
2962
|
+
result = [messages.default()];
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
if (!result.length && subRuleField) return (yield Promise.all(value.map((subValue, i) => validateRule(`${name}.${i}`, subValue, subRuleField, options, messageVariables)))).reduce((prev, errors) => [...prev, ...errors], []);
|
|
2966
|
+
const kv = _extends$1(_extends$1(_extends$1({}, rule), {
|
|
2967
|
+
name,
|
|
2968
|
+
enum: (rule.enum || []).join(", ")
|
|
2969
|
+
}), messageVariables);
|
|
2970
|
+
return result.map((error) => {
|
|
2971
|
+
if (typeof error === "string") return replaceMessage(error, kv);
|
|
2972
|
+
return error;
|
|
2973
|
+
});
|
|
2974
|
+
});
|
|
2975
|
+
}
|
|
2976
|
+
/**
|
|
2977
|
+
* We use `async-validator` to validate the value.
|
|
2978
|
+
* But only check one value in a time to avoid namePath validate issue.
|
|
2979
|
+
*/
|
|
2980
|
+
function validateRules(namePath, value, rules, options, validateFirst, messageVariables) {
|
|
2981
|
+
const name = namePath.join(".");
|
|
2982
|
+
const filledRules = rules.map((currentRule, ruleIndex) => {
|
|
2983
|
+
const originValidatorFunc = currentRule.validator;
|
|
2984
|
+
const cloneRule = _extends$1(_extends$1({}, currentRule), { ruleIndex });
|
|
2985
|
+
if (originValidatorFunc) cloneRule.validator = (rule, val, callback) => {
|
|
2986
|
+
let hasPromise = false;
|
|
2987
|
+
const wrappedCallback = function() {
|
|
2988
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
2989
|
+
Promise.resolve().then(() => {
|
|
2990
|
+
if (!hasPromise) callback(...args);
|
|
2991
|
+
});
|
|
2992
|
+
};
|
|
2993
|
+
const promise = originValidatorFunc(rule, val, wrappedCallback);
|
|
2994
|
+
hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
|
|
2995
|
+
if (hasPromise) promise.then(() => {
|
|
2996
|
+
callback();
|
|
2997
|
+
}).catch((err) => {
|
|
2998
|
+
callback(err || " ");
|
|
2999
|
+
});
|
|
3000
|
+
};
|
|
3001
|
+
return cloneRule;
|
|
3002
|
+
}).sort((_ref2, _ref3) => {
|
|
3003
|
+
let { warningOnly: w1, ruleIndex: i1 } = _ref2;
|
|
3004
|
+
let { warningOnly: w2, ruleIndex: i2 } = _ref3;
|
|
3005
|
+
if (!!w1 === !!w2) return i1 - i2;
|
|
3006
|
+
if (w1) return 1;
|
|
3007
|
+
return -1;
|
|
3008
|
+
});
|
|
3009
|
+
let summaryPromise;
|
|
3010
|
+
if (validateFirst === true) summaryPromise = new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
3011
|
+
for (let i = 0; i < filledRules.length; i += 1) {
|
|
3012
|
+
const rule = filledRules[i];
|
|
3013
|
+
const errors = yield validateRule(name, value, rule, options, messageVariables);
|
|
3014
|
+
if (errors.length) {
|
|
3015
|
+
reject([{
|
|
3016
|
+
errors,
|
|
3017
|
+
rule
|
|
3018
|
+
}]);
|
|
3019
|
+
return;
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
resolve([]);
|
|
3023
|
+
}));
|
|
3024
|
+
else {
|
|
3025
|
+
const rulePromises = filledRules.map((rule) => validateRule(name, value, rule, options, messageVariables).then((errors) => ({
|
|
3026
|
+
errors,
|
|
3027
|
+
rule
|
|
3028
|
+
})));
|
|
3029
|
+
summaryPromise = (validateFirst ? finishOnFirstFailed(rulePromises) : finishOnAllFailed(rulePromises)).then((errors) => {
|
|
3030
|
+
return Promise.reject(errors);
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
3033
|
+
summaryPromise.catch((e) => e);
|
|
3034
|
+
return summaryPromise;
|
|
3035
|
+
}
|
|
3036
|
+
function finishOnAllFailed(rulePromises) {
|
|
3037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3038
|
+
return Promise.all(rulePromises).then((errorsList) => {
|
|
3039
|
+
return [].concat(...errorsList);
|
|
3040
|
+
});
|
|
3041
|
+
});
|
|
3042
|
+
}
|
|
3043
|
+
function finishOnFirstFailed(rulePromises) {
|
|
3044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3045
|
+
let count = 0;
|
|
3046
|
+
return new Promise((resolve) => {
|
|
3047
|
+
rulePromises.forEach((promise) => {
|
|
3048
|
+
promise.then((ruleError) => {
|
|
3049
|
+
if (ruleError.errors.length) resolve([ruleError]);
|
|
3050
|
+
count += 1;
|
|
3051
|
+
if (count === rulePromises.length) resolve([]);
|
|
3052
|
+
});
|
|
3053
|
+
});
|
|
3054
|
+
});
|
|
3055
|
+
});
|
|
3056
|
+
}
|
|
3057
|
+
//#endregion
|
|
3058
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/context.js
|
|
3059
|
+
var FormContextKey = Symbol("formContextKey");
|
|
3060
|
+
var useProvideForm = (state) => {
|
|
3061
|
+
provide(FormContextKey, state);
|
|
3062
|
+
};
|
|
3063
|
+
var useInjectForm = () => {
|
|
3064
|
+
return inject(FormContextKey, {
|
|
3065
|
+
name: computed(() => void 0),
|
|
3066
|
+
labelAlign: computed(() => "right"),
|
|
3067
|
+
vertical: computed(() => false),
|
|
3068
|
+
addField: (_eventKey, _field) => {},
|
|
3069
|
+
removeField: (_eventKey) => {},
|
|
3070
|
+
model: computed(() => void 0),
|
|
3071
|
+
rules: computed(() => void 0),
|
|
3072
|
+
colon: computed(() => void 0),
|
|
3073
|
+
labelWrap: computed(() => void 0),
|
|
3074
|
+
labelCol: computed(() => void 0),
|
|
3075
|
+
requiredMark: computed(() => false),
|
|
3076
|
+
validateTrigger: computed(() => void 0),
|
|
3077
|
+
onValidate: () => {},
|
|
3078
|
+
validateMessages: computed(() => defaultValidateMessages)
|
|
3079
|
+
});
|
|
3080
|
+
};
|
|
3081
|
+
var FormItemPrefixContextKey = Symbol("formItemPrefixContextKey");
|
|
3082
|
+
var useProvideFormItemPrefix = (state) => {
|
|
3083
|
+
provide(FormItemPrefixContextKey, state);
|
|
3084
|
+
};
|
|
3085
|
+
var useInjectFormItemPrefix = () => {
|
|
3086
|
+
return inject(FormItemPrefixContextKey, { prefixCls: computed(() => "") });
|
|
3087
|
+
};
|
|
3088
|
+
//#endregion
|
|
3089
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/FormItemLabel.js
|
|
3090
|
+
var FormItemLabel = (props, _ref) => {
|
|
3091
|
+
let { slots, emit, attrs } = _ref;
|
|
3092
|
+
var _a, _b, _c, _d, _e;
|
|
3093
|
+
const { prefixCls, htmlFor, labelCol, labelAlign, colon, required, requiredMark } = _extends$1(_extends$1({}, props), attrs);
|
|
3094
|
+
const [formLocale] = useLocaleReceiver("Form");
|
|
3095
|
+
const label = (_a = props.label) !== null && _a !== void 0 ? _a : (_b = slots.label) === null || _b === void 0 ? void 0 : _b.call(slots);
|
|
3096
|
+
if (!label) return null;
|
|
3097
|
+
const { vertical, labelAlign: contextLabelAlign, labelCol: contextLabelCol, labelWrap, colon: contextColon } = useInjectForm();
|
|
3098
|
+
const mergedLabelCol = labelCol || (contextLabelCol === null || contextLabelCol === void 0 ? void 0 : contextLabelCol.value) || {};
|
|
3099
|
+
const mergedLabelAlign = labelAlign || (contextLabelAlign === null || contextLabelAlign === void 0 ? void 0 : contextLabelAlign.value);
|
|
3100
|
+
const labelClsBasic = `${prefixCls}-item-label`;
|
|
3101
|
+
const labelColClassName = classNames(labelClsBasic, mergedLabelAlign === "left" && `${labelClsBasic}-left`, mergedLabelCol.class, { [`${labelClsBasic}-wrap`]: !!labelWrap.value });
|
|
3102
|
+
let labelChildren = label;
|
|
3103
|
+
const computedColon = colon === true || (contextColon === null || contextColon === void 0 ? void 0 : contextColon.value) !== false && colon !== false;
|
|
3104
|
+
if (computedColon && !vertical.value && typeof label === "string" && label.trim() !== "") labelChildren = label.replace(/[:|:]\s*$/, "");
|
|
3105
|
+
if (props.tooltip || slots.tooltip) {
|
|
3106
|
+
const tooltipNode = createVNode("span", { "class": `${prefixCls}-item-tooltip` }, [createVNode(tooltip_default, { "title": props.tooltip }, { default: () => [createVNode(QuestionCircleOutlined, null, null)] })]);
|
|
3107
|
+
labelChildren = createVNode(Fragment, null, [labelChildren, slots.tooltip ? (_c = slots.tooltip) === null || _c === void 0 ? void 0 : _c.call(slots, { class: `${prefixCls}-item-tooltip` }) : tooltipNode]);
|
|
3108
|
+
}
|
|
3109
|
+
if (requiredMark === "optional" && !required) labelChildren = createVNode(Fragment, null, [labelChildren, createVNode("span", { "class": `${prefixCls}-item-optional` }, [((_d = formLocale.value) === null || _d === void 0 ? void 0 : _d.optional) || ((_e = localeValues.Form) === null || _e === void 0 ? void 0 : _e.optional)])]);
|
|
3110
|
+
const labelClassName = classNames({
|
|
3111
|
+
[`${prefixCls}-item-required`]: required,
|
|
3112
|
+
[`${prefixCls}-item-required-mark-optional`]: requiredMark === "optional",
|
|
3113
|
+
[`${prefixCls}-item-no-colon`]: !computedColon
|
|
3114
|
+
});
|
|
3115
|
+
return createVNode(Col_default, _objectSpread2(_objectSpread2({}, mergedLabelCol), {}, { "class": labelColClassName }), { default: () => [createVNode("label", {
|
|
3116
|
+
"for": htmlFor,
|
|
3117
|
+
"class": labelClassName,
|
|
3118
|
+
"title": typeof label === "string" ? label : "",
|
|
3119
|
+
"onClick": (e) => emit("click", e)
|
|
3120
|
+
}, [labelChildren])] });
|
|
3121
|
+
};
|
|
3122
|
+
FormItemLabel.displayName = "FormItemLabel";
|
|
3123
|
+
FormItemLabel.inheritAttrs = false;
|
|
3124
|
+
//#endregion
|
|
3125
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/style/explain.js
|
|
3126
|
+
var genFormValidateMotionStyle = (token) => {
|
|
3127
|
+
const { componentCls } = token;
|
|
3128
|
+
const helpCls = `${componentCls}-show-help`;
|
|
3129
|
+
const helpItemCls = `${componentCls}-show-help-item`;
|
|
3130
|
+
return { [helpCls]: {
|
|
3131
|
+
transition: `opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`,
|
|
3132
|
+
"&-appear, &-enter": {
|
|
3133
|
+
opacity: 0,
|
|
3134
|
+
"&-active": { opacity: 1 }
|
|
3135
|
+
},
|
|
3136
|
+
"&-leave": {
|
|
3137
|
+
opacity: 1,
|
|
3138
|
+
"&-active": { opacity: 0 }
|
|
3139
|
+
},
|
|
3140
|
+
[helpItemCls]: {
|
|
3141
|
+
overflow: "hidden",
|
|
3142
|
+
transition: `height ${token.motionDurationSlow} ${token.motionEaseInOut},
|
|
3143
|
+
opacity ${token.motionDurationSlow} ${token.motionEaseInOut},
|
|
3144
|
+
transform ${token.motionDurationSlow} ${token.motionEaseInOut} !important`,
|
|
3145
|
+
[`&${helpItemCls}-appear, &${helpItemCls}-enter`]: {
|
|
3146
|
+
transform: `translateY(-5px)`,
|
|
3147
|
+
opacity: 0,
|
|
3148
|
+
[`&-active`]: {
|
|
3149
|
+
transform: "translateY(0)",
|
|
3150
|
+
opacity: 1
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
[`&${helpItemCls}-leave-active`]: { transform: `translateY(-5px)` }
|
|
3154
|
+
}
|
|
3155
|
+
} };
|
|
3156
|
+
};
|
|
3157
|
+
//#endregion
|
|
3158
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/style/index.js
|
|
3159
|
+
var resetForm = (token) => ({
|
|
3160
|
+
legend: {
|
|
3161
|
+
display: "block",
|
|
3162
|
+
width: "100%",
|
|
3163
|
+
marginBottom: token.marginLG,
|
|
3164
|
+
padding: 0,
|
|
3165
|
+
color: token.colorTextDescription,
|
|
3166
|
+
fontSize: token.fontSizeLG,
|
|
3167
|
+
lineHeight: "inherit",
|
|
3168
|
+
border: 0,
|
|
3169
|
+
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`
|
|
3170
|
+
},
|
|
3171
|
+
label: { fontSize: token.fontSize },
|
|
3172
|
+
"input[type=\"search\"]": { boxSizing: "border-box" },
|
|
3173
|
+
"input[type=\"radio\"], input[type=\"checkbox\"]": { lineHeight: "normal" },
|
|
3174
|
+
"input[type=\"file\"]": { display: "block" },
|
|
3175
|
+
"input[type=\"range\"]": {
|
|
3176
|
+
display: "block",
|
|
3177
|
+
width: "100%"
|
|
3178
|
+
},
|
|
3179
|
+
"select[multiple], select[size]": { height: "auto" },
|
|
3180
|
+
[`input[type='file']:focus,
|
|
3181
|
+
input[type='radio']:focus,
|
|
3182
|
+
input[type='checkbox']:focus`]: {
|
|
3183
|
+
outline: 0,
|
|
3184
|
+
boxShadow: `0 0 0 ${token.controlOutlineWidth}px ${token.controlOutline}`
|
|
3185
|
+
},
|
|
3186
|
+
output: {
|
|
3187
|
+
display: "block",
|
|
3188
|
+
paddingTop: 15,
|
|
3189
|
+
color: token.colorText,
|
|
3190
|
+
fontSize: token.fontSize,
|
|
3191
|
+
lineHeight: token.lineHeight
|
|
3192
|
+
}
|
|
3193
|
+
});
|
|
3194
|
+
var genFormSize = (token, height) => {
|
|
3195
|
+
const { formItemCls } = token;
|
|
3196
|
+
return { [formItemCls]: {
|
|
3197
|
+
[`${formItemCls}-label > label`]: { height },
|
|
3198
|
+
[`${formItemCls}-control-input`]: { minHeight: height }
|
|
3199
|
+
} };
|
|
3200
|
+
};
|
|
3201
|
+
var genFormStyle = (token) => {
|
|
3202
|
+
const { componentCls } = token;
|
|
3203
|
+
return { [token.componentCls]: _extends$1(_extends$1(_extends$1({}, resetComponent(token)), resetForm(token)), {
|
|
3204
|
+
[`${componentCls}-text`]: {
|
|
3205
|
+
display: "inline-block",
|
|
3206
|
+
paddingInlineEnd: token.paddingSM
|
|
3207
|
+
},
|
|
3208
|
+
"&-small": _extends$1({}, genFormSize(token, token.controlHeightSM)),
|
|
3209
|
+
"&-large": _extends$1({}, genFormSize(token, token.controlHeightLG))
|
|
3210
|
+
}) };
|
|
3211
|
+
};
|
|
3212
|
+
var genFormItemStyle = (token) => {
|
|
3213
|
+
const { formItemCls, iconCls, componentCls, rootPrefixCls } = token;
|
|
3214
|
+
return { [formItemCls]: _extends$1(_extends$1({}, resetComponent(token)), {
|
|
3215
|
+
marginBottom: token.marginLG,
|
|
3216
|
+
verticalAlign: "top",
|
|
3217
|
+
"&-with-help": { transition: "none" },
|
|
3218
|
+
[`&-hidden,
|
|
3219
|
+
&-hidden.${rootPrefixCls}-row`]: { display: "none" },
|
|
3220
|
+
"&-has-warning": { [`${formItemCls}-split`]: { color: token.colorError } },
|
|
3221
|
+
"&-has-error": { [`${formItemCls}-split`]: { color: token.colorWarning } },
|
|
3222
|
+
[`${formItemCls}-label`]: {
|
|
3223
|
+
display: "inline-block",
|
|
3224
|
+
flexGrow: 0,
|
|
3225
|
+
overflow: "hidden",
|
|
3226
|
+
whiteSpace: "nowrap",
|
|
3227
|
+
textAlign: "end",
|
|
3228
|
+
verticalAlign: "middle",
|
|
3229
|
+
"&-left": { textAlign: "start" },
|
|
3230
|
+
"&-wrap": {
|
|
3231
|
+
overflow: "unset",
|
|
3232
|
+
lineHeight: `${token.lineHeight} - 0.25em`,
|
|
3233
|
+
whiteSpace: "unset"
|
|
3234
|
+
},
|
|
3235
|
+
"> label": {
|
|
3236
|
+
position: "relative",
|
|
3237
|
+
display: "inline-flex",
|
|
3238
|
+
alignItems: "center",
|
|
3239
|
+
maxWidth: "100%",
|
|
3240
|
+
height: token.controlHeight,
|
|
3241
|
+
color: token.colorTextHeading,
|
|
3242
|
+
fontSize: token.fontSize,
|
|
3243
|
+
[`> ${iconCls}`]: {
|
|
3244
|
+
fontSize: token.fontSize,
|
|
3245
|
+
verticalAlign: "top"
|
|
3246
|
+
},
|
|
3247
|
+
[`&${formItemCls}-required:not(${formItemCls}-required-mark-optional)::before`]: {
|
|
3248
|
+
display: "inline-block",
|
|
3249
|
+
marginInlineEnd: token.marginXXS,
|
|
3250
|
+
color: token.colorError,
|
|
3251
|
+
fontSize: token.fontSize,
|
|
3252
|
+
fontFamily: "SimSun, sans-serif",
|
|
3253
|
+
lineHeight: 1,
|
|
3254
|
+
content: "\"*\"",
|
|
3255
|
+
[`${componentCls}-hide-required-mark &`]: { display: "none" }
|
|
3256
|
+
},
|
|
3257
|
+
[`${formItemCls}-optional`]: {
|
|
3258
|
+
display: "inline-block",
|
|
3259
|
+
marginInlineStart: token.marginXXS,
|
|
3260
|
+
color: token.colorTextDescription,
|
|
3261
|
+
[`${componentCls}-hide-required-mark &`]: { display: "none" }
|
|
3262
|
+
},
|
|
3263
|
+
[`${formItemCls}-tooltip`]: {
|
|
3264
|
+
color: token.colorTextDescription,
|
|
3265
|
+
cursor: "help",
|
|
3266
|
+
writingMode: "horizontal-tb",
|
|
3267
|
+
marginInlineStart: token.marginXXS
|
|
3268
|
+
},
|
|
3269
|
+
"&::after": {
|
|
3270
|
+
content: "\":\"",
|
|
3271
|
+
position: "relative",
|
|
3272
|
+
marginBlock: 0,
|
|
3273
|
+
marginInlineStart: token.marginXXS / 2,
|
|
3274
|
+
marginInlineEnd: token.marginXS
|
|
3275
|
+
},
|
|
3276
|
+
[`&${formItemCls}-no-colon::after`]: { content: "\" \"" }
|
|
3277
|
+
}
|
|
3278
|
+
},
|
|
3279
|
+
[`${formItemCls}-control`]: {
|
|
3280
|
+
display: "flex",
|
|
3281
|
+
flexDirection: "column",
|
|
3282
|
+
flexGrow: 1,
|
|
3283
|
+
[`&:first-child:not([class^="'${rootPrefixCls}-col-'"]):not([class*="' ${rootPrefixCls}-col-'"])`]: { width: "100%" },
|
|
3284
|
+
"&-input": {
|
|
3285
|
+
position: "relative",
|
|
3286
|
+
display: "flex",
|
|
3287
|
+
alignItems: "center",
|
|
3288
|
+
minHeight: token.controlHeight,
|
|
3289
|
+
"&-content": {
|
|
3290
|
+
flex: "auto",
|
|
3291
|
+
maxWidth: "100%"
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
},
|
|
3295
|
+
[formItemCls]: {
|
|
3296
|
+
"&-explain, &-extra": {
|
|
3297
|
+
clear: "both",
|
|
3298
|
+
color: token.colorTextDescription,
|
|
3299
|
+
fontSize: token.fontSize,
|
|
3300
|
+
lineHeight: token.lineHeight
|
|
3301
|
+
},
|
|
3302
|
+
"&-explain-connected": { width: "100%" },
|
|
3303
|
+
"&-extra": {
|
|
3304
|
+
minHeight: token.controlHeightSM,
|
|
3305
|
+
transition: `color ${token.motionDurationMid} ${token.motionEaseOut}`
|
|
3306
|
+
},
|
|
3307
|
+
"&-explain": {
|
|
3308
|
+
"&-error": { color: token.colorError },
|
|
3309
|
+
"&-warning": { color: token.colorWarning }
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
[`&-with-help ${formItemCls}-explain`]: {
|
|
3313
|
+
height: "auto",
|
|
3314
|
+
opacity: 1
|
|
3315
|
+
},
|
|
3316
|
+
[`${formItemCls}-feedback-icon`]: {
|
|
3317
|
+
fontSize: token.fontSize,
|
|
3318
|
+
textAlign: "center",
|
|
3319
|
+
visibility: "visible",
|
|
3320
|
+
animationName: zoomIn,
|
|
3321
|
+
animationDuration: token.motionDurationMid,
|
|
3322
|
+
animationTimingFunction: token.motionEaseOutBack,
|
|
3323
|
+
pointerEvents: "none",
|
|
3324
|
+
"&-success": { color: token.colorSuccess },
|
|
3325
|
+
"&-error": { color: token.colorError },
|
|
3326
|
+
"&-warning": { color: token.colorWarning },
|
|
3327
|
+
"&-validating": { color: token.colorPrimary }
|
|
3328
|
+
}
|
|
3329
|
+
}) };
|
|
3330
|
+
};
|
|
3331
|
+
var genHorizontalStyle = (token) => {
|
|
3332
|
+
const { componentCls, formItemCls, rootPrefixCls } = token;
|
|
3333
|
+
return { [`${componentCls}-horizontal`]: {
|
|
3334
|
+
[`${formItemCls}-label`]: { flexGrow: 0 },
|
|
3335
|
+
[`${formItemCls}-control`]: {
|
|
3336
|
+
flex: "1 1 0",
|
|
3337
|
+
minWidth: 0
|
|
3338
|
+
},
|
|
3339
|
+
[`${formItemCls}-label.${rootPrefixCls}-col-24 + ${formItemCls}-control`]: { minWidth: "unset" }
|
|
3340
|
+
} };
|
|
3341
|
+
};
|
|
3342
|
+
var genInlineStyle = (token) => {
|
|
3343
|
+
const { componentCls, formItemCls } = token;
|
|
3344
|
+
return { [`${componentCls}-inline`]: {
|
|
3345
|
+
display: "flex",
|
|
3346
|
+
flexWrap: "wrap",
|
|
3347
|
+
[formItemCls]: {
|
|
3348
|
+
flex: "none",
|
|
3349
|
+
flexWrap: "nowrap",
|
|
3350
|
+
marginInlineEnd: token.margin,
|
|
3351
|
+
marginBottom: 0,
|
|
3352
|
+
"&-with-help": { marginBottom: token.marginLG },
|
|
3353
|
+
[`> ${formItemCls}-label,
|
|
3354
|
+
> ${formItemCls}-control`]: {
|
|
3355
|
+
display: "inline-block",
|
|
3356
|
+
verticalAlign: "top"
|
|
3357
|
+
},
|
|
3358
|
+
[`> ${formItemCls}-label`]: { flex: "none" },
|
|
3359
|
+
[`${componentCls}-text`]: { display: "inline-block" },
|
|
3360
|
+
[`${formItemCls}-has-feedback`]: { display: "inline-block" }
|
|
3361
|
+
}
|
|
3362
|
+
} };
|
|
3363
|
+
};
|
|
3364
|
+
var makeVerticalLayoutLabel = (token) => ({
|
|
3365
|
+
margin: 0,
|
|
3366
|
+
padding: `0 0 ${token.paddingXS}px`,
|
|
3367
|
+
whiteSpace: "initial",
|
|
3368
|
+
textAlign: "start",
|
|
3369
|
+
"> label": {
|
|
3370
|
+
margin: 0,
|
|
3371
|
+
"&::after": { display: "none" }
|
|
3372
|
+
}
|
|
3373
|
+
});
|
|
3374
|
+
var makeVerticalLayout = (token) => {
|
|
3375
|
+
const { componentCls, formItemCls } = token;
|
|
3376
|
+
return {
|
|
3377
|
+
[`${formItemCls} ${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
3378
|
+
[componentCls]: { [formItemCls]: {
|
|
3379
|
+
flexWrap: "wrap",
|
|
3380
|
+
[`${formItemCls}-label,
|
|
3381
|
+
${formItemCls}-control`]: {
|
|
3382
|
+
flex: "0 0 100%",
|
|
3383
|
+
maxWidth: "100%"
|
|
3384
|
+
}
|
|
3385
|
+
} }
|
|
3386
|
+
};
|
|
3387
|
+
};
|
|
3388
|
+
var genVerticalStyle = (token) => {
|
|
3389
|
+
const { componentCls, formItemCls, rootPrefixCls } = token;
|
|
3390
|
+
return {
|
|
3391
|
+
[`${componentCls}-vertical`]: { [formItemCls]: {
|
|
3392
|
+
"&-row": { flexDirection: "column" },
|
|
3393
|
+
"&-label > label": { height: "auto" },
|
|
3394
|
+
[`${componentCls}-item-control`]: { width: "100%" }
|
|
3395
|
+
} },
|
|
3396
|
+
[`${componentCls}-vertical ${formItemCls}-label,
|
|
3397
|
+
.${rootPrefixCls}-col-24${formItemCls}-label,
|
|
3398
|
+
.${rootPrefixCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
3399
|
+
[`@media (max-width: ${token.screenXSMax}px)`]: [makeVerticalLayout(token), { [componentCls]: { [`.${rootPrefixCls}-col-xs-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } }],
|
|
3400
|
+
[`@media (max-width: ${token.screenSMMax}px)`]: { [componentCls]: { [`.${rootPrefixCls}-col-sm-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } },
|
|
3401
|
+
[`@media (max-width: ${token.screenMDMax}px)`]: { [componentCls]: { [`.${rootPrefixCls}-col-md-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } },
|
|
3402
|
+
[`@media (max-width: ${token.screenLGMax}px)`]: { [componentCls]: { [`.${rootPrefixCls}-col-lg-24${formItemCls}-label`]: makeVerticalLayoutLabel(token) } }
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
var style_default$1 = genComponentStyleHook("Form", (token, _ref) => {
|
|
3406
|
+
let { rootPrefixCls } = _ref;
|
|
3407
|
+
const formToken = merge(token, {
|
|
3408
|
+
formItemCls: `${token.componentCls}-item`,
|
|
3409
|
+
rootPrefixCls
|
|
3410
|
+
});
|
|
3411
|
+
return [
|
|
3412
|
+
genFormStyle(formToken),
|
|
3413
|
+
genFormItemStyle(formToken),
|
|
3414
|
+
genFormValidateMotionStyle(formToken),
|
|
3415
|
+
genHorizontalStyle(formToken),
|
|
3416
|
+
genInlineStyle(formToken),
|
|
3417
|
+
genVerticalStyle(formToken),
|
|
3418
|
+
genCollapseMotion(formToken),
|
|
3419
|
+
zoomIn
|
|
3420
|
+
];
|
|
3421
|
+
});
|
|
3422
|
+
//#endregion
|
|
3423
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/ErrorList.js
|
|
3424
|
+
var ErrorList_default = defineComponent({
|
|
3425
|
+
compatConfig: { MODE: 3 },
|
|
3426
|
+
name: "ErrorList",
|
|
3427
|
+
inheritAttrs: false,
|
|
3428
|
+
props: [
|
|
3429
|
+
"errors",
|
|
3430
|
+
"help",
|
|
3431
|
+
"onErrorVisibleChanged",
|
|
3432
|
+
"helpStatus",
|
|
3433
|
+
"warnings"
|
|
3434
|
+
],
|
|
3435
|
+
setup(props, _ref) {
|
|
3436
|
+
let { attrs } = _ref;
|
|
3437
|
+
const { prefixCls, status } = useInjectFormItemPrefix();
|
|
3438
|
+
const baseClassName = computed(() => `${prefixCls.value}-item-explain`);
|
|
3439
|
+
const visible = computed(() => !!(props.errors && props.errors.length));
|
|
3440
|
+
const innerStatus = ref(status.value);
|
|
3441
|
+
const [, hashId] = style_default$1(prefixCls);
|
|
3442
|
+
watch([visible, status], () => {
|
|
3443
|
+
if (visible.value) innerStatus.value = status.value;
|
|
3444
|
+
});
|
|
3445
|
+
return () => {
|
|
3446
|
+
var _a, _b;
|
|
3447
|
+
const colMItem = collapseMotion(`${prefixCls.value}-show-help-item`);
|
|
3448
|
+
const transitionGroupProps = getTransitionGroupProps(`${prefixCls.value}-show-help-item`, colMItem);
|
|
3449
|
+
transitionGroupProps.role = "alert";
|
|
3450
|
+
transitionGroupProps.class = [
|
|
3451
|
+
hashId.value,
|
|
3452
|
+
baseClassName.value,
|
|
3453
|
+
attrs.class,
|
|
3454
|
+
`${prefixCls.value}-show-help`
|
|
3455
|
+
];
|
|
3456
|
+
return createVNode(Transition, _objectSpread2(_objectSpread2({}, getTransitionProps(`${prefixCls.value}-show-help`)), {}, {
|
|
3457
|
+
"onAfterEnter": () => props.onErrorVisibleChanged(true),
|
|
3458
|
+
"onAfterLeave": () => props.onErrorVisibleChanged(false)
|
|
3459
|
+
}), { default: () => [withDirectives(createVNode(TransitionGroup, _objectSpread2(_objectSpread2({}, transitionGroupProps), {}, { "tag": "div" }), { default: () => [(_b = props.errors) === null || _b === void 0 ? void 0 : _b.map((error, index) => createVNode("div", {
|
|
3460
|
+
"key": index,
|
|
3461
|
+
"class": innerStatus.value ? `${baseClassName.value}-${innerStatus.value}` : ""
|
|
3462
|
+
}, [error]))] }), [[vShow, !!((_a = props.errors) === null || _a === void 0 ? void 0 : _a.length)]])] });
|
|
3463
|
+
};
|
|
3464
|
+
}
|
|
3465
|
+
});
|
|
3466
|
+
//#endregion
|
|
3467
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/FormItemInput.js
|
|
3468
|
+
var FormItemInput = defineComponent({
|
|
3469
|
+
compatConfig: { MODE: 3 },
|
|
3470
|
+
slots: Object,
|
|
3471
|
+
inheritAttrs: false,
|
|
3472
|
+
props: [
|
|
3473
|
+
"prefixCls",
|
|
3474
|
+
"errors",
|
|
3475
|
+
"hasFeedback",
|
|
3476
|
+
"onDomErrorVisibleChange",
|
|
3477
|
+
"wrapperCol",
|
|
3478
|
+
"help",
|
|
3479
|
+
"extra",
|
|
3480
|
+
"status",
|
|
3481
|
+
"marginBottom",
|
|
3482
|
+
"onErrorVisibleChanged"
|
|
3483
|
+
],
|
|
3484
|
+
setup(props, _ref) {
|
|
3485
|
+
let { slots } = _ref;
|
|
3486
|
+
const formContext = useInjectForm();
|
|
3487
|
+
const { wrapperCol: contextWrapperCol } = formContext;
|
|
3488
|
+
const subFormContext = _extends$1({}, formContext);
|
|
3489
|
+
delete subFormContext.labelCol;
|
|
3490
|
+
delete subFormContext.wrapperCol;
|
|
3491
|
+
useProvideForm(subFormContext);
|
|
3492
|
+
useProvideFormItemPrefix({
|
|
3493
|
+
prefixCls: computed(() => props.prefixCls),
|
|
3494
|
+
status: computed(() => props.status)
|
|
3495
|
+
});
|
|
3496
|
+
return () => {
|
|
3497
|
+
var _a, _b, _c;
|
|
3498
|
+
const { prefixCls, wrapperCol, marginBottom, onErrorVisibleChanged, help = (_a = slots.help) === null || _a === void 0 ? void 0 : _a.call(slots), errors = filterEmpty((_b = slots.errors) === null || _b === void 0 ? void 0 : _b.call(slots)), extra = (_c = slots.extra) === null || _c === void 0 ? void 0 : _c.call(slots) } = props;
|
|
3499
|
+
const baseClassName = `${prefixCls}-item`;
|
|
3500
|
+
const mergedWrapperCol = wrapperCol || (contextWrapperCol === null || contextWrapperCol === void 0 ? void 0 : contextWrapperCol.value) || {};
|
|
3501
|
+
const className = classNames(`${baseClassName}-control`, mergedWrapperCol.class);
|
|
3502
|
+
return createVNode(Col_default, _objectSpread2(_objectSpread2({}, mergedWrapperCol), {}, { "class": className }), { default: () => {
|
|
3503
|
+
var _a;
|
|
3504
|
+
return createVNode(Fragment, null, [
|
|
3505
|
+
createVNode("div", { "class": `${baseClassName}-control-input` }, [createVNode("div", { "class": `${baseClassName}-control-input-content` }, [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)])]),
|
|
3506
|
+
marginBottom !== null || errors.length ? createVNode("div", { "style": {
|
|
3507
|
+
display: "flex",
|
|
3508
|
+
flexWrap: "nowrap"
|
|
3509
|
+
} }, [createVNode(ErrorList_default, {
|
|
3510
|
+
"errors": errors,
|
|
3511
|
+
"help": help,
|
|
3512
|
+
"class": `${baseClassName}-explain-connected`,
|
|
3513
|
+
"onErrorVisibleChanged": onErrorVisibleChanged
|
|
3514
|
+
}, null), !!marginBottom && createVNode("div", { "style": {
|
|
3515
|
+
width: 0,
|
|
3516
|
+
height: `${marginBottom}px`
|
|
3517
|
+
} }, null)]) : null,
|
|
3518
|
+
extra ? createVNode("div", { "class": `${baseClassName}-extra` }, [extra]) : null
|
|
3519
|
+
]);
|
|
3520
|
+
} });
|
|
3521
|
+
};
|
|
3522
|
+
}
|
|
3523
|
+
});
|
|
3524
|
+
//#endregion
|
|
3525
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/useDebounce.js
|
|
3526
|
+
function useDebounce(value) {
|
|
3527
|
+
const cacheValue = shallowRef(value.value.slice());
|
|
3528
|
+
let timeout = null;
|
|
3529
|
+
watchEffect(() => {
|
|
3530
|
+
clearTimeout(timeout);
|
|
3531
|
+
timeout = setTimeout(() => {
|
|
3532
|
+
cacheValue.value = value.value;
|
|
3533
|
+
}, value.value.length ? 0 : 10);
|
|
3534
|
+
});
|
|
3535
|
+
return cacheValue;
|
|
3536
|
+
}
|
|
3537
|
+
//#endregion
|
|
3538
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/FormItem.js
|
|
3539
|
+
tuple("success", "warning", "error", "validating", "");
|
|
3540
|
+
var iconMap = {
|
|
3541
|
+
success: CheckCircleFilled,
|
|
3542
|
+
warning: ExclamationCircleFilled,
|
|
3543
|
+
error: CloseCircleFilled,
|
|
3544
|
+
validating: LoadingOutlined
|
|
3545
|
+
};
|
|
3546
|
+
function getPropByPath$1(obj, namePathList, strict) {
|
|
3547
|
+
let tempObj = obj;
|
|
3548
|
+
const keyArr = namePathList;
|
|
3549
|
+
let i = 0;
|
|
3550
|
+
try {
|
|
3551
|
+
for (let len = keyArr.length; i < len - 1; ++i) {
|
|
3552
|
+
if (!tempObj && !strict) break;
|
|
3553
|
+
const key = keyArr[i];
|
|
3554
|
+
if (key in tempObj) tempObj = tempObj[key];
|
|
3555
|
+
else {
|
|
3556
|
+
if (strict) throw Error("please transfer a valid name path to form item!");
|
|
3557
|
+
break;
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
if (strict && !tempObj) throw Error("please transfer a valid name path to form item!");
|
|
3561
|
+
} catch (error) {
|
|
3562
|
+
console.error("please transfer a valid name path to form item!");
|
|
3563
|
+
}
|
|
3564
|
+
return {
|
|
3565
|
+
o: tempObj,
|
|
3566
|
+
k: keyArr[i],
|
|
3567
|
+
v: tempObj ? tempObj[keyArr[i]] : void 0
|
|
3568
|
+
};
|
|
3569
|
+
}
|
|
3570
|
+
var formItemProps = () => ({
|
|
3571
|
+
htmlFor: String,
|
|
3572
|
+
prefixCls: String,
|
|
3573
|
+
label: PropTypes.any,
|
|
3574
|
+
help: PropTypes.any,
|
|
3575
|
+
extra: PropTypes.any,
|
|
3576
|
+
labelCol: { type: Object },
|
|
3577
|
+
wrapperCol: { type: Object },
|
|
3578
|
+
hasFeedback: {
|
|
3579
|
+
type: Boolean,
|
|
3580
|
+
default: false
|
|
3581
|
+
},
|
|
3582
|
+
colon: {
|
|
3583
|
+
type: Boolean,
|
|
3584
|
+
default: void 0
|
|
3585
|
+
},
|
|
3586
|
+
labelAlign: String,
|
|
3587
|
+
prop: { type: [
|
|
3588
|
+
String,
|
|
3589
|
+
Number,
|
|
3590
|
+
Array
|
|
3591
|
+
] },
|
|
3592
|
+
name: { type: [
|
|
3593
|
+
String,
|
|
3594
|
+
Number,
|
|
3595
|
+
Array
|
|
3596
|
+
] },
|
|
3597
|
+
rules: [Array, Object],
|
|
3598
|
+
autoLink: {
|
|
3599
|
+
type: Boolean,
|
|
3600
|
+
default: true
|
|
3601
|
+
},
|
|
3602
|
+
required: {
|
|
3603
|
+
type: Boolean,
|
|
3604
|
+
default: void 0
|
|
3605
|
+
},
|
|
3606
|
+
validateFirst: {
|
|
3607
|
+
type: Boolean,
|
|
3608
|
+
default: void 0
|
|
3609
|
+
},
|
|
3610
|
+
validateStatus: PropTypes.oneOf(tuple("", "success", "warning", "error", "validating")),
|
|
3611
|
+
validateTrigger: { type: [String, Array] },
|
|
3612
|
+
messageVariables: { type: Object },
|
|
3613
|
+
hidden: Boolean,
|
|
3614
|
+
noStyle: Boolean,
|
|
3615
|
+
tooltip: String
|
|
3616
|
+
});
|
|
3617
|
+
var indexGuid = 0;
|
|
3618
|
+
var defaultItemNamePrefixCls = "form_item";
|
|
3619
|
+
var FormItem_default = defineComponent({
|
|
3620
|
+
compatConfig: { MODE: 3 },
|
|
3621
|
+
name: "AFormItem",
|
|
3622
|
+
inheritAttrs: false,
|
|
3623
|
+
__ANT_NEW_FORM_ITEM: true,
|
|
3624
|
+
props: formItemProps(),
|
|
3625
|
+
slots: Object,
|
|
3626
|
+
setup(props, _ref) {
|
|
3627
|
+
let { slots, attrs, expose } = _ref;
|
|
3628
|
+
props.prop;
|
|
3629
|
+
const eventKey = `form-item-${++indexGuid}`;
|
|
3630
|
+
const { prefixCls } = useConfigInject_default("form", props);
|
|
3631
|
+
const [wrapSSR, hashId] = style_default$1(prefixCls);
|
|
3632
|
+
const itemRef = shallowRef();
|
|
3633
|
+
const formContext = useInjectForm();
|
|
3634
|
+
const fieldName = computed(() => props.name || props.prop);
|
|
3635
|
+
const errors = shallowRef([]);
|
|
3636
|
+
const validateDisabled = shallowRef(false);
|
|
3637
|
+
const inputRef = shallowRef();
|
|
3638
|
+
const namePath = computed(() => {
|
|
3639
|
+
const val = fieldName.value;
|
|
3640
|
+
return getNamePath(val);
|
|
3641
|
+
});
|
|
3642
|
+
const fieldId = computed(() => {
|
|
3643
|
+
if (!namePath.value.length) return;
|
|
3644
|
+
else {
|
|
3645
|
+
const formName = formContext.name.value;
|
|
3646
|
+
const mergedId = namePath.value.join("_");
|
|
3647
|
+
return formName ? `${formName}_${mergedId}` : `${defaultItemNamePrefixCls}_${mergedId}`;
|
|
3648
|
+
}
|
|
3649
|
+
});
|
|
3650
|
+
const getNewFieldValue = () => {
|
|
3651
|
+
const model = formContext.model.value;
|
|
3652
|
+
if (!model || !fieldName.value) return;
|
|
3653
|
+
else return getPropByPath$1(model, namePath.value, true).v;
|
|
3654
|
+
};
|
|
3655
|
+
const fieldValue = computed(() => getNewFieldValue());
|
|
3656
|
+
const initialValue = shallowRef(cloneDeep(fieldValue.value));
|
|
3657
|
+
const mergedValidateTrigger = computed(() => {
|
|
3658
|
+
let validateTrigger = props.validateTrigger !== void 0 ? props.validateTrigger : formContext.validateTrigger.value;
|
|
3659
|
+
validateTrigger = validateTrigger === void 0 ? "change" : validateTrigger;
|
|
3660
|
+
return toArray$1(validateTrigger);
|
|
3661
|
+
});
|
|
3662
|
+
const rulesRef = computed(() => {
|
|
3663
|
+
let formRules = formContext.rules.value;
|
|
3664
|
+
const selfRules = props.rules;
|
|
3665
|
+
const requiredRule = props.required !== void 0 ? {
|
|
3666
|
+
required: !!props.required,
|
|
3667
|
+
trigger: mergedValidateTrigger.value
|
|
3668
|
+
} : [];
|
|
3669
|
+
const prop = getPropByPath$1(formRules, namePath.value);
|
|
3670
|
+
formRules = formRules ? prop.o[prop.k] || prop.v : [];
|
|
3671
|
+
const rules = [].concat(selfRules || formRules || []);
|
|
3672
|
+
if (find(rules, (rule) => rule.required)) return rules;
|
|
3673
|
+
else return rules.concat(requiredRule);
|
|
3674
|
+
});
|
|
3675
|
+
const isRequired = computed(() => {
|
|
3676
|
+
const rules = rulesRef.value;
|
|
3677
|
+
let isRequired = false;
|
|
3678
|
+
if (rules && rules.length) rules.every((rule) => {
|
|
3679
|
+
if (rule.required) {
|
|
3680
|
+
isRequired = true;
|
|
3681
|
+
return false;
|
|
3682
|
+
}
|
|
3683
|
+
return true;
|
|
3684
|
+
});
|
|
3685
|
+
return isRequired || props.required;
|
|
3686
|
+
});
|
|
3687
|
+
const validateState = shallowRef();
|
|
3688
|
+
watchEffect(() => {
|
|
3689
|
+
validateState.value = props.validateStatus;
|
|
3690
|
+
});
|
|
3691
|
+
const messageVariables = computed(() => {
|
|
3692
|
+
let variables = {};
|
|
3693
|
+
if (typeof props.label === "string") variables.label = props.label;
|
|
3694
|
+
else if (props.name) variables.label = String(props.name);
|
|
3695
|
+
if (props.messageVariables) variables = _extends$1(_extends$1({}, variables), props.messageVariables);
|
|
3696
|
+
return variables;
|
|
3697
|
+
});
|
|
3698
|
+
const validateRules$1 = (options) => {
|
|
3699
|
+
if (namePath.value.length === 0) return;
|
|
3700
|
+
const { validateFirst = false } = props;
|
|
3701
|
+
const { triggerName } = options || {};
|
|
3702
|
+
let filteredRules = rulesRef.value;
|
|
3703
|
+
if (triggerName) filteredRules = filteredRules.filter((rule) => {
|
|
3704
|
+
const { trigger } = rule;
|
|
3705
|
+
if (!trigger && !mergedValidateTrigger.value.length) return true;
|
|
3706
|
+
return toArray$1(trigger || mergedValidateTrigger.value).includes(triggerName);
|
|
3707
|
+
});
|
|
3708
|
+
if (!filteredRules.length) return Promise.resolve();
|
|
3709
|
+
const promise = validateRules(namePath.value, fieldValue.value, filteredRules, _extends$1({ validateMessages: formContext.validateMessages.value }, options), validateFirst, messageVariables.value);
|
|
3710
|
+
validateState.value = "validating";
|
|
3711
|
+
errors.value = [];
|
|
3712
|
+
promise.catch((e) => e).then(function() {
|
|
3713
|
+
let results = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3714
|
+
if (validateState.value === "validating") {
|
|
3715
|
+
const res = results.filter((result) => result && result.errors.length);
|
|
3716
|
+
validateState.value = res.length ? "error" : "success";
|
|
3717
|
+
errors.value = res.map((r) => r.errors);
|
|
3718
|
+
formContext.onValidate(fieldName.value, !errors.value.length, errors.value.length ? toRaw(errors.value[0]) : null);
|
|
3719
|
+
}
|
|
3720
|
+
});
|
|
3721
|
+
return promise;
|
|
3722
|
+
};
|
|
3723
|
+
const onFieldBlur = () => {
|
|
3724
|
+
validateRules$1({ triggerName: "blur" });
|
|
3725
|
+
};
|
|
3726
|
+
const onFieldChange = () => {
|
|
3727
|
+
if (validateDisabled.value) {
|
|
3728
|
+
validateDisabled.value = false;
|
|
3729
|
+
return;
|
|
3730
|
+
}
|
|
3731
|
+
validateRules$1({ triggerName: "change" });
|
|
3732
|
+
};
|
|
3733
|
+
const clearValidate = () => {
|
|
3734
|
+
validateState.value = props.validateStatus;
|
|
3735
|
+
validateDisabled.value = false;
|
|
3736
|
+
errors.value = [];
|
|
3737
|
+
};
|
|
3738
|
+
const resetField = () => {
|
|
3739
|
+
var _a;
|
|
3740
|
+
validateState.value = props.validateStatus;
|
|
3741
|
+
validateDisabled.value = true;
|
|
3742
|
+
errors.value = [];
|
|
3743
|
+
const model = formContext.model.value || {};
|
|
3744
|
+
const value = fieldValue.value;
|
|
3745
|
+
const prop = getPropByPath$1(model, namePath.value, true);
|
|
3746
|
+
if (Array.isArray(value)) prop.o[prop.k] = [].concat((_a = initialValue.value) !== null && _a !== void 0 ? _a : []);
|
|
3747
|
+
else prop.o[prop.k] = initialValue.value;
|
|
3748
|
+
nextTick(() => {
|
|
3749
|
+
validateDisabled.value = false;
|
|
3750
|
+
});
|
|
3751
|
+
};
|
|
3752
|
+
const htmlFor = computed(() => {
|
|
3753
|
+
return props.htmlFor === void 0 ? fieldId.value : props.htmlFor;
|
|
3754
|
+
});
|
|
3755
|
+
const onLabelClick = () => {
|
|
3756
|
+
const id = htmlFor.value;
|
|
3757
|
+
if (!id || !inputRef.value) return;
|
|
3758
|
+
const control = inputRef.value.$el.querySelector(`[id="${id}"]`);
|
|
3759
|
+
if (control && control.focus) control.focus();
|
|
3760
|
+
};
|
|
3761
|
+
expose({
|
|
3762
|
+
onFieldBlur,
|
|
3763
|
+
onFieldChange,
|
|
3764
|
+
clearValidate,
|
|
3765
|
+
resetField
|
|
3766
|
+
});
|
|
3767
|
+
useProvideFormItemContext({
|
|
3768
|
+
id: fieldId,
|
|
3769
|
+
onFieldBlur: () => {
|
|
3770
|
+
if (props.autoLink) onFieldBlur();
|
|
3771
|
+
},
|
|
3772
|
+
onFieldChange: () => {
|
|
3773
|
+
if (props.autoLink) onFieldChange();
|
|
3774
|
+
},
|
|
3775
|
+
clearValidate
|
|
3776
|
+
}, computed(() => {
|
|
3777
|
+
return !!(props.autoLink && formContext.model.value && fieldName.value);
|
|
3778
|
+
}));
|
|
3779
|
+
let registered = false;
|
|
3780
|
+
watch(fieldName, (val) => {
|
|
3781
|
+
if (val) {
|
|
3782
|
+
if (!registered) {
|
|
3783
|
+
registered = true;
|
|
3784
|
+
formContext.addField(eventKey, {
|
|
3785
|
+
fieldValue,
|
|
3786
|
+
fieldId,
|
|
3787
|
+
fieldName,
|
|
3788
|
+
resetField,
|
|
3789
|
+
clearValidate,
|
|
3790
|
+
namePath,
|
|
3791
|
+
validateRules: validateRules$1,
|
|
3792
|
+
rules: rulesRef
|
|
3793
|
+
});
|
|
3794
|
+
}
|
|
3795
|
+
} else {
|
|
3796
|
+
registered = false;
|
|
3797
|
+
formContext.removeField(eventKey);
|
|
3798
|
+
}
|
|
3799
|
+
}, { immediate: true });
|
|
3800
|
+
const debounceErrors = useDebounce(errors);
|
|
3801
|
+
const mergedValidateStatus = computed(() => {
|
|
3802
|
+
if (props.validateStatus !== void 0) return props.validateStatus;
|
|
3803
|
+
else if (debounceErrors.value.length) return "error";
|
|
3804
|
+
return validateState.value;
|
|
3805
|
+
});
|
|
3806
|
+
const itemClassName = computed(() => ({
|
|
3807
|
+
[`${prefixCls.value}-item`]: true,
|
|
3808
|
+
[hashId.value]: true,
|
|
3809
|
+
[`${prefixCls.value}-item-has-feedback`]: mergedValidateStatus.value && props.hasFeedback,
|
|
3810
|
+
[`${prefixCls.value}-item-has-success`]: mergedValidateStatus.value === "success",
|
|
3811
|
+
[`${prefixCls.value}-item-has-warning`]: mergedValidateStatus.value === "warning",
|
|
3812
|
+
[`${prefixCls.value}-item-has-error`]: mergedValidateStatus.value === "error",
|
|
3813
|
+
[`${prefixCls.value}-item-is-validating`]: mergedValidateStatus.value === "validating",
|
|
3814
|
+
[`${prefixCls.value}-item-hidden`]: props.hidden
|
|
3815
|
+
}));
|
|
3816
|
+
const formItemInputContext = reactive({});
|
|
3817
|
+
FormItemInputContext.useProvide(formItemInputContext);
|
|
3818
|
+
watchEffect(() => {
|
|
3819
|
+
let feedbackIcon;
|
|
3820
|
+
if (props.hasFeedback) {
|
|
3821
|
+
const IconNode = mergedValidateStatus.value && iconMap[mergedValidateStatus.value];
|
|
3822
|
+
feedbackIcon = IconNode ? createVNode("span", { "class": classNames(`${prefixCls.value}-item-feedback-icon`, `${prefixCls.value}-item-feedback-icon-${mergedValidateStatus.value}`) }, [createVNode(IconNode, null, null)]) : null;
|
|
3823
|
+
}
|
|
3824
|
+
_extends$1(formItemInputContext, {
|
|
3825
|
+
status: mergedValidateStatus.value,
|
|
3826
|
+
hasFeedback: props.hasFeedback,
|
|
3827
|
+
feedbackIcon,
|
|
3828
|
+
isFormItemInput: true
|
|
3829
|
+
});
|
|
3830
|
+
});
|
|
3831
|
+
const marginBottom = shallowRef(null);
|
|
3832
|
+
const showMarginOffset = shallowRef(false);
|
|
3833
|
+
const onErrorVisibleChanged = (nextVisible) => {
|
|
3834
|
+
if (!nextVisible) marginBottom.value = null;
|
|
3835
|
+
};
|
|
3836
|
+
return () => {
|
|
3837
|
+
var _a, _b;
|
|
3838
|
+
if (props.noStyle) return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots);
|
|
3839
|
+
const help = (_b = props.help) !== null && _b !== void 0 ? _b : slots.help ? filterEmpty(slots.help()) : null;
|
|
3840
|
+
const withHelp = !!(help !== void 0 && help !== null && Array.isArray(help) && help.length || debounceErrors.value.length);
|
|
3841
|
+
showMarginOffset.value = withHelp;
|
|
3842
|
+
return wrapSSR(createVNode("div", {
|
|
3843
|
+
"class": [
|
|
3844
|
+
itemClassName.value,
|
|
3845
|
+
withHelp ? `${prefixCls.value}-item-with-help` : "",
|
|
3846
|
+
attrs.class
|
|
3847
|
+
],
|
|
3848
|
+
"ref": itemRef
|
|
3849
|
+
}, [createVNode(ARow, _objectSpread2(_objectSpread2({}, attrs), {}, {
|
|
3850
|
+
"class": `${prefixCls.value}-item-row`,
|
|
3851
|
+
"key": "row"
|
|
3852
|
+
}), { default: () => {
|
|
3853
|
+
var _a, _b;
|
|
3854
|
+
return createVNode(Fragment, null, [createVNode(FormItemLabel, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
3855
|
+
"htmlFor": htmlFor.value,
|
|
3856
|
+
"required": isRequired.value,
|
|
3857
|
+
"requiredMark": formContext.requiredMark.value,
|
|
3858
|
+
"prefixCls": prefixCls.value,
|
|
3859
|
+
"onClick": onLabelClick,
|
|
3860
|
+
"label": props.label
|
|
3861
|
+
}), {
|
|
3862
|
+
label: slots.label,
|
|
3863
|
+
tooltip: slots.tooltip
|
|
3864
|
+
}), createVNode(FormItemInput, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
3865
|
+
"errors": help !== void 0 && help !== null ? toArray$1(help) : debounceErrors.value,
|
|
3866
|
+
"marginBottom": marginBottom.value,
|
|
3867
|
+
"prefixCls": prefixCls.value,
|
|
3868
|
+
"status": mergedValidateStatus.value,
|
|
3869
|
+
"ref": inputRef,
|
|
3870
|
+
"help": help,
|
|
3871
|
+
"extra": (_a = props.extra) !== null && _a !== void 0 ? _a : (_b = slots.extra) === null || _b === void 0 ? void 0 : _b.call(slots),
|
|
3872
|
+
"onErrorVisibleChanged": onErrorVisibleChanged
|
|
3873
|
+
}), { default: slots.default })]);
|
|
3874
|
+
} }), !!marginBottom.value && createVNode("div", {
|
|
3875
|
+
"class": `${prefixCls.value}-margin-offset`,
|
|
3876
|
+
"style": { marginBottom: `-${marginBottom.value}px` }
|
|
3877
|
+
}, null)]));
|
|
3878
|
+
};
|
|
3879
|
+
}
|
|
3880
|
+
});
|
|
3881
|
+
//#endregion
|
|
3882
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/utils/asyncUtil.js
|
|
3883
|
+
function allPromiseFinish(promiseList) {
|
|
3884
|
+
let hasError = false;
|
|
3885
|
+
let count = promiseList.length;
|
|
3886
|
+
const results = [];
|
|
3887
|
+
if (!promiseList.length) return Promise.resolve([]);
|
|
3888
|
+
return new Promise((resolve, reject) => {
|
|
3889
|
+
promiseList.forEach((promise, index) => {
|
|
3890
|
+
promise.catch((e) => {
|
|
3891
|
+
hasError = true;
|
|
3892
|
+
return e;
|
|
3893
|
+
}).then((result) => {
|
|
3894
|
+
count -= 1;
|
|
3895
|
+
results[index] = result;
|
|
3896
|
+
if (count > 0) return;
|
|
3897
|
+
if (hasError) reject(results);
|
|
3898
|
+
resolve(results);
|
|
3899
|
+
});
|
|
3900
|
+
});
|
|
3901
|
+
});
|
|
3902
|
+
}
|
|
3903
|
+
//#endregion
|
|
3904
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/useForm.js
|
|
3905
|
+
function isRequired(rules) {
|
|
3906
|
+
let isRequired = false;
|
|
3907
|
+
if (rules && rules.length) rules.every((rule) => {
|
|
3908
|
+
if (rule.required) {
|
|
3909
|
+
isRequired = true;
|
|
3910
|
+
return false;
|
|
3911
|
+
}
|
|
3912
|
+
return true;
|
|
3913
|
+
});
|
|
3914
|
+
return isRequired;
|
|
3915
|
+
}
|
|
3916
|
+
function toArray(value) {
|
|
3917
|
+
if (value === void 0 || value === null) return [];
|
|
3918
|
+
return Array.isArray(value) ? value : [value];
|
|
3919
|
+
}
|
|
3920
|
+
function getPropByPath(obj, path, strict) {
|
|
3921
|
+
let tempObj = obj;
|
|
3922
|
+
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
3923
|
+
path = path.replace(/^\./, "");
|
|
3924
|
+
const keyArr = path.split(".");
|
|
3925
|
+
let i = 0;
|
|
3926
|
+
for (let len = keyArr.length; i < len - 1; ++i) {
|
|
3927
|
+
if (!tempObj && !strict) break;
|
|
3928
|
+
const key = keyArr[i];
|
|
3929
|
+
if (key in tempObj) tempObj = tempObj[key];
|
|
3930
|
+
else {
|
|
3931
|
+
if (strict) throw new Error("please transfer a valid name path to validate!");
|
|
3932
|
+
break;
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
return {
|
|
3936
|
+
o: tempObj,
|
|
3937
|
+
k: keyArr[i],
|
|
3938
|
+
v: tempObj ? tempObj[keyArr[i]] : null,
|
|
3939
|
+
isValid: tempObj && keyArr[i] in tempObj
|
|
3940
|
+
};
|
|
3941
|
+
}
|
|
3942
|
+
function useForm(modelRef) {
|
|
3943
|
+
let rulesRef = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ref({});
|
|
3944
|
+
let options = arguments.length > 2 ? arguments[2] : void 0;
|
|
3945
|
+
const initialModel = cloneDeep(unref(modelRef));
|
|
3946
|
+
const validateInfos = reactive({});
|
|
3947
|
+
const rulesKeys = shallowRef([]);
|
|
3948
|
+
const resetFields = (newValues) => {
|
|
3949
|
+
_extends$1(unref(modelRef), _extends$1(_extends$1({}, cloneDeep(initialModel)), newValues));
|
|
3950
|
+
nextTick(() => {
|
|
3951
|
+
Object.keys(validateInfos).forEach((key) => {
|
|
3952
|
+
validateInfos[key] = {
|
|
3953
|
+
autoLink: false,
|
|
3954
|
+
required: isRequired(unref(rulesRef)[key])
|
|
3955
|
+
};
|
|
3956
|
+
});
|
|
3957
|
+
});
|
|
3958
|
+
};
|
|
3959
|
+
const filterRules = function() {
|
|
3960
|
+
let rules = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3961
|
+
let trigger = arguments.length > 1 ? arguments[1] : void 0;
|
|
3962
|
+
if (!trigger.length) return rules;
|
|
3963
|
+
else return rules.filter((rule) => {
|
|
3964
|
+
return intersection(toArray(rule.trigger || "change"), trigger).length;
|
|
3965
|
+
});
|
|
3966
|
+
};
|
|
3967
|
+
let lastValidatePromise = null;
|
|
3968
|
+
const validateFields = function(names) {
|
|
3969
|
+
let option = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3970
|
+
let strict = arguments.length > 2 ? arguments[2] : void 0;
|
|
3971
|
+
const promiseList = [];
|
|
3972
|
+
const values = {};
|
|
3973
|
+
for (let i = 0; i < names.length; i++) {
|
|
3974
|
+
const name = names[i];
|
|
3975
|
+
const prop = getPropByPath(unref(modelRef), name, strict);
|
|
3976
|
+
if (!prop.isValid) continue;
|
|
3977
|
+
values[name] = prop.v;
|
|
3978
|
+
const rules = filterRules(unref(rulesRef)[name], toArray(option && option.trigger));
|
|
3979
|
+
if (rules.length) promiseList.push(validateField(name, prop.v, rules, option || {}).then(() => ({
|
|
3980
|
+
name,
|
|
3981
|
+
errors: [],
|
|
3982
|
+
warnings: []
|
|
3983
|
+
})).catch((ruleErrors) => {
|
|
3984
|
+
const mergedErrors = [];
|
|
3985
|
+
const mergedWarnings = [];
|
|
3986
|
+
ruleErrors.forEach((_ref) => {
|
|
3987
|
+
let { rule: { warningOnly }, errors } = _ref;
|
|
3988
|
+
if (warningOnly) mergedWarnings.push(...errors);
|
|
3989
|
+
else mergedErrors.push(...errors);
|
|
3990
|
+
});
|
|
3991
|
+
if (mergedErrors.length) return Promise.reject({
|
|
3992
|
+
name,
|
|
3993
|
+
errors: mergedErrors,
|
|
3994
|
+
warnings: mergedWarnings
|
|
3995
|
+
});
|
|
3996
|
+
return {
|
|
3997
|
+
name,
|
|
3998
|
+
errors: mergedErrors,
|
|
3999
|
+
warnings: mergedWarnings
|
|
4000
|
+
};
|
|
4001
|
+
}));
|
|
4002
|
+
}
|
|
4003
|
+
const summaryPromise = allPromiseFinish(promiseList);
|
|
4004
|
+
lastValidatePromise = summaryPromise;
|
|
4005
|
+
const returnPromise = summaryPromise.then(() => {
|
|
4006
|
+
if (lastValidatePromise === summaryPromise) return Promise.resolve(values);
|
|
4007
|
+
return Promise.reject([]);
|
|
4008
|
+
}).catch((results) => {
|
|
4009
|
+
const errorList = results.filter((result) => result && result.errors.length);
|
|
4010
|
+
return errorList.length ? Promise.reject({
|
|
4011
|
+
values,
|
|
4012
|
+
errorFields: errorList,
|
|
4013
|
+
outOfDate: lastValidatePromise !== summaryPromise
|
|
4014
|
+
}) : Promise.resolve(values);
|
|
4015
|
+
});
|
|
4016
|
+
returnPromise.catch((e) => e);
|
|
4017
|
+
return returnPromise;
|
|
4018
|
+
};
|
|
4019
|
+
const validateField = function(name, value, rules) {
|
|
4020
|
+
let option = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
4021
|
+
const promise = validateRules([name], value, rules, _extends$1({ validateMessages: defaultValidateMessages }, option), !!option.validateFirst);
|
|
4022
|
+
if (!validateInfos[name]) return promise.catch((e) => e);
|
|
4023
|
+
validateInfos[name].validateStatus = "validating";
|
|
4024
|
+
promise.catch((e) => e).then(function() {
|
|
4025
|
+
let results = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
4026
|
+
var _a;
|
|
4027
|
+
if (validateInfos[name].validateStatus === "validating") {
|
|
4028
|
+
const res = results.filter((result) => result && result.errors.length);
|
|
4029
|
+
validateInfos[name].validateStatus = res.length ? "error" : "success";
|
|
4030
|
+
validateInfos[name].help = res.length ? res.map((r) => r.errors) : null;
|
|
4031
|
+
(_a = options === null || options === void 0 ? void 0 : options.onValidate) === null || _a === void 0 || _a.call(options, name, !res.length, res.length ? toRaw(validateInfos[name].help[0]) : null);
|
|
4032
|
+
}
|
|
4033
|
+
});
|
|
4034
|
+
return promise;
|
|
4035
|
+
};
|
|
4036
|
+
const validate = (names, option) => {
|
|
4037
|
+
let keys = [];
|
|
4038
|
+
let strict = true;
|
|
4039
|
+
if (!names) {
|
|
4040
|
+
strict = false;
|
|
4041
|
+
keys = rulesKeys.value;
|
|
4042
|
+
} else if (Array.isArray(names)) keys = names;
|
|
4043
|
+
else keys = [names];
|
|
4044
|
+
const promises = validateFields(keys, option || {}, strict);
|
|
4045
|
+
promises.catch((e) => e);
|
|
4046
|
+
return promises;
|
|
4047
|
+
};
|
|
4048
|
+
const clearValidate = (names) => {
|
|
4049
|
+
let keys = [];
|
|
4050
|
+
if (!names) keys = rulesKeys.value;
|
|
4051
|
+
else if (Array.isArray(names)) keys = names;
|
|
4052
|
+
else keys = [names];
|
|
4053
|
+
keys.forEach((key) => {
|
|
4054
|
+
validateInfos[key] && _extends$1(validateInfos[key], {
|
|
4055
|
+
validateStatus: "",
|
|
4056
|
+
help: null
|
|
4057
|
+
});
|
|
4058
|
+
});
|
|
4059
|
+
};
|
|
4060
|
+
const mergeValidateInfo = (items) => {
|
|
4061
|
+
const info = { autoLink: false };
|
|
4062
|
+
const help = [];
|
|
4063
|
+
const infos = Array.isArray(items) ? items : [items];
|
|
4064
|
+
for (let i = 0; i < infos.length; i++) {
|
|
4065
|
+
const arg = infos[i];
|
|
4066
|
+
if ((arg === null || arg === void 0 ? void 0 : arg.validateStatus) === "error") {
|
|
4067
|
+
info.validateStatus = "error";
|
|
4068
|
+
arg.help && help.push(arg.help);
|
|
4069
|
+
}
|
|
4070
|
+
info.required = info.required || (arg === null || arg === void 0 ? void 0 : arg.required);
|
|
4071
|
+
}
|
|
4072
|
+
info.help = help;
|
|
4073
|
+
return info;
|
|
4074
|
+
};
|
|
4075
|
+
let oldModel = initialModel;
|
|
4076
|
+
let isFirstTime = true;
|
|
4077
|
+
const modelFn = (model) => {
|
|
4078
|
+
const names = [];
|
|
4079
|
+
rulesKeys.value.forEach((key) => {
|
|
4080
|
+
const prop = getPropByPath(model, key, false);
|
|
4081
|
+
const oldProp = getPropByPath(oldModel, key, false);
|
|
4082
|
+
if (isFirstTime && (options === null || options === void 0 ? void 0 : options.immediate) && prop.isValid || !isEqual(prop.v, oldProp.v)) names.push(key);
|
|
4083
|
+
});
|
|
4084
|
+
validate(names, { trigger: "change" });
|
|
4085
|
+
isFirstTime = false;
|
|
4086
|
+
oldModel = cloneDeep(toRaw(model));
|
|
4087
|
+
};
|
|
4088
|
+
const debounceOptions = options === null || options === void 0 ? void 0 : options.debounce;
|
|
4089
|
+
let first = true;
|
|
4090
|
+
watch(rulesRef, () => {
|
|
4091
|
+
rulesKeys.value = rulesRef ? Object.keys(unref(rulesRef)) : [];
|
|
4092
|
+
if (!first && options && options.validateOnRuleChange) validate();
|
|
4093
|
+
first = false;
|
|
4094
|
+
}, {
|
|
4095
|
+
deep: true,
|
|
4096
|
+
immediate: true
|
|
4097
|
+
});
|
|
4098
|
+
watch(rulesKeys, () => {
|
|
4099
|
+
const newValidateInfos = {};
|
|
4100
|
+
rulesKeys.value.forEach((key) => {
|
|
4101
|
+
newValidateInfos[key] = _extends$1({}, validateInfos[key], {
|
|
4102
|
+
autoLink: false,
|
|
4103
|
+
required: isRequired(unref(rulesRef)[key])
|
|
4104
|
+
});
|
|
4105
|
+
delete validateInfos[key];
|
|
4106
|
+
});
|
|
4107
|
+
for (const key in validateInfos) if (Object.prototype.hasOwnProperty.call(validateInfos, key)) delete validateInfos[key];
|
|
4108
|
+
_extends$1(validateInfos, newValidateInfos);
|
|
4109
|
+
}, { immediate: true });
|
|
4110
|
+
watch(modelRef, debounceOptions && debounceOptions.wait ? debounce(modelFn, debounceOptions.wait, omit(debounceOptions, ["wait"])) : modelFn, {
|
|
4111
|
+
immediate: options && !!options.immediate,
|
|
4112
|
+
deep: true
|
|
4113
|
+
});
|
|
4114
|
+
return {
|
|
4115
|
+
modelRef,
|
|
4116
|
+
rulesRef,
|
|
4117
|
+
initialModel,
|
|
4118
|
+
validateInfos,
|
|
4119
|
+
resetFields,
|
|
4120
|
+
validate,
|
|
4121
|
+
validateField,
|
|
4122
|
+
mergeValidateInfo,
|
|
4123
|
+
clearValidate
|
|
4124
|
+
};
|
|
4125
|
+
}
|
|
4126
|
+
//#endregion
|
|
4127
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/Form.js
|
|
4128
|
+
var formProps = () => ({
|
|
4129
|
+
layout: PropTypes.oneOf(tuple("horizontal", "inline", "vertical")),
|
|
4130
|
+
labelCol: objectType(),
|
|
4131
|
+
wrapperCol: objectType(),
|
|
4132
|
+
colon: booleanType(),
|
|
4133
|
+
labelAlign: stringType(),
|
|
4134
|
+
labelWrap: booleanType(),
|
|
4135
|
+
prefixCls: String,
|
|
4136
|
+
requiredMark: someType([String, Boolean]),
|
|
4137
|
+
/** @deprecated Will warning in future branch. Pls use `requiredMark` instead. */
|
|
4138
|
+
hideRequiredMark: booleanType(),
|
|
4139
|
+
model: PropTypes.object,
|
|
4140
|
+
rules: objectType(),
|
|
4141
|
+
validateMessages: objectType(),
|
|
4142
|
+
validateOnRuleChange: booleanType(),
|
|
4143
|
+
scrollToFirstError: anyType(),
|
|
4144
|
+
onSubmit: functionType(),
|
|
4145
|
+
name: String,
|
|
4146
|
+
validateTrigger: someType([String, Array]),
|
|
4147
|
+
size: stringType(),
|
|
4148
|
+
disabled: booleanType(),
|
|
4149
|
+
onValuesChange: functionType(),
|
|
4150
|
+
onFieldsChange: functionType(),
|
|
4151
|
+
onFinish: functionType(),
|
|
4152
|
+
onFinishFailed: functionType(),
|
|
4153
|
+
onValidate: functionType()
|
|
4154
|
+
});
|
|
4155
|
+
function isEqualName(name1, name2) {
|
|
4156
|
+
return isEqual(toArray$1(name1), toArray$1(name2));
|
|
4157
|
+
}
|
|
4158
|
+
var Form = defineComponent({
|
|
4159
|
+
compatConfig: { MODE: 3 },
|
|
4160
|
+
name: "AForm",
|
|
4161
|
+
inheritAttrs: false,
|
|
4162
|
+
props: initDefaultProps(formProps(), {
|
|
4163
|
+
layout: "horizontal",
|
|
4164
|
+
hideRequiredMark: false,
|
|
4165
|
+
colon: true
|
|
4166
|
+
}),
|
|
4167
|
+
Item: FormItem_default,
|
|
4168
|
+
useForm,
|
|
4169
|
+
setup(props, _ref) {
|
|
4170
|
+
let { emit, slots, expose, attrs } = _ref;
|
|
4171
|
+
const { prefixCls, direction, form: contextForm, size, disabled } = useConfigInject_default("form", props);
|
|
4172
|
+
const requiredMark = computed(() => props.requiredMark === "" || props.requiredMark);
|
|
4173
|
+
const mergedRequiredMark = computed(() => {
|
|
4174
|
+
var _a;
|
|
4175
|
+
if (requiredMark.value !== void 0) return requiredMark.value;
|
|
4176
|
+
if (contextForm && ((_a = contextForm.value) === null || _a === void 0 ? void 0 : _a.requiredMark) !== void 0) return contextForm.value.requiredMark;
|
|
4177
|
+
if (props.hideRequiredMark) return false;
|
|
4178
|
+
return true;
|
|
4179
|
+
});
|
|
4180
|
+
useProviderSize(size);
|
|
4181
|
+
useProviderDisabled(disabled);
|
|
4182
|
+
const mergedColon = computed(() => {
|
|
4183
|
+
var _a, _b;
|
|
4184
|
+
return (_a = props.colon) !== null && _a !== void 0 ? _a : (_b = contextForm.value) === null || _b === void 0 ? void 0 : _b.colon;
|
|
4185
|
+
});
|
|
4186
|
+
const { validateMessages: globalValidateMessages } = useInjectGlobalForm();
|
|
4187
|
+
const validateMessages = computed(() => {
|
|
4188
|
+
return _extends$1(_extends$1(_extends$1({}, defaultValidateMessages), globalValidateMessages.value), props.validateMessages);
|
|
4189
|
+
});
|
|
4190
|
+
const [wrapSSR, hashId] = style_default$1(prefixCls);
|
|
4191
|
+
const formClassName = computed(() => classNames(prefixCls.value, {
|
|
4192
|
+
[`${prefixCls.value}-${props.layout}`]: true,
|
|
4193
|
+
[`${prefixCls.value}-hide-required-mark`]: mergedRequiredMark.value === false,
|
|
4194
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
4195
|
+
[`${prefixCls.value}-${size.value}`]: size.value
|
|
4196
|
+
}, hashId.value));
|
|
4197
|
+
const lastValidatePromise = ref();
|
|
4198
|
+
const fields = {};
|
|
4199
|
+
const addField = (eventKey, field) => {
|
|
4200
|
+
fields[eventKey] = field;
|
|
4201
|
+
};
|
|
4202
|
+
const removeField = (eventKey) => {
|
|
4203
|
+
delete fields[eventKey];
|
|
4204
|
+
};
|
|
4205
|
+
const getFieldsByNameList = (nameList) => {
|
|
4206
|
+
const provideNameList = !!nameList;
|
|
4207
|
+
const namePathList = provideNameList ? toArray$1(nameList).map(getNamePath) : [];
|
|
4208
|
+
if (!provideNameList) return Object.values(fields);
|
|
4209
|
+
else return Object.values(fields).filter((field) => namePathList.findIndex((namePath) => isEqualName(namePath, field.fieldName.value)) > -1);
|
|
4210
|
+
};
|
|
4211
|
+
const resetFields = (name) => {
|
|
4212
|
+
if (!props.model) {
|
|
4213
|
+
return;
|
|
4214
|
+
}
|
|
4215
|
+
getFieldsByNameList(name).forEach((field) => {
|
|
4216
|
+
field.resetField();
|
|
4217
|
+
});
|
|
4218
|
+
};
|
|
4219
|
+
const clearValidate = (name) => {
|
|
4220
|
+
getFieldsByNameList(name).forEach((field) => {
|
|
4221
|
+
field.clearValidate();
|
|
4222
|
+
});
|
|
4223
|
+
};
|
|
4224
|
+
const handleFinishFailed = (errorInfo) => {
|
|
4225
|
+
const { scrollToFirstError } = props;
|
|
4226
|
+
emit("finishFailed", errorInfo);
|
|
4227
|
+
if (scrollToFirstError && errorInfo.errorFields.length) {
|
|
4228
|
+
let scrollToFieldOptions = {};
|
|
4229
|
+
if (typeof scrollToFirstError === "object") scrollToFieldOptions = scrollToFirstError;
|
|
4230
|
+
scrollToField(errorInfo.errorFields[0].name, scrollToFieldOptions);
|
|
4231
|
+
}
|
|
4232
|
+
};
|
|
4233
|
+
const validate = function() {
|
|
4234
|
+
return validateField(...arguments);
|
|
4235
|
+
};
|
|
4236
|
+
const scrollToField = function(name) {
|
|
4237
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4238
|
+
const fields = getFieldsByNameList(name ? [name] : void 0);
|
|
4239
|
+
if (fields.length) {
|
|
4240
|
+
const fieldId = fields[0].fieldId.value;
|
|
4241
|
+
const node = fieldId ? (void 0).getElementById(fieldId) : null;
|
|
4242
|
+
if (node) scrollIntoView(node, _extends$1({
|
|
4243
|
+
scrollMode: "if-needed",
|
|
4244
|
+
block: "nearest"
|
|
4245
|
+
}, options));
|
|
4246
|
+
}
|
|
4247
|
+
};
|
|
4248
|
+
const getFieldsValue = function() {
|
|
4249
|
+
let nameList = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
4250
|
+
if (nameList === true) {
|
|
4251
|
+
const allNameList = [];
|
|
4252
|
+
Object.values(fields).forEach((_ref2) => {
|
|
4253
|
+
let { namePath } = _ref2;
|
|
4254
|
+
allNameList.push(namePath.value);
|
|
4255
|
+
});
|
|
4256
|
+
return cloneByNamePathList(props.model, allNameList);
|
|
4257
|
+
} else return cloneByNamePathList(props.model, nameList);
|
|
4258
|
+
};
|
|
4259
|
+
const validateFields = (nameList, options) => {
|
|
4260
|
+
if (!props.model) {
|
|
4261
|
+
return Promise.reject("Form `model` is required for validateFields to work.");
|
|
4262
|
+
}
|
|
4263
|
+
const provideNameList = !!nameList;
|
|
4264
|
+
const namePathList = provideNameList ? toArray$1(nameList).map(getNamePath) : [];
|
|
4265
|
+
const promiseList = [];
|
|
4266
|
+
Object.values(fields).forEach((field) => {
|
|
4267
|
+
var _a;
|
|
4268
|
+
if (!provideNameList) namePathList.push(field.namePath.value);
|
|
4269
|
+
if (!((_a = field.rules) === null || _a === void 0 ? void 0 : _a.value.length)) return;
|
|
4270
|
+
const fieldNamePath = field.namePath.value;
|
|
4271
|
+
if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
|
|
4272
|
+
const promise = field.validateRules(_extends$1({ validateMessages: validateMessages.value }, options));
|
|
4273
|
+
promiseList.push(promise.then(() => ({
|
|
4274
|
+
name: fieldNamePath,
|
|
4275
|
+
errors: [],
|
|
4276
|
+
warnings: []
|
|
4277
|
+
})).catch((ruleErrors) => {
|
|
4278
|
+
const mergedErrors = [];
|
|
4279
|
+
const mergedWarnings = [];
|
|
4280
|
+
ruleErrors.forEach((_ref3) => {
|
|
4281
|
+
let { rule: { warningOnly }, errors } = _ref3;
|
|
4282
|
+
if (warningOnly) mergedWarnings.push(...errors);
|
|
4283
|
+
else mergedErrors.push(...errors);
|
|
4284
|
+
});
|
|
4285
|
+
if (mergedErrors.length) return Promise.reject({
|
|
4286
|
+
name: fieldNamePath,
|
|
4287
|
+
errors: mergedErrors,
|
|
4288
|
+
warnings: mergedWarnings
|
|
4289
|
+
});
|
|
4290
|
+
return {
|
|
4291
|
+
name: fieldNamePath,
|
|
4292
|
+
errors: mergedErrors,
|
|
4293
|
+
warnings: mergedWarnings
|
|
4294
|
+
};
|
|
4295
|
+
}));
|
|
4296
|
+
}
|
|
4297
|
+
});
|
|
4298
|
+
const summaryPromise = allPromiseFinish(promiseList);
|
|
4299
|
+
lastValidatePromise.value = summaryPromise;
|
|
4300
|
+
const returnPromise = summaryPromise.then(() => {
|
|
4301
|
+
if (lastValidatePromise.value === summaryPromise) return Promise.resolve(getFieldsValue(namePathList));
|
|
4302
|
+
return Promise.reject([]);
|
|
4303
|
+
}).catch((results) => {
|
|
4304
|
+
const errorList = results.filter((result) => result && result.errors.length);
|
|
4305
|
+
return Promise.reject({
|
|
4306
|
+
values: getFieldsValue(namePathList),
|
|
4307
|
+
errorFields: errorList,
|
|
4308
|
+
outOfDate: lastValidatePromise.value !== summaryPromise
|
|
4309
|
+
});
|
|
4310
|
+
});
|
|
4311
|
+
returnPromise.catch((e) => e);
|
|
4312
|
+
return returnPromise;
|
|
4313
|
+
};
|
|
4314
|
+
const validateField = function() {
|
|
4315
|
+
return validateFields(...arguments);
|
|
4316
|
+
};
|
|
4317
|
+
const handleSubmit = (e) => {
|
|
4318
|
+
e.preventDefault();
|
|
4319
|
+
e.stopPropagation();
|
|
4320
|
+
emit("submit", e);
|
|
4321
|
+
if (props.model) validateFields().then((values) => {
|
|
4322
|
+
emit("finish", values);
|
|
4323
|
+
}).catch((errors) => {
|
|
4324
|
+
handleFinishFailed(errors);
|
|
4325
|
+
});
|
|
4326
|
+
};
|
|
4327
|
+
expose({
|
|
4328
|
+
resetFields,
|
|
4329
|
+
clearValidate,
|
|
4330
|
+
validateFields,
|
|
4331
|
+
getFieldsValue,
|
|
4332
|
+
validate,
|
|
4333
|
+
scrollToField
|
|
4334
|
+
});
|
|
4335
|
+
useProvideForm({
|
|
4336
|
+
model: computed(() => props.model),
|
|
4337
|
+
name: computed(() => props.name),
|
|
4338
|
+
labelAlign: computed(() => props.labelAlign),
|
|
4339
|
+
labelCol: computed(() => props.labelCol),
|
|
4340
|
+
labelWrap: computed(() => props.labelWrap),
|
|
4341
|
+
wrapperCol: computed(() => props.wrapperCol),
|
|
4342
|
+
vertical: computed(() => props.layout === "vertical"),
|
|
4343
|
+
colon: mergedColon,
|
|
4344
|
+
requiredMark: mergedRequiredMark,
|
|
4345
|
+
validateTrigger: computed(() => props.validateTrigger),
|
|
4346
|
+
rules: computed(() => props.rules),
|
|
4347
|
+
addField,
|
|
4348
|
+
removeField,
|
|
4349
|
+
onValidate: (name, status, errors) => {
|
|
4350
|
+
emit("validate", name, status, errors);
|
|
4351
|
+
},
|
|
4352
|
+
validateMessages
|
|
4353
|
+
});
|
|
4354
|
+
watch(() => props.rules, () => {
|
|
4355
|
+
if (props.validateOnRuleChange) validateFields();
|
|
4356
|
+
});
|
|
4357
|
+
return () => {
|
|
4358
|
+
var _a;
|
|
4359
|
+
return wrapSSR(createVNode("form", _objectSpread2(_objectSpread2({}, attrs), {}, {
|
|
4360
|
+
"onSubmit": handleSubmit,
|
|
4361
|
+
"class": [formClassName.value, attrs.class]
|
|
4362
|
+
}), [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)]));
|
|
4363
|
+
};
|
|
4364
|
+
}
|
|
4365
|
+
});
|
|
4366
|
+
//#endregion
|
|
4367
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/form/index.js
|
|
4368
|
+
Form.useInjectFormItemContext = useInjectFormItemContext;
|
|
4369
|
+
Form.ItemRest = FormItemContext_default;
|
|
4370
|
+
/* istanbul ignore next */
|
|
4371
|
+
Form.install = function(app) {
|
|
4372
|
+
app.component(Form.name, Form);
|
|
4373
|
+
app.component(Form.Item.name, Form.Item);
|
|
4374
|
+
app.component(FormItemContext_default.name, FormItemContext_default);
|
|
4375
|
+
return app;
|
|
4376
|
+
};
|
|
4377
|
+
var form_default = Form;
|
|
4378
|
+
//#endregion
|
|
4379
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/segmented/style/index.js
|
|
4380
|
+
function getItemDisabledStyle(cls, token) {
|
|
4381
|
+
return { [`${cls}, ${cls}:hover, ${cls}:focus`]: {
|
|
4382
|
+
color: token.colorTextDisabled,
|
|
4383
|
+
cursor: "not-allowed"
|
|
4384
|
+
} };
|
|
4385
|
+
}
|
|
4386
|
+
function getItemSelectedStyle(token) {
|
|
4387
|
+
return {
|
|
4388
|
+
backgroundColor: token.bgColorSelected,
|
|
4389
|
+
boxShadow: token.boxShadow
|
|
4390
|
+
};
|
|
4391
|
+
}
|
|
4392
|
+
var segmentedTextEllipsisCss = _extends$1({ overflow: "hidden" }, textEllipsis);
|
|
4393
|
+
var genSegmentedStyle = (token) => {
|
|
4394
|
+
const { componentCls } = token;
|
|
4395
|
+
return { [componentCls]: _extends$1(_extends$1(_extends$1(_extends$1(_extends$1({}, resetComponent(token)), {
|
|
4396
|
+
display: "inline-block",
|
|
4397
|
+
padding: token.segmentedContainerPadding,
|
|
4398
|
+
color: token.labelColor,
|
|
4399
|
+
backgroundColor: token.bgColor,
|
|
4400
|
+
borderRadius: token.borderRadius,
|
|
4401
|
+
transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,
|
|
4402
|
+
[`${componentCls}-group`]: {
|
|
4403
|
+
position: "relative",
|
|
4404
|
+
display: "flex",
|
|
4405
|
+
alignItems: "stretch",
|
|
4406
|
+
justifyItems: "flex-start",
|
|
4407
|
+
width: "100%"
|
|
4408
|
+
},
|
|
4409
|
+
[`&${componentCls}-rtl`]: { direction: "rtl" },
|
|
4410
|
+
[`&${componentCls}-block`]: { display: "flex" },
|
|
4411
|
+
[`&${componentCls}-block ${componentCls}-item`]: {
|
|
4412
|
+
flex: 1,
|
|
4413
|
+
minWidth: 0
|
|
4414
|
+
},
|
|
4415
|
+
[`${componentCls}-item`]: {
|
|
4416
|
+
position: "relative",
|
|
4417
|
+
textAlign: "center",
|
|
4418
|
+
cursor: "pointer",
|
|
4419
|
+
transition: `color ${token.motionDurationMid} ${token.motionEaseInOut}`,
|
|
4420
|
+
borderRadius: token.borderRadiusSM,
|
|
4421
|
+
"&-selected": _extends$1(_extends$1({}, getItemSelectedStyle(token)), { color: token.labelColorHover }),
|
|
4422
|
+
"&::after": {
|
|
4423
|
+
content: "\"\"",
|
|
4424
|
+
position: "absolute",
|
|
4425
|
+
width: "100%",
|
|
4426
|
+
height: "100%",
|
|
4427
|
+
top: 0,
|
|
4428
|
+
insetInlineStart: 0,
|
|
4429
|
+
borderRadius: "inherit",
|
|
4430
|
+
transition: `background-color ${token.motionDurationMid}`,
|
|
4431
|
+
pointerEvents: "none"
|
|
4432
|
+
},
|
|
4433
|
+
[`&:hover:not(${componentCls}-item-selected):not(${componentCls}-item-disabled)`]: {
|
|
4434
|
+
color: token.labelColorHover,
|
|
4435
|
+
"&::after": { backgroundColor: token.bgColorHover }
|
|
4436
|
+
},
|
|
4437
|
+
"&-label": _extends$1({
|
|
4438
|
+
minHeight: token.controlHeight - token.segmentedContainerPadding * 2,
|
|
4439
|
+
lineHeight: `${token.controlHeight - token.segmentedContainerPadding * 2}px`,
|
|
4440
|
+
padding: `0 ${token.segmentedPaddingHorizontal}px`
|
|
4441
|
+
}, segmentedTextEllipsisCss),
|
|
4442
|
+
"&-icon + *": { marginInlineStart: token.marginSM / 2 },
|
|
4443
|
+
"&-input": {
|
|
4444
|
+
position: "absolute",
|
|
4445
|
+
insetBlockStart: 0,
|
|
4446
|
+
insetInlineStart: 0,
|
|
4447
|
+
width: 0,
|
|
4448
|
+
height: 0,
|
|
4449
|
+
opacity: 0,
|
|
4450
|
+
pointerEvents: "none"
|
|
4451
|
+
}
|
|
4452
|
+
},
|
|
4453
|
+
[`${componentCls}-thumb`]: _extends$1(_extends$1({}, getItemSelectedStyle(token)), {
|
|
4454
|
+
position: "absolute",
|
|
4455
|
+
insetBlockStart: 0,
|
|
4456
|
+
insetInlineStart: 0,
|
|
4457
|
+
width: 0,
|
|
4458
|
+
height: "100%",
|
|
4459
|
+
padding: `${token.paddingXXS}px 0`,
|
|
4460
|
+
borderRadius: token.borderRadiusSM,
|
|
4461
|
+
[`& ~ ${componentCls}-item:not(${componentCls}-item-selected):not(${componentCls}-item-disabled)::after`]: { backgroundColor: "transparent" }
|
|
4462
|
+
}),
|
|
4463
|
+
[`&${componentCls}-lg`]: {
|
|
4464
|
+
borderRadius: token.borderRadiusLG,
|
|
4465
|
+
[`${componentCls}-item-label`]: {
|
|
4466
|
+
minHeight: token.controlHeightLG - token.segmentedContainerPadding * 2,
|
|
4467
|
+
lineHeight: `${token.controlHeightLG - token.segmentedContainerPadding * 2}px`,
|
|
4468
|
+
padding: `0 ${token.segmentedPaddingHorizontal}px`,
|
|
4469
|
+
fontSize: token.fontSizeLG
|
|
4470
|
+
},
|
|
4471
|
+
[`${componentCls}-item, ${componentCls}-thumb`]: { borderRadius: token.borderRadius }
|
|
4472
|
+
},
|
|
4473
|
+
[`&${componentCls}-sm`]: {
|
|
4474
|
+
borderRadius: token.borderRadiusSM,
|
|
4475
|
+
[`${componentCls}-item-label`]: {
|
|
4476
|
+
minHeight: token.controlHeightSM - token.segmentedContainerPadding * 2,
|
|
4477
|
+
lineHeight: `${token.controlHeightSM - token.segmentedContainerPadding * 2}px`,
|
|
4478
|
+
padding: `0 ${token.segmentedPaddingHorizontalSM}px`
|
|
4479
|
+
},
|
|
4480
|
+
[`${componentCls}-item, ${componentCls}-thumb`]: { borderRadius: token.borderRadiusXS }
|
|
4481
|
+
}
|
|
4482
|
+
}), getItemDisabledStyle(`&-disabled ${componentCls}-item`, token)), getItemDisabledStyle(`${componentCls}-item-disabled`, token)), { [`${componentCls}-thumb-motion-appear-active`]: {
|
|
4483
|
+
transition: `transform ${token.motionDurationSlow} ${token.motionEaseInOut}, width ${token.motionDurationSlow} ${token.motionEaseInOut}`,
|
|
4484
|
+
willChange: "transform, width"
|
|
4485
|
+
} }) };
|
|
4486
|
+
};
|
|
4487
|
+
var style_default = genComponentStyleHook("Segmented", (token) => {
|
|
4488
|
+
const { lineWidthBold, lineWidth, colorTextLabel, colorText, colorFillSecondary, colorBgLayout, colorBgElevated } = token;
|
|
4489
|
+
return [genSegmentedStyle(merge(token, {
|
|
4490
|
+
segmentedPaddingHorizontal: token.controlPaddingHorizontal - lineWidth,
|
|
4491
|
+
segmentedPaddingHorizontalSM: token.controlPaddingHorizontalSM - lineWidth,
|
|
4492
|
+
segmentedContainerPadding: lineWidthBold,
|
|
4493
|
+
labelColor: colorTextLabel,
|
|
4494
|
+
labelColorHover: colorText,
|
|
4495
|
+
bgColor: colorBgLayout,
|
|
4496
|
+
bgColorHover: colorFillSecondary,
|
|
4497
|
+
bgColorSelected: colorBgElevated
|
|
4498
|
+
}))];
|
|
4499
|
+
});
|
|
4500
|
+
//#endregion
|
|
4501
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/segmented/src/MotionThumb.js
|
|
4502
|
+
var calcThumbStyle = (targetElement) => targetElement ? {
|
|
4503
|
+
left: targetElement.offsetLeft,
|
|
4504
|
+
right: targetElement.parentElement.clientWidth - targetElement.clientWidth - targetElement.offsetLeft,
|
|
4505
|
+
width: targetElement.clientWidth
|
|
4506
|
+
} : null;
|
|
4507
|
+
var toPX = (value) => value !== void 0 ? `${value}px` : void 0;
|
|
4508
|
+
var MotionThumb = defineComponent({
|
|
4509
|
+
props: {
|
|
4510
|
+
value: anyType(),
|
|
4511
|
+
getValueIndex: anyType(),
|
|
4512
|
+
prefixCls: anyType(),
|
|
4513
|
+
motionName: anyType(),
|
|
4514
|
+
onMotionStart: anyType(),
|
|
4515
|
+
onMotionEnd: anyType(),
|
|
4516
|
+
direction: anyType(),
|
|
4517
|
+
containerRef: anyType()
|
|
4518
|
+
},
|
|
4519
|
+
emits: ["motionStart", "motionEnd"],
|
|
4520
|
+
setup(props, _ref) {
|
|
4521
|
+
let { emit } = _ref;
|
|
4522
|
+
const thumbRef = ref();
|
|
4523
|
+
const findValueElement = (val) => {
|
|
4524
|
+
var _a;
|
|
4525
|
+
const index = props.getValueIndex(val);
|
|
4526
|
+
const ele = (_a = props.containerRef.value) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`.${props.prefixCls}-item`)[index];
|
|
4527
|
+
return (ele === null || ele === void 0 ? void 0 : ele.offsetParent) && ele;
|
|
4528
|
+
};
|
|
4529
|
+
const prevStyle = ref(null);
|
|
4530
|
+
const nextStyle = ref(null);
|
|
4531
|
+
watch(() => props.value, (value, prevValue) => {
|
|
4532
|
+
const prev = findValueElement(prevValue);
|
|
4533
|
+
const next = findValueElement(value);
|
|
4534
|
+
const calcPrevStyle = calcThumbStyle(prev);
|
|
4535
|
+
const calcNextStyle = calcThumbStyle(next);
|
|
4536
|
+
prevStyle.value = calcPrevStyle;
|
|
4537
|
+
nextStyle.value = calcNextStyle;
|
|
4538
|
+
if (prev && next) emit("motionStart");
|
|
4539
|
+
else emit("motionEnd");
|
|
4540
|
+
}, { flush: "post" });
|
|
4541
|
+
const thumbStart = computed(() => {
|
|
4542
|
+
var _a, _b;
|
|
4543
|
+
return props.direction === "rtl" ? toPX(-((_a = prevStyle.value) === null || _a === void 0 ? void 0 : _a.right)) : toPX((_b = prevStyle.value) === null || _b === void 0 ? void 0 : _b.left);
|
|
4544
|
+
});
|
|
4545
|
+
const thumbActive = computed(() => {
|
|
4546
|
+
var _a, _b;
|
|
4547
|
+
return props.direction === "rtl" ? toPX(-((_a = nextStyle.value) === null || _a === void 0 ? void 0 : _a.right)) : toPX((_b = nextStyle.value) === null || _b === void 0 ? void 0 : _b.left);
|
|
4548
|
+
});
|
|
4549
|
+
let timeid;
|
|
4550
|
+
const onAppearStart = (el) => {
|
|
4551
|
+
clearTimeout(timeid);
|
|
4552
|
+
nextTick(() => {
|
|
4553
|
+
if (el) {
|
|
4554
|
+
el.style.transform = `translateX(var(--thumb-start-left))`;
|
|
4555
|
+
el.style.width = `var(--thumb-start-width)`;
|
|
4556
|
+
}
|
|
4557
|
+
});
|
|
4558
|
+
};
|
|
4559
|
+
const onAppearActive = (el) => {
|
|
4560
|
+
timeid = setTimeout(() => {
|
|
4561
|
+
if (el) {
|
|
4562
|
+
addClass(el, `${props.motionName}-appear-active`);
|
|
4563
|
+
el.style.transform = `translateX(var(--thumb-active-left))`;
|
|
4564
|
+
el.style.width = `var(--thumb-active-width)`;
|
|
4565
|
+
}
|
|
4566
|
+
});
|
|
4567
|
+
};
|
|
4568
|
+
const onAppearEnd = (el) => {
|
|
4569
|
+
prevStyle.value = null;
|
|
4570
|
+
nextStyle.value = null;
|
|
4571
|
+
if (el) {
|
|
4572
|
+
el.style.transform = null;
|
|
4573
|
+
el.style.width = null;
|
|
4574
|
+
removeClass(el, `${props.motionName}-appear-active`);
|
|
4575
|
+
}
|
|
4576
|
+
emit("motionEnd");
|
|
4577
|
+
};
|
|
4578
|
+
const mergedStyle = computed(() => {
|
|
4579
|
+
var _a, _b;
|
|
4580
|
+
return {
|
|
4581
|
+
"--thumb-start-left": thumbStart.value,
|
|
4582
|
+
"--thumb-start-width": toPX((_a = prevStyle.value) === null || _a === void 0 ? void 0 : _a.width),
|
|
4583
|
+
"--thumb-active-left": thumbActive.value,
|
|
4584
|
+
"--thumb-active-width": toPX((_b = nextStyle.value) === null || _b === void 0 ? void 0 : _b.width)
|
|
4585
|
+
};
|
|
4586
|
+
});
|
|
4587
|
+
return () => {
|
|
4588
|
+
const motionProps = {
|
|
4589
|
+
ref: thumbRef,
|
|
4590
|
+
style: mergedStyle.value,
|
|
4591
|
+
class: [`${props.prefixCls}-thumb`]
|
|
4592
|
+
};
|
|
4593
|
+
return createVNode(Transition, {
|
|
4594
|
+
"appear": true,
|
|
4595
|
+
"onBeforeEnter": onAppearStart,
|
|
4596
|
+
"onEnter": onAppearActive,
|
|
4597
|
+
"onAfterEnter": onAppearEnd
|
|
4598
|
+
}, { default: () => [!prevStyle.value || !nextStyle.value ? null : createVNode("div", motionProps, null)] });
|
|
4599
|
+
};
|
|
4600
|
+
}
|
|
4601
|
+
});
|
|
4602
|
+
//#endregion
|
|
4603
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/segmented/src/segmented.js
|
|
4604
|
+
function normalizeOptions(options) {
|
|
4605
|
+
return options.map((option) => {
|
|
4606
|
+
if (typeof option === "object" && option !== null) return option;
|
|
4607
|
+
return {
|
|
4608
|
+
label: option === null || option === void 0 ? void 0 : option.toString(),
|
|
4609
|
+
title: option === null || option === void 0 ? void 0 : option.toString(),
|
|
4610
|
+
value: option
|
|
4611
|
+
};
|
|
4612
|
+
});
|
|
4613
|
+
}
|
|
4614
|
+
var segmentedProps = () => {
|
|
4615
|
+
return {
|
|
4616
|
+
prefixCls: String,
|
|
4617
|
+
options: arrayType(),
|
|
4618
|
+
block: booleanType(),
|
|
4619
|
+
disabled: booleanType(),
|
|
4620
|
+
size: stringType(),
|
|
4621
|
+
value: _extends$1(_extends$1({}, someType([String, Number])), { required: true }),
|
|
4622
|
+
motionName: String,
|
|
4623
|
+
onChange: functionType(),
|
|
4624
|
+
"onUpdate:value": functionType()
|
|
4625
|
+
};
|
|
4626
|
+
};
|
|
4627
|
+
var SegmentedOption = (props, _ref) => {
|
|
4628
|
+
let { slots, emit } = _ref;
|
|
4629
|
+
const { value, disabled, payload, title, prefixCls, label = slots.label, checked, className } = props;
|
|
4630
|
+
const handleChange = (event) => {
|
|
4631
|
+
if (disabled) return;
|
|
4632
|
+
emit("change", event, value);
|
|
4633
|
+
};
|
|
4634
|
+
return createVNode("label", { "class": classNames({ [`${prefixCls}-item-disabled`]: disabled }, className) }, [createVNode("input", {
|
|
4635
|
+
"class": `${prefixCls}-item-input`,
|
|
4636
|
+
"type": "radio",
|
|
4637
|
+
"disabled": disabled,
|
|
4638
|
+
"checked": checked,
|
|
4639
|
+
"onChange": handleChange
|
|
4640
|
+
}, null), createVNode("div", {
|
|
4641
|
+
"class": `${prefixCls}-item-label`,
|
|
4642
|
+
"title": typeof title === "string" ? title : ""
|
|
4643
|
+
}, [typeof label === "function" ? label({
|
|
4644
|
+
value,
|
|
4645
|
+
disabled,
|
|
4646
|
+
payload,
|
|
4647
|
+
title
|
|
4648
|
+
}) : label !== null && label !== void 0 ? label : value])]);
|
|
4649
|
+
};
|
|
4650
|
+
SegmentedOption.inheritAttrs = false;
|
|
4651
|
+
//#endregion
|
|
4652
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/segmented/src/index.js
|
|
4653
|
+
var src_default = defineComponent({
|
|
4654
|
+
name: "ASegmented",
|
|
4655
|
+
inheritAttrs: false,
|
|
4656
|
+
props: initDefaultProps(segmentedProps(), {
|
|
4657
|
+
options: [],
|
|
4658
|
+
motionName: "thumb-motion"
|
|
4659
|
+
}),
|
|
4660
|
+
slots: Object,
|
|
4661
|
+
setup(props, _ref2) {
|
|
4662
|
+
let { emit, slots, attrs } = _ref2;
|
|
4663
|
+
const { prefixCls, direction, size } = useConfigInject_default("segmented", props);
|
|
4664
|
+
const [wrapSSR, hashId] = style_default(prefixCls);
|
|
4665
|
+
const rootRef = shallowRef();
|
|
4666
|
+
const thumbShow = shallowRef(false);
|
|
4667
|
+
const segmentedOptions = computed(() => normalizeOptions(props.options));
|
|
4668
|
+
const handleChange = (_event, val) => {
|
|
4669
|
+
if (props.disabled) return;
|
|
4670
|
+
emit("update:value", val);
|
|
4671
|
+
emit("change", val);
|
|
4672
|
+
};
|
|
4673
|
+
return () => {
|
|
4674
|
+
const pre = prefixCls.value;
|
|
4675
|
+
return wrapSSR(createVNode("div", _objectSpread2(_objectSpread2({}, attrs), {}, {
|
|
4676
|
+
"class": classNames(pre, {
|
|
4677
|
+
[hashId.value]: true,
|
|
4678
|
+
[`${pre}-block`]: props.block,
|
|
4679
|
+
[`${pre}-disabled`]: props.disabled,
|
|
4680
|
+
[`${pre}-lg`]: size.value == "large",
|
|
4681
|
+
[`${pre}-sm`]: size.value == "small",
|
|
4682
|
+
[`${pre}-rtl`]: direction.value === "rtl"
|
|
4683
|
+
}, attrs.class),
|
|
4684
|
+
"ref": rootRef
|
|
4685
|
+
}), [createVNode("div", { "class": `${pre}-group` }, [createVNode(MotionThumb, {
|
|
4686
|
+
"containerRef": rootRef,
|
|
4687
|
+
"prefixCls": pre,
|
|
4688
|
+
"value": props.value,
|
|
4689
|
+
"motionName": `${pre}-${props.motionName}`,
|
|
4690
|
+
"direction": direction.value,
|
|
4691
|
+
"getValueIndex": (val) => segmentedOptions.value.findIndex((n) => n.value === val),
|
|
4692
|
+
"onMotionStart": () => {
|
|
4693
|
+
thumbShow.value = true;
|
|
4694
|
+
},
|
|
4695
|
+
"onMotionEnd": () => {
|
|
4696
|
+
thumbShow.value = false;
|
|
4697
|
+
}
|
|
4698
|
+
}, null), segmentedOptions.value.map((segmentedOption) => createVNode(SegmentedOption, _objectSpread2(_objectSpread2({
|
|
4699
|
+
"key": segmentedOption.value,
|
|
4700
|
+
"prefixCls": pre,
|
|
4701
|
+
"checked": segmentedOption.value === props.value,
|
|
4702
|
+
"onChange": handleChange
|
|
4703
|
+
}, segmentedOption), {}, {
|
|
4704
|
+
"className": classNames(segmentedOption.className, `${pre}-item`, { [`${pre}-item-selected`]: segmentedOption.value === props.value && !thumbShow.value }),
|
|
4705
|
+
"disabled": !!props.disabled || !!segmentedOption.disabled
|
|
4706
|
+
}), slots))])]));
|
|
4707
|
+
};
|
|
4708
|
+
}
|
|
4709
|
+
});
|
|
4710
|
+
//#endregion
|
|
4711
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/segmented/index.js
|
|
4712
|
+
var segmented_default = withInstall(src_default);
|
|
4713
|
+
//#endregion
|
|
4714
|
+
//#region app/composables/workshop/useWorkshopApi.ts
|
|
4715
|
+
function useWorkshopApi() {
|
|
4716
|
+
const http = useHttp();
|
|
4717
|
+
return {
|
|
4718
|
+
listChannels: () => http.get("/workshop/channels"),
|
|
4719
|
+
createChannel: (body) => http.post("/workshop/channels", body),
|
|
4720
|
+
deleteChannel: (id) => http.delete(`/workshop/channels/${id}`),
|
|
4721
|
+
/** 修改 Channel 实例设置(场景 prompt / 工作目录热更新;成员运行时自动回收重装配) */
|
|
4722
|
+
patchChannel: (id, body) => http.request({
|
|
4723
|
+
method: "PATCH",
|
|
4724
|
+
url: `/workshop/channels/${id}`,
|
|
4725
|
+
data: body
|
|
4726
|
+
}),
|
|
4727
|
+
listChannelAgents: (id) => http.get(`/workshop/channels/${id}/agents`),
|
|
4728
|
+
addChannelAgent: (id, body) => http.post(`/workshop/channels/${id}/agents`, body),
|
|
4729
|
+
updateChannelAgent: (id, agentId, body) => http.request({
|
|
4730
|
+
method: "PATCH",
|
|
4731
|
+
url: `/workshop/channels/${id}/agents/${agentId}`,
|
|
4732
|
+
data: body
|
|
4733
|
+
}),
|
|
4734
|
+
removeChannelAgent: (id, agentId) => http.delete(`/workshop/channels/${id}/agents/${agentId}`),
|
|
4735
|
+
/** HITL:独立中断指定成员运行时(worker/lead 均可;lead 停止同时停调度,下次任务提交自动重激活) */
|
|
4736
|
+
stopChannelAgent: (id, agentId) => http.post(`/workshop/channels/${id}/agents/${agentId}/stop`, {}),
|
|
4737
|
+
listTasks: (id) => http.get(`/workshop/channels/${id}/tasks`),
|
|
4738
|
+
submitTask: (id, body) => http.post(`/workshop/channels/${id}/tasks`, body),
|
|
4739
|
+
injectMessage: (id, body) => http.post(`/workshop/channels/${id}/messages`, body),
|
|
4740
|
+
listAgentMemories: (id, agentId) => http.get(`/workshop/channels/${id}/agents/${agentId}/memories`),
|
|
4741
|
+
searchMemories: (id, agentId, body) => http.post(`/workshop/channels/${id}/agents/${agentId}/memories/search`, body),
|
|
4742
|
+
saveMemory: (id, agentId, body) => http.post(`/workshop/channels/${id}/agents/${agentId}/memories`, body),
|
|
4743
|
+
listTeamMemories: (id) => http.get(`/workshop/channels/${id}/memories`),
|
|
4744
|
+
queueOverview: (id) => http.get(`/workshop/channels/${id}/queue`),
|
|
4745
|
+
runtimeStatus: () => http.get("/workshop/runtime"),
|
|
4746
|
+
getTask: (taskId) => http.get(`/workshop/tasks/${taskId}`),
|
|
4747
|
+
cancelTask: (taskId) => http.post(`/workshop/tasks/${taskId}/cancel`, {}),
|
|
4748
|
+
/** HITL:重试 FAILED 任务(优先原 assignee,否则队列最短空闲 worker) */
|
|
4749
|
+
retryTask: (taskId) => http.post(`/workshop/tasks/${taskId}/retry`, {}),
|
|
4750
|
+
listTemplates: () => http.get("/workshop/agents"),
|
|
4751
|
+
createTemplate: (body) => http.post("/workshop/agents", body),
|
|
4752
|
+
updateTemplate: (id, body) => http.request({
|
|
4753
|
+
method: "PATCH",
|
|
4754
|
+
url: `/workshop/agents/${id}`,
|
|
4755
|
+
data: body
|
|
4756
|
+
}),
|
|
4757
|
+
deleteTemplate: (id) => http.delete(`/workshop/agents/${id}`),
|
|
4758
|
+
listTeams: () => http.get("/workshop/teams"),
|
|
4759
|
+
createTeam: (body) => http.post("/workshop/teams", body),
|
|
4760
|
+
updateTeam: (id, body) => http.request({
|
|
4761
|
+
method: "PATCH",
|
|
4762
|
+
url: `/workshop/teams/${id}`,
|
|
4763
|
+
data: body
|
|
4764
|
+
}),
|
|
4765
|
+
deleteTeam: (id) => http.delete(`/workshop/teams/${id}`),
|
|
4766
|
+
addTeamMember: (id, body) => http.post(`/workshop/teams/${id}/members`, body),
|
|
4767
|
+
removeTeamMember: (id, templateId) => http.delete(`/workshop/teams/${id}/members/${templateId}`),
|
|
4768
|
+
deployTeam: (teamId, channelId) => http.post(`/workshop/teams/${teamId}/deploy`, { channelId }),
|
|
4769
|
+
listChannelTemplates: () => http.get("/workshop/channel-templates"),
|
|
4770
|
+
createChannelTemplate: (body) => http.post("/workshop/channel-templates", body),
|
|
4771
|
+
captureChannelTemplate: (body) => http.post("/workshop/channel-templates/from-channel", body),
|
|
4772
|
+
updateChannelTemplate: (id, body) => http.request({
|
|
4773
|
+
method: "PATCH",
|
|
4774
|
+
url: `/workshop/channel-templates/${id}`,
|
|
4775
|
+
data: body
|
|
4776
|
+
}),
|
|
4777
|
+
deleteChannelTemplate: (id) => http.delete(`/workshop/channel-templates/${id}`),
|
|
4778
|
+
instantiateChannelTemplate: (id, name) => http.post(`/workshop/channel-templates/${id}/instantiate`, { name }),
|
|
4779
|
+
/** 从 Channel 模板实例化并挂载到 workspace(替代"挂载已有 Channel") */
|
|
4780
|
+
mountChannelTemplate: (wsId, tplId, name) => http.post(`/workshop/workspaces/${wsId}/channel-templates/${tplId}`, { name }),
|
|
4781
|
+
listChannelTerminals: (id) => http.get(`/workshop/channels/${id}/terminals`)
|
|
4782
|
+
};
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
export { FormItem_default as F, form_default as f, segmented_default as s, useWorkshopApi as u };
|
|
4786
|
+
//# sourceMappingURL=useWorkshopApi-5er8_EHZ.mjs.map
|