cloudstudio
Version:
Run VS Code on a remote server.
1 lines • 58.2 kB
JavaScript
(()=>{"use strict";var e={639:(e,n,t)=>{t.d(n,{Z:()=>u});var r=t(204),o=t.n(r),i=t(411),l=t.n(i)()(o());l.push([e.id,"* {\n margin: 0;\n padding: 0;\n}\n\n:root {\n --subtle-bg: rgba(0, 0, 0, 0.05);\n}\n\nbody {\n color: var(--vscode-foreground)\n}\n\na {\n cursor: pointer;\n text-decoration: underline;\n}\n\na:hover {\n text-decoration: none;\n}\n\n.back {\n padding: 1rem 0;\n display: inline-block;\n}\n\n.intro {\n display: flex;\n height: 100vh;\n justify-content: center;\n align-items: center;\n}\n\n.intro > div {\n overflow: hidden;\n box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);\n border: 1px solid var(--vscode-notebook-focusedCellBorder);\n}\n\n.intro > div,\n.content,\n.source-container.expanded {\n background: var(--vscode-notebook-focusedCellBackground);\n border: 1px solid var(--vscode-notebook-focusedCellBorder);\n}\n\n.intro header {\n background: var(--subtle-bg);\n padding: 1rem;\n}\n\n.intro-content {\n padding: 1rem;\n}\n\n.intro-content li {\n list-style-type: none;\n}\n\n.intro-content li a {\n display: block;\n margin-top: 0.5rem;\n padding: 0.5rem;\n}\n\n.intro-content li a:hover {\n background: var(--subtle-bg);\n}\n\n.content {\n margin: 2rem;\n padding: 1rem;\n}\n\n.source-filter {\n display: block;\n width: 100%;\n padding: 0.5rem;\n font-size: 1.1rem;\n margin-bottom: 0.5rem;\n background: var(--vscode-input-background);\n color: var(--vscode-input-foreground);\n border: none;\n}\n\n.source-container {\n padding: 0.5rem;\n}\n\n.source-container code {\n word-break: break-all;\n}\n\n.source-container.expanded + .source-container.expanded {\n border-top: none;\n}\n\n.source-container h2 {\n font-family: var(--editor-font-family);\n font-weight: 300;\n cursor: pointer;\n opacity: 0.8;\n font-size: 1.2rem;\n user-select: none;\n}\n\n.source-container h2:hover {\n opacity: 1;\n}\n\n.source-container.expanded h2 {\n margin-bottom: 0.5rem;\n}\n\n.source-data-grid {\n display: grid;\n grid-template-columns: 25% 75%;\n row-gap: 0.5rem;\n padding: 0.5rem 0.25rem;\n}\n\n.source-data-grid li {\n list-style-type: none;\n}\n\n.source-breadcrumbs {\n padding: 0.5rem 0.25rem 0.75rem;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n\n.source-breadcrumbs li {\n display: inline;\n list-style-type: none;\n}\n\n.bp-tracing code {\n font-size: var(--vscode-editor-font-size);\n}\n\n.bp-tracing li {\n margin: 1rem 0 1rem 1rem;\n}\n\n.bp-tracing p {\n margin: 0.5rem 0;\n}\n\n.bp-tracing li ul {\n margin: 0.5rem 1rem;\n}\n\n.decision-buttons {\n margin: 0.5rem 0;\n}\n\nbutton {\n background: var(--vscode-button-background);\n color: var(--vscode-button-foreground);\n border: 0;\n padding: 0.3rem 0.6rem;\n cursor: pointer;\n}\n\nbutton:hover,\nbutton:focus {\n background: var(--vscode-button-hoverBackground);\n}\n\n.decision-buttons button + button {\n margin-left: 0.25rem;\n}\n\n.decision-buttons button.active {\n background: var(--vscode-button-hoverBackground);\n}\n\n.text-diff .add {\n background: var(--vscode-diffEditor-insertedTextBackground);\n border: 1px solid var(--vscode-diffEditor-insertedTextBorder);\n}\n\n\n.text-diff .rm {\n background: var(--vscode-diffEditor-removedTextBackground);\n text-decoration: line-through;\n border: 1px solid var(--vscode-diffEditor-removedTextBorder);\n}\n",""]);const u=l},379:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var i={},l=[],u=0;u<e.length;u++){var s=e[u],a=r.base?s[0]+r.base:s[0],c=i[a]||0,d="".concat(a," ").concat(c);i[a]=c+1;var f=t(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)n[f].references++,n[f].updater(p);else{var h=o(p,r);r.byIndex=u,n.splice(u,0,{identifier:d,updater:h,references:1})}l.push(d)}return l}function o(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var l=0;l<i.length;l++){var u=t(i[l]);n[u].references--}for(var s=r(e,o),a=0;a<i.length;a++){var c=t(i[a]);0===n[c].references&&(n[c].updater(),n.splice(c,1))}i=s}}},569:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},216:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},565:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},795:e=>{e.exports=function(e){var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,o&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},589:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},411:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",r=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),r&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),r&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var l={};if(r)for(var u=0;u<this.length;u++){var s=this[u][0];null!=s&&(l[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&l[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),t&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=t):c[2]=t),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),n.push(c))}},n}},204:e=>{e.exports=function(e){return e[1]}},468:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.convertChangesToDMP=function(e){for(var n,t,r=[],o=0;o<e.length;o++)t=(n=e[o]).added?1:n.removed?-1:0,r.push([t,n.value]);return r}},236:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.convertChangesToXML=function(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];r.added?n.push("<ins>"):r.removed&&n.push("<del>"),n.push((o=r.value,void 0,o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))),r.added?n.push("</ins>"):r.removed&&n.push("</del>")}var o;return n.join("")}},991:(e,n,t)=>{var r;Object.defineProperty(n,"__esModule",{value:!0}),n.diffArrays=function(e,n,t){return o.diff(e,n,t)},n.arrayDiff=void 0;var o=new(((r=t(126))&&r.__esModule?r:{default:r}).default);n.arrayDiff=o,o.tokenize=function(e){return e.slice()},o.join=o.removeEmpty=function(e){return e}},126:(e,n)=>{function t(){}function r(e,n,t,r,o){for(var i=0,l=n.length,u=0,s=0;i<l;i++){var a=n[i];if(a.removed){if(a.value=e.join(r.slice(s,s+a.count)),s+=a.count,i&&n[i-1].added){var c=n[i-1];n[i-1]=n[i],n[i]=c}}else{if(!a.added&&o){var d=t.slice(u,u+a.count);d=d.map((function(e,n){var t=r[s+n];return t.length>e.length?t:e})),a.value=e.join(d)}else a.value=e.join(t.slice(u,u+a.count));u+=a.count,a.added||(s+=a.count)}}var f=n[l-1];return l>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(n[l-2].value+=f.value,n.pop()),n}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=t,t.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var l=this;function u(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var s=(n=this.removeEmpty(this.tokenize(n))).length,a=e.length,c=1,d=s+a,f=[{newPos:-1,components:[]}],p=this.extractCommon(f[0],n,e,0);if(f[0].newPos+1>=s&&p+1>=a)return u([{value:this.join(n),count:n.length}]);function h(){for(var t=-1*c;t<=c;t+=2){var i=void 0,d=f[t-1],p=f[t+1],h=(p?p.newPos:0)-t;d&&(f[t-1]=void 0);var _=d&&d.newPos+1<s,m=p&&0<=h&&h<a;if(_||m){if(!_||m&&d.newPos<p.newPos?(i=o(p),l.pushComponent(i.components,void 0,!0)):((i=d).newPos++,l.pushComponent(i.components,!0,void 0)),h=l.extractCommon(i,n,e,t),i.newPos+1>=s&&h+1>=a)return u(r(l,i.components,n,e,l.useLongestToken));f[t]=i}else f[t]=void 0}c++}if(i)!function e(){setTimeout((function(){if(c>d)return i();h()||e()}),0)}();else for(;c<=d;){var _=h();if(_)return _}},pushComponent:function(e,n,t){var r=e[e.length-1];r&&r.added===n&&r.removed===t?e[e.length-1]={count:r.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,r){for(var o=n.length,i=t.length,l=e.newPos,u=l-r,s=0;l+1<o&&u+1<i&&this.equals(n[l+1],t[u+1]);)l++,u++,s++;return s&&e.components.push({count:s}),e.newPos=l,u},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},243:(e,n,t)=>{var r;Object.defineProperty(n,"__esModule",{value:!0}),n.diffChars=function(e,n,t){return o.diff(e,n,t)},n.characterDiff=void 0;var o=new(((r=t(126))&&r.__esModule?r:{default:r}).default);n.characterDiff=o},252:(e,n,t)=>{var r;Object.defineProperty(n,"__esModule",{value:!0}),n.diffCss=function(e,n,t){return o.diff(e,n,t)},n.cssDiff=void 0;var o=new(((r=t(126))&&r.__esModule?r:{default:r}).default);n.cssDiff=o,o.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},69:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.diffJson=function(e,n,t){return s.diff(e,n,t)},n.canonicalize=a,n.jsonDiff=void 0;var r,o=(r=t(126))&&r.__esModule?r:{default:r},i=t(479);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}var u=Object.prototype.toString,s=new o.default;function a(e,n,t,r,o){var i,s;for(n=n||[],t=t||[],r&&(e=r(o,e)),i=0;i<n.length;i+=1)if(n[i]===e)return t[i];if("[object Array]"===u.call(e)){for(n.push(e),s=new Array(e.length),t.push(s),i=0;i<e.length;i+=1)s[i]=a(e[i],n,t,r,o);return n.pop(),t.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),"object"===l(e)&&null!==e){n.push(e),s={},t.push(s);var c,d=[];for(c in e)e.hasOwnProperty(c)&&d.push(c);for(d.sort(),i=0;i<d.length;i+=1)s[c=d[i]]=a(e[c],n,t,r,c);n.pop(),t.pop()}else s=e;return s}n.jsonDiff=s,s.useLongestToken=!0,s.tokenize=i.lineDiff.tokenize,s.castInput=function(e){var n=this.options,t=n.undefinedReplacement,r=n.stringifyReplacer,o=void 0===r?function(e,n){return void 0===n?t:n}:r;return"string"==typeof e?e:JSON.stringify(a(e,null,null,o),o," ")},s.equals=function(e,n){return o.default.prototype.equals.call(s,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))}},479:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.diffLines=function(e,n,t){return l.diff(e,n,t)},n.diffTrimmedLines=function(e,n,t){var r=(0,i.generateOptions)(t,{ignoreWhitespace:!0});return l.diff(e,n,r)},n.lineDiff=void 0;var r,o=(r=t(126))&&r.__esModule?r:{default:r},i=t(966),l=new o.default;n.lineDiff=l,l.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var r=0;r<t.length;r++){var o=t[r];r%2&&!this.options.newlineIsToken?n[n.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),n.push(o))}return n}},375:(e,n,t)=>{var r;Object.defineProperty(n,"__esModule",{value:!0}),n.diffSentences=function(e,n,t){return o.diff(e,n,t)},n.sentenceDiff=void 0;var o=new(((r=t(126))&&r.__esModule?r:{default:r}).default);n.sentenceDiff=o,o.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},525:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.diffWords=function(e,n,t){return t=(0,i.generateOptions)(t,{ignoreWhitespace:!0}),s.diff(e,n,t)},n.diffWordsWithSpace=function(e,n,t){return s.diff(e,n,t)},n.wordDiff=void 0;var r,o=(r=t(126))&&r.__esModule?r:{default:r},i=t(966),l=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,u=/\S/,s=new o.default;n.wordDiff=s,s.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!u.test(e)&&!u.test(n)},s.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&l.test(n[t])&&l.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n}},283:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Diff",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"diffChars",{enumerable:!0,get:function(){return i.diffChars}}),Object.defineProperty(n,"diffWords",{enumerable:!0,get:function(){return l.diffWords}}),Object.defineProperty(n,"diffWordsWithSpace",{enumerable:!0,get:function(){return l.diffWordsWithSpace}}),Object.defineProperty(n,"diffLines",{enumerable:!0,get:function(){return u.diffLines}}),Object.defineProperty(n,"diffTrimmedLines",{enumerable:!0,get:function(){return u.diffTrimmedLines}}),Object.defineProperty(n,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(n,"diffCss",{enumerable:!0,get:function(){return a.diffCss}}),Object.defineProperty(n,"diffJson",{enumerable:!0,get:function(){return c.diffJson}}),Object.defineProperty(n,"canonicalize",{enumerable:!0,get:function(){return c.canonicalize}}),Object.defineProperty(n,"diffArrays",{enumerable:!0,get:function(){return d.diffArrays}}),Object.defineProperty(n,"applyPatch",{enumerable:!0,get:function(){return f.applyPatch}}),Object.defineProperty(n,"applyPatches",{enumerable:!0,get:function(){return f.applyPatches}}),Object.defineProperty(n,"parsePatch",{enumerable:!0,get:function(){return p.parsePatch}}),Object.defineProperty(n,"merge",{enumerable:!0,get:function(){return h.merge}}),Object.defineProperty(n,"structuredPatch",{enumerable:!0,get:function(){return _.structuredPatch}}),Object.defineProperty(n,"createTwoFilesPatch",{enumerable:!0,get:function(){return _.createTwoFilesPatch}}),Object.defineProperty(n,"createPatch",{enumerable:!0,get:function(){return _.createPatch}}),Object.defineProperty(n,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(n,"convertChangesToXML",{enumerable:!0,get:function(){return v.convertChangesToXML}});var r,o=(r=t(126))&&r.__esModule?r:{default:r},i=t(243),l=t(525),u=t(479),s=t(375),a=t(252),c=t(69),d=t(991),f=t(606),p=t(249),h=t(608),_=t(805),m=t(468),v=t(236)},606:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.applyPatch=l,n.applyPatches=function(e,n){"string"==typeof e&&(e=(0,o.parsePatch)(e));var t=0;!function r(){var o=e[t++];if(!o)return n.complete();n.loadFile(o,(function(e,t){if(e)return n.complete(e);var i=l(t,o,n);n.patched(o,i,(function(e){if(e)return n.complete(e);r()}))}))}()};var r,o=t(249),i=(r=t(784))&&r.__esModule?r:{default:r};function l(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n&&(n=(0,o.parsePatch)(n)),Array.isArray(n)){if(n.length>1)throw new Error("applyPatch only works with a single input.");n=n[0]}var r,l,u=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=n.hunks,c=t.compareLine||function(e,n,t,r){return n===r},d=0,f=t.fuzzFactor||0,p=0,h=0;function _(e,n){for(var t=0;t<e.lines.length;t++){var r=e.lines[t],o=r.length>0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!c(n+1,u[n],o,i)&&++d>f)return!1;n++}}return!0}for(var m=0;m<a.length;m++){for(var v=a[m],g=u.length-v.oldLines,y=0,b=h+v.oldStart-1,k=(0,i.default)(b,p,g);void 0!==y;y=k())if(_(v,b+y)){v.offset=h+=y;break}if(void 0===y)return!1;p=v.offset+v.oldStart+v.oldLines}for(var w=0,x=0;x<a.length;x++){var P=a[x],S=P.oldStart+P.offset+w-1;w+=P.newLines-P.oldLines;for(var C=0;C<P.lines.length;C++){var j=P.lines[C],O=j.length>0?j[0]:" ",L=j.length>0?j.substr(1):j,M=P.linedelimiters[C];if(" "===O)S++;else if("-"===O)u.splice(S,1),s.splice(S,1);else if("+"===O)u.splice(S,0,L),s.splice(S,0,M),S++;else if("\\"===O){var N=P.lines[C-1]?P.lines[C-1][0]:null;"+"===N?r=!0:"-"===N&&(l=!0)}}}if(r)for(;!u[u.length-1];)u.pop(),s.pop();else l&&(u.push(""),s.push("\n"));for(var F=0;F<u.length-1;F++)u[F]=u[F]+s[F];return u.join("")}},805:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.structuredPatch=l,n.formatPatch=u,n.createTwoFilesPatch=s,n.createPatch=function(e,n,t,r,o,i){return s(e,e,n,t,r,o,i)};var r=t(479);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function l(e,n,t,i,l,u,s){s||(s={}),void 0===s.context&&(s.context=4);var a=(0,r.diffLines)(t,i,s);function c(e){return e.map((function(e){return" "+e}))}a.push({value:"",lines:[]});for(var d=[],f=0,p=0,h=[],_=1,m=1,v=function(e){var n=a[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var l;if(!f){var u=a[e-1];f=_,p=m,u&&(h=s.context>0?c(u.lines.slice(-s.context)):[],f-=h.length,p-=h.length)}(l=h).push.apply(l,o(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?m+=r.length:_+=r.length}else{if(f)if(r.length<=2*s.context&&e<a.length-2){var v;(v=h).push.apply(v,o(c(r)))}else{var g,y=Math.min(r.length,s.context);(g=h).push.apply(g,o(c(r.slice(0,y))));var b={oldStart:f,oldLines:_-f+y,newStart:p,newLines:m-p+y,lines:h};if(e>=a.length-2&&r.length<=s.context){var k=/\n$/.test(t),w=/\n$/.test(i),x=0==r.length&&h.length>b.oldLines;!k&&x&&t.length>0&&h.splice(b.oldLines,0,"\\ No newline at end of file"),(k||x)&&w||h.push("\\ No newline at end of file")}d.push(b),f=0,p=0,h=[]}_+=r.length,m+=r.length}},g=0;g<a.length;g++)v(g);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:u,hunks:d}}function u(e){var n=[];e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),n.push("==================================================================="),n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var r=e.hunks[t];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),n.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),n.push.apply(n,r.lines)}return n.join("\n")+"\n"}function s(e,n,t,r,o,i,s){return u(l(e,n,t,r,o,i,s))}},608:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.calcLineCount=s,n.merge=function(e,n,t){e=a(e,t),n=a(n,t);var r={};(e.index||n.index)&&(r.index=e.index||n.index),(e.newFileName||n.newFileName)&&(c(e)?c(n)?(r.oldFileName=d(r,e.oldFileName,n.oldFileName),r.newFileName=d(r,e.newFileName,n.newFileName),r.oldHeader=d(r,e.oldHeader,n.oldHeader),r.newHeader=d(r,e.newHeader,n.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=n.oldFileName||e.oldFileName,r.newFileName=n.newFileName||e.newFileName,r.oldHeader=n.oldHeader||e.oldHeader,r.newHeader=n.newHeader||e.newHeader)),r.hunks=[];for(var o=0,i=0,l=0,u=0;o<e.hunks.length||i<n.hunks.length;){var s=e.hunks[o]||{oldStart:1/0},_=n.hunks[i]||{oldStart:1/0};if(f(s,_))r.hunks.push(p(s,l)),o++,u+=s.newLines-s.oldLines;else if(f(_,s))r.hunks.push(p(_,u)),i++,l+=_.newLines-_.oldLines;else{var m={oldStart:Math.min(s.oldStart,_.oldStart),oldLines:0,newStart:Math.min(s.newStart+l,_.oldStart+u),newLines:0,lines:[]};h(m,s.oldStart,s.lines,_.oldStart,_.lines),i++,o++,r.hunks.push(m)}}return r};var r=t(805),o=t(249),i=t(280);function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(e){var n=x(e.lines),t=n.oldLines,r=n.newLines;void 0!==t?e.oldLines=t:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function a(e,n){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!n)throw new Error("Must provide a base reference or pass in a patch");return(0,r.structuredPatch)(void 0,void 0,n,e)}return e}function c(e){return e.newFileName&&e.newFileName!==e.oldFileName}function d(e,n,t){return n===t?n:(e.conflict=!0,{mine:n,theirs:t})}function f(e,n){return e.oldStart<n.oldStart&&e.oldStart+e.oldLines<n.oldStart}function p(e,n){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+n,newLines:e.newLines,lines:e.lines}}function h(e,n,t,r,o){var i={offset:n,lines:t,index:0},u={offset:r,lines:o,index:0};for(g(e,i,u),g(e,u,i);i.index<i.lines.length&&u.index<u.lines.length;){var a=i.lines[i.index],c=u.lines[u.index];if("-"!==a[0]&&"+"!==a[0]||"-"!==c[0]&&"+"!==c[0])if("+"===a[0]&&" "===c[0]){var d;(d=e.lines).push.apply(d,l(b(i)))}else if("+"===c[0]&&" "===a[0]){var f;(f=e.lines).push.apply(f,l(b(u)))}else"-"===a[0]&&" "===c[0]?m(e,i,u):"-"===c[0]&&" "===a[0]?m(e,u,i,!0):a===c?(e.lines.push(a),i.index++,u.index++):v(e,b(i),b(u));else _(e,i,u)}y(e,i),y(e,u),s(e)}function _(e,n,t){var r=b(n),o=b(t);if(k(r)&&k(o)){var u,s;if((0,i.arrayStartsWith)(r,o)&&w(t,r,r.length-o.length))return void(u=e.lines).push.apply(u,l(r));if((0,i.arrayStartsWith)(o,r)&&w(n,o,o.length-r.length))return void(s=e.lines).push.apply(s,l(o))}else if((0,i.arrayEqual)(r,o)){var a;return void(a=e.lines).push.apply(a,l(r))}v(e,r,o)}function m(e,n,t,r){var o,i=b(n),u=function(e,n){for(var t=[],r=[],o=0,i=!1,l=!1;o<n.length&&e.index<e.lines.length;){var u=e.lines[e.index],s=n[o];if("+"===s[0])break;if(i=i||" "!==u[0],r.push(s),o++,"+"===u[0])for(l=!0;"+"===u[0];)t.push(u),u=e.lines[++e.index];s.substr(1)===u.substr(1)?(t.push(u),e.index++):l=!0}if("+"===(n[o]||"")[0]&&i&&(l=!0),l)return t;for(;o<n.length;)r.push(n[o++]);return{merged:r,changes:t}}(t,i);u.merged?(o=e.lines).push.apply(o,l(u.merged)):v(e,r?u:i,r?i:u)}function v(e,n,t){e.conflict=!0,e.lines.push({conflict:!0,mine:n,theirs:t})}function g(e,n,t){for(;n.offset<t.offset&&n.index<n.lines.length;){var r=n.lines[n.index++];e.lines.push(r),n.offset++}}function y(e,n){for(;n.index<n.lines.length;){var t=n.lines[n.index++];e.lines.push(t)}}function b(e){for(var n=[],t=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===t&&"+"===r[0]&&(t="+"),t!==r[0])break;n.push(r),e.index++}return n}function k(e){return e.reduce((function(e,n){return e&&"-"===n[0]}),!0)}function w(e,n,t){for(var r=0;r<t;r++){var o=n[n.length-t+r].substr(1);if(e.lines[e.index+r]!==" "+o)return!1}return e.index+=t,!0}function x(e){var n=0,t=0;return e.forEach((function(e){if("string"!=typeof e){var r=x(e.mine),o=x(e.theirs);void 0!==n&&(r.oldLines===o.oldLines?n+=r.oldLines:n=void 0),void 0!==t&&(r.newLines===o.newLines?t+=r.newLines:t=void 0)}else void 0===t||"+"!==e[0]&&" "!==e[0]||t++,void 0===n||"-"!==e[0]&&" "!==e[0]||n++})),{oldLines:n,newLines:t}}},249:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.parsePatch=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function l(){var e={};for(o.push(e);i<t.length;){var r=t[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var l=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);l&&(e.index=l[1]),i++}for(u(e),u(e),e.hunks=[];i<t.length;){var a=t[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(a))break;if(/^@@/.test(a))e.hunks.push(s());else{if(a&&n.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(a));i++}}}function u(e){var n=/^(---|\+\+\+)\s+(.*)$/.exec(t[i]);if(n){var r="---"===n[1]?"old":"new",o=n[2].split("\t",2),l=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(l)&&(l=l.substr(1,l.length-2)),e[r+"FileName"]=l,e[r+"Header"]=(o[1]||"").trim(),i++}}function s(){var e=i,o=t[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),l={oldStart:+o[1],oldLines:void 0===o[2]?1:+o[2],newStart:+o[3],newLines:void 0===o[4]?1:+o[4],lines:[],linedelimiters:[]};0===l.oldLines&&(l.oldStart+=1),0===l.newLines&&(l.newStart+=1);for(var u=0,s=0;i<t.length&&!(0===t[i].indexOf("--- ")&&i+2<t.length&&0===t[i+1].indexOf("+++ ")&&0===t[i+2].indexOf("@@"));i++){var a=0==t[i].length&&i!=t.length-1?" ":t[i][0];if("+"!==a&&"-"!==a&&" "!==a&&"\\"!==a)break;l.lines.push(t[i]),l.linedelimiters.push(r[i]||"\n"),"+"===a?u++:"-"===a?s++:" "===a&&(u++,s++)}if(u||1!==l.newLines||(l.newLines=0),s||1!==l.oldLines||(l.oldLines=0),n.strict){if(u!==l.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==l.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return l}for(;i<t.length;)l();return o}},280:(e,n)=>{function t(e,n){if(n.length>e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}Object.defineProperty(n,"__esModule",{value:!0}),n.arrayEqual=function(e,n){return e.length===n.length&&t(e,n)},n.arrayStartsWith=t},784:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){var r=!0,o=!1,i=!1,l=1;return function u(){if(r&&!i){if(o?l++:r=!1,e+l<=t)return l;i=!0}if(!o)return i||(r=!0),n<=e-l?-l++:(o=!0,u())}}},966:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.generateOptions=function(e,n){if("function"==typeof e)n.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}},225:(e,n,t)=>{t.r(n),t.d(n,{Component:()=>b,Fragment:()=>y,cloneElement:()=>B,createContext:()=>U,createElement:()=>m,createRef:()=>g,h:()=>m,hydrate:()=>R,isValidElement:()=>l,options:()=>o,render:()=>W,toChildArray:()=>j});var r,o,i,l,u,s,a,c,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,n){for(var t in n)e[t]=n[t];return e}function _(e){var n=e.parentNode;n&&n.removeChild(e)}function m(e,n,t){var o,i,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?i=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return v(e,u,o,i,null)}function v(e,n,t,r,l){var u={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++i:l};return null==l&&null!=o.vnode&&o.vnode(u),u}function g(){return{current:null}}function y(e){return e.children}function b(e,n){this.props=e,this.context=n}function k(e,n){if(null==n)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?k(e):null}function w(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!P.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||s)(P)}function P(){for(var e;P.__r=u.length;)e=u.sort((function(e,n){return e.__v.__b-n.__v.__b})),u=[],e.some((function(e){var n,t,r,o,i,l;e.__d&&(i=(o=(n=e).__v).__e,(l=n.__P)&&(t=[],(r=h({},o)).__v=o.__v+1,T(l,o,r,n.__n,void 0!==l.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?k(o):i,o.__h),D(t,o),o.__e!=i&&w(o)))}))}function S(e,n,t,r,o,i,l,u,s,a){var c,p,h,_,m,g,b,w=r&&r.__k||f,x=w.length;for(t.__k=[],c=0;c<n.length;c++)if(null!=(_=t.__k[c]=null==(_=n[c])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?v(null,_,null,null,_):Array.isArray(_)?v(y,{children:_},null,null,null):_.__b>0?v(_.type,_.props,_.key,null,_.__v):_)){if(_.__=t,_.__b=t.__b+1,null===(h=w[c])||h&&_.key==h.key&&_.type===h.type)w[c]=void 0;else for(p=0;p<x;p++){if((h=w[p])&&_.key==h.key&&_.type===h.type){w[p]=void 0;break}h=null}T(e,_,h=h||d,o,i,l,u,s,a),m=_.__e,(p=_.ref)&&h.ref!=p&&(b||(b=[]),h.ref&&b.push(h.ref,null,_),b.push(p,_.__c||m,_)),null!=m?(null==g&&(g=m),"function"==typeof _.type&&_.__k===h.__k?_.__d=s=C(_,s,e):s=O(e,_,h,w,m,s),"function"==typeof t.type&&(t.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=k(h))}for(t.__e=g,c=x;c--;)null!=w[c]&&("function"==typeof t.type&&null!=w[c].__e&&w[c].__e==t.__d&&(t.__d=k(r,c+1)),H(w[c],w[c]));if(b)for(c=0;c<b.length;c++)E(b[c],b[++c],b[++c])}function C(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?C(r,n,t):O(t,r,r,o,r.__e,n));return n}function j(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){j(e,n)})):n.push(e)),n}function O(e,n,t,r,o,i){var l,u,s;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),l=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),l=i}return void 0!==l?l:o.nextSibling}function L(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||p.test(n)?t:t+"px"}function M(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||L(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||L(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?F:N,i):e.removeEventListener(n,i?F:N,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function N(e){this.l[e.type+!1](o.event?o.event(e):e)}function F(e){this.l[e.type+!0](o.event?o.event(e):e)}function T(e,n,t,r,i,l,u,s,a){var c,d,f,p,_,m,v,g,k,w,x,P=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(a=t.__h,s=n.__e=t.__e,n.__h=null,l=[s]),(c=o.__b)&&c(n);try{e:if("function"==typeof P){if(g=n.props,k=(c=P.contextType)&&r[c.__c],w=c?k?k.props.value:c.__:r,t.__c?v=(d=n.__c=t.__c).__=d.__E:("prototype"in P&&P.prototype.render?n.__c=d=new P(g,w):(n.__c=d=new b(g,w),d.constructor=P,d.render=I),k&&k.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,P.getDerivedStateFromProps(g,d.__s))),p=d.props,_=d.state,f)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||n.__v===t.__v){d.props=g,d.state=d.__s,n.__v!==t.__v&&(d.__d=!1),d.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,_,m)}))}d.context=w,d.props=g,d.state=d.__s,(c=o.__r)&&c(n),d.__d=!1,d.__v=n,d.__P=e,c=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(r=h(h({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,_)),x=null!=c&&c.type===y&&null==c.key?c.props.children:c,S(e,Array.isArray(x)?x:[x],n,t,r,i,l,u,s,a),d.base=n.__e,n.__h=null,d.__h.length&&u.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==l&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=A(t.__e,n,t,r,i,l,u,a);(c=o.diffed)&&c(n)}catch(e){n.__v=null,(a||null!=l)&&(n.__e=s,n.__h=!!a,l[l.indexOf(s)]=null),o.__e(e,n,t)}}function D(e,n){o.__c&&o.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){o.__e(e,n.__v)}}))}function A(e,n,t,o,i,l,u,s){var a,c,f,p=t.props,h=n.props,m=n.type,v=0;if("svg"===m&&(i=!0),null!=l)for(;v<l.length;v++)if((a=l[v])&&"setAttribute"in a==!!m&&(m?a.localName===m:3===a.nodeType)){e=a,l[v]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),l=null,s=!1}if(null===m)p===h||s&&e.data===h||(e.data=h);else{if(l=l&&r.call(e.childNodes),c=(p=t.props||d).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!s){if(null!=l)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||M(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||M(e,i,n[i],t[i],r)}(e,h,p,i,s),f)n.__k=[];else if(v=n.props.children,S(e,Array.isArray(v)?v:[v],n,t,o,i&&"foreignObject"!==m,l,u,l?l[0]:t.__k&&k(t,0),s),null!=l)for(v=l.length;v--;)null!=l[v]&&_(l[v]);s||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==p.value)&&M(e,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&M(e,"checked",v,p.checked,!1))}return e}function E(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){o.__e(e,t)}}function H(e,n,t){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||E(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&H(r[i],n,"function"!=typeof e.type);t||null==e.__e||_(e.__e),e.__e=e.__d=void 0}function I(e,n,t){return this.constructor(e,t)}function W(e,n,t){var i,l,u;o.__&&o.__(e,n),l=(i="function"==typeof t)?null:t&&t.__k||n.__k,u=[],T(n,e=(!i&&t||n).__k=m(y,null,[e]),l||d,d,void 0!==n.ownerSVGElement,!i&&t?[t]:l?null:n.firstChild?r.call(n.childNodes):null,u,!i&&t?t:l?l.__e:n.firstChild,i),D(u,e)}function R(e,n){W(e,n,R)}function B(e,n,t){var o,i,l,u=h({},e.props);for(l in n)"key"==l?o=n[l]:"ref"==l?i=n[l]:u[l]=n[l];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):t),v(e.type,u,o||e.key,i||e.ref,null)}function U(e,n){var t={__c:n="__cC"+c++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(x)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}r=f.slice,o={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e}},i=0,l=function(e){return null!=e&&void 0===e.constructor},b.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},t),this.props)),e&&h(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),x(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},b.prototype.render=y,u=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,P.__r=0,c=0},129:(e,n,t)=>{t.r(n),t.d(n,{useCallback:()=>w,useContext:()=>x,useDebugValue:()=>P,useEffect:()=>v,useErrorBoundary:()=>S,useImperativeHandle:()=>b,useLayoutEffect:()=>g,useMemo:()=>k,useReducer:()=>m,useRef:()=>y,useState:()=>_});var r,o,i,l=t(225),u=0,s=[],a=l.options.__b,c=l.options.__r,d=l.options.diffed,f=l.options.__c,p=l.options.unmount;function h(e,n){l.options.__h&&l.options.__h(o,e,u||n),u=0;var t=o.__H||(o.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function _(e){return u=1,m(N,e)}function m(e,n,t){var i=h(r++,2);return i.t=e,i.__c||(i.__=[t?t(n):N(void 0,n),function(e){var n=i.t(i.__[0],e);i.__[0]!==n&&(i.__=[n,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function v(e,n){var t=h(r++,3);!l.options.__s&&M(t.__H,n)&&(t.__=e,t.__H=n,o.__H.__h.push(t))}function g(e,n){var t=h(r++,4);!l.options.__s&&M(t.__H,n)&&(t.__=e,t.__H=n,o.__h.push(t))}function y(e){return u=5,k((function(){return{current:e}}),[])}function b(e,n,t){u=6,g((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))}function k(e,n){var t=h(r++,7);return M(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function w(e,n){return u=8,k((function(){return e}),n)}function x(e){var n=o.context[e.__c],t=h(r++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(o)),n.props.value):e.__}function P(e,n){l.options.useDebugValue&&l.options.useDebugValue(n?n(e):e)}function S(e){var n=h(r++,10),t=_();return n.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}function C(){for(var e;e=s.shift();)if(e.__P)try{e.__H.__h.forEach(O),e.__H.__h.forEach(L),e.__H.__h=[]}catch(n){e.__H.__h=[],l.options.__e(n,e.__v)}}l.options.__b=function(e){o=null,a&&a(e)},l.options.__r=function(e){c&&c(e),r=0;var n=(o=e.__c).__H;n&&(n.__h.forEach(O),n.__h.forEach(L),n.__h=[])},l.options.diffed=function(e){d&&d(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==s.push(n)&&i===l.options.requestAnimationFrame||((i=l.options.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),j&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);j&&(n=requestAnimationFrame(t))})(C)),o=null},l.options.__c=function(e,n){n.some((function(e){try{e.__h.forEach(O),e.__h=e.__h.filter((function(e){return!e.__||L(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],l.options.__e(t,e.__v)}})),f&&f(e,n)},l.options.unmount=function(e){p&&p(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{O(e)}catch(e){n=e}})),n&&l.options.__e(n,t.__v))};var j="function"==typeof requestAnimationFrame;function O(e){var n=o,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),o=n}function L(e){var n=o;e.__c=e.__(),o=n}function M(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function N(e,n){return"function"==typeof n?n(e):n}},266:(e,n,t)=>{t.r(n),t.d(n,{default:()=>v});var r=t(379),o=t.n(r),i=t(795),l=t.n(i),u=t(569),s=t.n(u),a=t(565),c=t.n(a),d=t(216),f=t.n(d),p=t(589),h=t.n(p),_=t(639),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=s().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=f(),o()(_.Z,m);const v=_.Z&&_.Z.locals?_.Z.locals:void 0},678:(e,n)=>{function t(e,n){const t={};for(const r of Object.keys(e)){const o=e[r];n(o,r)&&(t[r]=o)}return t}Object.defineProperty(n,"__esModule",{value:!0}),n.posInt32Counter=n.invertMap=n.upcastPartial=n.pick=n.flatten=n.bisectArray=n.trailingEdgeThrottle=n.debounce=n.memoizeWeak=n.memoize=n.once=n.getCaseInsensitiveProperty=n.caseInsensitiveMerge=n.walkObject=n.sortKeys=n.filterObject=n.mapKeys=n.mapValues=n.filterValues=n.assertNever=n.isInstanceOf=n.removeUndefined=n.removeNulls=n.truthy=void 0,n.truthy=e=>!!e,n.removeNulls=e=>t(e,(e=>null!==e)),n.removeUndefined=e=>t(e,(e=>void 0!==e)),n.isInstanceOf=e=>n=>n instanceof e,n.assertNever=(e,n)=>{throw new Error(n.replace("{value}",JSON.stringify(e)))},n.filterValues=t,n.mapValues=function(e,n){const t={};for(const r of Object.keys(e)){const o=e[r];t[r]=n(o,r)}return t},n.mapKeys=function(e,n){const t={};for(const r of Object.keys(e)){const o=n(r,e[r]);void 0!==o&&(t[o]=e[r])}return t},n.filterObject=function(e,n){const t={};for(const r of Object.keys(e))n(r,e[r])&&(t[r]=e[r]);return t},n.sortKeys=function(e,n){if(!e||"object"!=typeof e||e instanceof Array)return e;const t={};for(const r of Object.keys(e).sort(n))t[r]=e[r];return t},n.walkObject=function e(n,t){if(n=t(n))if(n instanceof Array)n=n.map((n=>e(n,t)));else if("object"==typeof n&&n)for(const r of Object.keys(n))n[r]=e(n[r],t);return n},n.caseInsensitiveMerge=function(...e){if(0===e.length)return{};const n={},t=Object.create(null);for(const r of e)if(r)for(const e of Object.keys(r)){const o=e.toLowerCase();t[o]?n[t[o]]=r[e]:(t[o]=e,n[e]=r[e])}return n},n.getCaseInsensitiveProperty=function(e,n){if(e.hasOwnProperty(n))return e[n];const t=n.toLowerCase();for(const n of Object.keys(e))if(n.toLowerCase()===t)return e[n]};const r=Symbol("unset");n.once=function(e){let n=r;const t=(...o)=>(n===r&&(t.value=n=e(...o)),n);return t.forget=()=>{n=r,t.value=void 0},t.value=void 0,t},n.memoize=function(e){const n=new Map,t=t=>{if(n.has(t))return n.get(t);const r=e(t);return n.set(t,r),r};return t.clear=()=>n.clear(),t},n.memoizeWeak=function(e){const n=new WeakMap;return t=>{if(n.has(t))return n.get(t);const r=e(t);return n.set(t,r),r}},n.debounce=function(e,n){let t;const r=()=>{void 0!==t&&clearTimeout(t),t=setTimeout((()=>{t=void 0,n()}),e)};return r.clear=()=>{t&&(clearTimeout(t),t=void 0)},r},n.trailingEdgeThrottle=function(e,n){let t;const r=()=>{void 0===t&&(t=setTimeout((()=>{t=void 0,n()}),e))};return r.queued=()=>!!t,r.clear=()=>{t&&(clearTimeout(t),t=void 0)},r},n.bisectArray=function(e,n){const t=[],r=[];for(const o of e)n(o)?t.push(o):r.push(o);return[t,r]},n.flatten=function(e){let n=[];for(const t of e)n=n.concat(t);return n},n.pick=function(e,n){const t={};for(const r of n)t[r]=e[r];return t},n.upcastPartial=e=>e,n.invertMap=function(e){const n=new Map;for(const[t,r]of e)n.set(r,t);return n},n.posInt32Counter=()=>{let e=0;return()=>2147483647&e++}},969:(e,n,t)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.BreakpointHelper=void 0;const r=t(283),o=t(225),i=t(129),l=t(678),u=t(26),s=t(253),a=t(202),c=t(920);n.BreakpointHelper=()=>{const e=(0,a.useDump)();return(0,o.h)(o.Fragment,null,e.breakpoints.map(((e,n)=>(0,o.h)(f,{bp:e,key:n}))))};const d=()=>{const e=(0,a.useDump)();return(0,o.h)("p",null,"❓ We sent the breakpoint, but it didn't bind to any locations. If this is unexpected:",(0,o.h)("ul",null,(0,o.h)("li",null,"Make sure that your program is loading or running this script. You can add a"," ",(0,o.h)("code",null,"debugger;")," statement to check this: your program will pause when it hits it."),(0,o.h)("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."),(0,s.isNodeType)(e)&&(0,o.h)("li",null,"Unless you"," ",(0,o.h)("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."),(0,o.h)("li",null,"If necessary, make sure your compiled files are up-to-date with your source files.")))},f=({bp:e})=>{if(!e.source.path)return null;const n=(0,a.useDump)();return(0,o.h)("div",{className:"content source-container"},(0,o.h)("h2",null,(0,s.prettyName)({absolutePath:e.source.path,url:e.source.path},n),":",e.params.line,":",e.params.column||1),(0,o.h)("ul",{className:"bp-tracing"},((e,n)=>{let t=0;const r=[(0,o.h)("li",{key:t++},(0,o.h)("p",null,"✅ This breakpoint was initially set in:"),(0,o.h)("p",null,(0,o.h)("code",null,e.source.path)," line ",e.params.line," column ",e.params.column||1))];if(!((e,n)=>e.cdp.some((e=>{if("location"in e.args)return!0;if(e.args.url){const t=e.args.url;return n.sources.some((e=>e.url===t))}if(e.args.urlRegex){const t=new RegExp(e.args.urlRegex);return n.sources.some((e=>t.test(e.url)))}return!1})))(e,n))return r.push((0,o.h)(p,{bp:e,key:t++})),r;r.push((0,o.h)("li",{key:t++},(0,o.h)("p",null,"✅ In the runtime, the breakpoint was set in:"),(0,o.h)("p",null,(0,o.h)("ul",null,e.cdp.map(((e,n)=>(0,o.h)(m,{cdp:e,index:n,key:n})))))));const i=e.cdp.filter((e=>1===e.state)),u=(0,l.flatten)(i.map((e=>1===e.state?e.uiLocations:[])));return u.length?(r.push((0,o.h)("li",{key:t++},(0,o.h)("p",null,"✅ The runtime acknowledged and adjusted the breakpoint, and it mapped back to the following locations:"),(0,o.h)("ul",null,u.map(((e,n)=>(0,o.h)(_,{loc:e,key:n}))))),(0,o.h)("li",{key:t++},(0,o.h)("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"," ",(0,o.h)("a",{href:"https://github.com/microsoft/vscode-js-debug/issues/new/choose"},"open an issue"),"!"))),r):(r.push((0,o.h)("li",{key:t++},(0,o.h)(d,null))),r)})(e,n)))},p=({bp:e})=>{const n=(0,a.useDump)(),t=(0,s.basename)({url:e.source.path}),r=n.sources.filter((e=>(0,s.basename)(e).toLowerCase()===t.toLowerCase()));return r.length?(0,o.h)("li",null,(0,o.h)("p",null,"❓ We couldn't find a corresponding source location, but found some other files with the same name:"),(0,o.h)("ul",null,r.map((n=>(0,o.h)("li",{key:n},(0,o.h)(h,{original:e.source.path,updated:n.absolutePath||n.url}))))),(0,s.isBrowserType)(n)?(0,o.h)("p",null,"You may need to adjust the ",(0,o.h)("code",null,"webRoot")," in your ",(0,o.h)("code",null,"launch.json")," if you're building from a subfolder, or tweak your ",(0,o.h)("code",null,"sourceMapPathOverrides"),"."):(0,o.h)("p",null,"If this is the same file, you may need to adjust your build tool"," ",(0,s.isBrowserType)(n)&&(0,o.h)(o.Fragment,null,"or ",(0,o.h)("code",null,"webRoot")," in the launch.json")," ","to correct the paths.")):(0,o.h)("li",null,(0,o.h)("p",null,(0,o.h)(y,{basename:t})))},h=({original:e,updated:n})=>(0,o.h)("span",{className:"text-diff"},(0,r.diffChars)(e,n,{ignoreCase:!0}).map(((e,n)=>(0,o.h)("span",{className:e.added?"add":e.removed?"rm":"",key:n},e.value)))),_=({loc:e})=>{var n,t;const r=(0,a.useDump)().sources.find((n=>n.sourceReference===e.sourceReference));return(0,o.h)(o.Fragment,null,(0,o.h)("code",null,null!==(t=null!==(n=null==r?void 0:r.absolutePath)&&void 0!==n?n:null==r?void 0:r.url)&&void 0!==t?t:"unknown")," line ",e.lineNumber," column"," ",e.columnNumber)},m=({cdp:e,index:n})=>{var t;const r=(0,a.useDump)(),[i,l]=(0,c.usePersistedState)(`showCdpBp${n}`,!1),{url:u,line:s,col:d,regex:f}="location"in e.args?{url:null===(t=r.sources.find((n=>!n.compiledSourceRefToUrl&&n.scriptIds.includes(e.args.location.scriptId))))||void 0===t?void 0:t.url,regex:void 0,line:e.args.location.lineNumber+1,col:(e.args.location.columnNumber||0)+1}:{url:e.args.urlRegex?v(e.args.urlRegex):e.args.url,regex:e.args.urlRegex,line:e.args.lineNumber+1,col:(e.args.columnNumber||0)+1};return(0,o.h)("li",null,(0,o.h)("p",null,(0,o.h)("code",null,u)," line ",s," column ",d," ",f&&(0,o.h)("a",{onClick:()=>l(!i)},"via this regex")),i&&(0,o.h)("p",null,(0,o.h)("code",null,f)))},v=e=>e.replace(/\[([[a-z])[A-Z]\]/g,((e,n)=>n)).replace(/\\\\/,"\\").replace(/\\\//g,"/").replace(/\|.+$/g,"").replace(/\\\./g,"."),g=(0,u.DecisionButtons)(["Loaded in directly","Be parsed from a sourcemap"]),y=({basename:e})=>{const n=(0,a.useDump)(),[t,r]=(0,i.useState)(e.endsWith(".js")?void 0:"Be parsed from a sourcemap");return(0,o.h)(o.Fragment,null,(0,o.h)("p",null,"❓ We couldn't find a corresponding source location, and didn't find any source with the name ",(0,o.h)("code",null,e),"."),(0,o.h)("p",null,"How did you expect this file to be loaded? (If you have a compilation step, you should pick 'sourcemap')",(0,o.h)(g,{onChange:r,value:t}),"Loaded in directly"===t&&((0,s.isBrowserType)(n)?(0,o.h)("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 ",(0,o.h)("code",null,"<script>")," tag."):(0,o.h)("p",null,"It looks like your program 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 with a"," ",(0,o.h)("code",null,"require()")," or ",(0,o.h)("code",null,"import")," statement, such as"," ",(0,o.h)("code",null,"require('./",e,"')"),".")),"Be parsed from a sourcemap"===t&&(0,o.h)("p",null,"Here's some hints that might help you:",(0,o.h)("ul",null,/\.tsx?$/.test(e)?(0,o.h)("li",null,"Make sure you have ",(0,o.h)("code",null,'"sourceMap": t