"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("../../../../../../../_virtual/index16.js"),S=require("../../../../../@babel_highlight@7.16.10/node_modules/@babel/highlight/lib/index.js");var v;function D(){if(v)return b.__exports;v=1,Object.defineProperty(b.__exports,"__esModule",{value:!0}),b.__exports.codeFrameColumns=C,b.__exports.default=q;var x=S.__require();let $=!1;function y(r){return{gutter:r.grey,marker:r.red.bold,message:r.red.bold}}const j=/\r\n|[\n\r\u2028\u2029]/;function W(r,a,e){const c=Object.assign({column:0,line:-1},r.start),m=Object.assign({},c,r.end),{linesAbove:s=2,linesBelow:l=3}=e||{},u=c.line,i=c.column,g=m.line,h=m.column;let _=Math.max(u-(s+1),0),f=Math.min(a.length,g+l);u===-1&&(_=0),g===-1&&(f=a.length);const p=g-u,n={};if(p)for(let t=0;t<=p;t++){const o=t+u;if(!i)n[o]=!0;else if(t===0){const d=a[o-1].length;n[o]=[i,d-i+1]}else if(t===p)n[o]=[0,h];else{const d=a[o-t].length;n[o]=[0,d]}}else i===h?i?n[u]=[i,0]:n[u]=!0:n[u]=[i,h-i];return{start:_,end:f,markerLines:n}}function C(r,a,e={}){const c=(e.highlightCode||e.forceColor)&&(0,x.shouldHighlight)(e),m=(0,x.getChalk)(e),s=y(m),l=(t,o)=>c?t(o):o,u=r.split(j),{start:i,end:g,markerLines:h}=W(a,u,e),_=a.start&&typeof a.start.column=="number",f=String(g).length;let n=(c?(0,x.default)(r,e):r).split(j,g).slice(i,g).map((t,o)=>{const d=i+1+o,M=` ${` ${d}`.slice(-f)} |`,L=h[d],E=!h[d+1];if(L){let k="";if(Array.isArray(L)){const N=t.slice(0,Math.max(L[0]-1,0)).replace(/[^\t]/g," "),O=L[1]||1;k=[`
 `,l(s.gutter,M.replace(/\d/g," "))," ",N,l(s.marker,"^").repeat(O)].join(""),E&&e.message&&(k+=" "+l(s.message,e.message))}return[l(s.marker,">"),l(s.gutter,M),t.length>0?` ${t}`:"",k].join("")}else return` ${l(s.gutter,M)}${t.length>0?` ${t}`:""}`}).join(`
`);return e.message&&!_&&(n=`${" ".repeat(f+1)}${e.message}
${n}`),c?m.reset(n):n}function q(r,a,e,c={}){if(!$){$=!0;const s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{const l=new Error(s);l.name="DeprecationWarning",console.warn(new Error(s))}}return e=Math.max(e,0),C(r,{start:{column:e,line:a}},c)}return b.__exports}exports.__require=D;
//# sourceMappingURL=index.js.map
