@waniwani/sdk 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/angular-html-GK625GFM.js +2 -0
  2. package/dist/{angular-ts-UPMUIYI3.js → angular-ts-BBPQXDS2.js} +2 -2
  3. package/dist/{angular-ts-A7ZNTSV6.js → angular-ts-DFS2FCNO.js} +2 -2
  4. package/dist/{apl-QBN4KIYA.js → apl-FBR445XW.js} +2 -2
  5. package/dist/{apl-ZTMAKUPW.js → apl-JGB4KP74.js} +2 -2
  6. package/dist/{astro-OQUOYMBE.js → astro-BMSTTQT4.js} +2 -2
  7. package/dist/{astro-ZC25ZSBI.js → astro-K7JGTCPV.js} +2 -2
  8. package/dist/{blade-QBDEYXMB.js → blade-OHP5YUT7.js} +2 -2
  9. package/dist/{blade-BVUO2H7O.js → blade-RWJJQSLU.js} +2 -2
  10. package/dist/chat/embed.js +74 -72
  11. package/dist/chat/embed.js.map +1 -1
  12. package/dist/chat/express-js/index.d.ts +25 -1
  13. package/dist/chat/index.d.ts +20 -12
  14. package/dist/chat/index.js +10 -8
  15. package/dist/chat/index.js.map +1 -1
  16. package/dist/chat/next-js/index.d.ts +25 -1
  17. package/dist/chat/styles.css +1 -1
  18. package/dist/{chunk-7PHUBJVC.js → chunk-AI3BZXLG.js} +2 -2
  19. package/dist/{chunk-5JBHQYU5.js → chunk-F4UUXA3U.js} +3 -3
  20. package/dist/{chunk-2RS4JWNJ.js → chunk-HFFYDWFN.js} +2 -2
  21. package/dist/{chunk-AGWJ4LUC.js → chunk-HWHRZFFJ.js} +2 -2
  22. package/dist/{chunk-BFEOSXSG.js → chunk-IPSY5OIT.js} +2 -2
  23. package/dist/{chunk-BKIIYGWO.js → chunk-OHRY6PPX.js} +2 -2
  24. package/dist/{chunk-BNESB5SU.js → chunk-ORTYTFGK.js} +2 -2
  25. package/dist/{chunk-TV2UKRXD.js → chunk-REK5PMSH.js} +2 -2
  26. package/dist/{chunk-KMHU4XIM.js → chunk-SREBMPDB.js} +2 -2
  27. package/dist/{chunk-4OK4GCCR.js → chunk-VDGF5EL2.js} +2 -2
  28. package/dist/{chunk-VNX5AK2O.js → chunk-VNL3EXC2.js} +2 -2
  29. package/dist/{chunk-V6FKURGI.js → chunk-W4SPRY5O.js} +2 -2
  30. package/dist/{chunk-4WLKD7DL.js → chunk-YP6YTC7R.js} +3 -3
  31. package/dist/{cobol-6DNJTKH3.js → cobol-LJNKRWP5.js} +2 -2
  32. package/dist/{cobol-SKJIT3WM.js → cobol-ZFZ6ZP6X.js} +2 -2
  33. package/dist/{code-block-37QAKDTI-IIYKFI5S.js → code-block-37QAKDTI-HV355RRX.js} +2 -2
  34. package/dist/{code-block-37QAKDTI-IJYLCU3C.js → code-block-37QAKDTI-Y3BUEJRG.js} +2 -2
  35. package/dist/cpp-HLYUQ6RF.js +2 -0
  36. package/dist/{crystal-YFCJLEES.js → crystal-UPNOBGN4.js} +2 -2
  37. package/dist/{edge-3LWPZYS7.js → edge-XE5XFLFP.js} +2 -2
  38. package/dist/{elixir-3H7W7YJZ.js → elixir-EXRA4QJX.js} +2 -2
  39. package/dist/{erb-HGSLHT5Y.js → erb-KUYJX32Q.js} +2 -2
  40. package/dist/{erb-AXCKAI43.js → erb-LRUOJBTB.js} +2 -2
  41. package/dist/{glimmer-js-ZXI6Y36F.js → glimmer-js-JA25I4AE.js} +2 -2
  42. package/dist/{glimmer-ts-BJKMFBLF.js → glimmer-ts-CKELYRRF.js} +2 -2
  43. package/dist/graphql-NLMAEKLI.js +3 -0
  44. package/dist/graphql-UN5O7U5U.js +2 -0
  45. package/dist/{hack-KV5GHBVV.js → hack-QIUJFE3G.js} +2 -2
  46. package/dist/haml-JQIESO7E.js +2 -0
  47. package/dist/{handlebars-U44VLSEQ.js → handlebars-UBV5AWUH.js} +2 -2
  48. package/dist/html-AWDHWPK7.js +2 -0
  49. package/dist/html-derivative-QY3ZIV7G.js +2 -0
  50. package/dist/{http-NEPTRAQZ.js → http-7ZVVH3VM.js} +2 -2
  51. package/dist/{http-JSPDAWSO.js → http-KIGXJYY6.js} +2 -2
  52. package/dist/{hurl-V6ZX2Q3F.js → hurl-B6WXEN45.js} +2 -2
  53. package/dist/{hurl-OT2SM4S7.js → hurl-BZB5LDD5.js} +2 -2
  54. package/dist/index.d.ts +25 -1
  55. package/dist/{jinja-CCI3FGLW.js → jinja-AEVQQKWS.js} +2 -2
  56. package/dist/{julia-BWWONBRS.js → julia-75QR2XDN.js} +2 -2
  57. package/dist/{julia-QPZ7EOS6.js → julia-CPV3A4MM.js} +2 -2
  58. package/dist/legacy/chat/express-js/index.d.ts +25 -1
  59. package/dist/legacy/chat/next-js/index.d.ts +25 -1
  60. package/dist/legacy/index.d.ts +38 -13
  61. package/dist/legacy/index.js +16 -14
  62. package/dist/legacy/index.js.map +1 -1
  63. package/dist/{liquid-OSRU4KOW.js → liquid-S4LVU77Y.js} +2 -2
  64. package/dist/mcp/index.d.ts +25 -1
  65. package/dist/{mdc-PDOFYVVO.js → mdc-NDTDGSIG.js} +2 -2
  66. package/dist/{mdc-TEVTGSC7.js → mdc-XWCHWP6B.js} +2 -2
  67. package/dist/mermaid-4DMBBIKO-DV4JRUY5.js +2 -0
  68. package/dist/mermaid-4DMBBIKO-IGH2CKFF.js +3 -0
  69. package/dist/{nim-JPSYX5KC.js → nim-U57UBFBS.js} +2 -2
  70. package/dist/{nim-WGQAUAVA.js → nim-Z6EEJ7SX.js} +2 -2
  71. package/dist/{perl-Y3ALUOFJ.js → perl-5IQEFQG3.js} +2 -2
  72. package/dist/{perl-X4IFZB22.js → perl-IZHDGBO6.js} +2 -2
  73. package/dist/php-MNP62HWP.js +3 -0
  74. package/dist/php-UQGWKJAF.js +2 -0
  75. package/dist/{pug-7XNGVJEC.js → pug-XHTBJJNO.js} +2 -2
  76. package/dist/{razor-C2NV2YNT.js → razor-UMC4HKIF.js} +2 -2
  77. package/dist/{rst-WIWCR2KQ.js → rst-6KQSGP2V.js} +2 -2
  78. package/dist/{rst-W5S2XFF7.js → rst-HCGHBPBZ.js} +2 -2
  79. package/dist/ruby-ML25RVXY.js +2 -0
  80. package/dist/ruby-OWE2HOOR.js +3 -0
  81. package/dist/{soy-G2LDZSDN.js → soy-ALTWCQTO.js} +2 -2
  82. package/dist/{svelte-EYZDXUS2.js → svelte-6TT7H4YP.js} +2 -2
  83. package/dist/{templ-KXQ2KV7D.js → templ-WN3SJLUV.js} +2 -2
  84. package/dist/{ts-tags-TCQ23O6Y.js → ts-tags-NAJDOQCO.js} +2 -2
  85. package/dist/{ts-tags-7WGDLEKX.js → ts-tags-XNK5N5RZ.js} +2 -2
  86. package/dist/{twig-JAL4753Y.js → twig-GIY7NVAA.js} +2 -2
  87. package/dist/{twig-C6YWFFZU.js → twig-OEIJ72KK.js} +2 -2
  88. package/dist/{vue-O6SLORWU.js → vue-FIH2DYBE.js} +2 -2
  89. package/dist/{vue-D6SXQNWM.js → vue-V6GLJNYA.js} +2 -2
  90. package/dist/{vue-vine-T6MFB2MU.js → vue-vine-KB45C76H.js} +2 -2
  91. package/package.json +1 -1
  92. package/dist/angular-html-VZSV3CDH.js +0 -2
  93. package/dist/cpp-4EW5XLOK.js +0 -2
  94. package/dist/graphql-KHEFECOG.js +0 -2
  95. package/dist/graphql-YEJQLMOO.js +0 -3
  96. package/dist/haml-6R7X7F2Q.js +0 -2
  97. package/dist/html-MYZBE4UD.js +0 -2
  98. package/dist/html-derivative-OWRPAN3G.js +0 -2
  99. package/dist/mermaid-4DMBBIKO-7EL5WRQI.js +0 -2
  100. package/dist/mermaid-4DMBBIKO-PAA57QRQ.js +0 -3
  101. package/dist/php-3V7EPUAN.js +0 -3
  102. package/dist/php-QERWOQJG.js +0 -2
  103. package/dist/ruby-EYYAUQUG.js +0 -2
  104. package/dist/ruby-LXZJUMFB.js +0 -3
  105. /package/dist/{angular-html-VZSV3CDH.js.map → angular-html-GK625GFM.js.map} +0 -0
  106. /package/dist/{angular-ts-UPMUIYI3.js.map → angular-ts-BBPQXDS2.js.map} +0 -0
  107. /package/dist/{angular-ts-A7ZNTSV6.js.map → angular-ts-DFS2FCNO.js.map} +0 -0
  108. /package/dist/{apl-QBN4KIYA.js.map → apl-FBR445XW.js.map} +0 -0
  109. /package/dist/{apl-ZTMAKUPW.js.map → apl-JGB4KP74.js.map} +0 -0
  110. /package/dist/{astro-OQUOYMBE.js.map → astro-BMSTTQT4.js.map} +0 -0
  111. /package/dist/{astro-ZC25ZSBI.js.map → astro-K7JGTCPV.js.map} +0 -0
  112. /package/dist/{blade-QBDEYXMB.js.map → blade-OHP5YUT7.js.map} +0 -0
  113. /package/dist/{blade-BVUO2H7O.js.map → blade-RWJJQSLU.js.map} +0 -0
  114. /package/dist/{chunk-7PHUBJVC.js.map → chunk-AI3BZXLG.js.map} +0 -0
  115. /package/dist/{chunk-5JBHQYU5.js.map → chunk-F4UUXA3U.js.map} +0 -0
  116. /package/dist/{chunk-2RS4JWNJ.js.map → chunk-HFFYDWFN.js.map} +0 -0
  117. /package/dist/{chunk-AGWJ4LUC.js.map → chunk-HWHRZFFJ.js.map} +0 -0
  118. /package/dist/{chunk-BFEOSXSG.js.map → chunk-IPSY5OIT.js.map} +0 -0
  119. /package/dist/{chunk-BKIIYGWO.js.map → chunk-OHRY6PPX.js.map} +0 -0
  120. /package/dist/{chunk-BNESB5SU.js.map → chunk-ORTYTFGK.js.map} +0 -0
  121. /package/dist/{chunk-TV2UKRXD.js.map → chunk-REK5PMSH.js.map} +0 -0
  122. /package/dist/{chunk-KMHU4XIM.js.map → chunk-SREBMPDB.js.map} +0 -0
  123. /package/dist/{chunk-4OK4GCCR.js.map → chunk-VDGF5EL2.js.map} +0 -0
  124. /package/dist/{chunk-VNX5AK2O.js.map → chunk-VNL3EXC2.js.map} +0 -0
  125. /package/dist/{chunk-V6FKURGI.js.map → chunk-W4SPRY5O.js.map} +0 -0
  126. /package/dist/{chunk-4WLKD7DL.js.map → chunk-YP6YTC7R.js.map} +0 -0
  127. /package/dist/{cobol-6DNJTKH3.js.map → cobol-LJNKRWP5.js.map} +0 -0
  128. /package/dist/{cobol-SKJIT3WM.js.map → cobol-ZFZ6ZP6X.js.map} +0 -0
  129. /package/dist/{code-block-37QAKDTI-IIYKFI5S.js.map → code-block-37QAKDTI-HV355RRX.js.map} +0 -0
  130. /package/dist/{code-block-37QAKDTI-IJYLCU3C.js.map → code-block-37QAKDTI-Y3BUEJRG.js.map} +0 -0
  131. /package/dist/{cpp-4EW5XLOK.js.map → cpp-HLYUQ6RF.js.map} +0 -0
  132. /package/dist/{crystal-YFCJLEES.js.map → crystal-UPNOBGN4.js.map} +0 -0
  133. /package/dist/{edge-3LWPZYS7.js.map → edge-XE5XFLFP.js.map} +0 -0
  134. /package/dist/{elixir-3H7W7YJZ.js.map → elixir-EXRA4QJX.js.map} +0 -0
  135. /package/dist/{erb-HGSLHT5Y.js.map → erb-KUYJX32Q.js.map} +0 -0
  136. /package/dist/{erb-AXCKAI43.js.map → erb-LRUOJBTB.js.map} +0 -0
  137. /package/dist/{glimmer-js-ZXI6Y36F.js.map → glimmer-js-JA25I4AE.js.map} +0 -0
  138. /package/dist/{glimmer-ts-BJKMFBLF.js.map → glimmer-ts-CKELYRRF.js.map} +0 -0
  139. /package/dist/{graphql-KHEFECOG.js.map → graphql-NLMAEKLI.js.map} +0 -0
  140. /package/dist/{graphql-YEJQLMOO.js.map → graphql-UN5O7U5U.js.map} +0 -0
  141. /package/dist/{hack-KV5GHBVV.js.map → hack-QIUJFE3G.js.map} +0 -0
  142. /package/dist/{haml-6R7X7F2Q.js.map → haml-JQIESO7E.js.map} +0 -0
  143. /package/dist/{handlebars-U44VLSEQ.js.map → handlebars-UBV5AWUH.js.map} +0 -0
  144. /package/dist/{html-MYZBE4UD.js.map → html-AWDHWPK7.js.map} +0 -0
  145. /package/dist/{html-derivative-OWRPAN3G.js.map → html-derivative-QY3ZIV7G.js.map} +0 -0
  146. /package/dist/{http-NEPTRAQZ.js.map → http-7ZVVH3VM.js.map} +0 -0
  147. /package/dist/{http-JSPDAWSO.js.map → http-KIGXJYY6.js.map} +0 -0
  148. /package/dist/{hurl-V6ZX2Q3F.js.map → hurl-B6WXEN45.js.map} +0 -0
  149. /package/dist/{hurl-OT2SM4S7.js.map → hurl-BZB5LDD5.js.map} +0 -0
  150. /package/dist/{jinja-CCI3FGLW.js.map → jinja-AEVQQKWS.js.map} +0 -0
  151. /package/dist/{julia-BWWONBRS.js.map → julia-75QR2XDN.js.map} +0 -0
  152. /package/dist/{julia-QPZ7EOS6.js.map → julia-CPV3A4MM.js.map} +0 -0
  153. /package/dist/{liquid-OSRU4KOW.js.map → liquid-S4LVU77Y.js.map} +0 -0
  154. /package/dist/{mdc-PDOFYVVO.js.map → mdc-NDTDGSIG.js.map} +0 -0
  155. /package/dist/{mdc-TEVTGSC7.js.map → mdc-XWCHWP6B.js.map} +0 -0
  156. /package/dist/{mermaid-4DMBBIKO-7EL5WRQI.js.map → mermaid-4DMBBIKO-DV4JRUY5.js.map} +0 -0
  157. /package/dist/{mermaid-4DMBBIKO-PAA57QRQ.js.map → mermaid-4DMBBIKO-IGH2CKFF.js.map} +0 -0
  158. /package/dist/{nim-JPSYX5KC.js.map → nim-U57UBFBS.js.map} +0 -0
  159. /package/dist/{nim-WGQAUAVA.js.map → nim-Z6EEJ7SX.js.map} +0 -0
  160. /package/dist/{perl-Y3ALUOFJ.js.map → perl-5IQEFQG3.js.map} +0 -0
  161. /package/dist/{perl-X4IFZB22.js.map → perl-IZHDGBO6.js.map} +0 -0
  162. /package/dist/{php-3V7EPUAN.js.map → php-MNP62HWP.js.map} +0 -0
  163. /package/dist/{php-QERWOQJG.js.map → php-UQGWKJAF.js.map} +0 -0
  164. /package/dist/{pug-7XNGVJEC.js.map → pug-XHTBJJNO.js.map} +0 -0
  165. /package/dist/{razor-C2NV2YNT.js.map → razor-UMC4HKIF.js.map} +0 -0
  166. /package/dist/{rst-WIWCR2KQ.js.map → rst-6KQSGP2V.js.map} +0 -0
  167. /package/dist/{rst-W5S2XFF7.js.map → rst-HCGHBPBZ.js.map} +0 -0
  168. /package/dist/{ruby-EYYAUQUG.js.map → ruby-ML25RVXY.js.map} +0 -0
  169. /package/dist/{ruby-LXZJUMFB.js.map → ruby-OWE2HOOR.js.map} +0 -0
  170. /package/dist/{soy-G2LDZSDN.js.map → soy-ALTWCQTO.js.map} +0 -0
  171. /package/dist/{svelte-EYZDXUS2.js.map → svelte-6TT7H4YP.js.map} +0 -0
  172. /package/dist/{templ-KXQ2KV7D.js.map → templ-WN3SJLUV.js.map} +0 -0
  173. /package/dist/{ts-tags-TCQ23O6Y.js.map → ts-tags-NAJDOQCO.js.map} +0 -0
  174. /package/dist/{ts-tags-7WGDLEKX.js.map → ts-tags-XNK5N5RZ.js.map} +0 -0
  175. /package/dist/{twig-JAL4753Y.js.map → twig-GIY7NVAA.js.map} +0 -0
  176. /package/dist/{twig-C6YWFFZU.js.map → twig-OEIJ72KK.js.map} +0 -0
  177. /package/dist/{vue-O6SLORWU.js.map → vue-FIH2DYBE.js.map} +0 -0
  178. /package/dist/{vue-D6SXQNWM.js.map → vue-V6GLJNYA.js.map} +0 -0
  179. /package/dist/{vue-vine-T6MFB2MU.js.map → vue-vine-KB45C76H.js.map} +0 -0
