@hienlh/ppm 0.8.63 → 0.8.65
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/CHANGELOG.md +21 -0
- package/bun.lock +5 -0
- package/dist/web/assets/{_basePickBy-CZovQgWd.js → _basePickBy-CrBYAu1z.js} +1 -1
- package/dist/web/assets/{_baseUniq-ClnvscgW.js → _baseUniq-PMQMCyd4.js} +1 -1
- package/dist/web/assets/{api-settings--eVrUeZM.js → api-settings-Cj0OeEMH.js} +1 -1
- package/dist/web/assets/{arc-C2Qaz-ch.js → arc-Bx6TKJWg.js} +1 -1
- package/dist/web/assets/architecture-PBZL5I3N-DyGQgfy0.js +1 -0
- package/dist/web/assets/{architectureDiagram-2XIMDMQ5-Jq91S_rs.js → architectureDiagram-2XIMDMQ5-Dinq4Kbf.js} +1 -1
- package/dist/web/assets/arrow-up--LjUXLEt.js +1 -0
- package/dist/web/assets/{blockDiagram-WCTKOSBZ-CKGufRTy.js → blockDiagram-WCTKOSBZ-CXh2T4Mt.js} +1 -1
- package/dist/web/assets/{browser-tab-CjjWgPDL.js → browser-tab-BT8iJmIO.js} +1 -1
- package/dist/web/assets/{c4Diagram-IC4MRINW-BNP2L9r_.js → c4Diagram-IC4MRINW-BCqRHxU0.js} +1 -1
- package/dist/web/assets/channel-GxJZ6KAL.js +1 -0
- package/dist/web/assets/chat-tab-B5tNFtvt.js +7 -0
- package/dist/web/assets/chevron-right-DeV0ehiG.js +1 -0
- package/dist/web/assets/{chunk-4BX2VUAB-BptTlTyl.js → chunk-4BX2VUAB-BNc3BCto.js} +1 -1
- package/dist/web/assets/{chunk-55IACEB6-C4mUdyio.js → chunk-55IACEB6-NTU3iwXh.js} +1 -1
- package/dist/web/assets/{chunk-7E7YKBS2-6xAQfBwa.js → chunk-7E7YKBS2-B3LDS0kJ.js} +1 -1
- package/dist/web/assets/{chunk-7R4GIKGN-DXaGAn_K.js → chunk-7R4GIKGN-Y5Bg-bKJ.js} +2 -2
- package/dist/web/assets/{chunk-C72U2L5F-DOtEiN5f.js → chunk-C72U2L5F-0CMBXF9Y.js} +1 -1
- package/dist/web/assets/{chunk-EGIJ26TM-D0KJTa_T.js → chunk-EGIJ26TM-BATHdF9E.js} +1 -1
- package/dist/web/assets/{chunk-FMBD7UC4-C_1aG0eb.js → chunk-FMBD7UC4-BrH-Lnio.js} +1 -1
- package/dist/web/assets/{chunk-GEFDOKGD-DwVPiYfW.js → chunk-GEFDOKGD-_UEQ_Hqk.js} +1 -1
- package/dist/web/assets/chunk-GLR3WWYH-BWjkRp6S.js +2 -0
- package/dist/web/assets/chunk-HHEYEP7N-DhIRtWNx.js +1 -0
- package/dist/web/assets/{chunk-JSJVCQXG-BSrqCL_3.js → chunk-JSJVCQXG-LNOdgWAh.js} +1 -1
- package/dist/web/assets/{chunk-KX2RTZJC-BCxGmbzy.js → chunk-KX2RTZJC-AniEyPkm.js} +1 -1
- package/dist/web/assets/{chunk-KYZI473N-BKO5gMeU.js → chunk-KYZI473N-drU3HQZZ.js} +1 -1
- package/dist/web/assets/{chunk-L3YUKLVL-3wBgkSvL.js → chunk-L3YUKLVL-GJ3l4AXc.js} +1 -1
- package/dist/web/assets/{chunk-MX3YWQON-BgjSEzus.js → chunk-MX3YWQON-OOf6bZzK.js} +1 -1
- package/dist/web/assets/{chunk-NQ4KR5QH-DLrZwBEm.js → chunk-NQ4KR5QH-DoAhAAPR.js} +1 -1
- package/dist/web/assets/{chunk-O4XLMI2P-BurQy8tt.js → chunk-O4XLMI2P-BBFcNFB_.js} +1 -1
- package/dist/web/assets/{chunk-OZEHJAEY-YTn24bGg.js → chunk-OZEHJAEY-CxBlPGUC.js} +1 -1
- package/dist/web/assets/{chunk-PQ6SQG4A-BxtUGYhW.js → chunk-PQ6SQG4A-DZGwvbzy.js} +1 -1
- package/dist/web/assets/{chunk-PU5JKC2W-B66ELkQm.js → chunk-PU5JKC2W-CCXYoac7.js} +1 -1
- package/dist/web/assets/chunk-QZHKN3VN-CzG4AaJv.js +1 -0
- package/dist/web/assets/{chunk-R5LLSJPH-euR2RxLN.js → chunk-R5LLSJPH-BTcrDJ0u.js} +1 -1
- package/dist/web/assets/{chunk-WL4C6EOR-_2CBOJdI.js → chunk-WL4C6EOR-BkioZxSz.js} +1 -1
- package/dist/web/assets/{chunk-XIRO2GV7-kqQ0g6wW.js → chunk-XIRO2GV7-BojyzPX8.js} +1 -1
- package/dist/web/assets/{chunk-XPW4576I-CtcaMb09.js → chunk-XPW4576I-no3g3yPs.js} +1 -1
- package/dist/web/assets/{chunk-XZSTWKYB-BYxFzZwS.js → chunk-XZSTWKYB-DTNisBJo.js} +1 -1
- package/dist/web/assets/{chunk-YBOYWFTD-Dx_fX35n.js → chunk-YBOYWFTD-DGKGjR6H.js} +1 -1
- package/dist/web/assets/classDiagram-VBA2DB6C-D3WeZMpV.js +1 -0
- package/dist/web/assets/classDiagram-v2-RAHNMMFH-CuONv6uF.js +1 -0
- package/dist/web/assets/clone-BGvnD7V5.js +1 -0
- package/dist/web/assets/code-editor-4UczMI-T.js +2 -0
- package/dist/web/assets/{cose-bilkent-S5V4N54A-CHHjH2dV.js → cose-bilkent-S5V4N54A-zoeAORzo.js} +1 -1
- package/dist/web/assets/csv-preview-CgHOY6hR.js +9 -0
- package/dist/web/assets/{dagre-CNtSxiE_.js → dagre-Bh_0hC-U.js} +1 -1
- package/dist/web/assets/{dagre-KLK3FWXG-ChenfPp1.js → dagre-KLK3FWXG-C5SfvcWS.js} +1 -1
- package/dist/web/assets/database-viewer-CUjlWuu_.js +1 -0
- package/dist/web/assets/{diagram-E7M64L7V-CzKYZM0Y.js → diagram-E7M64L7V-CZUkePtj.js} +1 -1
- package/dist/web/assets/{diagram-IFDJBPK2-ChB_paPo.js → diagram-IFDJBPK2-C_f4KWUQ.js} +1 -1
- package/dist/web/assets/{diagram-P4PSJMXO-D1eW1dkL.js → diagram-P4PSJMXO-DCIgnRzg.js} +1 -1
- package/dist/web/assets/diff-viewer-B4lDAzWv.js +4 -0
- package/dist/web/assets/dist-B21lOVUR.js +1 -0
- package/dist/web/assets/dist-DylI9XxN.js +13 -0
- package/dist/web/assets/dist-lF8CoYII.js +41 -0
- package/dist/web/assets/{erDiagram-INFDFZHY-mCvUFSn6.js → erDiagram-INFDFZHY-BmVZ3V1Q.js} +1 -1
- package/dist/web/assets/{flowDiagram-PKNHOUZH-14ohZ1M1.js → flowDiagram-PKNHOUZH-DQVk-izW.js} +1 -1
- package/dist/web/assets/{ganttDiagram-A5KZAMGK-DIX0pLbk.js → ganttDiagram-A5KZAMGK-BesueWL2.js} +1 -1
- package/dist/web/assets/git-graph-BTZTGZdP.js +1 -0
- package/dist/web/assets/gitGraph-HDMCJU4V-sd3XYN52.js +1 -0
- package/dist/web/assets/{gitGraphDiagram-K3NZZRJ6-yEWZbdf_.js → gitGraphDiagram-K3NZZRJ6-BnKRAgIF.js} +1 -1
- package/dist/web/assets/{graphlib-DhOZxqsh.js → graphlib-BZkhmhks.js} +1 -1
- package/dist/web/assets/index-DPI-YVJI.css +2 -0
- package/dist/web/assets/index-hxAJJHpg.js +37 -0
- package/dist/web/assets/info-3K5VOQVL-DdzKhhLF.js +1 -0
- package/dist/web/assets/infoDiagram-LFFYTUFH-CnHorrOf.js +2 -0
- package/dist/web/assets/input-Bid961xi.js +1 -0
- package/dist/web/assets/{isEmpty-C0YYdhYj.js → isEmpty-CauZBoL-.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-PHBUUO56-olazD6dZ.js → ishikawaDiagram-PHBUUO56-Proo1Zyp.js} +1 -1
- package/dist/web/assets/{journeyDiagram-4ABVD52K-CttDH9bb.js → journeyDiagram-4ABVD52K-86MYRgHA.js} +1 -1
- package/dist/web/assets/{kanban-definition-K7BYSVSG-BBXbI37U.js → kanban-definition-K7BYSVSG-lsZmnsv1.js} +1 -1
- package/dist/web/assets/keybindings-store-BHUZp2i1.js +1 -0
- package/dist/web/assets/lib-Dmwceoh0.js +4 -0
- package/dist/web/assets/{line-DBLLF7lH.js → line-CNR7Z1Dm.js} +1 -1
- package/dist/web/assets/{linear-BLFWatDe.js → linear-CGDVbc3k.js} +1 -1
- package/dist/web/assets/markdown-renderer-ljVdhEEq.js +69 -0
- package/dist/web/assets/{mermaid-parser.core-BKiGOTjR.js → mermaid-parser.core-C3bmPvHW.js} +2 -2
- package/dist/web/assets/{mindmap-definition-YRQLILUH-DoT7m4Sz.js → mindmap-definition-YRQLILUH-BqZbwYh4.js} +1 -1
- package/dist/web/assets/{ordinal-CCj7PWgZ.js → ordinal-D8VwtNz9.js} +1 -1
- package/dist/web/assets/packet-RMMSAZCW-BJANCvjY.js +1 -0
- package/dist/web/assets/pie-UPGHQEXC-DM2KFfMP.js +1 -0
- package/dist/web/assets/{pieDiagram-SKSYHLDU-Bkh2E4zE.js → pieDiagram-SKSYHLDU-CysZmHF5.js} +1 -1
- package/dist/web/assets/postgres-viewer-Dlkyzslt.js +1 -0
- package/dist/web/assets/{quadrantDiagram-337W2JSQ-B7zgALOL.js → quadrantDiagram-337W2JSQ-B1KHH43M.js} +1 -1
- package/dist/web/assets/radar-KQ55EAFF-BB-ywBD0.js +1 -0
- package/dist/web/assets/react-dom-Bpkvzu3U.js +1 -0
- package/dist/web/assets/{requirementDiagram-Z7DCOOCP-D_5GXNRo.js → requirementDiagram-Z7DCOOCP-DpYZNbHV.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-WA2Y5GQK-BA9EFAAe.js → sankeyDiagram-WA2Y5GQK-1QhDzoqT.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-2WXFIKYE-fyWIrHiG.js → sequenceDiagram-2WXFIKYE-yoBahL9m.js} +1 -1
- package/dist/web/assets/settings-tab-BSfQh_HW.js +1 -0
- package/dist/web/assets/sqlite-viewer-DraX5cHB.js +1 -0
- package/dist/web/assets/{stateDiagram-RAJIS63D-DfRBcaBu.js → stateDiagram-RAJIS63D-c6UuHXom.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-FVOUBMTO-0R9EtHx1.js +1 -0
- package/dist/web/assets/{tab-store-DcIBZTD4.js → tab-store-Ck-9RsH-.js} +1 -1
- package/dist/web/assets/{terminal-tab-B0TAHXjw.js → terminal-tab-C_jOKXBm.js} +2 -2
- package/dist/web/assets/{timeline-definition-YZTLITO2-DYfwJ1jM.js → timeline-definition-YZTLITO2-BayV-4fk.js} +1 -1
- package/dist/web/assets/treemap-KZPCXAKY-DGHYomZ7.js +1 -0
- package/dist/web/assets/use-monaco-theme-BHp8EuUZ.js +11 -0
- package/dist/web/assets/{vennDiagram-LZ73GAT5-DqbKNRD9.js → vennDiagram-LZ73GAT5-B_s6kymD.js} +1 -1
- package/dist/web/assets/{xychartDiagram-JWTSCODW-DhUL86qT.js → xychartDiagram-JWTSCODW-PwVoWxs2.js} +1 -1
- package/dist/web/index.html +13 -10
- package/dist/web/sw.js +1 -1
- package/docs/codebase-summary.md +9 -3
- package/docs/design-guidelines.md +21 -0
- package/package.json +2 -1
- package/src/providers/claude-agent-sdk.ts +14 -2
- package/src/server/index.ts +4 -0
- package/src/server/routes/browser-preview.ts +2 -2
- package/src/server/routes/chat.ts +4 -2
- package/src/server/ws/chat.ts +12 -6
- package/src/services/account-selector.service.ts +8 -2
- package/src/services/claude-usage.service.ts +37 -11
- package/src/services/db.service.ts +45 -6
- package/src/web/components/editor/code-editor.tsx +36 -26
- package/src/web/components/editor/csv-preview.tsx +207 -0
- package/src/web/components/editor/editor-breadcrumb.tsx +225 -0
- package/src/web/components/editor/editor-toolbar.tsx +74 -0
- package/src/web/lib/csv-parser.ts +134 -0
- package/dist/web/assets/architecture-PBZL5I3N-ChOahOB7.js +0 -1
- package/dist/web/assets/channel-w7yboq56.js +0 -1
- package/dist/web/assets/chat-tab--hD0r5RS.js +0 -7
- package/dist/web/assets/chunk-GLR3WWYH-D9pZakqr.js +0 -2
- package/dist/web/assets/chunk-HHEYEP7N-Dld5BpGB.js +0 -1
- package/dist/web/assets/chunk-QZHKN3VN-DwSXwtjH.js +0 -1
- package/dist/web/assets/classDiagram-VBA2DB6C-BpJ6Oog2.js +0 -1
- package/dist/web/assets/classDiagram-v2-RAHNMMFH-Bj8gIhkP.js +0 -1
- package/dist/web/assets/clone-BSi6cgDh.js +0 -1
- package/dist/web/assets/code-editor-EG9sb3gL.js +0 -1
- package/dist/web/assets/database-viewer-h1Zb9cFF.js +0 -1
- package/dist/web/assets/diff-viewer-DrTqG6RM.js +0 -4
- package/dist/web/assets/dist-T0Vhi0Mh.js +0 -16
- package/dist/web/assets/git-graph-Bx3h7BK1.js +0 -1
- package/dist/web/assets/gitGraph-HDMCJU4V-CEee2FCA.js +0 -1
- package/dist/web/assets/index-Beb248lR.css +0 -2
- package/dist/web/assets/index-DmfRyMpE.js +0 -37
- package/dist/web/assets/info-3K5VOQVL-ce_pi3En.js +0 -1
- package/dist/web/assets/infoDiagram-LFFYTUFH-BzqyoqXw.js +0 -2
- package/dist/web/assets/input-Brjz2Vv-.js +0 -41
- package/dist/web/assets/keybindings-store-BScuugqK.js +0 -1
- package/dist/web/assets/markdown-renderer-DwmzGpNI.js +0 -69
- package/dist/web/assets/packet-RMMSAZCW-CdYSLjRL.js +0 -1
- package/dist/web/assets/pie-UPGHQEXC-Bm5LiD-6.js +0 -1
- package/dist/web/assets/postgres-viewer-Bp6mOne8.js +0 -1
- package/dist/web/assets/radar-KQ55EAFF-C4PnyG7_.js +0 -1
- package/dist/web/assets/settings-store-Bbhg_ptG.js +0 -2
- package/dist/web/assets/settings-tab-8lfbaK4W.js +0 -1
- package/dist/web/assets/sqlite-viewer-Cenucoym.js +0 -1
- package/dist/web/assets/stateDiagram-v2-FVOUBMTO-CMN4M2Em.js +0 -1
- package/dist/web/assets/treemap-KZPCXAKY-2_y-mhkz.js +0 -1
- package/dist/web/assets/use-monaco-theme-vwto-Vlf.js +0 -11
- /package/dist/web/assets/{api-client-DpGMOZNf.js → api-client-DniUYaIY.js} +0 -0
- /package/dist/web/assets/{array-BGFCBI0e.js → array-Bxr4Uw0G.js} +0 -0
- /package/dist/web/assets/{columns-2-ChOTgl3e.js → columns-2-DpsNbZOc.js} +0 -0
- /package/dist/web/assets/{cytoscape.esm-Ccan6xou.js → cytoscape.esm-zgx_RusX.js} +0 -0
- /package/dist/web/assets/{defaultLocale-CRZydyG6.js → defaultLocale-BbBFINez.js} +0 -0
- /package/dist/web/assets/{dist-Cce3efmT.js → dist-CBQJF0q0.js} +0 -0
- /package/dist/web/assets/{init-B8gtcn7T.js → init-C9S7-8pU.js} +0 -0
- /package/dist/web/assets/{isArrayLikeObject-B4pdpV8V.js → isArrayLikeObject-sCNOrnc2.js} +0 -0
- /package/dist/web/assets/{katex-Bbu770d9.js → katex-C10ndCVt.js} +0 -0
- /package/dist/web/assets/{math-DwgHI-Cu.js → math-DO7stL4-.js} +0 -0
- /package/dist/web/assets/{path-DZF-JdEe.js → path-DPMyyJeP.js} +0 -0
- /package/dist/web/assets/{preload-helper-qlgyTAkD.js → preload-helper-uTix4PVD.js} +0 -0
- /package/dist/web/assets/{react-BGf7KNLk.js → react-ER-4DN55.js} +0 -0
- /package/dist/web/assets/{rough.esm-VLpapkIG.js → rough.esm-BWqoIFNR.js} +0 -0
- /package/dist/web/assets/{src-BoSBNdA_.js → src-BYKCXnff.js} +0 -0
- /package/dist/web/assets/{table-Yo02WRH-.js → table-C7X5UAEI.js} +0 -0
- /package/dist/web/assets/{tag-CaC1ng2E.js → tag-CCtdV063.js} +0 -0
- /package/dist/web/assets/{utils-btZ8C8-R.js → utils-BcFEFg4m.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./chunk-GEFDOKGD-DwVPiYfW.js";import{g as t,h as n,p as r}from"./src-BoSBNdA_.js";import{L as i,P as a,k as o,s,y as c}from"./chunk-7R4GIKGN-DXaGAn_K.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},g=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}var de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...d,...e},r={...m,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,u=se(f,c/l)):(u=o===`auto`?c:o,f=s===null?se(u,l/c):s===`auto`?l:s);let p={},h=(e,t)=>{de(t)||(p[e]=t.toString())};h(`width`,u),h(`height`,f);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}var pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function ve(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=b(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:S,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:y,text:De},Me=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),Ne={...O,lheading:Ee,table:Me,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex()},Pe={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^
|
|
1
|
+
import{i as e}from"./chunk-GEFDOKGD-_UEQ_Hqk.js";import{g as t,h as n,p as r}from"./src-BYKCXnff.js";import{L as i,P as a,k as o,s,y as c}from"./chunk-7R4GIKGN-Y5Bg-bKJ.js";var l=Object.freeze({left:0,top:0,width:16,height:16}),u=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze({...l,...u}),f=Object.freeze({...d,body:``,hidden:!1}),p=Object.freeze({width:null,height:null}),m=Object.freeze({...p,...u}),h=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!g(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!g(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!g(e,n)?null:e}return null},g=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ee(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function te(e,t){let n=ee(e,t);for(let r in f)r in u?r in e&&!(r in n)&&(n[r]=u[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ne(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function re(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=te(r[e]||i[e],a)}return o(t),n.forEach(o),te(e,a)}function ie(e,t){if(e.icons[t])return re(e,t,[]);let n=ne(e,[t])[t];return n?re(e,t,n):null}var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function se(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ae);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function ce(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function le(e,t){return e?`<defs>`+e+`</defs>`+t:t}function ue(e,t,n){let r=ce(e);return le(r.defs,t+r.content+n)}var de=e=>e===`unset`||e===`undefined`||e===`none`;function fe(e,t){let n={...d,...e},r={...m,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=ue(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,f;o===null?(f=s===null?`1em`:s===`auto`?l:s,u=se(f,c/l)):(u=o===`auto`?c:o,f=s===null?se(u,l/c):s===`auto`?l:s);let p={},h=(e,t)=>{de(t)||(p[e]=t.toString())};h(`width`,u),h(`height`,f);let g=[i.left,i.top,c,l];return p.viewBox=g.join(` `),{attributes:p,viewBox:g,body:a}}var pe=/\sid="(\S+)"/g,me=new Map;function he(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=me.get(e)||0;return me.set(e,t+1),t?`${e}${t}`:e}function ge(e){let t=[],n;for(;n=pe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=he(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function _e(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_();function ve(e){v=e}var y={exec:()=>null};function b(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(x.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,C=/(?:[*+-]|\d{1,9}[.)])/,we=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Te=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ee=b(we).replace(/bull/g,C).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),w=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,De=/^[^\n]+/,T=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Oe=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,T).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ke=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,C).getRegex(),E=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ae=b(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,D).replace(`tag`,E).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),je=b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),O={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,je).getRegex(),code:xe,def:Oe,fences:Se,heading:Ce,hr:S,html:Ae,lheading:Te,list:ke,newline:be,paragraph:je,table:y,text:De},Me=b(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex(),Ne={...O,lheading:Ee,table:Me,paragraph:b(w).replace(`hr`,S).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Me).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,E).getRegex()},Pe={...O,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,D).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(w).replace(`hr`,S).replace(`heading`,` *#{1,6} *[^
|
|
2
2
|
]`).replace(`lheading`,Te).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Fe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ie=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Le=/^( {2,}|\\)\n(?!\s*$)/,Re=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,k=/[\p{P}\p{S}]/u,A=/[\s\p{P}\p{S}]/u,ze=/[^\s\p{P}\p{S}]/u,Be=b(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,A).getRegex(),Ve=/(?!~)[\p{P}\p{S}]/u,He=/(?!~)[\s\p{P}\p{S}]/u,Ue=/(?:[^\s\p{P}\p{S}]|~)/u,We=b(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ye?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Ge=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ke=b(Ge,`u`).replace(/punct/g,k).getRegex(),qe=b(Ge,`u`).replace(/punct/g,Ve).getRegex(),Je=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ye=b(Je,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Xe=b(Je,`gu`).replace(/notPunctSpace/g,Ue).replace(/punctSpace/g,He).replace(/punct/g,Ve).getRegex(),Ze=b(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ze).replace(/punctSpace/g,A).replace(/punct/g,k).getRegex(),Qe=b(/\\(punct)/,`gu`).replace(/punct/g,k).getRegex(),$e=b(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),et=b(D).replace(`(?:-->|$)`,`-->`).getRegex(),tt=b(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,et).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),j=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nt=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,j).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rt=b(/^!?\[(label)\]\[(ref)\]/).replace(`label`,j).replace(`ref`,T).getRegex(),it=b(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,T).getRegex(),at=b(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rt).replace(`nolink`,it).getRegex(),ot=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,M={_backpedal:y,anyPunctuation:Qe,autolink:$e,blockSkip:We,br:Le,code:Ie,del:y,emStrongLDelim:Ke,emStrongRDelimAst:Ye,emStrongRDelimUnd:Ze,escape:Fe,link:nt,nolink:it,punctuation:Be,reflink:rt,reflinkSearch:at,tag:tt,text:Re,url:y},st={...M,link:b(/^!?\[(label)\]\((.*?)\)/).replace(`label`,j).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,j).getRegex()},N={...M,emStrongRDelimAst:Xe,emStrongLDelim:qe,url:b(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,ot).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,ot).getRegex()},ct={...N,br:b(Le).replace(`{2,}`,`*`).getRegex(),text:b(N.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},P={normal:O,gfm:Ne,pedantic:Pe},F={normal:M,gfm:N,breaks:ct,pedantic:st},lt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},ut=e=>lt[e];function I(e,t){if(t){if(x.escapeTest.test(e))return e.replace(x.escapeReplace,ut)}else if(x.escapeTestNoEncode.test(e))return e.replace(x.escapeReplaceNoEncode,ut);return e}function dt(e){try{e=encodeURI(e).replace(x.percentDecode,`%`)}catch{return null}return e}function ft(e,t){let n=e.replace(x.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(x.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(x.slashPipe,`|`);return n}function L(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function pt(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function mt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function ht(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
3
3
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
4
4
|
`)}var R=class{options;rules;lexer;constructor(e){this.options=e||v}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:L(e,`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./src-BYKCXnff.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,g as t,h as n,m as r,n as i,p as a,r as o,s,t as c}from"./chunk-XZSTWKYB-
|
|
1
|
+
import{f as e,g as t,h as n,m as r,n as i,p as a,r as o,s,t as c}from"./chunk-XZSTWKYB-DTNisBJo.js";var l=class extends c{static{e(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},u=class extends i{static{e(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},d={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new u,`ValueConverter`)}};function f(e=a){let i=r(t(e),s),c=r(n({shared:i}),o,d);return i.ServiceRegistry.register(c),{shared:i,Architecture:c}}e(f,`createArchitectureServices`);export{f as n,d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e,s as t}from"./chunk-GEFDOKGD-DwVPiYfW.js";import{g as n,h as r,p as i}from"./src-BoSBNdA_.js";import{B as a,C as o,L as s,V as c,W as l,Z as u,_ as d,a as f,b as p,j as m,s as h,v as g}from"./chunk-7R4GIKGN-DXaGAn_K.js";import{t as _}from"./chunk-FMBD7UC4-C_1aG0eb.js";import{t as v}from"./chunk-JSJVCQXG-BSrqCL_3.js";import{t as y}from"./chunk-55IACEB6-C4mUdyio.js";import{t as b}from"./chunk-KX2RTZJC-BCxGmbzy.js";import{r as x,t as S}from"./chunk-GLR3WWYH-D9pZakqr.js";var C=(function(){var e=r(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],i=[1,20],a=[1,41],o=[1,42],s=[1,26],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],ee=[1,76],L=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],R=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],z=[13,60,86,100,102,103],B=[13,60,73,74,86,100,102,103],te=[13,60,68,69,70,71,72,86,100,102,103],V=[1,101],H=[1,118],U=[1,114],W=[1,110],G=[1,116],K=[1,111],q=[1,112],J=[1,113],Y=[1,115],X=[1,117],ne=[22,48,60,61,82,86,87,88,89,90],re=[1,8,9,39,41,44],Z=[1,8,9,22],ie=[1,147],ae=[1,8,9,61],Q=[1,8,9,22,48,60,61,82,86,87,88,89,90],oe={trace:r(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`CLASS`,48:`SPACE`,49:`ANNOTATION_START`,50:`ANNOTATION_END`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:r(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]);break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]);break;case 36:this.$=a[s],r.addNamespace(a[s]);break;case 37:this.$=[[a[s]],[]];break;case 38:this.$=[[a[s-1]],[]];break;case 39:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 40:this.$=[[],[a[s]]];break;case 41:this.$=[[],[a[s-1]]];break;case 42:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:r.setCssClass(a[s-2],a[s]);break;case 45:r.addMembers(a[s-3],a[s-1]);break;case 47:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 48:this.$=a[s],r.addClass(a[s]);break;case 49:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 53:r.addAnnotation(a[s],a[s-2]);break;case 54:case 67:this.$=[a[s]];break;case 55:a[s].push(a[s-1]),this.$=a[s];break;case 56:break;case 57:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 58:break;case 59:break;case 60:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 61:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 62:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 63:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 64:this.$=r.addNote(a[s],a[s-1]);break;case 65:this.$=r.addNote(a[s]);break;case 66:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 68:this.$=a[s-2].concat([a[s]]);break;case 69:r.setDirection(`TB`);break;case 70:r.setDirection(`BT`);break;case 71:r.setDirection(`RL`);break;case 72:r.setDirection(`LR`);break;case 73:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 74:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 75:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 76:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 77:this.$=r.relationType.AGGREGATION;break;case 78:this.$=r.relationType.EXTENSION;break;case 79:this.$=r.relationType.COMPOSITION;break;case 80:this.$=r.relationType.DEPENDENCY;break;case 81:this.$=r.relationType.LOLLIPOP;break;case 82:this.$=r.lineType.LINE;break;case 83:this.$=r.lineType.DOTTED_LINE;break;case 84:case 90:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 85:case 91:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 86:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 87:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 88:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 89:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 92:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 93:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 95:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 97:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 98:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 99:r.setCssClass(a[s-1],a[s]);break;case 100:this.$=[a[s]];break;case 101:a[s-2].push(a[s]),this.$=a[s-2];break;case 103:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:i,38:22,42:a,43:23,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,56],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,43],{39:[1,67],44:[1,66]}),e(O,[2,58]),e(O,[2,59]),{16:68,60:p,86:C,100:w,102:T},{16:39,17:40,19:69,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:p,86:C,100:w,102:T,103:E},{13:ee,55:75},{58:77,60:[1,78]},e(O,[2,69]),e(O,[2,70]),e(O,[2,71]),e(O,[2,72]),e(L,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:p,86:C,100:w,102:T,103:E}),e(L,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:86,60:p,86:C,100:w,102:T,103:E},e(R,[2,126]),e(R,[2,127]),e(R,[2,128]),e(R,[2,129]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,130]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:n,37:i,42:a,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:i,38:22,42:a,43:23,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,90],16:39,17:40,19:89,60:p,86:C,100:w,102:T,103:E},{53:91,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,57]),{67:92,73:P,74:F},e(z,[2,76],{66:93,68:k,69:A,70:j,71:M,72:N}),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(te,[2,82]),e(te,[2,83]),{8:[1,95],24:96,30:97,40:94,43:23,46:o,54:u,56:d},{16:98,60:p,86:C,100:w,102:T},{41:[1,100],45:99,51:V},{50:[1,102]},{13:[1,103]},{13:[1,104]},{79:[1,105],81:[1,106]},{22:H,48:U,59:107,60:W,82:G,84:108,85:109,86:K,87:q,88:J,89:Y,90:X},{60:[1,119]},{13:ee,55:120},e(I,[2,65]),e(I,[2,131]),{22:H,48:U,59:121,60:W,61:[1,122],82:G,84:108,85:109,86:K,87:q,88:J,89:Y,90:X},e(ne,[2,67]),{16:39,17:40,19:123,60:p,86:C,100:w,102:T,103:E},e(L,[2,16]),e(L,[2,17]),e(L,[2,18]),{39:[2,36]},{15:125,16:84,17:85,18:[1,124],39:[2,9],60:p,86:C,100:w,102:T,103:E},{39:[2,10]},e(re,[2,48],{11:126,12:[1,127]}),e(D,[2,7]),{9:[1,128]},e(Z,[2,60]),{16:39,17:40,19:129,60:p,86:C,100:w,102:T,103:E},{13:[1,131],16:39,17:40,19:130,60:p,86:C,100:w,102:T,103:E},e(z,[2,75],{66:132,68:k,69:A,70:j,71:M,72:N}),e(z,[2,74]),{41:[1,133]},{24:96,30:97,40:134,43:23,46:o,54:u,56:d},{8:[1,135],41:[2,37]},{8:[1,136],41:[2,40]},e(I,[2,44],{39:[1,137]}),{41:[1,138]},e(I,[2,46]),{41:[2,54],45:139,51:V},{16:39,17:40,19:140,60:p,86:C,100:w,102:T,103:E},e(O,[2,84],{13:[1,141]}),e(O,[2,86],{13:[1,143],77:[1,142]}),e(O,[2,90],{13:[1,144],80:[1,145]}),{13:[1,146]},e(O,[2,98],{61:ie}),e(ae,[2,100],{85:148,22:H,48:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(Q,[2,102]),e(Q,[2,104]),e(Q,[2,105]),e(Q,[2,106]),e(Q,[2,107]),e(Q,[2,108]),e(Q,[2,109]),e(Q,[2,110]),e(Q,[2,111]),e(Q,[2,112]),e(O,[2,99]),e(I,[2,64]),e(O,[2,66],{61:ie}),{60:[1,149]},e(L,[2,14]),{15:150,16:84,17:85,60:p,86:C,100:w,102:T,103:E},{39:[2,12]},e(re,[2,49]),{13:[1,151]},{1:[2,4]},e(Z,[2,62]),e(Z,[2,61]),{16:39,17:40,19:152,60:p,86:C,100:w,102:T,103:E},e(z,[2,73]),e(O,[2,34]),{41:[1,153]},{24:96,30:97,40:154,41:[2,38],43:23,46:o,54:u,56:d},{24:96,30:97,40:155,41:[2,41],43:23,46:o,54:u,56:d},{45:156,51:V},e(I,[2,45]),{41:[2,55]},e(O,[2,53]),e(O,[2,85]),e(O,[2,87]),e(O,[2,88],{77:[1,157]}),e(O,[2,91]),e(O,[2,92],{13:[1,158]}),e(O,[2,94],{13:[1,160],77:[1,159]}),{22:H,48:U,60:W,82:G,84:161,85:109,86:K,87:q,88:J,89:Y,90:X},e(Q,[2,103]),e(ne,[2,68]),{39:[2,11]},{14:[1,162]},e(Z,[2,63]),e(O,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,163]},e(O,[2,89]),e(O,[2,93]),e(O,[2,95]),e(O,[2,96],{77:[1,164]}),e(ae,[2,101],{85:148,22:H,48:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(re,[2,8]),e(I,[2,47]),e(O,[2,97])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],125:[2,12],128:[2,4],139:[2,55],150:[2,11],154:[2,39],155:[2,42]},parseError:r(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:r(function(e){var t=this,n=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}r(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}r(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
1
|
+
import{h as e,s as t}from"./chunk-GEFDOKGD-_UEQ_Hqk.js";import{g as n,h as r,p as i}from"./src-BYKCXnff.js";import{B as a,C as o,L as s,V as c,W as l,Z as u,_ as d,a as f,b as p,j as m,s as h,v as g}from"./chunk-7R4GIKGN-Y5Bg-bKJ.js";import{t as _}from"./chunk-FMBD7UC4-BrH-Lnio.js";import{t as v}from"./chunk-JSJVCQXG-LNOdgWAh.js";import{t as y}from"./chunk-55IACEB6-NTU3iwXh.js";import{t as b}from"./chunk-KX2RTZJC-AniEyPkm.js";import{r as x,t as S}from"./chunk-GLR3WWYH-BWjkRp6S.js";var C=(function(){var e=r(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],i=[1,20],a=[1,41],o=[1,42],s=[1,26],c=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],ee=[1,76],L=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],R=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],z=[13,60,86,100,102,103],B=[13,60,73,74,86,100,102,103],te=[13,60,68,69,70,71,72,86,100,102,103],V=[1,101],H=[1,118],U=[1,114],W=[1,110],G=[1,116],K=[1,111],q=[1,112],J=[1,113],Y=[1,115],X=[1,117],ne=[22,48,60,61,82,86,87,88,89,90],re=[1,8,9,39,41,44],Z=[1,8,9,22],ie=[1,147],ae=[1,8,9,61],Q=[1,8,9,22,48,60,61,82,86,87,88,89,90],oe={trace:r(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`CLASS`,48:`SPACE`,49:`ANNOTATION_START`,50:`ANNOTATION_END`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:r(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]);break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]);break;case 36:this.$=a[s],r.addNamespace(a[s]);break;case 37:this.$=[[a[s]],[]];break;case 38:this.$=[[a[s-1]],[]];break;case 39:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 40:this.$=[[],[a[s]]];break;case 41:this.$=[[],[a[s-1]]];break;case 42:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:r.setCssClass(a[s-2],a[s]);break;case 45:r.addMembers(a[s-3],a[s-1]);break;case 47:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 48:this.$=a[s],r.addClass(a[s]);break;case 49:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 53:r.addAnnotation(a[s],a[s-2]);break;case 54:case 67:this.$=[a[s]];break;case 55:a[s].push(a[s-1]),this.$=a[s];break;case 56:break;case 57:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 58:break;case 59:break;case 60:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 61:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 62:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 63:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 64:this.$=r.addNote(a[s],a[s-1]);break;case 65:this.$=r.addNote(a[s]);break;case 66:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 68:this.$=a[s-2].concat([a[s]]);break;case 69:r.setDirection(`TB`);break;case 70:r.setDirection(`BT`);break;case 71:r.setDirection(`RL`);break;case 72:r.setDirection(`LR`);break;case 73:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 74:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 75:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 76:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 77:this.$=r.relationType.AGGREGATION;break;case 78:this.$=r.relationType.EXTENSION;break;case 79:this.$=r.relationType.COMPOSITION;break;case 80:this.$=r.relationType.DEPENDENCY;break;case 81:this.$=r.relationType.LOLLIPOP;break;case 82:this.$=r.lineType.LINE;break;case 83:this.$=r.lineType.DOTTED_LINE;break;case 84:case 90:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 85:case 91:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 86:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 87:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 88:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 89:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 92:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 93:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 95:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 97:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 98:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 99:r.setCssClass(a[s-1],a[s]);break;case 100:this.$=[a[s]];break;case 101:a[s-2].push(a[s]),this.$=a[s-2];break;case 103:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:i,38:22,42:a,43:23,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,56],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,43],{39:[1,67],44:[1,66]}),e(O,[2,58]),e(O,[2,59]),{16:68,60:p,86:C,100:w,102:T},{16:39,17:40,19:69,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:p,86:C,100:w,102:T,103:E},{13:ee,55:75},{58:77,60:[1,78]},e(O,[2,69]),e(O,[2,70]),e(O,[2,71]),e(O,[2,72]),e(L,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:p,86:C,100:w,102:T,103:E}),e(L,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:86,60:p,86:C,100:w,102:T,103:E},e(R,[2,126]),e(R,[2,127]),e(R,[2,128]),e(R,[2,129]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,130]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:n,37:i,42:a,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:i,38:22,42:a,43:23,46:o,49:s,51:c,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,90],16:39,17:40,19:89,60:p,86:C,100:w,102:T,103:E},{53:91,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,57]),{67:92,73:P,74:F},e(z,[2,76],{66:93,68:k,69:A,70:j,71:M,72:N}),e(B,[2,77]),e(B,[2,78]),e(B,[2,79]),e(B,[2,80]),e(B,[2,81]),e(te,[2,82]),e(te,[2,83]),{8:[1,95],24:96,30:97,40:94,43:23,46:o,54:u,56:d},{16:98,60:p,86:C,100:w,102:T},{41:[1,100],45:99,51:V},{50:[1,102]},{13:[1,103]},{13:[1,104]},{79:[1,105],81:[1,106]},{22:H,48:U,59:107,60:W,82:G,84:108,85:109,86:K,87:q,88:J,89:Y,90:X},{60:[1,119]},{13:ee,55:120},e(I,[2,65]),e(I,[2,131]),{22:H,48:U,59:121,60:W,61:[1,122],82:G,84:108,85:109,86:K,87:q,88:J,89:Y,90:X},e(ne,[2,67]),{16:39,17:40,19:123,60:p,86:C,100:w,102:T,103:E},e(L,[2,16]),e(L,[2,17]),e(L,[2,18]),{39:[2,36]},{15:125,16:84,17:85,18:[1,124],39:[2,9],60:p,86:C,100:w,102:T,103:E},{39:[2,10]},e(re,[2,48],{11:126,12:[1,127]}),e(D,[2,7]),{9:[1,128]},e(Z,[2,60]),{16:39,17:40,19:129,60:p,86:C,100:w,102:T,103:E},{13:[1,131],16:39,17:40,19:130,60:p,86:C,100:w,102:T,103:E},e(z,[2,75],{66:132,68:k,69:A,70:j,71:M,72:N}),e(z,[2,74]),{41:[1,133]},{24:96,30:97,40:134,43:23,46:o,54:u,56:d},{8:[1,135],41:[2,37]},{8:[1,136],41:[2,40]},e(I,[2,44],{39:[1,137]}),{41:[1,138]},e(I,[2,46]),{41:[2,54],45:139,51:V},{16:39,17:40,19:140,60:p,86:C,100:w,102:T,103:E},e(O,[2,84],{13:[1,141]}),e(O,[2,86],{13:[1,143],77:[1,142]}),e(O,[2,90],{13:[1,144],80:[1,145]}),{13:[1,146]},e(O,[2,98],{61:ie}),e(ae,[2,100],{85:148,22:H,48:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(Q,[2,102]),e(Q,[2,104]),e(Q,[2,105]),e(Q,[2,106]),e(Q,[2,107]),e(Q,[2,108]),e(Q,[2,109]),e(Q,[2,110]),e(Q,[2,111]),e(Q,[2,112]),e(O,[2,99]),e(I,[2,64]),e(O,[2,66],{61:ie}),{60:[1,149]},e(L,[2,14]),{15:150,16:84,17:85,60:p,86:C,100:w,102:T,103:E},{39:[2,12]},e(re,[2,49]),{13:[1,151]},{1:[2,4]},e(Z,[2,62]),e(Z,[2,61]),{16:39,17:40,19:152,60:p,86:C,100:w,102:T,103:E},e(z,[2,73]),e(O,[2,34]),{41:[1,153]},{24:96,30:97,40:154,41:[2,38],43:23,46:o,54:u,56:d},{24:96,30:97,40:155,41:[2,41],43:23,46:o,54:u,56:d},{45:156,51:V},e(I,[2,45]),{41:[2,55]},e(O,[2,53]),e(O,[2,85]),e(O,[2,87]),e(O,[2,88],{77:[1,157]}),e(O,[2,91]),e(O,[2,92],{13:[1,158]}),e(O,[2,94],{13:[1,160],77:[1,159]}),{22:H,48:U,60:W,82:G,84:161,85:109,86:K,87:q,88:J,89:Y,90:X},e(Q,[2,103]),e(ne,[2,68]),{39:[2,11]},{14:[1,162]},e(Z,[2,63]),e(O,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,163]},e(O,[2,89]),e(O,[2,93]),e(O,[2,95]),e(O,[2,96],{77:[1,164]}),e(ae,[2,101],{85:148,22:H,48:U,60:W,82:G,86:K,87:q,88:J,89:Y,90:X}),e(re,[2,8]),e(I,[2,47]),e(O,[2,97])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],125:[2,12],128:[2,4],139:[2,55],150:[2,11],154:[2,39],155:[2,42]},parseError:r(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:r(function(e){var t=this,n=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}r(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}r(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};oe.lexer=(function(){return{EOF:1,parseError:r(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:r(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:r(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:r(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:r(function(){return this._more=!0,this},`more`),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:r(function(e){this.unput(this.match.slice(e))},`less`),pastInput:r(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:r(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:r(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,g as t,h as n,l as r,m as i,n as a,p as o,s,t as c}from"./chunk-XZSTWKYB-
|
|
1
|
+
import{f as e,g as t,h as n,l as r,m as i,n as a,p as o,s,t as c}from"./chunk-XZSTWKYB-DTNisBJo.js";var l=class extends c{static{e(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},u=class extends a{static{e(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},d={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new u,`ValueConverter`)}};function f(e=o){let a=i(t(e),s),c=i(n({shared:a}),r,d);return a.ServiceRegistry.register(c),{shared:a,Pie:c}}e(f,`createPieServices`);export{f as n,d as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e}from"./src-
|
|
1
|
+
import{h as e}from"./src-BYKCXnff.js";function t(e){return e==null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function i(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}e(i,`extend`);function a(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}e(a,`repeat`);function o(e){return e===0&&1/e==-1/0}e(o,`isNegativeZero`);var s={isNothing:t,isObject:n,toArray:r,repeat:a,isNegativeZero:o,extend:i};function c(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),r+` `+n):r}e(c,`formatError`);function l(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}e(l,`YAMLException$1`),l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=e(function(e){return this.name+`: `+c(this,e)},`toString`);var u=l;function d(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e(d,`getLine`);function f(e,t){return s.repeat(` `,t-e.length)+e}e(f,`padStart`);function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c=``,l,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)u=d(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),m),c=s.repeat(` `,t.indent)+f((e.line-l+1).toString(),p)+` | `+u.str+`
|
|
4
4
|
`+c;for(u=d(e.buffer,r[o],i[o],e.position,m),c+=s.repeat(` `,t.indent)+f((e.line+1).toString(),p)+` | `+u.str+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CFjPhJqf.js";import{B as o,C as s,E as c,H as l,O as u,R as d,S as f,U as p,V as m,_ as h,j as g,k as _,t as v,v as y,w as ee,x as b,z as x}from"./isArrayLikeObject-B4pdpV8V.js";import{D as S,M as C,O as te,S as w,_ as ne,a as T,b as re,f as E,g as ie,i as D,j as O,k as ae,l as oe,n as k,o as A,r as j,s as M,t as se,u as N,v as ce,x as le}from"./_baseUniq-ClnvscgW.js";import{a as ue,d as de,f as fe,l as pe,n as me,o as P,p as he,s as F,t as ge,u as _e}from"./_basePickBy-CZovQgWd.js";import{t as I}from"./isEmpty-C0YYdhYj.js";import{t as L}from"./clone-BSi6cgDh.js";function R(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function ve(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function ye(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function be(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function xe(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var Se=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return R(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function Ce(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function we(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function Te(e){return Ce(e)&&typeof e.fullText==`string`}var Ee=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return Ae})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=De(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?Ae:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return Ae})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(Oe(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return Ae})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(Oe(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return Ae})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?Ae:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return Ae})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function De(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function Oe(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ke=new Ee(()=>void 0,()=>Ae),Ae=Object.freeze({done:!0,value:void 0});function z(...e){if(e.length===1){let t=e[0];if(t instanceof Ee)return t;if(Oe(t))return new Ee(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new Ee(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:Ae)}return e.length>1?new Ee(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];Oe(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return Ae}):ke}var je=class extends Ee{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return Ae})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},Me;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(Me||={});function Ne(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{R(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&Ne(r,t))}):R(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&Ne(r,t)))}function Pe(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function Fe(e){let t=Ie(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function Ie(e){for(;e.$container;)e=e.$container;return e}function Le(e){return ve(e)?e.ref?[e.ref]:[]:ye(e)?e.items.map(e=>e.ref):[]}function Re(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new Ee(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(R(i)){if(t.keyIndex++,Ve(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(R(e)&&Ve(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return Ae})}function ze(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new je(e,e=>Re(e,t))}function Be(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!Ve(e,t.range)?new je(e,()=>[]):new je(e,e=>Re(e,t),{includeRoot:!0})}function Ve(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?On(n,t):!1}function He(e){return new Ee(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(ve(r)||ye(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(ve(a)||ye(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return Ae})}function Ue(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=We(e.defaultValue))}function We(e){return Array.isArray(e)?[...e.map(We)]:e}var Ge={$type:`AbstractElement`,cardinality:`cardinality`};function Ke(e){return B.isInstance(e,Ge.$type)}var qe={$type:`AbstractParserRule`};function Je(e){return B.isInstance(e,qe.$type)}var Ye={$type:`AbstractRule`},Xe={$type:`AbstractType`},Ze={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function Qe(e){return B.isInstance(e,Ze.$type)}var $e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function et(e){return B.isInstance(e,$e.$type)}var tt={$type:`ArrayLiteral`,elements:`elements`},nt={$type:`ArrayType`,elementType:`elementType`},rt={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function it(e){return B.isInstance(e,rt.$type)}var at={$type:`BooleanLiteral`,true:`true`};function ot(e){return B.isInstance(e,at.$type)}var st={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function ct(e){return B.isInstance(e,st.$type)}var lt={$type:`Condition`},ut={$type:`Conjunction`,left:`left`,right:`right`};function dt(e){return B.isInstance(e,ut.$type)}var ft={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function pt(e){return B.isInstance(e,ft.$type)}var mt={$type:`Disjunction`,left:`left`,right:`right`};function ht(e){return B.isInstance(e,mt.$type)}var gt={$type:`EndOfFile`,cardinality:`cardinality`};function _t(e){return B.isInstance(e,gt.$type)}var vt={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},yt={$type:`GrammarImport`,path:`path`},bt={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function xt(e){return B.isInstance(e,bt.$type)}var St={$type:`InferredType`,name:`name`};function Ct(e){return B.isInstance(e,St.$type)}var wt={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Tt(e){return B.isInstance(e,wt.$type)}var Et={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Dt={$type:`InfixRuleOperators`,precedences:`precedences`},Ot={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function kt(e){return B.isInstance(e,Ot.$type)}var At={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function jt(e){return B.isInstance(e,At.$type)}var Mt={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Nt={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return B.isInstance(e,Nt.$type)}var Ft={$type:`Negation`,value:`value`};function It(e){return B.isInstance(e,Ft.$type)}var Lt={$type:`NumberLiteral`,value:`value`},Rt={$type:`Parameter`,name:`name`},zt={$type:`ParameterReference`,parameter:`parameter`};function Bt(e){return B.isInstance(e,zt.$type)}var Vt={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function Ht(e){return B.isInstance(e,Vt.$type)}var Ut={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},Wt={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function Gt(e){return B.isInstance(e,Wt.$type)}var Kt={$type:`ReturnType`,name:`name`};function qt(e){return B.isInstance(e,Kt.$type)}var Jt={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function Yt(e){return B.isInstance(e,Jt.$type)}var Xt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function Zt(e){return B.isInstance(e,Xt.$type)}var Qt={$type:`StringLiteral`,value:`value`},$t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function en(e){return B.isInstance(e,$t.$type)}var tn={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},nn={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function rn(e){return B.isInstance(e,nn.$type)}var an={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function on(e){return B.isInstance(e,an.$type)}var sn={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function cn(e){return B.isInstance(e,sn.$type)}var ln={$type:`Type`,name:`name`,type:`type`};function un(e){return B.isInstance(e,ln.$type)}var dn={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},fn={$type:`TypeDefinition`},pn={$type:`UnionType`,types:`types`},mn={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function hn(e){return B.isInstance(e,mn.$type)}var gn={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function _n(e){return B.isInstance(e,gn.$type)}var vn={$type:`ValueLiteral`},yn={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function bn(e){return B.isInstance(e,yn.$type)}var xn=class extends Se{constructor(){super(...arguments),this.types={AbstractElement:{name:Ge.$type,properties:{cardinality:{name:Ge.cardinality}},superTypes:[]},AbstractParserRule:{name:qe.$type,properties:{},superTypes:[Ye.$type,Xe.$type]},AbstractRule:{name:Ye.$type,properties:{},superTypes:[]},AbstractType:{name:Xe.$type,properties:{},superTypes:[]},Action:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},feature:{name:Ze.feature},inferredType:{name:Ze.inferredType},operator:{name:Ze.operator},type:{name:Ze.type,referenceType:Xe.$type}},superTypes:[Ge.$type]},Alternatives:{name:$e.$type,properties:{cardinality:{name:$e.cardinality},elements:{name:$e.elements,defaultValue:[]}},superTypes:[Ge.$type]},ArrayLiteral:{name:tt.$type,properties:{elements:{name:tt.elements,defaultValue:[]}},superTypes:[vn.$type]},ArrayType:{name:nt.$type,properties:{elementType:{name:nt.elementType}},superTypes:[fn.$type]},Assignment:{name:rt.$type,properties:{cardinality:{name:rt.cardinality},feature:{name:rt.feature},operator:{name:rt.operator},predicate:{name:rt.predicate},terminal:{name:rt.terminal}},superTypes:[Ge.$type]},BooleanLiteral:{name:at.$type,properties:{true:{name:at.true,defaultValue:!1}},superTypes:[lt.$type,vn.$type]},CharacterRange:{name:st.$type,properties:{cardinality:{name:st.cardinality},left:{name:st.left},lookahead:{name:st.lookahead},parenthesized:{name:st.parenthesized,defaultValue:!1},right:{name:st.right}},superTypes:[tn.$type]},Condition:{name:lt.$type,properties:{},superTypes:[]},Conjunction:{name:ut.$type,properties:{left:{name:ut.left},right:{name:ut.right}},superTypes:[lt.$type]},CrossReference:{name:ft.$type,properties:{cardinality:{name:ft.cardinality},deprecatedSyntax:{name:ft.deprecatedSyntax,defaultValue:!1},isMulti:{name:ft.isMulti,defaultValue:!1},terminal:{name:ft.terminal},type:{name:ft.type,referenceType:Xe.$type}},superTypes:[Ge.$type]},Disjunction:{name:mt.$type,properties:{left:{name:mt.left},right:{name:mt.right}},superTypes:[lt.$type]},EndOfFile:{name:gt.$type,properties:{cardinality:{name:gt.cardinality}},superTypes:[Ge.$type]},Grammar:{name:vt.$type,properties:{imports:{name:vt.imports,defaultValue:[]},interfaces:{name:vt.interfaces,defaultValue:[]},isDeclared:{name:vt.isDeclared,defaultValue:!1},name:{name:vt.name},rules:{name:vt.rules,defaultValue:[]},types:{name:vt.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:yt.$type,properties:{path:{name:yt.path}},superTypes:[]},Group:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},guardCondition:{name:bt.guardCondition},predicate:{name:bt.predicate}},superTypes:[Ge.$type]},InferredType:{name:St.$type,properties:{name:{name:St.name}},superTypes:[Xe.$type]},InfixRule:{name:wt.$type,properties:{call:{name:wt.call},dataType:{name:wt.dataType},inferredType:{name:wt.inferredType},name:{name:wt.name},operators:{name:wt.operators},parameters:{name:wt.parameters,defaultValue:[]},returnType:{name:wt.returnType,referenceType:Xe.$type}},superTypes:[qe.$type]},InfixRuleOperatorList:{name:Et.$type,properties:{associativity:{name:Et.associativity},operators:{name:Et.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Dt.$type,properties:{precedences:{name:Dt.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ot.$type,properties:{attributes:{name:Ot.attributes,defaultValue:[]},name:{name:Ot.name},superTypes:{name:Ot.superTypes,defaultValue:[],referenceType:Xe.$type}},superTypes:[Xe.$type]},Keyword:{name:At.$type,properties:{cardinality:{name:At.cardinality},predicate:{name:At.predicate},value:{name:At.value}},superTypes:[Ge.$type]},NamedArgument:{name:Mt.$type,properties:{calledByName:{name:Mt.calledByName,defaultValue:!1},parameter:{name:Mt.parameter,referenceType:Rt.$type},value:{name:Mt.value}},superTypes:[]},NegatedToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[tn.$type]},Negation:{name:Ft.$type,properties:{value:{name:Ft.value}},superTypes:[lt.$type]},NumberLiteral:{name:Lt.$type,properties:{value:{name:Lt.value}},superTypes:[vn.$type]},Parameter:{name:Rt.$type,properties:{name:{name:Rt.name}},superTypes:[]},ParameterReference:{name:zt.$type,properties:{parameter:{name:zt.parameter,referenceType:Rt.$type}},superTypes:[lt.$type]},ParserRule:{name:Vt.$type,properties:{dataType:{name:Vt.dataType},definition:{name:Vt.definition},entry:{name:Vt.entry,defaultValue:!1},fragment:{name:Vt.fragment,defaultValue:!1},inferredType:{name:Vt.inferredType},name:{name:Vt.name},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Xe.$type}},superTypes:[qe.$type]},ReferenceType:{name:Ut.$type,properties:{isMulti:{name:Ut.isMulti,defaultValue:!1},referenceType:{name:Ut.referenceType}},superTypes:[fn.$type]},RegexToken:{name:Wt.$type,properties:{cardinality:{name:Wt.cardinality},lookahead:{name:Wt.lookahead},parenthesized:{name:Wt.parenthesized,defaultValue:!1},regex:{name:Wt.regex}},superTypes:[tn.$type]},ReturnType:{name:Kt.$type,properties:{name:{name:Kt.name}},superTypes:[]},RuleCall:{name:Jt.$type,properties:{arguments:{name:Jt.arguments,defaultValue:[]},cardinality:{name:Jt.cardinality},predicate:{name:Jt.predicate},rule:{name:Jt.rule,referenceType:Ye.$type}},superTypes:[Ge.$type]},SimpleType:{name:Xt.$type,properties:{primitiveType:{name:Xt.primitiveType},stringType:{name:Xt.stringType},typeRef:{name:Xt.typeRef,referenceType:Xe.$type}},superTypes:[fn.$type]},StringLiteral:{name:Qt.$type,properties:{value:{name:Qt.value}},superTypes:[vn.$type]},TerminalAlternatives:{name:$t.$type,properties:{cardinality:{name:$t.cardinality},elements:{name:$t.elements,defaultValue:[]},lookahead:{name:$t.lookahead},parenthesized:{name:$t.parenthesized,defaultValue:!1}},superTypes:[tn.$type]},TerminalElement:{name:tn.$type,properties:{cardinality:{name:tn.cardinality},lookahead:{name:tn.lookahead},parenthesized:{name:tn.parenthesized,defaultValue:!1}},superTypes:[Ge.$type]},TerminalGroup:{name:nn.$type,properties:{cardinality:{name:nn.cardinality},elements:{name:nn.elements,defaultValue:[]},lookahead:{name:nn.lookahead},parenthesized:{name:nn.parenthesized,defaultValue:!1}},superTypes:[tn.$type]},TerminalRule:{name:an.$type,properties:{definition:{name:an.definition},fragment:{name:an.fragment,defaultValue:!1},hidden:{name:an.hidden,defaultValue:!1},name:{name:an.name},type:{name:an.type}},superTypes:[Ye.$type]},TerminalRuleCall:{name:sn.$type,properties:{cardinality:{name:sn.cardinality},lookahead:{name:sn.lookahead},parenthesized:{name:sn.parenthesized,defaultValue:!1},rule:{name:sn.rule,referenceType:an.$type}},superTypes:[tn.$type]},Type:{name:ln.$type,properties:{name:{name:ln.name},type:{name:ln.type}},superTypes:[Xe.$type]},TypeAttribute:{name:dn.$type,properties:{defaultValue:{name:dn.defaultValue},isOptional:{name:dn.isOptional,defaultValue:!1},name:{name:dn.name},type:{name:dn.type}},superTypes:[]},TypeDefinition:{name:fn.$type,properties:{},superTypes:[]},UnionType:{name:pn.$type,properties:{types:{name:pn.types,defaultValue:[]}},superTypes:[fn.$type]},UnorderedGroup:{name:mn.$type,properties:{cardinality:{name:mn.cardinality},elements:{name:mn.elements,defaultValue:[]}},superTypes:[Ge.$type]},UntilToken:{name:gn.$type,properties:{cardinality:{name:gn.cardinality},lookahead:{name:gn.lookahead},parenthesized:{name:gn.parenthesized,defaultValue:!1},terminal:{name:gn.terminal}},superTypes:[tn.$type]},ValueLiteral:{name:vn.$type,properties:{},superTypes:[]},Wildcard:{name:yn.$type,properties:{cardinality:{name:yn.cardinality},lookahead:{name:yn.lookahead},parenthesized:{name:yn.parenthesized,defaultValue:!1}},superTypes:[tn.$type]}}}},B=new xn;function Sn(e){return new je(e,e=>Ce(e)?e.content:[],{includeRoot:!0})}function Cn(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function wn(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Tn(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var En;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(En||={});function Dn(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return En.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return En.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?En.Inside:n?En.OverlapBack:r?En.OverlapFront:En.Outside}function On(e,t){return Dn(e,t)>En.After}var kn=/^[\w\p{L}]$/u;function An(e,t){if(e){let n=Mn(e,!0);if(n&&jn(n,t))return n;if(Te(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(jn(n,t))return n}}}}function jn(e,t){return we(e)&&t.includes(e.tokenType.name)}function Mn(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Nn=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Pn(e,t=`Error: Got unexpected value.`){throw Error(t)}function V(e){return e.charCodeAt(0)}function Fn(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function In(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function Ln(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function Rn(){throw Error(`Internal Error - Should never get here!`)}function zn(e){return e.type===`Character`}var Bn=[];for(let e=V(`0`);e<=V(`9`);e++)Bn.push(e);var Vn=[V(`_`)].concat(Bn);for(let e=V(`a`);e<=V(`z`);e++)Vn.push(e);for(let e=V(`A`);e<=V(`Z`);e++)Vn.push(e);var Hn=[V(` `),V(`\f`),V(`
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"./chunk-CFjPhJqf.js";import{B as o,C as s,E as c,H as l,O as u,R as d,S as f,U as p,V as m,_ as h,j as g,k as _,t as v,v as y,w as ee,x as b,z as x}from"./isArrayLikeObject-sCNOrnc2.js";import{D as S,M as C,O as te,S as w,_ as ne,a as T,b as re,f as E,g as ie,i as D,j as O,k as ae,l as oe,n as k,o as A,r as j,s as M,t as se,u as N,v as ce,x as le}from"./_baseUniq-PMQMCyd4.js";import{a as ue,d as de,f as fe,l as pe,n as me,o as P,p as he,s as F,t as ge,u as _e}from"./_basePickBy-CrBYAu1z.js";import{t as I}from"./isEmpty-CauZBoL-.js";import{t as L}from"./clone-BGvnD7V5.js";function R(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function ve(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function ye(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function be(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function xe(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}var Se=class{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return R(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}};function Ce(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function we(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function Te(e){return Ce(e)&&typeof e.fullText==`string`}var Ee=class e{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return Ae})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=De(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?Ae:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return Ae})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(Oe(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return Ae})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t)if(Oe(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}while(e.iterator);return Ae})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(e).done)return e;return e},this.nextFn)}limit(t){return new e(()=>({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?Ae:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return Ae})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}};function De(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function Oe(e){return!!e&&typeof e[Symbol.iterator]==`function`}var ke=new Ee(()=>void 0,()=>Ae),Ae=Object.freeze({done:!0,value:void 0});function z(...e){if(e.length===1){let t=e[0];if(t instanceof Ee)return t;if(Oe(t))return new Ee(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new Ee(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:Ae)}return e.length>1?new Ee(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let n=e[t.collIndex++];Oe(n)?t.iterator=n[Symbol.iterator]():n&&typeof n.length==`number`&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return Ae}):ke}var je=class extends Ee{constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return Ae})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}},Me;(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}e.max=i})(Me||={});function Ne(e,t={}){for(let[n,r]of Object.entries(e))n.startsWith(`$`)||(Array.isArray(r)?r.forEach((r,i)=>{R(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&Ne(r,t))}):R(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&Ne(r,t)))}function Pe(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function Fe(e){let t=Ie(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function Ie(e){for(;e.$container;)e=e.$container;return e}function Le(e){return ve(e)?e.ref?[e.ref]:[]:ye(e)?e.items.map(e=>e.ref):[]}function Re(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new Ee(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith(`$`)){let i=e[r];if(R(i)){if(t.keyIndex++,Ve(i,n))return{done:!1,value:i}}else if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let e=i[t.arrayIndex++];if(R(e)&&Ve(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return Ae})}function ze(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return new je(e,e=>Re(e,t))}function Be(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!Ve(e,t.range)?new je(e,()=>[]):new je(e,e=>Re(e,t),{includeRoot:!0})}function Ve(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?On(n,t):!1}function He(e){return new Ee(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let n=t.keys[t.keyIndex];if(!n.startsWith(`$`)){let r=e[n];if(ve(r)||ye(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){let i=t.arrayIndex++,a=r[i];if(ve(a)||ye(r))return{done:!1,value:{reference:a,container:e,property:n,index:i}}}t.arrayIndex=0}}t.keyIndex++}return Ae})}function Ue(e,t){let n=e.getTypeMetaData(t.$type),r=t;for(let e of Object.values(n.properties))e.defaultValue!==void 0&&r[e.name]===void 0&&(r[e.name]=We(e.defaultValue))}function We(e){return Array.isArray(e)?[...e.map(We)]:e}var Ge={$type:`AbstractElement`,cardinality:`cardinality`};function Ke(e){return B.isInstance(e,Ge.$type)}var qe={$type:`AbstractParserRule`};function Je(e){return B.isInstance(e,qe.$type)}var Ye={$type:`AbstractRule`},Xe={$type:`AbstractType`},Ze={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`};function Qe(e){return B.isInstance(e,Ze.$type)}var $e={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`};function et(e){return B.isInstance(e,$e.$type)}var tt={$type:`ArrayLiteral`,elements:`elements`},nt={$type:`ArrayType`,elementType:`elementType`},rt={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`};function it(e){return B.isInstance(e,rt.$type)}var at={$type:`BooleanLiteral`,true:`true`};function ot(e){return B.isInstance(e,at.$type)}var st={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`};function ct(e){return B.isInstance(e,st.$type)}var lt={$type:`Condition`},ut={$type:`Conjunction`,left:`left`,right:`right`};function dt(e){return B.isInstance(e,ut.$type)}var ft={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`};function pt(e){return B.isInstance(e,ft.$type)}var mt={$type:`Disjunction`,left:`left`,right:`right`};function ht(e){return B.isInstance(e,mt.$type)}var gt={$type:`EndOfFile`,cardinality:`cardinality`};function _t(e){return B.isInstance(e,gt.$type)}var vt={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},yt={$type:`GrammarImport`,path:`path`},bt={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`};function xt(e){return B.isInstance(e,bt.$type)}var St={$type:`InferredType`,name:`name`};function Ct(e){return B.isInstance(e,St.$type)}var wt={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`};function Tt(e){return B.isInstance(e,wt.$type)}var Et={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},Dt={$type:`InfixRuleOperators`,precedences:`precedences`},Ot={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`};function kt(e){return B.isInstance(e,Ot.$type)}var At={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`};function jt(e){return B.isInstance(e,At.$type)}var Mt={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},Nt={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function Pt(e){return B.isInstance(e,Nt.$type)}var Ft={$type:`Negation`,value:`value`};function It(e){return B.isInstance(e,Ft.$type)}var Lt={$type:`NumberLiteral`,value:`value`},Rt={$type:`Parameter`,name:`name`},zt={$type:`ParameterReference`,parameter:`parameter`};function Bt(e){return B.isInstance(e,zt.$type)}var Vt={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`};function Ht(e){return B.isInstance(e,Vt.$type)}var Ut={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},Wt={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`};function Gt(e){return B.isInstance(e,Wt.$type)}var Kt={$type:`ReturnType`,name:`name`};function qt(e){return B.isInstance(e,Kt.$type)}var Jt={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`};function Yt(e){return B.isInstance(e,Jt.$type)}var Xt={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`};function Zt(e){return B.isInstance(e,Xt.$type)}var Qt={$type:`StringLiteral`,value:`value`},$t={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function en(e){return B.isInstance(e,$t.$type)}var tn={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},nn={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`};function rn(e){return B.isInstance(e,nn.$type)}var an={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`};function on(e){return B.isInstance(e,an.$type)}var sn={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`};function cn(e){return B.isInstance(e,sn.$type)}var ln={$type:`Type`,name:`name`,type:`type`};function un(e){return B.isInstance(e,ln.$type)}var dn={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},fn={$type:`TypeDefinition`},pn={$type:`UnionType`,types:`types`},mn={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`};function hn(e){return B.isInstance(e,mn.$type)}var gn={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`};function _n(e){return B.isInstance(e,gn.$type)}var vn={$type:`ValueLiteral`},yn={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`};function bn(e){return B.isInstance(e,yn.$type)}var xn=class extends Se{constructor(){super(...arguments),this.types={AbstractElement:{name:Ge.$type,properties:{cardinality:{name:Ge.cardinality}},superTypes:[]},AbstractParserRule:{name:qe.$type,properties:{},superTypes:[Ye.$type,Xe.$type]},AbstractRule:{name:Ye.$type,properties:{},superTypes:[]},AbstractType:{name:Xe.$type,properties:{},superTypes:[]},Action:{name:Ze.$type,properties:{cardinality:{name:Ze.cardinality},feature:{name:Ze.feature},inferredType:{name:Ze.inferredType},operator:{name:Ze.operator},type:{name:Ze.type,referenceType:Xe.$type}},superTypes:[Ge.$type]},Alternatives:{name:$e.$type,properties:{cardinality:{name:$e.cardinality},elements:{name:$e.elements,defaultValue:[]}},superTypes:[Ge.$type]},ArrayLiteral:{name:tt.$type,properties:{elements:{name:tt.elements,defaultValue:[]}},superTypes:[vn.$type]},ArrayType:{name:nt.$type,properties:{elementType:{name:nt.elementType}},superTypes:[fn.$type]},Assignment:{name:rt.$type,properties:{cardinality:{name:rt.cardinality},feature:{name:rt.feature},operator:{name:rt.operator},predicate:{name:rt.predicate},terminal:{name:rt.terminal}},superTypes:[Ge.$type]},BooleanLiteral:{name:at.$type,properties:{true:{name:at.true,defaultValue:!1}},superTypes:[lt.$type,vn.$type]},CharacterRange:{name:st.$type,properties:{cardinality:{name:st.cardinality},left:{name:st.left},lookahead:{name:st.lookahead},parenthesized:{name:st.parenthesized,defaultValue:!1},right:{name:st.right}},superTypes:[tn.$type]},Condition:{name:lt.$type,properties:{},superTypes:[]},Conjunction:{name:ut.$type,properties:{left:{name:ut.left},right:{name:ut.right}},superTypes:[lt.$type]},CrossReference:{name:ft.$type,properties:{cardinality:{name:ft.cardinality},deprecatedSyntax:{name:ft.deprecatedSyntax,defaultValue:!1},isMulti:{name:ft.isMulti,defaultValue:!1},terminal:{name:ft.terminal},type:{name:ft.type,referenceType:Xe.$type}},superTypes:[Ge.$type]},Disjunction:{name:mt.$type,properties:{left:{name:mt.left},right:{name:mt.right}},superTypes:[lt.$type]},EndOfFile:{name:gt.$type,properties:{cardinality:{name:gt.cardinality}},superTypes:[Ge.$type]},Grammar:{name:vt.$type,properties:{imports:{name:vt.imports,defaultValue:[]},interfaces:{name:vt.interfaces,defaultValue:[]},isDeclared:{name:vt.isDeclared,defaultValue:!1},name:{name:vt.name},rules:{name:vt.rules,defaultValue:[]},types:{name:vt.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:yt.$type,properties:{path:{name:yt.path}},superTypes:[]},Group:{name:bt.$type,properties:{cardinality:{name:bt.cardinality},elements:{name:bt.elements,defaultValue:[]},guardCondition:{name:bt.guardCondition},predicate:{name:bt.predicate}},superTypes:[Ge.$type]},InferredType:{name:St.$type,properties:{name:{name:St.name}},superTypes:[Xe.$type]},InfixRule:{name:wt.$type,properties:{call:{name:wt.call},dataType:{name:wt.dataType},inferredType:{name:wt.inferredType},name:{name:wt.name},operators:{name:wt.operators},parameters:{name:wt.parameters,defaultValue:[]},returnType:{name:wt.returnType,referenceType:Xe.$type}},superTypes:[qe.$type]},InfixRuleOperatorList:{name:Et.$type,properties:{associativity:{name:Et.associativity},operators:{name:Et.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:Dt.$type,properties:{precedences:{name:Dt.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Ot.$type,properties:{attributes:{name:Ot.attributes,defaultValue:[]},name:{name:Ot.name},superTypes:{name:Ot.superTypes,defaultValue:[],referenceType:Xe.$type}},superTypes:[Xe.$type]},Keyword:{name:At.$type,properties:{cardinality:{name:At.cardinality},predicate:{name:At.predicate},value:{name:At.value}},superTypes:[Ge.$type]},NamedArgument:{name:Mt.$type,properties:{calledByName:{name:Mt.calledByName,defaultValue:!1},parameter:{name:Mt.parameter,referenceType:Rt.$type},value:{name:Mt.value}},superTypes:[]},NegatedToken:{name:Nt.$type,properties:{cardinality:{name:Nt.cardinality},lookahead:{name:Nt.lookahead},parenthesized:{name:Nt.parenthesized,defaultValue:!1},terminal:{name:Nt.terminal}},superTypes:[tn.$type]},Negation:{name:Ft.$type,properties:{value:{name:Ft.value}},superTypes:[lt.$type]},NumberLiteral:{name:Lt.$type,properties:{value:{name:Lt.value}},superTypes:[vn.$type]},Parameter:{name:Rt.$type,properties:{name:{name:Rt.name}},superTypes:[]},ParameterReference:{name:zt.$type,properties:{parameter:{name:zt.parameter,referenceType:Rt.$type}},superTypes:[lt.$type]},ParserRule:{name:Vt.$type,properties:{dataType:{name:Vt.dataType},definition:{name:Vt.definition},entry:{name:Vt.entry,defaultValue:!1},fragment:{name:Vt.fragment,defaultValue:!1},inferredType:{name:Vt.inferredType},name:{name:Vt.name},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:Xe.$type}},superTypes:[qe.$type]},ReferenceType:{name:Ut.$type,properties:{isMulti:{name:Ut.isMulti,defaultValue:!1},referenceType:{name:Ut.referenceType}},superTypes:[fn.$type]},RegexToken:{name:Wt.$type,properties:{cardinality:{name:Wt.cardinality},lookahead:{name:Wt.lookahead},parenthesized:{name:Wt.parenthesized,defaultValue:!1},regex:{name:Wt.regex}},superTypes:[tn.$type]},ReturnType:{name:Kt.$type,properties:{name:{name:Kt.name}},superTypes:[]},RuleCall:{name:Jt.$type,properties:{arguments:{name:Jt.arguments,defaultValue:[]},cardinality:{name:Jt.cardinality},predicate:{name:Jt.predicate},rule:{name:Jt.rule,referenceType:Ye.$type}},superTypes:[Ge.$type]},SimpleType:{name:Xt.$type,properties:{primitiveType:{name:Xt.primitiveType},stringType:{name:Xt.stringType},typeRef:{name:Xt.typeRef,referenceType:Xe.$type}},superTypes:[fn.$type]},StringLiteral:{name:Qt.$type,properties:{value:{name:Qt.value}},superTypes:[vn.$type]},TerminalAlternatives:{name:$t.$type,properties:{cardinality:{name:$t.cardinality},elements:{name:$t.elements,defaultValue:[]},lookahead:{name:$t.lookahead},parenthesized:{name:$t.parenthesized,defaultValue:!1}},superTypes:[tn.$type]},TerminalElement:{name:tn.$type,properties:{cardinality:{name:tn.cardinality},lookahead:{name:tn.lookahead},parenthesized:{name:tn.parenthesized,defaultValue:!1}},superTypes:[Ge.$type]},TerminalGroup:{name:nn.$type,properties:{cardinality:{name:nn.cardinality},elements:{name:nn.elements,defaultValue:[]},lookahead:{name:nn.lookahead},parenthesized:{name:nn.parenthesized,defaultValue:!1}},superTypes:[tn.$type]},TerminalRule:{name:an.$type,properties:{definition:{name:an.definition},fragment:{name:an.fragment,defaultValue:!1},hidden:{name:an.hidden,defaultValue:!1},name:{name:an.name},type:{name:an.type}},superTypes:[Ye.$type]},TerminalRuleCall:{name:sn.$type,properties:{cardinality:{name:sn.cardinality},lookahead:{name:sn.lookahead},parenthesized:{name:sn.parenthesized,defaultValue:!1},rule:{name:sn.rule,referenceType:an.$type}},superTypes:[tn.$type]},Type:{name:ln.$type,properties:{name:{name:ln.name},type:{name:ln.type}},superTypes:[Xe.$type]},TypeAttribute:{name:dn.$type,properties:{defaultValue:{name:dn.defaultValue},isOptional:{name:dn.isOptional,defaultValue:!1},name:{name:dn.name},type:{name:dn.type}},superTypes:[]},TypeDefinition:{name:fn.$type,properties:{},superTypes:[]},UnionType:{name:pn.$type,properties:{types:{name:pn.types,defaultValue:[]}},superTypes:[fn.$type]},UnorderedGroup:{name:mn.$type,properties:{cardinality:{name:mn.cardinality},elements:{name:mn.elements,defaultValue:[]}},superTypes:[Ge.$type]},UntilToken:{name:gn.$type,properties:{cardinality:{name:gn.cardinality},lookahead:{name:gn.lookahead},parenthesized:{name:gn.parenthesized,defaultValue:!1},terminal:{name:gn.terminal}},superTypes:[tn.$type]},ValueLiteral:{name:vn.$type,properties:{},superTypes:[]},Wildcard:{name:yn.$type,properties:{cardinality:{name:yn.cardinality},lookahead:{name:yn.lookahead},parenthesized:{name:yn.parenthesized,defaultValue:!1}},superTypes:[tn.$type]}}}},B=new xn;function Sn(e){return new je(e,e=>Ce(e)?e.content:[],{includeRoot:!0})}function Cn(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function wn(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function Tn(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var En;(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(En||={});function Dn(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return En.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return En.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?En.Inside:n?En.OverlapBack:r?En.OverlapFront:En.Outside}function On(e,t){return Dn(e,t)>En.After}var kn=/^[\w\p{L}]$/u;function An(e,t){if(e){let n=Mn(e,!0);if(n&&jn(n,t))return n;if(Te(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(jn(n,t))return n}}}}function jn(e,t){return we(e)&&t.includes(e.tokenType.name)}function Mn(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}var Nn=class extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Pn(e,t=`Error: Got unexpected value.`){throw Error(t)}function V(e){return e.charCodeAt(0)}function Fn(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function In(e,t){if(e[t]===!0)throw`duplicate flag `+t;e[t],e[t]=!0}function Ln(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function Rn(){throw Error(`Internal Error - Should never get here!`)}function zn(e){return e.type===`Character`}var Bn=[];for(let e=V(`0`);e<=V(`9`);e++)Bn.push(e);var Vn=[V(`_`)].concat(Bn);for(let e=V(`a`);e<=V(`z`);e++)Vn.push(e);for(let e=V(`A`);e<=V(`Z`);e++)Vn.push(e);var Hn=[V(` `),V(`\f`),V(`
|
|
2
2
|
`),V(`\r`),V(` `),V(`\v`),V(` `),V(`\xA0`),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(` `),V(`\u2028`),V(`\u2029`),V(` `),V(` `),V(` `),V(``)],Un=/[0-9a-fA-F]/,Wn=/[0-9]/,Gn=/[1-9]/,Kn=class{constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:In(n,`global`);break;case`i`:In(n,`ignoreCase`);break;case`m`:In(n,`multiLine`);break;case`u`:In(n,`unicode`);break;case`y`:In(n,`sticky`);break}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}break}Ln(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return Rn()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`);break}if(e===!0&&t===void 0)return;Ln(t);break}if(!(e===!0&&t===void 0)&&Ln(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group();break}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Ln(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):Rn()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[V(`
|
|
3
3
|
`),V(`\r`),V(`\u2028`),V(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=Bn;break;case`D`:e=Bn,t=!0;break;case`s`:e=Hn;break;case`S`:e=Hn,t=!0;break;case`w`:e=Vn;break;case`W`:e=Vn,t=!0;break}return Ln(e)?{type:`Set`,value:e,complement:t}:Rn()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=V(`\f`);break;case`n`:e=V(`
|
|
4
4
|
`);break;case`r`:e=V(`\r`);break;case`t`:e=V(` `);break;case`v`:e=V(`\v`);break}return Ln(e)?{type:`Character`,value:e}:Rn()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:V(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:V(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e}from"./chunk-GEFDOKGD-
|
|
1
|
+
import{f as e}from"./chunk-GEFDOKGD-_UEQ_Hqk.js";import{h as t}from"./src-BYKCXnff.js";import{b as n,d as r}from"./chunk-7R4GIKGN-Y5Bg-bKJ.js";var i=t(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function a(i,a){let o=i.getElementsByTagName(`img`);if(!o||o.length===0)return;let s=a.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...o].map(i=>new Promise(a=>{function o(){if(i.style.display=`flex`,i.style.flexDirection=`column`,s){let[t=r.fontSize]=e(n().fontSize?n().fontSize:window.getComputedStyle(document.body).fontSize),a=t*5+`px`;i.style.minWidth=a,i.style.maxWidth=a}else i.style.width=`100%`;a(i)}t(o,`setupImage`),setTimeout(()=>{i.complete&&o()}),i.addEventListener(`error`,o),i.addEventListener(`load`,o)})))}t(a,`configureLabelImages`);export{i as n,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-GEFDOKGD-_UEQ_Hqk.js";import{h as e}from"./src-BYKCXnff.js";import"./chunk-7R4GIKGN-Y5Bg-bKJ.js";import"./dist-CBQJF0q0.js";import"./chunk-PU5JKC2W-CCXYoac7.js";import"./chunk-FMBD7UC4-BrH-Lnio.js";import"./chunk-MX3YWQON-OOf6bZzK.js";import"./chunk-YBOYWFTD-DGKGjR6H.js";import"./chunk-JSJVCQXG-LNOdgWAh.js";import"./chunk-55IACEB6-NTU3iwXh.js";import"./chunk-KX2RTZJC-AniEyPkm.js";import"./chunk-PQ6SQG4A-DZGwvbzy.js";import"./chunk-KYZI473N-drU3HQZZ.js";import"./chunk-O4XLMI2P-BBFcNFB_.js";import"./chunk-GLR3WWYH-BWjkRp6S.js";import{i as t,n,r,t as i}from"./chunk-WL4C6EOR-BkioZxSz.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-GEFDOKGD-_UEQ_Hqk.js";import{h as e}from"./src-BYKCXnff.js";import"./chunk-7R4GIKGN-Y5Bg-bKJ.js";import"./dist-CBQJF0q0.js";import"./chunk-PU5JKC2W-CCXYoac7.js";import"./chunk-FMBD7UC4-BrH-Lnio.js";import"./chunk-MX3YWQON-OOf6bZzK.js";import"./chunk-YBOYWFTD-DGKGjR6H.js";import"./chunk-JSJVCQXG-LNOdgWAh.js";import"./chunk-55IACEB6-NTU3iwXh.js";import"./chunk-KX2RTZJC-AniEyPkm.js";import"./chunk-PQ6SQG4A-DZGwvbzy.js";import"./chunk-KYZI473N-drU3HQZZ.js";import"./chunk-O4XLMI2P-BBFcNFB_.js";import"./chunk-GLR3WWYH-BWjkRp6S.js";import{i as t,n,r,t as i}from"./chunk-WL4C6EOR-BkioZxSz.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as e}from"./_baseUniq-PMQMCyd4.js";var t=4;function n(n){return e(n,t)}export{n as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/csv-preview-CgHOY6hR.js","assets/chunk-CFjPhJqf.js","assets/lib-Dmwceoh0.js","assets/react-nm2Ru1Pt.js","assets/jsx-runtime-BRW_vwa9.js","assets/arrow-up--LjUXLEt.js","assets/react-dom-Bpkvzu3U.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{t}from"./react-nm2Ru1Pt.js";import"./react-dom-Bpkvzu3U.js";import{n,t as r}from"./jsx-runtime-BRW_vwa9.js";import{t as i}from"./chevron-right-DeV0ehiG.js";import{n as a,t as o}from"./markdown-renderer-ljVdhEEq.js";import{o as s,t as c}from"./tab-store-Ck-9RsH-.js";import{t as l}from"./table-C7X5UAEI.js";import{i as u,n as d,t as ee}from"./use-monaco-theme-BHp8EuUZ.js";import{t as f}from"./preload-helper-uTix4PVD.js";import"./dist-lF8CoYII.js";import{t as p}from"./utils-BcFEFg4m.js";import{i as m,r as h,t as g}from"./api-client-DniUYaIY.js";import{$ as _,D as v,E as y,F as b,Q as x,Y as S,c as C,d as w,et as T,f as E,it as D,l as O,m as k,nt as A,p as j,rt as M,tt as N,u as P}from"./index-hxAJJHpg.js";import"./chunk-GEFDOKGD-_UEQ_Hqk.js";import"./src-BYKCXnff.js";import"./chunk-7R4GIKGN-Y5Bg-bKJ.js";import"./chunk-HHEYEP7N-DhIRtWNx.js";import"./dist-CBQJF0q0.js";import"./chunk-PU5JKC2W-CCXYoac7.js";import"./chunk-MX3YWQON-OOf6bZzK.js";import"./chunk-YBOYWFTD-DGKGjR6H.js";import"./chunk-PQ6SQG4A-DZGwvbzy.js";import"./chunk-KYZI473N-drU3HQZZ.js";import"./chunk-O4XLMI2P-BBFcNFB_.js";import"./chunk-GLR3WWYH-BWjkRp6S.js";import"./chunk-XPW4576I-no3g3yPs.js";var F=n(`file-exclamation-point`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),I=e(t(),1),L=r(),R={ts:A,tsx:A,js:A,jsx:A,py:A,rs:A,go:A,html:A,css:A,scss:A,json:M,md:N,txt:N,yaml:T,yml:T};function z(e,t){return t?x:R[e.split(`.`).pop()?.toLowerCase()??``]??_}function B(e,t){let n=[],r=e;for(let e=0;e<t.length;e++){let i=t[e],a=t.slice(0,e+1).join(`/`),o=r.find(e=>e.name===i);if(n.push({name:i,fullPath:a,node:o??null,siblings:r}),o?.children)r=o.children;else{for(let r=e+1;r<t.length;r++)n.push({name:t[r],fullPath:t.slice(0,r+1).join(`/`),node:null,siblings:[]});break}}return n}function V(e){return[...e].sort((e,t)=>e.type===t.type?e.name.localeCompare(t.name):e.type===`directory`?-1:1)}function H({filePath:e,projectName:t,tabId:n,className:r}){let a=v(e=>e.tree),{updateTab:o,openTab:s}=c(),l=(0,I.useRef)(null),u=(0,I.useMemo)(()=>B(a,e.split(`/`).filter(Boolean)),[a,e]);(0,I.useEffect)(()=>{l.current&&(l.current.scrollLeft=l.current.scrollWidth)},[u]);function d(e,r){let i=p(e);r.metaKey||r.ctrlKey?s({type:`editor`,title:i,metadata:{filePath:e,projectName:t},projectId:t,closable:!0}):o(n,{title:i,metadata:{filePath:e,projectName:t}})}return(0,L.jsx)(`div`,{ref:l,className:r,children:u.map((e,n)=>(0,L.jsxs)(`div`,{className:`flex items-center shrink-0`,children:[n>0&&(0,L.jsx)(i,{className:`size-3 text-muted-foreground shrink-0 mx-0.5`}),e.siblings.length>0?(0,L.jsx)(U,{segment:e,isLast:n===u.length-1,projectName:t,onFileClick:d}):(0,L.jsx)(`span`,{className:`text-xs text-muted-foreground px-1 py-0.5`,children:e.name})]},e.fullPath))})}function U({segment:e,isLast:t,projectName:n,onFileClick:r}){let i=(0,I.useMemo)(()=>V(e.siblings),[e.siblings]);return(0,L.jsxs)(C,{children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(`button`,{type:`button`,className:`text-xs px-1 py-0.5 rounded hover:bg-muted transition-colors truncate max-w-[120px] ${t?`text-foreground font-medium`:`text-muted-foreground`}`,children:e.name})}),(0,L.jsx)(O,{align:`start`,className:`max-h-[300px] overflow-hidden p-0`,children:(0,L.jsx)(y,{className:`max-h-[300px]`,children:(0,L.jsx)(`div`,{className:`p-1`,children:i.map(t=>(0,L.jsx)(W,{node:t,projectName:n,activePath:e.fullPath,onFileClick:r},t.path))})})})]})}function W({node:e,projectName:t,activePath:n,onFileClick:r}){let i=z(e.name,e.type===`directory`),a=e.path===n;return e.type===`directory`&&e.children&&e.children.length>0?(0,L.jsxs)(w,{children:[(0,L.jsxs)(j,{className:`text-xs gap-1.5 ${a?`bg-muted`:``}`,children:[(0,L.jsx)(i,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,L.jsx)(`span`,{className:`truncate`,children:e.name})]}),(0,L.jsx)(E,{className:`max-h-[300px] overflow-hidden p-0`,children:(0,L.jsx)(y,{className:`max-h-[300px]`,children:(0,L.jsx)(`div`,{className:`p-1`,children:V(e.children).map(e=>(0,L.jsx)(W,{node:e,projectName:t,activePath:n,onFileClick:r},e.path))})})})]}):(0,L.jsxs)(P,{className:`text-xs gap-1.5 cursor-pointer ${a?`bg-muted`:``}`,onSelect:e=>{},onClick:t=>{e.type!==`directory`&&r(e.path,t)},children:[(0,L.jsx)(i,{className:`size-3.5 shrink-0 text-muted-foreground`}),(0,L.jsx)(`span`,{className:`truncate`,children:e.name})]})}function G({active:e,onClick:t,icon:n,label:r}){return(0,L.jsxs)(`button`,{type:`button`,onClick:t,className:`flex items-center gap-1 px-2 py-1 rounded text-xs transition-colors ${e?`bg-muted text-foreground`:`text-muted-foreground hover:text-foreground`}`,children:[(0,L.jsx)(n,{className:`size-3`}),(0,L.jsx)(`span`,{className:`hidden sm:inline`,children:r})]})}function K({ext:e,mdMode:t,onMdModeChange:n,csvMode:r,onCsvModeChange:i,wordWrap:o,onToggleWordWrap:s,className:c}){return(0,L.jsxs)(`div`,{className:c,children:[(e===`md`||e===`mdx`)&&n&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(G,{active:t===`edit`,onClick:()=>n(`edit`),icon:a,label:`Edit`}),(0,L.jsx)(G,{active:t===`preview`,onClick:()=>n(`preview`),icon:D,label:`Preview`})]}),e===`csv`&&i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(G,{active:r===`table`,onClick:()=>i(`table`),icon:l,label:`Table`}),(0,L.jsx)(G,{active:r===`raw`,onClick:()=>i(`raw`),icon:a,label:`Raw`})]}),(0,L.jsx)(G,{active:o,onClick:s,icon:u,label:`Wrap`})]})}var q=(0,I.lazy)(()=>f(()=>import(`./csv-preview-CgHOY6hR.js`).then(e=>({default:e.CsvPreview})),__vite__mapDeps([0,1,2,3,4,5,6]))),J=new Set([`png`,`jpg`,`jpeg`,`gif`,`webp`,`svg`,`ico`]),Y=new Set([`db`,`sqlite`,`sqlite3`]);function X(e){return e.split(`.`).pop()?.toLowerCase()??``}function Z(e){return{js:`javascript`,jsx:`javascript`,ts:`typescript`,tsx:`typescript`,py:`python`,html:`html`,css:`css`,scss:`scss`,json:`json`,md:`markdown`,mdx:`markdown`,yaml:`yaml`,yml:`yaml`,sh:`shell`,bash:`shell`}[X(e)]??`plaintext`}function Q({metadata:e,tabId:t}){let n=e?.filePath,r=e?.projectName,[i,a]=(0,I.useState)(null),[o,s]=(0,I.useState)(`utf-8`),[l,u]=(0,I.useState)(!0),[f,h]=(0,I.useState)(null),[_,v]=(0,I.useState)(!1),y=(0,I.useRef)(null),x=(0,I.useRef)(``),C=(0,I.useRef)(null),{tabs:w,updateTab:T}=c(),{wordWrap:E,toggleWordWrap:D}=b(),O=ee(),k=w.find(e=>e.id===t),A=n?X(n):``,j=J.has(A),M=A===`pdf`,N=Y.has(A),P=A===`md`||A===`mdx`,R=A===`csv`,[z,B]=(0,I.useState)(`preview`),[V,U]=(0,I.useState)(`table`);(0,I.useEffect)(()=>{N&&t&&T(t,{type:`sqlite`})},[N,t,T]);let W=n?/^(\/|[A-Za-z]:[/\\])/.test(n):!1;(0,I.useEffect)(()=>{if(!n||!W&&!r)return;if(j||M){u(!1);return}u(!0),h(null);let e=W?`/api/fs/read?path=${encodeURIComponent(n)}`:`${m(r)}/files/read?path=${encodeURIComponent(n)}`;return g.get(e).then(e=>{a(e.content),e.encoding&&s(e.encoding),x.current=e.content,u(!1)}).catch(e=>{h(e instanceof Error?e.message:`Failed to load file`),u(!1)}),()=>{y.current&&clearTimeout(y.current)}},[n,r,j,M,W]),(0,I.useEffect)(()=>{if(!k)return;let e=n?p(n):`Untitled`,t=_?`${e} \u25CF`:e;k.title!==t&&T(k.id,{title:t})},[_]);let G=(0,I.useCallback)(async e=>{if(n&&!(!W&&!r))try{W?await g.put(`/api/fs/write`,{path:n,content:e}):await g.put(`${m(r)}/files/write`,{path:n,content:e}),v(!1)}catch{}},[n,r,W]);function Q(e){let t=e??``;a(t),x.current=t,v(!0),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>G(x.current),1e3)}let $=e?.lineNumber,ie=(0,I.useCallback)((e,t)=>{C.current=e,$&&$>0&&setTimeout(()=>{e.revealLineInCenter($),e.setPosition({lineNumber:$,column:1}),e.focus()},100),e.addCommand(t.KeyMod.Alt|t.KeyCode.KeyZ,()=>b.getState().toggleWordWrap()),t.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0}),t.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0,noSuggestionDiagnostics:!0})},[]);return!n||!W&&!r?(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full text-text-secondary text-sm`,children:`No file selected.`}):l?(0,L.jsxs)(`div`,{className:`flex items-center justify-center h-full gap-2 text-text-secondary`,children:[(0,L.jsx)(S,{className:`size-5 animate-spin`}),(0,L.jsx)(`span`,{className:`text-sm`,children:`Loading file...`})]}):f?(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full text-error text-sm`,children:f}):j?(0,L.jsx)(ne,{filePath:n,projectName:r}):M?(0,L.jsx)(re,{filePath:n,projectName:r}):o===`base64`?(0,L.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-3 text-text-secondary`,children:[(0,L.jsx)(F,{className:`size-10 text-text-subtle`}),(0,L.jsx)(`p`,{className:`text-sm`,children:`This file is a binary format and cannot be displayed.`}),(0,L.jsx)(`p`,{className:`text-xs text-text-subtle`,children:n})]}):(0,L.jsxs)(`div`,{className:`flex flex-col h-full w-full overflow-hidden`,children:[n&&r&&t&&(0,L.jsxs)(`div`,{className:`hidden md:flex items-center h-7 border-b border-border bg-background shrink-0`,children:[(0,L.jsx)(H,{filePath:n,projectName:r,tabId:t,className:`flex items-center flex-1 min-w-0 overflow-x-auto scrollbar-none px-2 gap-0.5`}),(0,L.jsx)(K,{ext:A,mdMode:z,onMdModeChange:B,csvMode:V,onCsvModeChange:U,wordWrap:E,onToggleWordWrap:D,className:`shrink-0 flex items-center gap-1 px-2`})]}),R&&V===`table`?(0,L.jsx)(I.Suspense,{fallback:(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,L.jsx)(S,{className:`size-5 animate-spin text-text-subtle`})}),children:(0,L.jsx)(q,{content:i??``,onContentChange:Q})}):P&&z===`preview`?(0,L.jsx)(te,{content:i??``}):(0,L.jsx)(`div`,{className:`flex-1 overflow-hidden`,children:(0,L.jsx)(d,{height:`100%`,language:Z(n),value:i??``,onChange:Q,onMount:ie,theme:O,options:{fontSize:13,fontFamily:`Menlo, Monaco, Consolas, monospace`,wordWrap:E?`on`:`off`,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbers:`on`,folding:!0,bracketPairColorization:{enabled:!0}},loading:(0,L.jsx)(S,{className:`size-5 animate-spin text-text-subtle`})})})]})}function te({content:e}){return(0,L.jsx)(o,{content:e,className:`flex-1 overflow-auto p-4`})}function ne({filePath:e,projectName:t}){let[n,r]=(0,I.useState)(null),[i,a]=(0,I.useState)(!1);return(0,I.useEffect)(()=>{let n,i=`${m(t)}/files/raw?path=${encodeURIComponent(e)}`,o=h();return fetch(i,{headers:o?{Authorization:`Bearer ${o}`}:{}}).then(e=>{if(!e.ok)throw Error(`Failed`);return e.blob()}).then(e=>{let t=URL.createObjectURL(e);n=t,r(t)}).catch(()=>a(!0)),()=>{n&&URL.revokeObjectURL(n)}},[e,t]),i?(0,L.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-3 text-text-secondary`,children:[(0,L.jsx)(F,{className:`size-10 text-text-subtle`}),(0,L.jsx)(`p`,{className:`text-sm`,children:`Failed to load image.`})]}):n?(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full p-4 bg-surface overflow-auto`,children:(0,L.jsx)(`img`,{src:n,alt:e,className:`max-w-full max-h-full object-contain`})}):(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,L.jsx)(S,{className:`size-5 animate-spin text-text-subtle`})})}function re({filePath:e,projectName:t}){let[n,r]=(0,I.useState)(null),[i,a]=(0,I.useState)(!1);(0,I.useEffect)(()=>{let n,i=`${m(t)}/files/raw?path=${encodeURIComponent(e)}`,o=h();return fetch(i,{headers:o?{Authorization:`Bearer ${o}`}:{}}).then(e=>{if(!e.ok)throw Error(`Failed`);return e.blob()}).then(e=>{let t=URL.createObjectURL(new Blob([e],{type:`application/pdf`}));n=t,r(t)}).catch(()=>a(!0)),()=>{n&&URL.revokeObjectURL(n)}},[e,t]);let o=(0,I.useCallback)(()=>{n&&window.open(n,`_blank`)},[n]);return i?(0,L.jsxs)(`div`,{className:`flex flex-col items-center justify-center h-full gap-3 text-text-secondary`,children:[(0,L.jsx)(F,{className:`size-10 text-text-subtle`}),(0,L.jsx)(`p`,{className:`text-sm`,children:`Failed to load PDF.`})]}):n?(0,L.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,L.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-1.5 border-b border-border bg-background shrink-0`,children:[(0,L.jsx)(`span`,{className:`text-xs text-text-secondary truncate`,children:e}),(0,L.jsxs)(`button`,{onClick:o,className:`flex items-center gap-1 text-xs text-text-secondary hover:text-text-primary transition-colors`,children:[(0,L.jsx)(s,{className:`size-3`}),` Open in new tab`]})]}),(0,L.jsx)(`iframe`,{src:n,title:e,className:`flex-1 w-full border-none`})]}):(0,L.jsx)(`div`,{className:`flex items-center justify-center h-full`,children:(0,L.jsx)(S,{className:`size-5 animate-spin text-text-subtle`})})}export{Q as CodeEditor};
|