"use strict";(()=>{var $,_,we,sn,D,ge,xe,ne,be,P={},ke=[],an=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function F(e,n){for(var t in n)e[t]=n[t];return e}function Te(e){var n=e.parentNode;n&&n.removeChild(e)}function s(e,n,t){var o,r,i,l={};for(i in n)i=="key"?o=n[i]:i=="ref"?r=n[i]:l[i]=n[i];if(arguments.length>2&&(l.children=arguments.length>3?$.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return U(e,l,o,r,null)}function U(e,n,t,o,r){var i={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++we,__i:-1,__u:0};return r==null&&_.vnode!=null&&_.vnode(i),i}function b(e){return e.children}function z(e,n){this.props=e,this.context=n}function E(e,n){if(n==null)return e.__?E(e.__,e.__i+1):null;for(var t;nn&&D.sort(ne));q.__r=0}function Se(e,n,t,o,r,i,l,u,d,c,p){var a,m,f,w,g,y=o&&o.__k||ke,v=n.length;for(t.__d=d,un(t,n,y),d=t.__d,a=0;a0?U(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)!=null?(r.__=e,r.__b=e.__b+1,u=ln(r,t,l=o+a,p),r.__i=u,i=null,u!==-1&&(p--,(i=t[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&a--,typeof r.type!="function"&&(r.__u|=65536)):u!==l&&(u===l+1?a++:u>l?p>d-l?a+=u-l:a--:a=u(d!=null&&!(131072&d.__u)?1:0))for(;l>=0||u=0){if((d=n[l])&&!(131072&d.__u)&&r==d.key&&i===d.type)return l;l--}if(u2&&arguments[2]!==void 0?arguments[2]:{},r=o.callback;typeof o=="function"&&(r=o,o={}),this.options=o;var i=this;function l(g){return r?(setTimeout(function(){r(void 0,g)},0),!0):g}n=this.castInput(n),t=this.castInput(t),n=this.removeEmpty(this.tokenize(n)),t=this.removeEmpty(this.tokenize(t));var u=t.length,d=n.length,c=1,p=u+d;o.maxEditLength&&(p=Math.min(p,o.maxEditLength));var a=[{newPos:-1,components:[]}],m=this.extractCommon(a[0],t,n,0);if(a[0].newPos+1>=u&&m+1>=d)return l([{value:this.join(t),count:t.length}]);function f(){for(var g=-1*c;g<=c;g+=2){var y=void 0,v=a[g-1],h=a[g+1],k=(h?h.newPos:0)-g;v&&(a[g-1]=void 0);var N=v&&v.newPos+1=u&&k+1>=d)return l(fn(i,y.components,t,n,i.useLongestToken));a[g]=y}c++}if(r)(function g(){setTimeout(function(){if(c>p)return r();f()||g()},0)})();else for(;c<=p;){var w=f();if(w)return w}},pushComponent:function(n,t,o){var r=n[n.length-1];r&&r.added===t&&r.removed===o?n[n.length-1]={count:r.count+1,added:t,removed:o}:n.push({count:1,added:t,removed:o})},extractCommon:function(n,t,o,r){for(var i=t.length,l=o.length,u=n.newPos,d=u-r,c=0;u+1f.length?g:f}),c.value=e.join(p)}else c.value=e.join(t.slice(u,u+c.count));u+=c.count,c.added||(d+=c.count)}}var m=n[l-1];return l>1&&typeof m.value=="string"&&(m.added||m.removed)&&e.equals("",m.value)&&(n[l-2].value+=m.value,n.pop()),n}function pn(e){return{newPos:e.newPos,components:e.components.slice(0)}}var zn=new S;var Ne=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,De=/\S/,Re=new S;Re.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!De.test(e)&&!De.test(n)};Re.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t"u"?t:l}:o;return typeof e=="string"?e:JSON.stringify(ue(e,null,null,r),r," ")};M.equals=function(e,n){return S.prototype.equals.call(M,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};function ue(e,n,t,o,r){n=n||[],t=t||[],o&&(e=o(r,e));var i;for(i=0;i=t.__.length&&t.__.push({__V:K}),t.__[e]}function Z(e){return Y=1,vn(qe,e)}function vn(e,n,t){var o=de(V++,2);if(o.t=e,!o.__c&&(o.__=[t?t(n):qe(void 0,n),function(u){var d=o.__N?o.__N[0]:o.__[0],c=o.t(d,u);d!==c&&(o.__N=[c,o.__[1]],o.__c.setState({}))}],o.__c=x,!x.u)){var r=function(u,d,c){if(!o.__c.__H)return!0;var p=o.__c.__H.__.filter(function(m){return m.__c});if(p.every(function(m){return!m.__N}))return!i||i.call(this,u,d,c);var a=!1;return p.forEach(function(m){if(m.__N){var f=m.__[0];m.__=m.__N,m.__N=void 0,f!==m.__[0]&&(a=!0)}}),!(!a&&o.__c.props===u)&&(!i||i.call(this,u,d,c))};x.u=!0;var i=x.shouldComponentUpdate,l=x.componentWillUpdate;x.componentWillUpdate=function(u,d,c){if(this.__e){var p=i;i=void 0,r(u,d,c),i=p}l&&l.call(this,u,d,c)},x.shouldComponentUpdate=r}return o.__N||o.__}function A(e,n){var t=de(V++,7);return wn(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function R(e,n){return Y=8,A(function(){return e},n)}function ze(e){var n=x.context[e.__c],t=de(V++,9);return t.c=e,n?(t.__==null&&(t.__=!0,n.sub(x)),n.props.value):e.__}function yn(){for(var e;e=Ue.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(G),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(n){e.__H.__h=[],_.__e(n,e.__v)}}_.__b=function(e){x=null,Pe&&Pe(e)},_.__r=function(e){Me&&Me(e),V=0;var n=(x=e.__c).__H;n&&(le===x?(n.__h=[],x.__h=[],n.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=K,t.__N=t.i=void 0})):(n.__h.forEach(G),n.__h.forEach(ce),n.__h=[],V=0)),le=x},_.diffed=function(e){Ve&&Ve(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(Ue.push(n)!==1&&Ae===_.requestAnimationFrame||((Ae=_.requestAnimationFrame)||hn)(yn)),n.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==K&&(t.__=t.__V),t.i=void 0,t.__V=K})),le=x=null},_.__c=function(e,n){n.some(function(t){try{t.__h.forEach(G),t.__h=t.__h.filter(function(o){return!o.__||ce(o)})}catch(o){n.some(function(r){r.__h&&(r.__h=[])}),n=[],_.__e(o,t.__v)}}),Be&&Be(e,n)},_.unmount=function(e){We&&We(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(o){try{G(o)}catch(r){n=r}}),t.__H=void 0,n&&_.__e(n,t.__v))};var Oe=typeof requestAnimationFrame=="function";function hn(e){var n,t=function(){clearTimeout(o),Oe&&cancelAnimationFrame(n),setTimeout(e)},o=setTimeout(t,100);Oe&&(n=requestAnimationFrame(t))}function G(e){var n=x,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),x=n}function ce(e){var n=x;e.__c=e.__(),x=n}function wn(e,n){return!e||e.length!==n.length||n.some(function(t,o){return t!==e[o]})}function qe(e,n){return typeof n=="function"?n(e):n}var $e=e=>!!e;var jn=Symbol("unset");function Je(e){let n=[];for(let t of e)n=n.concat(t);return n}var Kn=2**31-1;var je=e=>function({value:t,onChange:o}){return s("div",{className:"decision-buttons"},e.map(r=>s("button",{key:r,onClick:()=>o(r),className:t===r?"active":""},r)))};var Ze="",Xe="node:",Qe=e=>e.config.type==="pwa-node"||e.config.type==="pwa-extensionHost"||e.config.type==="node-terminal",X=e=>e.config.type==="pwa-chrome"||e.config.type==="pwa-msedge",fe=e=>e.absolutePath.startsWith(Ze)||e.url.startsWith(Xe)?2:e.absolutePath.includes("node_modules")?1:0,Q=(e,n)=>e.url.startsWith(Xe)?e.url:e.absolutePath.startsWith(Ze)?e.absolutePath:xn(e.absolutePath)&&n.config.__workspaceFolder?kn(n.config.__workspaceFolder,e.absolutePath):e.absolutePath||e.url,H=e=>{let n=(e.prettyName||e.url).split(/\\|\//g);return n[n.length-1]},xn=e=>en(e)||bn(e),en=e=>e.startsWith("/"),bn=e=>/^[a-z]:/i.test(e),Ke=(e,n)=>{let t=e.split("/"),o=n.split("/");for(;t.length&&o[0]===t[0];)t.shift(),o.shift();return(t.length?new Array(t.length).fill(".."):["."]).concat(o).join("/")},kn=(e,n)=>en(e)?Ke(e,n):Ke(Ge(Ye(e)),Ge(Ye(n))),Ge=e=>e.replace(/\\\//g,"/").replace(/\\/g,"/"),Ye=e=>e.slice(0,1).toUpperCase()+e.slice(1);var pe=Ie(void 0),T=()=>ze(pe);var _e=acquireVsCodeApi(),Tn=(e,n)=>{let t=_e.getState()?.componentState||{};return t.hasOwnProperty(e)?t[e]:n},Ln=(e,n)=>{let t=_e.getState();_e.setState({...t,componentState:{...t?.componentState,[e]:n}})},I=(e,n)=>{let[t,o]=Z(()=>Tn(e,n)),r=R(i=>{Ln(e,i),o(i)},[e,o]);return[t,r]};var nn=()=>{let e=T();return s(b,null,e.breakpoints.map((n,t)=>s(In,{bp:n,key:t})))},Sn=(e,n)=>e.cdp.some(t=>{if("location"in t.args)return!0;if(t.args.url){let o=t.args.url;return n.sources.some(r=>r.url===o)}if(t.args.urlRegex){let o=new RegExp(t.args.urlRegex);return n.sources.some(r=>o.test(r.url))}return!1}),Cn=(e,n)=>{let t=0,o=[s("li",{key:t++},s("p",null,"\u2705 This breakpoint was initially set in:"),s("p",null,s("code",null,e.source.path)," line ",e.params.line," column ",e.params.column||1))];if(!Sn(e,n))return o.push(s(Nn,{bp:e,key:t++})),o;o.push(s("li",{key:t++},s("p",null,"\u2705 In the runtime, the breakpoint was set in:"),s("p",null,s("ul",null,e.cdp.map((l,u)=>s(Hn,{cdp:l,index:u,key:u}))))));let r=e.cdp.filter(l=>l.state===1),i=Je(r.map(l=>l.state===1?l.uiLocations:[]));return i.length?(o.push(s("li",{key:t++},s("p",null,"\u2705 The runtime acknowledged and adjusted the breakpoint, and it mapped back to the following locations:"),s("ul",null,i.map((l,u)=>s(Rn,{loc:l,key:u})))),s("li",{key:t++},s("p",null,"If this is not right, your compiled code might be out of date with your sources. If you don't think this is the case and something else is wrong, please"," ",s("a",{href:"https://github.com/microsoft/vscode-js-debug/issues/new/choose"},"open an issue"),"!"))),o):(o.push(s("li",{key:t++},s(Fn,null))),o)},Fn=()=>{let e=T();return s("p",null,"\u2753 We sent the breakpoint, but it didn't bind to any locations. If this is unexpected:",s("ul",null,s("li",null,"Make sure that your program is loading or running this script. You can add a"," ",s("code",null,"debugger;")," statement to check this: your program will pause when it hits it."),s("li",null,"If your breakpoint is set in certain places, such as on the last empty line of a file, the runtime might not be able to find anywhere to place it."),Qe(e)&&s("li",null,"Unless you"," ",s("a",{href:"https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_breakpoint-validation"},"run with --nolazy"),", Node.js might not resolve breakpoints for code it hasn't parsed yet."),s("li",null,"If necessary, make sure your compiled files are up-to-date with your source files.")))},In=({bp:e})=>{if(!e.source.path)return null;let n=T();return s("div",{className:"content source-container"},s("h2",null,Q({absolutePath:e.source.path,url:e.source.path},n),":",e.params.line,":",e.params.column||1),s("ul",{className:"bp-tracing"},Cn(e,n)))},Nn=({bp:e})=>{let n=T(),t=H({url:e.source.path}),o=n.sources.filter(r=>H(r).toLowerCase()===t.toLowerCase());return o.length?s("li",null,s("p",null,"\u2753 We couldn't find a corresponding source location, but found some other files with the same name:"),s("ul",null,o.map(r=>s("li",{key:r},s(Dn,{original:e.source.path,updated:r.absolutePath||r.url})))),X(n)?s("p",null,"You may need to adjust the ",s("code",null,"webRoot")," in your ",s("code",null,"launch.json")," if you're building from a subfolder, or tweak your ",s("code",null,"sourceMapPathOverrides"),"."):s("p",null,"If this is the same file, you may need to adjust your build tool"," ",X(n)&&s(b,null,"or ",s("code",null,"webRoot")," in the launch.json")," ","to correct the paths.")):s("li",null,s("p",null,s(Pn,{basename:t})))},Dn=({original:e,updated:n})=>s("span",{className:"text-diff"},Ee(e.split(/[/\\]/g),n.split(/[/\\]/g),{ignoreCase:!0}).map((t,o)=>s("span",{className:t.added?"add":t.removed?"rm":"",key:o},o>0?"/":"",t.value.join("/")))),Rn=({loc:e})=>{let t=T().sources.find(o=>o.sourceReference===e.sourceReference);return s(b,null,s("code",null,t?.absolutePath??t?.url??"unknown")," line ",e.lineNumber," column"," ",e.columnNumber)},Hn=({cdp:e,index:n})=>{let t=T(),[o,r]=I(`showCdpBp${n}`,!1),{url:i,line:l,col:u,regex:d}="location"in e.args?{url:t.sources.find(c=>!c.compiledSourceRefToUrl&&c.scriptIds.includes(e.args.location.scriptId))?.url,regex:void 0,line:e.args.location.lineNumber+1,col:(e.args.location.columnNumber||0)+1}:{url:e.args.urlRegex?En(e.args.urlRegex):e.args.url,regex:e.args.urlRegex,line:e.args.lineNumber+1,col:(e.args.columnNumber||0)+1};return s("li",null,s("p",null,s("code",null,i)," line ",l," column ",u," ",d&&s("a",{onClick:()=>r(!o)},"via this regex")),o&&s("p",null,s("code",null,d)))},En=e=>e.replace(/\[([[a-z])[A-Z]\]/g,(n,t)=>t).replace(/\\\\/,"\\").replace(/\\\//g,"/").replace(/\|.+$/g,"").replace(/\\\./g,".");var An=je(["Loaded in directly","Be parsed from a sourcemap"]),Pn=({basename:e})=>{let n=T(),[t,o]=Z(e.endsWith(".js")?void 0:"Be parsed from a sourcemap");return s(b,null,s("p",null,"\u2753 We couldn't find a corresponding source location, and didn't find any source with the name ",s("code",null,e),"."),s("p",null,"How did you expect this file to be loaded? (If you have a compilation step, you should pick 'sourcemap')",s(An,{onChange:o,value:t}),t==="Loaded in directly"&&(X(n)?s("p",null,"It looks like your webpage didn't load this script; breakpoints won't be bound until the file they're set in is loaded. Make sure your script is imported from the right location using a ",s("code",null,"