@@ -109,7 +109,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error
109
109
  `||d==="\r"){o=!0;break}if(!o)return u;let c=[];for(let d of u)d===" "?c.push("\\t"):d===`
110
110
  `?c.push("\\n"):d==="\r"?c.push("\\r"):c.push(d);return c.join("")},i=t.length>0?r.length+1:r.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(n).join(" "),s+=1);for(let u of r)a[s]=u.map(n).join(" "),s+=1;return a.join(`
111
111
  `)},fo=e=>{let t=!1;for(let n of e)if(n==="\\"||n==="|"){t=!0;break}if(!t)return e;let r=[];for(let n of e)n==="\\"?r.push("\\\\"):n==="|"?r.push("\\|"):r.push(n);return r.join("")},_x=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),i=0,a=t.map(u=>fo(u));n[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";n[i]=`| ${s.join(" | ")} |`,i+=1;for(let u of r)if(u.length<t.length){let o=new Array(t.length);for(let c=0;c<t.length;c+=1)o[c]=c<u.length?fo(u[c]):"";n[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=u.map(c=>fo(c));n[i]=`| ${o.join(" | ")} |`,i+=1}return n.join(`
112
- `)},Cx=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let[a,s]=Se(!1),[u,o]=Se(!1),c=xt(null),d=xt(0),{isAnimating:h}=tt(et),p=async b=>{var _,L;if(typeof window>"u"||!((_=navigator?.clipboard)!=null&&_.write)){n?.(new Error("Clipboard API not available"));return}try{let S=(L=c.current)==null?void 0:L.closest('[data-streamdown="table-wrapper"]'),M=S?.querySelector("table");if(!M){n?.(new Error("Table not found"));return}let O=If(M),U=b==="csv"?Nf(O):yx(O),Y=new ClipboardItem({"text/plain":new Blob([U],{type:"text/plain"}),"text/html":new Blob([M.outerHTML],{type:"text/html"})});await navigator.clipboard.write([Y]),o(!0),s(!1),r?.(b),d.current=window.setTimeout(()=>o(!1),i)}catch(S){n?.(S)}};Je(()=>{let b=_=>{let L=_.composedPath();c.current&&!L.includes(c.current)&&s(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b),window.clearTimeout(d.current)}},[]);let m=u?Eo:To;return ce("div",{className:"relative",ref:c,children:[I("button",{className:ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??I(m,{size:14})}),a?ce("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},Sx=({children:e,className:t,onDownload:r,onError:n})=>{let[i,a]=Se(!1),s=xt(null),{isAnimating:u}=tt(et),o=c=>{var d;try{let h=(d=s.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),p=h?.querySelector("table");if(!p){n?.(new Error("Table not found"));return}let m=If(p),b=c==="csv"?Nf(m):_x(m);Dr(`table.${c==="csv"?"csv":"md"}`,b,c==="csv"?"text/csv":"text/markdown"),a(!1),r?.(c)}catch(h){n?.(h)}};return Je(()=>{let c=d=>{let h=d.composedPath();s.current&&!h.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),ce("div",{className:"relative",ref:s,children:[I("button",{className:ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??I(Ui,{size:14})}),i?ce("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},Ix=({children:e,className:t,showControls:r,...n})=>ce("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r?ce("div",{className:"flex items-center justify-end gap-1",children:[I(Cx,{}),I(Sx,{})]}):null,I("div",{className:"overflow-x-auto",children:I("table",{className:ee("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]}),Nx=yf(()=>import("./code-block-37QAKDTI-IJYLCU3C.js").then(e=>({default:e.CodeBlock}))),wx=yf(()=>import("./mermaid-4DMBBIKO-7EL5WRQI.js").then(e=>({default:e.Mermaid}))),Lx=/language-([^\s]+)/;function zi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,i=e.position.end,a=t.position.end;return r?.line===n?.line&&r?.column===n?.column&&i?.line===a?.line&&i?.column===a?.column}function Ae(e,t){return e.className===t.className&&zi(e.node,t.node)}var go=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Fi=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},ko=ge(({children:e,className:t,node:r,...n})=>I("ol",{className:ee("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>Ae(e,t));ko.displayName="MarkdownOl";var wf=ge(({children:e,className:t,node:r,...n})=>I("li",{className:ee("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&zi(e.node,t.node));wf.displayName="MarkdownLi";var Lf=ge(({children:e,className:t,node:r,...n})=>I("ul",{className:ee("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>Ae(e,t));Lf.displayName="MarkdownUl";var Rf=ge(({className:e,node:t,...r})=>I("hr",{className:ee("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>Ae(e,t));Rf.displayName="MarkdownHr";var Df=ge(({children:e,className:t,node:r,...n})=>I("span",{className:ee("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>Ae(e,t));Df.displayName="MarkdownStrong";var Rx=({children:e,className:t,href:r,node:n,...i})=>{let{linkSafety:a}=tt(et),[s,u]=Se(!1),o=r==="streamdown:incomplete-link",c=$e(async m=>{if(!(!(a!=null&&a.enabled&&r)||o)){if(m.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}u(!0)}},[a,r,o]),d=$e(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),h=$e(()=>{u(!1)},[]),p={url:r??"",isOpen:s,onClose:h,onConfirm:d};return a!=null&&a.enabled&&r?ce(Gt,{children:[I("button",{className:ee("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:c,type:"button",children:e}),a.renderModal?a.renderModal(p):I(bx,{...p})]}):I("a",{className:ee("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...i,children:e})},Of=ge(Rx,(e,t)=>Ae(e,t)&&e.href===t.href);Of.displayName="MarkdownA";var Pf=ge(({children:e,className:t,node:r,...n})=>I("h1",{className:ee("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>Ae(e,t));Pf.displayName="MarkdownH1";var Mf=ge(({children:e,className:t,node:r,...n})=>I("h2",{className:ee("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>Ae(e,t));Mf.displayName="MarkdownH2";var vf=ge(({children:e,className:t,node:r,...n})=>I("h3",{className:ee("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>Ae(e,t));vf.displayName="MarkdownH3";var Bf=ge(({children:e,className:t,node:r,...n})=>I("h4",{className:ee("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>Ae(e,t));Bf.displayName="MarkdownH4";var Ff=ge(({children:e,className:t,node:r,...n})=>I("h5",{className:ee("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>Ae(e,t));Ff.displayName="MarkdownH5";var Hf=ge(({children:e,className:t,node:r,...n})=>I("h6",{className:ee("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>Ae(e,t));Hf.displayName="MarkdownH6";var Uf=ge(({children:e,className:t,node:r,...n})=>{let{controls:i}=tt(et),a=go(i,"table");return I(Ix,{className:t,showControls:a,...n,children:e})},(e,t)=>Ae(e,t));Uf.displayName="MarkdownTable";var zf=ge(({children:e,className:t,node:r,...n})=>I("thead",{className:ee("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>Ae(e,t));zf.displayName="MarkdownThead";var qf=ge(({children:e,className:t,node:r,...n})=>I("tbody",{className:ee("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>Ae(e,t));qf.displayName="MarkdownTbody";var Vf=ge(({children:e,className:t,node:r,...n})=>I("tr",{className:ee("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>Ae(e,t));Vf.displayName="MarkdownTr";var Yf=ge(({children:e,className:t,node:r,...n})=>I("th",{className:ee("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>Ae(e,t));Yf.displayName="MarkdownTh";var jf=ge(({children:e,className:t,node:r,...n})=>I("td",{className:ee("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>Ae(e,t));jf.displayName="MarkdownTd";var Gf=ge(({children:e,className:t,node:r,...n})=>I("blockquote",{className:ee("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>Ae(e,t));Gf.displayName="MarkdownBlockquote";var Wf=ge(({children:e,className:t,node:r,...n})=>I("sup",{className:ee("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>Ae(e,t));Wf.displayName="MarkdownSup";var $f=ge(({children:e,className:t,node:r,...n})=>I("sub",{className:ee("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>Ae(e,t));$f.displayName="MarkdownSub";var Qf=ge(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let i=s=>{var u,o;if(!Rr(s))return!1;let c=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,h=!1;for(let p of c)if(p){if(typeof p=="string")p.trim()!==""&&(d=!0);else if(Rr(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)h=!0;else{let m=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let b of m){if(typeof b=="string"&&b.trim()!==""){d=!0;break}if(Rr(b)&&((o=b.props)==null?void 0:o["data-footnote-backref"])===void 0){d=!0;break}}}}return h&&!d},a=Array.isArray(e)?e.map(s=>{if(!Rr(s))return s;if(s.type===ko){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?I("section",{className:t,...n,children:a}):null}return I("section",{className:t,...n,children:e})},(e,t)=>Ae(e,t));Qf.displayName="MarkdownSection";var Dx=({node:e,className:t,children:r,...n})=>{var i,a,s;let u=((i=e?.position)==null?void 0:i.start.line)===((a=e?.position)==null?void 0:a.end.line),{mermaid:o,controls:c}=tt(et),d=xo();if(u)return I("code",{className:ee("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let h=t?.match(Lx),p=(s=h?.at(1))!=null?s:"",m="";if(Rr(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?m=r.props.children:typeof r=="string"&&(m=r),p==="mermaid"&&d){let _=go(c,"mermaid"),L=Fi(c,"download"),S=Fi(c,"copy"),M=Fi(c,"fullscreen"),O=Fi(c,"panZoom"),U=_&&(L||S||M);return I(mf,{fallback:I(Tf,{}),children:ce("div",{className:ee("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[U?ce("div",{className:"flex items-center justify-end gap-2",children:[L?I(Tx,{chart:m,config:o?.config}):null,S?I(bf,{code:m}):null,M?I(Ax,{chart:m,config:o?.config}):null]}):null,I(wx,{chart:m,config:o?.config,showControls:O})]})})}let b=go(c,"code");return I(mf,{fallback:I(Tf,{}),children:I(Nx,{className:ee("overflow-x-auto border-border border-t",t),code:m,language:p,children:b?ce(Gt,{children:[I(fx,{code:m,language:p}),I(bf,{})]}):null})})},Xf=ge(Dx,(e,t)=>e.className===t.className&&zi(e.node,t.node));Xf.displayName="MarkdownCode";var Kf=ge(px,(e,t)=>e.className===t.className&&zi(e.node,t.node));Kf.displayName="MarkdownImg";var Zf=ge(({children:e,className:t,node:r,...n})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&Rr(s[0])){let u=s[0].props.node,o=u?.tagName;if(o==="img")return I(Gt,{children:e});if(o==="code"&&((i=u?.position)==null?void 0:i.start.line)!==((a=u?.position)==null?void 0:a.end.line))return I(Gt,{children:e})}return I("p",{className:t,...n,children:e})},(e,t)=>Ae(e,t));Zf.displayName="MarkdownParagraph";var Ox={ol:ko,li:wf,ul:Lf,hr:Rf,strong:Df,a:Of,h1:Pf,h2:Mf,h3:vf,h4:Bf,h5:Ff,h6:Hf,table:Uf,thead:zf,tbody:qf,tr:Vf,th:Yf,td:jf,blockquote:Gf,code:Xf,img:Kf,pre:({children:e})=>e,sup:Wf,sub:$f,p:Zf,section:Qf},xf=[],kf={allowDangerousHtml:!0},Hi=new WeakMap,Px=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(r||n||i)){let d="default";return this.keyCache.set(e,d),d}let a=d=>{if(!d||d.length===0)return"";let h="";for(let p=0;p<d.length;p+=1){let m=d[p];if(p>0&&(h+=","),Array.isArray(m)){let[b,_]=m;if(typeof b=="function"){let L=Hi.get(b);L||(L=b.name,Hi.set(b,L)),h+=L}else h+=String(b);h+=":",h+=JSON.stringify(_)}else if(typeof m=="function"){let b=Hi.get(m);b||(b=m.name,Hi.set(m,b)),h+=b}else h+=String(m)}return h},s=a(r),u=a(n),o=i?JSON.stringify(i):"",c=`${u}::${s}::${o}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},Af=new Px,Jf=e=>{let t=Mx(e),r=e.children||"";return Bx(t.runSync(t.parse(r),r),e)},Mx=e=>{let t=Af.get(e);if(t)return t;let r=vx(e);return Af.set(e,r),r},vx=e=>{let t=e.rehypePlugins||xf,r=e.remarkPlugins||xf,n=e.remarkRehypeOptions?{...kf,...e.remarkRehypeOptions}:kf;return Zs().use(yi).use(r).use(Ii,n).use(t)},Bx=(e,t)=>Ps(e,{Fragment:Gt,components:t.components,ignoreInvalidStyle:!0,jsx:I,jsxs:ce,passKeys:!0,passNode:!0}),Fx=/\[\^[^\]\s]{1,200}\](?!:)/,Hx=/\[\^[^\]\s]{1,200}\]:/,Ux=/<\/(\w+)>/,zx=/<(\w+)[\s>]/,ho=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
112
+ `)},Cx=({children:e,className:t,onCopy:r,onError:n,timeout:i=2e3})=>{let[a,s]=Se(!1),[u,o]=Se(!1),c=xt(null),d=xt(0),{isAnimating:h}=tt(et),p=async b=>{var _,L;if(typeof window>"u"||!((_=navigator?.clipboard)!=null&&_.write)){n?.(new Error("Clipboard API not available"));return}try{let S=(L=c.current)==null?void 0:L.closest('[data-streamdown="table-wrapper"]'),M=S?.querySelector("table");if(!M){n?.(new Error("Table not found"));return}let O=If(M),U=b==="csv"?Nf(O):yx(O),Y=new ClipboardItem({"text/plain":new Blob([U],{type:"text/plain"}),"text/html":new Blob([M.outerHTML],{type:"text/html"})});await navigator.clipboard.write([Y]),o(!0),s(!1),r?.(b),d.current=window.setTimeout(()=>o(!1),i)}catch(S){n?.(S)}};Je(()=>{let b=_=>{let L=_.composedPath();c.current&&!L.includes(c.current)&&s(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b),window.clearTimeout(d.current)}},[]);let m=u?Eo:To;return ce("div",{className:"relative",ref:c,children:[I("button",{className:ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??I(m,{size:14})}),a?ce("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},Sx=({children:e,className:t,onDownload:r,onError:n})=>{let[i,a]=Se(!1),s=xt(null),{isAnimating:u}=tt(et),o=c=>{var d;try{let h=(d=s.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),p=h?.querySelector("table");if(!p){n?.(new Error("Table not found"));return}let m=If(p),b=c==="csv"?Nf(m):_x(m);Dr(`table.${c==="csv"?"csv":"md"}`,b,c==="csv"?"text/csv":"text/markdown"),a(!1),r?.(c)}catch(h){n?.(h)}};return Je(()=>{let c=d=>{let h=d.composedPath();s.current&&!h.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),ce("div",{className:"relative",ref:s,children:[I("button",{className:ee("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??I(Ui,{size:14})}),i?ce("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),I("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},Ix=({children:e,className:t,showControls:r,...n})=>ce("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r?ce("div",{className:"flex items-center justify-end gap-1",children:[I(Cx,{}),I(Sx,{})]}):null,I("div",{className:"overflow-x-auto",children:I("table",{className:ee("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]}),Nx=yf(()=>import("./code-block-37QAKDTI-Y3BUEJRG.js").then(e=>({default:e.CodeBlock}))),wx=yf(()=>import("./mermaid-4DMBBIKO-DV4JRUY5.js").then(e=>({default:e.Mermaid}))),Lx=/language-([^\s]+)/;function zi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,i=e.position.end,a=t.position.end;return r?.line===n?.line&&r?.column===n?.column&&i?.line===a?.line&&i?.column===a?.column}function Ae(e,t){return e.className===t.className&&zi(e.node,t.node)}var go=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Fi=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},ko=ge(({children:e,className:t,node:r,...n})=>I("ol",{className:ee("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>Ae(e,t));ko.displayName="MarkdownOl";var wf=ge(({children:e,className:t,node:r,...n})=>I("li",{className:ee("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&zi(e.node,t.node));wf.displayName="MarkdownLi";var Lf=ge(({children:e,className:t,node:r,...n})=>I("ul",{className:ee("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>Ae(e,t));Lf.displayName="MarkdownUl";var Rf=ge(({className:e,node:t,...r})=>I("hr",{className:ee("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>Ae(e,t));Rf.displayName="MarkdownHr";var Df=ge(({children:e,className:t,node:r,...n})=>I("span",{className:ee("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>Ae(e,t));Df.displayName="MarkdownStrong";var Rx=({children:e,className:t,href:r,node:n,...i})=>{let{linkSafety:a}=tt(et),[s,u]=Se(!1),o=r==="streamdown:incomplete-link",c=$e(async m=>{if(!(!(a!=null&&a.enabled&&r)||o)){if(m.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}u(!0)}},[a,r,o]),d=$e(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),h=$e(()=>{u(!1)},[]),p={url:r??"",isOpen:s,onClose:h,onConfirm:d};return a!=null&&a.enabled&&r?ce(Gt,{children:[I("button",{className:ee("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:c,type:"button",children:e}),a.renderModal?a.renderModal(p):I(bx,{...p})]}):I("a",{className:ee("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...i,children:e})},Of=ge(Rx,(e,t)=>Ae(e,t)&&e.href===t.href);Of.displayName="MarkdownA";var Pf=ge(({children:e,className:t,node:r,...n})=>I("h1",{className:ee("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>Ae(e,t));Pf.displayName="MarkdownH1";var Mf=ge(({children:e,className:t,node:r,...n})=>I("h2",{className:ee("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>Ae(e,t));Mf.displayName="MarkdownH2";var vf=ge(({children:e,className:t,node:r,...n})=>I("h3",{className:ee("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>Ae(e,t));vf.displayName="MarkdownH3";var Bf=ge(({children:e,className:t,node:r,...n})=>I("h4",{className:ee("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>Ae(e,t));Bf.displayName="MarkdownH4";var Ff=ge(({children:e,className:t,node:r,...n})=>I("h5",{className:ee("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>Ae(e,t));Ff.displayName="MarkdownH5";var Hf=ge(({children:e,className:t,node:r,...n})=>I("h6",{className:ee("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>Ae(e,t));Hf.displayName="MarkdownH6";var Uf=ge(({children:e,className:t,node:r,...n})=>{let{controls:i}=tt(et),a=go(i,"table");return I(Ix,{className:t,showControls:a,...n,children:e})},(e,t)=>Ae(e,t));Uf.displayName="MarkdownTable";var zf=ge(({children:e,className:t,node:r,...n})=>I("thead",{className:ee("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>Ae(e,t));zf.displayName="MarkdownThead";var qf=ge(({children:e,className:t,node:r,...n})=>I("tbody",{className:ee("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>Ae(e,t));qf.displayName="MarkdownTbody";var Vf=ge(({children:e,className:t,node:r,...n})=>I("tr",{className:ee("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>Ae(e,t));Vf.displayName="MarkdownTr";var Yf=ge(({children:e,className:t,node:r,...n})=>I("th",{className:ee("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>Ae(e,t));Yf.displayName="MarkdownTh";var jf=ge(({children:e,className:t,node:r,...n})=>I("td",{className:ee("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>Ae(e,t));jf.displayName="MarkdownTd";var Gf=ge(({children:e,className:t,node:r,...n})=>I("blockquote",{className:ee("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>Ae(e,t));Gf.displayName="MarkdownBlockquote";var Wf=ge(({children:e,className:t,node:r,...n})=>I("sup",{className:ee("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>Ae(e,t));Wf.displayName="MarkdownSup";var $f=ge(({children:e,className:t,node:r,...n})=>I("sub",{className:ee("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>Ae(e,t));$f.displayName="MarkdownSub";var Qf=ge(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let i=s=>{var u,o;if(!Rr(s))return!1;let c=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,h=!1;for(let p of c)if(p){if(typeof p=="string")p.trim()!==""&&(d=!0);else if(Rr(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)h=!0;else{let m=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let b of m){if(typeof b=="string"&&b.trim()!==""){d=!0;break}if(Rr(b)&&((o=b.props)==null?void 0:o["data-footnote-backref"])===void 0){d=!0;break}}}}return h&&!d},a=Array.isArray(e)?e.map(s=>{if(!Rr(s))return s;if(s.type===ko){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?I("section",{className:t,...n,children:a}):null}return I("section",{className:t,...n,children:e})},(e,t)=>Ae(e,t));Qf.displayName="MarkdownSection";var Dx=({node:e,className:t,children:r,...n})=>{var i,a,s;let u=((i=e?.position)==null?void 0:i.start.line)===((a=e?.position)==null?void 0:a.end.line),{mermaid:o,controls:c}=tt(et),d=xo();if(u)return I("code",{className:ee("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let h=t?.match(Lx),p=(s=h?.at(1))!=null?s:"",m="";if(Rr(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?m=r.props.children:typeof r=="string"&&(m=r),p==="mermaid"&&d){let _=go(c,"mermaid"),L=Fi(c,"download"),S=Fi(c,"copy"),M=Fi(c,"fullscreen"),O=Fi(c,"panZoom"),U=_&&(L||S||M);return I(mf,{fallback:I(Tf,{}),children:ce("div",{className:ee("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[U?ce("div",{className:"flex items-center justify-end gap-2",children:[L?I(Tx,{chart:m,config:o?.config}):null,S?I(bf,{code:m}):null,M?I(Ax,{chart:m,config:o?.config}):null]}):null,I(wx,{chart:m,config:o?.config,showControls:O})]})})}let b=go(c,"code");return I(mf,{fallback:I(Tf,{}),children:I(Nx,{className:ee("overflow-x-auto border-border border-t",t),code:m,language:p,children:b?ce(Gt,{children:[I(fx,{code:m,language:p}),I(bf,{})]}):null})})},Xf=ge(Dx,(e,t)=>e.className===t.className&&zi(e.node,t.node));Xf.displayName="MarkdownCode";var Kf=ge(px,(e,t)=>e.className===t.className&&zi(e.node,t.node));Kf.displayName="MarkdownImg";var Zf=ge(({children:e,className:t,node:r,...n})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&Rr(s[0])){let u=s[0].props.node,o=u?.tagName;if(o==="img")return I(Gt,{children:e});if(o==="code"&&((i=u?.position)==null?void 0:i.start.line)!==((a=u?.position)==null?void 0:a.end.line))return I(Gt,{children:e})}return I("p",{className:t,...n,children:e})},(e,t)=>Ae(e,t));Zf.displayName="MarkdownParagraph";var Ox={ol:ko,li:wf,ul:Lf,hr:Rf,strong:Df,a:Of,h1:Pf,h2:Mf,h3:vf,h4:Bf,h5:Ff,h6:Hf,table:Uf,thead:zf,tbody:qf,tr:Vf,th:Yf,td:jf,blockquote:Gf,code:Xf,img:Kf,pre:({children:e})=>e,sup:Wf,sub:$f,p:Zf,section:Qf},xf=[],kf={allowDangerousHtml:!0},Hi=new WeakMap,Px=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(r||n||i)){let d="default";return this.keyCache.set(e,d),d}let a=d=>{if(!d||d.length===0)return"";let h="";for(let p=0;p<d.length;p+=1){let m=d[p];if(p>0&&(h+=","),Array.isArray(m)){let[b,_]=m;if(typeof b=="function"){let L=Hi.get(b);L||(L=b.name,Hi.set(b,L)),h+=L}else h+=String(b);h+=":",h+=JSON.stringify(_)}else if(typeof m=="function"){let b=Hi.get(m);b||(b=m.name,Hi.set(m,b)),h+=b}else h+=String(m)}return h},s=a(r),u=a(n),o=i?JSON.stringify(i):"",c=`${u}::${s}::${o}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},Af=new Px,Jf=e=>{let t=Mx(e),r=e.children||"";return Bx(t.runSync(t.parse(r),r),e)},Mx=e=>{let t=Af.get(e);if(t)return t;let r=vx(e);return Af.set(e,r),r},vx=e=>{let t=e.rehypePlugins||xf,r=e.remarkPlugins||xf,n=e.remarkRehypeOptions?{...kf,...e.remarkRehypeOptions}:kf;return Zs().use(yi).use(r).use(Ii,n).use(t)},Bx=(e,t)=>Ps(e,{Fragment:Gt,components:t.components,ignoreInvalidStyle:!0,jsx:I,jsxs:ce,passKeys:!0,passNode:!0}),Fx=/\[\^[^\]\s]{1,200}\](?!:)/,Hx=/\[\^[^\]\s]{1,200}\]:/,Ux=/<\/(\w+)>/,zx=/<(\w+)[\s>]/,ho=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
113
113
  `||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},qx=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
114
- `||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},po=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},Vx=e=>{let t=Fx.test(e),r=Hx.test(e);if(t||r)return[e];let n=We.lex(e,{gfm:!0}),i=[],a=[];for(let s of n){let u=s.raw,o=i.length;if(a.length>0){if(i[o-1]+=u,s.type==="html"){let c=u.match(Ux);if(c){let d=c[1];a.at(-1)===d&&a.pop()}}continue}if(s.type==="html"&&s.block){let c=u.match(zx);if(c){let d=c[1];u.includes(`</${d}>`)||a.push(d)}}if(u.trim()==="$$"&&o>0){let c=i[o-1],d=ho(c),h=po(c);if(d&&h%2===1){i[o-1]=c+u;continue}}if(o>0&&qx(u)){let c=i[o-1],d=ho(c),h=po(c),p=po(u);if(d&&h%2===1&&!ho(u)&&p===1){i[o-1]=c+u;continue}}i.push(u)}return i},Yx={raw:Kn,sanitize:[Zn,{}],harden:[Do,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},jx={gfm:[pi,{}]},Gx=Object.values(Yx),Wx=Object.values(jx),$x={block:" \u258B",circle:" \u25CF"},Qx={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},et=bo(Qx),eh=ge(({content:e,shouldParseIncompleteMarkdown:t,index:r,...n})=>I(Jf,{...n,children:e}),(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});eh.displayName="Block";var Xx=["github-light","github-dark"],Kx=ge(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,components:n,rehypePlugins:i=Gx,remarkPlugins:a=Wx,className:s,shikiTheme:u=Xx,mermaid:o,controls:c=!0,isAnimating:d=!1,BlockComponent:h=eh,parseMarkdownIntoBlocksFn:p=Vx,caret:m,plugins:b,remend:_,linkSafety:L={enabled:!0},...S})=>{let M=ex(),[O,U]=tx(),Y=ft(()=>typeof e!="string"?"":t==="streaming"&&r?ac(e,_):e,[e,t,r,_]),R=ft(()=>p(Y),[Y,p]),[te,H]=Se(R);Je(()=>{t==="streaming"?U(()=>{H(R)}):H(R)},[R,t]);let X=t==="streaming"?te:R,N=ft(()=>X.map((J,oe)=>`${M}-${oe}`),[X.length,M]),de=ft(()=>{var J,oe;return{shikiTheme:(oe=(J=b?.code)==null?void 0:J.getThemes())!=null?oe:u,controls:c,isAnimating:d,mode:t,mermaid:o,linkSafety:L}},[u,c,d,t,o,L,b?.code]),V=ft(()=>({...Ox,...n}),[n]),z=ft(()=>{let J=[];return b!=null&&b.cjk&&(J=[...J,...b.cjk.remarkPluginsBefore]),J=[...J,...a],b!=null&&b.cjk&&(J=[...J,...b.cjk.remarkPluginsAfter]),b!=null&&b.math&&(J=[...J,b.math.remarkPlugin]),J},[a,b?.math,b?.cjk]),K=ft(()=>b!=null&&b.math?[...i,b.math.rehypePlugin]:i,[i,b?.math]),Z=ft(()=>m&&d?{"--streamdown-caret":`"${$x[m]}"`}:void 0,[m,d]);return t==="static"?I(mo.Provider,{value:b??null,children:I(et.Provider,{value:de,children:I("div",{className:ee("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",s),children:I(Jf,{components:V,rehypePlugins:K,remarkPlugins:z,...S,children:e})})})}):I(mo.Provider,{value:b??null,children:I(et.Provider,{value:de,children:ce("div",{className:ee("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",m?"*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)":null,s),style:Z,children:[X.length===0&&m&&d&&I("span",{}),X.map((J,oe)=>I(h,{components:V,content:J,index:oe,rehypePlugins:K,remarkPlugins:z,shouldParseIncompleteMarkdown:r,...S},N[oe]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);Kx.displayName="Streamdown";var Zx=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:u=!1})=>{let o=xt(null),c=xt(null),[d,h]=Se(s),[p,m]=Se({x:0,y:0}),[b,_]=Se(!1),[L,S]=Se({x:0,y:0}),[M,O]=Se({x:0,y:0}),U=$e(V=>{h(z=>Math.max(r,Math.min(n,z+V)))},[r,n]),Y=$e(()=>{U(i)},[U,i]),R=$e(()=>{U(-i)},[U,i]),te=$e(()=>{h(s),m({x:0,y:0})},[s]),H=$e(V=>{V.preventDefault();let z=V.deltaY>0?-i:i;U(z)},[U,i]),X=$e(V=>{if(V.button!==0||V.isPrimary===!1)return;_(!0),S({x:V.clientX,y:V.clientY}),O(p);let z=V.currentTarget;z instanceof HTMLElement&&z.setPointerCapture(V.pointerId)},[p]),N=$e(V=>{if(!b)return;V.preventDefault();let z=V.clientX-L.x,K=V.clientY-L.y;m({x:M.x+z,y:M.y+K})},[b,L,M]),de=$e(V=>{_(!1);let z=V.currentTarget;z instanceof HTMLElement&&z.releasePointerCapture(V.pointerId)},[]);return Je(()=>{let V=o.current;if(V)return V.addEventListener("wheel",H,{passive:!1}),()=>{V.removeEventListener("wheel",H)}},[H]),Je(()=>{let V=c.current;if(V&&b)return document.body.style.userSelect="none",V.addEventListener("pointermove",N,{passive:!1}),V.addEventListener("pointerup",de),V.addEventListener("pointercancel",de),()=>{document.body.style.userSelect="",V.removeEventListener("pointermove",N),V.removeEventListener("pointerup",de),V.removeEventListener("pointercancel",de)}},[b,N,de]),ce("div",{className:ee("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:o,style:{cursor:b?"grabbing":"grab"},children:[a?ce("div",{className:ee("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d>=n,onClick:Y,title:"Zoom in",type:"button",children:I(lx,{size:16})}),I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d<=r,onClick:R,title:"Zoom out",type:"button",children:I(cx,{size:16})}),I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:te,title:"Reset zoom and pan",type:"button",children:I(ux,{size:16})})]}):null,I("div",{className:ee("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:X,ref:c,role:"application",style:{transform:`translate(${p.x}px, ${p.y}px) scale(${d})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Jx=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:i=!0})=>{let[a,s]=Se(null),[u,o]=Se(!1),[c,d]=Se(""),[h,p]=Se(""),[m,b]=Se(0),{mermaid:_}=tt(et),L=xo(),S=_?.errorComponent,{shouldRender:M,containerRef:O}=ax({immediate:n});if(Je(()=>{if(M){if(!L){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),o(!0);let Y=L.getMermaid(r),R=e.split("").reduce((X,N)=>(X<<5)-X+N.charCodeAt(0)|0,0),te=`mermaid-${Math.abs(R)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:H}=await Y.render(te,e);d(H),p(H)}catch(Y){if(!(h||c)){let R=Y instanceof Error?Y.message:"Failed to render Mermaid chart";s(R)}}finally{o(!1)}})()}},[e,r,m,M,L]),!(M||c||h))return I("div",{className:ee("my-4 min-h-[200px]",t),ref:O});if(u&&!c&&!h)return I("div",{className:ee("my-4 flex justify-center p-4",t),ref:O,children:ce("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[I("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),I("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!c&&!h)return S?I("div",{ref:O,children:I(S,{chart:e,error:a,retry:()=>b(R=>R+1)})}):ce("div",{className:ee("rounded-lg border border-red-200 bg-red-50 p-4",t),ref:O,children:[ce("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),ce("details",{className:"mt-2",children:[I("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),I("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let U=c||h;return I("div",{className:ee("size-full",t),"data-streamdown":"mermaid",ref:O,children:I(Zx,{className:ee(n?"size-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:I("div",{"aria-label":"Mermaid chart",className:ee("flex justify-center",n?"size-full items-center":null),dangerouslySetInnerHTML:{__html:U},role:"img"})})})};export{oc as a,iR as b,ae as c,ye as d,Fe as e,zt as f,at as g,Ko as h,St as i,It as j,Ke as k,Rn as l,Ia as m,Nn as n,wn as o,ws as p,ee as q,dx as r,bP as s,et as t,Kx as u,Jx as v};
115
- //# sourceMappingURL=chunk-4WLKD7DL.js.map
114
+ `||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},po=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},Vx=e=>{let t=Fx.test(e),r=Hx.test(e);if(t||r)return[e];let n=We.lex(e,{gfm:!0}),i=[],a=[];for(let s of n){let u=s.raw,o=i.length;if(a.length>0){if(i[o-1]+=u,s.type==="html"){let c=u.match(Ux);if(c){let d=c[1];a.at(-1)===d&&a.pop()}}continue}if(s.type==="html"&&s.block){let c=u.match(zx);if(c){let d=c[1];u.includes(`</${d}>`)||a.push(d)}}if(u.trim()==="$$"&&o>0){let c=i[o-1],d=ho(c),h=po(c);if(d&&h%2===1){i[o-1]=c+u;continue}}if(o>0&&qx(u)){let c=i[o-1],d=ho(c),h=po(c),p=po(u);if(d&&h%2===1&&!ho(u)&&p===1){i[o-1]=c+u;continue}}i.push(u)}return i},Yx={raw:Kn,sanitize:[Zn,{}],harden:[Do,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},jx={gfm:[pi,{}]},Gx=Object.values(Yx),Wx=Object.values(jx),$x={block:" \u258B",circle:" \u25CF"},Qx={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},et=bo(Qx),eh=ge(({content:e,shouldParseIncompleteMarkdown:t,index:r,...n})=>I(Jf,{...n,children:e}),(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});eh.displayName="Block";var Xx=["github-light","github-dark"],Kx=ge(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,components:n,rehypePlugins:i=Gx,remarkPlugins:a=Wx,className:s,shikiTheme:u=Xx,mermaid:o,controls:c=!0,isAnimating:d=!1,BlockComponent:h=eh,parseMarkdownIntoBlocksFn:p=Vx,caret:m,plugins:b,remend:_,linkSafety:L={enabled:!0},...S})=>{let M=ex(),[O,U]=tx(),Y=ft(()=>typeof e!="string"?"":t==="streaming"&&r?ac(e,_):e,[e,t,r,_]),R=ft(()=>p(Y),[Y,p]),[te,H]=Se(R);Je(()=>{t==="streaming"?U(()=>{H(R)}):H(R)},[R,t]);let X=t==="streaming"?te:R,N=ft(()=>X.map((J,oe)=>`${M}-${oe}`),[X.length,M]),de=ft(()=>{var J,oe;return{shikiTheme:(oe=(J=b?.code)==null?void 0:J.getThemes())!=null?oe:u,controls:c,isAnimating:d,mode:t,mermaid:o,linkSafety:L}},[u,c,d,t,o,L,b?.code]),V=ft(()=>({...Ox,...n}),[n]),z=ft(()=>{let J=[];return b!=null&&b.cjk&&(J=[...J,...b.cjk.remarkPluginsBefore]),J=[...J,...a],b!=null&&b.cjk&&(J=[...J,...b.cjk.remarkPluginsAfter]),b!=null&&b.math&&(J=[...J,b.math.remarkPlugin]),J},[a,b?.math,b?.cjk]),K=ft(()=>b!=null&&b.math?[...i,b.math.rehypePlugin]:i,[i,b?.math]),Z=ft(()=>m&&d?{"--streamdown-caret":`"${$x[m]}"`}:void 0,[m,d]);return t==="static"?I(mo.Provider,{value:b??null,children:I(et.Provider,{value:de,children:I("div",{className:ee("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",s),children:I(Jf,{components:V,rehypePlugins:K,remarkPlugins:z,...S,children:e})})})}):I(mo.Provider,{value:b??null,children:I(et.Provider,{value:de,children:ce("div",{className:ee("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",m?"*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)":null,s),style:Z,children:[X.length===0&&m&&d&&I("span",{}),X.map((J,oe)=>I(h,{components:V,content:J,index:oe,rehypePlugins:K,remarkPlugins:z,shouldParseIncompleteMarkdown:r,...S},N[oe]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);Kx.displayName="Streamdown";var Zx=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:u=!1})=>{let o=xt(null),c=xt(null),[d,h]=Se(s),[p,m]=Se({x:0,y:0}),[b,_]=Se(!1),[L,S]=Se({x:0,y:0}),[M,O]=Se({x:0,y:0}),U=$e(V=>{h(z=>Math.max(r,Math.min(n,z+V)))},[r,n]),Y=$e(()=>{U(i)},[U,i]),R=$e(()=>{U(-i)},[U,i]),te=$e(()=>{h(s),m({x:0,y:0})},[s]),H=$e(V=>{V.preventDefault();let z=V.deltaY>0?-i:i;U(z)},[U,i]),X=$e(V=>{if(V.button!==0||V.isPrimary===!1)return;_(!0),S({x:V.clientX,y:V.clientY}),O(p);let z=V.currentTarget;z instanceof HTMLElement&&z.setPointerCapture(V.pointerId)},[p]),N=$e(V=>{if(!b)return;V.preventDefault();let z=V.clientX-L.x,K=V.clientY-L.y;m({x:M.x+z,y:M.y+K})},[b,L,M]),de=$e(V=>{_(!1);let z=V.currentTarget;z instanceof HTMLElement&&z.releasePointerCapture(V.pointerId)},[]);return Je(()=>{let V=o.current;if(V)return V.addEventListener("wheel",H,{passive:!1}),()=>{V.removeEventListener("wheel",H)}},[H]),Je(()=>{let V=c.current;if(V&&b)return document.body.style.userSelect="none",V.addEventListener("pointermove",N,{passive:!1}),V.addEventListener("pointerup",de),V.addEventListener("pointercancel",de),()=>{document.body.style.userSelect="",V.removeEventListener("pointermove",N),V.removeEventListener("pointerup",de),V.removeEventListener("pointercancel",de)}},[b,N,de]),ce("div",{className:ee("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:o,style:{cursor:b?"grabbing":"grab"},children:[a?ce("div",{className:ee("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d>=n,onClick:Y,title:"Zoom in",type:"button",children:I(lx,{size:16})}),I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d<=r,onClick:R,title:"Zoom out",type:"button",children:I(cx,{size:16})}),I("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:te,title:"Reset zoom and pan",type:"button",children:I(ux,{size:16})})]}):null,I("div",{className:ee("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:X,ref:c,role:"application",style:{transform:`translate(${p.x}px, ${p.y}px) scale(${d})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Jx=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:i=!0})=>{let[a,s]=Se(null),[u,o]=Se(!1),[c,d]=Se(""),[h,p]=Se(""),[m,b]=Se(0),{mermaid:_}=tt(et),L=xo(),S=_?.errorComponent,{shouldRender:M,containerRef:O}=ax({immediate:n});if(Je(()=>{if(M){if(!L){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),o(!0);let Y=L.getMermaid(r),R=e.split("").reduce((X,N)=>(X<<5)-X+N.charCodeAt(0)|0,0),te=`mermaid-${Math.abs(R)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:H}=await Y.render(te,e);d(H),p(H)}catch(Y){if(!(h||c)){let R=Y instanceof Error?Y.message:"Failed to render Mermaid chart";s(R)}}finally{o(!1)}})()}},[e,r,m,M,L]),!(M||c||h))return I("div",{className:ee("my-4 min-h-[200px]",t),ref:O});if(u&&!c&&!h)return I("div",{className:ee("my-4 flex justify-center p-4",t),ref:O,children:ce("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[I("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),I("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!c&&!h)return S?I("div",{ref:O,children:I(S,{chart:e,error:a,retry:()=>b(R=>R+1)})}):ce("div",{className:ee("rounded-lg border border-red-200 bg-red-50 p-4",t),ref:O,children:[ce("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),ce("details",{className:"mt-2",children:[I("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),I("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let U=c||h;return I("div",{className:ee("size-full",t),"data-streamdown":"mermaid",ref:O,children:I(Zx,{className:ee(n?"size-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:I("div",{"aria-label":"Mermaid chart",className:ee("flex justify-center",n?"size-full items-center":null),dangerouslySetInnerHTML:{__html:U},role:"img"})})})};export{oc as a,iR as b,at as c,St as d,It as e,Ke as f,Nn as g,wn as h,Rn as i,Ko as j,Ia as k,ae as l,ye as m,Fe as n,zt as o,ws as p,ee as q,dx as r,bP as s,et as t,Kx as u,Jx as v};
115
+ //# sourceMappingURL=chunk-YP6YTC7R.js.map
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{a as n}from"./chunk-WKR2RWJ6.js";import{a as e}from"./chunk-HMEGK7JX.js";import"./chunk-VME4UB43.js";import"./chunk-FWHINPYE.js";import"./chunk-V3ZDECK5.js";var t=Object.freeze(JSON.parse(`{"displayName":"COBOL","fileTypes":["ccp","scbl","cobol","cbl","cblle","cblsrce","cblcpy","lks","pdv","cpy","copybook","cobcopy","fd","sel","scb","scbl","sqlcblle","cob","dds","def","src","ss","wks","bib","pco"],"name":"cobol","patterns":[{"match":"^([ *][ *][ *][ *][ *][ *])([Dd]\\\\s.*)$","name":"token.info-token.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([ *][ *][ *][ *][ *][ *])(/.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([ *][ *][ *][ *][ *][ *])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(/.*)$"},{"match":"^[0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s]$","name":"constant.numeric.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"}},"match":"^\\\\s+(78)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"},"3":{"name":"keyword.identifers.cobol"}},"match":"^\\\\s+([0-9]+)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)\\\\s+((?i:constant))"},{"captures":{"1":{"name":"constant.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s])(/.*)$"},{"match":"^\\\\*.*$","name":"comment.line.cobol.fixed"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.cobol"},"4":{"name":"keyword.control.directive.conditional.cobol"}},"match":"((?:^|\\\\s+)(?i:\\\\$set)\\\\s+)((?i:constant)\\\\s+)([0-9A-Za-z][-0-9A-Za-z]+\\\\s*)([-0-9A-Za-z]*)"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\\\()(.*)(\\\\)))"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\")(.*)(\\"))"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\")(\\\\w*)(\\")"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\\\()(.*)(\\\\))"},{"captures":{"0":{"name":"keyword.control.directive.conditional.cobol"},"1":{"name":"invalid.illegal.directive"},"2":{"name":"comment.line.set.cobol"}},"match":"(?:^|\\\\s+)(?i:\\\\$\\\\s*set\\\\s)((?i:01SHUFFLE|64KPARA|64KSECT|AUXOPT|CHIP|DATALIT|EANIM|EXPANDDATA|FIXING|FLAG-CHIP|MASM|MODEL|OPTSIZE|OPTSPEED|PARAS|PROTMODE|REGPARM|SEGCROSS|SEGSIZE|SIGNCOMPARE|SMALLDD|TABLESEGCROSS|TRICKLECHECK|\\\\s)+).*$"},{"captures":{"1":{"name":"keyword.control.directive.cobol"},"2":{"name":"entity.other.attribute-name.preprocessor.cobol"}},"match":"(\\\\$(?:(?i:region)|(?i:end-region)))(.*)$"},{"begin":"\\\\$(?i:doc)(.*)$","end":"\\\\$(?i:end-doc)(.*)$","name":"invalid.illegal.iscobol"},{"match":">>\\\\s*(?i:turn|page|listing|leap-seconds|d)\\\\s+.*$","name":"invalid.illegal.meta.preprocessor.cobolit"},{"match":"(?i:substitute(?:-case|))\\\\s+","name":"invalid.illegal.functions.cobolit"},{"captures":{"1":{"name":"invalid.illegal.keyword.control.directive.conditional.cobol"},"2":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"},"3":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:elif))(.*))$"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:if|else|elif|end-if|end-evaluate|end|define|evaluate|when|display|call-convention|set))(.*))$"},{"captures":{"1":{"name":"comment.line.scantoken.cobol"},"2":{"name":"keyword.cobol"},"3":{"name":"string.cobol"}},"match":"(\\\\*>)\\\\s+(@[0-9A-Za-z][-0-9A-Za-z]+)\\\\s+(.*)$"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(>>.*)$","name":"strong comment.line.set.cobol"},{"match":"([NUnu][Xx]|[HXhx])'\\\\h*'","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])'.*'","name":"invalid.illegal.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\"\\\\h*\\"","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\".*\\"","name":"invalid.illegal.hexadecimal.cobol"},{"match":"[Bb]\\"[01]\\"","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Bb]'[01]'","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Oo]\\"[0-7]*\\"","name":"constant.numeric.integer.octal.cobol"},{"match":"[Oo]\\".*\\"","name":"invalid.illegal.octal.cobol"},{"match":"(#)([0-9A-Za-z][-0-9A-Za-z]+)","name":"meta.symbol.forced.cobol"},{"begin":"((?<![-()0-9A-Z_a-z])(?i:installation|author|source-computer|object-computer|date-written|security|date-compiled)(\\\\.|$))","beginCaptures":{"0":{"name":"keyword.identifiers.cobol"}},"end":"(?=((?<![-_])(?i:remarks|author|date-written|source-computer|object-computer|installation|date-compiled|special-names|security|environment\\\\s+division|data\\\\s+division|working-storage\\\\s+section|input-output\\\\s+section|linkage\\\\s+section|procedure\\\\s+division|local-storage\\\\s+section)|^[ *][ *][ *][ *][ *][ *]\\\\*.*$|^\\\\+$))","name":"comment.block.cobol.remark","patterns":[{"match":"^([ 0-9][ 0-9][ 0-9][ 0-9][ 0-9][ 0-9])","name":"constant.numeric.cobol"}]},{"captures":{"1":{"name":"keyword.start.bracket.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"keyword.end.bracket.cobol"}},"match":"(?<=([(\\\\[]))((-\\\\+)*\\\\s*[ *-9]+)(?=([])]))","name":"constant.numeric.cobol"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"(?<![-_])(?i:true|false|nulls??)(?![-0-9A-Z_a-z])","name":"constant.language.cobol"},{"match":"(?<![-_])(?i:zeroes|alphabetic-lower|alphabetic-upper|alphanumeric-edited|alphabetic|alphabet|alphanumeric|zeros?|spaces?|quotes?|low-values?|high-values?)(?=\\\\s+|[),.])","name":"constant.language.figurative.cobol"},{"begin":"(?i:exec(?:\\\\s+sqlims|\\\\s+sql))","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"^(\\\\s*\\\\*.*)$","name":"comment.line.sql"},{"match":"(--.*)$","name":"comment.line.sql"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-0-9A-Z_a-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+cics)","contentName":"meta.embedded.block.cics","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#cics-keywords"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+dli)","contentName":"meta.embedded.block.dli","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#dli-keywords"},{"include":"#dli-options"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+sqlims)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+ado)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(--.*)$","name":"comment.line.sql"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+html)","contentName":"meta.embedded.block.html","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"text.html.basic"}]},{"begin":"(?i:exec\\\\s+java)","contentName":"meta.embedded.block.java","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"source.java"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(CBL_.*)(\\")"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(PC_.*)(\\")"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(CBL_.*)(')"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(PC_.*)(')"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"('|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[GZgz]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"begin":"(?<![-\\\\w])[GZgz]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[GNgn]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"begin":"(?<![-\\\\w])[GNgn]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[Uu]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.utf8.double.cobol"},{"begin":"(?<![-\\\\w])[Uu]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.utf8.single.cobol"},{"match":"(?<![-_])(?i:id\\\\s+division|identification\\\\s+division|identification|id|property-id|getter|setter|entry|function-id|end\\\\s+attribute|attribute|interface-id|indexer-id|factory|ctl|class-control|options|environment\\\\s+division|environment-name|environment-value|environment|configuration\\\\s+section|configuration|decimal-point\\\\s+is|decimal-point|console\\\\s+is|call-convention|special-names|cursor\\\\s+is|update|picture\\\\s+symbol|currency\\\\s+sign|currency|repository|input-output\\\\s+section|input-output|file\\\\s+section|file-control|select|optional|i-o-control|data\\\\s+division|working-storage\\\\s+section|working-storage|section|local-storage|linkage\\\\s+section|linkage|communication|report|screen\\\\s+section|object-storage|object\\\\s+section|class-object|fd|rd|cd|sd|printing|procedure\\\\s+division|procedure|division|references|debugging|end\\\\s+declaratives|declaratives|end\\\\s+static|end\\\\s+factory|end\\\\s+class-object|based-storage|size|font|national-edited|national)(?![-0-9A-Z_a-z])","name":"keyword.identifiers.cobol"},{"captures":{"1":{"name":"keyword.verb.cobol"},"2":{"name":"entity.name.function.cobol"}},"match":"(?<![-_])((?i:valuetype-id|operator-id|method-id|method|property-id|attribute-id|enum-id|iterator-id|class-id|program-id|operator-id|end\\\\s+program|end\\\\s+valuetype|extension))\\\\.*\\\\s+([-0-9A-Z_a-z]*)"},{"match":"(?<![-_])(?i:implements|inherits|constraints|constrain)(?=[.\\\\s])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:end\\\\s+enum|end\\\\s+interface|end\\\\s+class|end\\\\s+property|end\\\\s+method|end\\\\s+object|end\\\\s+iterator|end\\\\s+function|end\\\\s+operator|end\\\\s+program|end\\\\s+indexer|create|reset|instance|delegate|end-delegate|delegate-id|declare|exception-object|as|stop\\\\s+iterator|stop\\\\s+run|stop)(?=[),.\\\\s])","name":"keyword.identifiers.cobol"},{"match":"\\\\s+(?i:attach\\\\s+method|attach\\\\s+del|attach|detach\\\\s+del|detach\\\\s+method|detach|method|del)(?=[.\\\\s]|$)","name":"keyword.identifiers.cobol"},{"match":"\\\\s+(?i:sync\\\\s+(?i:on))(?=[.\\\\s])","name":"keyword.other.sync.cobol"},{"match":"\\\\s+(?i:try|finally|catch|end-try|throw)(?=[.\\\\s]|$)","name":"keyword.control.catch-exception.cobol"},{"match":"(?<![-_])(?i:select|use|thru|varying|giving|remainder|tallying|through|until|execute|returning|using|chaining|yielding|\\\\+\\\\+include|copy|replace)(?=\\\\s)","name":"keyword.otherverb.cobol"},{"match":"(?i:dynamic)\\\\s+(?i:length)(?=[.\\\\s])","name":"storage.type.dynamiclength.cobol"},{"match":"(?<![-_])(?i:assign|external|prototype|organization|organisation|indexed|column|plus|line\\\\*s*sequential|sequential|access|dynamic|relative|label|block|contains|standard|records|record\\\\s+key|record|is|alternate|duplicates|reel|tape|terminal|disk\\\\sfilename|disk|disc|recording\\\\smode|mode|random)(?=[.\\\\s])","name":"keyword.identifers.cobol"},{"match":"(?<![-_])(?i:max|min|integer-of-date|integer-of-day|integer-part|integer|date-to-yyyymmdd|year-to-yyyy|day-to-yyyyddd|exp|exception-file|exception-location|exception-statement|exception-status|e|variance|integer-of-date|rem|pi|factorial|sqrt|log10|fraction-part|mean|exp|log|char|day-of-integer|date-of-integer|exp10|atan|integer-part|tan|sin|cos|midrange|addr|acos|asin|annuity|present-value|integer-of-day|ord-max|ord-min|ord|random|integer-of-date|sum|standard-deviation|median|reverse|abs|upper-case|lower-case|char-national|numval|mod|range|length|locale-date|locale-time-from-seconds|locale-time|seconds-past-midnight|stored-char-length|seconds-from-formatted-time|seconds-past-midnight|trim|length-an|numval-c|current-date|national-of|display-of|when-compiled|integer-of-boolean|combined-datetime|concatenate)(?=[().\\\\s])","name":"support.function.cobol"},{"captures":{"0":{"name":"support.function.cics.cobol"},"1":{"name":"punctuation.definition.string.end.cobol"},"2":{"name":"keyword.identifers.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(?<![-_])(?i:DFH(?:RESP|VALUE))(\\\\s*\\\\(\\\\s*)([A-Za-z]*)(\\\\s*\\\\))"},{"match":"(?<![-_])(?i:function)(?=[.\\\\s])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:end-accept|end-add|end-sync|end-compute|end-delete|end-display|end-divide|end-set|end-multiply|end-of-page|end-read|end-receive|end-return|end-rewrite|end-search|end-start|end-string|end-subtract|end-unstring|end-write|program|class|interface|enum|interface)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?:by value|by reference|by content|property-value)(?![-0-9A-Z_a-z])","name":"keyword.other.cobol"},{"match":"(?<![-_])(?i:attr-string|automatic|auto-skip|footing|next|group|indicate|source|control|full|required|of|input|output|i-o|extend|file|error|exception|overflow|goto|off|on|proceed|procedures?|through|invalid|data|normal|eop|returning|to|for|giving|into|by|params|remainder|also|numeric|free|depending|converting|replacing|after|before|all|leading|first|recursive|initialized|global|common|initial|resident|reference|content|are\\\\sstandard|are|renames|like|format\\\\stime|values|omitted|value|constant|ascending|descending|key|retry|until|varying|with|no|advancing|up|down|uccurs|ignore\\\\s+lock|lock|length|delimited|count|delimiter|redefines|from\\\\s+console|from\\\\s+command-line|from\\\\s+user\\\\s+name|from\\\\s+day\\\\s+yyyyddd|from\\\\s+day|from\\\\s+time|from\\\\s+day-of-week|from\\\\s+escape|from\\\\s+day\\\\s+yyyyddd|from\\\\s+date\\\\s+yyyymmdd|from\\\\s+date|from|raising|crt\\\\s+status|status|class|upon\\\\s+crt|upon|lines|columns|step|linage|auto|line|position|col|reports|code-set|reporting|arithmetic|localize|program|class|interface|in|at\\\\s+end|page|name)(?![-0-9A-Z_a-z])","name":"keyword.identifers.cobol"},{"captures":{"0":{"name":"keyword.verb.cobol"},"1":{"name":"storage.type.cobol"}},"match":"(?<![-_])(?i:type|new)\\\\s+([A-Za-z][-$.0-9A-Z_a-z]*|[A-Za-z])(?=\\\\.$)"},{"match":"(?<![-_])(?i:string)(?=\\\\s+value|\\\\.)","name":"storage.type.cobol"},{"match":"(?<![-_])(?i:bit|byte|binary-char|binary-char-unsigned|binary-short|binary-short-unsigned|binary.long|binary-c-long|binary-long-unsigned|binary-long|binary-double|binary-double-unsigned|float-short|float-extended|float-long|bit|condition-value|characters|character\\\\s+type|character|comma|crt|decimal|object\\\\+sreference|object-reference|object|list|dictionary|unsigned)(?=[],.\\\\[\\\\s])","name":"storage.type.cobol"},{"captures":{"1":{"name":"keyword.other.verb.cobol"},"2":{"name":"meta.symbol.cobol"}},"match":"(operator-id\\\\s+[-*+/])","name":"keyword.operator-id.cobol"},{"captures":{"1":{"name":"punctuation.accessor.cobol.b3"},"2":{"name":"entity.name.function.b3"}},"match":"(?i:self)(::)([-.0-9A-Z_a-z]*)(?=\\\\.$)"},{"captures":{"1":{"name":"punctuation.accessor.cobol"},"2":{"name":"entity.name.function.cobol"}},"match":"(::)([-.0-9A-Z_a-z]*)"},{"captures":{"0":{"name":"keyword.verb.cobol.aa"},"1":{"name":"storage.type.cobol.bb"}},"match":"(?<![-_])(?i:type)\\\\s+([.0-9A-Za-z]*)"},{"match":"(?<![-_])(?i:if|else|end-if|exit\\\\s+iterator|exit\\\\s+program|exit\\\\s+method|evaluate|end-evaluate|exit\\\\s+perform|perform|end-perform|when\\\\s+other|when|continue|call|end-call|chain|end-chain|invoke|end\\\\s+invoke|end-xml|go\\\\s+to|go|sort|merge|use|xml\\\\s+parse|xml|top\\\\s+run|goback\\\\s+returning|goback|raise|exit\\\\s+function|exit\\\\sparagraph|await)(?![-0-9A-Z_a-z])","name":"keyword.control.cobol"},{"captures":{"1":{"name":"storage.type.picture10.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture10.cobol"},"4":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([Vv][$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)[-+|]"},{"captures":{"1":{"name":"storage.type.picture9.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture9.cobol"},"4":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([Vv][$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)"},{"captures":{"1":{"name":"storage.type.picture8.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture8.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([.Vv][$*-\\\\-/09ABNSUXZabnsuxz]*[().0-9])*"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*\\\\([0-9]*\\\\)[.Vv][$*-\\\\-/09ABNPSUXZabnpsuxz]*","name":"storage.type.picture7.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*\\\\([0-9]*\\\\)[$*-\\\\-/09ABNPSUXZabnpsuxz]*[.Vv][$*-\\\\-/09ABNPSUXZabnpsuxz]*","name":"storage.type.picture6.cobol"},{"captures":{"1":{"name":"storage.type.picture5.cobol"},"2":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)[$*-\\\\-/09ABNPSUXZabnpsuxz]*"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNSUXZabnpsuxz]*\\\\([0-9]*\\\\)","name":"storage.type.picture4.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[Ss]?[9ABNSUXZabnsuxz]*[Vv][9AUXZabuxz]*\\\\([0-9]*\\\\)","name":"storage.type.picture3.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[Ss]?[9ABNSUXZabnsuxz]*[Vv][9AUXZabuxz]*","name":"storage.type.picture2.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-/9ABNPSUVXZabnpsuvxz]*","name":"storage.type.picture1.cobol"},{"captures":{"1":{"name":"invalid.illegal.keyword.verb.acu.cobol"},"2":{"name":"invalid.illegal.constant.numeric.integer"}},"match":"((?<![-_])(?i:binary|computational-4|comp-4|computational-5|comp-5))\\\\(([0-9]*)\\\\)"},{"match":"(?i:cblt-(?:x1-compx-const|x2-compx-const|x4-compx-const|alphanum-const|x9-compx|x8-compx|x8-comp5|x4-compx|x4-comp5|x2-compx|x2-comp5|x1-compx|x1-comp5|x1|vfile-status|vfile-handle|sx8-comp5|sx4-comp5|sx2-comp5|sx1-comp5|subsys-params|splitjoin-buf|screen-position|rtncode|request-context|reqhand-service-info|reqhand-service-funcs|reqhand-response|reqhand-funcs|prog-info-params|prog-info-arg-info|printer-properties|printer-name|printer-info|printer-default|ppointer|pointer|os-ssize|os-size|os-offset|os-info-params|os-flags|node-name|nls-msg-params|nls-msg-number-pair|nls-msg-ins-struct|nls-msg-buffer|mouse-shape|mouse-rect|mouse-pos|mouse-event|mem-validate-param|idp-exit-service-funcs|idp-exit-info|HWND|HINSTANCE|get-scr-line-draw-buffer|get-scr-graphics-buffer|generic-attr-value|generic-attr-rgb-values|generic-attr-information|file-status|fileexist-buf|exit-params|exit-info-params|cancel-proc-params|bytestream-handle|alphanum))","name":"support.function.cbltypes.cobol"},{"match":"(?<![-_])(?i:computational-1|comp-1|computational-2|comp-2|computational-3|comp-3|computational-4|comp-4|computational-x|comp-x|computational-5|comp-5|computational-6|comp-6|computational-n|comp-n|packed-decimal|index|float|double|signed-short|unsigned-short|signed-int|unsigned-int|signed-long|unsigned-long|comp|computational|group-usage|usage\\\\sis\\\\sdisplay|usage\\\\sis\\\\sfont|usage\\\\s+display|binary|mutex-pointer|data-pointer|thread-pointer|sempahore-pointer|event-pointer|program-pointer|procedure-pointer|pointer-32|pointer|window|subwindow|control-type|thread|menu|variant|layout-manager|occurs|typedef|any|times|display\\\\s+blank\\\\s+when|blank\\\\s+when|blank\\\\s+screen|blank|usage\\\\sis|is\\\\spartial|usage|justified|just|right|signed|trailing\\\\s+separate|sign|seperate|sql)(?=[).\\\\s])","name":"storage.type.picture.cobol"},{"match":"(?i:byte-length)\\\\s+[0-9]+","name":"storage.type.length.cobol"},{"match":"(?<![-_])(?i:accept|add|address|allocate|cancel|close|commit|compute|continue|delete|disable|display|bell|divide|eject|enable|enter|evaluate|exhibit|named|exit|free|generate|go\\\\s+to|initialize\\\\sonly|initialize|initiate|inspect|merge|end-set|set|end-invoke|invoke\\\\s+run|invoke|move|corresponding|corr|multiply|otherwise|open|sharing|sort-merge|purge|ready?|kept|receive|release|return|rewrite|rounded|rollback|search|send|sort|collating\\\\s+sequence|collating|start|service|subtract|suppress|terminate|then|unlock|string|unstring|validate|write|next|statement|sentence)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:thread-local)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(\\\\s+|^)(?i:foreground-color|background-color|prompt|underline|reverse-video|no-echo|highlight|blink)(?![-0-9A-Z_a-z])","name":"keyword.screens.cobol"},{"match":"(\\\\s+|^)(?i:bold|high|lowlight|low|background-high|background-low|background-standard)(?![-0-9A-Z_a-z])","name":"invalid.illegal.screens.acu.cobol"},{"match":"(?<![-_])(?i:internal|public|protected|final|private|static|new|abstract|override|readonly|property|async-void|async-value|async)(?=[.\\\\s])","name":"storage.modifier.cobol"},{"match":"[<=>]|<=|>=|<>|[-*+/]|(?<![-_])(?i:b-and|b-or|b-xor|b-exor|b-not|b-left|b-right|and|or|equals?|greater\\\\s+than|less\\\\s+than|greater)(?![-0-9A-Z_a-z])","name":"keyword.operator.cobol"},{"match":"(?i:not\\\\s+at\\\\s+end)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:not)(?![-0-9A-Z_a-z])","name":"keyword.operator.cobol"},{"match":"(?<![-_])(?i:sysout-flush|sysin|stderr|stdout|csp|stdin|sysipt|sysout|sysprint|syslist|syslst|printer|syserr|console|c01|c02|c03|c04|c05|c06|c07|c08|c09|c10|c11|c12|formfeed|switch-0|switch-10|switch-11|switch-12|switch-13|switch-14|switch-15?|switch-2|switch-3|switch-4|switch-5|switch-6|switch-7|switch-8|switch-9|sw0|sw11|sw12|sw13|sw14|sw15?|sw2|sw3|sw4|sw5|sw6|sw7|sw8|sw9|sw10|lc_all|lc_collate|lc_ctype|lc_messages|lc_monetary|lc_numeric|lc_time|ucs-4|utf-8|utf-16)(?![-0-9A-Z_a-z])","name":"support.type.cobol"},{"match":"(?<![-_])(?i:processing.*procedure|xml-information|xml-text|xml-schemal|xml-declaration)(?![-0-9A-Z_a-z])","name":"keyword.xml.cobol"},{"match":"(?<![-_])(?i:json\\\\s+generate|json|end-json|name\\\\sof)(?![-0-9A-Z_a-z])","name":"keyword.json.cobol"},{"match":"(?<![-_])(?i:modify|inquire|tab|title|event|center|label-offset|cell|help-id|cells|push-button|radio-button|page-layout-screen|entry-field|list-box|label|default-font|id|no-tab|unsorted|color|height|width|bind|thread|erase|modeless|scroll|system|menu|title-bar|wrap|destroy|resizeable|user-gray|large-font|newline|3-d|data-columns|display-columns|alignment|separation|cursor-frame-width|divider-color|drag-color|heading-color|heading-divider-color|num-rows|record-data|tiled-headings|vpadding|centered-headings|column-headings|self-act|cancel-button|vscroll|report-composer|clsid|primary-interface|active-x-control|default-interface|default-source|auto-minimize|auto-resize|resource|engraved|initial-state|frame|acuactivexcontrol|activex-res|grid|box|message|namespace|class-name|module|constructor|version|strong|culture|method|handle|exception-value|read-only|dividers|graphical|indexed|termination-value|permanent|boxed|visible|centered|record-position|convert)(?=[,.;\\\\s]|$)","name":"invalid.illegal.acu.cobol"},{"match":"(?<![-_])(?i:actual|auto|automatic|based-storage|complex|connect|contained|core-index|db-access-control-key|db-data-name|db-exception|db-record-name|db-set-name|db-status|dead-lock|endcobol|end-disable|end-enable|end-send|end-transceive|eos|file-limits?|formatted|sort-status|usage-mode)(?=[,.;\\\\s]|$)","name":"invalid.illegal.netcobol.cobol"},{"match":"(?<![-_])(?i:(?:System|Terminal)-Info)(?![-0-9A-Z_a-z])","name":"support.type.cobol.acu strong"},{"match":"(?<![-_])(?i:alter)(?=[.\\\\s])","name":"invalid.illegal.cobol"},{"match":"(?<![-_])(?i:apply|areas?|clock-units|code|com-reg|controls|dbcs|destination|detail|display-1|ending|every|insert|kanjikey|last|left|less|limits?|memory|metaclass|modules|more-labels|multiple|native_binary|native|negative|number|numeric-edited|other|padding|password|pf|ph|postive|processing|queue|recording|reload|removal|rerun|reserved??|rewind|segment-limit|segment|separate|sequence|skip1|skip2|skip3|standard-1|standard-2|sub-queue-1|sub-queue-2|sub-queue-3|sum|symbolic|synchronized|sync|table|test|text|than|top|trace|trailing|unit|words|write-only|at|basis|beginning|bottom|cbl|cf|ch|de|positive|egcs|egi|emi|end|reversed|rf|rh|run|same|order|heading|esi)(?![-0-9A-Z_a-z])","name":"keyword.ibmreserved.cobol"},{"match":"(?<![-_])(?i:active-class|aligned|anycase|boolean|cols?|condition|ec|eo|system-default|function-pointer)(?![-0-9A-Z_a-z])","name":"strong keyword.potential.reserved.cobol"},{"match":"(?i:filler)","name":"keyword.filler.cobol"},{"match":"(?<![-_])(?i:address-of|date|day-of-week|day|debug-content|debug-item|debug-line|debug-item|debug-sub-1|debug-sub-2|debug-sub-3|shift-in|shift-out|sort-control|sort-core-size|sort-file-size|sort-message|sort-return|sort-mode-size|sort-return|tally|time|when-compiled|line-counter|page-counter|return-code|linage-counter|debug-line|debug-name|debug-contents|json-code|json-status|xml-code|xml-event|xml-information|xml-namespace-prefix|xml-namespace|xml-nnamespace-repfix|xml-nnamespace|xml-ntext|jnienvptr|igy-javaiop-call-exception)(?![-0-9A-Z_a-z])","name":"variable.language"},{"match":"(?<![-_])(?i:shortint1|shortint2|shortint3|shortint4|shortint5|shortint6|shortint7|longint1|longint2|longint3|longint4|longint5|longint6|bigint1|bigint2|blob-locator|clob-locator|dbclob-locator|dbclob-file|blob-file|clob-file|clob|dbclob|blob|varbinary|long-varbinary|time-record|timestamp-record|timestamp-offset-record|timestamp-offset|timestamp|rowid|xml|long-varchar)(?=[().\\\\s])","name":"storage.type.sql.picture.cobol"},{"match":"(?<![-_])(?i:self)","name":"keyword.other.self.cobol"},{"match":"(?<![-_])(?i:super)","name":"keyword.other.super.cobol"},{"match":"^([0-9][0-9][0-9][0-9][0-9][0-9])","name":"constant.numeric.cobol"},{"captures":{"1":{"name":"meta.symbol.cobol"},"2":{"name":"constant.numeric.integer"},"3":{"name":"meta.symbol.cobol"},"4":{"name":"constant.numeric.integer"},"5":{"name":"meta.symbol.cobol"}},"match":"(\\\\()([0-9]*)(:)([0-9]*)(\\\\))"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"meta.symbol.cobol"}],"repository":{"cics-keywords":{"match":"(?<![-\\\\w])(?i:abcode|abdump|abend|abort|abprogram|abstime|accum|acee|acqactivity|acqprocess|acquactivity|action|activity|activityid|actpartn|add|address|after|aid|alarm|all|allocate|alter|alternate|altscrnht|altscrnwd|and|anykey|aplkybd|apltext|applid|asa??|asis|asktime|asraintrpt|asrakey|asrapsw|asraregs|asraspc|asrastg|assign|asynchronous|at|attach|attachid|attributes|authenticate|autopage|auxiliary|base64|basicauth|below|bif|binary|bit|bodycharset|bookmark|brdata|brdatalength|brexit|bridge|browsetoken|btrans|buffer|build|burgeability|caddrlength|cancel|card|cbuff|ccsid|certificate|change|changetime|channel|char|characterset|check|chunkend|chunking|chunkno|chunkyes|cicsdatakey|ciphers|class|clear|cliconvert|client|clientaddr|clientaddrnu|clientconv|clientname|clntaddr6nu|clntipfamily|close|closestatus|clrpartn|cmdsec|cnamelength|cnotcompl|codepage|color|commarea|commonname|commonnamlen|comparemax|comparemin|complete|composite|compstatus|condition|confirm|confirmation|connect|consistent|console|container|contexttype|control|convdata|converse|convertst|converttime|convid|copy|counter|country|countrylen|create|critical|ctlchar|current|cursor|cwa|cwaleng|data1??|data2|datalength|datalenth|dataonly|datapointer|dataset|datastr|datatoxml|datatype|datcontainer|date|dateform|datesep|datestring|day|daycount|dayofmonth|dayofweek|dayofyear|days|daysleft|day-of-week|dcounter|ddmmyy|ddmmyyyy|debkey|debrec|debug-contents|debug-item|debug-line|debug-name|debug-sub-1|debug-sub-2|debug-sub-3|deedit|default|define|defresp|defscrnht|defscrnwd|delay|deleteq??|delimiter|deq|destcount|destid|destidleng|detail|detaillength|dfhresp|dfhvalue|digest|digesttype|disconnect|docdelete|docsize|docstatus|doctoken|document|ds3270|dsscs|dump|dumpcode|dumpid|duprec|ecaddr|ecblist|eib|elemname|elemnamelen|elemns|elemnslen|end|endactivity|endbr|endbrowse|endfile|endoutput|enq|enter|entry|entryname|eoc|eods|eprfield|eprfrom|eprinto|eprlength|eprset|eprtype|equal|erase|eraseaup|error|errterm|esmreason|esmresp|event|eventtype|eventual|ewasupp|exception|expect|expirytime|extds|external|extract|facility|facilitytokn|false|faultactlen|faultactor|faultcode|faultcodelen|faultcodestr|faultstring|faultstrlen|fci|fct|field|file|firestatus|flength|fmh|fmhparm|for|force|formattime|formfeed|formfield|free|freekb|freemain|from|fromactivity|fromccsid|fromchannel|fromcodepage|fromdoc|fromflength|fromlength|fromprocess|frset|fulldate|function|gchars|gcodes|gds|generic|get|getmain|getnext|gmmi|groupid|gtec|gteq|handle|head|header|hex|high-values??|hilight|hold|honeom|host|hostcodepage|hostlength|hosttype|hours|httpheader|httpmethod|httprnum|httpversion|httpvnum|ignore|immediate|in|increment|initimg|initparm|initparmlen|inpartn|input|inputevent|inputmsg|inputmsglen|inquire|insert|integer|interval|into|intoccsid|intocodepage|invalidcount|invite|invmpsz|invoke|invokingprog|invpartn|invreq|issuer??|item|iutype|journalname|jtypeid|jusfirst|juslast|justify|katakana|keep|keylength|keynumber|l40|l64|l80|label|langinuse|languagecode|last|lastusetime|ldc|ldcmnem|ldcnum|leavekb|length|lengthlist|level|lightpen|linage-counter|line|lineaddr|line-counter|link|list|listlength|llid|load|locality|localitylen|logmessage|logmode|logonlogmode|logonmsg|low-values??|luname|main|map|mapcolumn|mapfail|mapheight|mapline|maponly|mapped|mappingdev|mapset|mapwidth|massinsert|maxdatalen|maxflength|maximum|maxlength|maxlifetime|maxproclen|mcc|mediatype|message|messageid|metadata|metadatalen|method|methodlength|milliseconds|minimum|minutes|mmddyy|mmddyyyy|mode|modename|monitor|month|monthofyear|move|msr|msrcontrol|name|namelength|natlang|natlanginuse|netname|newpassword|newphrase|newphraselen|next|nexttransid|nleom|noautopage|nocc|nocheck|nocliconvert|noclose|nodata|node|nodocdelete|nodump|noedit|noflush|nohandle|noinconvert|none|nooutconert|noqueue|noquiesce|nosrvconvert|nosuspend|note|notpurgeable|notruncate|nowait|nscontainer|nulls??|numciphers|numevents|numitems|numrec|numroutes|numsegments|numtab|of|oidcard|on|opclass|open|operation|operator|operid|operkeys|operpurge|opid|opsecurity|options|or|orgabcode|organization|organizatlen|orgunit|orgunitlen|outdescr|outline|outpartn|output|owner|pa1|pa2|pa3|page|pagenum|page-counter|paging|parse|partn|partner|partnfail|partnpage|partns|partnset|pass|passbk|password|passwordlen|path|pathlength|pct|pf10??|pf11|pf12|pf13|pf14|pf15|pf16|pf17|pf18|pf19|pf20??|pf21|pf22|pf23|pf24|pf3|pf4|pf5|pf6|pf7|pf8|pf9|pfxleng|phrase|phraselen|piplength|piplist|point|pool|pop|portnumber|portnumnu|post|ppt|predicate|prefix|prepare|princonvid|prinsysid|print|priority|privacy|process|processtype|proclength|procname|profile|program|protect|ps|punch|purge|purgeable|push|put|qname|query|queryparm|querystring|querystrlen|queue|quotes??|random|rba|rbn|rdatt|read|readnext|readprev|readq|reattach|receiver??|recfm|record|recordlen|recordlength|reduce|refparms|refparmslen|relatesindex|relatestype|relatesuri|release|remove|repeatable|repetable|replace|reply|replylength|reqid|requesttype|resclass|reset|resetbr|resid|residlength|resource|resp2??|ressec|restart|restype|result|resume|retain|retcode|retcord|retriece|retrieve|return|returnprog|return-code|rewind|rewrite|ridfld|role|rolelength|rollback|route|routecodes|rprocess|rresource|rrn|rtermid|rtransid|run|saddrlength|scheme|schemename|scope|scopelen|scrnht|scrnwd|seconds|security|segmentlist|send|sender|serialnum|serialnumlen|server|serveraddr|serveraddrnu|serverconv|servername|service|session|sesstoken|set|shared|shift-in|shift-out|sigdata|signal|signoff|signon|sit|snamelength|soapfault|sort-control|sort-core-size|sort-file-size|sort-message|sort-mode-size|sort-return|sosi|spaces??|spoolclose|spoolopen|spoolread|spoolwrite|srvconvert|srvraddr6nu|srvripfamily|ssltype|start|startbr|startbrowse|startcode|state|statelen|stationid|status|statuscode|statuslen|statustext|storage|strfield|stringformat|subaddr|subcodelen|subcodestr|subevent1??|subevent2|subevent3|subevent4|subevent5|subevent6|subevent7|subevent8|sum|suspend|suspstatus|symbol|symbollist|synchronous|synclevel|synconreturn|syncpoint|sysid|tables|tally|task|taskpriority|tcpip|tcpipservice|tct|tctua|tctualeng|td|tellerid|template|termcode|termid|terminal|termpriority|test|text|textkybd|textlength|textprint|time|timeout|timer|timesep|title|to|toactivity|tochannel|tocontainer|toflength|token|tolength|toprocess|trace|tracenum|trailer|tranpriority|transaction|transform|transid|trigger|trt|true|ts|twa|twaleng|type|typename|typenamelen|typens|typenslen|unattend|uncommitted|unescaped|unexpin|unlock|until|uow|update|uri|urimap|url|urllength|userdatakey|userid|username|usernamelen|userpriority|using|validation|value|valuelength|verify|versionlen|volume|volumeleng|wait|waitcics|web|when-compiled|wpmedia1|wpmedia2|wpmedia3|wpmedia4|wrap|writeq??|wsacontext|wsaepr|xctl|xmlcontainer|xmltodata|xmltransform|xrba|year|yyddd|yyddmm|yymmdd|yyyyddd|yyyyddmm|yyyymmdd|zero|zeroes|zeros)(?![-\\\\w])","name":"keyword.verb.cics"},"dli-keywords":{"match":"(?<![-\\\\w])(?i:accept|chkp|deq|dlet|gnp?|gu|isrt|load|log|pos|query|refresh|repl|retrieve|rolb|roll|rols|schd|sets|setu|symchkp|term|xrst)(?![-\\\\w])","name":"keyword.verb.dli"},"dli-options":{"match":"(?<![-\\\\w])(?i:statusgroup|checkpoint|chkp|id|lockclass|segment|info|where|from|using|keyfeedback|feedbacklen|variable|first|last|current|seglength|offset|locked|movenext|getfirst|set|setcond|setzero|setparent|fieldlength|keys|maxlength|length[0-9]*|area[0-9]*|psc|pcs|pcb|sysserve|into)(?![-\\\\w])","name":"keyword.other.dli"},"number-complex-constant":{"match":"([-+])?((([0-9]+(\\\\.[0-9]+))|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdflu]|UL|ul)?(?=\\\\s|\\\\.$|[),])","name":"constant.numeric.cobol"},"number-simple-constant":{"match":"([-+])?([0-9]+)(?=\\\\s|\\\\.$|[),])","name":"constant.numeric.cobol"},"string-double-quoted-constant":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}}},"string-quoted-constant":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"('|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"}},"scopeName":"source.cobol","embeddedLangs":["html","java"]}`)),i=[...e,...n,t];export{i as default};
3
- //# sourceMappingURL=cobol-6DNJTKH3.js.map
2
+ import{a as e}from"./chunk-HMEGK7JX.js";import{a as n}from"./chunk-WKR2RWJ6.js";import"./chunk-VME4UB43.js";import"./chunk-FWHINPYE.js";import"./chunk-V3ZDECK5.js";var t=Object.freeze(JSON.parse(`{"displayName":"COBOL","fileTypes":["ccp","scbl","cobol","cbl","cblle","cblsrce","cblcpy","lks","pdv","cpy","copybook","cobcopy","fd","sel","scb","scbl","sqlcblle","cob","dds","def","src","ss","wks","bib","pco"],"name":"cobol","patterns":[{"match":"^([ *][ *][ *][ *][ *][ *])([Dd]\\\\s.*)$","name":"token.info-token.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([ *][ *][ *][ *][ *][ *])(/.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([ *][ *][ *][ *][ *][ *])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(/.*)$"},{"match":"^[0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s]$","name":"constant.numeric.cobol"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s][0-9\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"comment.line.cobol.fixed"}},"match":"^([- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s][- #$%+.0-9@-Za-z\\\\s])(\\\\*.*)$"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"}},"match":"^\\\\s+(78)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)"},{"captures":{"1":{"name":"constant.numeric.cobol"},"2":{"name":"variable.other.constant"},"3":{"name":"keyword.identifers.cobol"}},"match":"^\\\\s+([0-9]+)\\\\s+([0-9A-Za-z][-0-9A-Z_a-z]+)\\\\s+((?i:constant))"},{"captures":{"1":{"name":"constant.cobol"},"2":{"name":"comment.line.cobol.newpage"}},"match":"^([#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s][#$%.0-9@-Za-z\\\\s])(/.*)$"},{"match":"^\\\\*.*$","name":"comment.line.cobol.fixed"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.cobol"},"4":{"name":"keyword.control.directive.conditional.cobol"}},"match":"((?:^|\\\\s+)(?i:\\\\$set)\\\\s+)((?i:constant)\\\\s+)([0-9A-Za-z][-0-9A-Za-z]+\\\\s*)([-0-9A-Za-z]*)"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\\\()(.*)(\\\\)))"},{"captures":{"1":{"name":"entity.name.function.preprocessor.cobol"},"2":{"name":"storage.modifier.import.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$\\\\s*set\\\\s+)(ilusing)(\\")(.*)(\\"))"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.definition.string.begin.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.definition.string.begin.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\")(\\\\w*)(\\")"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"punctuation.begin.bracket.round.cobol"},"4":{"name":"string.quoted.other.cobol"},"5":{"name":"punctuation.end.bracket.round.cobol"}},"match":"((?i:\\\\$set))\\\\s+(\\\\w+)\\\\s*(\\\\()(.*)(\\\\))"},{"captures":{"0":{"name":"keyword.control.directive.conditional.cobol"},"1":{"name":"invalid.illegal.directive"},"2":{"name":"comment.line.set.cobol"}},"match":"(?:^|\\\\s+)(?i:\\\\$\\\\s*set\\\\s)((?i:01SHUFFLE|64KPARA|64KSECT|AUXOPT|CHIP|DATALIT|EANIM|EXPANDDATA|FIXING|FLAG-CHIP|MASM|MODEL|OPTSIZE|OPTSPEED|PARAS|PROTMODE|REGPARM|SEGCROSS|SEGSIZE|SIGNCOMPARE|SMALLDD|TABLESEGCROSS|TRICKLECHECK|\\\\s)+).*$"},{"captures":{"1":{"name":"keyword.control.directive.cobol"},"2":{"name":"entity.other.attribute-name.preprocessor.cobol"}},"match":"(\\\\$(?:(?i:region)|(?i:end-region)))(.*)$"},{"begin":"\\\\$(?i:doc)(.*)$","end":"\\\\$(?i:end-doc)(.*)$","name":"invalid.illegal.iscobol"},{"match":">>\\\\s*(?i:turn|page|listing|leap-seconds|d)\\\\s+.*$","name":"invalid.illegal.meta.preprocessor.cobolit"},{"match":"(?i:substitute(?:-case|))\\\\s+","name":"invalid.illegal.functions.cobolit"},{"captures":{"1":{"name":"invalid.illegal.keyword.control.directive.conditional.cobol"},"2":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"},"3":{"name":"invalid.illegal.entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:elif))(.*))$"},{"captures":{"1":{"name":"keyword.control.directive.conditional.cobol"},"2":{"name":"entity.name.function.preprocessor.cobol"},"3":{"name":"entity.name.function.preprocessor.cobol"}},"match":"((((>>|\\\\$)\\\\s*)(?i:if|else|elif|end-if|end-evaluate|end|define|evaluate|when|display|call-convention|set))(.*))$"},{"captures":{"1":{"name":"comment.line.scantoken.cobol"},"2":{"name":"keyword.cobol"},"3":{"name":"string.cobol"}},"match":"(\\\\*>)\\\\s+(@[0-9A-Za-z][-0-9A-Za-z]+)\\\\s+(.*)$"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(>>.*)$","name":"strong comment.line.set.cobol"},{"match":"([NUnu][Xx]|[HXhx])'\\\\h*'","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])'.*'","name":"invalid.illegal.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\"\\\\h*\\"","name":"constant.numeric.integer.hexadecimal.cobol"},{"match":"([NUnu][Xx]|[HXhx])\\".*\\"","name":"invalid.illegal.hexadecimal.cobol"},{"match":"[Bb]\\"[01]\\"","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Bb]'[01]'","name":"constant.numeric.integer.boolean.cobol"},{"match":"[Oo]\\"[0-7]*\\"","name":"constant.numeric.integer.octal.cobol"},{"match":"[Oo]\\".*\\"","name":"invalid.illegal.octal.cobol"},{"match":"(#)([0-9A-Za-z][-0-9A-Za-z]+)","name":"meta.symbol.forced.cobol"},{"begin":"((?<![-()0-9A-Z_a-z])(?i:installation|author|source-computer|object-computer|date-written|security|date-compiled)(\\\\.|$))","beginCaptures":{"0":{"name":"keyword.identifiers.cobol"}},"end":"(?=((?<![-_])(?i:remarks|author|date-written|source-computer|object-computer|installation|date-compiled|special-names|security|environment\\\\s+division|data\\\\s+division|working-storage\\\\s+section|input-output\\\\s+section|linkage\\\\s+section|procedure\\\\s+division|local-storage\\\\s+section)|^[ *][ *][ *][ *][ *][ *]\\\\*.*$|^\\\\+$))","name":"comment.block.cobol.remark","patterns":[{"match":"^([ 0-9][ 0-9][ 0-9][ 0-9][ 0-9][ 0-9])","name":"constant.numeric.cobol"}]},{"captures":{"1":{"name":"keyword.start.bracket.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"keyword.end.bracket.cobol"}},"match":"(?<=([(\\\\[]))((-\\\\+)*\\\\s*[ *-9]+)(?=([])]))","name":"constant.numeric.cobol"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"(?<![-_])(?i:true|false|nulls??)(?![-0-9A-Z_a-z])","name":"constant.language.cobol"},{"match":"(?<![-_])(?i:zeroes|alphabetic-lower|alphabetic-upper|alphanumeric-edited|alphabetic|alphabet|alphanumeric|zeros?|spaces?|quotes?|low-values?|high-values?)(?=\\\\s+|[),.])","name":"constant.language.figurative.cobol"},{"begin":"(?i:exec(?:\\\\s+sqlims|\\\\s+sql))","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"^(\\\\s*\\\\*.*)$","name":"comment.line.sql"},{"match":"(--.*)$","name":"comment.line.sql"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-0-9A-Z_a-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+cics)","contentName":"meta.embedded.block.cics","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#cics-keywords"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+dli)","contentName":"meta.embedded.block.dli","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\()","name":"meta.symbol.cobol"},{"include":"#dli-keywords"},{"include":"#dli-options"},{"include":"#string-double-quoted-constant"},{"include":"#string-quoted-constant"},{"include":"#number-complex-constant"},{"include":"#number-simple-constant"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"variable.cobol"}]},{"begin":"(?i:exec\\\\s+sqlims)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+ado)","contentName":"meta.embedded.block.openesql","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"match":"(--.*)$","name":"comment.line.sql"},{"match":"(\\\\*>.*)$","name":"comment.line.modern"},{"match":"(:([-A-Za-z])*)","name":"variable.cobol"},{"include":"source.openesql"}]},{"begin":"(?i:exec\\\\s+html)","contentName":"meta.embedded.block.html","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"text.html.basic"}]},{"begin":"(?i:exec\\\\s+java)","contentName":"meta.embedded.block.java","end":"(?i:end-exec)","name":"keyword.verb.cobol","patterns":[{"include":"source.java"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(CBL_.*)(\\")"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(\\")(PC_.*)(\\")"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(CBL_.*)(')"},{"captures":{"1":{"name":"punctuation.definition.string.begin.cobol"},"2":{"name":"support.function.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(')(PC_.*)(')"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"('|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[GZgz]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"begin":"(?<![-\\\\w])[GZgz]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[GNgn]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.double.cobol"},{"begin":"(?<![-\\\\w])[GNgn]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"},{"begin":"(?<![-\\\\w])[Uu]\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.utf8.double.cobol"},{"begin":"(?<![-\\\\w])[Uu]'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.utf8.single.cobol"},{"match":"(?<![-_])(?i:id\\\\s+division|identification\\\\s+division|identification|id|property-id|getter|setter|entry|function-id|end\\\\s+attribute|attribute|interface-id|indexer-id|factory|ctl|class-control|options|environment\\\\s+division|environment-name|environment-value|environment|configuration\\\\s+section|configuration|decimal-point\\\\s+is|decimal-point|console\\\\s+is|call-convention|special-names|cursor\\\\s+is|update|picture\\\\s+symbol|currency\\\\s+sign|currency|repository|input-output\\\\s+section|input-output|file\\\\s+section|file-control|select|optional|i-o-control|data\\\\s+division|working-storage\\\\s+section|working-storage|section|local-storage|linkage\\\\s+section|linkage|communication|report|screen\\\\s+section|object-storage|object\\\\s+section|class-object|fd|rd|cd|sd|printing|procedure\\\\s+division|procedure|division|references|debugging|end\\\\s+declaratives|declaratives|end\\\\s+static|end\\\\s+factory|end\\\\s+class-object|based-storage|size|font|national-edited|national)(?![-0-9A-Z_a-z])","name":"keyword.identifiers.cobol"},{"captures":{"1":{"name":"keyword.verb.cobol"},"2":{"name":"entity.name.function.cobol"}},"match":"(?<![-_])((?i:valuetype-id|operator-id|method-id|method|property-id|attribute-id|enum-id|iterator-id|class-id|program-id|operator-id|end\\\\s+program|end\\\\s+valuetype|extension))\\\\.*\\\\s+([-0-9A-Z_a-z]*)"},{"match":"(?<![-_])(?i:implements|inherits|constraints|constrain)(?=[.\\\\s])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:end\\\\s+enum|end\\\\s+interface|end\\\\s+class|end\\\\s+property|end\\\\s+method|end\\\\s+object|end\\\\s+iterator|end\\\\s+function|end\\\\s+operator|end\\\\s+program|end\\\\s+indexer|create|reset|instance|delegate|end-delegate|delegate-id|declare|exception-object|as|stop\\\\s+iterator|stop\\\\s+run|stop)(?=[),.\\\\s])","name":"keyword.identifiers.cobol"},{"match":"\\\\s+(?i:attach\\\\s+method|attach\\\\s+del|attach|detach\\\\s+del|detach\\\\s+method|detach|method|del)(?=[.\\\\s]|$)","name":"keyword.identifiers.cobol"},{"match":"\\\\s+(?i:sync\\\\s+(?i:on))(?=[.\\\\s])","name":"keyword.other.sync.cobol"},{"match":"\\\\s+(?i:try|finally|catch|end-try|throw)(?=[.\\\\s]|$)","name":"keyword.control.catch-exception.cobol"},{"match":"(?<![-_])(?i:select|use|thru|varying|giving|remainder|tallying|through|until|execute|returning|using|chaining|yielding|\\\\+\\\\+include|copy|replace)(?=\\\\s)","name":"keyword.otherverb.cobol"},{"match":"(?i:dynamic)\\\\s+(?i:length)(?=[.\\\\s])","name":"storage.type.dynamiclength.cobol"},{"match":"(?<![-_])(?i:assign|external|prototype|organization|organisation|indexed|column|plus|line\\\\*s*sequential|sequential|access|dynamic|relative|label|block|contains|standard|records|record\\\\s+key|record|is|alternate|duplicates|reel|tape|terminal|disk\\\\sfilename|disk|disc|recording\\\\smode|mode|random)(?=[.\\\\s])","name":"keyword.identifers.cobol"},{"match":"(?<![-_])(?i:max|min|integer-of-date|integer-of-day|integer-part|integer|date-to-yyyymmdd|year-to-yyyy|day-to-yyyyddd|exp|exception-file|exception-location|exception-statement|exception-status|e|variance|integer-of-date|rem|pi|factorial|sqrt|log10|fraction-part|mean|exp|log|char|day-of-integer|date-of-integer|exp10|atan|integer-part|tan|sin|cos|midrange|addr|acos|asin|annuity|present-value|integer-of-day|ord-max|ord-min|ord|random|integer-of-date|sum|standard-deviation|median|reverse|abs|upper-case|lower-case|char-national|numval|mod|range|length|locale-date|locale-time-from-seconds|locale-time|seconds-past-midnight|stored-char-length|seconds-from-formatted-time|seconds-past-midnight|trim|length-an|numval-c|current-date|national-of|display-of|when-compiled|integer-of-boolean|combined-datetime|concatenate)(?=[().\\\\s])","name":"support.function.cobol"},{"captures":{"0":{"name":"support.function.cics.cobol"},"1":{"name":"punctuation.definition.string.end.cobol"},"2":{"name":"keyword.identifers.cobol"},"3":{"name":"punctuation.definition.string.end.cobol"}},"match":"(?<![-_])(?i:DFH(?:RESP|VALUE))(\\\\s*\\\\(\\\\s*)([A-Za-z]*)(\\\\s*\\\\))"},{"match":"(?<![-_])(?i:function)(?=[.\\\\s])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:end-accept|end-add|end-sync|end-compute|end-delete|end-display|end-divide|end-set|end-multiply|end-of-page|end-read|end-receive|end-return|end-rewrite|end-search|end-start|end-string|end-subtract|end-unstring|end-write|program|class|interface|enum|interface)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?:by value|by reference|by content|property-value)(?![-0-9A-Z_a-z])","name":"keyword.other.cobol"},{"match":"(?<![-_])(?i:attr-string|automatic|auto-skip|footing|next|group|indicate|source|control|full|required|of|input|output|i-o|extend|file|error|exception|overflow|goto|off|on|proceed|procedures?|through|invalid|data|normal|eop|returning|to|for|giving|into|by|params|remainder|also|numeric|free|depending|converting|replacing|after|before|all|leading|first|recursive|initialized|global|common|initial|resident|reference|content|are\\\\sstandard|are|renames|like|format\\\\stime|values|omitted|value|constant|ascending|descending|key|retry|until|varying|with|no|advancing|up|down|uccurs|ignore\\\\s+lock|lock|length|delimited|count|delimiter|redefines|from\\\\s+console|from\\\\s+command-line|from\\\\s+user\\\\s+name|from\\\\s+day\\\\s+yyyyddd|from\\\\s+day|from\\\\s+time|from\\\\s+day-of-week|from\\\\s+escape|from\\\\s+day\\\\s+yyyyddd|from\\\\s+date\\\\s+yyyymmdd|from\\\\s+date|from|raising|crt\\\\s+status|status|class|upon\\\\s+crt|upon|lines|columns|step|linage|auto|line|position|col|reports|code-set|reporting|arithmetic|localize|program|class|interface|in|at\\\\s+end|page|name)(?![-0-9A-Z_a-z])","name":"keyword.identifers.cobol"},{"captures":{"0":{"name":"keyword.verb.cobol"},"1":{"name":"storage.type.cobol"}},"match":"(?<![-_])(?i:type|new)\\\\s+([A-Za-z][-$.0-9A-Z_a-z]*|[A-Za-z])(?=\\\\.$)"},{"match":"(?<![-_])(?i:string)(?=\\\\s+value|\\\\.)","name":"storage.type.cobol"},{"match":"(?<![-_])(?i:bit|byte|binary-char|binary-char-unsigned|binary-short|binary-short-unsigned|binary.long|binary-c-long|binary-long-unsigned|binary-long|binary-double|binary-double-unsigned|float-short|float-extended|float-long|bit|condition-value|characters|character\\\\s+type|character|comma|crt|decimal|object\\\\+sreference|object-reference|object|list|dictionary|unsigned)(?=[],.\\\\[\\\\s])","name":"storage.type.cobol"},{"captures":{"1":{"name":"keyword.other.verb.cobol"},"2":{"name":"meta.symbol.cobol"}},"match":"(operator-id\\\\s+[-*+/])","name":"keyword.operator-id.cobol"},{"captures":{"1":{"name":"punctuation.accessor.cobol.b3"},"2":{"name":"entity.name.function.b3"}},"match":"(?i:self)(::)([-.0-9A-Z_a-z]*)(?=\\\\.$)"},{"captures":{"1":{"name":"punctuation.accessor.cobol"},"2":{"name":"entity.name.function.cobol"}},"match":"(::)([-.0-9A-Z_a-z]*)"},{"captures":{"0":{"name":"keyword.verb.cobol.aa"},"1":{"name":"storage.type.cobol.bb"}},"match":"(?<![-_])(?i:type)\\\\s+([.0-9A-Za-z]*)"},{"match":"(?<![-_])(?i:if|else|end-if|exit\\\\s+iterator|exit\\\\s+program|exit\\\\s+method|evaluate|end-evaluate|exit\\\\s+perform|perform|end-perform|when\\\\s+other|when|continue|call|end-call|chain|end-chain|invoke|end\\\\s+invoke|end-xml|go\\\\s+to|go|sort|merge|use|xml\\\\s+parse|xml|top\\\\s+run|goback\\\\s+returning|goback|raise|exit\\\\s+function|exit\\\\sparagraph|await)(?![-0-9A-Z_a-z])","name":"keyword.control.cobol"},{"captures":{"1":{"name":"storage.type.picture10.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture10.cobol"},"4":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([Vv][$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)[-+|]"},{"captures":{"1":{"name":"storage.type.picture9.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture9.cobol"},"4":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([Vv][$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)"},{"captures":{"1":{"name":"storage.type.picture8.cobol"},"2":{"name":"constant.numeric.cobol"},"3":{"name":"storage.type.picture8.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)([.Vv][$*-\\\\-/09ABNSUXZabnsuxz]*[().0-9])*"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*\\\\([0-9]*\\\\)[.Vv][$*-\\\\-/09ABNPSUXZabnpsuxz]*","name":"storage.type.picture7.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*\\\\([0-9]*\\\\)[$*-\\\\-/09ABNPSUXZabnpsuxz]*[.Vv][$*-\\\\-/09ABNPSUXZabnpsuxz]*","name":"storage.type.picture6.cobol"},{"captures":{"1":{"name":"storage.type.picture5.cobol"},"2":{"name":"constant.numeric.cobol"}},"match":"(?<![-_])((?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNPSUXZabnpsuxz]*)\\\\(([0-9]*)\\\\)[$*-\\\\-/09ABNPSUXZabnpsuxz]*"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-09ABNSUXZabnpsuxz]*\\\\([0-9]*\\\\)","name":"storage.type.picture4.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[Ss]?[9ABNSUXZabnsuxz]*[Vv][9AUXZabuxz]*\\\\([0-9]*\\\\)","name":"storage.type.picture3.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[Ss]?[9ABNSUXZabnsuxz]*[Vv][9AUXZabuxz]*","name":"storage.type.picture2.cobol"},{"match":"(?<![-_])(?i:pic(?:ture\\\\s+is|ture|\\\\s+is|))\\\\s+[$*-/9ABNPSUVXZabnpsuvxz]*","name":"storage.type.picture1.cobol"},{"captures":{"1":{"name":"invalid.illegal.keyword.verb.acu.cobol"},"2":{"name":"invalid.illegal.constant.numeric.integer"}},"match":"((?<![-_])(?i:binary|computational-4|comp-4|computational-5|comp-5))\\\\(([0-9]*)\\\\)"},{"match":"(?i:cblt-(?:x1-compx-const|x2-compx-const|x4-compx-const|alphanum-const|x9-compx|x8-compx|x8-comp5|x4-compx|x4-comp5|x2-compx|x2-comp5|x1-compx|x1-comp5|x1|vfile-status|vfile-handle|sx8-comp5|sx4-comp5|sx2-comp5|sx1-comp5|subsys-params|splitjoin-buf|screen-position|rtncode|request-context|reqhand-service-info|reqhand-service-funcs|reqhand-response|reqhand-funcs|prog-info-params|prog-info-arg-info|printer-properties|printer-name|printer-info|printer-default|ppointer|pointer|os-ssize|os-size|os-offset|os-info-params|os-flags|node-name|nls-msg-params|nls-msg-number-pair|nls-msg-ins-struct|nls-msg-buffer|mouse-shape|mouse-rect|mouse-pos|mouse-event|mem-validate-param|idp-exit-service-funcs|idp-exit-info|HWND|HINSTANCE|get-scr-line-draw-buffer|get-scr-graphics-buffer|generic-attr-value|generic-attr-rgb-values|generic-attr-information|file-status|fileexist-buf|exit-params|exit-info-params|cancel-proc-params|bytestream-handle|alphanum))","name":"support.function.cbltypes.cobol"},{"match":"(?<![-_])(?i:computational-1|comp-1|computational-2|comp-2|computational-3|comp-3|computational-4|comp-4|computational-x|comp-x|computational-5|comp-5|computational-6|comp-6|computational-n|comp-n|packed-decimal|index|float|double|signed-short|unsigned-short|signed-int|unsigned-int|signed-long|unsigned-long|comp|computational|group-usage|usage\\\\sis\\\\sdisplay|usage\\\\sis\\\\sfont|usage\\\\s+display|binary|mutex-pointer|data-pointer|thread-pointer|sempahore-pointer|event-pointer|program-pointer|procedure-pointer|pointer-32|pointer|window|subwindow|control-type|thread|menu|variant|layout-manager|occurs|typedef|any|times|display\\\\s+blank\\\\s+when|blank\\\\s+when|blank\\\\s+screen|blank|usage\\\\sis|is\\\\spartial|usage|justified|just|right|signed|trailing\\\\s+separate|sign|seperate|sql)(?=[).\\\\s])","name":"storage.type.picture.cobol"},{"match":"(?i:byte-length)\\\\s+[0-9]+","name":"storage.type.length.cobol"},{"match":"(?<![-_])(?i:accept|add|address|allocate|cancel|close|commit|compute|continue|delete|disable|display|bell|divide|eject|enable|enter|evaluate|exhibit|named|exit|free|generate|go\\\\s+to|initialize\\\\sonly|initialize|initiate|inspect|merge|end-set|set|end-invoke|invoke\\\\s+run|invoke|move|corresponding|corr|multiply|otherwise|open|sharing|sort-merge|purge|ready?|kept|receive|release|return|rewrite|rounded|rollback|search|send|sort|collating\\\\s+sequence|collating|start|service|subtract|suppress|terminate|then|unlock|string|unstring|validate|write|next|statement|sentence)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:thread-local)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(\\\\s+|^)(?i:foreground-color|background-color|prompt|underline|reverse-video|no-echo|highlight|blink)(?![-0-9A-Z_a-z])","name":"keyword.screens.cobol"},{"match":"(\\\\s+|^)(?i:bold|high|lowlight|low|background-high|background-low|background-standard)(?![-0-9A-Z_a-z])","name":"invalid.illegal.screens.acu.cobol"},{"match":"(?<![-_])(?i:internal|public|protected|final|private|static|new|abstract|override|readonly|property|async-void|async-value|async)(?=[.\\\\s])","name":"storage.modifier.cobol"},{"match":"[<=>]|<=|>=|<>|[-*+/]|(?<![-_])(?i:b-and|b-or|b-xor|b-exor|b-not|b-left|b-right|and|or|equals?|greater\\\\s+than|less\\\\s+than|greater)(?![-0-9A-Z_a-z])","name":"keyword.operator.cobol"},{"match":"(?i:not\\\\s+at\\\\s+end)(?![-0-9A-Z_a-z])","name":"keyword.verb.cobol"},{"match":"(?<![-_])(?i:not)(?![-0-9A-Z_a-z])","name":"keyword.operator.cobol"},{"match":"(?<![-_])(?i:sysout-flush|sysin|stderr|stdout|csp|stdin|sysipt|sysout|sysprint|syslist|syslst|printer|syserr|console|c01|c02|c03|c04|c05|c06|c07|c08|c09|c10|c11|c12|formfeed|switch-0|switch-10|switch-11|switch-12|switch-13|switch-14|switch-15?|switch-2|switch-3|switch-4|switch-5|switch-6|switch-7|switch-8|switch-9|sw0|sw11|sw12|sw13|sw14|sw15?|sw2|sw3|sw4|sw5|sw6|sw7|sw8|sw9|sw10|lc_all|lc_collate|lc_ctype|lc_messages|lc_monetary|lc_numeric|lc_time|ucs-4|utf-8|utf-16)(?![-0-9A-Z_a-z])","name":"support.type.cobol"},{"match":"(?<![-_])(?i:processing.*procedure|xml-information|xml-text|xml-schemal|xml-declaration)(?![-0-9A-Z_a-z])","name":"keyword.xml.cobol"},{"match":"(?<![-_])(?i:json\\\\s+generate|json|end-json|name\\\\sof)(?![-0-9A-Z_a-z])","name":"keyword.json.cobol"},{"match":"(?<![-_])(?i:modify|inquire|tab|title|event|center|label-offset|cell|help-id|cells|push-button|radio-button|page-layout-screen|entry-field|list-box|label|default-font|id|no-tab|unsorted|color|height|width|bind|thread|erase|modeless|scroll|system|menu|title-bar|wrap|destroy|resizeable|user-gray|large-font|newline|3-d|data-columns|display-columns|alignment|separation|cursor-frame-width|divider-color|drag-color|heading-color|heading-divider-color|num-rows|record-data|tiled-headings|vpadding|centered-headings|column-headings|self-act|cancel-button|vscroll|report-composer|clsid|primary-interface|active-x-control|default-interface|default-source|auto-minimize|auto-resize|resource|engraved|initial-state|frame|acuactivexcontrol|activex-res|grid|box|message|namespace|class-name|module|constructor|version|strong|culture|method|handle|exception-value|read-only|dividers|graphical|indexed|termination-value|permanent|boxed|visible|centered|record-position|convert)(?=[,.;\\\\s]|$)","name":"invalid.illegal.acu.cobol"},{"match":"(?<![-_])(?i:actual|auto|automatic|based-storage|complex|connect|contained|core-index|db-access-control-key|db-data-name|db-exception|db-record-name|db-set-name|db-status|dead-lock|endcobol|end-disable|end-enable|end-send|end-transceive|eos|file-limits?|formatted|sort-status|usage-mode)(?=[,.;\\\\s]|$)","name":"invalid.illegal.netcobol.cobol"},{"match":"(?<![-_])(?i:(?:System|Terminal)-Info)(?![-0-9A-Z_a-z])","name":"support.type.cobol.acu strong"},{"match":"(?<![-_])(?i:alter)(?=[.\\\\s])","name":"invalid.illegal.cobol"},{"match":"(?<![-_])(?i:apply|areas?|clock-units|code|com-reg|controls|dbcs|destination|detail|display-1|ending|every|insert|kanjikey|last|left|less|limits?|memory|metaclass|modules|more-labels|multiple|native_binary|native|negative|number|numeric-edited|other|padding|password|pf|ph|postive|processing|queue|recording|reload|removal|rerun|reserved??|rewind|segment-limit|segment|separate|sequence|skip1|skip2|skip3|standard-1|standard-2|sub-queue-1|sub-queue-2|sub-queue-3|sum|symbolic|synchronized|sync|table|test|text|than|top|trace|trailing|unit|words|write-only|at|basis|beginning|bottom|cbl|cf|ch|de|positive|egcs|egi|emi|end|reversed|rf|rh|run|same|order|heading|esi)(?![-0-9A-Z_a-z])","name":"keyword.ibmreserved.cobol"},{"match":"(?<![-_])(?i:active-class|aligned|anycase|boolean|cols?|condition|ec|eo|system-default|function-pointer)(?![-0-9A-Z_a-z])","name":"strong keyword.potential.reserved.cobol"},{"match":"(?i:filler)","name":"keyword.filler.cobol"},{"match":"(?<![-_])(?i:address-of|date|day-of-week|day|debug-content|debug-item|debug-line|debug-item|debug-sub-1|debug-sub-2|debug-sub-3|shift-in|shift-out|sort-control|sort-core-size|sort-file-size|sort-message|sort-return|sort-mode-size|sort-return|tally|time|when-compiled|line-counter|page-counter|return-code|linage-counter|debug-line|debug-name|debug-contents|json-code|json-status|xml-code|xml-event|xml-information|xml-namespace-prefix|xml-namespace|xml-nnamespace-repfix|xml-nnamespace|xml-ntext|jnienvptr|igy-javaiop-call-exception)(?![-0-9A-Z_a-z])","name":"variable.language"},{"match":"(?<![-_])(?i:shortint1|shortint2|shortint3|shortint4|shortint5|shortint6|shortint7|longint1|longint2|longint3|longint4|longint5|longint6|bigint1|bigint2|blob-locator|clob-locator|dbclob-locator|dbclob-file|blob-file|clob-file|clob|dbclob|blob|varbinary|long-varbinary|time-record|timestamp-record|timestamp-offset-record|timestamp-offset|timestamp|rowid|xml|long-varchar)(?=[().\\\\s])","name":"storage.type.sql.picture.cobol"},{"match":"(?<![-_])(?i:self)","name":"keyword.other.self.cobol"},{"match":"(?<![-_])(?i:super)","name":"keyword.other.super.cobol"},{"match":"^([0-9][0-9][0-9][0-9][0-9][0-9])","name":"constant.numeric.cobol"},{"captures":{"1":{"name":"meta.symbol.cobol"},"2":{"name":"constant.numeric.integer"},"3":{"name":"meta.symbol.cobol"},"4":{"name":"constant.numeric.integer"},"5":{"name":"meta.symbol.cobol"}},"match":"(\\\\()([0-9]*)(:)([0-9]*)(\\\\))"},{"match":"([-0-9A-Z_a-z]*[0-9A-Za-z]|(#?[0-9A-Za-z]+[-0-9A-Z_a-z]*[0-9A-Za-z]))","name":"meta.symbol.cobol"}],"repository":{"cics-keywords":{"match":"(?<![-\\\\w])(?i:abcode|abdump|abend|abort|abprogram|abstime|accum|acee|acqactivity|acqprocess|acquactivity|action|activity|activityid|actpartn|add|address|after|aid|alarm|all|allocate|alter|alternate|altscrnht|altscrnwd|and|anykey|aplkybd|apltext|applid|asa??|asis|asktime|asraintrpt|asrakey|asrapsw|asraregs|asraspc|asrastg|assign|asynchronous|at|attach|attachid|attributes|authenticate|autopage|auxiliary|base64|basicauth|below|bif|binary|bit|bodycharset|bookmark|brdata|brdatalength|brexit|bridge|browsetoken|btrans|buffer|build|burgeability|caddrlength|cancel|card|cbuff|ccsid|certificate|change|changetime|channel|char|characterset|check|chunkend|chunking|chunkno|chunkyes|cicsdatakey|ciphers|class|clear|cliconvert|client|clientaddr|clientaddrnu|clientconv|clientname|clntaddr6nu|clntipfamily|close|closestatus|clrpartn|cmdsec|cnamelength|cnotcompl|codepage|color|commarea|commonname|commonnamlen|comparemax|comparemin|complete|composite|compstatus|condition|confirm|confirmation|connect|consistent|console|container|contexttype|control|convdata|converse|convertst|converttime|convid|copy|counter|country|countrylen|create|critical|ctlchar|current|cursor|cwa|cwaleng|data1??|data2|datalength|datalenth|dataonly|datapointer|dataset|datastr|datatoxml|datatype|datcontainer|date|dateform|datesep|datestring|day|daycount|dayofmonth|dayofweek|dayofyear|days|daysleft|day-of-week|dcounter|ddmmyy|ddmmyyyy|debkey|debrec|debug-contents|debug-item|debug-line|debug-name|debug-sub-1|debug-sub-2|debug-sub-3|deedit|default|define|defresp|defscrnht|defscrnwd|delay|deleteq??|delimiter|deq|destcount|destid|destidleng|detail|detaillength|dfhresp|dfhvalue|digest|digesttype|disconnect|docdelete|docsize|docstatus|doctoken|document|ds3270|dsscs|dump|dumpcode|dumpid|duprec|ecaddr|ecblist|eib|elemname|elemnamelen|elemns|elemnslen|end|endactivity|endbr|endbrowse|endfile|endoutput|enq|enter|entry|entryname|eoc|eods|eprfield|eprfrom|eprinto|eprlength|eprset|eprtype|equal|erase|eraseaup|error|errterm|esmreason|esmresp|event|eventtype|eventual|ewasupp|exception|expect|expirytime|extds|external|extract|facility|facilitytokn|false|faultactlen|faultactor|faultcode|faultcodelen|faultcodestr|faultstring|faultstrlen|fci|fct|field|file|firestatus|flength|fmh|fmhparm|for|force|formattime|formfeed|formfield|free|freekb|freemain|from|fromactivity|fromccsid|fromchannel|fromcodepage|fromdoc|fromflength|fromlength|fromprocess|frset|fulldate|function|gchars|gcodes|gds|generic|get|getmain|getnext|gmmi|groupid|gtec|gteq|handle|head|header|hex|high-values??|hilight|hold|honeom|host|hostcodepage|hostlength|hosttype|hours|httpheader|httpmethod|httprnum|httpversion|httpvnum|ignore|immediate|in|increment|initimg|initparm|initparmlen|inpartn|input|inputevent|inputmsg|inputmsglen|inquire|insert|integer|interval|into|intoccsid|intocodepage|invalidcount|invite|invmpsz|invoke|invokingprog|invpartn|invreq|issuer??|item|iutype|journalname|jtypeid|jusfirst|juslast|justify|katakana|keep|keylength|keynumber|l40|l64|l80|label|langinuse|languagecode|last|lastusetime|ldc|ldcmnem|ldcnum|leavekb|length|lengthlist|level|lightpen|linage-counter|line|lineaddr|line-counter|link|list|listlength|llid|load|locality|localitylen|logmessage|logmode|logonlogmode|logonmsg|low-values??|luname|main|map|mapcolumn|mapfail|mapheight|mapline|maponly|mapped|mappingdev|mapset|mapwidth|massinsert|maxdatalen|maxflength|maximum|maxlength|maxlifetime|maxproclen|mcc|mediatype|message|messageid|metadata|metadatalen|method|methodlength|milliseconds|minimum|minutes|mmddyy|mmddyyyy|mode|modename|monitor|month|monthofyear|move|msr|msrcontrol|name|namelength|natlang|natlanginuse|netname|newpassword|newphrase|newphraselen|next|nexttransid|nleom|noautopage|nocc|nocheck|nocliconvert|noclose|nodata|node|nodocdelete|nodump|noedit|noflush|nohandle|noinconvert|none|nooutconert|noqueue|noquiesce|nosrvconvert|nosuspend|note|notpurgeable|notruncate|nowait|nscontainer|nulls??|numciphers|numevents|numitems|numrec|numroutes|numsegments|numtab|of|oidcard|on|opclass|open|operation|operator|operid|operkeys|operpurge|opid|opsecurity|options|or|orgabcode|organization|organizatlen|orgunit|orgunitlen|outdescr|outline|outpartn|output|owner|pa1|pa2|pa3|page|pagenum|page-counter|paging|parse|partn|partner|partnfail|partnpage|partns|partnset|pass|passbk|password|passwordlen|path|pathlength|pct|pf10??|pf11|pf12|pf13|pf14|pf15|pf16|pf17|pf18|pf19|pf20??|pf21|pf22|pf23|pf24|pf3|pf4|pf5|pf6|pf7|pf8|pf9|pfxleng|phrase|phraselen|piplength|piplist|point|pool|pop|portnumber|portnumnu|post|ppt|predicate|prefix|prepare|princonvid|prinsysid|print|priority|privacy|process|processtype|proclength|procname|profile|program|protect|ps|punch|purge|purgeable|push|put|qname|query|queryparm|querystring|querystrlen|queue|quotes??|random|rba|rbn|rdatt|read|readnext|readprev|readq|reattach|receiver??|recfm|record|recordlen|recordlength|reduce|refparms|refparmslen|relatesindex|relatestype|relatesuri|release|remove|repeatable|repetable|replace|reply|replylength|reqid|requesttype|resclass|reset|resetbr|resid|residlength|resource|resp2??|ressec|restart|restype|result|resume|retain|retcode|retcord|retriece|retrieve|return|returnprog|return-code|rewind|rewrite|ridfld|role|rolelength|rollback|route|routecodes|rprocess|rresource|rrn|rtermid|rtransid|run|saddrlength|scheme|schemename|scope|scopelen|scrnht|scrnwd|seconds|security|segmentlist|send|sender|serialnum|serialnumlen|server|serveraddr|serveraddrnu|serverconv|servername|service|session|sesstoken|set|shared|shift-in|shift-out|sigdata|signal|signoff|signon|sit|snamelength|soapfault|sort-control|sort-core-size|sort-file-size|sort-message|sort-mode-size|sort-return|sosi|spaces??|spoolclose|spoolopen|spoolread|spoolwrite|srvconvert|srvraddr6nu|srvripfamily|ssltype|start|startbr|startbrowse|startcode|state|statelen|stationid|status|statuscode|statuslen|statustext|storage|strfield|stringformat|subaddr|subcodelen|subcodestr|subevent1??|subevent2|subevent3|subevent4|subevent5|subevent6|subevent7|subevent8|sum|suspend|suspstatus|symbol|symbollist|synchronous|synclevel|synconreturn|syncpoint|sysid|tables|tally|task|taskpriority|tcpip|tcpipservice|tct|tctua|tctualeng|td|tellerid|template|termcode|termid|terminal|termpriority|test|text|textkybd|textlength|textprint|time|timeout|timer|timesep|title|to|toactivity|tochannel|tocontainer|toflength|token|tolength|toprocess|trace|tracenum|trailer|tranpriority|transaction|transform|transid|trigger|trt|true|ts|twa|twaleng|type|typename|typenamelen|typens|typenslen|unattend|uncommitted|unescaped|unexpin|unlock|until|uow|update|uri|urimap|url|urllength|userdatakey|userid|username|usernamelen|userpriority|using|validation|value|valuelength|verify|versionlen|volume|volumeleng|wait|waitcics|web|when-compiled|wpmedia1|wpmedia2|wpmedia3|wpmedia4|wrap|writeq??|wsacontext|wsaepr|xctl|xmlcontainer|xmltodata|xmltransform|xrba|year|yyddd|yyddmm|yymmdd|yyyyddd|yyyyddmm|yyyymmdd|zero|zeroes|zeros)(?![-\\\\w])","name":"keyword.verb.cics"},"dli-keywords":{"match":"(?<![-\\\\w])(?i:accept|chkp|deq|dlet|gnp?|gu|isrt|load|log|pos|query|refresh|repl|retrieve|rolb|roll|rols|schd|sets|setu|symchkp|term|xrst)(?![-\\\\w])","name":"keyword.verb.dli"},"dli-options":{"match":"(?<![-\\\\w])(?i:statusgroup|checkpoint|chkp|id|lockclass|segment|info|where|from|using|keyfeedback|feedbacklen|variable|first|last|current|seglength|offset|locked|movenext|getfirst|set|setcond|setzero|setparent|fieldlength|keys|maxlength|length[0-9]*|area[0-9]*|psc|pcs|pcb|sysserve|into)(?![-\\\\w])","name":"keyword.other.dli"},"number-complex-constant":{"match":"([-+])?((([0-9]+(\\\\.[0-9]+))|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)([DFLUdflu]|UL|ul)?(?=\\\\s|\\\\.$|[),])","name":"constant.numeric.cobol"},"number-simple-constant":{"match":"([-+])?([0-9]+)(?=\\\\s|\\\\.$|[),])","name":"constant.numeric.cobol"},"string-double-quoted-constant":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"(\\"|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}}},"string-quoted-constant":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.cobol"}},"end":"('|$)","endCaptures":{"0":{"name":"punctuation.definition.string.end.cobol"}},"name":"string.quoted.single.cobol"}},"scopeName":"source.cobol","embeddedLangs":["html","java"]}`)),i=[...e,...n,t];export{i as default};
3
+ //# sourceMappingURL=cobol-LJNKRWP5.js.map