/*! For license information please see extension.js.LICENSE.txt */ (()=>{var e={2289:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(3837),o=n.styles=r(8982),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=r(8136).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return f.apply(e,arguments)};return t._styles=e,t.__proto__=h,t}var l,d=(l={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(o[e].close),"g"),l[e]={get:function(){return u(this._styles.concat(e))}}})),l),h=s((function(){}),d);function f(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),s=this._styles,c=s.length;c--;){var u=o[s[c]];t=u.open+t.replace(u.closeRe,u.open)+u.close,r&&(t=t.replace(a,(function(e){return u.close+e+u.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var p=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(8763),n.zalgo=r(750),n.maps={},n.maps.america=r(6278)(n),n.maps.zebra=r(848)(n),n.maps.rainbow=r(8823)(n),n.maps.random=r(9353)(n),n.maps)!function(e){n[e]=function(t){return p(n.maps[e],t)}}(g);s(n,function(){var e={};return Object.keys(d).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},8763:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},750:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,s,a="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(s)){switch(a+=e[s],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var c=["up","mid","down"];for(var u in c)for(var l=c[u],d=0;d<=n[l];d++)t[l]&&(a+=r[l][i(r[l].length)])}return a}(e,t)}},6278:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},8823:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},9353:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},848:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},8982:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},3719:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i{"use strict";var n=r(2037),i=r(3719),o=process.env,s=void 0;function a(e){return 0!==(t=function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},3645:(e,t,r)=>{var n=r(2289);e.exports=n},4099:e=>{var t=[],r=[],n=function(){};function i(e){return!~t.indexOf(e)&&(t.push(e),!0)}function o(e){n=e}function s(e){for(var r=[],n=0;n{e.exports=r(3601)},3601:(e,t,r)=>{var n=r(4099)((function e(t,r){return(r=r||{}).namespace=t,r.prod=!0,r.dev=!1,r.force||e.force?e.yep(r):e.nope(r)}));e.exports=n},4409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.isAsync)(e)?function(...t){const r=t.pop();return a(e.apply(this,t),r)}:(0,n.default)((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&"function"==typeof n.then)return a(n,r);r(null,n)}))};var n=s(r(3519)),i=s(r(3111)),o=r(8993);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((e=>{c(t,null,e)}),(e=>{c(t,e&&e.message?e:new Error(e))}))}function c(e,t,r){try{e(t,r)}catch(e){(0,i.default)((e=>{throw e}),e)}}e.exports=t.default},1846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(5616)),i=l(r(1605)),o=l(r(7388)),s=l(r(6979)),a=l(r(3362)),c=l(r(8993)),u=l(r(2795));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){r=(0,s.default)(r);var n=0,o=0,{length:c}=e,u=!1;function l(e,t){!1===e&&(u=!0),!0!==u&&(e?r(e):++o!==c&&t!==i.default||r(null))}for(0===c&&r(null);n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(6954)),i=s(r(8993)),o=s(r(2795));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o){return(0,n.default)(t)(e,(0,i.default)(r),o)}),4),e.exports=t.default},667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(7388)),i=o(r(2795));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,r){return(0,n.default)(e,1,t,r)}),3),e.exports=t.default},8058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(1846)),i=a(r(6529)),o=a(r(8993)),s=a(r(2795));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)((function(e,t,r){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),r)}),3),e.exports=t.default},8617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let o=!1,s=!1,a=!1,c=0,u=0;function l(){c>=t||a||o||(a=!0,e.next().then((({value:e,done:t})=>{if(!s&&!o){if(a=!1,t)return o=!0,void(c<=0&&n(null));c++,r(e,u,d),u++,l()}})).catch(h))}function d(e,t){if(c-=1,!s)return e?h(e):!1===e?(o=!0,void(s=!0)):t===i.default||o&&c<=0?(o=!0,n(null)):void l()}function h(e){s||(a=!1,o=!0,n(e))}l()};var n,i=(n=r(1605))&&n.__esModule?n:{default:n};e.exports=t.default},2795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[t-1]?e.apply(this,r):new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,r)}))}},e.exports=t.default},1605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},6954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(6979)),i=u(r(9733)),o=u(r(3362)),s=r(8993),a=u(r(8617)),c=u(r(1605));function u(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,r,u)=>{if(u=(0,n.default)(u),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return u(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,r,u);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,r,u);var l=(0,i.default)(t),d=!1,h=!1,f=0,p=!1;function g(e,t){if(!h)if(f-=1,e)d=!0,u(e);else if(!1===e)d=!0,h=!0;else{if(t===c.default||d&&f<=0)return d=!0,u(null);p||m()}}function m(){for(p=!0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},3519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var r=t.pop();return e.call(this,t,r)}},e.exports=t.default},5616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},9733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,r=e.length;return function(){return++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},3362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}},e.exports=t.default},3409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(5616)),i=s(r(8993)),o=s(r(2795));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(((e,t,r)=>{var o=(0,n.default)(t)?[]:{};e(t,((e,t,r)=>{(0,i.default)(e)(((e,...n)=>{n.length<2&&([n]=n),o[t]=n,r(e)}))}),(e=>r(e,o)))}),3),e.exports=t.default},3111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=s,t.wrap=a;var r,n=t.hasQueueMicrotask="function"==typeof queueMicrotask&&queueMicrotask,i=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,o=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function s(e){setTimeout(e,0)}function a(e){return(t,...r)=>e((()=>t(...r)))}r=n?queueMicrotask:i?setImmediate:o?process.nextTick:s,t.default=a(r)},6529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,r,n)=>e(t,n)},e.exports=t.default},8993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=(n=r(4409))&&n.__esModule?n:{default:n};function o(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return o(e)?(0,i.default)(e):e},t.isAsync=o,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},8415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(r(3409)),i=o(r(667));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5420:e=>{var t=Object.prototype.toString,r="function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return o=e,"ArrayBuffer"===t.call(o).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e);var o}},2517:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(3837),o=n.styles=r(5784),s=Object.defineProperties,a=new RegExp(/[\r\n]+/g);n.supportsColor=r(6561).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return f.apply(e,arguments)};return t._styles=e,t.__proto__=h,t}var l,d=(l={},o.grey=o.gray,Object.keys(o).forEach((function(e){o[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(o[e].close),"g"),l[e]={get:function(){return u(this._styles.concat(e))}}})),l),h=s((function(){}),d);function f(){var e=Array.prototype.slice.call(arguments),t=e.map((function(e){return null!=e&&e.constructor===String?e:i.inspect(e)})).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),s=this._styles,c=s.length;c--;){var u=o[s[c]];t=u.open+t.replace(u.closeRe,u.open)+u.close,r&&(t=t.replace(a,(function(e){return u.close+e+u.open})))}return t}n.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var p=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(5117),n.zalgo=r(1492),n.maps={},n.maps.america=r(6260)(n),n.maps.zebra=r(3270)(n),n.maps.rainbow=r(5920)(n),n.maps.random=r(2449)(n),n.maps)!function(e){n[e]=function(t){return p(n.maps[e],t)}}(g);s(n,function(){var e={};return Object.keys(d).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},5117:e=>{e.exports=function(e,t){var r="";e=(e=e||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=n[e]||[" "],i=Math.floor(Math.random()*t.length);r+=void 0!==n[e]?n[e][i]:e})),r}},1492:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter((function(r){t=r===e})),t}return function(e,t){var n,s,a="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(s)){switch(a+=e[s],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var c=["up","mid","down"];for(var u in c)for(var l=c[u],d=0;d<=n[l];d++)t[l]&&(a+=r[l][i(r[l].length)])}return a}(e,t)}},6260:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},5920:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},2449:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},3270:e=>{e.exports=function(e){return function(t,r,n){return r%2==0?t:e.inverse(t)}}},5784:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},4340:e=>{"use strict";e.exports=function(e,t){var r=(t=t||process.argv).indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",i=t.indexOf(n+e);return-1!==i&&(-1===r||i{"use strict";var n=r(2037),i=r(4340),o=process.env,s=void 0;function a(e){return 0!==(t=function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var r=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in o}))||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in o){var a=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3};var t}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},4431:(e,t,r)=>{var n=r(2517);e.exports=n},6497:(e,t)=>{function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=Buffer.isBuffer},2027:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,r,n,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==r)throw new Error("Null input. (diff_main)");if(e==r)return e?[new t.Diff(0,e)]:[];void 0===n&&(n=!0);var s=n,a=this.diff_commonPrefix(e,r),c=e.substring(0,a);e=e.substring(a),r=r.substring(a),a=this.diff_commonSuffix(e,r);var u=e.substring(e.length-a);e=e.substring(0,e.length-a),r=r.substring(0,r.length-a);var l=this.diff_compute_(e,r,s,o);return c&&l.unshift(new t.Diff(0,c)),u&&l.push(new t.Diff(0,u)),this.diff_cleanupMerge(l),l},t.prototype.diff_compute_=function(e,n,i,o){var s;if(!e)return[new t.Diff(1,n)];if(!n)return[new t.Diff(r,e)];var a=e.length>n.length?e:n,c=e.length>n.length?n:e,u=a.indexOf(c);if(-1!=u)return s=[new t.Diff(1,a.substring(0,u)),new t.Diff(0,c),new t.Diff(1,a.substring(u+c.length))],e.length>n.length&&(s[0][0]=s[2][0]=r),s;if(1==c.length)return[new t.Diff(r,e),new t.Diff(1,n)];var l=this.diff_halfMatch_(e,n);if(l){var d=l[0],h=l[1],f=l[2],p=l[3],g=l[4],m=this.diff_main(d,f,i,o),v=this.diff_main(h,p,i,o);return m.concat([new t.Diff(0,g)],v)}return i&&e.length>100&&n.length>100?this.diff_lineMode_(e,n,o):this.diff_bisect_(e,n,o)},t.prototype.diff_lineMode_=function(e,n,i){var o=this.diff_linesToChars_(e,n);e=o.chars1,n=o.chars2;var s=o.lineArray,a=this.diff_main(e,n,!1,i);this.diff_charsToLines_(a,s),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var c=0,u=0,l=0,d="",h="";c=1&&l>=1){a.splice(c-u-l,u+l),c=c-u-l;for(var f=this.diff_main(d,h,!1,i),p=f.length-1;p>=0;p--)a.splice(c,0,f[p]);c+=f.length}l=0,u=0,d="",h=""}c++}return a.pop(),a},t.prototype.diff_bisect_=function(e,n,i){for(var o=e.length,s=n.length,a=Math.ceil((o+s)/2),c=a,u=2*a,l=new Array(u),d=new Array(u),h=0;hi);w++){for(var b=-w+g;b<=w-m;b+=2){for(var S=c+b,x=(R=b==-w||b!=w&&l[S-1]o)m+=2;else if(x>s)g+=2;else if(p&&(_=c+f-b)>=0&&_=(C=o-d[_]))return this.diff_bisectSplit_(e,n,R,x,i)}for(var M=-w+v;M<=w-y;M+=2){for(var C,_=c+M,E=(C=M==-w||M!=w&&d[_-1]o)y+=2;else if(E>s)v+=2;else if(!p){var R;if((S=c+f-M)>=0&&S=(C=o-C))return this.diff_bisectSplit_(e,n,R,x,i)}}}return[new t.Diff(r,e),new t.Diff(1,n)]},t.prototype.diff_bisectSplit_=function(e,t,r,n,i){var o=e.substring(0,r),s=t.substring(0,n),a=e.substring(r),c=t.substring(n),u=this.diff_main(o,s,!1,i),l=this.diff_main(a,c,!1,i);return u.concat(l)},t.prototype.diff_linesToChars_=function(e,t){var r=[],n={};function i(e){for(var t="",i=0,s=-1,a=r.length;sn?e=e.substring(r-n):rt.length?e:t,n=e.length>t.length?t:e;if(r.length<4||2*n.length=e.length?[n,o,s,a,l]:null}var s,a,c,u,l,d=o(r,n,Math.ceil(r.length/4)),h=o(r,n,Math.ceil(r.length/2));return d||h?(s=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(a=s[0],c=s[1],u=s[2],l=s[3]):(u=s[0],l=s[1],a=s[2],c=s[3]),[a,c,u,l,s[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var n=!1,i=[],o=0,s=null,a=0,c=0,u=0,l=0,d=0;a0?i[o-1]:-1,c=0,u=0,l=0,d=0,s=null,n=!0)),a++;for(n&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=g?(p>=h.length/2||p>=f.length/2)&&(e.splice(a,0,new t.Diff(0,f.substring(0,p))),e[a-1][1]=h.substring(0,h.length-p),e[a+1][1]=f.substring(p),a++):(g>=h.length/2||g>=f.length/2)&&(e.splice(a,0,new t.Diff(0,h.substring(0,g))),e[a-1][0]=1,e[a-1][1]=f.substring(0,f.length-g),e[a+1][0]=r,e[a+1][1]=h.substring(g),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function r(e,r){if(!e||!r)return 6;var n=e.charAt(e.length-1),i=r.charAt(0),o=n.match(t.nonAlphaNumericRegex_),s=i.match(t.nonAlphaNumericRegex_),a=o&&n.match(t.whitespaceRegex_),c=s&&i.match(t.whitespaceRegex_),u=a&&n.match(t.linebreakRegex_),l=c&&i.match(t.linebreakRegex_),d=u&&e.match(t.blanklineEndRegex_),h=l&&r.match(t.blanklineStartRegex_);return d||h?5:u||l?4:o&&!a&&c?3:a||c?2:o||s?1:0}for(var n=1;n=h&&(h=f,u=i,l=o,d=s)}e[n-1][1]!=u&&(u?e[n-1][1]=u:(e.splice(n-1,1),n--),e[n][1]=l,d?e[n+1][1]=d:(e.splice(n+1,1),n--))}n++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var n=!1,i=[],o=0,s=null,a=0,c=!1,u=!1,l=!1,d=!1;a0?i[o-1]:-1,l=d=!1),n=!0)),a++;n&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var n,i=0,o=0,s=0,a="",c="";i1?(0!==o&&0!==s&&(0!==(n=this.diff_commonPrefix(c,a))&&(i-o-s>0&&0==e[i-o-s-1][0]?e[i-o-s-1][1]+=c.substring(0,n):(e.splice(0,0,new t.Diff(0,c.substring(0,n))),i++),c=c.substring(n),a=a.substring(n)),0!==(n=this.diff_commonSuffix(c,a))&&(e[i][1]=c.substring(c.length-n)+e[i][1],c=c.substring(0,c.length-n),a=a.substring(0,a.length-n))),i-=o+s,e.splice(i,o+s),a.length&&(e.splice(i,0,new t.Diff(r,a)),i++),c.length&&(e.splice(i,0,new t.Diff(1,c)),i++),i++):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,s=0,o=0,a="",c=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(i=1;it));n++)s=i,a=o;return e.length!=n&&e[n][0]===r?a:a+(t-s)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,i=//g,s=/\n/g,a=0;a");switch(c){case 1:t[a]=''+u+"";break;case r:t[a]=''+u+"";break;case 0:t[a]=""+u+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],r=0;rthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(t),i=this;function o(e,n){var o=e/t.length,s=Math.abs(r-n);return i.Match_Distance?o+s/i.Match_Distance:s?1:o}var s=this.Match_Threshold,a=e.indexOf(t,r);-1!=a&&(s=Math.min(o(0,a),s),-1!=(a=e.lastIndexOf(t,r+t.length))&&(s=Math.min(o(0,a),s)));var c,u,l=1<=p;v--){var y=n[e.charAt(v-1)];if(m[v]=0===f?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],m[v]&l){var w=o(f,v-1);if(w<=s){if(s=w,!((a=v-1)>r))break;p=Math.max(1,2*r-a)}}}if(o(f+1,r)>s)break;d=m}return a},t.prototype.match_alphabet_=function(e){for(var t={},r=0;r2&&(this.diff_cleanupSemantic(s),this.diff_cleanupEfficiency(s));else if(e&&"object"==typeof e&&void 0===n&&void 0===i)s=e,o=this.diff_text1(s);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===i)o=e,s=n;else{if("string"!=typeof e||"string"!=typeof n||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");o=e,s=i}if(0===s.length)return[];for(var a=[],c=new t.patch_obj,u=0,l=0,d=0,h=o,f=o,p=0;p=2*this.Patch_Margin&&u&&(this.patch_addContext_(c,h),a.push(c),c=new t.patch_obj,u=0,h=f,l=d)}1!==g&&(l+=m.length),g!==r&&(d+=m.length)}return u&&(this.patch_addContext_(c,h),a.push(c)),a},t.prototype.patch_deepCopy=function(e){for(var r=[],n=0;nthis.Match_MaxBits?-1!=(a=this.match_main(t,l.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,l.substring(l.length-this.Match_MaxBits),u+l.length-this.Match_MaxBits))||a>=d)&&(a=-1):a=this.match_main(t,l,u),-1==a)o[s]=!1,i-=e[s].length2-e[s].length1;else if(o[s]=!0,i=a-u,l==(c=-1==d?t.substring(a,a+l.length):t.substring(a,d+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[s].diffs)+t.substring(a+l.length);else{var h=this.diff_main(l,c,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(h)/l.length>this.Patch_DeleteThreshold)o[s]=!1;else{this.diff_cleanupSemanticLossless(h);for(var f,p=0,g=0;gs[0][1].length){var a=r-s[0][1].length;s[0][1]=n.substring(s[0][1].length)+s[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}return 0==(s=(o=e[e.length-1]).diffs).length||0!=s[s.length-1][0]?(s.push(new t.Diff(0,n)),o.length1+=r,o.length2+=r):r>s[s.length-1][1].length&&(a=r-s[s.length-1][1].length,s[s.length-1][1]+=n.substring(0,a),o.length1+=a,o.length2+=a),n},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,i=0;i2*n?(u.length1+=h.length,s+=h.length,l=!1,u.diffs.push(new t.Diff(d,h)),o.diffs.shift()):(h=h.substring(0,n-u.length1-this.Patch_Margin),u.length1+=h.length,s+=h.length,0===d?(u.length2+=h.length,a+=h.length):l=!1,u.diffs.push(new t.Diff(d,h)),h==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(h.length))}c=(c=this.diff_text2(u.diffs)).substring(c.length-this.Patch_Margin);var f=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==f&&(u.length1+=f.length,u.length2+=f.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=f:u.diffs.push(new t.Diff(0,f))),l||e.splice(++i,0,u)}}},t.prototype.patch_toText=function(e){for(var t=[],r=0;r{e.exports=n,n.default=n,n.stable=s,n.stableStringify=s;var t=[],r=[];function n(e,n,o){var s;for(i(e,"",[],void 0),s=0===r.length?JSON.stringify(e,n,o):JSON.stringify(e,c(n),o);0!==t.length;){var a=t.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return s}function i(e,n,o,s){var a;if("object"==typeof e&&null!==e){for(a=0;at?1:0}function s(e,n,i){var o,s=a(e,"",[],void 0)||e;for(o=0===r.length?JSON.stringify(s,n,i):JSON.stringify(s,c(n),i);0!==t.length;){var u=t.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}return o}function a(e,n,i,s){var c;if("object"==typeof e&&null!==e){for(c=0;c0)for(var i=0;i{"use strict";r.r(t),r.d(t,{default:()=>A,assign:()=>l,format:()=>k,parse:()=>P,defaultI18n:()=>p,setGlobalDateI18n:()=>m,setGlobalDateMasks:()=>R});var n=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[1-9]\\d?",o="\\d\\d",s="[^\\s]+",a=/\[([^]*?)\]/gm;function c(e,t){for(var r=[],n=0,i=e.length;n-1?n:null}};function l(e){for(var t=[],r=1;r3?0:(e-e%10!=10?1:0)*e%10]}},g=l({},p),m=function(e){return g=l(g,e)},v=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+y(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+y(Math.floor(Math.abs(t)/60),2)+":"+y(Math.abs(t)%60,2)}},b=function(e){return+e-1},S=[null,i],x=[null,s],M=["isPm",s,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],C=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?r:-r}return 0}],_={D:["day",i],DD:["day",o],Do:["day","[1-9]\\d?[^\\s]+",function(e){return parseInt(e,10)}],M:["month",i,b],MM:["month",o,b],YY:["year",o,function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",i,void 0,"isPm"],hh:["hour",o,void 0,"isPm"],H:["hour",i],HH:["hour",o],m:["minute",i],mm:["minute",o],s:["second",i],ss:["second",o],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",o,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:S,dd:S,ddd:x,dddd:x,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:M,A:M,ZZ:C,Z:C},E={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},R=function(e){return l(E,e)},k=function(e,t,r){if(void 0===t&&(t=E.default),void 0===r&&(r={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var i=[];t=(t=E[t]||t).replace(a,(function(e,t){return i.push(t),"@@@"}));var o=l(l({},g),r);return(t=t.replace(n,(function(t){return w[t](e,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function P(e,t,r){if(void 0===r&&(r={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=E[t]||t,e.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],c=t.replace(a,(function(e,t){return s.push(v(t)),"@@@"})),u={},d={};c=v(c).replace(n,(function(e){var t=_[e],r=t[0],n=t[1],i=t[3];if(u[r])throw new Error("Invalid format. "+r+" specified twice in format");return u[r]=!0,i&&(d[i]=!0),o.push(t),"("+n+")"})),Object.keys(d).forEach((function(e){if(!u[e])throw new Error("Invalid format. "+e+" is required in specified format")})),c=c.replace(/@@@/g,(function(){return s.shift()}));var h=e.match(new RegExp(c,"i"));if(!h)return null;for(var f=l(l({},g),r),p=1;p{"use strict";var t=Object.prototype.toString;e.exports=function(e){if("string"==typeof e.displayName&&e.constructor.name)return e.displayName;if("string"==typeof e.name&&e.name)return e.name;if("object"==typeof e&&e.constructor&&"string"==typeof e.constructor.name)return e.constructor.name;var r=e.toString(),n=t.call(e).slice(8,-1);return(r="Function"===n?r.substring(r.indexOf("(")+1,r.indexOf(")")):n)||"anonymous"}},4378:(e,t,r)=>{try{var n=r(3837);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(5717)}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},4970:e=>{"use strict";const t=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.writable=e=>t(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,t.readable=e=>t(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState,e.exports=t},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},6486:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,u=128,l=1/0,d=9007199254740991,h=NaN,f=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",S="[object GeneratorFunction]",x="[object Map]",M="[object Number]",C="[object Object]",_="[object Promise]",E="[object RegExp]",R="[object Set]",k="[object String]",P="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",L="[object DataView]",O="[object Float32Array]",$="[object Float64Array]",B="[object Int8Array]",I="[object Int16Array]",N="[object Int32Array]",j="[object Uint8Array]",D="[object Uint8ClampedArray]",F="[object Uint16Array]",V="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,z=RegExp(K.source),G=RegExp(H.source),J=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_e="["+Ce+"]",Ee="["+Se+"]",Re="\\d+",ke="["+xe+"]",Pe="[^\\ud800-\\udfff"+Ce+Re+"\\u2700-\\u27bf"+xe+Me+"]",Ae="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Me+"]",Be="(?:"+ke+"|"+Pe+")",Ie="(?:"+$e+"|"+Pe+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",De="(?:"+Ee+"|"+Ae+")?",Fe="[\\ufe0e\\ufe0f]?",Ve=Fe+De+"(?:\\u200d(?:"+[Te,Le,Oe].join("|")+")"+Fe+De+")*",We="(?:"+["[\\u2700-\\u27bf]",Le,Oe].join("|")+")"+Ve,Ue="(?:"+[Te+Ee+"?",Ee,Le,Oe,"[\\ud800-\\udfff]"].join("|")+")",qe=RegExp("['’]","g"),Ke=RegExp(Ee,"g"),He=RegExp(Ae+"(?="+Ae+")|"+Ue+Ve,"g"),ze=RegExp([$e+"?"+ke+"+"+Ne+"(?="+[_e,$e,"$"].join("|")+")",Ie+"+"+je+"(?="+[_e,$e+Be,"$"].join("|")+")",$e+"?"+Be+"+"+Ne,$e+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,We].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+Se+"\\ufe0e\\ufe0f]"),Je=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qe=-1,Ze={};Ze[O]=Ze[$]=Ze[B]=Ze[I]=Ze[N]=Ze[j]=Ze[D]=Ze[F]=Ze[V]=!0,Ze[g]=Ze[m]=Ze[T]=Ze[v]=Ze[L]=Ze[y]=Ze[w]=Ze[b]=Ze[x]=Ze[M]=Ze[C]=Ze[E]=Ze[R]=Ze[k]=Ze[A]=!1;var Xe={};Xe[g]=Xe[m]=Xe[T]=Xe[L]=Xe[v]=Xe[y]=Xe[O]=Xe[$]=Xe[B]=Xe[I]=Xe[N]=Xe[x]=Xe[M]=Xe[C]=Xe[E]=Xe[R]=Xe[k]=Xe[P]=Xe[j]=Xe[D]=Xe[F]=Xe[V]=!0,Xe[w]=Xe[b]=Xe[A]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,rt=parseInt,nt="object"==typeof global&&global&&global.Object===Object&&global,it="object"==typeof self&&self&&self.Object===Object&&self,ot=nt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ct=at&&at.exports===st,ut=ct&&nt.process,lt=function(){try{return at&&at.require&&at.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),dt=lt&<.isArrayBuffer,ht=lt&<.isDate,ft=lt&<.isMap,pt=lt&<.isRegExp,gt=lt&<.isSet,mt=lt&<.isTypedArray;function vt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function yt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Ct(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function zt(e,t){for(var r=e.length;r--&&Ot(t,e[r],0)>-1;);return r}function Gt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Jt=jt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Qt(e){return"\\"+et[e]}function Zt(e){return Ge.test(e)}function Xt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function er(e,t){return function(r){return e(t(r))}}function tr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"}),cr=function e(t){var r,n=(t=null==t?ot:cr.defaults(ot.Object(),t,cr.pick(ot,Ye))).Array,ie=t.Date,Se=t.Error,xe=t.Function,Me=t.Math,Ce=t.Object,_e=t.RegExp,Ee=t.String,Re=t.TypeError,ke=n.prototype,Pe=xe.prototype,Ae=Ce.prototype,Te=t["__core-js_shared__"],Le=Pe.toString,Oe=Ae.hasOwnProperty,$e=0,Be=(r=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ie=Ae.toString,Ne=Le.call(Ce),je=ot._,De=_e("^"+Le.call(Oe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ct?t.Buffer:i,Ve=t.Symbol,We=t.Uint8Array,Ue=Fe?Fe.allocUnsafe:i,He=er(Ce.getPrototypeOf,Ce),Ge=Ce.create,et=Ae.propertyIsEnumerable,nt=ke.splice,it=Ve?Ve.isConcatSpreadable:i,st=Ve?Ve.iterator:i,at=Ve?Ve.toStringTag:i,ut=function(){try{var e=uo(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,At=ie&&ie.now!==ot.Date.now&&ie.now,jt=t.setTimeout!==ot.setTimeout&&t.setTimeout,ur=Me.ceil,lr=Me.floor,dr=Ce.getOwnPropertySymbols,hr=Fe?Fe.isBuffer:i,fr=t.isFinite,pr=ke.join,gr=er(Ce.keys,Ce),mr=Me.max,vr=Me.min,yr=ie.now,wr=t.parseInt,br=Me.random,Sr=ke.reverse,xr=uo(t,"DataView"),Mr=uo(t,"Map"),Cr=uo(t,"Promise"),_r=uo(t,"Set"),Er=uo(t,"WeakMap"),Rr=uo(Ce,"create"),kr=Er&&new Er,Pr={},Ar=Do(xr),Tr=Do(Mr),Lr=Do(Cr),Or=Do(_r),$r=Do(Er),Br=Ve?Ve.prototype:i,Ir=Br?Br.valueOf:i,Nr=Br?Br.toString:i;function jr(e){if(ra(e)&&!Ks(e)&&!(e instanceof Wr)){if(e instanceof Vr)return e;if(Oe.call(e,"__wrapped__"))return Fo(e)}return new Vr(e)}var Dr=function(){function e(){}return function(t){if(!ta(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Fr(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Ur(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function an(e,t,r,n,o,s){var a,c=1&t,u=2&t,l=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!ta(e))return e;var d=Ks(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Ri(e,a)}else{var h=fo(e),f=h==b||h==S;if(Js(e))return Si(e,c);if(h==C||h==g||f&&!o){if(a=u||f?{}:go(e),!c)return u?function(e,t){return ki(e,ho(e),t)}(e,function(e,t){return e&&ki(t,Oa(t),e)}(a,e)):function(e,t){return ki(e,lo(e),t)}(e,rn(a,e))}else{if(!Xe[h])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case T:return xi(e);case v:case y:return new i(+e);case L:return function(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case O:case $:case B:case I:case N:case j:case D:case F:case V:return Mi(e,r);case x:return new i;case M:case k:return new i(e);case E:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case P:return n=e,Ir?Ce(Ir.call(n)):{}}}(e,h,c)}}s||(s=new zr);var p=s.get(e);if(p)return p;s.set(e,a),aa(e)?e.forEach((function(n){a.add(an(n,t,r,n,e,s))})):na(e)&&e.forEach((function(n,i){a.set(i,an(n,t,r,i,e,s))}));var m=d?i:(l?u?ro:to:u?Oa:La)(e);return wt(m||e,(function(n,i){m&&(n=e[i=n]),Xr(a,i,an(n,t,r,i,e,s))})),a}function cn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ce(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Re(o);return Ao((function(){e.apply(i,r)}),t)}function ln(e,t,r,n){var i=-1,o=Mt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;r&&(t=_t(t,Ut(r))),n?(o=Ct,s=!1):t.length>=200&&(o=Kt,s=!1,t=new Hr(t));e:for(;++i-1},qr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(Mr||qr),string:new Ur}},Kr.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return ao(this,e).get(e)},Kr.prototype.has=function(e){return ao(this,e).has(e)},Kr.prototype.set=function(e,t){var r=ao(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,s),this},Hr.prototype.has=function(e){return this.__data__.has(e)},zr.prototype.clear=function(){this.__data__=new qr,this.size=0},zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},zr.prototype.get=function(e){return this.__data__.get(e)},zr.prototype.has=function(e){return this.__data__.has(e)},zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!Mr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var dn=Ti(wn),hn=Ti(bn,!0);function fn(e,t){var r=!0;return dn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function pn(e,t,r){for(var n=-1,o=e.length;++n0&&r(a)?t>1?mn(a,t-1,r,n,i):Et(i,a):n||(i[i.length]=a)}return i}var vn=Li(),yn=Li(!0);function wn(e,t){return e&&vn(e,t,La)}function bn(e,t){return e&&yn(e,t,La)}function Sn(e,t){return xt(t,(function(t){return Zs(e[t])}))}function xn(e,t){for(var r=0,n=(t=vi(t,e)).length;null!=e&&rt}function En(e,t){return null!=e&&Oe.call(e,t)}function Rn(e,t){return null!=e&&t in Ce(e)}function kn(e,t,r){for(var o=r?Ct:Mt,s=e[0].length,a=e.length,c=a,u=n(a),l=1/0,d=[];c--;){var h=e[c];c&&t&&(h=_t(h,Ut(t))),l=vr(h.length,l),u[c]=!r&&(t||s>=120&&h.length>=120)?new Hr(c&&h):i}h=e[0];var f=-1,p=u[0];e:for(;++f=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(Nn(e,(function(e,r,i){return{criteria:_t(t,(function(t){return t(e)})),index:++n,value:e}})))}function Un(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)a!==e&&nt.call(a,c,1),nt.call(e,c,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;vo(i)?nt.call(e,i,1):ui(e,i)}}return e}function Hn(e,t){return e+lr(br()*(t-e+1))}function zn(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=lr(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return To(_o(e,t,ic),e+"")}function Jn(e){return Jr(Va(e))}function Yn(e,t){var r=Va(e);return $o(r,sn(t,0,r.length))}function Qn(e,t,r,n){if(!ta(e))return e;for(var o=-1,s=(t=vi(t,e)).length,a=s-1,c=e;null!=c&&++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i>>1,s=e[o];null!==s&&!ua(s)&&(r?s<=t:s=200){var u=t?null:zi(e);if(u)return rr(u);s=!1,i=Kt,c=new Hr}else c=t?[]:a;e:for(;++n=n?e:ti(e,t,r)}var bi=lt||function(e){return ot.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var r=e.length,n=Ue?Ue(r):new e.constructor(r);return e.copy(n),n}function xi(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Mi(e,t){var r=t?xi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=ua(e),a=t!==i,c=null===t,u=t==t,l=ua(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;if(!n&&!s&&!l&&e1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&yo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=Ce(t);++n-1?o[s?t[a]:a]:i}}function Ni(e){return eo((function(t){var r=t.length,n=r,s=Vr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Re(o);if(s&&!c&&"wrapper"==io(a))var c=new Vr([],!0)}for(n=c?n:r;++n1&&w.reverse(),f&&dc))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=2&r?new Hr:i;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return wt(p,(function(r){var n="_."+r[0];t&r[1]&&!Mt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Oo(e){var t=0,r=0;return function(){var n=yr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function $o(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,ss(e,r)}));function fs(e){var t=jr(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var gs=eo((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Wr&&vo(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ps,args:[o],thisArg:i}),new Vr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ms=Pi((function(e,t,r){Oe.call(e,r)?++e[r]:nn(e,r,1)})),vs=Ii(qo),ys=Ii(Ko);function ws(e,t){return(Ks(e)?wt:dn)(e,so(t,3))}function bs(e,t){return(Ks(e)?bt:hn)(e,so(t,3))}var Ss=Pi((function(e,t,r){Oe.call(e,r)?e[r].push(t):nn(e,r,[t])})),xs=Gn((function(e,t,r){var i=-1,o="function"==typeof t,s=zs(e)?n(e.length):[];return dn(e,(function(e){s[++i]=o?vt(t,e,r):Pn(e,t,r)})),s})),Ms=Pi((function(e,t,r){nn(e,r,t)}));function Cs(e,t){return(Ks(e)?_t:Nn)(e,so(t,3))}var _s=Pi((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Es=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&yo(e,t[0],t[1])?t=[]:r>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,mn(t,1),[])})),Rs=At||function(){return ot.Date.now()};function ks(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Ji(e,u,i,i,i,i,t)}function Ps(e,t){var r;if("function"!=typeof t)throw new Re(o);return e=ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var As=Gn((function(e,t,r){var n=1;if(r.length){var i=tr(r,oo(As));n|=c}return Ji(e,n,t,r,i)})),Ts=Gn((function(e,t,r){var n=3;if(r.length){var i=tr(r,oo(Ts));n|=c}return Ji(t,n,e,r,i)}));function Ls(e,t,r){var n,s,a,c,u,l,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Re(o);function g(t){var r=n,o=s;return n=s=i,d=t,c=e.apply(o,r)}function m(e){return d=e,u=Ao(y,t),h?g(e):c}function v(e){var r=e-l;return l===i||r>=t||r<0||f&&e-d>=a}function y(){var e=Rs();if(v(e))return w(e);u=Ao(y,function(e){var r=t-(e-l);return f?vr(r,a-(e-d)):r}(e))}function w(e){return u=i,p&&n?g(e):(n=s=i,c)}function b(){var e=Rs(),r=v(e);if(n=arguments,s=this,l=e,r){if(u===i)return m(l);if(f)return bi(u),u=Ao(y,t),g(l)}return u===i&&(u=Ao(y,t)),c}return t=va(t)||0,ta(r)&&(h=!!r.leading,a=(f="maxWait"in r)?mr(va(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),b.cancel=function(){u!==i&&bi(u),d=0,n=l=s=u=i},b.flush=function(){return u===i?c:w(Rs())},b}var Os=Gn((function(e,t){return un(e,1,t)})),$s=Gn((function(e,t,r){return un(e,va(t)||0,r)}));function Bs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Bs.Cache||Kr),r}function Is(e){if("function"!=typeof e)throw new Re(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bs.Cache=Kr;var Ns=yi((function(e,t){var r=(t=1==t.length&&Ks(t[0])?_t(t[0],Ut(so())):_t(mn(t,1),Ut(so()))).length;return Gn((function(n){for(var i=-1,o=vr(n.length,r);++i=t})),qs=An(function(){return arguments}())?An:function(e){return ra(e)&&Oe.call(e,"callee")&&!et.call(e,"callee")},Ks=n.isArray,Hs=dt?Ut(dt):function(e){return ra(e)&&Cn(e)==T};function zs(e){return null!=e&&ea(e.length)&&!Zs(e)}function Gs(e){return ra(e)&&zs(e)}var Js=hr||vc,Ys=ht?Ut(ht):function(e){return ra(e)&&Cn(e)==y};function Qs(e){if(!ra(e))return!1;var t=Cn(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Zs(e){if(!ta(e))return!1;var t=Cn(e);return t==b||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var na=ft?Ut(ft):function(e){return ra(e)&&fo(e)==x};function ia(e){return"number"==typeof e||ra(e)&&Cn(e)==M}function oa(e){if(!ra(e)||Cn(e)!=C)return!1;var t=He(e);if(null===t)return!0;var r=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Le.call(r)==Ne}var sa=pt?Ut(pt):function(e){return ra(e)&&Cn(e)==E},aa=gt?Ut(gt):function(e){return ra(e)&&fo(e)==R};function ca(e){return"string"==typeof e||!Ks(e)&&ra(e)&&Cn(e)==k}function ua(e){return"symbol"==typeof e||ra(e)&&Cn(e)==P}var la=mt?Ut(mt):function(e){return ra(e)&&ea(e.length)&&!!Ze[Cn(e)]},da=qi(In),ha=qi((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(zs(e))return ca(e)?or(e):Ri(e);if(st&&e[st])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[st]());var t=fo(e);return(t==x?Xt:t==R?rr:Va)(e)}function pa(e){return e?(e=va(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=pa(e),r=t%1;return t==t?r?t-r:t:0}function ma(e){return e?sn(ga(e),0,f):0}function va(e){if("number"==typeof e)return e;if(ua(e))return h;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var r=pe.test(e);return r||me.test(e)?rt(e.slice(2),r?2:8):fe.test(e)?h:+e}function ya(e){return ki(e,Oa(e))}function wa(e){return null==e?"":ai(e)}var ba=Ai((function(e,t){if(xo(t)||zs(t))ki(t,La(t),e);else for(var r in t)Oe.call(t,r)&&Xr(e,r,t[r])})),Sa=Ai((function(e,t){ki(t,Oa(t),e)})),xa=Ai((function(e,t,r,n){ki(t,Oa(t),e,n)})),Ma=Ai((function(e,t,r,n){ki(t,La(t),e,n)})),Ca=eo(on),_a=Gn((function(e,t){e=Ce(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(n=1);++r1),t})),ki(e,ro(e),r),n&&(r=an(r,7,Zi));for(var i=t.length;i--;)ui(r,t[i]);return r})),Na=eo((function(e,t){return null==e?{}:function(e,t){return Un(e,t,(function(t,r){return ka(e,r)}))}(e,t)}));function ja(e,t){if(null==e)return{};var r=_t(ro(e),(function(e){return[e]}));return t=so(t),Un(e,r,(function(e,r){return t(e,r[0])}))}var Da=Gi(La),Fa=Gi(Oa);function Va(e){return null==e?[]:qt(e,La(e))}var Wa=$i((function(e,t,r){return t=t.toLowerCase(),e+(r?Ua(t):t)}));function Ua(e){return Qa(wa(e).toLowerCase())}function qa(e){return(e=wa(e))&&e.replace(ye,Jt).replace(Ke,"")}var Ka=$i((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ha=$i((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),za=Oi("toLowerCase"),Ga=$i((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Ja=$i((function(e,t,r){return e+(r?" ":"")+Qa(t)})),Ya=$i((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Qa=Oi("toUpperCase");function Za(e,t,r){return e=wa(e),(t=r?i:t)===i?function(e){return Je.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xa=Gn((function(e,t){try{return vt(e,i,t)}catch(e){return Qs(e)?e:new Se(e)}})),ec=eo((function(e,t){return wt(t,(function(t){t=jo(t),nn(e,t,As(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=Ni(),nc=Ni(!0);function ic(e){return e}function oc(e){return $n("function"==typeof e?e:an(e,1))}var sc=Gn((function(e,t){return function(r){return Pn(r,e,t)}})),ac=Gn((function(e,t){return function(r){return Pn(e,r,t)}}));function cc(e,t,r){var n=La(t),i=Sn(t,n);null!=r||ta(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Sn(t,La(t)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Zs(e);return wt(i,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=Ri(this.__actions__);return i.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Et([this.value()],arguments))})})),e}function uc(){}var lc=Vi(_t),dc=Vi(St),hc=Vi(Pt);function fc(e){return wo(e)?Nt(jo(e)):function(e){return function(t){return xn(t,e)}}(e)}var pc=Ui(),gc=Ui(!0);function mc(){return[]}function vc(){return!1}var yc,wc=Fi((function(e,t){return e+t}),0),bc=Hi("ceil"),Sc=Fi((function(e,t){return e/t}),1),xc=Hi("floor"),Mc=Fi((function(e,t){return e*t}),1),Cc=Hi("round"),_c=Fi((function(e,t){return e-t}),0);return jr.after=function(e,t){if("function"!=typeof t)throw new Re(o);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},jr.ary=ks,jr.assign=ba,jr.assignIn=Sa,jr.assignInWith=xa,jr.assignWith=Ma,jr.at=Ca,jr.before=Ps,jr.bind=As,jr.bindAll=ec,jr.bindKey=Ts,jr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ks(e)?e:[e]},jr.chain=fs,jr.chunk=function(e,t,r){t=(r?yo(e,t,r):t===i)?1:mr(ga(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,c=n(ur(o/t));so?0:o+r),(n=n===i||n>o?o:ga(n))<0&&(n+=o),n=r>n?0:ma(n);r>>0)?(e=wa(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ai(t))&&Zt(e)?wi(or(e),0,r):e.split(t,r):[]},jr.spread=function(e,t){if("function"!=typeof e)throw new Re(o);return t=null==t?0:mr(ga(t),0),Gn((function(r){var n=r[t],i=wi(r,0,t);return n&&Et(i,n),vt(e,this,i)}))},jr.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},jr.take=function(e,t,r){return e&&e.length?ti(e,0,(t=r||t===i?1:ga(t))<0?0:t):[]},jr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ti(e,(t=n-(t=r||t===i?1:ga(t)))<0?0:t,n):[]},jr.takeRightWhile=function(e,t){return e&&e.length?di(e,so(t,3),!1,!0):[]},jr.takeWhile=function(e,t){return e&&e.length?di(e,so(t,3)):[]},jr.tap=function(e,t){return t(e),e},jr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Re(o);return ta(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ls(e,t,{leading:n,maxWait:t,trailing:i})},jr.thru=ps,jr.toArray=fa,jr.toPairs=Da,jr.toPairsIn=Fa,jr.toPath=function(e){return Ks(e)?_t(e,jo):ua(e)?[e]:Ri(No(wa(e)))},jr.toPlainObject=ya,jr.transform=function(e,t,r){var n=Ks(e),i=n||Js(e)||la(e);if(t=so(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:ta(e)&&Zs(o)?Dr(He(e)):{}}return(i?wt:wn)(e,(function(e,n,i){return t(r,e,n,i)})),r},jr.unary=function(e){return ks(e,1)},jr.union=rs,jr.unionBy=ns,jr.unionWith=is,jr.uniq=function(e){return e&&e.length?ci(e):[]},jr.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},jr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},jr.unset=function(e,t){return null==e||ui(e,t)},jr.unzip=os,jr.unzipWith=ss,jr.update=function(e,t,r){return null==e?e:li(e,t,mi(r))},jr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:li(e,t,mi(r),n)},jr.values=Va,jr.valuesIn=function(e){return null==e?[]:qt(e,Oa(e))},jr.without=as,jr.words=Za,jr.wrap=function(e,t){return js(mi(t),e)},jr.xor=cs,jr.xorBy=us,jr.xorWith=ls,jr.zip=ds,jr.zipObject=function(e,t){return pi(e||[],t||[],Xr)},jr.zipObjectDeep=function(e,t){return pi(e||[],t||[],Qn)},jr.zipWith=hs,jr.entries=Da,jr.entriesIn=Fa,jr.extend=Sa,jr.extendWith=xa,cc(jr,jr),jr.add=wc,jr.attempt=Xa,jr.camelCase=Wa,jr.capitalize=Ua,jr.ceil=bc,jr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=va(r))==r?r:0),t!==i&&(t=(t=va(t))==t?t:0),sn(va(e),t,r)},jr.clone=function(e){return an(e,4)},jr.cloneDeep=function(e){return an(e,5)},jr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:i)},jr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:i)},jr.conformsTo=function(e,t){return null==t||cn(e,t,La(t))},jr.deburr=qa,jr.defaultTo=function(e,t){return null==e||e!=e?t:e},jr.divide=Sc,jr.endsWith=function(e,t,r){e=wa(e),t=ai(t);var n=e.length,o=r=r===i?n:sn(ga(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},jr.eq=Vs,jr.escape=function(e){return(e=wa(e))&&G.test(e)?e.replace(H,Yt):e},jr.escapeRegExp=function(e){return(e=wa(e))&&re.test(e)?e.replace(te,"\\$&"):e},jr.every=function(e,t,r){var n=Ks(e)?St:fn;return r&&yo(e,t,r)&&(t=i),n(e,so(t,3))},jr.find=vs,jr.findIndex=qo,jr.findKey=function(e,t){return Tt(e,so(t,3),wn)},jr.findLast=ys,jr.findLastIndex=Ko,jr.findLastKey=function(e,t){return Tt(e,so(t,3),bn)},jr.floor=xc,jr.forEach=ws,jr.forEachRight=bs,jr.forIn=function(e,t){return null==e?e:vn(e,so(t,3),Oa)},jr.forInRight=function(e,t){return null==e?e:yn(e,so(t,3),Oa)},jr.forOwn=function(e,t){return e&&wn(e,so(t,3))},jr.forOwnRight=function(e,t){return e&&bn(e,so(t,3))},jr.get=Ra,jr.gt=Ws,jr.gte=Us,jr.has=function(e,t){return null!=e&&po(e,t,En)},jr.hasIn=ka,jr.head=zo,jr.identity=ic,jr.includes=function(e,t,r,n){e=zs(e)?e:Va(e),r=r&&!n?ga(r):0;var i=e.length;return r<0&&(r=mr(i+r,0)),ca(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ot(e,t,r)>-1},jr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ga(r);return i<0&&(i=mr(n+i,0)),Ot(e,t,i)},jr.inRange=function(e,t,r){return t=pa(t),r===i?(r=t,t=0):r=pa(r),function(e,t,r){return e>=vr(t,r)&&e=-9007199254740991&&e<=d},jr.isSet=aa,jr.isString=ca,jr.isSymbol=ua,jr.isTypedArray=la,jr.isUndefined=function(e){return e===i},jr.isWeakMap=function(e){return ra(e)&&fo(e)==A},jr.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==Cn(e)},jr.join=function(e,t){return null==e?"":pr.call(e,t)},jr.kebabCase=Ka,jr.last=Qo,jr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ga(r))<0?mr(n+o,0):vr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Lt(e,Bt,o,!0)},jr.lowerCase=Ha,jr.lowerFirst=za,jr.lt=da,jr.lte=ha,jr.max=function(e){return e&&e.length?pn(e,ic,_n):i},jr.maxBy=function(e,t){return e&&e.length?pn(e,so(t,2),_n):i},jr.mean=function(e){return It(e,ic)},jr.meanBy=function(e,t){return It(e,so(t,2))},jr.min=function(e){return e&&e.length?pn(e,ic,In):i},jr.minBy=function(e,t){return e&&e.length?pn(e,so(t,2),In):i},jr.stubArray=mc,jr.stubFalse=vc,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=Mc,jr.nth=function(e,t){return e&&e.length?Vn(e,ga(t)):i},jr.noConflict=function(){return ot._===this&&(ot._=je),this},jr.noop=uc,jr.now=Rs,jr.pad=function(e,t,r){e=wa(e);var n=(t=ga(t))?ir(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Wi(lr(i),r)+e+Wi(ur(i),r)},jr.padEnd=function(e,t,r){e=wa(e);var n=(t=ga(t))?ir(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=br();return vr(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Hn(e,t)},jr.reduce=function(e,t,r){var n=Ks(e)?Rt:Dt,i=arguments.length<3;return n(e,so(t,4),r,i,dn)},jr.reduceRight=function(e,t,r){var n=Ks(e)?kt:Dt,i=arguments.length<3;return n(e,so(t,4),r,i,hn)},jr.repeat=function(e,t,r){return t=(r?yo(e,t,r):t===i)?1:ga(t),zn(wa(e),t)},jr.replace=function(){var e=arguments,t=wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jr.result=function(e,t,r){var n=-1,o=(t=vi(t,e)).length;for(o||(o=1,e=i);++nd)return[];var r=f,n=vr(e,f);t=so(t),e-=f;for(var i=Vt(n,t);++r=s)return e;var c=r-ir(n);if(c<1)return n;var u=a?wi(a,0,c).join(""):e.slice(0,c);if(o===i)return u+n;if(a&&(c+=u.length-c),sa(o)){if(e.slice(c).search(o)){var l,d=u;for(o.global||(o=_e(o.source,wa(he.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var h=l.index;u=u.slice(0,h===i?c:h)}}else if(e.indexOf(ai(o),c)!=c){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+n},jr.unescape=function(e){return(e=wa(e))&&z.test(e)?e.replace(K,ar):e},jr.uniqueId=function(e){var t=++$e;return wa(e)+t},jr.upperCase=Ya,jr.upperFirst=Qa,jr.each=ws,jr.eachRight=bs,jr.first=zo,cc(jr,(yc={},wn(jr,(function(e,t){Oe.call(jr.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),jr.VERSION="4.17.21",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jr[e].placeholder=jr})),wt(["drop","take"],(function(e,t){Wr.prototype[e]=function(r){r=r===i?1:mr(ga(r),0);var n=this.__filtered__&&!t?new Wr(this):this.clone();return n.__filtered__?n.__takeCount__=vr(r,n.__takeCount__):n.__views__.push({size:vr(r,f),type:e+(n.__dir__<0?"Right":"")}),n},Wr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),wt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Wr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),wt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Wr.prototype[e]=function(){return this[r](1).value()[0]}})),wt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Wr.prototype[e]=function(){return this.__filtered__?new Wr(this):this[r](1)}})),Wr.prototype.compact=function(){return this.filter(ic)},Wr.prototype.find=function(e){return this.filter(e).head()},Wr.prototype.findLast=function(e){return this.reverse().find(e)},Wr.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new Wr(this):this.map((function(r){return Pn(r,e,t)}))})),Wr.prototype.reject=function(e){return this.filter(Is(so(e)))},Wr.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wr.prototype.toArray=function(){return this.take(f)},wn(Wr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=jr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(jr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,c=t instanceof Wr,u=a[0],l=c||Ks(t),d=function(e){var t=o.apply(jr,Et([e],a));return n&&h?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,g=c&&!f;if(!s&&l){t=g?t:new Wr(this);var m=e.apply(t,a);return m.__actions__.push({func:ps,args:[d],thisArg:i}),new Vr(m,h)}return p&&g?e.apply(this,a):(m=this.thru(d),p?n?m.value()[0]:m.value():m)})})),wt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);jr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Ks(i)?i:[],e)}return this[r]((function(r){return t.apply(Ks(r)?r:[],e)}))}})),wn(Wr.prototype,(function(e,t){var r=jr[t];if(r){var n=r.name+"";Oe.call(Pr,n)||(Pr[n]=[]),Pr[n].push({name:t,func:r})}})),Pr[ji(i,2).name]=[{name:"wrapper",func:i}],Wr.prototype.clone=function(){var e=new Wr(this.__wrapped__);return e.__actions__=Ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ri(this.__views__),e},Wr.prototype.reverse=function(){if(this.__filtered__){var e=new Wr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ks(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},jr.prototype.plant=function(e){for(var t,r=this;r instanceof Fr;){var n=Fo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},jr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wr){var t=e;return this.__actions__.length&&(t=new Wr(this)),(t=t.reverse()).__actions__.push({func:ps,args:[ts],thisArg:i}),new Vr(t,this.__chain__)}return this.thru(ts)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,st&&(jr.prototype[st]=function(){return this}),jr}();ot._=cr,(n=function(){return cr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},7824:e=>{var t=1e3,r=60*t,n=60*r,i=24*n;function o(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,s){s=s||{};var a,c,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(a=e,(c=Math.abs(a))>=i?o(a,c,i,"day"):c>=n?o(a,c,n,"hour"):c>=r?o(a,c,r,"minute"):c>=t?o(a,c,t,"second"):a+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3437:function(e,t,r){"use strict";var n,i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseApi=void 0;const o=r(2361),s=Symbol("DO_REQUEST");class a extends o.EventEmitter{constructor({transport:e,data:t,logger:i,metadata:o,client:s}){super(),this[n]=(e,t=[])=>new Promise(((r,n)=>{this.transport.request(e,t,((t,i)=>{this.logger.debug(`response -> neovim.api.${e}: ${i}`),t?n(new Error(`${e}: ${t[1]}`)):r(i)}))})),this.setTransport(e),this.data=t,this.logger=i||r(311).logger,this.client=s,o&&Object.defineProperty(this,"metadata",{value:o})}setTransport(e){this.transport=e}equals(e){try{return String(this.data)===String(e.data)}catch(e){return!1}}asyncRequest(e,t=[],r){return i(this,void 0,void 0,(function*(){return yield this._isReady,this.logger.debug(`request -> neovim.api.${e}`),this[s](e,t).catch((t=>{const n=new Error(t.message);throw n.stack=r,this.logger.error(`Error making request to ${e}`,n),n}))}))}request(e,t=[]){const r=new Error(`Error making request to ${e}`);return this.asyncRequest(e,t,r.stack)}_getArgsByPrefix(...e){const t=[];return"nvim_"!==this.prefix&&t.push(this),t.concat(e)}getVar(e){return i(this,void 0,void 0,(function*(){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}get_var`,t).then((e=>e),(e=>{if(e&&e.message&&e.message.includes("not found"))return null;throw e}))}))}setVar(e,t){const r=this._getArgsByPrefix(e,t);return this.request(`${this.prefix}set_var`,r)}deleteVar(e){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}del_var`,t)}getOption(e){const t=this._getArgsByPrefix(e);return this.request(`${this.prefix}get_option`,t)}setOption(e,t){const r=this._getArgsByPrefix(e,t);return this.request(`${this.prefix}set_option`,r)}notify(e,t){this.logger.debug(`notify -> neovim.api.${e}`),this.transport.notify(e,t)}}t.BaseApi=a,n=s},1810:function(e,t,r){"use strict";var n,i,o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.ATTACH=t.DETACH=void 0;const s=r(3437),a=r(94);t.DETACH=Symbol("detachBuffer"),t.ATTACH=Symbol("attachBuffer");class c extends s.BaseApi{constructor(){super(...arguments),this.prefix=a.Metadata[a.ExtType.Buffer].prefix,this[n]=(e=!1,t={})=>o(this,void 0,void 0,(function*(){return!!this.client.isAttached(this)||this.request(`${this.prefix}attach`,[this,e,t])})),this[i]=()=>this.request(`${this.prefix}detach`,[this])}get isAttached(){return this.client.isAttached(this)}get id(){return this.data}get length(){return this.request(`${this.prefix}line_count`,[this])}get lines(){return this.getLines()}get changedtick(){return this.request(`${this.prefix}get_changedtick`,[this])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[this,e])}getLines({start:e,end:t,strictIndexing:r}={start:0,end:-1,strictIndexing:!0}){const n=void 0===r||r;return this.request(`${this.prefix}get_lines`,[this,e,t,n])}setLines(e,{start:t,end:r,strictIndexing:n}={strictIndexing:!0}){const i=void 0===n||n,o="string"==typeof e?[e]:e,s=void 0!==r?r:t+1;return this.request(`${this.prefix}set_lines`,[this,t,s,i,o])}insert(e,t){return this.setLines(e,{start:t,end:t,strictIndexing:!0})}replace(e,t){const r="string"==typeof e?[e]:e;return this.setLines(r,{start:t,end:t+r.length,strictIndexing:!1})}remove(e,t,r){return this.setLines([],{start:e,end:t,strictIndexing:r})}append(e){return this.setLines(e,{start:-1,end:-1,strictIndexing:!1})}get name(){return this.request(`${this.prefix}get_name`,[this])}set name(e){this.request(`${this.prefix}set_name`,[this,e])}get valid(){return this.request(`${this.prefix}is_valid`,[this])}mark(e){return this.request(`${this.prefix}get_mark`,[this,e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[this,e])}get loaded(){return this.request(`${this.prefix}is_loaded`,[this])}getOffset(e){return this.request(`${this.prefix}get_offset`,[this,e])}addHighlight({hlGroup:e,line:t,colStart:r,colEnd:n,srcId:i}){const o=void 0!==e?e:"",s=void 0!==n?n:-1,a=void 0!==r?r:-0,c=void 0!==i?i:-1;return this.request(`${this.prefix}add_highlight`,[this,c,o,t,a,s])}clearHighlight(e={}){console.warn("`clearHighlight` is deprecated, use ``clearNamespace()` instead");const{srcId:t,lineStart:r,lineEnd:n}=Object.assign(Object.assign({},{srcId:-1,lineStart:0,lineEnd:-1}),e);return this.request(`${this.prefix}clear_highlight`,[this,t,r,n])}clearNamespace(e){const{nsId:t,lineStart:r,lineEnd:n}=Object.assign(Object.assign({},{nsId:-1,lineStart:0,lineEnd:-1}),e);this.request(`${this.prefix}clear_namespace`,[this,t,r,n])}setVirtualText(e,t,r,n={}){return this.request(`${this.prefix}set_virtual_text`,[this,e,t,r,n])}listen(e,r){return this.isAttached||this[t.ATTACH]().then((t=>{t||this.unlisten(e,r)})),this.client.attachBuffer(this,e,r),()=>{this.unlisten(e,r)}}unlisten(e,r){this.isAttached&&this.client.detachBuffer(this,e,r)&&this[t.DETACH]()}}t.Buffer=c,n=t.ATTACH,i=t.DETACH},2203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Neovim=void 0;const n=r(3437),i=r(2348),o=r(1810),s=r(4637),a=r(5720);class c extends n.BaseApi{constructor(){super(...arguments),this.prefix="nvim_",this.Buffer=o.Buffer,this.Window=a.Window,this.Tabpage=s.Tabpage}get apiInfo(){return this.request(`${this.prefix}get_api_info`)}get buffers(){return this.request(`${this.prefix}list_bufs`)}get buffer(){return i.createChainableApi.call(this,"Buffer",o.Buffer,(()=>this.request(`${this.prefix}get_current_buf`)))}set buffer(e){this.request(`${this.prefix}set_current_buf`,[e])}get chans(){return this.request(`${this.prefix}list_chans`)}getChanInfo(e){return this.request(`${this.prefix}get_chan_info`,[e])}get commands(){return this.getCommands()}getCommands(e={}){return this.request(`${this.prefix}get_commands`,[e])}get tabpages(){return this.request(`${this.prefix}list_tabpages`)}get tabpage(){return i.createChainableApi.call(this,"Tabpage",s.Tabpage,(()=>this.request(`${this.prefix}get_current_tabpage`)))}set tabpage(e){this.request(`${this.prefix}set_current_tabpage`,[e])}get windows(){return this.getWindows()}get window(){return this.getWindow()}set window(e){this.setWindow(e)}getWindows(){return this.request(`${this.prefix}list_wins`)}getWindow(){return i.createChainableApi.call(this,"Window",a.Window,(()=>this.request(`${this.prefix}get_current_win`)))}setWindow(e){return this.request(`${this.prefix}set_current_win`,[e])}get runtimePaths(){return this.request(`${this.prefix}list_runtime_paths`)}set dir(e){this.request(`${this.prefix}set_current_dir`,[e])}get line(){return this.getLine()}set line(e){"string"==typeof e&&this.setLine(e)}getLine(){return this.request(`${this.prefix}get_current_line`)}setLine(e){return this.request(`${this.prefix}set_current_line`,[e])}getKeymap(e){return this.request(`${this.prefix}get_keymap`,[e])}get mode(){return this.request(`${this.prefix}get_mode`)}get colorMap(){return this.request(`${this.prefix}get_color_map`)}getColorByName(e){return this.request(`${this.prefix}get_color_by_name`,[e])}getHighlight(e,t=!0){const r="string"==typeof e?"by_name":"by_id";return this.request(`${this.prefix}get_hl_${r}`,[e,t])}getHighlightByName(e,t=!0){return this.request(`${this.prefix}get_hl_by_name`,[e,t])}getHighlightById(e,t=!0){return this.request(`${this.prefix}get_hl_by_id`,[e,t])}deleteCurrentLine(){return this.request(`${this.prefix}del_current_line`)}eval(e){return this.request(`${this.prefix}eval`,[e])}lua(e,t=[]){const r=Array.isArray(t)?t:[t];return this.request(`${this.prefix}execute_lua`,[e,r])}executeLua(e,t=[]){return this.lua(e,t)}callDictFunction(e,t,r=[]){const n=Array.isArray(r)?r:[r];return this.request(`${this.prefix}call_dict_function`,[e,t,n])}call(e,t=[]){const r=Array.isArray(t)?t:[t];return this.request(`${this.prefix}call_function`,[e,r])}callFunction(e,t=[]){return this.call(e,t)}callAtomic(e){return this.request(`${this.prefix}call_atomic`,[e])}command(e){return this.request(`${this.prefix}command`,[e])}commandOutput(e){return this.request(`${this.prefix}command_output`,[e])}getVvar(e){return this.request(`${this.prefix}get_vvar`,[e])}setVvar(e,t){return this.request(`${this.prefix}set_vvar`,[e,t])}feedKeys(e,t,r){return this.request(`${this.prefix}feedkeys`,[e,t,r])}input(e){return this.request(`${this.prefix}input`,[e])}inputMouse(e,t,r,n,i,o){return this.request(`${this.prefix}input_mouse`,[e,t,r,n,i,o])}parseExpression(e,t,r){return this.request(`${this.prefix}parse_expression`,[e,t,r])}getProc(e){return this.request(`${this.prefix}get_proc`,[e])}getProcChildren(e){return this.request(`${this.prefix}get_proc_children`,[e])}replaceTermcodes(e,t,r,n){return this.request(`${this.prefix}replace_termcodes`,[e,t,r,n])}strWidth(e){return this.request(`${this.prefix}strwidth`,[e])}outWrite(e){return this.request(`${this.prefix}out_write`,[e])}outWriteLine(e){return this.outWrite(`${e}\n`)}errWrite(e){return this.request(`${this.prefix}err_write`,[e])}errWriteLine(e){return this.request(`${this.prefix}err_writeln`,[e])}get uis(){return this.request(`${this.prefix}list_uis`)}uiAttach(e,t,r){return this.request(`${this.prefix}ui_attach`,[e,t,r])}uiDetach(){return this.request(`${this.prefix}ui_detach`,[])}uiTryResize(e,t){return this.request(`${this.prefix}ui_try_resize`,[e,t])}uiTryResizeGrid(e,t,r){return this.request(`${this.prefix}ui_try_resize_grid`,[e,t,r])}uiSetOption(e,t){return this.request(`${this.prefix}ui_set_option`,[e,t])}subscribe(e){return this.request(`${this.prefix}subscribe`,[e])}unsubscribe(e){return this.request(`${this.prefix}unsubscribe`,[e])}setClientInfo(e,t,r,n,i){this.request(`${this.prefix}set_client_info`,[e,t,r,n,i])}createNamespace(e=""){return this.request(`${this.prefix}create_namespace`,[e])}get namespaces(){return this.getNamespaces()}getNamespaces(){return this.request(`${this.prefix}get_namespaces`)}selectPopupmenuItem(e,t,r,n={}){return this.request(`${this.prefix}select_popupmenu_item`,[e,t,r,n])}createBuf(e,t){return this.request(`${this.prefix}create_buf`,[e,t])}createBuffer(e,t){return this.createBuf(e,t)}openWin(e,t,r){return this.request(`${this.prefix}open_win`,[e,t,r])}openWindow(e,t,r){return this.openWin(e,t,r)}winConfig(e,t={}){return e.config(t)}windowConfig(e,t={}){return this.winConfig(e,t)}winClose(e,t){return e.close(t)}windowClose(e,t){return this.winClose(e,t)}quit(){this.command("qa!")}}t.Neovim=c},4637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabpage=void 0;const n=r(3437),i=r(94),o=r(2348),s=r(5720);class a extends n.BaseApi{constructor(){super(...arguments),this.prefix=i.Metadata[i.ExtType.Tabpage].prefix}get windows(){return this.request(`${this.prefix}list_wins`,[this])}get window(){return o.createChainableApi.call(this,"Window",s.Window,(()=>this.request(`${this.prefix}get_win`,[this])))}get valid(){return this.request(`${this.prefix}is_valid`,[this])}get number(){return this.request(`${this.prefix}get_number`,[this])}getOption(){this.logger.error("Tabpage does not have `getOption`")}setOption(){this.logger.error("Tabpage does not have `setOption`")}}t.Tabpage=a},5720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Window=void 0;const n=r(3437),i=r(94),o=r(2348),s=r(4637),a=r(1810);class c extends n.BaseApi{constructor(){super(...arguments),this.prefix=i.Metadata[i.ExtType.Window].prefix}get id(){return this.data}get buffer(){return o.createChainableApi.call(this,"Buffer",a.Buffer,(()=>this.request(`${this.prefix}get_buf`,[this])))}get tabpage(){return o.createChainableApi.call(this,"Tabpage",s.Tabpage,(()=>this.request(`${this.prefix}get_tabpage`,[this])))}get cursor(){return this.request(`${this.prefix}get_cursor`,[this])}set cursor(e){this.request(`${this.prefix}set_cursor`,[this,e])}get height(){return this.request(`${this.prefix}get_height`,[this])}set height(e){this.request(`${this.prefix}set_height`,[this,e])}get width(){return this.request(`${this.prefix}get_width`,[this])}set width(e){this.request(`${this.prefix}set_width`,[this,e])}get position(){return this.request(`${this.prefix}get_position`,[this])}get row(){return this.request(`${this.prefix}get_position`,[this]).then((e=>e[0]))}get col(){return this.request(`${this.prefix}get_position`,[this]).then((e=>e[1]))}get valid(){return this.request(`${this.prefix}is_valid`,[this])}get number(){return this.request(`${this.prefix}get_number`,[this])}close(e=!1){return this.request(`${this.prefix}close`,[this,e])}config(e={}){return this.request(`${this.prefix}set_config`,[this,e])}}t.Window=c},4606:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NeovimClient=void 0;const i=r(138),o=r(2203);class s extends o.Neovim{constructor(e={}){super({logger:e.logger}),this.attachedBuffers=new Map;const t=e.transport||new i.Transport;this.setTransport(t),this.requestQueue=[],this.transportAttached=!1,this.handleRequest=this.handleRequest.bind(this),this.handleNotification=this.handleNotification.bind(this)}attach({reader:e,writer:t}){this.transport.attach(t,e,this),this.transportAttached=!0,this.setupTransport()}get isApiReady(){return this.transportAttached&&void 0!==this._channelId}get channelId(){return(()=>n(this,void 0,void 0,(function*(){return yield this._isReady,this._channelId})))()}isAttached(e){const t=`${e.data}`;return this.attachedBuffers.has(t)}handleRequest(e,t,r,...n){this.logger.info("handleRequest: ",e),this.isApiReady||"specs"===e?this.emit("request",e,t,r):this.requestQueue.push({type:"request",args:[e,t,r,...n]})}emitNotification(e,t){if(e.endsWith("_event")){if(!e.startsWith("nvim_buf_"))return void this.logger.error("Unhandled event: ",e);const r=e.replace(/nvim_buf_(.*)_event/,"$1"),[n]=t,i=`${n.data}`;if(!this.attachedBuffers.has(i))return;(this.attachedBuffers.get(i).get(r)||[]).forEach((e=>e(...t))),"detach"===r&&this.attachedBuffers.delete(i)}else this.emit("notification",e,t)}handleNotification(e,t,...r){this.logger.info("handleNotification: ",e),this.isApiReady?this.emitNotification(e,t):this.requestQueue.push({type:"notification",args:[e,t,...r]})}setupTransport(){if(!this.transportAttached)throw new Error("Not attached to input/output");this.transport.on("request",this.handleRequest),this.transport.on("notification",this.handleNotification),this.transport.on("detach",(()=>{this.emit("disconnect"),this.transport.removeAllListeners("request"),this.transport.removeAllListeners("notification"),this.transport.removeAllListeners("detach")})),this._isReady=this.generateApi()}requestApi(){return new Promise(((e,t)=>{this.transport.request("nvim_get_api_info",[],((r,n)=>{r?t(r):e(n)}))}))}generateApi(){return n(this,void 0,void 0,(function*(){let e;try{e=yield this.requestApi()}catch(e){this.logger.error("Could not get vim api results"),this.logger.error(e)}if(e)try{const[t]=e;return this._channelId=t,this.requestQueue.forEach((e=>{"notification"===e.type?this.emitNotification(e.args[0],e.args[1]):this.emit(e.type,...e.args)})),this.requestQueue=[],!0}catch(e){return this.logger.error(`Could not dynamically generate neovim API: ${e}`,{error:e}),this.logger.error(e.stack),null}return null}))}attachBuffer(e,t,r){const n=`${e.data}`;this.attachedBuffers.has(n)||this.attachedBuffers.set(n,new Map);const i=this.attachedBuffers.get(n);i.get(t)||i.set(t,[]);const o=i.get(t);return-1!==o.indexOf(r)||(o.push(r),i.set(t,o),this.attachedBuffers.set(n,i)),r}detachBuffer(e,t,r){const n=`${e.data}`,i=this.attachedBuffers.get(n);if(!i)return!1;const o=(i.get(t)||[]).filter((e=>e!==r));return o.length?i.set(t,o):i.delete(t),!i.size&&(this.attachedBuffers.delete(n),!0)}}t.NeovimClient=s},2348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createChainableApi=void 0;const n=r(3437),i=Object.getOwnPropertyNames(n.BaseApi.prototype);t.createChainableApi=function(e,t,r,o){if(this[`${e}Promise`]&&0===this[`${e}Promise`].status&&this[`${e}Proxy`])return this[`${e}Proxy`];this[`${e}Promise`]=r(),[...i,...Object.getOwnPropertyNames(t.prototype)].forEach((t=>{Object.defineProperty(this[`${e}Promise`],t,{enumerable:!0,writable:!0,configurable:!0})}));const s={get:(r,i)=>{const s=Object.prototype.hasOwnProperty.call(t.prototype,i)||Object.prototype.hasOwnProperty.call(n.BaseApi.prototype,i),a=Object.getOwnPropertyDescriptor(t.prototype,i)||Object.getOwnPropertyDescriptor(n.BaseApi.prototype,i),c=a&&(void 0!==a.get||void 0!==a.set);return t&&s?s&&!c&&(i in t.prototype&&"function"==typeof t.prototype[i]||i in n.BaseApi.prototype&&"function"==typeof n.BaseApi.prototype[i])?(...t)=>this[`${e}Promise`].then((e=>e[i].call(e,...t))):o&&o()||this[`${e}Promise`].then((e=>e[i])):i in r?"function"==typeof r[i]?r[i].bind(r):r[i]:null},set:(e,t,r,n)=>(n&&(n instanceof Promise||"then"in n)?n.then((e=>{t in e&&(e[t]=r)})):e[t]=r,!0)};return this[`${e}Proxy`]=new Proxy(this[`${e}Promise`],s),this[`${e}Proxy`]}},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.ExtType=void 0;const n=r(1810),i=r(5720),o=r(4637);var s;(s=t.ExtType||(t.ExtType={}))[s.Buffer=0]="Buffer",s[s.Window=1]="Window",s[s.Tabpage=2]="Tabpage",t.Metadata=[{constructor:n.Buffer,name:"Buffer",prefix:"nvim_buf_"},{constructor:i.Window,name:"Window",prefix:"nvim_win_"},{constructor:o.Tabpage,name:"Tabpage",prefix:"nvim_tabpage_"}]},3286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attach=void 0;var n=r(1291);Object.defineProperty(t,"attach",{enumerable:!0,get:function(){return n.attach}})},1291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attach=void 0;const n=r(1808),i=r(4606);t.attach=function({reader:e,writer:t,proc:o,socket:s,options:a={}}){let c,u;if(s){const e=(0,n.createConnection)(s);c=e,u=e}else e&&t?(c=t,u=e):o&&(c=o.stdin,u=o.stdout);if(c&&u){const e=a.logger||r(311).logger,t=new i.NeovimClient({logger:e});return t.attach({writer:c,reader:u}),t}throw new Error("Invalid arguments, could not attach")}},311:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=void 0;const s=o(r(598)),a=process.env.NVIM_NODE_LOG_LEVEL||"debug";t.logger=function(){const e=s.createLogger({level:a});return process.env.NVIM_NODE_LOG_FILE&&e.add(new s.transports.File({filename:process.env.NVIM_NODE_LOG_FILE,level:a})),process.env.ALLOW_CONSOLE&&e.add(new s.transports.Console({format:s.format.simple()})),process.env.NVIM_NODE_LOG_FILE||process.env.ALLOW_CONSOLE||e.add(new s.transports.Console({silent:!0})),e}()},138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=void 0;const n=r(2361),i=r(9676),o=r(94);class s{constructor(e,t){this.encoder=e,this.requestId=t}send(e,t){if(this.sent)throw new Error(`Response to id ${this.requestId} already sent`);const r=(0,i.encode)([1,this.requestId,t?e:null,t?null:e]);this.encoder.write(Buffer.from(r.buffer,r.byteOffset,r.byteLength)),this.sent=!0}}class a extends n.EventEmitter{constructor(){super(...arguments),this.pending=new Map,this.nextRequestId=1,this.extensionCodec=this.initializeExtensionCodec()}initializeExtensionCodec(){const e=new i.ExtensionCodec;return o.Metadata.forEach((({constructor:t},r)=>{e.register({type:r,encode:e=>e instanceof t?(0,i.encode)(e.data):null,decode:e=>new t({transport:this,client:this.client,data:(0,i.decode)(e)})})})),e}encodeToBuffer(e){const t=(0,i.encode)(e,{extensionCodec:this.extensionCodec});return Buffer.from(t.buffer,t.byteOffset,t.byteLength)}attach(e,t,r){this.writer=e,this.reader=t,this.client=r,this.reader.on("end",(()=>{this.emit("detach")}));const n=(0,i.decodeMultiStream)(this.reader,{extensionCodec:this.extensionCodec}),o=e=>{e.next().then((t=>t.done?Promise.resolve():(this.parseMessage(t.value),o(e))))};o(n)}request(e,t,r){this.nextRequestId=this.nextRequestId+1,this.writer.write(this.encodeToBuffer([0,this.nextRequestId,e,t])),this.pending.set(this.nextRequestId,r)}notify(e,t){this.writer.write(this.encodeToBuffer([2,e,t]))}parseMessage(e){const t=e[0];if(0===t)this.emit("request",e[2].toString(),e[3],new s(this.writer,e[1]));else if(1===t){const t=e[1],r=this.pending.get(t);this.pending.delete(t),r(e[2],e[3])}else 2===t?this.emit("notification",e[1].toString(),e[2]):this.writer.write(this.encodeToBuffer([1,0,"Invalid message type",null]))}}t.Transport=a},1733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.isAsync)(e)?function(...t){const r=t.pop();return a(e.apply(this,t),r)}:(0,n.default)((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}if(n&&"function"==typeof n.then)return a(n,r);r(null,n)}))};var n=s(r(1773)),i=s(r(1040)),o=r(1451);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return e.then((e=>{c(t,null,e)}),(e=>{c(t,e&&e.message?e:new Error(e))}))}function c(e,t,r){try{e(t,r)}catch(e){(0,i.default)((e=>{throw e}),e)}}e.exports=t.default},1622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(r(6159)),i=l(r(7236)),o=l(r(5327)),s=l(r(9487)),a=l(r(2548)),c=l(r(1451)),u=l(r(8893));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){r=(0,s.default)(r);var n=0,o=0,{length:c}=e,u=!1;function l(e,t){!1===e&&(u=!0),!0!==u&&(e?r(e):++o!==c&&t!==i.default||r(null))}for(0===c&&r(null);n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(3766)),i=s(r(1451)),o=s(r(8893));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)((function(e,t,r,o){return(0,n.default)(t)(e,(0,i.default)(r),o)}),4),e.exports=t.default},2280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(5327)),i=o(r(8893));function o(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,r){return(0,n.default)(e,1,t,r)}),3),e.exports=t.default},1052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(1622)),i=a(r(7347)),o=a(r(1451)),s=a(r(8893));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,s.default)((function(e,t,r){return(0,n.default)(e,(0,i.default)((0,o.default)(t)),r)}),3),e.exports=t.default},8552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){let o=!1,s=!1,a=!1,c=0,u=0;function l(){c>=t||a||o||(a=!0,e.next().then((({value:e,done:t})=>{if(!s&&!o){if(a=!1,t)return o=!0,void(c<=0&&n(null));c++,r(e,u,d),u++,l()}})).catch(h))}function d(e,t){if(c-=1,!s)return e?h(e):!1===e?(o=!0,void(s=!0)):t===i.default||o&&c<=0?(o=!0,n(null)):void l()}function h(e){s||(a=!1,o=!0,n(e))}l()};var n,i=(n=r(7236))&&n.__esModule?n:{default:n};e.exports=t.default},8893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...r){return"function"==typeof r[t-1]?e.apply(this,r):new Promise(((n,i)=>{r[t-1]=(e,...t)=>{if(e)return i(e);n(t.length>1?t:t[0])},e.apply(this,r)}))}},e.exports=t.default},7236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={},e.exports=t.default},3766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(r(9487)),i=u(r(8225)),o=u(r(2548)),s=r(1451),a=u(r(8552)),c=u(r(7236));function u(e){return e&&e.__esModule?e:{default:e}}t.default=e=>(t,r,u)=>{if(u=(0,n.default)(u),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return u(null);if((0,s.isAsyncGenerator)(t))return(0,a.default)(t,e,r,u);if((0,s.isAsyncIterable)(t))return(0,a.default)(t[Symbol.asyncIterator](),e,r,u);var l=(0,i.default)(t),d=!1,h=!1,f=0,p=!1;function g(e,t){if(!h)if(f-=1,e)d=!0,u(e);else if(!1===e)d=!0,h=!0;else{if(t===c.default||d&&f<=0)return d=!0,u(null);p||m()}}function m(){for(p=!0;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()},e.exports=t.default},1773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){var r=t.pop();return e.call(this,t,r)}},e.exports=t.default},6159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0},e.exports=t.default},8225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e))return function(e){var t=-1,r=e.length;return function(){return++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(...t){if(null!==e){var r=e;e=null,r.apply(this,t)}}return Object.assign(t,e),t},e.exports=t.default},2548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var r=e;e=null,r.apply(this,t)}},e.exports=t.default},730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(6159)),i=s(r(1451)),o=s(r(8893));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(((e,t,r)=>{var o=(0,n.default)(t)?[]:{};e(t,((e,t,r)=>{(0,i.default)(e)(((e,...n)=>{n.length<2&&([n]=n),o[t]=n,r(e)}))}),(e=>r(e,o)))}),3),e.exports=t.default},1040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=o,t.wrap=s;var r,n=t.hasSetImmediate="function"==typeof setImmediate&&setImmediate,i=t.hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;function o(e){setTimeout(e,0)}function s(e){return(t,...r)=>e((()=>t(...r)))}r=n?setImmediate:i?process.nextTick:o,t.default=s(r)},7347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,r,n)=>e(t,n)},e.exports=t.default},1451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=t.isAsyncGenerator=t.isAsync=void 0;var n,i=(n=r(1733))&&n.__esModule?n:{default:n};function o(e){return"AsyncFunction"===e[Symbol.toStringTag]}t.default=function(e){if("function"!=typeof e)throw new Error("expected a function");return o(e)?(0,i.default)(e):e},t.isAsync=o,t.isAsyncGenerator=function(e){return"AsyncGenerator"===e[Symbol.toStringTag]},t.isAsyncIterable=function(e){return"function"==typeof e[Symbol.asyncIterator]}},6046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(i.default,e,t)};var n=o(r(730)),i=o(r(2280));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7982:(e,t,r)=>{"use strict";const n=r(392);e.exports=n((e=>(e.message=`\t${e.message}`,e)))},7472:(e,t,r)=>{"use strict";const n=t.format=r(392);t.levels=r(5373),Object.defineProperty(n,"align",{value:r(7982)}),Object.defineProperty(n,"cli",{value:r(6247)}),Object.defineProperty(n,"combine",{value:r(7708)}),Object.defineProperty(n,"colorize",{value:r(2997)}),Object.defineProperty(n,"json",{value:r(9584)}),Object.defineProperty(n,"label",{value:r(1261)}),Object.defineProperty(n,"logstash",{value:r(3129)}),Object.defineProperty(n,"metadata",{value:r(8946)}),Object.defineProperty(n,"padLevels",{value:r(7981)}),Object.defineProperty(n,"prettyPrint",{value:r(4510)}),Object.defineProperty(n,"printf",{value:r(1681)}),Object.defineProperty(n,"simple",{value:r(5215)}),Object.defineProperty(n,"splat",{value:r(8059)}),Object.defineProperty(n,"timestamp",{value:r(9785)}),Object.defineProperty(n,"uncolorize",{value:r(3034)})},6247:(e,t,r)=>{"use strict";const{Colorizer:n}=r(2997),{Padder:i}=r(7981),{configs:o,MESSAGE:s}=r(5396);class a{constructor(e={}){e.levels||(e.levels=o.npm.levels),this.colorizer=new n(e),this.padder=new i(e),this.options=e}transform(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[s]=`${e.level}:${e.message}`,e}}e.exports=e=>new a(e),e.exports.Format=a},2997:(e,t,r)=>{"use strict";const n=r(4431),{LEVEL:i,MESSAGE:o}=r(5396);n.enabled=!0;const s=/\s+/;class a{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){const t=Object.keys(e).reduce(((t,r)=>(t[r]=s.test(e[r])?e[r].split(s):e[r],t)),{});return a.allColors=Object.assign({},a.allColors||{},t),a.allColors}addColors(e){return a.addColors(e)}colorize(e,t,r){if(void 0===r&&(r=t),!Array.isArray(a.allColors[e]))return n[a.allColors[e]](r);for(let t=0,i=a.allColors[e].length;tnew a(e),e.exports.Colorizer=e.exports.Format=a},7708:(e,t,r)=>{"use strict";const n=r(392);function i(e){if(e.every(o))return t=>{let r=t;for(let t=0;t{const t=n(i(e)),r=t();return r.Format=t.Format,r},e.exports.cascade=i},7645:(e,t,r)=>{"use strict";var n=r(6037);e.exports=n((function(e){return e.message="\t".concat(e.message),e}))},8245:(e,t,r)=>{"use strict";var n=t.format=r(6037);t.levels=r(9294),Object.defineProperty(n,"align",{value:r(7645)}),Object.defineProperty(n,"cli",{value:r(9101)}),Object.defineProperty(n,"combine",{value:r(1809)}),Object.defineProperty(n,"colorize",{value:r(8820)}),Object.defineProperty(n,"json",{value:r(9603)}),Object.defineProperty(n,"label",{value:r(1700)}),Object.defineProperty(n,"logstash",{value:r(3898)}),Object.defineProperty(n,"metadata",{value:r(1185)}),Object.defineProperty(n,"padLevels",{value:r(4951)}),Object.defineProperty(n,"prettyPrint",{value:r(944)}),Object.defineProperty(n,"printf",{value:r(7812)}),Object.defineProperty(n,"simple",{value:r(6941)}),Object.defineProperty(n,"splat",{value:r(2490)}),Object.defineProperty(n,"timestamp",{value:r(4354)}),Object.defineProperty(n,"uncolorize",{value:r(8806)})},9101:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),t.levels||(t.levels=c.npm.levels),this.colorizer=new o(t),this.padder=new s(t),this.options=t}var t,r;return t=e,(r=[{key:"transform",value:function(e,t){return this.colorizer.transform(this.padder.transform(e,t),t),e[u]="".concat(e.level,":").concat(e.message),e}}])&&i(t.prototype,r),e}();e.exports=function(e){return new l(e)},e.exports.Format=l},8820:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),t.colors&&this.addColors(t.colors),this.options=t}var t,r,s;return t=e,s=[{key:"addColors",value:function(t){var r=Object.keys(t).reduce((function(e,r){return e[r]=u.test(t[r])?t[r].split(u):t[r],e}),{});return e.allColors=Object.assign({},e.allColors||{},r),e.allColors}}],(r=[{key:"addColors",value:function(t){return e.addColors(t)}},{key:"colorize",value:function(t,r,n){if(void 0===n&&(n=r),!Array.isArray(e.allColors[t]))return o[e.allColors[t]](n);for(var i=0,s=e.allColors[t].length;i{"use strict";var n=r(6037);function i(e){if(e.every(o))return function(t){for(var r=t,n=0;n{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(6037),o=r(5396),s=o.LEVEL,a=o.MESSAGE;e.exports=i((function(e,t){var r=t.stack;if(e instanceof Error){var i,o=Object.assign({},e,(n(i={level:e.level},s,e[s]||e.level),n(i,"message",e.message),n(i,a,e[a]||e.message),i));return r&&(o.stack=e.stack),o}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);var c=e.message;return e.message=c.message,e[a]=c.message,r&&(e.stack=c.stack),e}))},6037:e=>{"use strict";function t(e){return(t="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})(e)}function r(e,r){return!r||"object"!==t(r)&&"function"!=typeof r?n(e):r}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function o(e,t,r){return(o=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&a(i,r.prototype),i}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(u,e);var t,i,o=(t=u,i=s(),function(){var e,n=c(t);if(i){var o=c(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return r(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=o.call(this,"Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ".concat(e.toString().split("\n")[0],"\n")),Error.captureStackTrace(n(t),u),t}return u}(i(Error));e.exports=function(e){if(e.length>2)throw new u(e);function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}function r(e){return new t(e)}return t.prototype.transform=e,r.Format=t,r}},5818:(e,t,r)=>{"use strict";var n=t.format=r(6037);function i(e,t){t=t||e,Object.defineProperty(n,e,{get:function(){return r(8465)("./".concat(t,".js"))},configurable:!0})}t.levels=r(9294),i("align"),i("errors"),i("cli"),i("combine"),i("colorize"),i("json"),i("label"),i("logstash"),i("metadata"),i("ms"),i("padLevels","pad-levels"),i("prettyPrint","pretty-print"),i("printf"),i("simple"),i("splat"),i("timestamp"),i("uncolorize")},9603:(e,t,r)=>{"use strict";var n=r(6037),i=r(5396).MESSAGE,o=r(4445);function s(e,t){return t instanceof Buffer?t.toString("base64"):"bigint"==typeof t?t.toString():t}e.exports=n((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[i]=(t.stable?o.stableStringify:o)(e,t.replacer||s,t.space),e}))},1700:(e,t,r)=>{"use strict";var n=r(6037);e.exports=n((function(e,t){return t.message?(e.message="[".concat(t.label,"] ").concat(e.message),e):(e.label=t.label,e)}))},9294:(e,t,r)=>{"use strict";var n=r(8820).Colorizer;e.exports=function(e){return n.addColors(e.colors||e),e}},3898:(e,t,r)=>{"use strict";var n=r(6037),i=r(5396).MESSAGE,o=r(4445);e.exports=n((function(e){var t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},1185:(e,t,r)=>{"use strict";var n=r(6037);function i(e,t,r){var n,i,o,s=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),a=Object.keys(e).reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{});return Object.assign(e,s,(o=a,(i=r)in(n={})?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n)),e}function o(e,t,r){return e[r]=t.reduce((function(t,r){return t[r]=e[r],delete e[r],t}),{}),e}e.exports=n((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="metadata";t.key&&(r=t.key);var n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?i(e,n,r):t.fillWith?o(e,t.fillWith,r):e}))},6219:(e,t,r)=>{"use strict";var n=void 0,i=r(6037),o=r(7824);e.exports=i((function(e){var t=+new Date;return n.diff=t-(n.prevTime||t),n.prevTime=t,e.ms="+".concat(o(n.diff)),e}))},4951:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{levels:a.npm.levels};i(this,e),this.paddings=e.paddingForLevels(t.levels,t.filler),this.options=t}var t,r,s;return t=e,s=[{key:"getLongestLevel",value:function(e){var t,r=Object.keys(e).map((function(e){return e.length}));return Math.max.apply(Math,function(e){if(Array.isArray(e))return n(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t)||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.")}())}},{key:"paddingForLevel",value:function(e,t,r){var n=r+1-e.length,i=Math.floor(n/t.length);return"".concat(t).concat(t.repeat(i)).slice(0,n)}},{key:"paddingForLevels",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=e.getLongestLevel(t);return Object.keys(t).reduce((function(t,i){return t[i]=e.paddingForLevel(i,r,n),t}),{})}}],(r=[{key:"transform",value:function(e,t){return e.message="".concat(this.paddings[e[c]]).concat(e.message),e[u]&&(e[u]="".concat(this.paddings[e[c]]).concat(e[u])),e}}])&&o(t.prototype,r),s&&o(t,s),e}();e.exports=function(e){return new l(e)},e.exports.Padder=e.exports.Format=l},944:(e,t,r)=>{"use strict";var n=r(3837).inspect,i=r(6037),o=r(5396),s=o.LEVEL,a=o.MESSAGE,c=o.SPLAT;e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e);return delete r[s],delete r[a],delete r[c],e[a]=n(r,!1,t.depth||null,t.colorize),e}))},7812:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r{"use strict";var n=r(6037),i=r(5396).MESSAGE,o=r(4445);e.exports=n((function(e){var t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?"".concat(e.level,":").concat(r," ").concat(e.message," ").concat(t):"".concat(e.level,":").concat(r," ").concat(e.message),e}))},2490:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r.splice(0):r,o=i.length;if(o)for(var c=0;c{"use strict";var n=r(9432),i=r(6037);e.exports=i((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e}))},8806:(e,t,r)=>{"use strict";var n=r(4431),i=r(6037),o=r(5396).MESSAGE;e.exports=i((function(e,t){return!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=n.strip(e[o])),e}))},8465:(e,t,r)=>{var n={"./align.js":7645,"./browser.js":8245,"./cli.js":9101,"./colorize.js":8820,"./combine.js":1809,"./errors.js":2730,"./format.js":6037,"./index.js":5818,"./json.js":9603,"./label.js":1700,"./levels.js":9294,"./logstash.js":3898,"./metadata.js":1185,"./ms.js":6219,"./pad-levels.js":4951,"./pretty-print.js":944,"./printf.js":7812,"./simple.js":6941,"./splat.js":2490,"./timestamp.js":4354,"./uncolorize.js":8806};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=8465},958:(e,t,r)=>{"use strict";const n=r(392),{LEVEL:i,MESSAGE:o}=r(5396);e.exports=n(((e,{stack:t})=>{if(e instanceof Error){const r=Object.assign({},e,{level:e.level,[i]:e[i]||e.level,message:e.message,[o]:e[o]||e.message});return t&&(r.stack=e.stack),r}if(!(e.message instanceof Error))return e;Object.assign(e,e.message);const r=e.message;return e.message=r.message,e[o]=r.message,t&&(e.stack=r.stack),e}))},7909:(e,t,r)=>{const{format:n}=r(8892),{combine:i,timestamp:o,label:s}=n,a=i(s({label:"right meow!"}),o()).transform({level:"info",message:"What time is the testing at?"});console.dir(a)},4672:(e,t,r)=>{const{format:n}=r(8892),{combine:i,timestamp:o,label:s}=n,a=n(((e,t)=>!e.private&&e))();console.dir(a.transform({level:"error",message:"Public error to share"})),console.dir(a.transform({level:"error",private:!0,message:"This is super secret - hide it."}));const c=n.combine(n((e=>!1))(),n((e=>{throw new Error("Never reached")}))());console.dir(c.transform({level:"info",message:"wow such testing"}))},8194:(e,t,r)=>{const{format:n}=r(8892);n((function(e,t,r,n){return e}))},9651:(e,t,r)=>{const{format:n}=r(8892),{combine:i,json:o,metadata:s,timestamp:a}=n,c=i(a(),s(),o()).transform({level:"info",message:"This should be a message.",application:"Microsoft Office",store:"Big Box Store",purchaseAmount:"9.99"});console.dir(c);const u=i(a(),s({fillExcept:["message","level","timestamp"]}),o()).transform({level:"info",message:"This should have attached metadata",category:"movies",subCategory:"action"});console.dir(u);const l=i(a(),s({fillWith:["publisher","author","book"],key:"bookInfo"}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel"});console.dir(l);const d=i(a(),s({fillWith:["publisher","author","book"],key:"bookInfo"}),s({fillWith:["purchasePrice","purchaseDate","transactionId"],key:"transactionInfo"}),s({fillExcept:["level","message","label","timestamp"]}),o()).transform({level:"debug",message:"This message should be outside of the bookInfo object",publisher:"Lorem Press",author:"Albert Einstein",book:"4D Chess for Dummies",label:"myCustomLabel",purchasePrice:"9.99",purchaseDate:"2.10.2018",transactionId:"123ABC"});console.dir(d)},2381:(e,t,r)=>{const{format:n}=r(8892),{combine:i,padLevels:o,simple:s}=n,{MESSAGE:a}=r(5396),c=i(o({levels:{error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6}}),s()),u=c.transform({level:"info",message:"This is an info level message."}),l=c.transform({level:"error",message:"This is an error level message."}),d=c.transform({level:"verbose",message:"This is a verbose level message."});console.dir(u[a]),console.dir(l[a]),console.dir(d[a])},2345:(e,t,r)=>{const{format:n}=r(8892),i=n(((e,t)=>(t.yell?e.message=e.message.toUpperCase():t.whisper&&(e.message=e.message.toLowerCase()),e))),o=i({yell:!0});console.dir(o.transform({level:"info",message:"sorry for making you YELL in your head!"},o.options));const s=i({whisper:!0});console.dir(s.transform({level:"info",message:"WHY ARE THEY MAKING US YELL SO MUCH!"},s.options))},392:e=>{"use strict";class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)\nFound: ${e.toString().split("\n")[0]}\n`),Error.captureStackTrace(this,t)}}e.exports=e=>{if(e.length>2)throw new t(e);function r(e={}){this.options=e}function n(e){return new r(e)}return r.prototype.transform=e,n.Format=r,n}},8892:(e,t,r)=>{"use strict";const n=t.format=r(392);function i(e,t){t=t||e,Object.defineProperty(n,e,{get:()=>r(4296)(`./${t}.js`),configurable:!0})}t.levels=r(5373),i("align"),i("errors"),i("cli"),i("combine"),i("colorize"),i("json"),i("label"),i("logstash"),i("metadata"),i("ms"),i("padLevels","pad-levels"),i("prettyPrint","pretty-print"),i("printf"),i("simple"),i("splat"),i("timestamp"),i("uncolorize")},9584:(e,t,r)=>{"use strict";const n=r(392),{MESSAGE:i}=r(5396),o=r(4445);function s(e,t){return t instanceof Buffer?t.toString("base64"):"bigint"==typeof t?t.toString():t}e.exports=n(((e,t={})=>(e[i]=(t.stable?o.stableStringify:o)(e,t.replacer||s,t.space),e)))},1261:(e,t,r)=>{"use strict";const n=r(392);e.exports=n(((e,t)=>t.message?(e.message=`[${t.label}] ${e.message}`,e):(e.label=t.label,e)))},5373:(e,t,r)=>{"use strict";const{Colorizer:n}=r(2997);e.exports=e=>(n.addColors(e.colors||e),e)},3129:(e,t,r)=>{"use strict";const n=r(392),{MESSAGE:i}=r(5396),o=r(4445);e.exports=n((e=>{const t={};return e.message&&(t["@message"]=e.message,delete e.message),e.timestamp&&(t["@timestamp"]=e.timestamp,delete e.timestamp),t["@fields"]=e,e[i]=o(t),e}))},8946:(e,t,r)=>{"use strict";const n=r(392);e.exports=n(((e,t={})=>{let r="metadata";t.key&&(r=t.key);let n=[];return t.fillExcept||t.fillWith||(n.push("level"),n.push("message")),t.fillExcept&&(n=t.fillExcept),n.length>0?function(e,t,r){const n=t.reduce(((t,r)=>(t[r]=e[r],delete e[r],t)),{}),i=Object.keys(e).reduce(((t,r)=>(t[r]=e[r],delete e[r],t)),{});return Object.assign(e,n,{[r]:i}),e}(e,n,r):t.fillWith?function(e,t,r){return e[r]=t.reduce(((t,r)=>(t[r]=e[r],delete e[r],t)),{}),e}(e,t.fillWith,r):e}))},8963:function(e,t,r){"use strict";const n=r(392),i=r(7824);e.exports=n((e=>{const t=+new Date;return this.diff=t-(this.prevTime||t),this.prevTime=t,e.ms=`+${i(this.diff)}`,e}))},7981:(e,t,r)=>{"use strict";const{configs:n,LEVEL:i,MESSAGE:o}=r(5396);class s{constructor(e={levels:n.npm.levels}){this.paddings=s.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){const t=Object.keys(e).map((e=>e.length));return Math.max(...t)}static paddingForLevel(e,t,r){const n=r+1-e.length,i=Math.floor(n/t.length);return`${t}${t.repeat(i)}`.slice(0,n)}static paddingForLevels(e,t=" "){const r=s.getLongestLevel(e);return Object.keys(e).reduce(((e,n)=>(e[n]=s.paddingForLevel(n,t,r),e)),{})}transform(e,t){return e.message=`${this.paddings[e[i]]}${e.message}`,e[o]&&(e[o]=`${this.paddings[e[i]]}${e[o]}`),e}}e.exports=e=>new s(e),e.exports.Padder=e.exports.Format=s},4510:(e,t,r)=>{"use strict";const n=r(3837).inspect,i=r(392),{LEVEL:o,MESSAGE:s,SPLAT:a}=r(5396);e.exports=i(((e,t={})=>{const r=Object.assign({},e);return delete r[o],delete r[s],delete r[a],e[s]=n(r,!1,t.depth||null,t.colorize),e}))},1681:(e,t,r)=>{"use strict";const{MESSAGE:n}=r(5396);class i{constructor(e){this.template=e}transform(e){return e[n]=this.template(e),e}}e.exports=e=>new i(e),e.exports.Printf=e.exports.Format=i},5215:(e,t,r)=>{"use strict";const n=r(392),{MESSAGE:i}=r(5396),o=r(4445);e.exports=n((e=>{const t=o(Object.assign({},e,{level:void 0,message:void 0,splat:void 0})),r=e.padding&&e.padding[e.level]||"";return e[i]="{}"!==t?`${e.level}:${r} ${e.message} ${t}`:`${e.level}:${r} ${e.message}`,e}))},8059:(e,t,r)=>{"use strict";const n=r(3837),{SPLAT:i}=r(5396),o=/%[scdjifoO%]/g,s=/%%/g;class a{constructor(e){this.options=e}_splat(e,t){const r=e.message,o=e[i]||e.splat||[],a=r.match(s),c=a&&a.length||0,u=t.length-c-o.length,l=u<0?o.splice(u,-1*u):[],d=l.length;if(d)for(let t=0;t1?r.splice(0):r,n=t.length;if(n)for(let r=0;rnew a(e)},9785:(e,t,r)=>{"use strict";const n=r(9432),i=r(392);e.exports=i(((e,t={})=>(t.format&&(e.timestamp="function"==typeof t.format?t.format():n.format(new Date,t.format)),e.timestamp||(e.timestamp=(new Date).toISOString()),t.alias&&(e[t.alias]=e.timestamp),e)))},3034:(e,t,r)=>{"use strict";const n=r(4431),i=r(392),{MESSAGE:o}=r(5396);e.exports=i(((e,t)=>(!1!==t.level&&(e.level=n.strip(e.level)),!1!==t.message&&(e.message=n.strip(e.message)),!1!==t.raw&&e[o]&&(e[o]=n.strip(e[o])),e)))},4296:(e,t,r)=>{var n={"./align.js":7982,"./browser.js":7472,"./cli.js":6247,"./colorize.js":2997,"./combine.js":7708,"./dist/align.js":7645,"./dist/browser.js":8245,"./dist/cli.js":9101,"./dist/colorize.js":8820,"./dist/combine.js":1809,"./dist/errors.js":2730,"./dist/format.js":6037,"./dist/index.js":5818,"./dist/json.js":9603,"./dist/label.js":1700,"./dist/levels.js":9294,"./dist/logstash.js":3898,"./dist/metadata.js":1185,"./dist/ms.js":6219,"./dist/pad-levels.js":4951,"./dist/pretty-print.js":944,"./dist/printf.js":7812,"./dist/simple.js":6941,"./dist/splat.js":2490,"./dist/timestamp.js":4354,"./dist/uncolorize.js":8806,"./errors.js":958,"./examples/combine.js":7909,"./examples/filter.js":4672,"./examples/invalid.js":8194,"./examples/metadata.js":9651,"./examples/padLevels.js":2381,"./examples/volume.js":2345,"./format.js":392,"./index.js":8892,"./json.js":9584,"./label.js":1261,"./levels.js":5373,"./logstash.js":3129,"./metadata.js":8946,"./ms.js":8963,"./pad-levels.js":7981,"./pretty-print.js":4510,"./printf.js":1681,"./simple.js":5215,"./splat.js":8059,"./timestamp.js":9785,"./uncolorize.js":3034};function i(e){var t=o(e);return r(t)}function o(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=4296},6539:e=>{"use strict";const t={};function r(e,r,n){n||(n=Error);class i extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(e,t,n))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){const r=e.length;return e=e.map((e=>String(e))),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){let i;var o;let s;var a,c;return"string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",s=function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument")?`The ${e} ${i} ${n(t,"type")}`:`The "${e}" ${a=e,"number"!=typeof c&&(c=0),c+".".length>a.length||-1===a.indexOf(".",c)?"argument":"property"} ${i} ${n(t,"type")}`,s+=". Received type "+typeof r,s}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2025:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(6277),o=r(4247);r(4378)(u,i);for(var s=n(o.prototype),a=0;a{"use strict";e.exports=i;var n=r(6912);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(4378)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},6277:(e,t,r)=>{"use strict";var n;e.exports=C,C.ReadableState=M,r(2361).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},s=r(7495),a=r(4300).Buffer,c=global.Uint8Array||function(){},u=r(3837);i=u&&u.debuglog?u.debuglog("stream"):function(){};var l,d,h,f=r(7556),p=r(5125),g=r(9318).getHighWaterMark,m=r(6539).q,v=m.ERR_INVALID_ARG_TYPE,y=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(4378)(C,s);var S=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function M(e,t,i){n=n||r(2025),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(9004).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function C(e){if(n=n||r(2025),!(this instanceof C))return new C(e);var t=this instanceof n;this._readableState=new M(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function _(e,t,r,n,o){i("readableAddChunk",t);var s,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}}(e,u);else if(o||(s=function(e,t){var r,n;return n=t,a.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),s)S(e,s);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)u.endEmitted?S(e,new b):E(e,u,t,!0);else if(u.ended)S(e,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?E(e,u,t,!1):T(e,u)):E(e,u,t,!1)}else n||(u.reading=!1,T(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(A,e))}function A(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,I(e)}function T(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){i("readable nexttick read 0"),e.read(0)}function B(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),I(e),t.flowing&&!t.reading&&e.read(0)}function I(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(D,t,e))}function D(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):P(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},C.prototype._read=function(e){S(this,new w("_read()"))},C.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?p:a;function a(){i("onend"),e.end()}n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",(function t(o,s){i("onunpipe"),o===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",a),r.removeListener("end",p),r.removeListener("data",l),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,I(e))}}(r);e.on("drain",c);var u=!1;function l(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!u&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){i("onerror",t),p(),e.removeListener("error",d),0===o(e,"error")&&S(e,t)}function h(){e.removeListener("finish",f),p()}function f(){i("onfinish"),e.removeListener("close",h),p()}function p(){i("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",f),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},C.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?P(this):n.reading||process.nextTick($,this))),r},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(O,this),r},C.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(O,this),t},C.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(B,e,t))}(this,e)),e.paused=!1,this},C.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s{"use strict";e.exports=l;var n=r(6539).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(2025);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=C,C.WritableState=M;var o,s={deprecate:r(1159)},a=r(7495),c=r(4300).Buffer,u=global.Uint8Array||function(){},l=r(5125),d=r(9318).getHighWaterMark,h=r(6539).q,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,b=h.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function x(){}function M(e,t,o){i=i||r(2025),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(A,e,t),e._writableState.errorEmitted=!0,S(e,n)):(i(n),e._writableState.errorEmitted=!0,S(e,n),A(e,t))}(e,r,n,t,i);else{var o=k(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?process.nextTick(E,e,r,o,i):E(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function C(e){var t=this instanceof(i=i||r(2025));if(!t&&!o.call(C,this))return new C(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function _(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),A(e,t)}function R(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,_(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(_(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final((function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),A(e,t)}))}function A(e,t){var r=k(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(P,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(4378)(C,a),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===C&&e&&e._writableState instanceof M}})):o=function(e){return e instanceof this},C.prototype.pipe=function(){S(this,new m)},C.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,c.isBuffer(n)||n instanceof u);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=x),i.ending?function(e,t){var r=new w;S(e,r),process.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i;return null===r?i=new y:"string"==typeof r||t.objectMode||(i=new f("chunk",["string","Buffer"],r)),!i||(S(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(e,t,r){r(new p("_write()"))},C.prototype._writev=null,C.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,A(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),C.prototype.destroy=l.destroy,C.prototype._undestroy=l.undestroy,C.prototype._destroy=function(e,t){t(e)}},9935:(e,t,r)=>{"use strict";var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(7390),s=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(f(r,!1)))}}function g(e){process.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(f(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(f(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(f(i,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(v,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[s]=null,r[a]=null,e(f(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(f(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},7556:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,s.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},7390:(e,t,r)=>{"use strict";var n=r(6539).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";function n(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,c,"next",e)}function c(e){n(s,i,o,a,c,"throw",e)}a(void 0)}))}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(6539).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){var n;if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new a("iterable",["Iterable"],t);n=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t{"use strict";var n,i=r(6539).q,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(7390)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);a=!0,o()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){n||(n=e),e&&s.forEach(u),o||(s.forEach(u),i(n))}))}));return t.reduce(l)}},9318:(e,t,r)=>{"use strict";var n=r(6539).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},7495:(e,t,r)=>{e.exports=r(2781)},1135:(e,t,r)=>{var n=r(2781);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(6277)).Stream=n||t,t.Readable=t,t.Writable=r(4247),t.Duplex=r(2025),t.Transform=r(6912),t.PassThrough=r(1964),t.finished=r(7390),t.pipeline=r(147))},1724:(e,t,r)=>{var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},9004:(e,t,r)=>{"use strict";var n=r(9999).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},9999:(e,t,r)=>{var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},5367:(e,t,r)=>{"use strict";const n=r(3837),i=r(7120),{LEVEL:o}=r(5396),s=e.exports=function(e={}){i.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",(e=>{this.levels=e.levels,this.parent=e})),this.once("unpipe",(e=>{e===this.parent&&(this.parent=null,this.close&&this.close())}))};n.inherits(s,i),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);const n=this.level||this.parent&&this.parent.level;if(!n||this.levels[n]>=this.levels[e[o]]){if(e&&!this.format)return this.log(e,r);let t,n;try{n=this.format.transform(Object.assign({},e),this.format.options)}catch(e){t=e}if(t||!n){if(r(),t)throw t;return}return this.log(n,r)}return r(null)},s.prototype._writev=function(e,t){if(this.logv){const r=e.filter(this._accept,this);return r.length?this.logv(r,t):t(null)}for(let r=0;r=this.levels[t[o]])||!this.handleExceptions&&!0===t.exception)},s.prototype._nop=function(){},e.exports.LegacyTransportStream=r(7375)},7375:(e,t,r)=>{"use strict";const n=r(3837),{LEVEL:i}=r(5396),o=r(5367),s=e.exports=function(e={}){if(o.call(this,e),!e.transport||"function"!=typeof e.transport.log)throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=function(e){this.emit("error",e,this.transport)}.bind(this),this.transport.on("error",this.transport.__winstonError))};n.inherits(s,o),s.prototype._write=function(e,t,r){if(this.silent||!0===e.exception&&!this.handleExceptions)return r(null);(!this.level||this.levels[this.level]>=this.levels[e[i]])&&this.transport.log(e[i],e.message,e,this._nop),r(null)},s.prototype._writev=function(e,t){for(let t=0;t{"use strict";var n=r(8212),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(6497));o.inherits=r(4378);var s=r(4987),a=r(664);o.inherits(d,s);for(var c=i(a.prototype),u=0;u{"use strict";var n=r(8212);e.exports=y;var i,o=r(5826);y.ReadableState=v,r(2361).EventEmitter;var s=function(e,t){return e.listeners(t).length},a=r(3887),c=r(1724).Buffer,u=global.Uint8Array||function(){},l=Object.create(r(6497));l.inherits=r(4378);var d=r(3837),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p=r(6915),g=r(8412);l.inherits(y,a);var m=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var n=t instanceof(i=i||r(6147));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(5999).s),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||r(6147),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function w(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,M(e)}}(e,s)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?b(e,s,t,!1):_(e,s)):b(e,s,t,!1))):n||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(C,e):C(e))}function C(e){h("emit readable"),e.emit("readable"),P(e)}function _(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0==(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function T(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function O(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):M(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?v:c;function c(){h("onend"),e.end()}i.endEmitted?n.nextTick(a):r.once("end",a),e.on("unpipe",(function t(n,o){h("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",v),r.removeListener("data",f),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,P(e))}}(r);e.on("drain",u);var l=!1,d=!1;function f(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==O(i.pipes,e))&&!l&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function p(t){h("onerror",t),v(),e.removeListener("error",p),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",m),v()}function m(){h("onfinish"),e.removeListener("close",g),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events.error?o(e._events.error)?e._events.error.unshift(r):e._events.error=[r,e._events.error]:e.on(t,r)}(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{"use strict";var n=r(8212);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var o,s=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;m.WritableState=g;var a=Object.create(r(6497));a.inherits=r(4378);var c,u={deprecate:r(1159)},l=r(3887),d=r(1724).Buffer,h=global.Uint8Array||function(){},f=r(8412);function p(){}function g(e,t){o=o||r(6147),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:a&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,o);else{var a=b(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),i?s(y,e,r,a,o):y(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function m(e){if(o=o||r(6147),!(c.call(m,this)||this instanceof o))return new m(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function y(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,v(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var r=b(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}a.inherits(m,l),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===m&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,d.isBuffer(i)||i instanceof h);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=p),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=f.destroy,m.prototype._undestroy=f.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}},6915:(e,t,r)=>{"use strict";var n=r(1724).Buffer,i=r(3837);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,r=s,o.data.copy(t,r),s+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},8412:(e,t,r)=>{"use strict";var n=r(8212);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},3887:(e,t,r)=>{e.exports=r(2781)},7120:(e,t,r)=>{var n=r(2781),i=r(664);"disable"===process.env.READABLE_STREAM?e.exports=n&&n.Writable||i:e.exports=i},5999:(e,t,r)=>{"use strict";var n=r(1724).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},598:(e,t,r)=>{"use strict";const n=r(8892),{warn:i}=r(2695),o=t;o.version=r(1103).i8,o.transports=r(3947),o.config=r(8811),o.addColors=n.levels,o.format=n.format,o.createLogger=r(5663),o.ExceptionHandler=r(5271),o.RejectionHandler=r(9593),o.Container=r(4276),o.Transport=r(5367),o.loggers=new o.Container;const s=o.createLogger();Object.keys(o.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach((e=>o[e]=(...t)=>s[e](...t))),Object.defineProperty(o,"level",{get:()=>s.level,set(e){s.level=e}}),Object.defineProperty(o,"exceptions",{get:()=>s.exceptions}),["exitOnError"].forEach((e=>{Object.defineProperty(o,e,{get:()=>s[e],set(t){s[e]=t}})})),Object.defineProperty(o,"default",{get:()=>({exceptionHandlers:s.exceptionHandlers,rejectionHandlers:s.rejectionHandlers,transports:s.transports})}),i.deprecated(o,"setLevels"),i.forFunctions(o,"useFormat",["cli"]),i.forProperties(o,"useFormat",["padLevels","stripColors"]),i.forFunctions(o,"deprecated",["addRewriter","addFilter","clone","extend"]),i.forProperties(o,"deprecated",["emitErrs","levelLength"]),i.moved(o,"createLogger","Logger")},2695:(e,t,r)=>{"use strict";const{format:n}=r(3837);t.warn={deprecated:e=>()=>{throw new Error(n("{ %s } was removed in winston@3.0.0.",e))},useFormat:e=>()=>{throw new Error([n("{ %s } was removed in winston@3.0.0.",e),"Use a custom winston.format = winston.format(function) instead."].join("\n"))},forFunctions(e,r,n){n.forEach((n=>{e[n]=t.warn[r](n)}))},moved(e,t,r){function i(){return()=>{throw new Error([n("winston.%s was moved in winston@3.0.0.",r),n("Use a winston.%s instead.",t)].join("\n"))}}Object.defineProperty(e,r,{get:i,set:i})},forProperties(e,r,n){n.forEach((n=>{const i=t.warn[r](n);Object.defineProperty(e,n,{get:i,set:i})}))}}},8811:(e,t,r)=>{"use strict";const n=r(8892),{configs:i}=r(5396);t.cli=n.levels(i.cli),t.npm=n.levels(i.npm),t.syslog=n.levels(i.syslog),t.addColors=n.levels},4276:(e,t,r)=>{"use strict";const n=r(5663);e.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,t){if(!this.loggers.has(e)){const r=(t=Object.assign({},t||this.options)).transports||this.options.transports;t.transports=r?r.slice():[];const i=n(t);i.on("close",(()=>this._delete(e))),this.loggers.set(e,i)}return this.loggers.get(e)}get(e,t){return this.add(e,t)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach(((e,t)=>this._removeLogger(t)))}_removeLogger(e){this.loggers.has(e)&&(this.loggers.get(e).close(),this._delete(e))}_delete(e){this.loggers.delete(e)}}},5663:(e,t,r)=>{"use strict";const{LEVEL:n}=r(5396),i=r(8811),o=r(1197),s=r(3420)("winston:create-logger");e.exports=function(e={}){e.levels=e.levels||i.npm.levels;class t extends o{constructor(e){super(e)}}const r=new t(e);return Object.keys(e.levels).forEach((function(e){s('Define prototype method for "%s"',e),"log"!==e?(t.prototype[e]=function(...t){const i=this||r;if(1===t.length){const[o]=t,s=o&&o.message&&o||{message:o};return s.level=s[n]=e,i._addDefaultMeta(s),i.write(s),this||r}return 0===t.length?(i.log(e,""),i):i.log(e,...t)},t.prototype[function(e){return"is"+e.charAt(0).toUpperCase()+e.slice(1)+"Enabled"}(e)]=function(){return(this||r).isLevelEnabled(e)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')})),r}},5271:(e,t,r)=>{"use strict";const n=r(2037),i=r(1052),o=r(3420)("winston:exception"),s=r(3138),a=r(7911),c=r(8897);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:[`uncaughtException: ${t||"(no error message)"}`,e.stack||" No stack trace"].join("\n"),stack:e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_uncaughtException(e){const t=this.getAllInfo(e),r=this._getExceptionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!r.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1),!r||0===r.length)return process.nextTick(c);i(r,((e,t)=>{const r=s(t),n=e.transport||e;function i(e){return()=>{o(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getExceptionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleExceptions))}}},8897:(e,t,r)=>{"use strict";const{Writable:n}=r(1135);e.exports=class extends n{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,t,r){return e.exception?this.transport.log(e,r):(r(),!0)}}},1197:(e,t,r)=>{"use strict";const{Stream:n,Transform:i}=r(1135),o=r(1052),{LEVEL:s,SPLAT:a}=r(5396),c=r(4970),u=r(5271),l=r(9593),d=r(7375),h=r(5333),{warn:f}=r(2695),p=r(8811),g=/%[scdjifoO%]/g;class m extends i{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){const t=this;return Object.create(t,{write:{value:function(r){const n=Object.assign({},e,r);r instanceof Error&&(n.stack=r.stack,n.message=r.message),t.write(n)}}})}configure({silent:e,format:t,defaultMeta:n,levels:i,level:o="info",exitOnError:s=!0,transports:a,colors:c,emitErrs:d,formatters:h,padLevels:f,rewriters:g,stripColors:m,exceptionHandlers:v,rejectionHandlers:y}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=t||this.format||r(9584)(),this.defaultMeta=n||null,this.levels=i||this.levels||p.npm.levels,this.level=o,this.exceptions=new u(this),this.rejections=new l(this),this.profilers={},this.exitOnError=s,a&&(a=Array.isArray(a)?a:[a]).forEach((e=>this.add(e))),c||d||h||f||g||m)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"));v&&this.exceptions.handle(v),y&&this.rejections.handle(y)}isLevelEnabled(e){const t=v(this.levels,e);if(null===t)return!1;const r=v(this.levels,this.level);return null!==r&&(this.transports&&0!==this.transports.length?-1!==this.transports.findIndex((e=>{let n=v(this.levels,e.level);return null===n&&(n=r),n>=t})):r>=t)}log(e,t,...r){if(1===arguments.length)return e[s]=e.level,this._addDefaultMeta(e),this.write(e),this;if(2===arguments.length)return t&&"object"==typeof t?(t[s]=t.level=e,this._addDefaultMeta(t),this.write(t),this):(this.write({[s]:e,level:e,message:t}),this);const[n]=r;if("object"==typeof n&&null!==n&&!(t&&t.match&&t.match(g))){const i=Object.assign({},this.defaultMeta,n,{[s]:e,[a]:r,level:e,message:t});return n.message&&(i.message=`${i.message} ${n.message}`),n.stack&&(i.stack=n.stack),this.write(i),this}return this.write(Object.assign({},this.defaultMeta,{[s]:e,[a]:r,level:e,message:t})),this}_transform(e,t,r){if(this.silent)return r();e[s]||(e[s]=e.level),this.levels[e[s]]||0===this.levels[e[s]]||console.error("[winston] Unknown logger level: %s",e[s]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports %j",e);try{this.push(this.format.transform(e,this.format.options))}catch(e){throw e}finally{r()}}_final(e){const t=this.transports.slice();o(t,((e,t)=>{if(!e||e.finished)return setImmediate(t);e.once("finish",t),e.end()}),e)}add(e){const t=!c(e)||e.log.length>2?new d({transport:e}):e;if(!t._writableState||!t._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",t),this._onEvent("warn",t),this.pipe(t),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let t=e;return(!c(e)||e.log.length>2)&&(t=this.transports.filter((t=>t.transport===e))[0]),t&&this.unpipe(t),this}clear(){return this.unpipe(),this}close(){return this.clear(),this.emit("close"),this}setLevels(){f.deprecated("setLevels")}query(e,t){"function"==typeof e&&(t=e,e={}),e=e||{};const r={},n=Object.assign({},e.query||{});o(this.transports.filter((e=>!!e.query)),(function(t,i){!function(t,r){e.query&&"function"==typeof t.formatQuery&&(e.query=t.formatQuery(n)),t.query(e,((n,i)=>{if(n)return r(n);"function"==typeof t.formatResults&&(i=t.formatResults(i,e.format)),r(null,i)}))}(t,((e,n)=>{i&&((n=e||n)&&(r[t.name]=n),i()),i=null}))}),(()=>t(null,r)))}stream(e={}){const t=new n,r=[];return t._streams=r,t.destroy=()=>{let e=r.length;for(;e--;)r[e].destroy()},this.transports.filter((e=>!!e.stream)).forEach((n=>{const i=n.stream(e);i&&(r.push(i),i.on("log",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("log",e)})),i.on("error",(e=>{e.transport=e.transport||[],e.transport.push(n.name),t.emit("error",e)})))})),t}startTimer(){return new h(this)}profile(e,...t){const r=Date.now();if(this.profilers[e]){const n=this.profilers[e];delete this.profilers[e],"function"==typeof t[t.length-2]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),t.pop());const i="object"==typeof t[t.length-1]?t.pop():{};return i.level=i.level||"info",i.durationMs=r-n,i.message=i.message||e,this.write(i)}return this.profilers[e]=r,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join("\n"))}_onEvent(e,t){t["__winston"+e]||(t["__winston"+e]=function(r){"error"!==e||this.transports.includes(t)||this.add(t),this.emit(e,r,t)}.bind(this),t.on(e,t["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}}function v(e,t){const r=e[t];return r||0===r?r:null}Object.defineProperty(m.prototype,"transports",{configurable:!1,enumerable:!0,get(){const{pipes:e}=this._readableState;return Array.isArray(e)?e:[e].filter(Boolean)}}),e.exports=m},5333:e=>{"use strict";e.exports=class{constructor(e){if(!e)throw new Error("Logger is required for profiling.");this.logger=e,this.start=Date.now()}done(...e){"function"==typeof e[e.length-1]&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());const t="object"==typeof e[e.length-1]?e.pop():{};return t.level=t.level||"info",t.durationMs=Date.now()-this.start,this.logger.write(t)}}},9593:(e,t,r)=>{"use strict";const n=r(2037),i=r(1052),o=r(3420)("winston:rejection"),s=r(3138),a=r(7911),c=r(8897);e.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach((e=>{if(Array.isArray(e))return e.forEach((e=>this._addHandler(e)));this._addHandler(e)})),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach((e=>this.logger.unpipe(e))))}getAllInfo(e){let{message:t}=e;return t||"string"!=typeof e||(t=e),{error:e,level:"error",message:[`unhandledRejection: ${t||"(no error message)"}`,e.stack||" No stack trace"].join("\n"),stack:e.stack,exception:!0,date:(new Date).toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:n.loadavg(),uptime:n.uptime()}}getTrace(e){return(e?a.parse(e):a.get()).map((e=>({column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()})))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;const t=new c(e);this.handlers.set(e,t),this.logger.pipe(t)}}_unhandledRejection(e){const t=this.getAllInfo(e),r=this._getRejectionHandlers();let n,a="function"==typeof this.logger.exitOnError?this.logger.exitOnError(e):this.logger.exitOnError;function c(){o("doExit",a),o("process._exiting",process._exiting),a&&!process._exiting&&(n&&clearTimeout(n),process.exit(1))}if(!r.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1),!r||0===r.length)return process.nextTick(c);i(r,((e,t)=>{const r=s(t),n=e.transport||e;function i(e){return()=>{o(e),r()}}n._ending=!0,n.once("finish",i("finished")),n.once("error",i("error"))}),(()=>a&&c())),this.logger.log(t),a&&(n=setTimeout(c,3e3))}_getRejectionHandlers(){return this.logger.transports.filter((e=>(e.transport||e).handleRejections))}}},9988:(e,t,r)=>{"use strict";const n=r(7147),{StringDecoder:i}=r(1576),{Stream:o}=r(1135);function s(){}e.exports=(e,t)=>{const r=Buffer.alloc(65536),a=new i("utf8"),c=new o;let u="",l=0,d=0;return-1===e.start&&delete e.start,c.readable=!0,c.destroy=()=>{c.destroyed=!0,c.emit("end"),c.emit("close")},n.open(e.file,"a+","0644",((i,o)=>{if(i)return t?t(i):c.emit("error",i),void c.destroy();!function i(){if(!c.destroyed)return n.read(o,r,0,r.length,l,((n,o)=>{if(n)return t?t(n):c.emit("error",n),void c.destroy();if(!o)return u&&((null==e.start||d>e.start)&&(t?t(null,u):c.emit("line",u)),d++,u=""),setTimeout(i,1e3);let s=a.write(r.slice(0,o));t||c.emit("data",s),s=(u+s).split(/\n+/);const h=s.length-1;let f=0;for(;fe.start)&&(t?t(null,s[f]):c.emit("line",s[f])),d++;return u=s[h],l+=o,i()}));n.close(o,s)}()})),t?c.destroy:c}},6217:(e,t,r)=>{"use strict";const n=r(2037),{LEVEL:i,MESSAGE:o}=r(5396),s=r(5367);e.exports=class extends s{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=e.eol||n.EOL,this.setMaxListeners(30)}log(e,t){return setImmediate((()=>this.emit("logged",e))),this.stderrLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.error(e[o]),void(t&&t())):this.consoleWarnLevels[e[i]]?(console._stderr?console._stderr.write(`${e[o]}${this.eol}`):console.warn(e[o]),void(t&&t())):(console._stdout?console._stdout.write(`${e[o]}${this.eol}`):console.log(e[o]),void(t&&t()))}_stringArrayToSet(e,t){if(!e)return{};if(t=t||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(t);return e.reduce(((e,r)=>{if("string"!=typeof r)throw new Error(t);return e[r]=!0,e}),{})}}},543:(e,t,r)=>{"use strict";const n=r(7147),i=r(1017),o=r(6046),s=r(9796),{MESSAGE:a}=r(5396),{Stream:c,PassThrough:u}=r(1135),l=r(5367),d=r(3420)("winston:file"),h=r(2037),f=r(9988);e.exports=class extends l{constructor(e={}){function t(t,...r){r.slice(1).forEach((r=>{if(e[r])throw new Error(`Cannot set ${r} and ${t} together`)}))}if(super(e),this.name=e.name||"file",this._stream=new u,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)t("filename or dirname","stream"),this._basename=this.filename=e.filename?i.basename(e.filename):"winston.log",this.dirname=e.dirname||i.dirname(e.filename),this.options=e.options||{flags:"a"};else{if(!e.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),t("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=i.dirname(this._dest.path)}this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=e.eol||h.EOL,this.tailable=e.tailable||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",(()=>{this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))})):(this._stream.once("finish",(()=>this.emit("finish"))),setImmediate((()=>this._stream.end()))))}log(e,t=(()=>{})){if(this.silent)return t(),!0;if(this._drain)return void this._stream.once("drain",(()=>{this._drain=!1,this.log(e,t)}));if(this._rotate)return void this._stream.once("rotate",(()=>{this._rotate=!1,this.log(e,t)}));const r=`${e[a]}${this.eol}`,n=Buffer.byteLength(r);this._pendingSize+=n,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);const i=this._stream.write(r,function(){this._size+=n,this._pendingSize-=n,d("logged %s %s",this._size,r),this.emit("logged",e),this._opening||this._needsNewFile()&&(this._rotate=!0,this._endStream((()=>this._rotateFile())))}.bind(this));return i?t():(this._drain=!0,this._stream.once("drain",(()=>{this._drain=!1,t()}))),d("written",i,this._drain),this.finishIfEnding(),i}query(e,t){"function"==typeof e&&(t=e,e={}),e=function(e){return(e=e||{}).rows=e.rows||e.limit||10,e.start=e.start||0,e.until=e.until||new Date,"object"!=typeof e.until&&(e.until=new Date(e.until)),e.from=e.from||e.until-864e5,"object"!=typeof e.from&&(e.from=new Date(e.from)),e.order=e.order||"desc",e}(e);const r=i.join(this.dirname,this.filename);let o="",s=[],a=0;const c=n.createReadStream(r,{encoding:"utf8"});function u(t,r){try{const r=JSON.parse(t);(function(t){if(!t)return;if("object"!=typeof t)return;const r=new Date(t.timestamp);return!(e.from&&re.until||e.level&&e.level!==t.level)||void 0})(r)&&function(t){e.rows&&s.length>=e.rows&&"desc"!==e.order?c.readable&&c.destroy():(e.fields&&(t=e.fields.reduce(((e,r)=>(e[r]=t[r],e)),{})),"desc"===e.order&&s.length>=e.rows&&s.shift(),s.push(t))}(r)}catch(e){r||c.emit("error",e)}}c.on("error",(e=>{if(c.readable&&c.destroy(),t)return"ENOENT"!==e.code?t(e):t(null,s)})),c.on("data",(t=>{const r=(t=(o+t).split(/\n+/)).length-1;let n=0;for(;n=e.start)&&u(t[n]),a++;o=t[r]})),c.on("close",(()=>{o&&u(o,!0),"desc"===e.order&&(s=s.reverse()),t&&t(null,s)}))}stream(e={}){const t=i.join(this.dirname,this.filename),r=new c,n={file:t,start:e.start};return r.destroy=f(n,((e,t)=>{if(e)return r.emit("error",e);try{r.emit("data",t),t=JSON.parse(t),r.emit("log",t)}catch(e){r.emit("error",e)}})),r}open(){this.filename&&(this._opening||(this._opening=!0,this.stat(((e,t)=>{if(e)return this.emit("error",e);d("stat done: %s { size: %s }",this.filename,t),this._size=t,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",(()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1}))}))))}stat(e){const t=this._getFile(),r=i.join(this.dirname,t);n.stat(r,((n,i)=>n&&"ENOENT"===n.code?(d("ENOENT ok",r),this.filename=t,e(null,0)):n?(d(`err ${n.code} ${r}`),e(n)):!i||this._needsNewFile(i.size)?this._incFile((()=>this.stat(e))):(this.filename=t,void e(null,i.size))))}close(e){this._stream&&this._stream.end((()=>{e&&e(),this.emit("flush"),this.emit("closed")}))}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e}_rotateFile(){this._incFile((()=>this.open()))}_endStream(e=(()=>{})){this._dest?(this._stream.unpipe(this._dest),this._dest.end((()=>{this._cleanupStream(this._dest),e()}))):e()}_createStream(e){const t=i.join(this.dirname,this.filename);d("create stream start",t,this.options);const r=n.createWriteStream(t,this.options).on("error",(e=>d(e))).on("close",(()=>d("close",r.path,r.bytesWritten))).on("open",(()=>{d("file open ok",t),this.emit("open",t),e.pipe(r),this.rotatedWhileOpening&&(this._stream=new u,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(r),e.end())}));if(d("create stream ok",t),this.zippedArchive){const e=s.createGzip();return e.pipe(r),e}return r}_incFile(e){d("_incFile",this.filename);const t=i.extname(this._basename),r=i.basename(this._basename,t);this.tailable?this._checkMaxFilesTailable(t,r,e):(this._created+=1,this._checkMaxFilesIncrementing(t,r,e))}_getFile(){const e=i.extname(this._basename),t=i.basename(this._basename,e),r=this.rotationFormat?this.rotationFormat():this._created,n=!this.tailable&&this._created?`${t}${r}${e}`:`${t}${e}`;return this.zippedArchive&&!this.tailable?`${n}.gz`:n}_checkMaxFilesIncrementing(e,t,r){if(!this.maxFiles||this._created1;r--)s.push(function(r,o){let s=`${t}${r-1}${e}${a}`;const c=i.join(this.dirname,s);n.exists(c,(u=>{if(!u)return o(null);s=`${t}${r}${e}${a}`,n.rename(c,i.join(this.dirname,s),o)}))}.bind(this,r));o(s,(()=>{n.rename(i.join(this.dirname,`${t}${e}`),i.join(this.dirname,`${t}1${e}${a}`),r)}))}_createLogDirIfNotExist(e){n.existsSync(e)||n.mkdirSync(e,{recursive:!0})}}},1062:(e,t,r)=>{"use strict";const n=r(3685),i=r(5687),{Stream:o}=r(1135),s=r(5367);e.exports=class extends s{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.port||(this.port=this.ssl?443:80)}log(e,t){this._request(e,((t,r)=>{r&&200!==r.statusCode&&(t=new Error(`Invalid HTTP Status Code: ${r.statusCode}`)),t?this.emit("warn",t):this.emit("logged",e)})),t&&setImmediate(t)}query(e,t){"function"==typeof e&&(t=e,e={}),(e={method:"query",params:this.normalizeQuery(e)}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth),this._request(e,((e,r,n)=>{if(r&&200!==r.statusCode&&(e=new Error(`Invalid HTTP Status Code: ${r.statusCode}`)),e)return t(e);if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return t(e)}t(null,n)}))}stream(e={}){const t=new o;(e={method:"stream",params:e}).params.path&&(e.path=e.params.path,delete e.params.path),e.params.auth&&(e.auth=e.params.auth,delete e.params.auth);let r="";const n=this._request(e);return t.destroy=()=>n.destroy(),n.on("data",(e=>{const n=(e=(r+e).split(/\n+/)).length-1;let i=0;for(;it.emit("error",e))),t}_request(e,t){const r=(e=e||{}).auth||this.auth,o=e.path||this.path||"";delete e.auth,delete e.path;const s=Object.assign({},this.headers);r&&r.bearer&&(s.Authorization=`Bearer ${r.bearer}`);const a=(this.ssl?i:n).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${o.replace(/^\//,"")}`,headers:s,auth:r&&r.username&&r.password?`${r.username}:${r.password}`:"",agent:this.agent});a.on("error",t),a.on("response",(e=>e.on("end",(()=>t(null,e))).resume())),a.end(Buffer.from(JSON.stringify(e),"utf8"))}}},3947:(e,t,r)=>{"use strict";Object.defineProperty(t,"Console",{configurable:!0,enumerable:!0,get:()=>r(6217)}),Object.defineProperty(t,"File",{configurable:!0,enumerable:!0,get:()=>r(543)}),Object.defineProperty(t,"Http",{configurable:!0,enumerable:!0,get:()=>r(1062)}),Object.defineProperty(t,"Stream",{configurable:!0,enumerable:!0,get:()=>r(5811)})},5811:(e,t,r)=>{"use strict";const n=r(4970),{MESSAGE:i}=r(5396),o=r(2037),s=r(5367);e.exports=class extends s{constructor(e={}){if(super(e),!e.stream||!n(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=e.eol||o.EOL}log(e,t){if(setImmediate((()=>this.emit("logged",e))),this.isObjectMode)return this._stream.write(e),void(t&&t());this._stream.write(`${e[i]}${this.eol}`),t&&t()}}},3138:(e,t,r)=>{"use strict";var n=r(2296);e.exports=function(e){var t,r=0;function i(){return r||(r=1,t=e.apply(this,arguments),e=null),t}return i.displayName=n(e),i}},8546:e=>{"use strict";function t(e){if(!(this instanceof t))return new t(e);this._=e}var r=t.prototype;function n(e,t){for(var r=0;r>8}),t))}function a(e){return e[0]>>7}function c(){return"undefined"!=typeof Buffer}function u(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function l(e){u();var r=i((function(e,t){return e+t}),0,e);if(r%8!=0)throw new Error("The bits ["+e.join(", ")+"] add up to "+r+" which is not an even number of bytes; the total should be divisible by 8");var o,c=r/8,l=(o=function(e){return e>48},i((function(e,t){return e||(o(t)?t:e)}),null,e));if(l)throw new Error(l+" bit range requested exceeds 48 bit (6 byte) Number max.");return new t((function(t,r){var o=c+r;return o>t.length?x(r,c.toString()+" bytes"):S(o,i((function(e,t){var r=function(e,t){var r={v:0,buf:t};return n(e,(function(){r={v:r.v<<1|a(r.buf),buf:s(r.buf)}})),r}(t,e.buf);return{coll:e.coll.concat(r.v),buf:r.buf}}),{coll:[],buf:t.slice(r,o)},e).coll)}))}function d(e,r){return new t((function(t,n){return u(),n+r>t.length?x(n,r+" bytes for "+e):S(n+r,t.slice(n,n+r))}))}function h(e,t){if("number"!=typeof(r=t)||Math.floor(r)!==r||t<0||t>6)throw new Error(e+" requires integer length in range [0, 6].");var r}function f(e){return h("uintBE",e),d("uintBE("+e+")",e).map((function(t){return t.readUIntBE(0,e)}))}function p(e){return h("uintLE",e),d("uintLE("+e+")",e).map((function(t){return t.readUIntLE(0,e)}))}function g(e){return h("intBE",e),d("intBE("+e+")",e).map((function(t){return t.readIntBE(0,e)}))}function m(e){return h("intLE",e),d("intLE("+e+")",e).map((function(t){return t.readIntLE(0,e)}))}function v(e){return Array.prototype.slice.call(e)}function y(e){return e instanceof t}function w(e){return"[object Array]"==={}.toString.call(e)}function b(e){return c()&&Buffer.isBuffer(e)}function S(e,t){return{status:!0,index:e,value:t,furthest:-1,expected:[]}}function x(e,t){return w(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:e,expected:t}}function M(e,r){if(!r)return e;if(e.furthest>r.furthest)return e;var n=e.furthest===r.furthest?function(e,r){if(function(){if(void 0!==t._supportsSet)return t._supportsSet;var e="undefined"!=typeof Set;return t._supportsSet=e,e}()&&Array.from){for(var n=new Set(e),i=0;i=0;){if(s in r){n=r[s].line,0===o&&(o=r[s].lineStart);break}"\n"===e.charAt(s)&&(i++,0===o&&(o=s+1)),s--}var a=n+i,c=t-o;return r[t]={line:a,lineStart:o},{offset:t,line:a+1,column:c+1}}function E(e){if(!y(e))throw new Error("not a parser: "+e)}function R(e,t){return"string"==typeof e?e.charAt(t):e[t]}function k(e){if("number"!=typeof e)throw new Error("not a number: "+e)}function P(e){if(!(e instanceof RegExp))throw new Error("not a regexp: "+e);for(var t=N(e),r=0;r0?e-t:0,to:e+r>n?n:e+r}}function B(e,t){var r,n,s,a,c,u=t.index,l=u.offset,d=1;if(l===e.length)return"Got the end of the input";if(b(e)){var h=l-l%8,f=l-h,p=$(h,40,40,e.length),g=o((function(e){return o((function(e){return O(e.toString(16),2,"0")}),e)}),function(e,t){var r=e.length,n=[],i=0;if(r<=8)return[e.slice()];for(var o=0;o=4&&(r+=1),d=2,s=o((function(e){return e.length<=4?e.join(" "):e.slice(0,4).join(" ")+" "+e.slice(4).join(" ")}),g),(c=(8*(a.to>0?a.to-1:a.to)).toString(16).length)<2&&(c=2)}else{var m=e.split(/\r\n|[\n\r\u2028\u2029]/);r=u.column-1,n=u.line-1,a=$(n,2,3,m.length),s=m.slice(a.from,a.to),c=a.to.toString().length}var v=n-a.from;return b(e)&&(c=(8*(a.to>0?a.to-1:a.to)).toString(16).length)<2&&(c=2),i((function(t,n,i){var o,s=i===v,u=s?"> ":" ";return o=b(e)?O((8*(a.from+i)).toString(16),c,"0"):O((a.from+i+1).toString(),c," "),[].concat(t,[u+o+" | "+n],s?[" "+L(" ",c)+" | "+O("",r," ")+L("^",d)]:[])}),[],s).join("\n")}function I(e,t){return["\n","-- PARSING FAILED "+L("-",50),"\n\n",B(e,t),"\n\n",(r=t.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r}function N(e){return void 0!==e.flags?e.flags:[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.unicode?"u":"",e.sticky?"y":""].join("")}function j(e){return RegExp("^(?:"+e.source+")",N(e))}function D(){for(var e=[].slice.call(arguments),r=e.length,n=0;n=2?k(r):r=0;var n=j(e),i=""+e;return t((function(e,t){var o=n.exec(e.slice(t));if(o){if(0<=r&&r<=o.length){var s=o[0],a=o[r];return S(t+s.length,a)}return x(t,"valid match group (0 to "+o.length+") in "+i)}return x(t,i)}))}function H(e){return t((function(t,r){return S(r,e)}))}function z(e){return t((function(t,r){return x(r,e)}))}function G(e){if(y(e))return t((function(t,r){var n=e._(t,r);return n.index=r,n.value="",n}));if("string"==typeof e)return G(q(e));if(e instanceof RegExp)return G(K(e));throw new Error("not a string, regexp, or parser: "+e)}function J(e){return E(e),t((function(t,r){var n=e._(t,r),i=t.slice(r,n.index);return n.status?x(r,'not "'+i+'"'):S(r,null)}))}function Y(e){return A(e),t((function(t,r){var n=R(t,r);return r=e.length?x(t,"any character/byte"):S(t+1,R(e,t))})),te=t((function(e,t){return S(e.length,e.slice(t))})),re=t((function(e,t){return t=0})).desc(t)},t.optWhitespace=ae,t.Parser=t,t.range=function(e,t){return Y((function(r){return e<=r&&r<=t})).desc(e+"-"+t)},t.regex=K,t.regexp=K,t.sepBy=W,t.sepBy1=U,t.seq=D,t.seqMap=F,t.seqObj=function(){for(var e={},r=0,n=v(arguments),i=n.length,o=0;o255)throw new Error("Value specified to byte constructor ("+e+"=0x"+e.toString(16)+") is larger in value than a single byte.");var r=(e>15?"0x":"0x0")+e.toString(16);return t((function(t,n){var i=R(t,n);return i===e?S(n+1,i):x(n,r)}))},buffer:function(e){return d("buffer",e).map((function(e){return Buffer.from(e)}))},encodedString:function(e,t){return d("string",t).map((function(t){return t.toString(e)}))},uintBE:f,uint8BE:f(1),uint16BE:f(2),uint32BE:f(4),uintLE:p,uint8LE:p(1),uint16LE:p(2),uint32LE:p(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:m,int8LE:m(1),int16LE:m(2),int32LE:m(4),floatBE:d("floatBE",4).map((function(e){return e.readFloatBE(0)})),floatLE:d("floatLE",4).map((function(e){return e.readFloatLE(0)})),doubleBE:d("doubleBE",8).map((function(e){return e.readDoubleBE(0)})),doubleLE:d("doubleLE",8).map((function(e){return e.readDoubleLE(0)}))},e.exports=t},8212:e=>{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,s=arguments.length;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(s-1),o=0;o{var n=r(4378),i=r(2361).EventEmitter;function o(e){if(!(this instanceof o))return new o(e);i.call(this),e=e||{},this.concurrency=e.concurrency||1/0,this.timeout=e.timeout||0,this.autostart=e.autostart||!1,this.results=e.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}function s(){for(var e in this.timers){var t=this.timers[e];delete this.timers[e],clearTimeout(t)}}function a(e){var t=this;function r(e){t.end(e)}this.on("error",r),this.on("end",(function n(i){t.removeListener("error",r),t.removeListener("end",n),e(i,this.results)}))}function c(e){this.session++,this.running=!1,this.emit("end",e)}e.exports=o,e.exports.default=o,n(o,i),["pop","shift","indexOf","lastIndexOf"].forEach((function(e){o.prototype[e]=function(){return Array.prototype[e].apply(this.jobs,arguments)}})),o.prototype.slice=function(e,t){return this.jobs=this.jobs.slice(e,t),this},o.prototype.reverse=function(){return this.jobs.reverse(),this},["push","unshift","splice"].forEach((function(e){o.prototype[e]=function(){var t=Array.prototype[e].apply(this.jobs,arguments);return this.autostart&&this.start(),t}})),Object.defineProperty(o.prototype,"length",{get:function(){return this.pending+this.jobs.length}}),o.prototype.start=function(e){if(e&&a.call(this,e),this.running=!0,!(this.pending>=this.concurrency))if(0!==this.jobs.length){var t=this,r=this.jobs.shift(),n=!0,i=this.session,o=null,s=!1,u=null,l=r.hasOwnProperty("timeout")?r.timeout:this.timeout;l&&(o=setTimeout((function(){s=!0,t.listeners("timeout").length>0?t.emit("timeout",h,r):h()}),l),this.timers[o]=o),this.results&&(u=this.results.length,this.results[u]=null),this.pending++,t.emit("start",r);var d=r(h);d&&d.then&&"function"==typeof d.then&&d.then((function(e){return h(null,e)})).catch((function(e){return h(e||!0)})),this.running&&this.jobs.length>0&&this.start()}else 0===this.pending&&c.call(this);function h(e,a){n&&t.session===i&&(n=!1,t.pending--,null!==o&&(delete t.timers[o],clearTimeout(o)),e?t.emit("error",e,r):!1===s&&(null!==u&&(t.results[u]=Array.prototype.slice.call(arguments,1)),t.emit("success",a,r)),t.session===i&&(0===t.pending&&0===t.jobs.length?c.call(t):t.running&&t.start()))}},o.prototype.stop=function(){this.running=!1},o.prototype.end=function(e){s.call(this),this.jobs.length=0,this.pending=0,c.call(this,e)}},9509:(e,t,r)=>{var n=r(4300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},7668:(e,t)=>{"use strict";const r=m();r.configure=m,r.stringify=r,r.default=r,t.stringify=r,t.configure=m,e.exports=r;const n=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/,i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/g,o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\"];function s(e){if(2===e.length){const t=e.charCodeAt(1);return`${e[0]}\\u${t.toString(16)}`}const t=e.charCodeAt(0);return o.length>t?o[t]:`\\u${t.toString(16)}`}function a(e){if(e.length<5e3&&!n.test(e))return e;if(e.length>100)return e.replace(i,s);let t="",r=0;for(let n=0;n=55296&&i<=57343){if(i<=56319&&n+1=56320&&t<=57343){n++;continue}}t+=`${e.slice(r,n)}\\u${i.toString(16)}`,r=n+1}}return t+=e.slice(r),t}function c(e){if(e.length>200)return e.sort();for(let t=1;tr;)e[n]=e[n-1],n--;e[n]=r}return e}const u=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array)),Symbol.toStringTag).get;function l(e){return void 0!==u.call(e)&&0!==e.length}function d(e,t,r){e.length= 1`)}return void 0===r?1/0:r}function p(e){return 1===e?"1 item":`${e} items`}function g(e){const t=new Set;for(const r of e)"string"==typeof r?t.add(r):"number"==typeof r&&t.add(String(r));return t}function m(e){const t=function(e){if(e&&Object.prototype.hasOwnProperty.call(e,"circularValue")){var t=e.circularValue;if("string"==typeof t)return`"${t}"`;if(null==t)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(e),r=h(e,"bigint"),n=h(e,"deterministic"),i=f(e,"maximumDepth"),o=f(e,"maximumBreadth");function s(e,u,h,f,g,m){let v=u[e];switch("object"==typeof v&&null!==v&&"function"==typeof v.toJSON&&(v=v.toJSON(e)),v=f.call(u,e,v),typeof v){case"string":return`"${a(v)}"`;case"object":{if(null===v)return"null";if(-1!==h.indexOf(v))return t;let e="",r=",";const u=m;if(Array.isArray(v)){if(0===v.length)return"[]";if(io&&(e+=`${r}"... ${p(v.length-o-1)} not stringified"`),""!==g&&(e+=`\n${u}`),h.pop(),`[${e}]`}let y=Object.keys(v);const w=y.length;if(0===w)return"{}";if(io&&(e+=`${S}"...":${b}"${p(w-o)} not stringified"`,S=r),""!==g&&S.length>1&&(e=`\n${m}${e}\n${u}`),h.pop(),`{${e}}`}case"number":return isFinite(v)?String(v):"null";case"boolean":return!0===v?"true":"false";case"bigint":return r?String(v):void 0}}function u(e,n,s,c,l,d){switch("object"==typeof n&&null!==n&&"function"==typeof n.toJSON&&(n=n.toJSON(e)),typeof n){case"string":return`"${a(n)}"`;case"object":{if(null===n)return"null";if(-1!==s.indexOf(n))return t;const e=d;let r="",h=",";if(Array.isArray(n)){if(0===n.length)return"[]";if(io&&(r+=`${h}"... ${p(n.length-o-1)} not stringified"`),""!==l&&(r+=`\n${e}`),s.pop(),`[${r}]`}if(0===c.size)return"{}";s.push(n);let f="";""!==l&&(h=`,\n${d+=l}`,f=" ");let g="";for(const e of c){const t=u(e,n[e],s,c,l,d);void 0!==t&&(r+=`${g}"${a(e)}":${f}${t}`,g=h)}return""!==l&&g.length>1&&(r=`\n${d}${r}\n${e}`),s.pop(),`{${r}}`}case"number":return isFinite(n)?String(n):"null";case"boolean":return!0===n?"true":"false";case"bigint":return r?String(n):void 0}}function m(e,s,u,h,f){switch(typeof s){case"string":return`"${a(s)}"`;case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return m(e,s,u,h,f);if(null===s)return"null"}if(-1!==u.indexOf(s))return t;const r=f;if(Array.isArray(s)){if(0===s.length)return"[]";if(io&&(e+=`${t}"... ${p(s.length-o-1)} not stringified"`),e+=`\n${r}`,u.pop(),`[${e}]`}let g=Object.keys(s);const v=g.length;if(0===v)return"{}";if(io&&(w+=`${b}"...": "${p(v-o)} not stringified"`,b=y),""!==b&&(w=`\n${f}${w}\n${r}`),u.pop(),`{${w}}`}case"number":return isFinite(s)?String(s):"null";case"boolean":return!0===s?"true":"false";case"bigint":return r?String(s):void 0}}function v(e,s,u){switch(typeof s){case"string":return`"${a(s)}"`;case"object":{if(null===s)return"null";if("function"==typeof s.toJSON){if("object"!=typeof(s=s.toJSON(e)))return v(e,s,u);if(null===s)return"null"}if(-1!==u.indexOf(s))return t;let r="";if(Array.isArray(s)){if(0===s.length)return"[]";if(io&&(r+=`,"... ${p(s.length-o-1)} not stringified"`),u.pop(),`[${r}]`}let h=Object.keys(s);const f=h.length;if(0===f)return"{}";if(io&&(r+=`${g}"...":"${p(f-o)} not stringified"`),u.pop(),`{${r}}`}case"number":return isFinite(s)?String(s):"null";case"boolean":return!0===s?"true":"false";case"bigint":return r?String(s):void 0}}return function(e,t,r){if(arguments.length>1){let n="";if("number"==typeof r?n=" ".repeat(Math.min(r,10)):"string"==typeof r&&(n=r.slice(0,10)),null!=t){if("function"==typeof t)return s("",{"":e},[],t,n,"");if(Array.isArray(t))return u("",e,[],g(t),n,"")}if(0!==n.length)return m("",e,[],n,"")}return v("",e,[])}}},6252:(e,t,r)=>{e=r.nmd(e);var n,i=r(9125).SourceMapConsumer,o=r(1017);try{(n=r(7147)).existsSync&&n.readFileSync||(n=null)}catch(e){}var s=r(5420);function a(e,t){return e.require(t)}var c=!1,u=!1,l=!1,d="auto",h={},f={},p=/^data:application\/json[^,]+base64,/,g=[],m=[];function v(){return"browser"===d||"node"!==d&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function y(e){return function(t){for(var r=0;r";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",o=this.getFunctionName(),s=!0,a=this.isConstructor();if(this.isToplevel()||a)a?i+="new "+(o||""):o?i+=o:(i+=t,s=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();o?(c&&0!=o.indexOf(c)&&(i+=c+"."),i+=o,u&&o.indexOf("."+u)!=o.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"")}return s&&(i+=" ("+t+")"),i}function _(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=C,t}function E(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,o=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>o&&!v()&&!e.isEval()&&(i-=o);var s=x({source:r,line:n,column:i});t.curPosition=s;var a=(e=_(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?a():t.nextPosition.name||a()},e.getFileName=function(){return s.source},e.getLineNumber=function(){return s.line},e.getColumnNumber=function(){return s.column+1},e.getScriptNameOrSourceURL=function(){return s.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=M(c),(e=_(e)).getEvalOrigin=function(){return c},e):e}function R(e,t){l&&(h={},f={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],o=t.length-1;o>=0;o--)i.push("\n at "+E(t[o],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function k(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],o=+t[3],s=h[r];if(!s&&n&&n.existsSync(r))try{s=n.readFileSync(r,"utf8")}catch(e){s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[i-1];if(a)return r+":"+i+"\n"+a+"\n"+new Array(o).join(" ")+"^"}}return null}function P(e){var t=k(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),"object"==typeof process&&null!==process&&"function"==typeof process.exit&&process.exit(1)}m.push((function(e){var t,r=function(e){var t;if(v())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=w(e);for(var i,o,s=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;o=s.exec(t);)i=o;return i?i[1]:null}(e);if(!r)return null;if(p.test(r)){var n=r.slice(r.indexOf(",")+1);t=s(n,"base64").toString(),r=e}else r=b(e,r),t=w(r);return t?{url:r,map:t}:null}));var A=g.slice(0),T=m.slice(0);t.wrapCallSite=E,t.getErrorSource=k,t.mapSourcePosition=x,t.retrieveSourceMap=S,t.install=function(t){if((t=t||{}).environment&&(d=t.environment,-1===["node","browser","auto"].indexOf(d)))throw new Error("environment "+d+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!v()){var r=a(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return h[t]=e,f[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(l||(l="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=R),!u){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===a(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(u=!0,o=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return P(arguments[1])}return o.apply(this,arguments)})}var o},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=A.slice(0),m=T.slice(0),S=y(m),w=y(g)}},8213:(e,t,r)=>{var n=r(2728),i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function s(){this._array=[],this._set=o?new Map:Object.create(null)}s.fromArray=function(e,t){for(var r=new s,n=0,i=e.length;n=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e{var n=r(7923);t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,o,s,a,c=e.length,u=0,l=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),u+=(o&=31)<>1,1==(1&s)?-a:a),r.rest=t}},7923:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{function r(e,n,i,o,s,a){var c=Math.floor((n-e)/2)+e,u=s(i,o[c],!0);return 0===u?c:u>0?n-c>1?r(c,n,i,o,s,a):a==t.LEAST_UPPER_BOUND?n1?r(e,c,i,o,s,a):a==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,o){if(0===n.length)return-1;var s=r(-1,n.length,e,n,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(n[s],n[s-1],!0);)--s;return s}},1188:(e,t,r)=>{var n=r(2728);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,o,s,a;r=e,i=(t=this._last).generatedLine,o=r.generatedLine,s=t.generatedColumn,a=r.generatedColumn,o>i||o==i&&a>=s||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=i},2826:(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,o){if(i{var n=r(2728),i=r(9216),o=r(8213).I,s=r(6400),a=r(2826).U;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new d(r,t):new u(r,t)}function u(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),s=n.getArg(r,"sources"),a=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),u=n.getArg(r,"sourcesContent",null),l=n.getArg(r,"mappings"),d=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),s=s.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=o.fromArray(a.map(String),!0),this._sources=o.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),s=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new o,this._names=new o;var a={line:-1,column:0};this._sections=s.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),o=n.getArg(r,"column");if(i=0){var a=this._originalMappings[s];if(void 0===e.column)for(var c=a.originalLine;a&&a.originalLine===c;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==u;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return o},t.SourceMapConsumer=c,u.prototype=Object.create(c.prototype),u.prototype.consumer=c,u.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=g+o[1],g+=o[1],r.originalLine=f+o[2],f=r.originalLine,r.originalLine+=1,r.originalColumn=p+o[3],p=r.originalColumn,o.length>4&&(r.name=m+o[4],m+=o[4])),x.push(r),"number"==typeof r.originalLine&&S.push(r)}a(x,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,a(S,n.compareByOriginalPositions),this.__originalMappings=S},u.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,o,s)},u.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=n.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=n.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=n.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,o=e;if(null!=this.sourceRoot&&(o=n.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var s=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t{var n=r(6400),i=r(2728),o=r(8213).I,s=r(1188).H;function a(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new s,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var o=n;null!==t&&(o=i.relative(t,n)),r._sources.has(o)||r._sources.add(o);var s=e.sourceContentFor(n);null!=s&&r.setSourceContent(n,s)})),r},a.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:o})},a.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var s=this._sourceRoot;null!=s&&(n=i.relative(s,n));var a=new o,c=new o;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=r&&(t.source=i.join(r,t.source)),null!=s&&(t.source=i.relative(s,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var u=t.source;null==u||a.has(u)||a.add(u);var l=t.name;null==l||c.has(l)||c.add(l)}),this),this._sources=a,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=s&&(t=i.relative(s,t)),this.setSourceContent(t,n))}),this)},a.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var e,t,r,o,s=0,a=1,c=0,u=0,l=0,d=0,h="",f=this._mappings.toArray(),p=0,g=f.length;p0){if(!i.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-d),d=o,e+=n.encode(t.originalLine-1-u),u=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-l),l=r)),h+=e}return h},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.h=a},7085:(e,t,r)=>{var n=r(4433).h,i=r(2728),o=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[s]=!0,null!=n&&this.add(n)}a.fromStringWithSourceMap=function(e,t,r){var n=new a,s=e.split(o),c=0,u=function(){return e()+(e()||"");function e(){return c=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var s,a=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(s=c[l])?c.splice(l,1):".."===s?u++:u>0&&(""===s?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=a?"/":"."),n?(n.path=r,o(n)):r}function a(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),a=i(e);if(a&&(e=a.path||"/"),r&&!r.scheme)return a&&(r.scheme=a.scheme),o(r);if(r||t.match(n))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var c="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=c,o(a)):c}t.urlParse=i,t.urlGenerate=o,t.normalize=s,t.join=a,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=a(o(n),t)}return s(t)}},9125:(e,t,r)=>{r(4433).h,t.SourceMapConsumer=r(6771).SourceMapConsumer,r(7085)},7911:(e,t)=>{function r(e){for(var t in e)this[t]=e[t]}t.get=function(e){var r=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.captureStackTrace(n,e||t.get);var o=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=r,o},t.parse=function(e){if(!e.stack)return[];var t=this;return e.stack.split("\n").slice(1).map((function(e){if(e.match(/^\s*[-]{4,}$/))return t._createParsedCallSite({fileName:e,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var r=e.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(r){var n=null,i=null,o=null,s=null,a=null,c="native"===r[5];if(r[1]){var u=(o=r[1]).lastIndexOf(".");if("."==o[u-1]&&u--,u>0){n=o.substr(0,u),i=o.substr(u+1);var l=n.indexOf(".Module");l>0&&(o=o.substr(l+1),n=n.substr(0,l))}s=null}i&&(s=n,a=i),""===i&&(a=null,o=null);var d={fileName:r[2]||null,lineNumber:parseInt(r[3],10)||null,functionName:o,typeName:s,methodName:a,columnNumber:parseInt(r[4],10)||null,native:c};return t._createParsedCallSite(d)}})).filter((function(e){return!!e}))},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach((function(e){r.prototype[e]=null,r.prototype["get"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),["topLevel","eval","native","constructor"].forEach((function(e){r.prototype[e]=!1,r.prototype["is"+e[0].toUpperCase()+e.substr(1)]=function(){return this[e]}})),t._createParsedCallSite=function(e){return new r(e)}},9273:(e,t)=>{"use strict";t.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},t.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}},5243:(e,t,r)=>{"use strict";Object.defineProperty(t,"cli",{value:r(9273)}),Object.defineProperty(t,"npm",{value:r(2459)}),Object.defineProperty(t,"syslog",{value:r(1945)})},2459:(e,t)=>{"use strict";t.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},t.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}},1945:(e,t)=>{"use strict";t.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},t.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}},5396:(e,t,r)=>{"use strict";Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:r(5243)})},3937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerEventListener=t.registerCommand=t.activate=t.getAndUpdateModeHandler=void 0;const n=r(9496),i=r(6637),o=r(2253),s=r(9401),a=r(9079),c=r(4379),u=r(4627),l=r(5845),d=r(9220),h=r(3856),f=r(7541),p=r(7536),g=r(9909),m=r(7943),v=r(7125),y=r(3403),w=r(1214);let b,S,x=null;async function M(e=!1){const t=n.window.activeTextEditor;if(void 0===t||t.document.isClosed)return;const r=t.document.uri,[i,o]=await a.ModeHandlerMap.getOrCreate(r);return o&&b.subscriptions.push(i),i.vimState.editor=t,!e&&S&&S===r||(i.syncCursors(),await i.updateView({drawSelection:!1,revealRange:!1})),S=r,i.focusChanged&&(i.focusChanged=!1,S)&&(a.ModeHandlerMap.get(S).focusChanged=!0),i}async function C(){const e=await p.configuration.load();l.Logger.configChanged(p.configuration);const t=l.Logger.get("Configuration");if(t.debug(`${e.numErrors} errors found with vim configuration`),e.numErrors>0)for(const r of e.get())switch(r.level){case"error":t.error(r.message);break;case"warning":t.warn(r.message)}}async function _(e,t){await h.VSCodeContext.set("vim.active",!e);const r=await M();r&&(e?(await r.handleKeyEvent(y.SpecialKeys.ExtensionDisable),t.reset(),a.ModeHandlerMap.clear()):await r.handleKeyEvent(y.SpecialKeys.ExtensionEnable))}function E(e,t,r){const i=n.commands.registerCommand(t,(async e=>p.configuration.disableExtension?n.commands.executeCommand("default:"+t,e):n.window.activeTextEditor?n.window.activeTextEditor.document&&"debug:input"===n.window.activeTextEditor.document.uri.toString()?n.commands.executeCommand("default:"+t,e):r(e):void 0));e.subscriptions.push(i)}function R(e,t,r,i=!0){const o=n.commands.registerCommand(t,(async e=>{i&&!n.window.activeTextEditor||r(e)}));e.subscriptions.push(o)}function k(e,t,r,n=!0,i=!1){const s=t((async e=>{n&&p.configuration.disableExtension||i&&o.Globals.isTesting||r(e)}));e.subscriptions.push(s)}async function P(e){return!!e.remapState.isCurrentlyPerformingRecursiveRemapping&&(e.remapState.forceStopRecursiveRemapping=!0,!0)}t.getAndUpdateModeHandler=M,t.activate=async function(e,t=!0){await C();const r=l.Logger.get("Extension Startup");if(r.debug("Start"),b=e,b.subscriptions.push(d.StatusBar),v.Register.loadFromDisk(t),await Promise.all([f.ExCommandLine.loadHistory(e),f.SearchCommandLine.loadHistory(e)]),n.window.activeTextEditor){const e=n.window.activeTextEditor.document.fileName.split(/\\|\//);v.Register.setReadonlyRegister("%",e[e.length-1])}k(e,n.workspace.onDidChangeConfiguration,(async()=>{await C()}),!1),k(e,n.workspace.onDidChangeTextDocument,(async e=>{var r;1===(r=e).contentChanges.length&&""===r.contentChanges[0].text&&r.contentChanges[0].range.start.line!==r.contentChanges[0].range.end.line?g.globalState.jumpTracker.handleTextDeleted(e.document,e.contentChanges[0].range):(e=>1===e.contentChanges.length&&("\n"===e.contentChanges[0].text||"\r\n"===e.contentChanges[0].text)&&e.contentChanges[0].range.start.line===e.contentChanges[0].range.end.line)(e)&&g.globalState.jumpTracker.handleTextAdded(e.document,e.contentChanges[0].range,e.contentChanges[0].text),a.ModeHandlerMap.getAll().filter((t=>t.vimState.documentUri===e.document.uri)).forEach((t=>{(t=>{t.vimState.currentMode===c.Mode.Insert&&(void 0===t.vimState.historyTracker.currentContentChanges&&(t.vimState.historyTracker.currentContentChanges=[]),t.vimState.historyTracker.currentContentChanges=t.vimState.historyTracker.currentContentChanges.concat(e.contentChanges))})(t)})),t&&setTimeout((()=>{var t;e.document.isDirty||e.document.isUntitled||"vscode-notebook-cell"===e.document.uri.scheme||!e.contentChanges.length||(t=e.document,a.ModeHandlerMap.getAll().filter((e=>e.vimState.documentUri===t.uri)).forEach((e=>{e.vimState.historyTracker=new w.HistoryTracker(e.vimState)})))}),0)})),k(e,n.workspace.onDidCloseTextDocument,(async e=>{const t=n.workspace.textDocuments;for(const r of a.ModeHandlerMap.keys()){const n=a.ModeHandlerMap.get(r);let i=!1;if(null==n||void 0===n.vimState.editor)i=!0;else{const r=n.vimState.document;t.includes(r)||(i=!0,e===r&&(x=n))}i&&a.ModeHandlerMap.delete(r)}}),!1),k(e,n.window.onDidChangeActiveTextEditor,(async()=>{var e;const t=S?a.ModeHandlerMap.get(S):void 0;if(x=t||x,void 0===n.window.activeTextEditor)return void v.Register.setReadonlyRegister("%","");const r=null===(e=await v.Register.get("%"))||void 0===e?void 0:e.text,i=n.workspace.asRelativePath(n.window.activeTextEditor.document.uri,!1);i!==r&&(r&&""!==r&&v.Register.setReadonlyRegister("#",r),v.Register.setReadonlyRegister("%",i)),m.taskQueue.enqueueTask((async()=>{const e=await M(!0);e&&g.globalState.jumpTracker.handleFileJump(x?s.Jump.fromStateNow(x.vimState):null,s.Jump.fromStateNow(e.vimState))}))}),!0,!0),k(e,n.window.onDidChangeTextEditorSelection,(async e=>{if(void 0===n.window.activeTextEditor||e.textEditor.document!==n.window.activeTextEditor.document)return;const t=a.ModeHandlerMap.get(n.window.activeTextEditor.document.uri);if(void 0!==t){if(e.kind!==n.TextEditorSelectionChangeKind.Mouse){const n=e.selections.reduce(((e,t)=>e+`[${t.anchor.line}, ${t.anchor.character}; ${t.active.line}, ${t.active.character}]`),""),i=t.vimState.selectionsChanged.ourSelections.indexOf(n);if(i>-1)return t.vimState.selectionsChanged.ourSelections.splice(i,1),void r.debug(`Selections: Ignoring selection: ${n}, Count left: ${t.vimState.selectionsChanged.ourSelections.length}`);if(t.vimState.selectionsChanged.ignoreIntermediateSelections)return void r.debug(`Selections: ignoring intermediate selection change: ${n}`);if(t.vimState.selectionsChanged.ourSelections.length>0)return void r.debug(`Selections: Ignoring slipped selection: ${n}`)}e.textEditor===t.vimState.editor&&(t.focusChanged?t.focusChanged=!1:t.currentMode!==c.Mode.EasyMotionMode&&m.taskQueue.enqueueTask((()=>t.handleSelectionChange(e))))}}),!0,!1),k(e,n.window.onDidChangeTextEditorVisibleRanges,(async e=>{m.taskQueue.enqueueTask((async()=>{const e=await M();e&&d.StatusBar.lastMessageTime&&Number(new Date)-Number(d.StatusBar.lastMessageTime)>100&&d.StatusBar.clear(e.vimState,!0)}))}));const o=new i.CompositionState;E(e,"type",(async e=>{m.taskQueue.enqueueTask((async()=>{const t=await M();t&&(o.isInComposition?(o.composingText+=e.text,t.vimState.currentMode===c.Mode.Insert&&(o.insertedText=!0,n.commands.executeCommand("default:type",{text:e.text}))):await t.handleKeyEvent(e.text))}))})),E(e,"replacePreviousChar",(async e=>{m.taskQueue.enqueueTask((async()=>{const t=await M();t?(o.isInComposition&&(o.composingText=o.composingText.substr(0,o.composingText.length-e.replaceCharCnt)+e.text),o.insertedText&&(await n.commands.executeCommand("default:replacePreviousChar",{text:e.text,replaceCharCnt:e.replaceCharCnt}),t.vimState.cursorStopPosition=t.vimState.editor.selection.start,t.vimState.cursorStartPosition=t.vimState.editor.selection.start)):await n.commands.executeCommand("default:replacePreviousChar",{text:e.text,replaceCharCnt:e.replaceCharCnt})}))})),E(e,"compositionStart",(async()=>{m.taskQueue.enqueueTask((async()=>{o.isInComposition=!0}))})),E(e,"compositionEnd",(async()=>{m.taskQueue.enqueueTask((async()=>{const e=await M();if(e){o.insertedText&&(e.vimState.selectionsChanged.ignoreIntermediateSelections=!0,await n.commands.executeCommand("default:replacePreviousChar",{text:"",replaceCharCnt:o.composingText.length}),e.vimState.cursorStopPosition=e.vimState.editor.selection.active,e.vimState.cursorStartPosition=e.vimState.editor.selection.active,e.vimState.selectionsChanged.ignoreIntermediateSelections=!1);const t=o.composingText;await e.handleMultipleKeyEvents(t.split(""))}o.reset()}))})),R(e,"vim.showQuickpickCmdLine",(async()=>{const e=await M();if(e){const t=await n.window.showInputBox({prompt:"Vim command line",value:"",ignoreFocusOut:!1,valueSelection:[0,0]});t&&await new f.ExCommandLine(t,e.vimState.currentMode).run(e.vimState),e.updateView()}})),R(e,"vim.remap",(async e=>{m.taskQueue.enqueueTask((async()=>{const t=await M();if(void 0!==t){if(!e)throw new Error("'args' is undefined. For this remap to work it needs to have 'args' with an '\"after\": string[]' and/or a '\"commands\": { command: string; args: any[] }[]'");if(e.after)for(const r of e.after)await t.handleKeyEvent(u.Notation.NormalizeKey(r,p.configuration.leader));if(e.commands)for(const r of e.commands)r.command.startsWith(":")?(await new f.ExCommandLine(r.command.slice(1,r.command.length),t.vimState.currentMode).run(t.vimState),t.updateView()):n.commands.executeCommand(r.command,r.args)}}))})),R(e,"toggleVim",(async()=>{p.configuration.disableExtension=!p.configuration.disableExtension,_(p.configuration.disableExtension,o)}));for(const t of p.configuration.boundKeyCombinations){const r=["",""].includes(t.key)?async()=>{const e=await M();e&&!await P(e)&&await e.handleKeyEvent(`${t.key}`)}:async()=>{const e=await M();e&&await e.handleKeyEvent(`${t.key}`)};R(e,t.command,(async()=>{m.taskQueue.enqueueTask(r)}))}{const e=await M();if(e){if(!p.configuration.startInInsertMode){const t=e.vimState;t.cursors=t.cursors.map((e=>{const r=t.document.lineAt(e.stop).text.length;if(e.stop.character>=r){const t=Math.max(r-1,0);return e.withNewStop(e.stop.with({character:t}))}return e}))}e.updateView({drawSelection:!0,revealRange:!1})}}await h.VSCodeContext.set("listAutomaticKeyboardNavigation",!1),await _(p.configuration.disableExtension,o),r.debug("Finish.")},t.registerCommand=R,t.registerEventListener=k},785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterAction=t.getRelevantAction=t.KeypressState=t.BaseCommand=t.BaseAction=void 0;const n=r(8693),i=r(4627),o=r(6167),s=r(7536),a=r(4379);class c{constructor(){this.isMotion=!1,this.isOperator=!1,this.isCommand=!1,this.isNumber=!1,this.isJump=!1,this.createsUndoPoint=!1,this.preservesDesiredColumn=!1,this.keysPressed=[]}doesActionApply(e,t){return!!(e.currentModeIncludingPseudoModes!==a.Mode.OperatorPendingMode||this.isMotion||this.isOperator||this.isNumber)&&this.modes.includes(e.currentMode)&&c.CompareKeypressSequence(this.keys,t)}couldActionApply(e,t){if(e.currentModeIncludingPseudoModes===a.Mode.OperatorPendingMode&&!this.isMotion&&!this.isOperator&&!this.isNumber)return!1;if(!this.modes.includes(e.currentMode))return!1;const r=(c.is2DArray(this.keys)?this.keys:[this.keys]).map((e=>e.slice(0,t.length)));return!!c.CompareKeypressSequence(r,t)}static CompareKeypressSequence(e,t){if(c.is2DArray(e)){for(const r of e)if(c.CompareKeypressSequence(r,t))return!0;return!1}if(e.length!==t.length)return!1;for(let r=0,n=0;r"!==o&&(""!==o||a!==s.configuration.leader)&&(""!==o||!this.isSingleNumber.test(a))&&(""!==o||!this.isSingleAlpha.test(a))&&(""!==o||i.Notation.IsControlKey(a)))return!1}return!0}toString(){return this.keys.join("")}static is2DArray(e){return Array.isArray(e[0])}}var u;t.BaseAction=c,c.isSingleNumber=/^[0-9]$/,c.isSingleAlpha=/^[a-zA-Z]$/,t.BaseCommand=class extends c{constructor(){super(...arguments),this.isCommand=!0,this.isCompleteAction=!0,this.runsOnceForEachCountPrefix=!1}runsOnceForEveryCursor(){return!0}async exec(e,t){throw new Error("Not implemented!")}async execCount(e,t){const r=this.runsOnceForEachCountPrefix&&t.recordedState.count||1;if(!this.runsOnceForEveryCursor()){for(let n=0;nnew n.Cursor(e.start,e.stop))).sort(((e,t)=>e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>t.start.character?1:-1));let a=0;for(const{start:e,stop:c}of s){this.multicursorIndex=a++,t.cursorStopPosition=c,t.cursorStartPosition=e;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseMovement=t.failedMovement=t.SelectionType=t.isIMovement=void 0;const n=r(785),i=r(4379),o=r(3434),s=r(9496);function a(e){return void 0!==e.start&&void 0!==e.stop}var c;function u(e){return{start:e.cursorStartPosition,stop:e.cursorStopPosition,failed:!0}}t.isIMovement=a,function(e){e[e.Concatenating=0]="Concatenating",e[e.Expanding=1]="Expanding"}(c=t.SelectionType||(t.SelectionType={})),t.failedMovement=u;class l extends n.BaseAction{constructor(e,t){super(),this.modes=[i.Mode.Normal,i.Mode.Visual,i.Mode.VisualLine,i.Mode.VisualBlock],this.isMotion=!0,this.isRepeat=!1,this.setsDesiredColumnToEOL=!1,this.minCount=1,this.maxCount=99999,this.selectionType=c.Concatenating,e&&(this.keysPressed=e),t&&(this.isRepeat=t)}async execAction(e,t,r,n){throw new Error("Not implemented!")}async execActionForOperator(e,t,r,n){return this.execAction(e,t,r,n)}async execActionWithCount(e,t,r){let n,i=u(t),l=e;r=(0,o.clamp)(r,this.minCount,this.maxCount);for(let o=0;o=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionOverrideCmdD=t.CommandUnicodeName=t.ActionDeleteLastChar=t.ActionDeleteCharWithDeleteKey=t.ActionDeleteChar=t.CommandInsertNewLineBefore=t.CommandInsertNewLineAbove=t.CommandInsertAtLineEnd=t.CommandInsertAfterCursor=t.CommandInsertAtLineBegin=t.CommandInsertAtFirstCharacter=t.CommandInsertAtLastChange=t.CommandYankFullLine=t.CommandUndo=t.CommandShowSearchHistory=t.CommandShowCommandHistory=t.CommandReplaceAtCursorFromNormalMode=t.CommandInsertAtCursor=t.CommandQuitRecordMacro=t.CommandRegister=t.CommandNumber=t.DocumentContentChangeAction=void 0;const o=r(9496),s=r(1149),a=r(8785),c=r(3434),u=r(5789),l=r(9241),d=r(7221),h=r(5207),f=r(394),p=r(4880),g=r(8693),m=r(6346),v=r(7536),y=r(4379),w=r(7125),b=r(1797),S=r(6167),x=r(785),M=r(7541),C=r(3176),_=r(9220),E=r(8965),R=r(9909),k=r(3403),P=r(8019),A=r(9496),T=r(7372),L=r(641),O=r(3259),$=r(5571),B=r(5707),I=r(3243);class N extends x.BaseCommand{constructor(e){super(),this.modes=[],this.keys=[],this.contentChanges=[],this.cursorStart=e,this.cursorEnd=e}addChanges(e,t){this.contentChanges=[...this.contentChanges,...e],this.compressChanges(),this.cursorEnd=t}getTransformation(e){return{type:"contentChange",changes:this.contentChanges,diff:e}}async exec(e,t){if(0===this.contentChanges.length)return;let r=this.cursorStart,n=e;for(const i of this.contentChanges){if(i.range.start.line{const n=t.line-r.line,i=0===n?e.character+t.character-r.character:t.character;return new A.Position(Math.max(e.line+n,0),Math.max(i,0))},a=new o.Range(s(i.range.start),s(i.range.end));if(a.start.isAfter(n))continue;const c=i.text.split("\n"),u=c.length-1,l=0===u?new A.Position(a.start.line,a.start.character+i.text.length):new A.Position(a.start.line+u,c.pop().length);n=(0,p.laterOf)(n,l),a.start.isEqual(a.end)?t.recordedState.transformer.insert(a.start,i.text,p.PositionDiff.exactPosition(s(this.cursorEnd))):t.recordedState.transformer.replace(a,i.text,p.PositionDiff.exactPosition(s(this.cursorEnd)))}}compressChanges(){function e(e,t){if(e.rangeOffset+e.text.length===t.rangeOffset)return{text:e.text+t.text,range:e.range,rangeOffset:e.rangeOffset,rangeLength:e.rangeLength};if(e.rangeOffset<=t.rangeOffset&&e.text.length>=t.rangeLength){const r=t.rangeOffset-e.rangeOffset,n=r+t.rangeLength;return{text:e.text.slice(0,r)+t.text+e.text.slice(n),range:e.range,rangeOffset:e.rangeOffset,rangeLength:e.rangeLength}}}const t=[];let r;for(const n of this.contentChanges)if(void 0===r)r=n;else{const i=e(r,n);i?r=i:(t.push(r),r=n)}void 0!==r&&t.push(r),this.contentChanges=t}}t.DocumentContentChangeAction=N;let j=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Insert,y.Mode.Visual,y.Mode.VisualBlock,y.Mode.VisualLine,y.Mode.SearchInProgressMode,y.Mode.CommandlineInProgress,y.Mode.Replace,y.Mode.EasyMotionMode,y.Mode.EasyMotionInputMode,y.Mode.SurroundInputMode],this.keys=[k.SpecialKeys.ExtensionDisable]}async exec(e,t){await t.setCurrentMode(y.Mode.Disabled)}};j=i([x.RegisterAction],j);let D=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Disabled],this.keys=[k.SpecialKeys.ExtensionEnable]}async exec(e,t){await t.setCurrentMode(y.Mode.Normal)}};D=i([x.RegisterAction],D);let F=n=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=[""],this.isCompleteAction=!1,this.isNumber=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=parseInt(this.keysPressed[0],10),i=t.recordedState.operatorCount;if(i>0){const e=t.recordedState.actionsRun[t.recordedState.actionsRun.length-2];t.recordedState.count=e instanceof n?10*t.recordedState.count+r*i:i*r}else t.recordedState.count=10*t.recordedState.count+r}doesActionApply(e,t){const r="0"===t[0];return super.doesActionApply(e,t)&&(r&&e.recordedState.count>0||!r)}couldActionApply(e,t){const r="0"===t[0];return super.couldActionApply(e,t)&&(r&&e.recordedState.count>0||!r)}};F=n=i([x.RegisterAction],F),t.CommandNumber=F;let V=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=['"',""],this.isCompleteAction=!1}async exec(e,t){const r=this.keysPressed[1];w.Register.isValidRegister(r)?t.recordedState.registerName=r:this.isCompleteAction=!0}};V=i([x.RegisterAction],V),t.CommandRegister=V;let W=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["q",""],["q",""],["q",'"']]}async exec(e,t){const r=this.keysPressed[1],n=r.toLocaleLowerCase();if(t.macro=new s.RecordedState,t.macro.registerKey=r,t.macro.registerName=n,!w.Register.isValidUppercaseRegister(r)||!w.Register.has(n)){const e=new s.RecordedState;e.registerName=n,t.recordedState.registerName=n,w.Register.put(t,e)}}};W=i([x.RegisterAction],W);let U=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["q"]}async exec(e,t){var r;const n=t.macro,i=null===(r=await w.Register.get(n.registerName))||void 0===r?void 0:r.text;i instanceof s.RecordedState&&(w.Register.isValidUppercaseRegister(n.registerKey)?i.actionsRun=i.actionsRun.concat(n.actionsRun):i.actionsRun=n.actionsRun),t.macro=void 0}doesActionApply(e,t){return super.doesActionApply(e,t)&&void 0!==e.macro}couldActionApply(e,t){return super.couldActionApply(e,t)&&void 0!==e.macro}};U=i([x.RegisterAction],U),t.CommandQuitRecordMacro=U;let q=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["@","@"],this.runsOnceForEachCountPrefix=!0,this.createsUndoPoint=!0,this.isJump=!0}async exec(e,t){const{lastInvokedMacro:r}=t;r?t.recordedState.transformer.addTransformation({type:"macro",register:r.registerName,replay:"contentChange"}):_.StatusBar.displayError(t,O.VimError.fromCode(O.ErrorCode.NoPreviouslyUsedRegister))}};q=i([x.RegisterAction],q);let K=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["@",""],this.runsOnceForEachCountPrefix=!0,this.createsUndoPoint=!0}async exec(e,t){const r=this.keysPressed[1].toLocaleLowerCase();w.Register.isValidRegister(r)||_.StatusBar.displayError(t,O.VimError.fromCode(O.ErrorCode.InvalidRegisterName,`'${r}'`)),w.Register.has(r)&&t.recordedState.transformer.addTransformation({type:"macro",register:r,replay:"contentChange"})}};K=i([x.RegisterAction],K);let H=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock,y.Mode.Normal,y.Mode.SurroundInputMode,y.Mode.EasyMotionMode,y.Mode.EasyMotionInputMode],this.keys=[[""],[""],[""]],this.preservesDesiredColumn=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){t.currentMode===y.Mode.Normal?(t.surround=void 0,t.isMultiCursor?t.cursors=[t.cursors[0]]:await Promise.allSettled([o.commands.executeCommand("closeReferenceSearchEditor"),o.commands.executeCommand("closeMarkersNavigation"),o.commands.executeCommand("closeDirtyDiff")])):(t.currentMode===y.Mode.EasyMotionMode?t.easyMotion.clearDecorations(t.editor):t.currentMode===y.Mode.SurroundInputMode&&(t.surround=void 0),await t.setCurrentMode(y.Mode.Normal))}};H=i([x.RegisterAction],H);class z extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.runsOnceForEachCountPrefix=!1}async exec(e,t){const r=t.recordedState.count||1,n=v.configuration.getConfiguration("editor").get("cursorSurroundingLines",0),i=t.editor.visibleRanges[0];if(void 0===i)return;const o=i.end.line-t.cursorStopPosition.line-r,s=t.cursorStopPosition.line-i.start.line-r;"up"===this.to&&n>o?t.cursorStopPosition=t.cursorStopPosition.getUp(n-o).withColumn(t.desiredColumn):"down"===this.to&&n>s&&(t.cursorStopPosition=t.cursorStopPosition.getDown(n-s).withColumn(t.desiredColumn)),t.postponedCodeViewChanges.push({command:"editorScroll",args:{to:this.to,by:this.by,value:r,revealCursor:!0,select:(0,y.isVisualMode)(t.currentMode)}})}}let G=class extends z{constructor(){super(...arguments),this.keys=[""],this.preservesDesiredColumn=!0,this.to="down",this.by="line"}};G=i([x.RegisterAction],G);let J=class extends z{constructor(){super(...arguments),this.keys=[""],this.preservesDesiredColumn=!0,this.to="up",this.by="line"}};J=i([x.RegisterAction],J);class Y extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.runsOnceForEachCountPrefix=!1}async exec(e,t){const{visibleRanges:r}=t.editor;if(0===r.length)return;const n=v.configuration.getConfiguration("editor").get("smoothScrolling",!1),i=(t.actionCount||1)*this.getNumLines(r);let s=i;if("down"===this.to&&(s=Math.min(i,t.document.lineCount-1-r[r.length-1].end.line)),s>0){const e={to:this.to,by:"line",value:s,revealCursor:n,select:(0,y.isVisualMode)(t.currentMode)};n?await o.commands.executeCommand("editorScroll",e):t.postponedCodeViewChanges.push({command:"editorScroll",args:e})}const a=(0,c.clamp)(e.line+("down"===this.to?i:-i),0,t.document.lineCount-1);t.cursorStopPosition=new A.Position(a,t.desiredColumn).obeyStartOfLine(t.document)}}let Q=class extends Y{constructor(){super(...arguments),this.keys=[""],this.to="up"}getNumLines(e){return e[0].end.line-e[0].start.line}};Q=i([x.RegisterAction],Q);let Z=class extends Y{constructor(){super(...arguments),this.keys=[""],this.to="down"}getNumLines(e){return e[0].end.line-e[0].start.line}};Z=i([x.RegisterAction],Z);let X=class extends Y{constructor(){super(...arguments),this.keys=[""],this.to="down"}getNumLines(e){return v.configuration.getScrollLines(e)}};X=i([x.RegisterAction],X);let ee=class extends Y{constructor(){super(...arguments),this.keys=[""],this.to="up"}getNumLines(e){return v.configuration.getScrollLines(e)}};ee=i([x.RegisterAction],ee);let te=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["i"],[""]]}async exec(e,t){await t.setCurrentMode(y.Mode.Insert)}doesActionApply(e,t){let r=!0;for(const t of e.recordedState.actionsRun)if(!(t instanceof F)){r=!1;break}return!(0!==e.recordedState.actionsRun.length&&!r)&&super.couldActionApply(e,t)}};te=i([x.RegisterAction],te),t.CommandInsertAtCursor=te;let re=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["R"]}async exec(e,t){const r=t.recordedState.count||1;await t.setCurrentMode(y.Mode.Replace),t.replaceState=new a.ReplaceState(t,e,r)}};re=i([x.RegisterAction],re),t.CommandReplaceAtCursorFromNormalMode=re;let ne=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock,y.Mode.Insert,y.Mode.Normal],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){let r="";if(t.currentMode===y.Mode.Visual)r=t.cursors.map((e=>{const[r,n]=(0,p.sorted)(e.start,e.stop);return t.document.getText(new o.Range(r,n.getRight()))})).join("\n");else if(t.currentMode===y.Mode.VisualLine)r=t.cursors.map((e=>t.document.getText(new o.Range((0,p.earlierOf)(e.start.getLineBegin(),e.stop.getLineBegin()),(0,p.laterOf)(e.start.getLineEnd(),e.stop.getLineEnd()))))).join("\n");else if(t.currentMode===y.Mode.VisualBlock)for(const{line:e}of b.TextEditor.iterateLinesInBlock(t))r+=e+"\n";else t.currentMode!==y.Mode.Insert&&t.currentMode!==y.Mode.Normal||(r=t.editor.selections.map((e=>t.document.getText(new o.Range(e.start,e.end)))).join("\n"));const n=t.editor.selection;!n.active.isEqual(n.anchor)&&await u.Clipboard.Copy(r),await t.setCurrentMode(y.Mode.Normal)}};ne=i([x.RegisterAction],ne);let ie=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=[""]}async exec(e,t){t.cursorStartPosition=new A.Position(0,t.desiredColumn),t.cursorStopPosition=new A.Position(t.document.lineCount-1,t.desiredColumn),await t.setCurrentMode(y.Mode.VisualLine)}};ie=i([x.RegisterAction],ie);let oe=class extends x.BaseCommand{constructor(){super(...arguments),this.keys=["m",""],this.modes=[y.Mode.Normal]}async exec(e,t){const r=this.keysPressed[1];t.historyTracker.addMark(e,r)}};oe=i([x.RegisterAction],oe);let se=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=[":"]}runsOnceForEveryCursor(){return!1}async exec(e,t){let r;r=t.currentMode===y.Mode.Normal?t.recordedState.count?".,.+"+(t.recordedState.count-1):"":"'<,'>",t.commandLine=new M.ExCommandLine(r,t.currentMode),await t.setCurrentMode(y.Mode.CommandlineInProgress)}};se=i([x.RegisterAction],se);let ae=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=["q",":"]}runsOnceForEveryCursor(){return!1}async exec(e,t){t.recordedState.transformer.addTransformation({type:"showCommandHistory"}),await t.setCurrentMode(y.Mode.Normal)}};ae=i([x.RegisterAction],ae),t.CommandShowCommandHistory=ae;let ce=class extends x.BaseCommand{constructor(e=$.SearchDirection.Forward){super(),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=[["q","/"],["q","?"]],this.direction=$.SearchDirection.Forward,this.direction=e}runsOnceForEveryCursor(){return!1}async exec(e,t){this.keysPressed.includes("?")&&(this.direction=$.SearchDirection.Backward),t.recordedState.transformer.addTransformation({type:"showSearchHistory",direction:this.direction}),await t.setCurrentMode(y.Mode.Normal)}};ce=i([x.RegisterAction],ce),t.CommandShowSearchHistory=ce;let ue=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["."]}async execCount(e,t){if(R.globalState.previousFullAction){const e=t.recordedState.count||1;for(let r=0;r"]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=await t.historyTracker.goForwardHistoryStep();void 0===r?_.StatusBar.setText(t,"Already at newest change"):t.cursors=[new g.Cursor(r,r)]}};Pe=i([x.RegisterAction],Pe);let Ae=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["D"],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!0}async exec(e,t){if(e.isLineEnd())return;const r=(t.recordedState.count||1)-1,n=e,i=e.getDown(r).getLineEnd().getLeftThroughLineBreaks();await new C.DeleteOperator(this.multicursorIndex).run(t,n,i)}};Ae=i([x.RegisterAction],Ae);let Te=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["Y"]}async exec(e,t){const r=(t.recordedState.count||1)-1,n=e.getLineBegin(),i=e.getDown(r).getLeft();t.currentRegisterMode=w.RegisterMode.LineWise,await new C.YankOperator(this.multicursorIndex).run(t,n,i)}};Te=i([x.RegisterAction],Te),t.CommandYankFullLine=Te;let Le=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["C"],this.runsOnceForEachCountPrefix=!1}async exec(e,t){const r=t.recordedState.count||1;await new C.ChangeOperator(this.multicursorIndex).run(t,e,e.getDown(Math.max(0,r-1)).getLineEnd().getLeft())}};Le=i([x.RegisterAction],Le);let Oe=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["S"],this.runsOnceForEachCountPrefix=!1}async exec(e,t){await new C.ChangeOperator(this.multicursorIndex).runRepeat(t,e,t.recordedState.count||1)}doesActionApply(e,t){return super.doesActionApply(e,t)&&!v.configuration.sneak}couldActionApply(e,t){return super.couldActionApply(e,t)&&!v.configuration.sneak}};Oe=i([x.RegisterAction],Oe);let $e=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual],this.keys=["v"]}async exec(e,t){await t.setCurrentMode(y.Mode.Normal)}};$e=i([x.RegisterAction],$e);let Be=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=["v"],this.isCompleteAction=!1}async exec(e,t){t.currentMode===y.Mode.Normal&&t.recordedState.count>1&&(t.cursorStopPosition=e.getRight(t.recordedState.count-1)),await t.setCurrentMode(y.Mode.Visual)}};Be=i([x.RegisterAction],Be);let Ie=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","v"]}async exec(e,t){void 0!==t.lastVisualSelection&&t.lastVisualSelection.end.line<=t.document.lineCount-1&&(await t.setCurrentMode(t.lastVisualSelection.mode),t.cursorStartPosition=t.lastVisualSelection.start,t.cursorStopPosition=t.lastVisualSelection.end.getLeft())}};Ie=i([x.RegisterAction],Ie);let Ne=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[[""],[""]]}async exec(e,t){t.currentMode===y.Mode.Normal&&t.recordedState.count>1&&(t.cursorStopPosition=e.getRight(t.recordedState.count-1)),await t.setCurrentMode(y.Mode.VisualBlock)}};Ne=i([x.RegisterAction],Ne);let je=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=[[""],[""]]}async exec(e,t){await t.setCurrentMode(y.Mode.Normal)}};je=i([x.RegisterAction],je);let De=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualBlock],this.keys=["V"]}async exec(e,t){t.currentMode===y.Mode.Normal&&t.recordedState.count>1&&(t.cursorStopPosition=e.getDown(t.recordedState.count-1)),await t.setCurrentMode(y.Mode.VisualLine)}};De=i([x.RegisterAction],De);let Fe=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualLine],this.keys=["V"]}async exec(e,t){await t.setCurrentMode(y.Mode.Normal)}};Fe=i([x.RegisterAction],Fe);let Ve=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual],this.keys=["g","f"],this.isJump=!0}async exec(e,t){let r;if(t.currentMode===y.Mode.Visual)r=t.document.getText(t.editor.selection);else{const n=new o.Range(e.prevWordStart(t.document,{wordType:P.WordType.FileName,inclusive:!0}),e.nextWordStart(t.document,{wordType:P.WordType.FileName}));r=t.document.getText(n).trim()}const n=r.match(/(.*?(?=:[0-9]+)|.*):?([0-9]*)$/);if(n){const e=n[1],r=parseInt(n[2],10);new l.FileCommand({name:"edit",bang:!1,opt:[],file:e,cmd:isNaN(r)?void 0:{type:"line_number",line:r},createFileIfNotExists:!1}).execute(t)}}};Ve=i([x.RegisterAction],Ve);let We=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["g","d"],[""]],this.isJump=!0}async exec(e,t){await o.commands.executeCommand("editor.action.goToDeclaration"),t.editor===o.window.activeTextEditor&&(t.cursorStopPosition=t.editor.selection.start)}};We=i([x.RegisterAction],We);let Ue=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=["g","x"]}async exec(e,t){o.commands.executeCommand("editor.action.openLink")}};Ue=i([x.RegisterAction],Ue);let qe=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g",";"],this.isJump=!0}async exec(e,t){const r=t.historyTracker.prevChangeInChangeList();r instanceof O.VimError?_.StatusBar.displayError(t,r):t.cursorStopPosition=r}};qe=i([x.RegisterAction],qe);let Ke=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g",","],this.isJump=!0}async exec(e,t){const r=t.historyTracker.nextChangeInChangeList();r instanceof O.VimError?_.StatusBar.displayError(t,r):t.cursorStopPosition=r}};Ke=i([x.RegisterAction],Ke);let He=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","i"]}async exec(e,t){var r;t.cursorStopPosition=t.cursorStartPosition=null!==(r=t.historyTracker.getLastChangeEndPosition())&&void 0!==r?r:new A.Position(0,0),await t.setCurrentMode(y.Mode.Insert)}};He=i([x.RegisterAction],He),t.CommandInsertAtLastChange=He;let ze=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["I"]}async exec(e,t){await t.setCurrentMode(y.Mode.Insert),t.cursorStopPosition=t.cursorStartPosition=b.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,e.line)}};ze=i([x.RegisterAction],ze),t.CommandInsertAtFirstCharacter=ze;let Ge=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","I"]}async exec(e,t){await t.setCurrentMode(y.Mode.Insert),t.cursorStopPosition=t.cursorStartPosition=e.getLineBegin()}};Ge=i([x.RegisterAction],Ge),t.CommandInsertAtLineBegin=Ge;let Je=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["a"]}async exec(e,t){await t.setCurrentMode(y.Mode.Insert),t.cursorStopPosition=t.cursorStartPosition=e.getRight()}doesActionApply(e,t){return!!e.recordedState.actionsRun.every((e=>e instanceof F))&&super.couldActionApply(e,t)}};Je=i([x.RegisterAction],Je),t.CommandInsertAfterCursor=Je;let Ye=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["A"]}async exec(e,t){await t.setCurrentMode(y.Mode.Insert),t.cursorStopPosition=t.cursorStartPosition=e.getLineEnd()}};Ye=i([x.RegisterAction],Ye),t.CommandInsertAtLineEnd=Ye;let Qe=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["O"]}runsOnceForEveryCursor(){return!1}async execCount(e,t){await t.setCurrentMode(y.Mode.Insert);const r=t.recordedState.count||1,n=e.getLineBeginRespectingIndent(t.document).character;for(let e=0;e=0?t.recordedState.transformer.addTransformation({type:"insertText",text:b.TextEditor.setIndentationLevel("",s),position:r,cursorIndex:e,manuallySetCursorPositions:!0}):t.recordedState.transformer.addTransformation({type:"deleteRange",cursorIndex:e,range:new o.Range(r,new A.Position(r.line,i)),manuallySetCursorPositions:!0})}t.cursors=t.cursors.reverse(),t.isFakeMultiCursor=!0}};Qe=i([x.RegisterAction],Qe),t.CommandInsertNewLineAbove=Qe;let Ze=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["o"]}runsOnceForEveryCursor(){return!1}async execCount(e,t){await t.setCurrentMode(y.Mode.Insert);const r=t.recordedState.count||1;for(let e=0;e"],[""]]}runsOnceForEveryCursor(){return!1}async exec(e,t){await R.globalState.jumpTracker.jumpBack(e,t)}};Xe=i([x.RegisterAction],Xe);let et=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){await R.globalState.jumpTracker.jumpForward(e,t)}};et=i([x.RegisterAction],et);let tt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["","q"],["",""],["","c"],["",""]]}async exec(e,t){new h.QuitCommand({}).execute(t)}};tt=i([x.RegisterAction],tt);let rt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["","o"],["",""]]}async exec(e,t){(new d.OnlyCommand).execute(t)}};rt=i([x.RegisterAction],rt);let nt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","l"],["",""],["",""]],this.isJump=!0}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.navigateRight",args:{}})}};nt=i([x.RegisterAction],nt);let it=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","j"],["",""],["",""]],this.isJump=!0}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.navigateDown",args:{}})}};it=i([x.RegisterAction],it);let ot=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","k"],["",""],["",""]],this.isJump=!0}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.navigateUp",args:{}})}};ot=i([x.RegisterAction],ot);let st=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","h"],["",""],["",""]],this.isJump=!0}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.navigateLeft",args:{}})}};st=i([x.RegisterAction],st);let at=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["",""],["","w"]],this.isJump=!0}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.navigateEditorGroups",args:{}})}};at=i([x.RegisterAction],at);let ct=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","v"],["",""]]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.splitEditor",args:{}})}};ct=i([x.RegisterAction],ct);let ut=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["","s"],["",""]]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.splitEditorOrthogonal",args:{}})}};ut=i([x.RegisterAction],ut);let lt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["","="]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.evenEditorWidths",args:{}})}};lt=i([x.RegisterAction],lt);let dt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["",">"]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.increaseViewWidth",args:{}})}};dt=i([x.RegisterAction],dt);let ht=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["","<"]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.decreaseViewWidth",args:{}})}};ht=i([x.RegisterAction],ht);let ft=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["","+"]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.increaseViewHeight",args:{}})}};ft=i([x.RegisterAction],ft);let pt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=["","-"]}async exec(e,t){t.postponedCodeViewChanges.push({command:"workbench.action.decreaseViewHeight",args:{}})}};pt=i([x.RegisterAction],pt);let gt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["g","t"],[""]],this.runsOnceForEachCountPrefix=!1}async exec(e,t){t.recordedState.count>0?new f.TabCommand({type:f.TabCommandType.Absolute,count:t.recordedState.count-1}).execute(t):new f.TabCommand({type:f.TabCommandType.Next,bang:!1,count:1}).execute(t)}};gt=i([x.RegisterAction],gt);let mt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual,y.Mode.VisualLine],this.keys=[["g","T"],[""]],this.runsOnceForEachCountPrefix=!0}async exec(e,t){new f.TabCommand({type:f.TabCommandType.Previous,bang:!1,count:1}).execute(t)}};mt=i([x.RegisterAction],mt);let vt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["x"],this.createsUndoPoint=!0}async exec(e,t){if(0===t.document.lineAt(e).text.length)return;const r=t.recordedState.count||1;await new C.DeleteOperator(this.multicursorIndex).run(t,e,e.getRight(r-1).getLeftIfEOL()),await t.setCurrentMode(y.Mode.Normal)}};vt=i([x.RegisterAction],vt),t.ActionDeleteChar=vt;let yt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[""],this.runsOnceForEachCountPrefix=!0,this.createsUndoPoint=!0}async execCount(e,t){0!==t.recordedState.count?(t.recordedState.count=Math.floor(t.recordedState.count/10),t.recordedState.actionsRunPressedKeys=t.recordedState.count>0?t.recordedState.count.toString().split(""):[],this.isCompleteAction=!1):await(new vt).execCount(e,t)}};yt=i([x.RegisterAction],yt),t.ActionDeleteCharWithDeleteKey=yt;let wt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["X"],this.createsUndoPoint=!0}async exec(e,t){if(0===e.character)return;const r=t.recordedState.count||1;await new C.DeleteOperator(this.multicursorIndex).run(t,e.getLeft(r),e.getLeft())}};wt=i([x.RegisterAction],wt),t.ActionDeleteLastChar=wt;let bt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["J"],this.createsUndoPoint=!0,this.runsOnceForEachCountPrefix=!1}firstNonWhitespaceIndex(e){for(let t=0,r=e.length;t=0){let e=" ";""===d||d.endsWith("\t")?e="":i&&(d.endsWith(".")||d.endsWith("!")||d.endsWith("?"))?e=" ":i&&(d.endsWith(". ")||d.endsWith("! ")||d.endsWith("? "))?e=" ":d.endsWith(" ")&&(e="");const r=t.substr(n);")"===r.charAt(0)&&(e=""),d+=e+r,l=r.length+e.length}}const h=new A.Position(s,a),f=new A.Position(c,u);h.isEqual(f)||(e.isEqual(t)?r.recordedState.transformer.addTransformation({type:"replaceText",text:d,range:new o.Range(h,f),diff:p.PositionDiff.offset({character:d.length-l-t.character})}):(r.recordedState.transformer.addTransformation({type:"replaceText",text:d,range:new o.Range(h,f),manuallySetCursorPositions:!0}),r.cursorStartPosition=r.cursorStopPosition=new A.Position(e.line,d.length-l),await r.setCurrentMode(y.Mode.Normal)))}async execCount(e,t){const r=t.cursors.map((e=>new g.Cursor(e.start,e.stop))).sort(((e,t)=>e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>t.start.character?1:-1)),n=[];for(const[e,{start:i,stop:o}]of r.entries()){this.multicursorIndex=e,t.cursorStopPosition=o,t.cursorStartPosition=i,await this.execJoinLines(i,o,t,t.recordedState.count||1),n.push(new g.Cursor(t.cursorStartPosition,t.cursorStopPosition));for(const e of t.recordedState.transformer.transformations)(0,S.isTextTransformation)(e)&&void 0===e.cursorIndex&&(e.cursorIndex=this.multicursorIndex)}t.cursors=n}};bt=i([x.RegisterAction],bt);let St=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual,y.Mode.VisualLine],this.keys=["J"]}async exec(e,t){const[r,n]=(0,p.sorted)(t.editor.selection.start,t.editor.selection.end);t.currentRegisterMode=w.RegisterMode.CharacterWise,await(new bt).execJoinLines(r,n,t,1)}};St=i([x.RegisterAction],St);let xt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["J"]}async exec(e,t){const[r,n]=(0,p.sorted)(t.cursorStartPosition,t.cursorStopPosition);t.currentRegisterMode=w.RegisterMode.CharacterWise,await(new bt).execJoinLines(r,n,t,1)}};xt=i([x.RegisterAction],xt);let Mt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","J"],this.createsUndoPoint=!0}async exec(e,t){if(e.line===t.document.lineCount-1)return;const r=t.recordedState.count>2?t.recordedState.count-1:1;await this.execJoin(r,e,t)}async execJoin(e,t,r){const n=new o.Range(new A.Position(t.line,0),new A.Position(Math.min(t.line+e,r.document.lineCount-1),0).getLineEnd()),i=r.document.getText(n).replace(/\r?\n/g,""),s=i.length-r.document.lineAt(n.end).text.length;r.recordedState.transformer.addTransformation({type:"replaceText",range:n,text:i,diff:p.PositionDiff.exactCharacter({character:s})})}};Mt=i([x.RegisterAction],Mt);let Ct=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual,y.Mode.VisualLine,y.Mode.VisualBlock],this.keys=["g","J"]}async exec(e,t){const[r,n]=(0,p.sorted)(t.cursorStartPosition,t.cursorStopPosition),i=r.line===n.line?1:n.line-r.line;await(new Mt).execJoin(i,r,t),await t.setCurrentMode(y.Mode.Normal)}};Ct=i([x.RegisterAction],Ct);let _t=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["r",""],this.createsUndoPoint=!0,this.runsOnceForEachCountPrefix=!1}async exec(e,t){const r=t.recordedState.count||1,n=this.keysPressed[1];if(["",""].includes(n.toUpperCase()))return;if(e.character+r>e.getLineEnd().character)return;let i=new A.Position(e.line,e.character+r);i.character>t.document.lineAt(i).text.length||(i.character>t.document.lineAt(i).text.length&&(i=new A.Position(i.line,i.character+1)),""===n?(t.recordedState.transformer.delete(new o.Range(e,i)),t.recordedState.transformer.addTransformation({type:"tab",cursorIndex:this.multicursorIndex,diff:p.PositionDiff.offset({character:-1})})):"\n"===n?(t.recordedState.transformer.delete(new o.Range(e,i)),t.recordedState.transformer.addTransformation({type:"insertTextVSCode",text:"\n"})):t.recordedState.transformer.addTransformation({type:"replaceText",text:n.repeat(r),range:new o.Range(e,i),diff:p.PositionDiff.offset({character:r-1})}))}};_t=i([x.RegisterAction],_t);let Et=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Visual,y.Mode.VisualLine],this.keys=["r",""],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){let r=this.keysPressed[1];""===r&&(r=b.TextEditor.getTabCharacter(t.editor));let n=1,[i,s]=(0,p.sorted)(t.cursorStartPosition,t.cursorStopPosition);t.currentMode===y.Mode.VisualLine&&([i,s]=[i.getLineBegin(),s.getLineEnd()]);const a=t.document.lineAt(s).text.length;a<=0&&(n=0),s=new A.Position(s.line,Math.min(s.character,a>0?a-1:0));for(let e=i.line;e<=s.line;e++){const a=t.document.lineAt(e).text;i.line===s.line?t.recordedState.transformer.addTransformation({type:"replaceText",text:Array(s.character-i.character+2).join(r),range:new o.Range(i,new A.Position(s.line,s.character+1)),manuallySetCursorPositions:!0}):e===i.line?t.recordedState.transformer.addTransformation({type:"replaceText",text:Array(a.length-i.character+1).join(r),range:new o.Range(i,new A.Position(i.line,a.length)),manuallySetCursorPositions:!0}):e===s.line?t.recordedState.transformer.addTransformation({type:"replaceText",text:Array(s.character+1+n).join(r),range:new o.Range(new A.Position(s.line,0),new A.Position(s.line,s.character+n)),manuallySetCursorPositions:!0}):t.recordedState.transformer.addTransformation({type:"replaceText",text:Array(a.length+1).join(r),range:new o.Range(new A.Position(e,0),new A.Position(e,a.length)),manuallySetCursorPositions:!0})}t.cursorStopPosition=i,t.cursorStartPosition=i,await t.setCurrentMode(y.Mode.Normal)}};Et=i([x.RegisterAction],Et);let Rt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["r",""],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){let r=this.keysPressed[1];""===r&&(r=b.TextEditor.getTabCharacter(t.editor));for(const{start:e,end:n}of b.TextEditor.iterateLinesInBlock(t))n.isBeforeOrEqual(e)||t.recordedState.transformer.addTransformation({type:"replaceText",text:Array(n.character-e.character+1).join(r),range:new o.Range(e,n),manuallySetCursorPositions:!0});const n=(0,y.visualBlockGetTopLeftPosition)(t.cursorStopPosition,t.cursorStartPosition);t.cursors=[new g.Cursor(n,n)],await t.setCurrentMode(y.Mode.Normal)}};Rt=i([x.RegisterAction],Rt);let kt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=[["d"],["x"],["X"]],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=[];for(const{line:e,start:n,end:i}of b.TextEditor.iterateLinesInBlock(t))r.push(e),t.recordedState.transformer.addTransformation({type:"deleteRange",range:new o.Range(n,i),manuallySetCursorPositions:!0});const n=1===r.length?r[0]:r.join("\n");t.currentRegisterMode=w.RegisterMode.BlockWise,w.Register.put(t,n,this.multicursorIndex,!0);const i=(0,y.visualBlockGetTopLeftPosition)(t.cursorStopPosition,t.cursorStartPosition);t.cursors=[new g.Cursor(i,i)],await t.setCurrentMode(y.Mode.Normal)}};kt=i([x.RegisterAction],kt);let Pt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["D"],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){for(const{start:e}of b.TextEditor.iterateLinesInBlock(t))t.recordedState.transformer.addTransformation({type:"deleteRange",range:new o.Range(e,e.getLineEnd()),manuallySetCursorPositions:!0});const r=(0,y.visualBlockGetTopLeftPosition)(t.cursorStopPosition,t.cursorStartPosition);t.cursors=[new g.Cursor(r,r)],await t.setCurrentMode(y.Mode.Normal)}};Pt=i([x.RegisterAction],Pt);let At=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["I"]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=[];for(const e of t.cursors)for(const{line:n,start:i}of b.TextEditor.iterateLinesInBlock(t,e))""===n&&0!==i.character||r.push(new g.Cursor(i,i));t.cursors=r,await t.setCurrentMode(y.Mode.Insert),t.isFakeMultiCursor=!0}};At=i([x.RegisterAction],At);let Tt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=[["c"],["s"]]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=[];for(const e of t.cursors)for(const{start:n,end:i}of b.TextEditor.iterateLinesInBlock(t,e))t.recordedState.transformer.addTransformation({type:"deleteRange",range:new o.Range(n,i),manuallySetCursorPositions:!0}),r.push(new g.Cursor(n,n));t.cursors=r,await t.setCurrentMode(y.Mode.Insert),t.isFakeMultiCursor=!0}};Tt=i([x.RegisterAction],Tt);let Lt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["C"]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=[];for(const e of t.cursors)for(const{start:n,end:i}of b.TextEditor.iterateLinesInBlock(t,e))t.recordedState.transformer.delete(new o.Range(n,n.getLineEnd())),r.push(new g.Cursor(i,i));t.cursors=r,await t.setCurrentMode(y.Mode.Insert),t.isFakeMultiCursor=!0}};Lt=i([x.RegisterAction],Lt);class Ot extends x.BaseCommand{runsOnceForEveryCursor(){return!1}async exec(e,t){await t.setCurrentMode(y.Mode.Insert),t.isFakeMultiCursor=!0;const r=[],n=[];for(const e of t.editor.selections){const{start:i,end:o}=e;for(let e=i.line;e<=o.line;e++){const s=t.document.lineAt(e),a=this.getCursorRangeForLine(s,i,o);s.isEmptyOrWhitespace?n.push(a):r.push(a)}}r.length>0?t.cursors=r:t.cursors=n}}let $t=class extends Ot{constructor(){super(...arguments),this.modes=[y.Mode.VisualLine],this.keys=["I"]}getCursorRangeForLine(e){const t=new A.Position(e.lineNumber,e.firstNonWhitespaceCharacterIndex);return new g.Cursor(t,t)}};$t=i([x.RegisterAction],$t);let Bt=class extends Ot{constructor(){super(...arguments),this.modes=[y.Mode.VisualLine],this.keys=["A"]}getCursorRangeForLine(e){const t=new A.Position(e.lineNumber,e.range.end.character);return new g.Cursor(t,t)}};Bt=i([x.RegisterAction],Bt);let It=class extends Ot{constructor(){super(...arguments),this.modes=[y.Mode.Visual],this.keys=["I"]}getCursorRangeForLine(e,t,r){const n=e.lineNumber===t.line?t:new A.Position(e.lineNumber,e.firstNonWhitespaceCharacterIndex);return new g.Cursor(n,n)}};It=i([x.RegisterAction],It);let Nt=class extends Ot{constructor(){super(...arguments),this.modes=[y.Mode.Visual],this.keys=["A"]}getCursorRangeForLine(e,t,r){const n=e.lineNumber===r.line?r:new A.Position(e.lineNumber,e.range.end.character);return new g.Cursor(n,n)}};Nt=i([x.RegisterAction],Nt);let jt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.VisualBlock],this.keys=["A"]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=[];for(const e of t.cursors){const[n,i]=(0,p.sorted)(e.start,e.stop);for(let o=n.line;o<=i.line;o++){const n=t.document.lineAt(o),i=t.desiredColumn===Number.POSITIVE_INFINITY?n.text.length:Math.max(e.start.character,e.stop.character)+1;n.text.length"],this.offset=1,this.staircase=!1}};Ht=i([x.RegisterAction],Ht);let zt=class extends Kt{constructor(){super(...arguments),this.keys=[""],this.offset=-1,this.staircase=!1}};zt=i([x.RegisterAction],zt);let Gt=class extends Kt{constructor(){super(...arguments),this.keys=["g",""],this.offset=1,this.staircase=!0}};Gt=i([x.RegisterAction],Gt);let Jt=class extends Kt{constructor(){super(...arguments),this.keys=["g",""],this.offset=-1,this.staircase=!0}};Jt=i([x.RegisterAction],Jt);let Yt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","a"]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=t.document.getText(new o.Range(e,e.getRight())),n=r.charCodeAt(0);_.StatusBar.setText(t,`<${r}> ${n}, Hex ${n.toString(16)}, Octal ${n.toString(8)}`)}};Yt=i([x.RegisterAction],Yt),t.CommandUnicodeName=Yt;let Qt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","h"]}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.commands.executeCommand("editor.action.showHover")}};Qt=i([x.RegisterAction],Qt);let Zt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual],this.keys=[[""],["g","b"]],this.runsOnceForEachCountPrefix=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.commands.executeCommand("editor.action.addSelectionToNextFindMatch"),t.cursors=(0,c.getCursorsAfterSync)(t.editor),t.cursors=t.cursors.map((e=>e.withNewStop(e.stop.getLeft()))),await t.setCurrentMode(y.Mode.Visual)}};Zt=i([x.RegisterAction],Zt),t.ActionOverrideCmdD=Zt;let Xt=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Insert],this.keys=[""],this.runsOnceForEachCountPrefix=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){t.editor.selections=t.editor.selections.map(((e,r)=>{const n=e.active;if(0===r)return new o.Selection(n.prevWordStart(t.document),n.getLeft().nextWordEnd(t.document,{inclusive:!0}).getRight());{const e=t.editor.selections[0].active,r=e.getLeft().nextWordEnd(t.document,{inclusive:!0}).getRight().character-e.prevWordStart(t.document).character,i=n.getLeft(r);return new o.Selection(i,n)}})),await o.commands.executeCommand("editor.action.addSelectionToNextFindMatch"),t.cursors=(0,c.getCursorsAfterSync)(t.editor)}};Xt=i([x.RegisterAction],Xt);let er=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual],this.keys=[[""],[""]],this.runsOnceForEachCountPrefix=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.commands.executeCommand("editor.action.insertCursorBelow"),t.cursors=(0,c.getCursorsAfterSync)(t.editor)}};er=i([x.RegisterAction],er);let tr=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal,y.Mode.Visual],this.keys=[[""],[""]],this.runsOnceForEachCountPrefix=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.commands.executeCommand("editor.action.insertCursorAbove"),t.cursors=(0,c.getCursorsAfterSync)(t.editor)}};tr=i([x.RegisterAction],tr);let rr=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){(0,E.reportFileInfo)(e,t)}};rr=i([x.RegisterAction],rr);let nr=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["Z","Z"]]}runsOnceForEveryCursor(){return!1}async exec(e,t){await new T.WriteQuitCommand({bang:!1,opt:[]}).execute(t)}};nr=i([x.RegisterAction],nr);let ir=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[["Z","Q"]]}runsOnceForEveryCursor(){return!1}async exec(e,t){await new h.QuitCommand({bang:!0}).execute(t)}};ir=i([x.RegisterAction],ir);let or=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=[[""],[""]]}runsOnceForEveryCursor(){return!1}async exec(e,t){const r=await w.Register.get("#");if((null==r?void 0:r.text)instanceof s.RecordedState)throw new Error("# register unexpectedly contained a RecordedState");if(void 0===r||""===r.text)_.StatusBar.displayError(t,O.VimError.fromCode(O.ErrorCode.NoAlternateFile));else{let e;if(e=await(0,B.doesFileExist)(o.Uri.file(r.text))?[o.Uri.file(r.text)]:await o.workspace.findFiles(r.text),e.length>0){const t=await o.workspace.openTextDocument(e[0]);await o.window.showTextDocument(t)}}}};or=i([x.RegisterAction],or);let sr=class extends x.BaseCommand{constructor(){super(...arguments),this.modes=[y.Mode.Normal],this.keys=["g","O"]}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.commands.executeCommand("outline.focus")}};sr=i([x.RegisterAction],sr)},3746:function(e,t,r){"use strict";var n,i=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const o=r(9496),s=r(785),a=r(4379),c=r(7541),u=r(7125),l=r(1149),d=r(1797),h=r(9220),f=r(5458),p=r(5789),g=r(3259),m=r(3434),v=r(3243),y=r(5571);class w extends s.BaseCommand{constructor(){super(...arguments),this.modes=[a.Mode.CommandlineInProgress,a.Mode.SearchInProgressMode]}runsOnceForEveryCursor(){return!1}async exec(e,t){(0,m.assertDefined)(t.commandLine,"vimState.commandLine unexpectedly undefined"),await this.run(t,t.commandLine)}}let b=n=class extends w{constructor(){super(...arguments),this.modes=[a.Mode.CommandlineInProgress],this.keys=[[""],[""]]}cycleCompletion(e,t){const r=t.autoCompleteItems;if(0===r.length)return;t.autoCompleteIndex=e?(t.autoCompleteIndex+1)%r.length:(t.autoCompleteIndex-1+r.length)%r.length;const n=t.preCompleteCharacterPos,i=t.preCompleteCommand,o=i.slice(0,n),s=i.slice(n);t.text=o+r[t.autoCompleteIndex]+s,t.cursorIndex=t.text.length-s.length}async run(e,t){if(!(t instanceof c.ExCommandLine))throw new Error("Expected ExCommandLine in CommandLineTab::run()");const r=""===this.keysPressed[0];if(0!==t.autoCompleteItems.length&&e.recordedState.actionsRun[e.recordedState.actionsRun.length-2]instanceof n)return void this.cycleCompletion(r,t);let i=[],s=t.text.slice(0,t.cursorIndex);const a=t.text.slice(t.cursorIndex),u=/^\s*\w+\s+/g;if(/^\s*\w+$/.test(s))i=v.builtinExCommands.map((e=>e[0][0]+e[0][1])).filter((e=>e.startsWith(s))).map((e=>e.slice(e.search(s)+s.length))).sort();else if(u.exec(s)){const t=s.substring(u.lastIndex),r=e.document.uri,n=!!o.env.remoteName,{fullDirPath:a,baseName:c,partialPath:l,path:d}=(0,f.getPathDetails)(t,r,n);s=s.slice(0,u.lastIndex)+l;const h=/^\.\.?$/g.test(c),p=await(0,f.readDirectory)(a,d.sep,r,n,h),g=new RegExp(`^${c}`,"win32"===process.platform?"i":"");i=p.map((e=>[g.exec(e),e])).filter((([e])=>null!==e)).map((([e,t])=>t.slice(e[0].length))).sort()}const l=r?0:i.length-1;t.autoCompleteIndex=l,t.autoCompleteItems=i.length<=1?[]:i,t.preCompleteCharacterPos=t.cursorIndex,t.preCompleteCommand=s+a;const d=0===i.length?"":i[l];t.text=s+d+a,t.cursorIndex=t.text.length-a.length}};b=n=i([s.RegisterAction],b);let S=class extends w{constructor(){super(...arguments),this.modes=[a.Mode.CommandlineInProgress],this.keys=[["\n"],[""]]}async run(e,t){await t.run(e)}};S=i([s.RegisterAction],S);let x=class extends w{constructor(){super(...arguments),this.modes=[a.Mode.SearchInProgressMode],this.keys=[["\n"],[""]],this.isJump=!0}runsOnceForEveryCursor(){return!0}async run(e,t){await t.run(e)}};x=i([s.RegisterAction],x);let M=class extends w{constructor(){super(...arguments),this.keys=[[""],[""],[""]]}async run(e,t){await t.escape(e)}};M=i([s.RegisterAction],M);let C=class extends w{constructor(){super(...arguments),this.keys=[[""],[""],[""]]}async run(e,t){await t.backspace(e)}};C=i([s.RegisterAction],C);let _=class extends w{constructor(){super(...arguments),this.keys=[""]}async run(e,t){await t.delete(e)}};_=i([s.RegisterAction],_);let E=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){await t.home()}};E=i([s.RegisterAction],E);let R=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){await t.end()}};R=i([s.RegisterAction],R);let k=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){await t.deleteWord()}};k=i([s.RegisterAction],k);let P=class extends w{constructor(){super(...arguments),this.keys=[""]}async run(e,t){await t.deleteToBeginning()}};P=i([s.RegisterAction],P);let A=class extends w{constructor(){super(...arguments),this.keys=[""]}async run(e,t){await t.wordLeft()}};A=i([s.RegisterAction],A);let T=class extends w{constructor(){super(...arguments),this.keys=[""]}async run(e,t){await t.wordRight()}};T=i([s.RegisterAction],T);let L=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){await t.historyBack()}};L=i([s.RegisterAction],L);let O=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){await t.historyForward()}};O=i([s.RegisterAction],O);let $=class extends w{constructor(){super(...arguments),this.keys=["",""],this.isCompleteAction=!1}async run(e,t){if(!u.Register.isValidRegister(this.keysPressed[1]))return;e.recordedState.registerName=this.keysPressed[1];const r=await u.Register.get(e.recordedState.registerName,this.multicursorIndex);if(void 0===r)return void h.StatusBar.displayError(e,g.VimError.fromCode(g.ErrorCode.NothingInRegister,e.recordedState.registerName));let n;if(r.text instanceof Array)n=r.text.join("\n");else if(r.text instanceof l.RecordedState){let e=[];for(const t of r.text.actionsRun)e=e.concat(t.keysPressed);n=e.join("\n")}else n=r.text;r.registerMode===u.RegisterMode.LineWise&&(n+="\n"),t.text+=n,t.cursorIndex+=n.length}};$=i([s.RegisterAction],$);let B=class extends w{constructor(){super(...arguments),this.keys=["",""]}async run(e,t){const r=d.TextEditor.getWord(e.document,e.cursorStopPosition.getLeftIfEOL());void 0!==r&&(t.text+=r,t.cursorIndex+=r.length)}};B=i([s.RegisterAction],B);let I=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}getTrimmedStatusBarText(){return h.StatusBar.getText().replace(/^(?:\/|\:)(.*)(?:\|)(.*)/,"$1$2").replace(/(.*) $/,"$1")}async run(e,t){const r=this.keysPressed[0],n=this.getTrimmedStatusBarText();""===r?t.cursorIndex=Math.min(t.cursorIndex+1,n.length):""===r&&(t.cursorIndex=Math.max(t.cursorIndex-1,0))}};I=i([s.RegisterAction],I);let N=class extends w{constructor(){super(...arguments),this.keys=[[""],[""]]}async run(e,t){const r=await p.Clipboard.Paste();t.text=t.text.substring(0,t.cursorIndex).concat(r).concat(t.text.slice(t.cursorIndex)),t.cursorIndex+=r.length}};N=i([s.RegisterAction],N);let j=class extends w{constructor(){super(...arguments),this.modes=[a.Mode.SearchInProgressMode],this.keys=[""]}async run(e,t){if(t instanceof c.SearchCommandLine){const r=t.getCurrentMatchRange(e);if(r){const n=e.document.lineAt(r.range.end).text;r.range.end.character"],[""]]}async run(e,t){const r=this.keysPressed[0],n=""===r?y.SearchDirection.Forward:""===r?y.SearchDirection.Backward:void 0;t instanceof c.SearchCommandLine&&void 0!==n&&t.advanceCurrentMatch(e,n)}};D=i([s.RegisterAction],D);let F=class extends w{constructor(){super(...arguments),this.keys=[[""]]}async run(e,t){t.typeCharacter(this.keysPressed[0])}};F=i([s.RegisterAction],F)},9470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDigraphs=void 0,t.DefaultDigraphs={SH:["^A",1],SX:["^B",2],EX:["^C",3],ET:["^D",4],EQ:["^E",5],AK:["^F",6],BL:["^G",7],BS:["^H",8],HT:["^I",9],LF:["^@",10],NU:["^@",10],VT:["^K",11],FF:["^L",12],CR:["^M",13],SO:["^N",14],SI:["^O",15],DL:["^P",16],D1:["^Q",17],D2:["^R",18],D3:["^S",19],D4:["^T",20],NK:["^U",21],SY:["^V",22],EB:["^W",23],CN:["^X",24],EM:["^Y",25],SB:["^Z",26],EC:["^[",27],FS:["^\\",28],GS:["^]",29],RS:["^^",30],US:["^_",31],SP:[" ",32],Nb:["#",35],DO:["$",36],At:["@",64],"<(":["[",91],"//":["\\",92],")>":["]",93],"'>":["^",94],"'!":["`",96],"(!":["{",123],"!!":["|",124],"!)":["}",125],"'?":["~",126],DT:["^?",127],PA:["<80>",128],HO:["<81>",129],BH:["<82>",130],NH:["<83>",131],IN:["<84>",132],NL:["<85>",133],SA:["<86>",134],ES:["<87>",135],HS:["<88>",136],HJ:["<89>",137],VS:["<8a>",138],PD:["<8b>",139],PU:["<8c>",140],RI:["<8d>",141],S2:["<8e>",142],S3:["<8f>",143],DC:["<90>",144],P1:["<91>",145],P2:["<92>",146],TS:["<93>",147],CC:["<94>",148],MW:["<95>",149],SG:["<96>",150],EG:["<97>",151],SS:["<98>",152],GC:["<99>",153],SC:["<9a>",154],CI:["<9b>",155],ST:["<9c>",156],OC:["<9d>",157],PM:["<9e>",158],AC:["<9f>",159],NS:[" ",160],"~!":["¡",161],"!I":["¡",161],Ct:["¢",162],"c|":["¢",162],Pd:["£",163],$$:["£",163],Cu:["¤",164],ox:["¤",164],Ye:["¥",165],"Y-":["¥",165],BB:["¦",166],"||":["¦",166],SE:["§",167],"':":["¨",168],Co:["©",169],cO:["©",169],"-a":["ª",170],"<<":["«",171],NO:["¬",172],"-,":["¬",172],"--":["­",173],Rg:["®",174],"'m":["¯",175],"-=":["¯",175],DG:["°",176],"~o":["°",176],"+-":["±",177],"2S":["²",178],22:["²",178],"3S":["³",179],33:["³",179],"''":["´",180],My:["µ",181],PI:["¶",182],pp:["¶",182],".M":["·",183],"~.":["·",183],"',":["¸",184],"1S":["¹",185],11:["¹",185],"-o":["º",186],">>":["»",187],14:["¼",188],12:["½",189],34:["¾",190],"?I":["¿",191],"~?":["¿",191],"A!":["À",192],"A`":["À",192],"A'":["Á",193],"A>":["Â",194],"A^":["Â",194],"A?":["Ã",195],"A~":["Ã",195],"A:":["Ä",196],'A"':["Ä",196],AA:["Å",197],"A@":["Å",197],AE:["Æ",198],"C,":["Ç",199],"E!":["È",200],"E`":["È",200],"E'":["É",201],"E>":["Ê",202],"E^":["Ê",202],"E:":["Ë",203],'E"':["Ë",203],"I!":["Ì",204],"I`":["Ì",204],"I'":["Í",205],"I>":["Î",206],"I^":["Î",206],"I:":["Ï",207],'I"':["Ï",207],"D-":["Ð",208],"N?":["Ñ",209],"N~":["Ñ",209],"O!":["Ò",210],"O`":["Ò",210],"O'":["Ó",211],"O>":["Ô",212],"O^":["Ô",212],"O?":["Õ",213],"O~":["Õ",213],"O:":["Ö",214],"*X":["×",215],"/\\":["×",215],"O/":["Ø",216],"U!":["Ù",217],"U`":["Ù",217],"U'":["Ú",218],"U>":["Û",219],"U^":["Û",219],"U:":["Ü",220],"Y'":["Ý",221],TH:["Þ",222],Ip:["Þ",222],ss:["ß",223],"a!":["à",224],"a`":["à",224],"a'":["á",225],"a>":["â",226],"a^":["â",226],"a?":["ã",227],"a~":["ã",227],"a:":["ä",228],'a"':["ä",228],aa:["å",229],"a@":["å",229],ae:["æ",230],"c,":["ç",231],"e!":["è",232],"e`":["è",232],"e'":["é",233],"e>":["ê",234],"e^":["ê",234],"e:":["ë",235],'e"':["ë",235],"i!":["ì",236],"i`":["ì",236],"i'":["í",237],"i>":["î",238],"i^":["î",238],"i:":["ï",239],"d-":["ð",240],"n?":["ñ",241],"n~":["ñ",241],"o!":["ò",242],"o`":["ò",242],"o'":["ó",243],"o>":["ô",244],"o^":["ô",244],"o?":["õ",245],"o~":["õ",245],"o:":["ö",246],"-:":["÷",247],"o/":["ø",248],"u!":["ù",249],"u`":["ù",249],"u'":["ú",250],"u>":["û",251],"u^":["û",251],"u:":["ü",252],"y'":["ý",253],th:["þ",254],"y:":["ÿ",255],'y"':["ÿ",255],"A-":["Ā",256],"a-":["ā",257],"A(":["Ă",258],"a(":["ă",259],"A;":["Ą",260],"a;":["ą",261],"C'":["Ć",262],"c'":["ć",263],"C>":["Ĉ",264],"c>":["ĉ",265],"C.":["Ċ",266],"c.":["ċ",267],"C<":["Č",268],"c<":["č",269],"D<":["Ď",270],"d<":["ď",271],"D/":["Đ",272],"d/":["đ",273],"E-":["Ē",274],"e-":["ē",275],"E(":["Ĕ",276],"e(":["ĕ",277],"E.":["Ė",278],"e.":["ė",279],"E;":["Ę",280],"e;":["ę",281],"E<":["Ě",282],"e<":["ě",283],"G>":["Ĝ",284],"g>":["ĝ",285],"G(":["Ğ",286],"g(":["ğ",287],"G.":["Ġ",288],"g.":["ġ",289],"G,":["Ģ",290],"g,":["ģ",291],"H>":["Ĥ",292],"h>":["ĥ",293],"H/":["Ħ",294],"h/":["ħ",295],"I?":["Ĩ",296],"i?":["ĩ",297],"I-":["Ī",298],"i-":["ī",299],"I(":["Ĭ",300],"i(":["ĭ",301],"I;":["Į",302],"i;":["į",303],"I.":["İ",304],"i.":["ı",305],IJ:["IJ",306],ij:["ij",307],"J>":["Ĵ",308],"j>":["ĵ",309],"K,":["Ķ",310],"k,":["ķ",311],kk:["ĸ",312],"L'":["Ĺ",313],"l'":["ĺ",314],"L,":["Ļ",315],"l,":["ļ",316],"L<":["Ľ",317],"l<":["ľ",318],"L.":["Ŀ",319],"l.":["ŀ",320],"L/":["Ł",321],"l/":["ł",322],"N'":["Ń",323],"n'":["ń",324],"N,":["Ņ",325],"n,":["ņ",326],"N<":["Ň",327],"n<":["ň",328],"'n":["ʼn",329],NG:["Ŋ",330],ng:["ŋ",331],"O-":["Ō",332],"o-":["ō",333],"O(":["Ŏ",334],"o(":["ŏ",335],'O"':["Ő",336],'o"':["ő",337],OE:["Œ",338],oe:["œ",339],"R'":["Ŕ",340],"r'":["ŕ",341],"R,":["Ŗ",342],"r,":["ŗ",343],"R<":["Ř",344],"r<":["ř",345],"S'":["Ś",346],"s'":["ś",347],"S>":["Ŝ",348],"s>":["ŝ",349],"S,":["Ş",350],"s,":["ş",351],"S<":["Š",352],"s<":["š",353],"T,":["Ţ",354],"t,":["ţ",355],"T<":["Ť",356],"t<":["ť",357],"T/":["Ŧ",358],"t/":["ŧ",359],"U?":["Ũ",360],"u?":["ũ",361],"U-":["Ū",362],"u-":["ū",363],"U(":["Ŭ",364],"u(":["ŭ",365],U0:["Ů",366],u0:["ů",367],'U"':["Ű",368],'u"':["ű",369],"U;":["Ų",370],"u;":["ų",371],"W>":["Ŵ",372],"w>":["ŵ",373],"Y>":["Ŷ",374],"y>":["ŷ",375],"Y:":["Ÿ",376],"Z'":["Ź",377],"z'":["ź",378],"Z.":["Ż",379],"z.":["ż",380],"Z<":["Ž",381],"z<":["ž",382],fs:["ſ",383],O9:["Ơ",416],o9:["ơ",417],OI:["Ƣ",418],oi:["ƣ",419],yr:["Ʀ",422],U9:["Ư",431],u9:["ư",432],"Z/":["Ƶ",437],"z/":["ƶ",438],ED:["Ʒ",439],"A<":["Ǎ",461],"a<":["ǎ",462],"I<":["Ǐ",463],"i<":["ǐ",464],"O<":["Ǒ",465],"o<":["ǒ",466],"U<":["Ǔ",467],"u<":["ǔ",468],A1:["Ǟ",478],a1:["ǟ",479],A7:["Ǡ",480],a7:["ǡ",481],A3:["Ǣ",482],a3:["ǣ",483],"G/":["Ǥ",484],"g/":["ǥ",485],"G<":["Ǧ",486],"g<":["ǧ",487],"K<":["Ǩ",488],"k<":["ǩ",489],"O;":["Ǫ",490],"o;":["ǫ",491],O1:["Ǭ",492],o1:["ǭ",493],EZ:["Ǯ",494],ez:["ǯ",495],"j<":["ǰ",496],"G'":["Ǵ",500],"g'":["ǵ",501],";S":["ʿ",703],"'<":["ˇ",711],"'(":["˘",728],"'.":["˙",729],"'0":["˚",730],"';":["˛",731],"'\"":["˝",733],"A%":["Ά",902],"E%":["Έ",904],"Y%":["Ή",905],"I%":["Ί",906],"O%":["Ό",908],"U%":["Ύ",910],"W%":["Ώ",911],i3:["ΐ",912],"A*":["Α",913],"B*":["Β",914],"G*":["Γ",915],"D*":["Δ",916],"E*":["Ε",917],"Z*":["Ζ",918],"Y*":["Η",919],"H*":["Θ",920],"I*":["Ι",921],"K*":["Κ",922],"L*":["Λ",923],"M*":["Μ",924],"N*":["Ν",925],"C*":["Ξ",926],"O*":["Ο",927],"P*":["Π",928],"R*":["Ρ",929],"S*":["Σ",931],"T*":["Τ",932],"U*":["Υ",933],"F*":["Φ",934],"X*":["Χ",935],"Q*":["Ψ",936],"W*":["Ω",937],"J*":["Ϊ",938],"V*":["Ϋ",939],"a%":["ά",940],"e%":["έ",941],"y%":["ή",942],"i%":["ί",943],u3:["ΰ",944],"a*":["α",945],"b*":["β",946],"g*":["γ",947],"d*":["δ",948],"e*":["ε",949],"z*":["ζ",950],"y*":["η",951],"h*":["θ",952],"i*":["ι",953],"k*":["κ",954],"l*":["λ",955],"m*":["μ",956],"n*":["ν",957],"c*":["ξ",958],"o*":["ο",959],"p*":["π",960],"r*":["ρ",961],"*s":["ς",962],"s*":["σ",963],"t*":["τ",964],"u*":["υ",965],"f*":["φ",966],"x*":["χ",967],"q*":["ψ",968],"w*":["ω",969],"j*":["ϊ",970],"v*":["ϋ",971],"o%":["ό",972],"u%":["ύ",973],"w%":["ώ",974],"'G":["Ϙ",984],",G":["ϙ",985],T3:["Ϛ",986],t3:["ϛ",987],M3:["Ϝ",988],m3:["ϝ",989],K3:["Ϟ",990],k3:["ϟ",991],P3:["Ϡ",992],p3:["ϡ",993],"'%":["ϴ",1012],j3:["ϵ",1013],IO:["Ё",1025],"D%":["Ђ",1026],"G%":["Ѓ",1027],IE:["Є",1028],DS:["Ѕ",1029],II:["І",1030],YI:["Ї",1031],"J%":["Ј",1032],LJ:["Љ",1033],NJ:["Њ",1034],Ts:["Ћ",1035],KJ:["Ќ",1036],"V%":["Ў",1038],DZ:["Џ",1039],"A=":["А",1040],"B=":["Б",1041],"V=":["В",1042],"G=":["Г",1043],"D=":["Д",1044],"E=":["Е",1045],"Z%":["Ж",1046],"Z=":["З",1047],"I=":["И",1048],"J=":["Й",1049],"K=":["К",1050],"L=":["Л",1051],"M=":["М",1052],"N=":["Н",1053],"O=":["О",1054],"P=":["П",1055],"R=":["Р",1056],"S=":["С",1057],"T=":["Т",1058],"U=":["У",1059],"F=":["Ф",1060],"H=":["Х",1061],"C=":["Ц",1062],"C%":["Ч",1063],"S%":["Ш",1064],Sc:["Щ",1065],'="':["Ъ",1066],"Y=":["Ы",1067],'%"':["Ь",1068],JE:["Э",1069],JU:["Ю",1070],JA:["Я",1071],"a=":["а",1072],"b=":["б",1073],"v=":["в",1074],"g=":["г",1075],"d=":["д",1076],"e=":["е",1077],"z%":["ж",1078],"z=":["з",1079],"i=":["и",1080],"j=":["й",1081],"k=":["к",1082],"l=":["л",1083],"m=":["м",1084],"n=":["н",1085],"o=":["о",1086],"p=":["п",1087],"r=":["р",1088],"s=":["с",1089],"t=":["т",1090],"u=":["у",1091],"f=":["ф",1092],"h=":["х",1093],"c=":["ц",1094],"c%":["ч",1095],"s%":["ш",1096],sc:["щ",1097],"='":["ъ",1098],"y=":["ы",1099],"%'":["ь",1100],je:["э",1101],ju:["ю",1102],ja:["я",1103],io:["ё",1105],"d%":["ђ",1106],"g%":["ѓ",1107],ie:["є",1108],ds:["ѕ",1109],ii:["і",1110],yi:["ї",1111],"j%":["ј",1112],lj:["љ",1113],nj:["њ",1114],ts:["ћ",1115],kj:["ќ",1116],"v%":["ў",1118],dz:["џ",1119],Y3:["Ѣ",1122],y3:["ѣ",1123],O3:["Ѫ",1130],o3:["ѫ",1131],F3:["Ѳ",1138],f3:["ѳ",1139],V3:["Ѵ",1140],v3:["ѵ",1141],C3:["Ҁ",1152],c3:["ҁ",1153],G3:["Ґ",1168],g3:["ґ",1169],"A+":["א",1488],"B+":["ב",1489],"G+":["ג",1490],"D+":["ד",1491],"H+":["ה",1492],"W+":["ו",1493],"Z+":["ז",1494],"X+":["ח",1495],Tj:["ט",1496],"J+":["י",1497],"K%":["ך",1498],"K+":["כ",1499],"L+":["ל",1500],"M%":["ם",1501],"M+":["מ",1502],"N%":["ן",1503],"N+":["נ",1504],"S+":["ס",1505],"E+":["ע",1506],"P%":["ף",1507],"P+":["פ",1508],Zj:["ץ",1509],ZJ:["צ",1510],"Q+":["ק",1511],"R+":["ר",1512],Sh:["ש",1513],"T+":["ת",1514],",+":["،",1548],";+":["؛",1563],"?+":["؟",1567],"H'":["ء",1569],aM:["آ",1570],aH:["أ",1571],wH:["ؤ",1572],ah:["إ",1573],yH:["ئ",1574],"a+":["ا",1575],"b+":["ب",1576],tm:["ة",1577],"t+":["ت",1578],tk:["ث",1579],"g+":["ج",1580],hk:["ح",1581],"x+":["خ",1582],"d+":["د",1583],dk:["ذ",1584],"r+":["ر",1585],"z+":["ز",1586],"s+":["س",1587],sn:["ش",1588],"c+":["ص",1589],dd:["ض",1590],tj:["ط",1591],zH:["ظ",1592],"e+":["ع",1593],"i+":["غ",1594],"++":["ـ",1600],"f+":["ف",1601],"q+":["ق",1602],"k+":["ك",1603],"l+":["ل",1604],"m+":["م",1605],"n+":["ن",1606],"h+":["ه",1607],"w+":["و",1608],"j+":["ى",1609],"y+":["ي",1610],":+":["ً",1611],'"+':["ٌ",1612],"=+":["ٍ",1613],"/+":["َ",1614],"'+":["ُ",1615],"1+":["ِ",1616],"3+":["ّ",1617],"0+":["ْ",1618],aS:["ٰ",1648],"p+":["پ",1662],"v+":["ڤ",1700],gf:["گ",1711],"0a":["۰",1776],"1a":["۱",1777],"2a":["۲",1778],"3a":["۳",1779],"4a":["۴",1780],"5a":["۵",1781],"6a":["۶",1782],"7a":["۷",1783],"8a":["۸",1784],"9a":["۹",1785],"B.":["Ḃ",7682],"b.":["ḃ",7683],B_:["Ḇ",7686],b_:["ḇ",7687],"D.":["Ḋ",7690],"d.":["ḋ",7691],D_:["Ḏ",7694],d_:["ḏ",7695],"D,":["Ḑ",7696],"d,":["ḑ",7697],"F.":["Ḟ",7710],"f.":["ḟ",7711],"G-":["Ḡ",7712],"g-":["ḡ",7713],"H.":["Ḣ",7714],"h.":["ḣ",7715],"H:":["Ḧ",7718],"h:":["ḧ",7719],"H,":["Ḩ",7720],"h,":["ḩ",7721],"K'":["Ḱ",7728],"k'":["ḱ",7729],K_:["Ḵ",7732],k_:["ḵ",7733],L_:["Ḻ",7738],l_:["ḻ",7739],"M'":["Ḿ",7742],"m'":["ḿ",7743],"M.":["Ṁ",7744],"m.":["ṁ",7745],"N.":["Ṅ",7748],"n.":["ṅ",7749],N_:["Ṉ",7752],n_:["ṉ",7753],"P'":["Ṕ",7764],"p'":["ṕ",7765],"P.":["Ṗ",7766],"p.":["ṗ",7767],"R.":["Ṙ",7768],"r.":["ṙ",7769],R_:["Ṟ",7774],r_:["ṟ",7775],"S.":["Ṡ",7776],"s.":["ṡ",7777],"T.":["Ṫ",7786],"t.":["ṫ",7787],T_:["Ṯ",7790],t_:["ṯ",7791],"V?":["Ṽ",7804],"v?":["ṽ",7805],"W!":["Ẁ",7808],"w!":["ẁ",7809],"W'":["Ẃ",7810],"w'":["ẃ",7811],"W:":["Ẅ",7812],"w:":["ẅ",7813],"W.":["Ẇ",7814],"w.":["ẇ",7815],"X.":["Ẋ",7818],"x.":["ẋ",7819],"X:":["Ẍ",7820],"x:":["ẍ",7821],"Y.":["Ẏ",7822],"y.":["ẏ",7823],"Z>":["Ẑ",7824],"z>":["ẑ",7825],Z_:["Ẕ",7828],z_:["ẕ",7829],h_:["ẖ",7830],"t:":["ẗ",7831],w0:["ẘ",7832],y0:["ẙ",7833],A2:["Ả",7842],a2:["ả",7843],E2:["Ẻ",7866],e2:["ẻ",7867],"E?":["Ẽ",7868],"e?":["ẽ",7869],I2:["Ỉ",7880],i2:["ỉ",7881],O2:["Ỏ",7886],o2:["ỏ",7887],U2:["Ủ",7910],u2:["ủ",7911],"Y!":["Ỳ",7922],"y!":["ỳ",7923],Y2:["Ỷ",7926],y2:["ỷ",7927],"Y?":["Ỹ",7928],"y?":["ỹ",7929],";'":["ἀ",7936],",'":["ἁ",7937],";!":["ἂ",7938],",!":["ἃ",7939],"?;":["ἄ",7940],"?,":["ἅ",7941],"!:":["ἆ",7942],"?:":["ἇ",7943],"1N":[" ",8194],"1M":[" ",8195],"3M":[" ",8196],"4M":[" ",8197],"6M":[" ",8198],"1T":[" ",8201],"1H":[" ",8202],"-1":["‐",8208],"-N":["–",8211],"-M":["—",8212],"-3":["―",8213],"!2":["‖",8214],"=2":["‗",8215],"'6":["‘",8216],"'9":["’",8217],".9":["‚",8218],"9'":["‛",8219],'"6':["“",8220],'"9':["”",8221],":9":["„",8222],'9"':["‟",8223],"/-":["†",8224],"/=":["‡",8225],"..":["‥",8229],",.":["…",8230],"%0":["‰",8240],"1'":["′",8242],"2'":["″",8243],"3'":["‴",8244],'1"':["‵",8245],'2"':["‶",8246],'3"':["‷",8247],Ca:["‸",8248],"<1":["‹",8249],">1":["›",8250],":X":["※",8251],"'-":["‾",8254],"/f":["⁄",8260],"0S":["⁰",8304],"4S":["⁴",8308],"5S":["⁵",8309],"6S":["⁶",8310],"7S":["⁷",8311],"8S":["⁸",8312],"9S":["⁹",8313],"+S":["⁺",8314],"-S":["⁻",8315],"=S":["⁼",8316],"(S":["⁽",8317],")S":["⁾",8318],nS:["ⁿ",8319],"0s":["₀",8320],"1s":["₁",8321],"2s":["₂",8322],"3s":["₃",8323],"4s":["₄",8324],"5s":["₅",8325],"6s":["₆",8326],"7s":["₇",8327],"8s":["₈",8328],"9s":["₉",8329],"+s":["₊",8330],"-s":["₋",8331],"=s":["₌",8332],"(s":["₍",8333],")s":["₎",8334],Li:["₤",8356],Pt:["₧",8359],"W=":["₩",8361],"=e":["€",8364],Eu:["€",8364],"=R":["₽",8381],"=P":["₽",8381],oC:["℃",8451],co:["℅",8453],oF:["℉",8457],N0:["№",8470],PO:["℗",8471],Rx:["℞",8478],SM:["℠",8480],TM:["™",8482],Om:["Ω",8486],AO:["Å",8491],13:["⅓",8531],23:["⅔",8532],15:["⅕",8533],25:["⅖",8534],35:["⅗",8535],45:["⅘",8536],16:["⅙",8537],56:["⅚",8538],18:["⅛",8539],38:["⅜",8540],58:["⅝",8541],78:["⅞",8542],"1R":["Ⅰ",8544],"2R":["Ⅱ",8545],"3R":["Ⅲ",8546],"4R":["Ⅳ",8547],"5R":["Ⅴ",8548],"6R":["Ⅵ",8549],"7R":["Ⅶ",8550],"8R":["Ⅷ",8551],"9R":["Ⅸ",8552],aR:["Ⅹ",8553],bR:["Ⅺ",8554],cR:["Ⅻ",8555],"1r":["ⅰ",8560],"2r":["ⅱ",8561],"3r":["ⅲ",8562],"4r":["ⅳ",8563],"5r":["ⅴ",8564],"6r":["ⅵ",8565],"7r":["ⅶ",8566],"8r":["ⅷ",8567],"9r":["ⅸ",8568],ar:["ⅹ",8569],br:["ⅺ",8570],cr:["ⅻ",8571],"<-":["←",8592],"-!":["↑",8593],"->":["→",8594],"-v":["↓",8595],"<>":["↔",8596],UD:["↕",8597],"<=":["⇐",8656],"=>":["⇒",8658],"==":["⇔",8660],FA:["∀",8704],dP:["∂",8706],TE:["∃",8707],"/0":["∅",8709],DE:["∆",8710],NB:["∇",8711],"(-":["∈",8712],"-)":["∋",8715],"*P":["∏",8719],"+Z":["∑",8721],"-2":["−",8722],"-+":["∓",8723],"*-":["∗",8727],Ob:["∘",8728],Sb:["∙",8729],RT:["√",8730],"0(":["∝",8733],"00":["∞",8734],"-L":["∟",8735],"-V":["∠",8736],PP:["∥",8741],AN:["∧",8743],OR:["∨",8744],"(U":["∩",8745],")U":["∪",8746],In:["∫",8747],DI:["∬",8748],Io:["∮",8750],".:":["∴",8756],":.":["∵",8757],":R":["∶",8758],"::":["∷",8759],"?1":["∼",8764],CG:["∾",8766],"?-":["≃",8771],"?=":["≅",8773],"?2":["≈",8776],"=?":["≌",8780],HI:["≓",8787],"!=":["≠",8800],"=3":["≡",8801],"=<":["≤",8804],">=":["≥",8805],"<*":["≪",8810],"*>":["≫",8811],"!<":["≮",8814],"!>":["≯",8815],"(C":["⊂",8834],")C":["⊃",8835],"(_":["⊆",8838],")_":["⊇",8839],"0.":["⊙",8857],"02":["⊚",8858],"-T":["⊥",8869],".P":["⋅",8901],":3":["⋮",8942],".3":["⋯",8943],Eh:["⌂",8962],"<7":["⌈",8968],">7":["⌉",8969],"7<":["⌊",8970],"7>":["⌋",8971],NI:["⌐",8976],"(A":["⌒",8978],TR:["⌕",8981],Iu:["⌠",8992],Il:["⌡",8993],"":["〉",9002],Vs:["␣",9251],"1h":["⑀",9280],"3h":["⑁",9281],"2h":["⑂",9282],"4h":["⑃",9283],"1j":["⑆",9286],"2j":["⑇",9287],"3j":["⑈",9288],"4j":["⑉",9289],"1.":["⒈",9352],"2.":["⒉",9353],"3.":["⒊",9354],"4.":["⒋",9355],"5.":["⒌",9356],"6.":["⒍",9357],"7.":["⒎",9358],"8.":["⒏",9359],"9.":["⒐",9360],hh:["─",9472],HH:["━",9473],vv:["│",9474],VV:["┃",9475],"3-":["┄",9476],"3_":["┅",9477],"3!":["┆",9478],"3/":["┇",9479],"4-":["┈",9480],"4_":["┉",9481],"4!":["┊",9482],"4/":["┋",9483],dr:["┌",9484],dR:["┍",9485],Dr:["┎",9486],DR:["┏",9487],dl:["┐",9488],dL:["┑",9489],Dl:["┒",9490],LD:["┓",9491],ur:["└",9492],uR:["┕",9493],Ur:["┖",9494],UR:["┗",9495],ul:["┘",9496],uL:["┙",9497],Ul:["┚",9498],UL:["┛",9499],vr:["├",9500],vR:["┝",9501],Vr:["┠",9504],VR:["┣",9507],vl:["┤",9508],vL:["┥",9509],Vl:["┨",9512],VL:["┫",9515],dh:["┬",9516],dH:["┯",9519],Dh:["┰",9520],DH:["┳",9523],uh:["┴",9524],uH:["┷",9527],Uh:["┸",9528],UH:["┻",9531],vh:["┼",9532],vH:["┿",9535],Vh:["╂",9538],VH:["╋",9547],FD:["╱",9585],BD:["╲",9586],TB:["▀",9600],LB:["▄",9604],FB:["█",9608],lB:["▌",9612],RB:["▐",9616],".S":["░",9617],":S":["▒",9618],"?S":["▓",9619],fS:["■",9632],OS:["□",9633],RO:["▢",9634],Rr:["▣",9635],RF:["▤",9636],RY:["▥",9637],RH:["▦",9638],RZ:["▧",9639],RK:["▨",9640],RX:["▩",9641],sB:["▪",9642],SR:["▬",9644],Or:["▭",9645],UT:["▲",9650],uT:["△",9651],PR:["▶",9654],Tr:["▷",9655],Dt:["▼",9660],dT:["▽",9661],PL:["◀",9664],Tl:["◁",9665],Db:["◆",9670],Dw:["◇",9671],LZ:["◊",9674],"0m":["○",9675],"0o":["◎",9678],"0M":["●",9679],"0L":["◐",9680],"0R":["◑",9681],Sn:["◘",9688],Ic:["◙",9689],Fd:["◢",9698],Bd:["◣",9699],"*2":["★",9733],"*1":["☆",9734],"H":["☞",9758],"0u":["☺",9786],"0U":["☻",9787],SU:["☼",9788],Fm:["♀",9792],Ml:["♂",9794],cS:["♠",9824],cH:["♡",9825],cD:["♢",9826],cC:["♣",9827],Md:["♩",9833],M8:["♪",9834],M2:["♫",9835],Mb:["♭",9837],Mx:["♮",9838],MX:["♯",9839],OK:["✓",10003],XX:["✗",10007],"-X":["✠",10016],IS:[" ",12288],",_":["、",12289],"._":["。",12290],'+"':["〃",12291],"+_":["〄",12292],"*_":["々",12293],";_":["〆",12294],"0_":["〇",12295],"<+":["《",12298],">+":["》",12299],"<'":["「",12300],">'":["」",12301],'<"':["『",12302],'>"':["』",12303],'("':["【",12304],')"':["】",12305],"=T":["〒",12306],"=_":["〓",12307],"('":["〔",12308],")'":["〕",12309],"(I":["〖",12310],")I":["〗",12311],"-?":["〜",12316],A5:["ぁ",12353],a5:["あ",12354],I5:["ぃ",12355],i5:["い",12356],U5:["ぅ",12357],u5:["う",12358],E5:["ぇ",12359],e5:["え",12360],O5:["ぉ",12361],o5:["お",12362],ka:["か",12363],ga:["が",12364],ki:["き",12365],gi:["ぎ",12366],ku:["く",12367],gu:["ぐ",12368],ke:["け",12369],ge:["げ",12370],ko:["こ",12371],go:["ご",12372],sa:["さ",12373],za:["ざ",12374],si:["し",12375],zi:["じ",12376],su:["す",12377],zu:["ず",12378],se:["せ",12379],ze:["ぜ",12380],so:["そ",12381],zo:["ぞ",12382],ta:["た",12383],da:["だ",12384],ti:["ち",12385],di:["ぢ",12386],tU:["っ",12387],tu:["つ",12388],du:["づ",12389],te:["て",12390],de:["で",12391],to:["と",12392],do:["ど",12393],na:["な",12394],ni:["に",12395],nu:["ぬ",12396],ne:["ね",12397],no:["の",12398],ha:["は",12399],ba:["ば",12400],pa:["ぱ",12401],hi:["ひ",12402],bi:["び",12403],pi:["ぴ",12404],hu:["ふ",12405],bu:["ぶ",12406],pu:["ぷ",12407],he:["へ",12408],be:["べ",12409],pe:["ぺ",12410],ho:["ほ",12411],bo:["ぼ",12412],po:["ぽ",12413],ma:["ま",12414],mi:["み",12415],mu:["む",12416],me:["め",12417],mo:["も",12418],yA:["ゃ",12419],ya:["や",12420],yU:["ゅ",12421],yu:["ゆ",12422],yO:["ょ",12423],yo:["よ",12424],ra:["ら",12425],ri:["り",12426],ru:["る",12427],re:["れ",12428],ro:["ろ",12429],wA:["ゎ",12430],wa:["わ",12431],wi:["ゐ",12432],we:["ゑ",12433],wo:["を",12434],n5:["ん",12435],vu:["ゔ",12436],'"5':["゛",12443],"05":["゜",12444],"*5":["ゝ",12445],"+5":["ゞ",12446],a6:["ァ",12449],A6:["ア",12450],i6:["ィ",12451],I6:["イ",12452],u6:["ゥ",12453],U6:["ウ",12454],e6:["ェ",12455],E6:["エ",12456],o6:["ォ",12457],O6:["オ",12458],Ka:["カ",12459],Ga:["ガ",12460],Ki:["キ",12461],Gi:["ギ",12462],Ku:["ク",12463],Gu:["グ",12464],Ke:["ケ",12465],Ge:["ゲ",12466],Ko:["コ",12467],Go:["ゴ",12468],Sa:["サ",12469],Za:["ザ",12470],Si:["シ",12471],Zi:["ジ",12472],Su:["ス",12473],Zu:["ズ",12474],Se:["セ",12475],Ze:["ゼ",12476],So:["ソ",12477],Zo:["ゾ",12478],Ta:["タ",12479],Da:["ダ",12480],Ti:["チ",12481],Di:["ヂ",12482],TU:["ッ",12483],Tu:["ツ",12484],Du:["ヅ",12485],Te:["テ",12486],De:["デ",12487],To:["ト",12488],Do:["ド",12489],Na:["ナ",12490],Ni:["ニ",12491],Nu:["ヌ",12492],Ne:["ネ",12493],No:["ノ",12494],Ha:["ハ",12495],Ba:["バ",12496],Pa:["パ",12497],Hi:["ヒ",12498],Bi:["ビ",12499],Pi:["ピ",12500],Hu:["フ",12501],Bu:["ブ",12502],Pu:["プ",12503],He:["ヘ",12504],Be:["ベ",12505],Pe:["ペ",12506],Ho:["ホ",12507],Bo:["ボ",12508],Po:["ポ",12509],Ma:["マ",12510],Mi:["ミ",12511],Mu:["ム",12512],Me:["メ",12513],Mo:["モ",12514],YA:["ャ",12515],Ya:["ヤ",12516],YU:["ュ",12517],Yu:["ユ",12518],YO:["ョ",12519],Yo:["ヨ",12520],Ra:["ラ",12521],Ri:["リ",12522],Ru:["ル",12523],Re:["レ",12524],Ro:["ロ",12525],WA:["ヮ",12526],Wa:["ワ",12527],Wi:["ヰ",12528],We:["ヱ",12529],Wo:["ヲ",12530],N6:["ン",12531],Vu:["ヴ",12532],KA:["ヵ",12533],KE:["ヶ",12534],Va:["ヷ",12535],Vi:["ヸ",12536],Ve:["ヹ",12537],Vo:["ヺ",12538],".6":["・",12539],"-6":["ー",12540],"*6":["ヽ",12541],"+6":["ヾ",12542],b4:["ㄅ",12549],p4:["ㄆ",12550],m4:["ㄇ",12551],f4:["ㄈ",12552],d4:["ㄉ",12553],t4:["ㄊ",12554],n4:["ㄋ",12555],l4:["ㄌ",12556],g4:["ㄍ",12557],k4:["ㄎ",12558],h4:["ㄏ",12559],j4:["ㄐ",12560],q4:["ㄑ",12561],x4:["ㄒ",12562],zh:["ㄓ",12563],ch:["ㄔ",12564],sh:["ㄕ",12565],r4:["ㄖ",12566],z4:["ㄗ",12567],c4:["ㄘ",12568],s4:["ㄙ",12569],a4:["ㄚ",12570],o4:["ㄛ",12571],e4:["ㄜ",12572],ai:["ㄞ",12574],ei:["ㄟ",12575],au:["ㄠ",12576],ou:["ㄡ",12577],an:["ㄢ",12578],en:["ㄣ",12579],aN:["ㄤ",12580],eN:["ㄥ",12581],er:["ㄦ",12582],i4:["ㄧ",12583],u4:["ㄨ",12584],iu:["ㄩ",12585],v4:["ㄪ",12586],nG:["ㄫ",12587],gn:["ㄬ",12588],"1c":["㈠",12832],"2c":["㈡",12833],"3c":["㈢",12834],"4c":["㈣",12835],"5c":["㈤",12836],"6c":["㈥",12837],"7c":["㈦",12838],"8c":["㈧",12839],"9c":["㈨",12840],ff:["ff",64256],fi:["fi",64257],fl:["fl",64258],ft:["ſt",64261],st:["st",64262],"W`":["Ẁ",7808],"w`":["ẁ",7809],"Y`":["Ỳ",7922],"y`":["ỳ",7923]}},4008:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertCharBelow=t.InsertCharAbove=t.CommandInsertInInsertMode=t.CommandBackspaceInInsertMode=t.CommandInsertPreviousText=t.CommandEscInsertMode=void 0;const i=r(9496),o=r(4490),s=r(1149),a=r(4880),c=r(7536),u=r(4379),l=r(7125),d=r(1797),h=r(785),f=r(6206),p=r(9066),g=r(9470),m=r(9220),v=r(3259);let y=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[[""],[""],[""]]}runsOnceForEveryCursor(){return!1}async exec(e,t){i.commands.executeCommand("closeParameterHints"),t.cursors=t.cursors.map((e=>e.withNewStop(e.stop.getLeft()))),t.returnToInsertAfterCommand&&0!==e.character&&(t.cursors=t.cursors.map((e=>e.withNewStop(e.stop.getRight()))));const r=t.recordedState.actionsRun[t.recordedState.actionsRun.length-2];if("plaintext"!==t.document.languageId&&(r instanceof p.CommandInsertNewLineBefore||r instanceof p.CommandInsertNewLineAbove||r instanceof p.DocumentContentChangeAction&&"\n"===r.keysPressed[r.keysPressed.length-1]))for(const e of t.cursors)/^\s+$/.test(t.document.lineAt(e.stop).text)&&t.recordedState.transformer.delete(new i.Range(e.stop.getLineBegin(),e.stop.getLineEnd()));if(await t.setCurrentMode(u.Mode.Normal),t.recordedState.count>1&&void 0!==t.recordedState.actionsRun.find((e=>e instanceof p.CommandInsertAtCursor||e instanceof p.CommandInsertAfterCursor||e instanceof p.CommandInsertAtLineBegin||e instanceof p.CommandInsertAtLineEnd||e instanceof p.CommandInsertAtFirstCharacter||e instanceof p.CommandInsertAtLastChange))){const e=t.recordedState.actionsRun.slice().reverse().find((e=>e instanceof p.DocumentContentChangeAction));if(e instanceof p.DocumentContentChangeAction)for(let r=0;r0&&(t.historyTracker.lastContentChanges=t.historyTracker.currentContentChanges,t.historyTracker.currentContentChanges=[]),t.isFakeMultiCursor&&(t.cursors=[t.cursors[0]],t.isFakeMultiCursor=!1)}};y=n([h.RegisterAction],y),t.CommandEscInsertMode=y;let w=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){var r;const n=await l.Register.get(".");if(!(void 0!==n&&n.text instanceof s.RecordedState&&n.text.actionsRun))throw v.VimError.fromCode(v.ErrorCode.NoInsertedTextYet);const i=n.text.clone();i.actionsRun.shift(),i.actionsRun.pop(),(null===(r=i.actionsRun)||void 0===r?void 0:r[0])instanceof f.ArrowsInInsertMode&&i.actionsRun.shift(),t.recordedState.transformer.addTransformation({type:"replayRecordedState",recordedState:i})}};w=n([h.RegisterAction],w),t.CommandInsertPreviousText=w;let b=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){await(new w).exec(e,t),await t.setCurrentMode(u.Mode.Normal)}};b=n([h.RegisterAction],b);let S=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){const r=t.document.lineAt(e).text,n=d.TextEditor.getIndentationLevel(r),o=c.configuration.tabstop||Number(t.editor.options.tabSize),s=(Math.floor(n/o)+1)*o;t.recordedState.transformer.replace(new i.Range(e.getLineBegin(),e.with({character:n})),d.TextEditor.setIndentationLevel(r,s).match(/^(\s*)/)[1])}};S=n([h.RegisterAction],S);let x=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){const r=t.document.lineAt(e).text,n=d.TextEditor.getIndentationLevel(r),o=c.configuration.tabstop||Number(t.editor.options.tabSize),s=(Math.floor(n/o)-1)*o;t.recordedState.transformer.replace(new i.Range(e.getLineBegin(),e.with({character:n})),d.TextEditor.setIndentationLevel(r,s).match(/^(\s*)/)[1])}};x=n([h.RegisterAction],x);let M=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[[""],[""]]}runsOnceForEveryCursor(){return!1}async exec(e,t){t.recordedState.transformer.addTransformation({type:"deleteLeft"})}};M=n([h.RegisterAction],M),t.CommandBackspaceInInsertMode=M;let C=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){t.recordedState.transformer.addTransformation({type:"deleteRight"})}};C=n([h.RegisterAction],C);let _=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){const r=this.keysPressed[this.keysPressed.length-1];t.recordedState.transformer.addTransformation({type:"insertTextVSCode",text:r,isMultiCursor:t.isMultiCursor})}toString(){return this.keysPressed[this.keysPressed.length-1]}};_=n([h.RegisterAction],_),t.CommandInsertInInsertMode=_;let E=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=["","",""],this.isCompleteAction=!1}async exec(e,t){const r=this.keysPressed.slice(1,3).join(""),n=r.split("").reverse().join("");let i=(g.DefaultDigraphs[r]||g.DefaultDigraphs[n]||c.configuration.digraphs[r]||c.configuration.digraphs[n])[1];i instanceof Array||(i=[i]);const o=String.fromCharCode(...i);t.recordedState.transformer.insert(e,o)}doesActionApply(e,t){if(!super.doesActionApply(e,t))return!1;const r=t.slice(1,3).join(""),n=r.split("").reverse().join("");return r in c.configuration.digraphs||n in c.configuration.digraphs||r in g.DefaultDigraphs||n in g.DefaultDigraphs}couldActionApply(e,t){if(!super.couldActionApply(e,t))return!1;const r=t.slice(1,t.length).join(""),n=r.split("").reverse().join("");if(r.length>0){const e=e=>{const t=e.substring(0,r.length);return r===t||n===t};return void 0!==(Object.keys(c.configuration.digraphs).find(e)||Object.keys(g.DefaultDigraphs).find(e))}return!0}};E=n([h.RegisterAction],E);let R=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=["",""],this.isCompleteAction=!1}async exec(e,t){if(!l.Register.isValidRegister(this.keysPressed[1]))return;const r=await l.Register.get(this.keysPressed[1],this.multicursorIndex);if(void 0===r)return void m.StatusBar.displayError(t,v.VimError.fromCode(v.ErrorCode.NothingInRegister,this.keysPressed[1]));if(r.text instanceof s.RecordedState)return void t.recordedState.transformer.addTransformation({type:"macro",register:t.recordedState.registerName,replay:"keystrokes"});let n=r.text;r.registerMode!==l.RegisterMode.LineWise||t.isMultiCursor||(n+="\n"),t.recordedState.transformer.insert(e,n)}};R=n([h.RegisterAction],R);let k=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){t.returnToInsertAfterCommand=!0,t.actionCount=0,await(new y).exec(e,t)}};k=n([h.RegisterAction],k);let P=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){if(e.isAtDocumentBegin())return;let r;r=e.isInLeadingWhitespace(t.document)?e.getLineBegin():e.isLineBeginning()?e.getUp().getLineEnd():e.prevWordStart(t.document),t.recordedState.transformer.delete(new i.Range(r,e)),t.cursorStopPosition=r}};P=n([h.RegisterAction],P);let A=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){if(0===e.line)return;const r=e.getUp();if(r.isLineEnd())return;const n=t.document.getText(new i.Range(r,r.getRight()));t.recordedState.transformer.insert(e,n)}};A=n([h.RegisterAction],A),t.InsertCharAbove=A;let T=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){if(e.line>=t.document.lineCount-1)return;const r=e.getDown();if(r.isLineEnd())return;const n=t.document.getText(new i.Range(r,r.getRight()));t.recordedState.transformer.insert(e,n)}};T=n([h.RegisterAction],T),t.InsertCharBelow=T;let L=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){let r;r=0===e.character?e.getLeftThroughLineBreaks(!0):e.isInLeadingWhitespace(t.document)?e.getLineBegin():e.getLineBeginRespectingIndent(t.document),t.recordedState.transformer.delete(new i.Range(r,e)),t.cursorStopPosition=r,t.cursorStartPosition=r}};L=n([h.RegisterAction],L);let O=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[[""],[""]]}runsOnceForEveryCursor(){return!1}async exec(e,t){await i.commands.executeCommand("selectNextSuggestion")}};O=n([h.RegisterAction],O);let $=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}runsOnceForEveryCursor(){return!1}async exec(e,t){await i.commands.executeCommand("selectPrevSuggestion")}};$=n([h.RegisterAction],$);let B=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){const r=await l.Register.get("*",this.multicursorIndex),n=(null==r?void 0:r.text)instanceof s.RecordedState||null==r?void 0:r.text;n&&t.recordedState.transformer.insert(t.cursorStopPosition,n)}};B=n([h.RegisterAction],B);let I=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=["",""]}runsOnceForEveryCursor(){return!1}async exec(e,t){await o.lineCompletionProvider.showLineCompletionsQuickPick(e,t)}};I=n([h.RegisterAction],I);let N=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[[""],[""]]}async exec(e,t){t.recordedState.transformer.addTransformation({type:"insertText",text:"\n",position:e,diff:a.PositionDiff.offset({character:-1})})}};N=n([h.RegisterAction],N);let j=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=[""]}async exec(e,t){await(new p.CommandReplaceAtCursorFromNormalMode).exec(e,t)}};j=n([h.RegisterAction],j);let D=class extends h.BaseCommand{constructor(){super(...arguments),this.modes=[u.Mode.Insert],this.keys=["","u"]}async exec(e,t){t.historyTracker.addChange(!0),t.historyTracker.finishCurrentStep()}};D=n([h.RegisterAction],D)},4944:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.PutBeforeFromCmdLine=t.PutFromCmdLine=void 0;const i=r(9496),o=r(9496),s=r(4880),a=r(7536),c=r(4379),u=r(7125),l=r(1149),d=r(1797),h=r(8965),f=r(785),p=r(9220),g=r(3259);function m(e){var t,r;return null!==(r=null===(t=e.match(/\S/))||void 0===t?void 0:t.index)&&void 0!==r?r:0}class v extends f.BaseCommand{constructor(){super(...arguments),this.modes=[c.Mode.Normal,c.Mode.Visual,c.Mode.VisualLine,c.Mode.VisualBlock],this.createsUndoPoint=!0}async exec(e,t){const r=await u.Register.get(t.recordedState.registerName,this.multicursorIndex);if(void 0===r)return void p.StatusBar.displayError(t,g.VimError.fromCode(g.ErrorCode.NothingInRegister,t.recordedState.registerName));const n=t.recordedState.count||1,i=t.currentMode===c.Mode.CommandlineInProgress?c.Mode.Normal:t.currentMode,o=this.getRegisterMode(r),l=this.getReplaceRange(i,t.cursors[0],o);let d=this.getRegisterText(i,r,n);if(this.shouldAdjustIndent(i,o)){let r;if(i===c.Mode.VisualLine){const[e,n]=(0,s.sorted)(t.cursorStartPosition,t.cursorStopPosition);n.line0&&(r=e.line-1)}else r=e.line;d=this.adjustIndent(void 0!==r?t.document.lineAt(r).text:"",d)}const f=this.getCursorPosition(t.document,i,l,o,n,d);for(let e=0;ee.keysPressed.join(""))).join("").repeat(r);if(t.registerMode===u.RegisterMode.CharacterWise)return e===c.Mode.VisualLine?Array(r).fill(t.text).join("\n"):t.text.repeat(r);if(t.registerMode===u.RegisterMode.LineWise||e===c.Mode.VisualLine)return Array(r).fill(t.text).join("\n");if(t.registerMode===u.RegisterMode.BlockWise)return t.text.split("\n").map((e=>e.repeat(r))).join("\n");throw new Error(`Unexpected RegisterMode ${t.registerMode}`)}adjustIndent(e,t){const r=t.split("\n"),n=d.TextEditor.getIndentationLevel(e),i=d.TextEditor.getIndentationLevel(r[0]);return r.map((e=>{const t=d.TextEditor.getIndentationLevel(e)-i+n;return d.TextEditor.setIndentationLevel(e,t)})).join("\n")}getTransformations(e,t,r,n,s){var a;if(n===u.RegisterMode.BlockWise&&t!==c.Mode.VisualLine){const n=[],o=s.split("\n"),u=Math.max(o.length,r.end.line-r.start.line+1);let l=0;for(let s=0;sr.end.line){const e=r.start.with({line:r.start.line+s});d=new i.Range(e,e)}else d=new i.Range(r.start.with({line:r.start.line+s}),r.end.with({line:r.start.line+s}));else if(s>0){const e=r.start.with({line:r.start.line+s+l});d=new i.Range(e,e)}else d=new i.Range(r.start,r.end),l=e.getText(d).split("\n").length-1;const h=r.start.line+s;if(h>e.lineCount-1)n.push({type:"replaceText",range:d,text:"\n"+" ".repeat(r.start.character)+u});else{const t=Math.max(r.start.character-e.lineAt(h).text.length,0);n.push({type:"replaceText",range:d,text:" ".repeat(t)+u})}}return n}if(t===c.Mode.Normal||t===c.Mode.Visual||t===c.Mode.VisualLine)return[{type:"replaceText",range:r,text:s}];if(t===c.Mode.VisualBlock){const e=[];if(n===u.RegisterMode.CharacterWise)for(let t=r.start.line;t<=r.end.line;t++){const n=new i.Range(new o.Position(t,r.start.character),new o.Position(t,r.end.character)),a=s.includes("\n")&&t!==r.start.line?"":s;e.push({type:"replaceText",range:n,text:a})}else{if(n!==u.RegisterMode.LineWise)throw new Error(`Unexpected RegisterMode ${n}`);{for(let t=r.start.line;t<=r.end.line;t++){const n=new i.Range(new o.Position(t,r.start.character),new o.Position(t,r.end.character));e.push({type:"replaceText",range:n,text:""})}const t=this.putBefore()?new o.Position(r.start.line,0):new o.Position(r.end.line,0).getLineEnd();e.push({type:"replaceText",range:new i.Range(t,t),text:s})}}return e}throw new Error(`Unexpected Mode ${t}`)}}let y=class extends v{constructor(){super(...arguments),this.keys=["p"]}putBefore(){return!1}getRegisterMode(e){return e.registerMode}getReplaceRange(e,t,r){if(e===c.Mode.Normal){let e;if(r===u.RegisterMode.CharacterWise||r===u.RegisterMode.BlockWise)e=t.stop.getRight();else{if(r!==u.RegisterMode.LineWise)throw new Error(`Unexpected RegisterMode ${r}`);e=t.stop.getLineEnd()}return new i.Range(e,e)}if(e===c.Mode.Visual){const[e,r]=(0,s.sorted)(t.start,t.stop);return new i.Range(e,r.getRight())}if(e===c.Mode.VisualLine){const[e,r]=(0,s.sorted)(t.start,t.stop);return new i.Range(e.getLineBegin(),r.getLineEnd())}{const[e,r]=(0,s.sorted)(t.start,t.stop);return new i.Range(e,r.getRight())}}adjustLinewiseRegisterText(e,t){return e===c.Mode.Normal||e===c.Mode.VisualBlock?"\n"+t:e===c.Mode.Visual?"\n"+t+"\n":t}shouldAdjustIndent(e,t){return!1}getCursorPosition(e,t,r,n,i,s){const a=r.start;if(t===c.Mode.Normal||t===c.Mode.Visual){if(n===u.RegisterMode.CharacterWise)return s.includes("\n")?a:a.advancePositionByText(s).getLeft();if(n===u.RegisterMode.LineWise)return new o.Position(a.line+1,m(s));if(n===u.RegisterMode.BlockWise)return a;throw new Error(`Unexpected RegisterMode ${n}`)}if(t===c.Mode.VisualLine)return a.with({character:m(s)});if(t===c.Mode.VisualBlock)return n===u.RegisterMode.LineWise?new o.Position(r.end.line+1,m(s)):n===u.RegisterMode.BlockWise?a:a.with({character:a.character+s.length-1});throw new Error(`Unexpected Mode ${t}`)}};y=n([f.RegisterAction],y);let w=class extends y{constructor(){super(...arguments),this.keys=["P"]}putBefore(){return!0}adjustLinewiseRegisterText(e,t){return e===c.Mode.Normal||e===c.Mode.VisualBlock?t+"\n":super.adjustLinewiseRegisterText(e,t)}getReplaceRange(e,t,r){if(e===c.Mode.Normal){if(r===u.RegisterMode.CharacterWise||r===u.RegisterMode.BlockWise){const e=t.stop;return new i.Range(e,e)}if(r===u.RegisterMode.LineWise){const e=t.stop.getLineBegin();return new i.Range(e,e)}}return super.getReplaceRange(e,t,r)}getCursorPosition(e,t,r,n,i,o){const s=r.start;return t!==c.Mode.Normal&&t!==c.Mode.VisualBlock||n!==u.RegisterMode.LineWise?super.getCursorPosition(e,t,r,n,i,o):s.with({character:m(o)})}};function b(e){return class extends e{getCursorPosition(e,t,r,n,i,s){const a=r.start;if(t===c.Mode.Normal||t===c.Mode.Visual){if(n===u.RegisterMode.CharacterWise)return s.includes("\n")&&(s=s.slice(0,s.length/i)),a.advancePositionByText(s);if(n===u.RegisterMode.LineWise){let r=a.line+s.split("\n").length;return(t===c.Mode.Visual||!this.putBefore()&&a.line=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(9496),o=r(4880),s=r(4379),a=r(8785),c=r(785);let u=class extends c.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Replace],this.keys=[[""],[""],[""]]}async exec(e,t){const r=t.replaceState;if(r.timesToRepeat>1){const n=r.newChars.join("").repeat(r.timesToRepeat-1);t.recordedState.transformer.replace(new i.Range(e,e.getRight(n.length)),n)}else t.cursorStopPosition=t.cursorStopPosition.getLeft();await t.setCurrentMode(s.Mode.Normal)}};u=n([c.RegisterAction],u);let l=class extends c.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Replace],this.keys=[""]}async exec(e,t){await t.setCurrentMode(s.Mode.Insert)}};l=n([c.RegisterAction],l);let d=class extends c.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Replace],this.keys=[[""],[""],[""],[""]]}async exec(e,t){const r=t.replaceState;if(e.isBeforeOrEqual(r.replaceCursorStartPosition)){const n=e.getLeftThroughLineBreaks();n.liner.replaceCursorStartPosition.line||e.character>r.originalChars.length?(t.recordedState.transformer.addTransformation({type:"deleteRange",range:new i.Range(e.getLeftThroughLineBreaks(),e)}),r.newChars.pop()):(t.recordedState.transformer.addTransformation({type:"replaceText",text:r.originalChars[e.character-1],range:new i.Range(e.getLeft(),e),diff:o.PositionDiff.offset({character:-1})}),r.newChars.pop())}};d=n([c.RegisterAction],d);let h=class extends c.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Replace],this.keys=[""],this.createsUndoPoint=!0}async exec(e,t){const r=this.keysPressed[0],n=t.replaceState,s="\n"===r||""===r;e.isLineEnd()||s?""===r?(t.recordedState.transformer.delete(new i.Range(e,e.getRight())),t.recordedState.transformer.addTransformation({type:"tab",cursorIndex:this.multicursorIndex})):t.recordedState.transformer.insert(e,r):t.recordedState.transformer.addTransformation({type:"replaceText",text:r,range:new i.Range(e,e.getRight()),diff:o.PositionDiff.offset({character:1})}),n.newChars.push(r)}};h=n([c.RegisterAction],h);let f=class extends c.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Replace],this.keys=["","u"]}async exec(e,t){t.historyTracker.addChange(!0),t.historyTracker.finishCurrentStep()}};f=n([c.RegisterAction],f)},3582:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(6486),o=r(6486),s=r(9496),a=r(7541),c=r(4880),u=r(7536),l=r(3259),d=r(4379),h=r(7125),f=r(9909),p=r(8186),g=r(9220),m=r(1797),v=r(3838),y=r(8965),w=r(5571),b=r(785),S=r(3193);async function x(e,t,r,n){let o=m.TextEditor.getWord(t.document,e);if(o){(/\W/.test(o[0])||/\W/.test(o[o.length-1]))&&(n=!1),n&&(o=i.escapeRegExp(o));const e=r===w.SearchDirection.Backward?t.cursorStopPosition.prevWordStart(t.document,{inclusive:!0}):t.cursorStopPosition;await C({needle:o,vimState:t,direction:r,isExact:n,searchStartCursorPosition:e})}else g.StatusBar.displayError(t,l.VimError.fromCode(l.ErrorCode.NoStringUnderCursor))}async function M(e,t){const r=e.document.getText(e.editor.selection);await e.setCurrentMode(d.Mode.Normal);const[n,i]=(0,c.sorted)(e.cursorStartPosition,e.cursorStopPosition),o=t===w.SearchDirection.Backward?n.getLeft():i.getRight();await C({needle:r,vimState:e,direction:t,isExact:!1,searchStartCursorPosition:o})}async function C(e){const{needle:t,vimState:r,isExact:n}=e;if(0===t.length)return;const i=n?`\\<${(0,o.escapeRegExp)(t)}\\>`:(0,o.escapeRegExp)(t);f.globalState.searchState=new p.SearchState(e.direction,r.cursorStopPosition,i,{ignoreSmartcase:!0}),h.Register.setReadonlyRegister("/",f.globalState.searchState.searchString),a.SearchCommandLine.addSearchStateToHistory(f.globalState.searchState),f.globalState.hl=!0;const s=f.globalState.searchState.getNextSearchMatchPosition(r,e.searchStartCursorPosition);s?(r.cursorStopPosition=s.pos,(0,y.reportSearch)(s.index,f.globalState.searchState.getMatchRanges(r).length,r)):g.StatusBar.displayError(r,l.VimError.fromCode(e.direction===w.SearchDirection.Forward?l.ErrorCode.SearchHitBottom:l.ErrorCode.SearchHitTop,f.globalState.searchState.searchString))}let _=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine],this.keys=["*"],this.isMotion=!0,this.runsOnceForEachCountPrefix=!0,this.isJump=!0}async exec(e,t){(0,d.isVisualMode)(t.currentMode)&&u.configuration.visualstar?await M(t,w.SearchDirection.Forward):await x(e,t,w.SearchDirection.Forward,!0)}};_=n([b.RegisterAction],_);let E=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine],this.keys=["g","*"],this.isMotion=!0,this.runsOnceForEachCountPrefix=!0,this.isJump=!0}async exec(e,t){await x(e,t,w.SearchDirection.Forward,!1)}};E=n([b.RegisterAction],E);let R=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine],this.keys=["#"],this.isMotion=!0,this.runsOnceForEachCountPrefix=!0,this.isJump=!0}async exec(e,t){(0,d.isVisualMode)(t.currentMode)&&u.configuration.visualstar?await M(t,w.SearchDirection.Backward):await x(e,t,w.SearchDirection.Backward,!0)}};R=n([b.RegisterAction],R);let k=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine],this.keys=["g","#"],this.isMotion=!0,this.runsOnceForEachCountPrefix=!0,this.isJump=!0}async exec(e,t){await x(e,t,w.SearchDirection.Backward,!1)}};k=n([b.RegisterAction],k);let P=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine,d.Mode.VisualBlock],this.keys=["/"],this.isMotion=!0,this.isJump=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){t.commandLine=new a.SearchCommandLine(t,"",w.SearchDirection.Forward),await t.setCurrentMode(d.Mode.SearchInProgressMode),f.globalState.searchState=t.commandLine.getSearchState()}};P=n([b.RegisterAction],P);let A=class extends b.BaseCommand{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualLine,d.Mode.VisualBlock],this.keys=["?"],this.isMotion=!0,this.isJump=!0}runsOnceForEveryCursor(){return!1}async exec(e,t){t.commandLine=new a.SearchCommandLine(t,"",w.SearchDirection.Backward),await t.setCurrentMode(d.Mode.SearchInProgressMode),f.globalState.searchState=t.commandLine.getSearchState()}};A=n([b.RegisterAction],A);class T extends v.TextObject{constructor(){super(...arguments),this.modes=[d.Mode.Normal,d.Mode.Visual,d.Mode.VisualBlock]}async execAction(e,t){const r=f.globalState.searchState;if(!r||""===r.searchString)return(0,S.failedMovement)(t);const n=new p.SearchState(this.direction,t.cursorStopPosition,r.searchString,{});let i=n.findContainingMatchRange(t,t.cursorStopPosition);if(i&&t.currentMode===d.Mode.Visual&&t.cursorStopPosition.isEqual(i.range.end.getLeftThroughLineBreaks())&&(i=void 0),void 0===i&&(i=n.getNextSearchMatchRange(t,t.cursorStopPosition),void 0===i))return(0,S.failedMovement)(t);(0,y.reportSearch)(i.index,r.getMatchRanges(t).length,t);const[o,a]=[t.currentMode===d.Mode.Normal?i.range.start:t.cursorStopPosition,i.range.end.getLeftThroughLineBreaks()];return t.cursorStartPosition=o,t.cursorStopPosition=a,t.editor.selection=new s.Selection(o,a),await t.setCurrentMode(d.Mode.Visual),{start:o,stop:a}}async execActionForOperator(e,t){return this.execAction(e,t)}}let L=class extends T{constructor(){super(...arguments),this.keys=["g","n"],this.direction=w.SearchDirection.Forward}};L=n([b.RegisterAction],L);let O=class extends T{constructor(){super(...arguments),this.keys=["g","N"],this.direction=w.SearchDirection.Backward}};O=n([b.RegisterAction],O)},2460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(785),r(3176),r(6206),r(3838),r(4008),r(5961),r(9066),r(3746),r(3582),r(4944),r(9470)},7170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(7037),r(6953),r(9998),r(7243),r(4211),r(3399)},9108:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.PythonDocument=void 0;const i=r(785),o=r(3193),s=r(9496);let a=!0;try{new RegExp("(?<=x)")}catch{a=!1}class c{constructor(e){this._document=e;const t=c._parseLines(e);this.structure=c._parseStructure(t)}static*lines(e){for(let t=0;tthis._parseLine(t,e))).filter((e=>e))}static _parseStructure(e){const t=e.length,r=[];for(let n=0;nt.type===e)).filter((e=>e[r][i](n)));if("end"===r&&o.sort(((e,t)=>e.end.line-t.end.line)),o.length)return o["next"===t?0:o.length-1][r]}static moveClassBoundary(e,t,r,n,i){var s;const a=n?"next":"prev",u=i?"start":"end";return null!==(s=new c(e).find("class",a,u,t))&&void 0!==s?s:(0,o.failedMovement)(r)}}t.PythonDocument=c,c.reOnlyWhitespace=/\S/,c.reLastNonWhiteSpaceCharacter=a?new RegExp("(?<=\\S)\\s*$"):/(\S)\s*$/,c.reDefOrClass=/^\s*(def|class) /;class u extends o.BaseMovement{doesActionApply(e,t){return super.doesActionApply(e,t)&&"python"===e.document.languageId}async execAction(e,t){var r;const n=t.document;return null!==(r=new c(n).find(this.type,this.direction,this.edge,e))&&void 0!==r?r:(0,o.failedMovement)(t)}}let l=class extends u{constructor(){super(...arguments),this.keys=["]","m"],this.type="function",this.direction="next",this.edge="start"}};l=n([i.RegisterAction],l);let d=class extends u{constructor(){super(...arguments),this.keys=["[","m"],this.type="function",this.direction="prev",this.edge="start"}};d=n([i.RegisterAction],d);let h=class extends u{constructor(){super(...arguments),this.keys=["]","M"],this.type="function",this.direction="next",this.edge="end"}};h=n([i.RegisterAction],h);let f=class extends u{constructor(){super(...arguments),this.keys=["[","M"],this.type="function",this.direction="prev",this.edge="end"}};f=n([i.RegisterAction],f)},6206:function(e,t,r){"use strict";var n,i,o,s,a,c=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.MoveAroundTag=t.MoveInsideTag=t.MoveAroundBacktick=t.MoveAroundDoubleQuotes=t.MoveAroundSingleQuotes=t.MoveQuoteMatch=t.MoveAroundSquareBracket=t.MoveAroundCaret=t.MoveAroundCurlyBrace=t.MoveAroundParentheses=t.MoveInsideCharacter=t.MoveFullWordBegin=t.MoveWordBegin=t.ArrowsInInsertMode=t.ExpandingSelection=void 0;const u=r(9496),l=r(3176),d=r(1797),h=r(4379),f=r(7497),p=r(3672),g=r(785),m=r(7125),v=r(8785),y=r(2041),w=r(7536),b=r(641),S=r(3259),x=r(3193),M=r(9909),C=r(8965),_=r(7243),E=r(4627),R=r(9220),k=r(3434),P=r(7092),A=r(9108),T=r(9496),L=r(4880),O=r(8019),$=r(9066),B=r(5571);class I extends x.BaseMovement{constructor(){super(...arguments),this.selectionType=x.SelectionType.Expanding}adjustPosition(e,t,r){return r||(e=t.stop),e}}t.ExpandingSelection=I;class N extends x.BaseMovement{constructor(){super(...arguments),this.modes=[h.Mode.Normal,h.Mode.Visual,h.Mode.VisualLine,h.Mode.VisualBlock],this.value=1}async execAction(e,t){return this.execActionWithCount(e,t,1)}async execActionWithCount(e,t,r){var n;const i=null!==(n=this.multicursorIndex)&&void 0!==n?n:0;if(0===i){if(t.currentMode===h.Mode.Visual){const e=t.editor.selections;e.forEach(((e,r)=>{if(e.active.isAfter(e.anchor)){const n=e.active.getLeftThroughLineBreaks();t.editor.selections[r]=new u.Selection(e.anchor,n)}})),t.editor.selections=e}await u.commands.executeCommand("cursorMove",{to:this.movementType,select:t.currentMode!==h.Mode.Normal,by:this.by,value:this.value*r})}if(!t.editor.selections[i])return{start:t.cursorStartPosition,stop:t.cursorStopPosition,removed:!0};if(t.currentMode===h.Mode.Normal)return t.editor.selections[i].active;{let e=t.editor.selections[i].anchor;const r=t.editor.selections[i].active;return(e.isAfter(r)&&t.cursorStartPosition.isAfter(t.cursorStopPosition)||t.cursorStartPosition.isAfter(t.cursorStopPosition)&&e.isBeforeOrEqual(r))&&(e=e.getLeft()),{start:e,stop:r}}}async execActionForOperator(e,t){var r;const n=null!==(r=this.multicursorIndex)&&void 0!==r?r:0;return 0===n&&await u.commands.executeCommand("cursorMove",{to:this.movementType,select:!0,by:this.by,value:this.value}),t.editor.selections[n]?{start:t.editor.selections[n].start,stop:t.editor.selections[n].end}:{start:t.cursorStartPosition,stop:t.cursorStopPosition,removed:!0}}}class j extends N{constructor(){super(...arguments),this.keys=[],this.movementType="up",this.by="wrappedLine",this.value=1}}class D extends N{constructor(){super(...arguments),this.keys=[],this.movementType="down",this.by="wrappedLine",this.value=1}}class F extends N{constructor(){super(...arguments),this.preservesDesiredColumn=!0}async execAction(e,t){const r=t.desiredColumn,n=t.editor.selection.active.line;if(t.currentMode!==h.Mode.Normal){const r=t.editor.selection.start;("down"===this.movementType&&e.line>r.line||"up"===this.movementType&&e.line=t.document.lineCount-1)return e;let r=e,n=e.line,i=e.character;const o=t.desiredColumn,s=new D;do{r=await s.execAction(r,t),r=r instanceof T.Position?r:r.stop;const e=n!==r.line,o=i!==r.character;if(e||!o)break;i=r.character,n=r.line}while(r.line===e.line);return r.character!==o&&(r=new T.Position(r.line,o)),r}}let W=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["j"],[""],[""],[""]],this.preservesDesiredColumn=!0}async execAction(e,t){return t.currentMode===h.Mode.Insert&&""===this.keysPressed[0]&&"vscode-interactive-input"===t.editor.document.uri.scheme&&e.line===t.document.lineCount-1&&t.editor.selection.isEmpty?(await u.commands.executeCommand("interactive.history.next"),t.editor.selection.active):w.configuration.foldfix&&t.currentMode!==h.Mode.VisualBlock?(new V).execAction(e,t):e.line"],[""]],this.preservesDesiredColumn=!0}async execAction(e,t){return t.currentMode===h.Mode.Insert&&""===this.keysPressed[0]&&"vscode-interactive-input"===t.editor.document.uri.scheme&&0===e.line&&t.editor.selection.isEmpty?(await u.commands.executeCommand("interactive.history.previous"),t.editor.selection.active):w.configuration.foldfix&&t.currentMode!==h.Mode.VisualBlock?(new q).execAction(e,t):e.line>0?e.with({character:t.desiredColumn}).getUp():e}async execActionForOperator(e,t){return t.currentRegisterMode=m.RegisterMode.LineWise,e.getUp()}};U=c([g.RegisterAction],U);let q=class extends F{constructor(){super(...arguments),this.keys=[],this.movementType="up",this.by="line",this.value=1}async execAction(e,t){if(0===e.line)return e;let r;const n=t.desiredColumn,i=new j;do{r=await i.execAction(e,t),r=r instanceof T.Position?r:r.stop}while(r.line===e.line);return r.character!==n&&(r=new T.Position(r.line,n)),r}};q=c([g.RegisterAction],q);let K=class extends x.BaseMovement{constructor(){super(...arguments),this.modes=[h.Mode.Insert],this.keys=[[""],[""],[""],[""]]}async execAction(e,t){let r;switch(t.recordedState.actionsRun=[new $.CommandInsertAtCursor],t.historyTracker.addChange(!0),t.historyTracker.finishCurrentStep(),this.keysPressed[0]){case"":r=await new U(this.keysPressed).execAction(e,t);break;case"":r=await new W(this.keysPressed).execAction(e,t);break;case"":r=await new re(this.keysPressed).execAction(e,t);break;case"":r=await new ne(this.keysPressed).execAction(e,t);break;default:throw new Error(`Unexpected 'arrow' key: ${this.keys[0]}`)}return t.replaceState=new v.ReplaceState(t,r),r}};K=c([g.RegisterAction],K),t.ArrowsInInsertMode=K;let H=class extends x.BaseMovement{constructor(){super(...arguments),this.modes=[h.Mode.Replace],this.keys=[[""],[""],[""],[""]]}async execAction(e,t){t.historyTracker.addChange(!0),t.historyTracker.finishCurrentStep();let r=e;switch(this.keysPressed[0]){case"":r=await(new U).execAction(e,t);break;case"":r=await(new W).execAction(e,t);break;case"":r=await new re(this.keysPressed).execAction(e,t);break;case"":r=await new ne(this.keysPressed).execAction(e,t);break;default:throw new Error(`Unexpected 'arrow' key: ${this.keys[0]}`)}return t.replaceState=new v.ReplaceState(t,r),r}};H=c([g.RegisterAction],H);let z=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["n"],this.isJump=!0}async execAction(e,t){const r=M.globalState.searchState;if(!r||""===r.searchString)return e;if(M.globalState.hl=!0,0===r.getMatchRanges(t).length)return R.StatusBar.displayError(t,S.VimError.fromCode(S.ErrorCode.PatternNotFound,r.searchString)),(0,x.failedMovement)(t);const n=r.direction===B.SearchDirection.Forward,i=e.getRight().isEqual(e.getLineEnd())&&n?r.getNextSearchMatchPosition(t,e.getRight()):r.getNextSearchMatchPosition(t,e);return i?((0,C.reportSearch)(i.index,r.getMatchRanges(t).length,t),i.pos):(R.StatusBar.displayError(t,S.VimError.fromCode(r.direction===B.SearchDirection.Forward?S.ErrorCode.SearchHitBottom:S.ErrorCode.SearchHitTop,r.searchString)),(0,x.failedMovement)(t))}};z=c([g.RegisterAction],z);let G=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["N"],this.isJump=!0}async execAction(e,t){const r=M.globalState.searchState;if(!r||""===r.searchString)return e;if(M.globalState.hl=!0,0===r.getMatchRanges(t).length)return R.StatusBar.displayError(t,S.VimError.fromCode(S.ErrorCode.PatternNotFound,r.searchString)),(0,x.failedMovement)(t);const n=r.direction===B.SearchDirection.Forward,i=e.getRight().isEqual(e.getLineEnd())&&!n?r.getNextSearchMatchPosition(t,e.getRight(),B.SearchDirection.Backward):r.getNextSearchMatchPosition(t,e,B.SearchDirection.Backward);return i?((0,C.reportSearch)(i.index,r.getMatchRanges(t).length,t),i.pos):(R.StatusBar.displayError(t,S.VimError.fromCode(r.direction===B.SearchDirection.Forward?S.ErrorCode.SearchHitTop:S.ErrorCode.SearchHitBottom,r.searchString)),(0,x.failedMovement)(t))}};G=c([g.RegisterAction],G);let J=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["'",""],this.isJump=!0}async execAction(e,t){const r=this.keysPressed[1],n=t.historyTracker.getMark(r);if(void 0===n)throw S.VimError.fromCode(S.ErrorCode.MarkNotSet);if(t.currentRegisterMode=m.RegisterMode.LineWise,n.isUppercaseMark&&void 0!==n.document){if(t.recordedState.operator&&n.document!==t.document)throw S.VimError.fromCode(S.ErrorCode.MarkNotSet);await te(n.document)}return d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,n.position.line)}};J=c([g.RegisterAction],J);let Y=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["`",""],this.isJump=!0}async execAction(e,t){const r=this.keysPressed[1],n=t.historyTracker.getMark(r);if(void 0===n)throw S.VimError.fromCode(S.ErrorCode.MarkNotSet);if(n.isUppercaseMark&&void 0!==n.document){if(t.recordedState.operator&&n.document!==t.document)throw S.VimError.fromCode(S.ErrorCode.MarkNotSet);await te(n.document)}return n.position}};Y=c([g.RegisterAction],Y);let Q=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["]","`"],this.isJump=!0}async execAction(e,t){const r=t.historyTracker.getLocalMarks().filter((t=>t.position.isAfter(e))).map((e=>e.position)).sort(((e,t)=>e.compareTo(t)));return 0===r.length?e:r[0]}};Q=c([g.RegisterAction],Q);let Z=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["[","`"],this.isJump=!0}async execAction(e,t){const r=t.historyTracker.getLocalMarks().filter((t=>t.position.isBefore(e))).map((e=>e.position)).sort(((e,t)=>t.compareTo(e)));return 0===r.length?e:r[0]}};Z=c([g.RegisterAction],Z);let X=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["]","'"],this.isJump=!0}async execAction(e,t){t.currentRegisterMode=m.RegisterMode.LineWise;const r=t.historyTracker.getLocalMarks().filter((t=>t.position.line>e.line)).map((e=>e.position.line)),n=0===r.length?e.line:Math.min(...r);return new T.Position(n,0).getLineBeginRespectingIndent(t.document)}};X=c([g.RegisterAction],X);let ee=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["[","'"],this.isJump=!0}async execAction(e,t){t.currentRegisterMode=m.RegisterMode.LineWise;const r=t.historyTracker.getLocalMarks().filter((t=>t.position.linee.position.line)),n=0===r.length?e.line:Math.max(...r);return new T.Position(n,0).getLineBeginRespectingIndent(t.document)}};async function te(e){var t;e!==(null===(t=u.window.activeTextEditor)||void 0===t?void 0:t.document)&&await u.window.showTextDocument(e)}ee=c([g.RegisterAction],ee);let re=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["h"],[""],[""],[""],[""]]}async execAction(e,t){return(0,b.shouldWrapKey)(t.currentMode,this.keysPressed[0])?e.getLeftThroughLineBreaks([h.Mode.Insert,h.Mode.Replace].includes(t.currentMode)):e.getLeft()}};re=c([g.RegisterAction],re);let ne=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["l"],[""],[" "]]}async execAction(e,t){return(0,b.shouldWrapKey)(t.currentMode,this.keysPressed[0])?e.getRightThroughLineBreaks([h.Mode.Insert,h.Mode.Replace].includes(t.currentMode)):e.getRight()}};ne=c([g.RegisterAction],ne);let ie=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["+"],["\n"],[""]]}async execActionWithCount(e,t,r){return t.currentRegisterMode=m.RegisterMode.LineWise,d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,e.getDown(Math.max(r,1)).line)}};ie=c([g.RegisterAction],ie);let oe=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["-"]}async execActionWithCount(e,t,r){return t.currentRegisterMode=m.RegisterMode.LineWise,d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,e.getUp(Math.max(r,1)).line)}};oe=c([g.RegisterAction],oe);let se=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["_"]}async execActionWithCount(e,t,r){t.currentRegisterMode=m.RegisterMode.LineWise;const n=e.getDown(Math.max(r-1,0));return t.recordedState.operator?n:d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,n.line)}};se=c([g.RegisterAction],se);let ae=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["|"]}async execActionWithCount(e,t,r){return new T.Position(e.line,Math.max(0,r-1))}};function ce(e,t,r,n,i){const o=e.document.lineAt(t);let s=t.character;for(;n>0&&s>=0;)s="forward"===i?o.text.indexOf(r,s+1):o.text.lastIndexOf(r,s-1),n--;if(s>=0)return new T.Position(t.line,s)}ae=c([g.RegisterAction],ae);let ue=n=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["f",""]}async execActionWithCount(e,t,r){if(w.configuration.sneakReplacesF){const n=await new _.SneakForward(this.keysPressed.concat("\n"),this.isRepeat).execActionWithCount(e,t,r);return t.recordedState.operator&&!(0,x.isIMovement)(n)?n.getRight():n}r||(r=1);let i=ce(t,e,E.Notation.ToControlCharacter(this.keysPressed[1]),r,"forward");return t.lastSemicolonRepeatableMovement=new n(this.keysPressed,!0),t.lastCommaRepeatableMovement=new le(this.keysPressed,!0),i?(t.recordedState.operator&&(i=i.getRight()),i):(0,x.failedMovement)(t)}};ue=n=c([g.RegisterAction],ue);let le=i=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["F",""]}async execActionWithCount(e,t,r){if(w.configuration.sneakReplacesF)return new _.SneakBackward(this.keysPressed.concat("\n"),this.isRepeat).execActionWithCount(e,t,r);r||(r=1);const n=ce(t,e,E.Notation.ToControlCharacter(this.keysPressed[1]),r,"backward");return t.lastSemicolonRepeatableMovement=new i(this.keysPressed,!0),t.lastCommaRepeatableMovement=new ue(this.keysPressed,!0),n||(0,x.failedMovement)(t)}};function de(e,t,r,n,i){const o=ce(e,t,r,n,i);return"forward"===i?null==o?void 0:o.getLeft():null==o?void 0:o.getRight()}le=i=c([g.RegisterAction],le);let he=o=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["t",""]}async execActionWithCount(e,t,r){r||(r=1);const n=E.Notation.ToControlCharacter(this.keysPressed[1]);let i=de(t,e,n,r,"forward");return i&&this.isRepeat&&e.isEqual(i)&&1===r&&(i=de(t,e,n,2,"forward")),t.lastSemicolonRepeatableMovement=new o(this.keysPressed,!0),t.lastCommaRepeatableMovement=new fe(this.keysPressed,!0),i?(t.recordedState.operator&&(i=i.getRight()),i):(0,x.failedMovement)(t)}};he=o=c([g.RegisterAction],he);let fe=s=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["T",""]}async execActionWithCount(e,t,r){r||(r=1);const n=E.Notation.ToControlCharacter(this.keysPressed[1]);let i=de(t,e,n,r,"backward");return i&&this.isRepeat&&e.isEqual(i)&&1===r&&(i=de(t,e,n,2,"backward")),t.lastSemicolonRepeatableMovement=new s(this.keysPressed,!0),t.lastCommaRepeatableMovement=new he(this.keysPressed,!0),i||(0,x.failedMovement)(t)}};fe=s=c([g.RegisterAction],fe);let pe=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[";"]}async execActionWithCount(e,t,r){const n=t.lastSemicolonRepeatableMovement;return n?n.execActionWithCount(e,t,r):e}};pe=c([g.RegisterAction],pe);let ge=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[","]}async execActionWithCount(e,t,r){const n=t.lastSemicolonRepeatableMovement,i=t.lastCommaRepeatableMovement;if(i){const o=i.execActionWithCount(e,t,r);return t.lastSemicolonRepeatableMovement=n,t.lastCommaRepeatableMovement=i,o}return e}};ge=c([g.RegisterAction],ge);let me=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["$"],[""],[""]],this.setsDesiredColumnToEOL=!0}async execActionWithCount(e,t,r){return e.getDown(Math.max(r-1,0)).getLineEnd()}};me=c([g.RegisterAction],me);let ve=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["0"],[""],[""]]}async execAction(e,t){return e.getLineBegin()}doesActionApply(e,t){return super.doesActionApply(e,t)&&0===e.recordedState.count}couldActionApply(e,t){return super.couldActionApply(e,t)&&0===e.recordedState.count}};ve=c([g.RegisterAction],ve);let ye=class extends N{constructor(){super(...arguments),this.keys=["g","0"],this.movementType="wrappedLineStart"}};ye=c([g.RegisterAction],ye);let we=class extends N{constructor(){super(...arguments),this.keys=["g","^"],this.movementType="wrappedLineFirstNonWhitespaceCharacter"}};we=c([g.RegisterAction],we);let be=class extends N{constructor(){super(...arguments),this.keys=["g","$"],this.movementType="wrappedLineEnd"}};be=c([g.RegisterAction],be);let Se=class extends N{constructor(){super(...arguments),this.keys=["g","_"],this.movementType="wrappedLineLastNonWhitespaceCharacter"}async execActionWithCount(e,t,r){r||(r=1);const n=await super.execActionWithCount(e,t,r);return n instanceof T.Position?n.getDown(r-1):{start:n.start,stop:n.stop.getDown(r-1).getLeftThroughLineBreaks()}}};Se=c([g.RegisterAction],Se);let xe=class extends N{constructor(){super(...arguments),this.keys=["g","m"],this.movementType="wrappedLineColumnCenter"}};xe=c([g.RegisterAction],xe);let Me=class extends N{constructor(){super(...arguments),this.modes=[h.Mode.Normal,h.Mode.Visual],this.keys=[["g","k"],["g",""]],this.movementType="up",this.by="wrappedLine",this.value=1}};Me=c([g.RegisterAction],Me);let Ce=class extends N{constructor(){super(...arguments),this.modes=[h.Mode.Normal,h.Mode.Visual],this.keys=[["g","j"],["g",""]],this.movementType="down",this.by="wrappedLine",this.value=1}};Ce=c([g.RegisterAction],Ce);let _e=class extends N{constructor(){super(...arguments),this.modes=[h.Mode.VisualLine],this.keys=[["g","k"],["g",""]],this.movementType="up",this.by="line",this.value=1}};_e=c([g.RegisterAction],_e);let Ee=class extends N{constructor(){super(...arguments),this.modes=[h.Mode.VisualLine],this.keys=[["g","j"],["g",""]],this.movementType="down",this.by="line",this.value=1}};Ee=c([g.RegisterAction],Ee);let Re=class extends x.BaseMovement{constructor(){super(...arguments),this.modes=[h.Mode.VisualBlock],this.keys=[["g","k"],["g",""]],this.preservesDesiredColumn=!0}async execAction(e,t){return e.line>0?e.with({character:t.desiredColumn}).getUp():e}async execActionForOperator(e,t){return t.currentRegisterMode=m.RegisterMode.LineWise,e.getUp()}};Re=c([g.RegisterAction],Re);let ke=class extends x.BaseMovement{constructor(){super(...arguments),this.modes=[h.Mode.VisualBlock],this.keys=[["g","j"],["g",""]],this.preservesDesiredColumn=!0}async execAction(e,t){return e.line"]],this.isJump=!0}async execActionWithCount(e,t,r){t.currentRegisterMode=m.RegisterMode.LineWise;const n=(0,k.clamp)(r,1,t.document.lineCount)-1;return{start:t.cursorStartPosition,stop:e.with({line:n}).obeyStartOfLine(t.document)}}};Ne=c([g.RegisterAction],Ne);let je=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["G"],this.isJump=!0}async execActionWithCount(e,t,r){let n;return t.currentRegisterMode=m.RegisterMode.LineWise,n=0===r?new T.Position(t.document.lineCount-1,e.character).obeyStartOfLine(t.document):new T.Position(Math.min(r,t.document.lineCount)-1,e.character).obeyStartOfLine(t.document),{start:t.cursorStartPosition,stop:n}}};je=c([g.RegisterAction],je);let De=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[""]}async execActionWithCount(e,t,r){const n=r?(0,k.clamp)(r-1,0,t.document.lineCount-1):t.document.lineCount-1;return new T.Position(n,0).getLineEnd()}};De=c([g.RegisterAction],De);let Fe=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["w"]}async execAction(e,t,r,n){if(n&&!w.configuration.changeWordIncludesWhitespace&&t.recordedState.operator instanceof l.ChangeOperator){const r=t.document.lineAt(e);if(0===r.text.length)return e;const n=r.text[e.character];return" \t".includes(n)?e.nextWordStart(t.document):e.nextWordEnd(t.document,{inclusive:!0}).getRight()}return e.nextWordStart(t.document)}async execActionForOperator(e,t,r,n){const i=await this.execAction(e,t,r,n);return i.line>e.line+1||i.line===e.line+1&&i.isFirstWordOfLine(t.document)?e.getLineEnd():i.isLineEnd()?new T.Position(i.line,i.character+1):i}};Fe=c([g.RegisterAction],Fe),t.MoveWordBegin=Fe;let Ve=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["W"],[""]]}async execAction(e,t){return!w.configuration.changeWordIncludesWhitespace&&t.recordedState.operator instanceof l.ChangeOperator?e.nextWordEnd(t.document,{wordType:O.WordType.Big}).getRight():e.nextWordStart(t.document,{wordType:O.WordType.Big})}};Ve=c([g.RegisterAction],Ve),t.MoveFullWordBegin=Ve;let We=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["e"]}async execAction(e,t){return e.nextWordEnd(t.document)}async execActionForOperator(e,t){const r=e.nextWordEnd(t.document);return new T.Position(r.line,r.character+1)}};We=c([g.RegisterAction],We);let Ue=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["E"]}async execAction(e,t){return e.nextWordEnd(t.document,{wordType:O.WordType.Big})}async execActionForOperator(e,t){return e.nextWordEnd(t.document,{wordType:O.WordType.Big}).getRight()}};Ue=c([g.RegisterAction],Ue);let qe=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["g","e"]}async execAction(e,t){return e.prevWordEnd(t.document)}};qe=c([g.RegisterAction],qe);let Ke=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["g","E"]}async execAction(e,t){return e.prevWordEnd(t.document,{wordType:O.WordType.Big})}};Ke=c([g.RegisterAction],Ke);let He=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[["b"],[""]]}async execAction(e,t){return e.prevWordStart(t.document)}};He=c([g.RegisterAction],He);let ze=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["B"]}async execAction(e,t){return e.prevWordStart(t.document,{wordType:O.WordType.Big})}};ze=c([g.RegisterAction],ze);let Ge=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["("],this.isJump=!0}async execAction(e,t){return e.getSentenceBegin({forward:!1})}};Ge=c([g.RegisterAction],Ge);let Je=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["g","o"],this.isJump=!0}async execActionWithCount(e,t,r){return t.currentRegisterMode=m.RegisterMode.LineWise,t.document.positionAt((r||1)-1)}};Je=c([g.RegisterAction],Je);let Ye=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=[")"],this.isJump=!0}async execAction(e,t){return e.getSentenceBegin({forward:!0})}};Ye=c([g.RegisterAction],Ye);let Qe=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["}"],this.isJump=!0,this.iteration=0,this.isFirstLineWise=!1}async execAction(e,t){const r=t.recordedState.operator,n=(0,P.getCurrentParagraphEnd)(e);if(r){this.iteration++;const r=e.isLineBeginning()&&t.currentMode===h.Mode.Normal,i=!t.recordedState.count||t.recordedState.count===this.iteration;return this.isFirstLineWise=1===this.iteration?r:this.isFirstLineWise,t.currentRegisterMode=this.isFirstLineWise?m.RegisterMode.LineWise:void 0,i&&!n.isAtDocumentEnd()?n.getLeftThroughLineBreaks(!0):n}return n}};Qe=c([g.RegisterAction],Qe);let Ze=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["{"],this.isJump=!0}async execAction(e,t){return(0,P.getCurrentParagraphBeginning)(e)}};Ze=c([g.RegisterAction],Ze);class Xe extends x.BaseMovement{constructor(){super(...arguments),this.isJump=!0}async execAction(e,t){const r=t.document;switch(r.languageId){case"python":return A.PythonDocument.moveClassBoundary(r,e,t,this.forward,this.begin)}const n=this.begin?"{":"}";let i=e.line;if(this.forward&&i===t.document.lineCount-1||!this.forward&&0===i)return d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,i);for(i=this.forward?i+1:i-1;!t.document.lineAt(i).text.startsWith(n);)if(this.forward){if(i===t.document.lineCount-1)break;i++}else{if(0===i)break;i--}return d.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,i)}}let et=class extends Xe{constructor(){super(...arguments),this.keys=["]","]"],this.begin=!0,this.forward=!0}};et=c([g.RegisterAction],et);let tt=class extends Xe{constructor(){super(...arguments),this.keys=["]","["],this.begin=!1,this.forward=!0}};tt=c([g.RegisterAction],tt);let rt=class extends Xe{constructor(){super(...arguments),this.keys=["[","["],this.begin=!0,this.forward=!1}};rt=c([g.RegisterAction],rt);let nt=class extends Xe{constructor(){super(...arguments),this.keys=["[","]"],this.begin=!1,this.forward=!1}};nt=c([g.RegisterAction],nt);let it=a=class extends x.BaseMovement{constructor(){super(...arguments),this.keys=["%"],this.isJump=!0}async execAction(e,t){e=e.getLeftIfEOL();const r=t.document.lineAt(e).text,n=(0,x.failedMovement)(t);for(let i=e.character;i100)return(0,x.failedMovement)(t);const n=Math.trunc((r*t.document.lineCount+99)/100)-1;return e.with({line:n}).obeyStartOfLine(t.document)}return super.execActionWithCount(e,t,r)}};it=a=c([g.RegisterAction],it);class ot extends I{constructor(){super(...arguments),this.modes=[h.Mode.Normal,h.Mode.Visual,h.Mode.VisualLine,h.Mode.VisualBlock],this.includeSurrounding=!1,this.isJump=!0}async execAction(e,t,r,n){const i=f.PairMatcher.pairings[this.charToMatch].match,[o,s]=(0,L.sorted)(t.cursorStartPosition,e);let a=f.PairMatcher.nextPairedChar(o,i,t,!0);if(void 0===a)return(0,x.failedMovement)(t);let c=f.PairMatcher.nextPairedChar(a,this.charToMatch,t,!0);if(void 0===c)return(0,x.failedMovement)(t);if(!this.includeSurrounding&&((0,h.isVisualMode)(t.currentMode)||!r)&&o.getLeftThroughLineBreaks(!1).isBeforeOrEqual(a)&&s.getRightThroughLineBreaks(!1).isAfterOrEqual(c)){const e=f.PairMatcher.nextPairedChar(a,i,t,!1),r=e?f.PairMatcher.nextPairedChar(e,this.charToMatch,t,!1):void 0;e&&r&&(a=e,c=r)}return this.includeSurrounding?t.currentMode!==h.Mode.Visual&&(c=new T.Position(c.line,c.character+1)):(a=a.getRightThroughLineBreaks(),c.isInLeadingWhitespace(t.document)&&(c=c.getLineBegin()),t.currentMode===h.Mode.Visual&&(c=c.getLeftThroughLineBreaks())),n&&!(0,h.isVisualMode)(t.currentMode)&&o.isBefore(a)&&(t.recordedState.operatorPositionDiff=a.subtract(o)),t.cursorStartPosition=a,{start:a,stop:c}}}t.MoveInsideCharacter=ot;let st=class extends ot{constructor(){super(...arguments),this.keys=[["i","("],["i",")"],["i","b"]],this.charToMatch="("}};st=c([g.RegisterAction],st);let at=class extends ot{constructor(){super(...arguments),this.keys=[["a","("],["a",")"],["a","b"]],this.charToMatch="(",this.includeSurrounding=!0}};at=c([g.RegisterAction],at),t.MoveAroundParentheses=at;let ct=class extends ot{constructor(){super(...arguments),this.keys=[["i","{"],["i","}"],["i","B"]],this.charToMatch="{"}};ct=c([g.RegisterAction],ct);let ut=class extends ot{constructor(){super(...arguments),this.keys=[["a","{"],["a","}"],["a","B"]],this.charToMatch="{",this.includeSurrounding=!0}};ut=c([g.RegisterAction],ut),t.MoveAroundCurlyBrace=ut;let lt=class extends ot{constructor(){super(...arguments),this.keys=[["i","<"],["i",">"]],this.charToMatch="<"}};lt=c([g.RegisterAction],lt);let dt=class extends ot{constructor(){super(...arguments),this.keys=[["a","<"],["a",">"]],this.charToMatch="<",this.includeSurrounding=!0}};dt=c([g.RegisterAction],dt),t.MoveAroundCaret=dt;let ht=class extends ot{constructor(){super(...arguments),this.keys=[["i","["],["i","]"]],this.charToMatch="["}};ht=c([g.RegisterAction],ht);let ft=class extends ot{constructor(){super(...arguments),this.keys=[["a","["],["a","]"]],this.charToMatch="[",this.includeSurrounding=!0}};ft=c([g.RegisterAction],ft),t.MoveAroundSquareBracket=ft;class pt extends x.BaseMovement{constructor(e=!0){super(),this.modes=[h.Mode.Normal,h.Mode.Visual,h.Mode.VisualBlock],this.includeQuotes=!1,this.isJump=!0,this.adjustForTrailingWhitespace=!0,this.adjustForTrailingWhitespace=e}async execActionWithCount(e,t,r){return await super.execActionWithCount(e,t,1)}async execAction(e,t){!this.includeQuotes&&(t.recordedState.count>1||t.recordedState.operatorCount>1)&&(this.includeQuotes=!0,this.adjustForTrailingWhitespace=!1);const r=t.document.lineAt(e).text,n=new p.QuoteMatcher(this.charToMatch,r).surroundingQuotes(e.character);if(void 0===n)return(0,x.failedMovement)(t);let[i,o]=n;if(this.includeQuotes){if(this.adjustForTrailingWhitespace){const e=r.substring(o+1).search(/\S|$/);e>0?o+=e:i=r.substring(0,i).search(/\s*$/)}}else i++,o--;const s=new T.Position(e.line,i),a=new T.Position(e.line,o);return!(0,h.isVisualMode)(t.currentMode)&&e.isBefore(s)&&(t.recordedState.operatorPositionDiff=s.subtract(e)),{start:s,stop:a}}async execActionForOperator(e,t){const r=await this.execAction(e,t);return(0,x.isIMovement)(r)&&(r.failed?(t.recordedState.hasRunOperator=!1,t.recordedState.actionsRun=[]):r.stop=r.stop.getRight()),r}}t.MoveQuoteMatch=pt;let gt=class extends pt{constructor(){super(...arguments),this.keys=["i","'"],this.charToMatch="'",this.includeQuotes=!1}};gt=c([g.RegisterAction],gt);let mt=class extends pt{constructor(){super(...arguments),this.keys=["a","'"],this.charToMatch="'",this.includeQuotes=!0}};mt=c([g.RegisterAction],mt),t.MoveAroundSingleQuotes=mt;let vt=class extends pt{constructor(){super(...arguments),this.keys=["i",'"'],this.charToMatch='"',this.includeQuotes=!1}};vt=c([g.RegisterAction],vt);let yt=class extends pt{constructor(){super(...arguments),this.keys=["a",'"'],this.charToMatch='"',this.includeQuotes=!0}};yt=c([g.RegisterAction],yt),t.MoveAroundDoubleQuotes=yt;let wt=class extends pt{constructor(){super(...arguments),this.keys=["i","`"],this.charToMatch="`",this.includeQuotes=!1}};wt=c([g.RegisterAction],wt);let bt=class extends pt{constructor(){super(...arguments),this.keys=["a","`"],this.charToMatch="`",this.includeQuotes=!0}};bt=c([g.RegisterAction],bt),t.MoveAroundBacktick=bt;let St=class extends it{constructor(){super(...arguments),this.keys=["[","("]}async execAction(e,t){return f.PairMatcher.nextPairedChar(e,")",t,!1)||(0,x.failedMovement)(t)}};St=c([g.RegisterAction],St);let xt=class extends it{constructor(){super(...arguments),this.keys=["]",")"]}async execAction(e,t){const r=f.PairMatcher.nextPairedChar(e,"(",t,!1);return r?t.recordedState.operator instanceof l.ChangeOperator||t.recordedState.operator instanceof l.DeleteOperator||t.recordedState.operator instanceof l.YankOperator?r.getLeftThroughLineBreaks():r:(0,x.failedMovement)(t)}};xt=c([g.RegisterAction],xt);let Mt=class extends it{constructor(){super(...arguments),this.keys=["[","{"]}async execAction(e,t){return f.PairMatcher.nextPairedChar(e,"}",t,!1)||(0,x.failedMovement)(t)}};Mt=c([g.RegisterAction],Mt);let Ct=class extends it{constructor(){super(...arguments),this.keys=["]","}"]}async execAction(e,t){const r=f.PairMatcher.nextPairedChar(e,"{",t,!1);return r?t.recordedState.operator instanceof l.ChangeOperator||t.recordedState.operator instanceof l.DeleteOperator||t.recordedState.operator instanceof l.YankOperator?r.getLeftThroughLineBreaks():r:(0,x.failedMovement)(t)}};Ct=c([g.RegisterAction],Ct);class _t extends I{constructor(){super(...arguments),this.modes=[h.Mode.Normal,h.Mode.Visual,h.Mode.VisualBlock],this.includeTag=!1,this.isJump=!0}async execAction(e,t){const r=t.document.getText(),n=t.document.offsetAt(e),i=new y.TagMatcher(r,n,t),o=i.findOpening(this.includeTag),s=i.findClosing(this.includeTag);if(void 0===o||void 0===s)return(0,x.failedMovement)(t);const a=o>=0?t.document.positionAt(o):t.cursorStartPosition;let c=s>=0?t.document.positionAt(s):e;return t.currentMode!==h.Mode.Visual&&t.currentMode!==h.Mode.SurroundInputMode||(c=c.getLeftThroughLineBreaks()),e.isAfter(c)?t.recordedState.transformer.addTransformation({type:"moveCursor",diff:c.subtract(e)}):e.isBefore(a)&&t.recordedState.transformer.addTransformation({type:"moveCursor",diff:a.subtract(e)}),t.cursorStartPosition=a,{start:a,stop:c}}}let Et=class extends _t{constructor(){super(...arguments),this.keys=["i","t"],this.includeTag=!1}};Et=c([g.RegisterAction],Et),t.MoveInsideTag=Et;let Rt=class extends _t{constructor(){super(...arguments),this.keys=["a","t"],this.includeTag=!0}};Rt=c([g.RegisterAction],Rt),t.MoveAroundTag=Rt},3176:function(e,t,r){"use strict";var n,i,o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.ROT13Operator=t.ChangeOperator=t.YankOperator=t.DeleteOperator=t.BaseOperator=void 0;const s=r(9496),a=r(4880),c=r(7536),u=r(4379),l=r(7125),d=r(1797),h=r(785),f=r(9066),p=r(8965),g=r(7541),m=r(9496);class v extends h.BaseAction{constructor(e){super(),this.isOperator=!0,this.createsUndoPoint=!0,this.multicursorIndex=e}doesActionApply(e,t){return!(!this.doesRepeatedOperatorApply(e,t)&&(!this.modes.includes(e.currentMode)||!h.BaseAction.CompareKeypressSequence(this.keys,t)||this instanceof v&&e.recordedState.operator))}couldActionApply(e,t){return!(!this.modes.includes(e.currentMode)||!h.BaseAction.CompareKeypressSequence(this.keys.slice(0,t.length),t)||this instanceof v&&e.recordedState.operator)}doesRepeatedOperatorApply(e,t){const r=e.recordedState.actionsRun.filter((e=>!(e instanceof f.CommandNumber))),n=r[r.length-1];return 1===t.length&&n&&this.modes.includes(e.currentMode)&&n.constructor===this.constructor&&h.BaseAction.CompareKeypressSequence(n.keysPressed.slice(-1),t)}async runRepeat(e,t,r){e.currentRegisterMode=l.RegisterMode.LineWise,await this.run(e,t.getLineBegin(),t.getDown(Math.max(0,r-1)).getLineEnd())}highlightYankedRanges(e,t){if(!c.configuration.highlightedyank.enable)return;const r=s.window.createTextEditorDecorationType({backgroundColor:c.configuration.highlightedyank.color,color:c.configuration.highlightedyank.textColor});e.editor.setDecorations(r,t),setTimeout((()=>r.dispose()),c.configuration.highlightedyank.duration)}}t.BaseOperator=v;let y=class extends v{constructor(){super(...arguments),this.keys=["d"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine]}async run(e,t,r){const n=Math.abs(t.line-r.line)+1;e.currentRegisterMode===l.RegisterMode.LineWise&&(t=t.getLineBegin(),r=r.getLineEnd());const i=(r=new m.Position(r.line,r.character+1)).line===e.document.lineCount-1;e.currentMode===u.Mode.VisualBlock||i||r.character!==e.document.lineAt(r).text.length+1||(r=new m.Position(r.line+1,0));let o,c=e.document.getText(new s.Range(t,r));e.currentRegisterMode===l.RegisterMode.LineWise&&(c=c.endsWith("\r\n")?c.slice(0,-2):c.endsWith("\n")?c.slice(0,-1):c),l.Register.put(e,c,this.multicursorIndex,!0),i&&0!==t.line&&e.currentRegisterMode===l.RegisterMode.LineWise&&(t=t.getUp().getLineEnd()),e.currentRegisterMode===l.RegisterMode.LineWise?o=a.PositionDiff.startOfLine():t.character>e.document.lineAt(t).text.length&&(o=a.PositionDiff.offset({character:-1})),e.recordedState.transformer.addTransformation({type:"deleteRange",range:new s.Range(t,r),diff:o}),await e.setCurrentMode(u.Mode.Normal),(0,p.reportLinesChanged)(-n,e)}};y=o([h.RegisterAction],y),t.DeleteOperator=y;let w=class extends v{constructor(){super(...arguments),this.keys=["D"],this.modes=[u.Mode.Visual,u.Mode.VisualLine]}async run(e,t,r){e.currentRegisterMode=l.RegisterMode.LineWise,await new y(this.multicursorIndex).run(e,t,r)}};w=o([h.RegisterAction],w);let b=class extends v{constructor(){super(...arguments),this.keys=["y"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine],this.createsUndoPoint=!1}async run(e,t,r){[t,r]=(0,a.sorted)(t,r);let n=new m.Position(r.line,r.character+1);e.currentRegisterMode===l.RegisterMode.LineWise&&(t=t.getLineBegin(),n=n.getLineEnd());const i=new s.Range(t,n);let o=e.document.getText(i);e.currentMode===u.Mode.Visual&&n.character===e.document.lineAt(n).text.length+1&&(o+="\n"),this.highlightYankedRanges(e,[i]),l.Register.put(e,o,this.multicursorIndex,!0),e.cursorStopPosition=e.currentMode===u.Mode.Normal&&e.currentRegisterMode===l.RegisterMode.LineWise?t.with({character:e.cursorStopPosition.character}):t,await e.setCurrentMode(u.Mode.Normal);const c=o.split("\n").length;(0,p.reportLinesYanked)(c,e)}};b=o([h.RegisterAction],b),t.YankOperator=b;let S=class extends v{constructor(){super(...arguments),this.keys=["!"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){let n;[t,r]=(0,a.sorted)(t,r),n=e.currentMode===u.Mode.Normal&&t.line===r.line?".!":e.currentMode===u.Mode.Normal&&t.line!==r.line?`.,.+${r.line-t.line}!`:"'<,'>!",e.cursorStartPosition=t,e.currentMode===u.Mode.Normal?e.cursorStopPosition=t:e.cursors=e.cursorsInitialState,e.commandLine=new g.ExCommandLine(n,e.currentMode),await e.setCurrentMode(u.Mode.CommandlineInProgress)}};S=o([h.RegisterAction],S);let x=class extends v{constructor(){super(...arguments),this.keys=["Y"],this.modes=[u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){e.currentRegisterMode=l.RegisterMode.LineWise,await new b(this.multicursorIndex).run(e,t,r)}};x=o([h.RegisterAction],x);let M=class extends v{constructor(){super(...arguments),this.keys=[["x"],[""]],this.modes=[u.Mode.Visual,u.Mode.VisualLine]}async run(e,t,r){await new y(this.multicursorIndex).run(e,t,r)}};M=o([h.RegisterAction],M);let C=class extends v{constructor(){super(...arguments),this.keys=["s"],this.modes=[u.Mode.Visual,u.Mode.VisualLine]}doesActionApply(e,t){return super.doesActionApply(e,t)&&!c.configuration.sneak}async run(e,t,r){await new N(this.multicursorIndex).run(e,t,r)}};C=o([h.RegisterAction],C);let _=class extends v{constructor(){super(...arguments),this.keys=["="],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){e.editor.selection=new s.Selection(t.getLineBegin(),r.getLineEnd()),await s.commands.executeCommand("editor.action.formatSelection");let n=e.cursorStartPosition.line;e.cursorStartPosition.isAfter(e.cursorStopPosition)&&(n=e.cursorStopPosition.line);const i=d.TextEditor.getFirstNonWhitespaceCharOnLine(e.document,n);e.cursorStopPosition=i,e.cursorStartPosition=i,await e.setCurrentMode(u.Mode.Normal)}};_=o([h.RegisterAction],_);class E extends v{constructor(){super(...arguments),this.modes=[u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){if(e.currentMode===u.Mode.VisualBlock){for(const{start:t,end:r}of d.TextEditor.iterateLinesInBlock(e)){const n=new s.Range(t,r);e.recordedState.transformer.replace(n,this.transformText(e.document.getText(n)))}for(let n=0;n"]}async run(e,t,r){e.editor.selection=new s.Selection(t.getLineBegin(),r.getLineEnd()),await s.commands.executeCommand("editor.action.indentLines"),await e.setCurrentMode(u.Mode.Normal),e.cursorStopPosition=t.obeyStartOfLine(e.document)}};O=o([h.RegisterAction],O);let $=class extends v{constructor(){super(...arguments),this.modes=[u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock],this.keys=[">"]}async run(e,t,r){if(e.isRunningDotCommand&&e.dotCommandPreviousVisualSelection&&e.cursorStartPosition.isAfter(e.cursorStopPosition)){const r=e.dotCommandPreviousVisualSelection.end.line-e.dotCommandPreviousVisualSelection.start.line;t=e.cursorStartPosition;const n=e.cursorStartPosition.getDown(r);e.editor.selection=new s.Selection(t,n)}for(let t=0;t<(e.recordedState.count||1);t++)await s.commands.executeCommand("editor.action.indentLines");await e.setCurrentMode(u.Mode.Normal),e.cursorStopPosition=t.obeyStartOfLine(e.document)}};$=o([h.RegisterAction],$);let B=class extends v{constructor(){super(...arguments),this.modes=[u.Mode.Normal],this.keys=["<"]}async run(e,t,r){e.editor.selection=new s.Selection(t,r.getLineEnd()),await s.commands.executeCommand("editor.action.outdentLines"),await e.setCurrentMode(u.Mode.Normal),e.cursorStopPosition=d.TextEditor.getFirstNonWhitespaceCharOnLine(e.document,t.line)}};B=o([h.RegisterAction],B);let I=class extends v{constructor(){super(...arguments),this.modes=[u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock],this.keys=["<"]}async run(e,t,r){if(e.isRunningDotCommand&&e.dotCommandPreviousVisualSelection&&e.cursorStartPosition.isAfter(e.cursorStopPosition)){const r=e.dotCommandPreviousVisualSelection.end.line-e.dotCommandPreviousVisualSelection.start.line;t=e.cursorStartPosition;const n=e.cursorStartPosition.getDown(r);e.editor.selection=new s.Selection(t,n)}for(let t=0;t<(e.recordedState.count||1);t++)await s.commands.executeCommand("editor.action.outdentLines");await e.setCurrentMode(u.Mode.Normal),e.cursorStopPosition=d.TextEditor.getFirstNonWhitespaceCharOnLine(e.document,t.line)}};I=o([h.RegisterAction],I);let N=class extends v{constructor(){super(...arguments),this.keys=["c"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine]}async run(e,t,r){e.currentRegisterMode===l.RegisterMode.LineWise?(t=t.getLineBegin(),r=r.getLineEnd()):r=e.currentMode===u.Mode.Visual&&r.isLineEnd()?r.getRightThroughLineBreaks():r.getRight();const n=new s.Range(t,r);if(l.Register.put(e,e.document.getText(n),this.multicursorIndex,!0),e.currentRegisterMode===l.RegisterMode.LineWise&&c.configuration.autoindent){const t=e.document.getText(new s.Range(n.start.getLineBegin(),n.start.getLineBeginRespectingIndent(e.document)));e.recordedState.transformer.replace(n,t,a.PositionDiff.exactPosition(new m.Position(n.start.line,t.length))),"plaintext"!==e.document.languageId&&e.recordedState.transformer.addTransformation({type:"reindent",cursorIndex:this.multicursorIndex,diff:a.PositionDiff.endOfLine()})}else e.recordedState.transformer.delete(n);e.setCurrentMode(u.Mode.Insert)}};N=o([h.RegisterAction],N),t.ChangeOperator=N;let j=class extends v{constructor(){super(...arguments),this.keys=["y"],this.modes=[u.Mode.VisualBlock],this.createsUndoPoint=!1}runsOnceForEveryCursor(){return!1}async run(e,t,r){const n=[],i=[];for(const{line:t,start:r,end:o}of d.TextEditor.iterateLinesInBlock(e))i.push(t),n.push(new s.Range(r,o));e.currentRegisterMode=l.RegisterMode.BlockWise,this.highlightYankedRanges(e,n),l.Register.put(e,i.join("\n"),this.multicursorIndex,!0),e.historyTracker.addMark(t,"<"),e.historyTracker.addMark(r,">");const o=i.length;(0,p.reportLinesYanked)(o,e),await e.setCurrentMode(u.Mode.Normal),e.cursorStopPosition=t}};j=o([h.RegisterAction],j);let D=class extends v{constructor(){super(...arguments),this.keys=["g","c"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){e.editor.selection=new s.Selection(t.getLineBegin(),r.getLineEnd()),await s.commands.executeCommand("editor.action.commentLine"),e.cursorStopPosition=new m.Position(t.line,0),await e.setCurrentMode(u.Mode.Normal)}};D=o([h.RegisterAction],D);let F=n=class extends v{constructor(){super(...arguments),this.keys=["g","?"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine,u.Mode.VisualBlock]}async run(e,t,r){let i;i=(0,u.isVisualMode)(e.currentMode)?e.editor.selections:e.currentRegisterMode===l.RegisterMode.LineWise?[new s.Selection(t.getLineBegin(),r.getLineEnd())]:[new s.Selection(t,r.getRight())];for(const t of i){const r=e.document.getText(t);e.recordedState.transformer.replace(t,n.rot13(r))}}static rot13(e){return e.split("").map((e=>{let t=e.charCodeAt(0);if(e>="a"&&e<="z"){const e="a".charCodeAt(0);t=(t-e+13)%26+e}if(e>="A"&&e<="Z"){const e="A".charCodeAt(0);t=(t-e+13)%26+e}return String.fromCharCode(t)})).join("")}};F=n=o([h.RegisterAction],F),t.ROT13Operator=F;let V=class extends v{constructor(){super(...arguments),this.keys=["g","C"],this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine]}async run(e,t,r){if(e.currentMode===u.Mode.Normal){const n=r.getRight();e.editor.selection=new s.Selection(t,n)}await s.commands.executeCommand("editor.action.blockComment"),e.cursorStopPosition=t,await e.setCurrentMode(u.Mode.Normal)}};V=o([h.RegisterAction],V);let W=i=class extends v{constructor(){super(...arguments),this.modes=[u.Mode.Normal,u.Mode.Visual,u.Mode.VisualLine],this.keys=["g","q"]}getIndentation(e){for(const t of e.split("\n")){const e=t.match(/^\s+/g),r=e?e[0]:"";if(r!==t)return r}return""}reflowParagraph(e){const t=this.getIndentation(e);let r=0;for(const e of t)r+="\t"===e?c.configuration.tabstop:1;const n=c.configuration.textwidth-r,o=[];for(const t of e.split("\n")){let e=o[o.length-1];const r=t.trimStart();let n;for(const t of i.CommentTypes){if(r.startsWith(t.start)){n=t;break}if(e&&!e.final&&t.start===e.commentType.start&&!t.singleLine){if(r.startsWith(t.inner)){n=t;break}if(r.endsWith(t.final)){n=t;break}}}if(!n)break;if(e&&!e.final&&n.start===e.commentType.start){if(e=o[o.length-1],e.commentType.singleLine)e.content+=`\n${r.substr(e.commentType.start.length).trimStart()}`;else if(!e.final)if(r.endsWith(e.commentType.final)){e.final=!0;const t=r.startsWith(e.commentType.inner)?e.commentType.inner.length:0;e.content+=`\n${r.substr(t,r.length-e.commentType.final.length-t).trim()}`}else r.startsWith(e.commentType.inner)?e.content+=`\n${r.substr(e.commentType.inner.length).trimStart()}`:r.startsWith(e.commentType.start)&&(e.content+=`\n${r.substr(e.commentType.start.length).trimStart()}`)}else{const e={commentType:n,content:`${r.substr(n.start.length).trimStart()}`,indentLevelAfterComment:0,final:!1};n.singleLine?e.indentLevelAfterComment=r.substr(n.start.length).length-e.content.length:e.content.endsWith(n.final)&&(e.content=e.content.substr(0,e.content.length-n.final.length).trim(),e.final=!0),o.push(e)}}const s=[];for(const{commentType:e,content:r,indentLevelAfterComment:i}of o){let o;const a=Array(i+1).join(" "),u=e.start.length+a.length;o=[""];for(let e of r.split("\n"))if(""!==e.trim())for(;e;){const t=o[o.length-1];let r;r=t?c.configuration.joinspaces&&(t.endsWith(".")||t.endsWith("?")||t.endsWith("!"))?" ":t.endsWith(" ")?c.configuration.joinspaces&&(t.endsWith(". ")||t.endsWith("? ")||t.endsWith("! "))?" ":"":" ":"";const i=n-r.length-t.length-u,s=e.trimStart();if(s.length<=i){o[o.length-1]+=`${r}${s}`;break}{let n=Math.max(s.lastIndexOf(" ",i),s.lastIndexOf("\t",i));if(n<0){if(t){o.push("");continue}n=s.search(/[ \t]/),n<0&&(n=e.length)}o[o.length-1]+=`${r}${s.slice(0,n).trimEnd()}`,e=e.slice(n+1),o.push("")}}else""===o[o.length-1]&&o.pop(),o.push(e),o.push("");""===o[o.length-1]&&o.pop();for(let r=0;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(3838),o=r(785),s=r(4379),a=r(3193),c=r(7536),u=r(3176),l=r(8019),d=r(9496);class h extends a.BaseMovement{doesActionApply(e,t){return c.configuration.camelCaseMotion.enable&&super.doesActionApply(e,t)}couldActionApply(e,t){return c.configuration.camelCaseMotion.enable&&super.couldActionApply(e,t)}}class f extends i.TextObject{doesActionApply(e,t){return c.configuration.camelCaseMotion.enable&&super.doesActionApply(e,t)}couldActionApply(e,t){return c.configuration.camelCaseMotion.enable&&super.couldActionApply(e,t)}}let p=class extends h{constructor(){super(...arguments),this.keys=["","w"]}async execAction(e,t){return!c.configuration.changeWordIncludesWhitespace&&t.recordedState.operator instanceof u.ChangeOperator?e.nextWordEnd(t.document,{wordType:l.WordType.CamelCase}).getRight():e.nextWordStart(t.document,{wordType:l.WordType.CamelCase})}};p=n([o.RegisterAction],p);let g=class extends h{constructor(){super(...arguments),this.keys=["","e"]}async execAction(e,t){return e.nextWordEnd(t.document,{wordType:l.WordType.CamelCase})}async execActionForOperator(e,t){const r=e.nextWordEnd(t.document,{wordType:l.WordType.CamelCase});return new d.Position(r.line,r.character+1)}};g=n([o.RegisterAction],g);let m=class extends h{constructor(){super(...arguments),this.keys=["","b"]}async execAction(e,t){return e.prevWordStart(t.document,{wordType:l.WordType.CamelCase})}};m=n([o.RegisterAction],m);let v=class extends f{constructor(){super(...arguments),this.modes=[s.Mode.Normal,s.Mode.Visual],this.keys=["i","","w"]}async execAction(e,t){let r,n;const i=t.document.lineAt(e).text[e.character];return/\s/.test(i)?(r=e.prevWordEnd(t.document,{wordType:l.WordType.CamelCase}).getRight(),n=e.nextWordStart(t.document,{wordType:l.WordType.CamelCase}).getLeftThroughLineBreaks()):(r=e.prevWordStart(t.document,{wordType:l.WordType.CamelCase,inclusive:!0}),n=e.nextWordEnd(t.document,{wordType:l.WordType.CamelCase,inclusive:!0})),t.currentMode!==s.Mode.Visual||t.cursorStopPosition.isEqual(t.cursorStartPosition)||(r=t.cursorStartPosition,t.cursorStopPosition.isBefore(t.cursorStartPosition)&&(n=/\s/.test(i)?e.prevWordEnd(t.document,{wordType:l.WordType.CamelCase}).getRight():e.prevWordStart(t.document,{wordType:l.WordType.CamelCase,inclusive:!0}))),{start:r,stop:n}}};v=n([o.RegisterAction],v)},6953:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.EasyMotionLineMoveCommandBase=t.EasyMotionWordMoveCommandBase=t.EasyMotionCharMoveCommandBase=t.SearchByNCharCommand=t.SearchByCharCommand=t.buildTriggerKeys=void 0;const i=r(7536),o=r(4379),s=r(785),a=r(3345),c=r(9909),u=r(1797),l=r(4091),d=r(9496);t.buildTriggerKeys=function(e){return[...Array.from({length:e.leaderCount||2},(()=>"")),...e.key.split("")]};class h extends s.BaseCommand{constructor(e){super(),this.modes=[o.Mode.Normal,o.Mode.Visual,o.Mode.VisualLine,o.Mode.VisualBlock],this._baseOptions=e}processMarkers(e,t,r){r.easyMotion.clearMarkers();let n=0;const i=new l.MarkerGenerator(e.length);for(const o of e){const e=this.resolveMatchPosition(o);if(!e.isEqual(t)){const t=i.generateMarker(n++,e);t&&r.easyMotion.addMarker(t)}}}searchOptions(e){switch(this._baseOptions.searchOptions){case"min":return{min:e};case"max":return{max:e};default:return{}}}async exec(e,t){if(i.configuration.easymotion){const r=this.getMatches(e,t);if((0,o.isVisualMode)(t.easyMotion.previousMode)&&(t.cursorStartPosition=t.lastVisualSelection.start,t.cursorStopPosition=t.lastVisualSelection.end),r.length>0)if(t.easyMotion=new a.EasyMotion,this.processMarkers(r,e,t),1===r.length){const e=t.easyMotion.markers[0];t.cursorStopPosition=e.position,t.easyMotion.clearDecorations(t.editor)}else t.easyMotion.previousMode=t.currentMode,await t.setCurrentMode(o.Mode.EasyMotionMode)}}}function f(e,t,r,n){switch(r){case"":return[];case" ":return t.easyMotion.sortedSearch(t.document,e,new RegExp(" {1,}","g"),n);default:if(!/[a-zA-Z]/.test(r))return t.easyMotion.sortedSearch(t.document,e,r,n);const o=!i.configuration.ignorecase||i.configuration.smartcase&&/[A-Z]/.test(r)?"g":"gi";return t.easyMotion.sortedSearch(t.document,e,new RegExp(r,o),n)}}t.SearchByCharCommand=class extends h{constructor(e){super(e),this.keys=[],this.searchString="",this._options=e}get searchCharCount(){return this._options.charCount}getMatches(e,t){return f(e,t,this.searchString,this.searchOptions(e))}shouldFire(){const e=this._options.charCount;return!e||this.searchString.length>=e}async fire(e,t){await this.exec(e,t)}resolveMatchPosition(e){const{line:t,character:r}=e.position;switch(this._options.labelPosition){case"after":return new d.Position(t,r+this._options.charCount);case"before":return new d.Position(t,Math.max(0,r-1));default:return e.position}}},t.SearchByNCharCommand=class extends h{constructor(){super({}),this.keys=[],this.searchString=""}get searchCharCount(){return-1}resolveMatchPosition(e){return e.position}getMatches(e,t){return f(e,t,this.removeTrailingLineBreak(this.searchString),{})}removeTrailingLineBreak(e){return e.replace(new RegExp("\n+$","g"),"")}shouldFire(){return this.searchString.endsWith("\n")}async fire(e,t){""!==this.removeTrailingLineBreak(this.searchString)&&await this.exec(e,t)}};class p extends s.BaseCommand{constructor(e){super(),this.modes=[o.Mode.Normal,o.Mode.Visual,o.Mode.VisualLine,o.Mode.VisualBlock],this._action=e}async exec(e,t){i.configuration.easymotion&&(t.easyMotion=new a.EasyMotion,t.easyMotion.previousMode=t.currentMode,t.easyMotion.searchAction=this._action,c.globalState.hl=!0,await t.setCurrentMode(o.Mode.EasyMotionInputMode))}}t.EasyMotionCharMoveCommandBase=p,t.EasyMotionWordMoveCommandBase=class extends h{constructor(e={}){super(e),this._options=e}getMatches(e,t){return this.getMatchesForWord(e,t,this.searchOptions(e))}resolveMatchPosition(e){const{line:t,character:r}=e.position;switch(this._options.labelPosition){case"after":return new d.Position(t,r+e.text.length-1);default:return e.position}}getMatchesForWord(e,t,r){const n=this._options.jumpToAnywhere?new RegExp(i.configuration.easymotionJumpToAnywhereRegex,"g"):new RegExp("\\w{1,}","g");return t.easyMotion.sortedSearch(t.document,e,n,r)}},t.EasyMotionLineMoveCommandBase=class extends h{constructor(e={}){super(e),this._options=e}resolveMatchPosition(e){return e.position}getMatches(e,t){return this.getMatchesForLineStart(e,t,this.searchOptions(e))}getMatchesForLineStart(e,t,r){const n=t.easyMotion.sortedSearch(t.document,e,new RegExp("^.","gm"),r);for(const e of n)e.position=u.TextEditor.getFirstNonWhitespaceCharOnLine(t.document,e.position.line);return n}};let g=class extends s.BaseCommand{constructor(){super(...arguments),this.modes=[o.Mode.EasyMotionInputMode],this.keys=[""]}async exec(e,t){const r=this.keysPressed[0],n=t.easyMotion.searchAction;n.searchString=""===r||""===r?n.searchString.slice(0,-1):n.searchString+r,n.shouldFire()&&(await t.setCurrentMode(t.easyMotion.previousMode),await n.fire(t.cursorStopPosition,t))}};g=n([s.RegisterAction],g);let m=class extends s.BaseCommand{constructor(){super(...arguments),this.modes=[o.Mode.EasyMotionInputMode],this.keys=[""]}async exec(e,t){await t.setCurrentMode(o.Mode.Normal)}};m=n([s.RegisterAction],m);let v=class extends s.BaseCommand{constructor(){super(...arguments),this.modes=[o.Mode.EasyMotionMode],this.keys=[""],this.isJump=!0}async exec(e,t){const r=this.keysPressed[0];if(r){const e=t.easyMotion.accumulation+r;t.easyMotion.accumulation=e;const n=t.easyMotion.findMarkers(e,!0);if((0,o.isVisualMode)(t.easyMotion.previousMode)&&(t.cursorStartPosition=t.lastVisualSelection.start,t.cursorStopPosition=t.lastVisualSelection.end),1===n.length){const e=n[0];t.easyMotion.clearDecorations(t.editor),await t.setCurrentMode(t.easyMotion.previousMode),t.cursorStopPosition=e.position}else 0===n.length&&(t.easyMotion.clearDecorations(t.editor),await t.setCurrentMode(t.easyMotion.previousMode))}}};v=n([s.RegisterAction],v)},3345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EasyMotion=void 0;const n=r(9496),i=r(7536),o=r(1797),s=r(1541),a=r(9496);class c{constructor(){this.accumulation="",this.markers=[],this.visibleMarkers=[],this.decorations=[]}static getDecorationType(e,t){const r=this.decorationTypeCache[e];if(r)return r;{const r=n.window.createTextEditorDecorationType(t||{});return this.decorationTypeCache[e]=r,r}}clearDecorations(e){for(let t=1;t<=this.decorations.length;t++)e.setDecorations(c.getDecorationType(t),[]);e.setDecorations(c.fade,[]),e.setDecorations(c.hide,[])}clearMarkers(){for(;this.markers.length;)this.markers.pop();this.visibleMarkers=[]}addMarker(e){this.markers.push(e)}findMarkers(e,t){return(t?this.visibleMarkers:this.markers).filter((t=>t.name.startsWith(e)))}sortedSearch(e,t,r="",n={}){const i="string"==typeof r?new RegExp(r.replace(c.specialCharactersRegex,"\\$&"),"g"):r,o=[];let u,l=t.character;const d=e.lineCount,h=n.min?Math.max(n.min.line,0):0,f=n.max?Math.min(n.max.line+1,d):d;e:for(let r=h;r=1e3)break e;{const e=new a.Position(r,d.index);n.min&&e.isBefore(n.min)||n.max&&e.isAfter(n.max)||Math.abs(e.line-t.line)>100||(u&&!u.position.isBefore(t)||(l=o.length),e.isEqual(t)||(u=new s.Match(e,d[0],o.length),o.push(u))),d=i.exec(c)}}}return o.sort(((e,t)=>{return r(e.index)-r(t.index);function r(e){const t=Math.abs(l-e);return ee.name.startsWith(this.accumulation))).sort(((e,t)=>e.position.isBefore(t.position)?-1:1));for(const e of u){const o=e.position,a=e.name.substr(this.accumulation.length);this.decorations[a.length]||(this.decorations[a.length]=[]);let c=0;const l=u[u.indexOf(e)+1];if(l&&l.position.character-o.character==1&&l.position.line===o.line){const e=l.name.substr(this.accumulation.length);a.length>1&&e.length>1&&(c=-1)}const d=a.length>1?this.getEasymotionMarkerForegroundColorTwoCharFirst():this.getEasymotionMarkerForegroundColorOneChar(),h=this.getEasymotionMarkerBackgroundColor(),f=new n.Range(o.line,o.character,o.line,o.character),p={before:{contentText:a.substring(0,1),backgroundColor:h,color:d,margin:`0 -1ch 0 0;\n position: absolute;\n font-weight: ${i.configuration.easymotionMarkerFontWeight};`,height:"100%"}};if(this.decorations[a.length].push({range:f,renderOptions:{dark:p,light:p}}),a.length+c>1){const e=this.getEasymotionMarkerForegroundColorTwoCharSecond(),t=new n.Range(o.line,o.character+1,o.line,o.character+1),r={before:{contentText:a.slice(1),backgroundColor:h,color:e,margin:`0 -1ch 0 0;\n position: absolute;\n font-weight: ${i.configuration.easymotionMarkerFontWeight};`,height:"100%"}};this.decorations[a.length].push({range:t,renderOptions:{dark:r,light:r}})}if(s.push(new n.Range(o.line,o.character,o.line,o.character+a.length+c)),i.configuration.easymotionDimBackground)if(0===t.length)t.push({range:new n.Range(0,0,o.line,o.character),renderOptions:r});else{const i=u[u.indexOf(e)-1],s=i.name.substr(this.accumulation.length),a=i.position,c=a.withColumn(a.character+s.length);c.isAfterOrEqual(o)||t.push({range:new n.Range(c.line,c.character,o.line,o.character),renderOptions:r})}this.visibleMarkers.push(e)}if(i.configuration.easymotionDimBackground){const i=u[u.length-1].name.substr(this.accumulation.length),s=t[t.length-1].range.end,c=s.withColumn(s.character+i.length);c.isEqual(o.TextEditor.getDocumentEnd(e.document))||t.push({range:new n.Range(c,new a.Position(e.document.lineCount,Number.MAX_VALUE)),renderOptions:r})}for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkerGenerator=void 0;const n=r(7536);t.MarkerGenerator=class{constructor(e){this.matchesCount=e,this.keyTable=this.getKeyTable(),this.prefixKeyTable=this.createPrefixKeyTable()}generateMarker(e,t){const{keyTable:r,prefixKeyTable:n}=this;if(e>=r.length-n.length){const i=e-(r.length-n.length),o=Math.floor(i/r.length)+1;return o>n.length?null:{name:n[o-1]+r[i%r.length],position:t}}return{name:r[e],position:t}}createPrefixKeyTable(){const e=Math.max(this.matchesCount-this.keyTable.length,0),t=Math.ceil(e/this.keyTable.length),r=this.keyTable.slice().reverse(),n=Math.min(t,r.length);return r.slice(0,n)}getKeyTable(){return n.configuration.easymotionKeys?n.configuration.easymotionKeys.split(""):"hklyuiopnm,qwertzxcvbasdgjf;".split("")}}},9998:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(785),o=r(6953);let s=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByNCharCommand),this.keys=(0,o.buildTriggerKeys)({key:"/"})}};s=n([i.RegisterAction],s);let a=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2})),this.keys=(0,o.buildTriggerKeys)({key:"2s"})}};a=n([i.RegisterAction],a);let c=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2,searchOptions:"min"})),this.keys=(0,o.buildTriggerKeys)({key:"2f"})}};c=n([i.RegisterAction],c);let u=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2,searchOptions:"max"})),this.keys=(0,o.buildTriggerKeys)({key:"2F"})}};u=n([i.RegisterAction],u);let l=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2,searchOptions:"min",labelPosition:"before"})),this.keys=(0,o.buildTriggerKeys)({key:"2t"})}};l=n([i.RegisterAction],l);let d=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2,labelPosition:"before"})),this.keys=(0,o.buildTriggerKeys)({key:"bd2t",leaderCount:3})}};d=n([i.RegisterAction],d);let h=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:2,searchOptions:"max",labelPosition:"after"})),this.keys=(0,o.buildTriggerKeys)({key:"2T"})}};h=n([i.RegisterAction],h);let f=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1})),this.keys=(0,o.buildTriggerKeys)({key:"s"})}};f=n([i.RegisterAction],f);let p=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1,searchOptions:"min"})),this.keys=(0,o.buildTriggerKeys)({key:"f"})}};p=n([i.RegisterAction],p);let g=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1,searchOptions:"max"})),this.keys=(0,o.buildTriggerKeys)({key:"F"})}};g=n([i.RegisterAction],g);let m=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1,searchOptions:"min",labelPosition:"before"})),this.keys=(0,o.buildTriggerKeys)({key:"t"})}};m=n([i.RegisterAction],m);let v=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1,labelPosition:"before"})),this.keys=(0,o.buildTriggerKeys)({key:"bdt",leaderCount:3})}};v=n([i.RegisterAction],v);let y=class extends o.EasyMotionCharMoveCommandBase{constructor(){super(new o.SearchByCharCommand({charCount:1,searchOptions:"max",labelPosition:"after"})),this.keys=(0,o.buildTriggerKeys)({key:"T"})}};y=n([i.RegisterAction],y);let w=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({searchOptions:"min"}),this.keys=(0,o.buildTriggerKeys)({key:"w"})}};w=n([i.RegisterAction],w);let b=class extends o.EasyMotionWordMoveCommandBase{constructor(){super(...arguments),this.keys=(0,o.buildTriggerKeys)({key:"bdw",leaderCount:3})}};b=n([i.RegisterAction],b);let S=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({jumpToAnywhere:!0,searchOptions:"min",labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"l"})}};S=n([i.RegisterAction],S);let x=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({jumpToAnywhere:!0,searchOptions:"max",labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"h"})}};x=n([i.RegisterAction],x);let M=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({jumpToAnywhere:!0,labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"j",leaderCount:3})}};M=n([i.RegisterAction],M);let C=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({searchOptions:"min",labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"e"})}};C=n([i.RegisterAction],C);let _=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"bde",leaderCount:3})}};_=n([i.RegisterAction],_);let E=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({searchOptions:"max"}),this.keys=(0,o.buildTriggerKeys)({key:"b"})}};E=n([i.RegisterAction],E);let R=class extends o.EasyMotionWordMoveCommandBase{constructor(){super({searchOptions:"max",labelPosition:"after"}),this.keys=(0,o.buildTriggerKeys)({key:"ge"})}};R=n([i.RegisterAction],R);let k=class extends o.EasyMotionLineMoveCommandBase{constructor(){super({searchOptions:"min"}),this.keys=(0,o.buildTriggerKeys)({key:"j"})}};k=n([i.RegisterAction],k);let P=class extends o.EasyMotionLineMoveCommandBase{constructor(){super({searchOptions:"max"}),this.keys=(0,o.buildTriggerKeys)({key:"k"})}};P=n([i.RegisterAction],P);let A=class extends o.EasyMotionLineMoveCommandBase{constructor(){super(...arguments),this.keys=(0,o.buildTriggerKeys)({key:"bdjk",leaderCount:3})}};A=n([i.RegisterAction],A)},1541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Match=void 0;const n=r(9496);t.Match=class{constructor(e,t,r){this.position=e,this.text=t,this.index=r}toRange(){return new n.Range(this.position,this.position.translate(0,this.text.length))}}},9971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputMethodSwitcher=void 0;const n=r(5845),i=r(4379),o=r(7536),s=r(2081);function a(e){return new Promise(((t,r)=>{try{(0,s.exec)(e,((e,n,i)=>{e?r(e):t(n)}))}catch(e){r(e)}}))}class c{constructor(e=a){this.savedIMKey="",this.execute=e}async switchInputMethod(e,t){if(!0!==o.configuration.autoSwitchInputMethod.enable)return;const r=this.isInsertLikeMode(e),n=this.isInsertLikeMode(t);r!==n&&(n?await this.resumeIM():await this.switchToDefaultIM())}async switchToDefaultIM(){const e=o.configuration.autoSwitchInputMethod.obtainIMCmd;try{const t=await this.execute(e);void 0!==t&&(this.savedIMKey=t.trim())}catch(e){c.logger.error(`Error switching to default IM. err=${e}`)}const t=o.configuration.autoSwitchInputMethod.defaultIM;t!==this.savedIMKey&&await this.switchToIM(t)}async resumeIM(){this.savedIMKey!==o.configuration.autoSwitchInputMethod.defaultIM&&await this.switchToIM(this.savedIMKey)}async switchToIM(e){let t=o.configuration.autoSwitchInputMethod.switchIMCmd;if(""!==e&&void 0!==e){t=t.replace("{im}",e);try{await this.execute(t)}catch(e){c.logger.error(`Error switching to IM. err=${e}`)}}}isInsertLikeMode(e){return[i.Mode.Insert,i.Mode.Replace,i.Mode.SurroundInputMode].includes(e)}}t.InputMethodSwitcher=c,c.logger=n.Logger.get("IMSwitcher")},6804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluginDefaultMappings=void 0;class r{static getPluginDefaultMappings(e,t){return this.defaultMappings.filter((r=>r.mode===e&&t[r.configSwitch])).map((e=>e.mapping))}}t.PluginDefaultMappings=r,r.defaultMappings=[{mode:"normalModeKeyBindingsNonRecursive",configSwitch:"surround",mapping:{before:["y","s"],after:[""]}},{mode:"normalModeKeyBindingsNonRecursive",configSwitch:"surround",mapping:{before:["y","s","s"],after:["",""]}},{mode:"normalModeKeyBindingsNonRecursive",configSwitch:"surround",mapping:{before:["c","s"],after:[""]}},{mode:"normalModeKeyBindingsNonRecursive",configSwitch:"surround",mapping:{before:["d","s"],after:[""]}}]},4211:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0});const i=r(7536),o=r(4379),s=r(7125),a=r(3176),c=r(785),u=r(9220),l=r(3259),d=r(9496),h=r(4880);let f=class extends a.BaseOperator{constructor(){super(...arguments),this.keys=["g","r"],this.modes=[o.Mode.Normal,o.Mode.Visual,o.Mode.VisualLine]}doesActionApply(e,t){return i.configuration.replaceWithRegister&&super.doesActionApply(e,t)}couldActionApply(e,t){return i.configuration.replaceWithRegister&&super.doesActionApply(e,t)}async run(e,t,r){const n=e.currentRegisterMode===s.RegisterMode.LineWise?new d.Range(t.getLineBegin(),r.getLineEndIncludingEOL()):new d.Range(t,r.getRight()),i=await s.Register.get(e.recordedState.registerName,this.multicursorIndex);if(void 0===i)return void u.StatusBar.displayError(e,l.VimError.fromCode(l.ErrorCode.NothingInRegister,e.recordedState.registerName));const a=i.text;e.recordedState.transformer.addTransformation({type:"replaceText",range:n,text:a,diff:h.PositionDiff.exactPosition(p(e,n,a))}),await e.setCurrentMode(o.Mode.Normal)}};f=n([c.RegisterAction],f);const p=(e,t,r)=>{const{recordedState:{actionKeys:n}}=e,i=r.split("\n"),o=0===n.indexOf("r")&&1===n.length;return 1===i.length&&t.isSingleLine&&!o?g(t,r):m(t.start.line,i[0])},g=(e,t)=>new d.Position(e.start.line,Math.max(0,e.start.character+t.length-1)),m=(e,t)=>{var r,n;return new d.Position(e,null!==(n=null===(r=t.match(/\S/))||void 0===r?void 0:r.index)&&void 0!==n?n:0)}},7243:function(e,t,r){"use strict";var n,i,o=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.SneakBackward=t.SneakForward=void 0;const s=r(7536),a=r(785),c=r(3193),u=r(9496);let l=n=class extends c.BaseMovement{constructor(){super(...arguments),this.keys=[["s","",""],["z","",""]],this.isJump=!0}couldActionApply(e,t){const r=void 0===e.recordedState.operator?"s":"z";return s.configuration.sneak&&super.couldActionApply(e,t)&&t[0]===r}async execAction(e,t){this.isRepeat||(t.lastSemicolonRepeatableMovement=new n(this.keysPressed,!0),t.lastCommaRepeatableMovement=new d(this.keysPressed,!0)),"\n"===this.keysPressed[2]&&(this.keysPressed[2]="");const r=this.keysPressed[1]+this.keysPressed[2],i=t.document,o=i.lineCount;for(let t=e.line;t=0)return new u.Position(t,a)}return e}};l=n=o([a.RegisterAction],l),t.SneakForward=l;let d=i=class extends c.BaseMovement{constructor(){super(...arguments),this.keys=[["S","",""],["Z","",""]],this.isJump=!0}couldActionApply(e,t){const r=void 0===e.recordedState.operator?"S":"Z";return s.configuration.sneak&&super.couldActionApply(e,t)&&t[0]===r}async execAction(e,t){this.isRepeat||(t.lastSemicolonRepeatableMovement=new i(this.keysPressed,!0),t.lastCommaRepeatableMovement=new l(this.keysPressed,!0)),"\n"===this.keysPressed[2]&&(this.keysPressed[2]="");const r=this.keysPressed[1]+this.keysPressed[2],n=t.document;for(let t=e.line;t>=0;--t){const i=n.lineAt(t).text,o=t===e.line?e.character-1:1/0;let a=-1;if(a=!s.configuration.sneakUseIgnorecaseAndSmartcase||!s.configuration.ignorecase||s.configuration.smartcase&&/[A-Z]/.test(r)?i.lastIndexOf(r,o):i.toLocaleLowerCase().lastIndexOf(r.toLocaleLowerCase(),o),a>=0)return new u.Position(t,a)}return e}};d=i=o([a.RegisterAction],d),t.SneakBackward=d},3399:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.CommandSurroundAddSurroundingTag=void 0;const i=r(4880),o=r(7536),s=r(4379),a=r(785),c=r(6206),u=r(3193),l=r(6206),d=r(3176),h=r(3838),f=r(9496);class p extends d.BaseOperator{doesActionApply(e,t){return o.configuration.surround&&super.doesActionApply(e,t)}}let g=class extends p{constructor(){super(...arguments),this.keys=[""],this.modes=[s.Mode.Normal]}async run(e,t,r){var n;this.multicursorIndex||(e.surround={operator:"yank",target:void 0,replacement:"",edges:[],previousMode:e.currentMode});const i=null!==(n=this.multicursorIndex)&&void 0!==n?n:0;return e.surround.edges.push(function(){const n=new f.Range(r.getRight(),r.getRight()),o=r.getRight().prevWordEnd(e.document),s=new f.Range(o.getRight(),o.getRight()),a=e.recordedState.actionsRun[e.recordedState.actionsRun.length-1],c=a instanceof l.MoveWordBegin||a instanceof l.MoveFullWordBegin||a instanceof h.SelectABigWord||a instanceof h.SelectWord?s:n;return{leftEdge:new f.Range(t,t),rightEdge:c,cursorIndex:i}}()),e.cursorStartPosition=t,e.cursorStopPosition=e.currentMode===s.Mode.Visual?r:t,void await e.setCurrentMode(s.Mode.SurroundInputMode)}async runRepeat(e,t,r){await this.run(e,t.getLineBeginRespectingIndent(e.document),t.getDown(Math.max(0,r-1)).getLineEnd().prevWordEnd(e.document))}};g=n([a.RegisterAction],g);let m=class extends p{constructor(){super(...arguments),this.modes=[s.Mode.Visual],this.keys=["S"]}async run(e,t,r){[t,r]=(0,i.sorted)(t,r),await new g(this.multicursorIndex).run(e,t,r)}};m=n([a.RegisterAction],m);let v=class extends p{constructor(){super(...arguments),this.modes=[s.Mode.VisualLine],this.keys=["S"]}async run(e,t,r){var n,o;[t,r]=(0,i.sorted)(t.getLineBegin(),r.getLineEnd()),this.multicursorIndex||(e.surround={target:void 0,operator:"yank",replacement:"",addNewline:!0,edges:[],previousMode:e.currentMode}),null===(n=e.surround)||void 0===n||n.edges.push({leftEdge:new f.Range(t,t),rightEdge:new f.Range(r,r),cursorIndex:null!==(o=this.multicursorIndex)&&void 0!==o?o:0}),e.cursorStartPosition=t,e.cursorStopPosition=r,await e.setCurrentMode(s.Mode.SurroundInputMode)}};v=n([a.RegisterAction],v);class y extends a.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.Normal],this.createsUndoPoint=!0}runsOnceForEveryCursor(){return!0}doesActionApply(e,t){const r=t[t.length-1];return o.configuration.surround&&super.doesActionApply(e,t)&&void 0!==_.edgePairings[r]}}let w=class extends y{constructor(){super(...arguments),this.keys=["",""],this.keysHasCnt=!1}async exec(e,t){var r;const n=this.keysPressed[this.keysPressed.length-1];if(this.keysHasCnt){const e=this.keysPressed[this.keysPressed.length-2];t.recordedState.count=parseInt(e,void 0)}t.surround={operator:"delete",target:n,replacement:"",edges:[],previousMode:s.Mode.Normal};const i=await _.getReplaceRanges(t,e,null!==(r=this.multicursorIndex)&&void 0!==r?r:0);i&&(t.surround.edges=[i],await _.ExecuteSurround(t))}};w=n([a.RegisterAction],w);let b=class extends w{constructor(){super(...arguments),this.keys=["","",""],this.keysHasCnt=!0}};b=n([a.RegisterAction],b);let S=class extends y{constructor(){super(...arguments),this.keys=["",""],this.isCompleteAction=!1,this.keysHasCnt=!1}async exec(e,t){var r;const n=this.keysPressed[this.keysPressed.length-1];if(this.keysHasCnt){const e=this.keysPressed[this.keysPressed.length-2];t.recordedState.count=parseInt(e,void 0)}this.multicursorIndex||(t.surround={operator:"change",target:n,replacement:"",edges:[],previousMode:s.Mode.Normal});const i=await _.getReplaceRanges(t,e,null!==(r=this.multicursorIndex)&&void 0!==r?r:0);i&&t.surround.edges.push(i),await t.setCurrentMode(s.Mode.SurroundInputMode)}};S=n([a.RegisterAction],S);let x=class extends S{constructor(){super(...arguments),this.keys=["","",""],this.keysHasCnt=!0}};x=n([a.RegisterAction],x);let M=class extends a.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.SurroundInputMode],this.keys=[""],this.isCompleteAction=!0}runsOnceForEveryCursor(){return!1}doesActionApply(e,t){const r=t[t.length-1];return o.configuration.surround&&super.doesActionApply(e,t)&&"t"!==r&&"<"!==r}async exec(e,t){const r=this.keysPressed[this.keysPressed.length-1];if(!t.surround||!_.edgePairings[r])return t.surround=void 0,void await t.setCurrentMode(s.Mode.Normal);t.surround.replacement=r,await _.ExecuteSurround(t)}};M=n([a.RegisterAction],M);let C=class extends a.BaseCommand{constructor(){super(...arguments),this.modes=[s.Mode.SurroundInputMode],this.keys=[["<"],["t"]],this.isCompleteAction=!0,this.recordedTag=""}runsOnceForEveryCursor(){return!1}async exec(e,t){if(!t.surround)return;t.surround.replacement="t";const r=t.isRunningDotCommand||t.isReplayingMacro?this.recordedTag:await this.readTag();if(!r)return t.surround=void 0,void await t.setCurrentMode(s.Mode.Normal);var n;this.recordedTag=r,t.surround.tag=">"===(n=r).substring(n.length-1)?{tag:n.substring(0,n.length-1),keepAttributes:!1}:{tag:n,keepAttributes:!0},await _.ExecuteSurround(t)}async readTag(){return f.window.showInputBox({prompt:"Enter tag",ignoreFocusOut:!0})}};C=n([a.RegisterAction],C),t.CommandSurroundAddSurroundingTag=C;class _{static async getReplaceRanges(e,t,r){if(!e.surround||!e.surround.target)return;const n=this.edgePairings[e.surround.target];if(!n)return;const{removeSpace:i,movement:o}=n;e.cursorStartPosition=t;const s=e.recordedState.count||1,a=await o().execActionWithCount(t,e,s);if(!(0,u.isIMovement)(a)||a.failed)return;let l=a.start,d=a.stop;return"t"===e.surround.target?async function(){const n=l.getRight(),i=n.nextWordEnd(e.document,{inclusive:!0}).getRight(),o=d.getLeft(2).prevWordStart(e.document,{inclusive:!0}),a=d.getLeft();e.cursorStartPosition=t,e.cursorStopPosition=t;const h=1===s?await(new c.MoveInsideTag).execActionWithCount(t,e,1):await(new c.MoveAroundTag).execActionWithCount(t,e,s-1);return!(0,u.isIMovement)(h)||h.failed?void 0:{leftEdge:new f.Range(l,h.start),rightEdge:new f.Range(h.stop,d),leftTagName:new f.Range(n,i),rightTagName:new f.Range(o,a),cursorIndex:r}}():function(){o()instanceof c.MoveInsideCharacter&&(d=d.getLeft()),n.extraChars&&(l=l.getLeft(n.extraChars),d=d.getRight(n.extraChars));const t=function(){const t=e.editor.document.getText(new f.Range(l.getRight(),l.getRight(2))),r=e.editor.document.getText(new f.Range(d.getLeft(),d));return i&&" "===t&&" "===r?1:0}();return{leftEdge:new f.Range(l,l.getRight(1+t)),rightEdge:new f.Range(d.getLeft(t),d.getRight()),cursorIndex:r}}()}static async ExecuteSurround(e){const t=e.surround;if(!t||!t.edges)return;const r=this.edgePairings[t.replacement];if(!r&&"delete"!==t.operator)throw new Error("replacement missing in pairs");if("t"===t.target&&t.tag&&t.tag.keepAttributes)for(const{leftTagName:r,rightTagName:n}of t.edges)t.tag&&r&&n&&(e.recordedState.transformer.replace(r,t.tag.tag),e.recordedState.transformer.replace(n,t.tag.tag));else{const n=t.addNewline?"\n":"",o="delete"===t.operator?"":t.tag?"<"+t.tag.tag+">"+n:r.left+n,s="delete"===t.operator?"":t.tag?n+"":n+r.right;for(const{leftEdge:r,rightEdge:n,cursorIndex:a}of t.edges)e.recordedState.transformer.addTransformation({type:"replaceText",text:o,range:r,cursorIndex:a,diff:"yank"===t.operator?i.PositionDiff.offset({character:1-o.length}):void 0}),e.recordedState.transformer.addTransformation({type:"replaceText",text:s,range:n})}await e.setCurrentMode(s.Mode.Normal)}}_.edgePairings={"(":{left:"( ",right:" )",removeSpace:!0,movement:()=>new c.MoveAroundParentheses},")":{left:"(",right:")",removeSpace:!1,movement:()=>new c.MoveAroundParentheses},"[":{left:"[ ",right:" ]",removeSpace:!0,movement:()=>new c.MoveAroundSquareBracket},"]":{left:"[",right:"]",removeSpace:!1,movement:()=>new c.MoveAroundSquareBracket},"{":{left:"{ ",right:" }",removeSpace:!0,movement:()=>new c.MoveAroundCurlyBrace},"}":{left:"{",right:"}",removeSpace:!1,movement:()=>new c.MoveAroundCurlyBrace},">":{left:"<",right:">",removeSpace:!1,movement:()=>new c.MoveAroundCaret},'"':{left:'"',right:'"',removeSpace:!1,movement:()=>new c.MoveAroundDoubleQuotes(!1)},"'":{left:"'",right:"'",removeSpace:!1,movement:()=>new c.MoveAroundSingleQuotes(!1)},"`":{left:"`",right:"`",removeSpace:!1,movement:()=>new c.MoveAroundBacktick(!1)},"<":{left:"",right:"",removeSpace:!1,movement:()=>new c.MoveAroundTag},"*":{left:"*",right:"*",removeSpace:!1,movement:()=>new h.SelectInnerWord,extraChars:1},b:{left:"(",right:")",removeSpace:!1,movement:()=>new c.MoveAroundParentheses},r:{left:"[",right:"]",removeSpace:!1,movement:()=>new c.MoveAroundSquareBracket},B:{left:"{",right:"}",removeSpace:!1,movement:()=>new c.MoveAroundCurlyBrace},a:{left:"<",right:">",removeSpace:!1,movement:()=>new c.MoveAroundCaret},t:{left:"",right:"",removeSpace:!1,movement:()=>new c.MoveAroundTag},_:{left:"_",right:"_",removeSpace:!1,movement:()=>new h.SelectInnerWord}}},641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldWrapKey=void 0;const n=r(7536),i=r(4379);t.shouldWrapKey=(e,t)=>{let r;if(""===t)r=[i.Mode.Insert,i.Mode.Replace].includes(e)?"[":"<";else if(""===t)r=[i.Mode.Insert,i.Mode.Replace].includes(e)?"]":">";else if(["","",""].includes(t))r="b";else if(" "===t)r="s";else{if(!["h","l","~"].includes(t))throw new Error(`shouldWrapKey called with unexpected key='${t}'`);r=t}return n.configuration.whichwrap.split(",").includes(r)}},7541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchCommandLine=t.ExCommandLine=t.CommandLine=void 0;const n=r(9163),i=r(4379),o=r(5845),s=r(9220),a=r(3259),c=r(7536),u=r(7125),l=r(1149),d=r(3243),h=r(8186),f=r(8019),p=r(9066),g=r(5571),m=r(8965),v=r(8113),y=r(9496),w=r(9909),b=r(3434),S=r(4018),x=r(7718);class M{constructor(e,t){this.cursorIndex=e.length,this.historyIndex=this.getHistory().get().length,this.previousMode=t,this.savedText=e}async historyBack(){if(0===this.historyIndex)return;const e=this.getHistory().get();void 0===this.historyIndex?(this.historyIndex=e.length-1,this.savedText=this.text):this.historyIndex>0&&this.historyIndex--,this.text=e[this.historyIndex],this.cursorIndex=this.text.length}async historyForward(){if(void 0===this.historyIndex)return;const e=this.getHistory().get();this.historyIndex===e.length-1?(this.historyIndex=void 0,this.text=this.savedText):this.historyIndex0&&C.history.add(this.text)}async ctrlF(e){(new p.CommandShowCommandHistory).exec(e.cursorStopPosition,e)}}t.ExCommandLine=C,C.logger=o.Logger.get("CommandLine");class _ extends M{constructor(e,t,r){super(t,e.currentMode),this.currentMatchDisplacement=0,this.searchState=new h.SearchState(r,e.cursorStopPosition,t)}static async showSearchHistory(){const e=_.previousSearchStates.slice().reverse().map((e=>({label:e.searchString,searchState:e}))),t=await y.window.showQuickPick(e,{placeHolder:"Vim search history",ignoreFocusOut:!1});return null==t?void 0:t.searchState}static async loadHistory(e){_.history=new n.SearchHistory(e),_.history.get().forEach((e=>_.previousSearchStates.push(new h.SearchState(g.SearchDirection.Forward,new y.Position(0,0),e,void 0))))}static async addSearchStateToHistory(e){const t=0===_.previousSearchStates.length?void 0:_.previousSearchStates[_.previousSearchStates.length-1].searchString;e.searchString!==t&&(_.previousSearchStates.push(e),void 0!==_.history&&await _.history.add(e.searchString)),_.previousSearchStates.length>c.configuration.history&&_.previousSearchStates.splice(0,1)}display(e){return(0,m.escapeCSSIcons)(`${this.searchState.direction===g.SearchDirection.Forward?"/":"?"}${this.text.substring(0,this.cursorIndex)}${e}${this.text.substring(this.cursorIndex)}`)}get text(){return this.searchState.searchString}set text(e){this.searchState.searchString=e,""===e&&(this.currentMatchDisplacement=0)}getSearchState(){return this.searchState}getHistory(){return _.history}getCurrentMatchRelativeIndex(e){const t=e.recordedState.count||1;return t-1+this.currentMatchDisplacement*t}getCurrentMatchPosition(e){return this.searchState.getNextSearchMatchPosition(e,e.cursorStopPosition,g.SearchDirection.Forward,this.getCurrentMatchRelativeIndex(e))}getCurrentMatchRange(e){return this.searchState.getNextSearchMatchRange(e,e.cursorStopPosition,g.SearchDirection.Forward,this.getCurrentMatchRelativeIndex(e))}getDecorations(e){var t;return(0,v.getDecorationsForSearchMatchRanges)(this.searchState.getMatchRanges(e),c.configuration.incsearch&&e.currentMode===i.Mode.SearchInProgressMode?null===(t=this.getCurrentMatchRange(e))||void 0===t?void 0:t.index:void 0)}async run(e){if(await e.setCurrentMode(this.previousMode),""===this.text&&_.previousSearchStates.length>0&&(this.text=_.previousSearchStates[_.previousSearchStates.length-1].searchString),this.cursorIndex=0,u.Register.setReadonlyRegister("/",this.text),_.addSearchStateToHistory(this.searchState),w.globalState.hl=!0,0===this.searchState.getMatchRanges(e).length)return void s.StatusBar.displayError(e,a.VimError.fromCode(a.ErrorCode.PatternNotFound,this.text));const t=this.getCurrentMatchPosition(e);void 0!==t?(e.cursorStopPosition=t.pos,(0,m.reportSearch)(t.index,this.searchState.getMatchRanges(e).length,e)):s.StatusBar.displayError(e,a.VimError.fromCode(this.searchState.direction===g.SearchDirection.Backward?a.ErrorCode.SearchHitTop:a.ErrorCode.SearchHitBottom,this.text))}async escape(e){e.cursorStopPosition=this.searchState.cursorStartPosition;const t=_.previousSearchStates;if(w.globalState.searchState=t?t[t.length-1]:void 0,void 0!==e.firstVisibleLineBeforeSearch){const t=e.editor.visibleRanges[0].start.line-e.firstVisibleLineBeforeSearch;(0,b.scrollView)(e,t)}await e.setCurrentMode(this.previousMode),this.text.length>0&&_.addSearchStateToHistory(this.searchState)}async ctrlF(e){await new p.CommandShowSearchHistory(this.searchState.direction).exec(e.cursorStopPosition,e)}async advanceCurrentMatch(e,t){this.currentMatchDisplacement+=this.searchState.direction*t,c.configuration.wrapscan||this.getCurrentMatchRange(e)||(this.currentMatchDisplacement-=this.searchState.direction*t)}}t.SearchCommandLine=_,_.previousSearchStates=[]},7101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiCommand=void 0;const n=r(9066),i=r(3232);class o extends i.ExCommand{async execute(e){await(new n.CommandUnicodeName).exec(e.cursorStopPosition,e)}}t.AsciiCommand=o},281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BangCommand=void 0;const n=r(4880),i=r(2659),o=r(3232),s=r(8546);class a extends o.ExCommand{constructor(e){super(),this._arguments=e}neovimCapable(){return!0}getReplaceDiff(e){const t=e.split("\n"),r=t.length-1,i=t[0].match(/^\s*/),o=i?i[0].length:0;return n.PositionDiff.exactCharacter({lineOffset:-r,character:o})}async execute(e){await i.externalCommand.run(this._arguments.command)}async executeWithRange(e,t){const r=t.resolveToRange(e),n=e.document.getText(r),o=await i.externalCommand.run(this._arguments.command,n),s=this.getReplaceDiff(o);e.recordedState.transformer.addTransformation({type:"replaceText",text:o,range:r,diff:s})}}t.BangCommand=a,a.argParser=s.all.map((e=>new a({command:e})))},653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDeleteCommand=void 0;const n=r(8546),i=r(9496),o=r(3259),s=r(9220),a=r(3232),c=r(5647);class u extends a.ExCommand{constructor(e){super(),this.arguments=e}async execute(e){if(e.document.isDirty&&!this.arguments.bang)throw o.VimError.fromCode(o.ErrorCode.NoWriteSinceLastChange);if(0===this.arguments.buffers.length)await i.commands.executeCommand("workbench.action.closeActiveEditor");else for(const t of this.arguments.buffers)if("string"!=typeof t){try{await i.commands.executeCommand(`workbench.action.openEditorAtIndex${t}`)}catch(e){throw o.VimError.fromCode(o.ErrorCode.NoBuffersDeleted)}await i.commands.executeCommand("workbench.action.closeActiveEditor")}else s.StatusBar.setText(e,":bd[elete][!] {bufname} is not yet implemented (PRs are welcome!)",!0)}}t.BufferDeleteCommand=u,u.argParser=(0,n.seq)(c.bangParser.skip(n.optWhitespace),(0,n.alt)(c.numberParser,(0,n.regexp)(/\S+/)).sepBy(n.whitespace)).map((([e,t])=>new u({bang:e,buffers:t})))},3776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseCommand=void 0;const n=r(9496),i=r(3259),o=r(3232),s=r(5647);class a extends o.ExCommand{constructor(e){super(),this.bang=e}async execute(e){if(e.document.isDirty&&!this.bang)throw i.VimError.fromCode(i.ErrorCode.NoWriteSinceLastChange);if(1===n.window.visibleTextEditors.length)throw i.VimError.fromCode(i.ErrorCode.CannotCloseLastWindow);const t=e.editor.viewColumn;await n.commands.executeCommand("workbench.action.closeActiveEditor"),void 0!==n.window.activeTextEditor&&n.window.activeTextEditor.viewColumn===t&&await n.commands.executeCommand("workbench.action.previousEditor")}}t.CloseCommand=a,a.argParser=s.bangParser.map((e=>new a(e)))},2839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyCommand=void 0;const n=r(8546),i=r(9496),o=r(4880),s=r(3259),a=r(9220),c=r(3232),u=r(2917);class l extends c.ExCommand{constructor(e){super(),this.address=e}neovimCapable(){return!0}copyLines(e,t,r){var n,c,u;const l=null===(n=this.address)||void 0===n?void 0:n.resolve(e,"left",!1);if(void 0===l||l<-1||l>e.document.lineCount)return void a.StatusBar.displayError(e,s.VimError.fromCode(s.ErrorCode.InvalidAddress));rnew l(e)))},9814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteCommand=void 0;const n=r(9496),i=r(7125),o=r(9496),s=r(3232),a=r(8546),c=r(5647);class u extends s.ExCommand{constructor(e){super(),this.arguments=e}neovimCapable(){return!0}deleteRange(e,t,r){let s=new o.Position(e,0),a=new o.Position(t,0).getLineEndIncludingEOL();t0&&(s=s.getLeftThroughLineBreaks());const c=new n.Range(s,a),u=r.document.getText(c).replace(/^\r?\n/,"").replace(/\r?\n$/,"");r.recordedState.transformer.addTransformation({type:"deleteRange",range:new n.Range(s,a),manuallySetCursorPositions:!0}),r.cursorStopPosition=s.getLineBegin(),this.arguments.register&&(r.recordedState.registerName=this.arguments.register),r.currentRegisterMode=i.RegisterMode.LineWise,i.Register.put(r,u,0,!0)}async execute(e){var t;const r=null!==(t=this.arguments.count)&&void 0!==t?t:1,n=e.cursorStartPosition.line,i=n+(r-1);this.deleteRange(n,i,e)}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e);if(this.arguments.count)return e.cursorStartPosition=new o.Position(n,0),void await this.execute(e);this.deleteRange(r,n,e)}}t.DeleteCommand=u,u.argParser=a.optWhitespace.then((0,a.alt)(c.numberParser.map((e=>({register:void 0,count:e}))),(0,a.seq)(a.any.fallback(void 0),a.whitespace.then(c.numberParser).fallback(void 0)).map((([e,t])=>({register:e,count:t})))).map((({register:e,count:t})=>new u({register:e,count:t}))))},9001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DigraphsCommand=void 0;const n=r(9496),i=r(7536),o=r(9470),s=r(1797),a=r(3232),c=r(8546),u=r(5647);class l extends a.ExCommand{constructor(e){super(),this.arguments=e}makeQuickPicks(e){const t=new Array;for(const r of Object.keys(e)){const[n,i]=e[r];t.push({label:r,description:`${n} (user)`,charCodes:i})}return t}async execute(e){const t=this.makeQuickPicks(i.configuration.digraphs).concat(this.makeQuickPicks(o.DefaultDigraphs));n.window.showQuickPick(t).then((async t=>{if(t){const r=String.fromCharCode(...t.charCodes);await s.TextEditor.insert(e.editor,r)}}))}}t.DigraphsCommand=l,l.argParser=(0,c.seq)(u.bangParser,c.whitespace.then((0,c.seq)(c.any,c.any,c.whitespace.then(u.numberParser))).many()).map((([e,t])=>new l({bang:e,newDigraphs:t})))},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileCommand=t.FilePosition=void 0;const n=r(9496),i=r(5845),o=r(5458),s=r(5707),a=r(8967),c=r(3232),u=r(5647),l=r(8546);var d;!function(e){e[e.NewWindowVerticalSplit=0]="NewWindowVerticalSplit",e[e.NewWindowHorizontalSplit=1]="NewWindowHorizontalSplit"}(d=t.FilePosition||(t.FilePosition={}));class h extends c.ExCommand{constructor(e){super(),this.logger=i.Logger.get("File"),this.arguments=e}async execute(e){var t,r;const i=function(e){if("edit"===e.name)return{file:e.file,bang:e.bang,createFileIfNotExists:!0};if("enew"===e.name)return{bang:e.bang,createFileIfNotExists:!0};if("new"===e.name)return{file:e.file,position:d.NewWindowHorizontalSplit,createFileIfNotExists:!0};if("vnew"===e.name)return{file:e.file,position:d.NewWindowVerticalSplit,createFileIfNotExists:!0};if("split"===e.name)return{file:e.file,position:d.NewWindowHorizontalSplit};if("vsplit"===e.name)return{file:e.file,position:d.NewWindowVerticalSplit};throw new Error(`Unexpected FileCommand.arguments.name: ${e.name}`)}(this.arguments);if(i.bang)return void await n.commands.executeCommand("workbench.action.files.revert");const c=n.window.activeTextEditor.document.uri,u=c.fsPath;let l=!1;i.position===d.NewWindowVerticalSplit&&(await n.commands.executeCommand("workbench.action.splitEditorRight"),l=!0),i.position===d.NewWindowHorizontalSplit&&(await n.commands.executeCommand("workbench.action.splitEditorDown"),l=!0);const h=async()=>{!0===l&&(await n.commands.executeCommand("workbench.action.previousEditor"),await n.commands.executeCommand("workbench.action.closeActiveEditor"))};if(void 0===i.file)return void(!0===i.createFileIfNotExists&&(await n.commands.executeCommand("workbench.action.files.newUntitledFile"),await h()));i.file&&"file"===c.scheme&&(i.file=a(i.file));let f=c;if(""===i.file){if(!0===l)return;const e=await n.window.showOpenDialog({});e&&e.length>0&&(f=e[0])}else{i.file=i.file.replace(/^file:\/\//,"");const e=!!n.env.remoteName,{fullPath:t,path:r}=(0,o.getPathDetails)(i.file,c,e);if(t!==u){const n=(0,o.resolveUri)(t,r.sep,c,e);if(null===n)return;let a=await(0,s.doesFileExist)(n);if(a)f=n;else{const n=t+r.extname(u),i=(0,o.resolveUri)(n,r.sep,c,e);null!==i&&(a=await(0,s.doesFileExist)(i),a&&(f=i))}if(!a){if(!i.createFileIfNotExists)return void this.logger.error(`${i.file} does not exist.`);f=n.with({scheme:"untitled"})}}}const p=await n.workspace.openTextDocument(f);n.window.showTextDocument(p);const g="line_number"===(null===(t=i.cmd)||void 0===t?void 0:t.type)?i.cmd.line:"last_line"===(null===(r=i.cmd)||void 0===r?void 0:r.type)?n.window.activeTextEditor.document.lineCount-1:void 0;void 0!==g&&g>=0&&n.window.activeTextEditor.revealRange(new n.Range(new n.Position(g,0),new n.Position(g,0))),await h()}}t.FileCommand=h,h.argParsers={edit:(0,l.seq)(u.bangParser,l.optWhitespace.then(u.fileOptParser).fallback([]),l.optWhitespace.then(u.fileCmdParser).fallback(void 0),l.optWhitespace.then((0,l.regexp)(/\S+/)).fallback(void 0)).map((([e,t,r,n])=>new h({name:"edit",bang:e,opt:t,cmd:r,file:n}))),enew:u.bangParser.map((e=>new h({name:"enew",bang:e}))),new:(0,l.seq)(l.optWhitespace.then(u.fileOptParser).fallback([]),l.optWhitespace.then(u.fileCmdParser).fallback(void 0),l.optWhitespace.then((0,l.regexp)(/\S+/)).fallback(void 0)).map((([e,t,r])=>new h({name:"new",opt:e,cmd:t,file:r}))),split:(0,l.seq)(l.optWhitespace.then(u.fileOptParser).fallback([]),l.optWhitespace.then(u.fileCmdParser).fallback(void 0),l.optWhitespace.then((0,l.regexp)(/\S+/)).fallback(void 0)).map((([e,t,r])=>new h({name:"split",opt:e,cmd:t,file:r}))),vnew:(0,l.seq)(l.optWhitespace.then(u.fileOptParser).fallback([]),l.optWhitespace.then(u.fileCmdParser).fallback(void 0),l.optWhitespace.then((0,l.regexp)(/\S+/)).fallback(void 0)).map((([e,t,r])=>new h({name:"vnew",opt:e,cmd:t,file:r}))),vsplit:(0,l.seq)(l.optWhitespace.then(u.fileOptParser).fallback([]),l.optWhitespace.then(u.fileCmdParser).fallback(void 0),l.optWhitespace.then((0,l.regexp)(/\S+/)).fallback(void 0)).map((([e,t,r])=>new h({name:"vsplit",opt:e,cmd:t,file:r})))}},6349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileInfoCommand=void 0;const n=r(8546),i=r(8965),o=r(3232),s=r(5647);class a extends o.ExCommand{constructor(e){super(),this.args=e}async execute(e){(0,i.reportFileInfo)(e.cursors[0].start,e)}}t.FileInfoCommand=a,a.argParser=(0,n.seq)(s.bangParser,n.optWhitespace.then(n.all)).map((([e,t])=>new a({bang:e,fileName:t})))},6990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GotoCommand=void 0;const n=r(8546),i=r(3232),o=r(5647);class s extends i.ExCommand{constructor(e){super(),this.offset=e}gotoOffset(e,t){e.cursorStopPosition=e.document.positionAt(t)}async execute(e){var t;this.gotoOffset(e,null!==(t=this.offset)&&void 0!==t?t:0)}async executeWithRange(e,t){var r,n;void 0===this.offset&&(this.offset=null!==(n=null===(r=t.resolve(e))||void 0===r?void 0:r.end)&&void 0!==n?n:0),this.gotoOffset(e,this.offset)}}t.GotoCommand=s,s.argParser=n.optWhitespace.then(o.numberParser.fallback(void 0)).map((e=>new s(e)))},6080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GotoLineCommand=void 0;const n=r(3232);class i extends n.ExCommand{async execute(e){}async executeWithRange(e,t){e.cursorStartPosition=e.cursorStopPosition=e.cursorStopPosition.with({line:t.resolve(e).end}).obeyStartOfLine(e.document)}}t.GotoLineCommand=i},4012:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryCommand=t.HistoryCommandType=void 0;const n=r(9066),i=r(3232),o=r(5571),s=r(8546),a=r(5647);var c;!function(e){e[e.Cmd=0]="Cmd",e[e.Search=1]="Search",e[e.Expr=2]="Expr",e[e.Input=3]="Input",e[e.Debug=4]="Debug",e[e.All=5]="All"}(c=t.HistoryCommandType||(t.HistoryCommandType={}));const u=(0,s.alt)((0,s.alt)((0,a.nameAbbrevParser)("c","md"),(0,s.string)(":")).result(c.Cmd),(0,s.alt)((0,a.nameAbbrevParser)("s","earch"),(0,s.string)("/")).result(c.Search),(0,s.alt)((0,a.nameAbbrevParser)("e","xpr"),(0,s.string)("=")).result(c.Expr),(0,s.alt)((0,a.nameAbbrevParser)("i","nput"),(0,s.string)("@")).result(c.Input),(0,s.alt)((0,a.nameAbbrevParser)("d","ebug"),(0,s.string)(">")).result(c.Debug),(0,a.nameAbbrevParser)("a","ll").result(c.All));class l extends i.ExCommand{constructor(e){super(),this.arguments=e}async execute(e){switch(this.arguments.type){case c.Cmd:await(new n.CommandShowCommandHistory).exec(e.cursorStopPosition,e);break;case c.Search:await new n.CommandShowSearchHistory(o.SearchDirection.Forward).exec(e.cursorStopPosition,e);break;case c.Expr:case c.Input:case c.Debug:case c.All:throw new Error("Not implemented")}}}t.HistoryCommand=l,l.argParser=s.optWhitespace.then(u.fallback(c.Cmd)).map((e=>new l({type:e})))},7506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClearJumpsCommand=t.JumpsCommand=void 0;const n=r(9496),i=r(9909),o=r(8693),s=r(3232);class a{constructor(e,t){this.jump=e,this.label=e.fileName,this.detail=`jump ${t} line ${e.position.line+1} col ${e.position.character}`;try{this.description=e.document.lineAt(e.position).text}catch(e){this.description=void 0}}}class c extends s.ExCommand{async execute(e){const t=i.globalState.jumpTracker;if(t.hasJumps){const r=t.jumps.map(((e,t)=>new a(e,t))),i=await n.window.showQuickPick(r,{canPickMany:!1});i&&void 0!==i.jump.document&&(n.window.showTextDocument(i.jump.document),e.cursors=[new o.Cursor(i.jump.position,i.jump.position)])}else n.window.showInformationMessage("No jumps available")}}t.JumpsCommand=c;class u extends s.ExCommand{async execute(e){i.globalState.jumpTracker.clearJumps()}}t.ClearJumpsCommand=u},3059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CenterCommand=t.RightCommand=t.LeftCommand=void 0;const n=r(8546),i=r(9496),o=r(7536),s=r(3232),a=r(2917),c=r(5647);class u extends s.ExCommand{constructor(e){super(),this.args=e}async execute(e){this.executeWithRange(e,new a.LineRange(new a.Address({type:"current_line"})))}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e),o=[];for(let t=r;t<=n;t++)o.push(e.document.lineAt(t));e.recordedState.transformer.replace(new i.Range(o[0].range.start,o[o.length-1].range.end),o.map((e=>" ".repeat(this.args.indent)+e.text.slice(e.firstNonWhitespaceCharacterIndex))).join("\n"))}}t.LeftCommand=u,u.argParser=n.optWhitespace.then(c.numberParser.fallback(0)).map((e=>new u({indent:e})));class l extends s.ExCommand{constructor(e){super(),this.args=e}async execute(e){this.executeWithRange(e,new a.LineRange(new a.Address({type:"current_line"})))}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e),o=[];for(let t=r;t<=n;t++)o.push(e.document.lineAt(t));e.recordedState.transformer.replace(new i.Range(o[0].range.start,o[o.length-1].range.end),o.map((e=>" ".repeat(Math.max(0,this.args.width-(e.text.length-e.firstNonWhitespaceCharacterIndex)))+e.text.slice(e.firstNonWhitespaceCharacterIndex))).join("\n"))}}t.RightCommand=l,l.argParser=n.optWhitespace.then(c.numberParser.fallback(void 0)).map((e=>new l({width:null!=e?e:o.configuration.textwidth})));class d extends s.ExCommand{constructor(e){super(),this.args=e}async execute(e){this.executeWithRange(e,new a.LineRange(new a.Address({type:"current_line"})))}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e),o=[];for(let t=r;t<=n;t++)o.push(e.document.lineAt(t));e.recordedState.transformer.replace(new i.Range(o[0].range.start,o[o.length-1].range.end),o.map((e=>" ".repeat(Math.max(0,this.args.width-(e.text.length-e.firstNonWhitespaceCharacterIndex))/2)+e.text.slice(e.firstNonWhitespaceCharacterIndex))).join("\n"))}}t.CenterCommand=d,d.argParser=n.optWhitespace.then(c.numberParser.fallback(void 0)).map((e=>new d({width:null!=e?e:o.configuration.textwidth})))},1599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteMarksCommand=t.MarksCommand=void 0;const n=r(9496),i=r(8693),o=r(3259),s=r(3232),a=r(8546);class c{constructor(e,t){this.picked=!1,this.alwaysShow=!1,this.mark=t,this.label=t.name,t.document&&t.document!==e.document?this.description=t.document.fileName:this.description=e.document.lineAt(t.position).text.trim(),this.detail=`line ${t.position.line} col ${t.position.character}`}}class u extends s.ExCommand{constructor(e){super(),this.marksFilter=e}async execute(e){const t=e.historyTracker.getMarks().filter((e=>0===this.marksFilter.length||this.marksFilter.includes(e.name))).map((t=>new c(e,t)));if(t.length>0){const r=await n.window.showQuickPick(t,{canPickMany:!1});r&&(e.cursors=[new i.Cursor(r.mark.position,r.mark.position)])}else n.window.showInformationMessage("No marks set")}}t.MarksCommand=u,u.argParser=a.optWhitespace.then((0,a.noneOf)("|")).many().map((e=>new u(e)));class l extends s.ExCommand{constructor(e){super(),this.args=e}static resolveMarkList(e,t){const r=(e,t)=>{if(e>t)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument);const[r,n]=[e.charCodeAt(0),t.charCodeAt(0)],i=[];for(let e=r;e<=n;e++)i.push(String.fromCharCode(e));return i};if("!"===t)return r("a","z");const n=[];for(const e of t)if("string"==typeof e)n.push(e);else{if(void 0===r(e.start,e.end))throw o.VimError.fromCode(o.ErrorCode.InvalidArgument);n.concat()}return n}async execute(e){const t=l.resolveMarkList(e,this.args);e.historyTracker.removeMarks(t)}}t.DeleteMarksCommand=l,l.argParser=(0,a.alt)((0,a.string)("!"),a.whitespace.then(a.optWhitespace.then((0,a.alt)((0,a.seq)((0,a.regexp)(/[a-z]/).skip((0,a.string)("-")),(0,a.regexp)(/[a-z]/)).map((([e,t])=>({start:e,end:t}))),(0,a.seq)((0,a.regexp)(/[A-Z]/).skip((0,a.string)("-")),(0,a.regexp)(/[A-Z]/)).map((([e,t])=>({start:e,end:t}))),(0,a.seq)((0,a.regexp)(/[0-9]/).skip((0,a.string)("-")),(0,a.regexp)(/[0-9]/)).map((([e,t])=>({start:e,end:t}))),(0,a.noneOf)("-"))).many())).map((e=>new l(e)))},3151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NohlCommand=void 0;const n=r(9909),i=r(9220),o=r(3232);class s extends o.ExCommand{async execute(e){n.globalState.hl=!1,i.StatusBar.clear(e)}}t.NohlCommand=s},7221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnlyCommand=void 0;const n=r(9496),i=r(3232);class o extends i.ExCommand{async execute(e){await Promise.allSettled([n.commands.executeCommand("workbench.action.closeEditorsInOtherGroups"),n.commands.executeCommand("workbench.action.maximizeEditor"),n.commands.executeCommand("workbench.action.closePanel")])}}t.OnlyCommand=o},1641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrintCommand=void 0;const n=r(8546),i=r(9220),o=r(3232),s=r(2917);class a extends o.ExCommand{constructor(e){super(),this.args=e}async execute(e){this.executeWithRange(e,new s.LineRange(new s.Address({type:"current_line"})))}async executeWithRange(e,t){const{end:r}=t.resolve(e),n=e.document.lineAt(r);let o;o=this.args.printNumbers?this.args.printText?`${n.lineNumber+1} ${n.text}`:`${n.lineNumber+1}`:this.args.printText?`${n.text}`:"",i.StatusBar.setText(e,o)}}t.PrintCommand=a,a.argParser=e=>(0,n.succeed)(new a(e))},7629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PutExCommand=void 0;const n=r(7536),i=r(7125),o=r(9220),s=r(3259),a=r(9496),c=r(4944),u=r(3232),l=r(8546),d=r(5647);class h extends u.ExCommand{constructor(e){super(),this.arguments=e}neovimCapable(){return!0}async doPut(e,t){const r=this.arguments.register||(n.configuration.useSystemClipboard?"*":'"');if(!i.Register.isValidRegister(r))return void o.StatusBar.displayError(e,s.VimError.fromCode(s.ErrorCode.TrailingCharacters));e.recordedState.registerName=r;const a=this.arguments.bang?new c.PutBeforeFromCmdLine:new c.PutFromCmdLine;a.setInsertionLine(t.line),await a.exec(t,e)}async execute(e){await this.doPut(e,e.cursorStopPosition)}async executeWithRange(e,t){const{end:r}=t.resolve(e);await this.doPut(e,new a.Position(r,0).getLineEnd())}}t.PutExCommand=h,h.argParser=(0,l.seq)(d.bangParser,l.optWhitespace.then(l.any).fallback(void 0)).map((([e,t])=>new h({bang:e,register:t})))},5207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuitCommand=void 0;const n=r(9496),i=r(3259),o=r(3232),s=r(5647);class a extends o.ExCommand{constructor(e){super(),this.isRepeatableWithDot=!1,this.arguments=e}async execute(e){const t=n.window.visibleTextEditors.filter((t=>t.document===e.document)).length>1;if(e.document.isDirty&&!this.arguments.bang&&(!t||this.arguments.quitAll))throw i.VimError.fromCode(i.ErrorCode.NoWriteSinceLastChange);this.arguments.quitAll?await n.commands.executeCommand("workbench.action.closeAllEditors"):this.arguments.bang?await n.commands.executeCommand("workbench.action.revertAndCloseActiveEditor"):await n.commands.executeCommand("workbench.action.closeActiveEditor")}}t.QuitCommand=a,a.argParser=e=>s.bangParser.map((t=>new a({bang:t,quitAll:e})))},5580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadCommand=void 0;const n=r(1797),i=r(5707),o=r(5509),s=r(3232),a=r(5647),c=r(8546);class u extends s.ExCommand{constructor(e){super(),this.arguments=e}neovimCapable(){return!0}async execute(e){const t=await this.getTextToInsert();t&&await n.TextEditor.insert(e.editor,t)}async getTextToInsert(){if("file"in this.arguments&&this.arguments.file.length>0)return(0,i.readFileAsync)(this.arguments.file,"utf8");if("cmd"in this.arguments&&this.arguments.cmd.length>0){if(o.SUPPORT_READ_COMMAND){const e=this.arguments.cmd;return new Promise((async(t,n)=>{const{exec:i}=await Promise.resolve().then((()=>r(2081)));i(e,((e,r,i)=>{e?n(e):t(r)}))}))}return""}throw Error("Invalid arguments")}}t.ReadCommand=u,u.argParser=(0,c.seq)(c.whitespace.then(a.fileOptParser).fallback([]),c.optWhitespace.then((0,c.alt)((0,c.string)("!").then(c.all).map((e=>({cmd:e}))),(0,c.regexp)(/\S+/).map((e=>({file:e}))))).fallback(void 0)).map((([e,t])=>new u({opt:e,...t})))},4018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterCommand=void 0;const n=r(9496),i=r(7125),o=r(1149),s=r(9220),a=r(3259),c=r(3232),u=r(8546);class l extends c.ExCommand{constructor(e){super(),this.registers=e}async getRegisterDisplayValue(e){var t;let r=null===(t=await i.Register.get(e))||void 0===t?void 0:t.text;return r instanceof Array?r=r.join("\n").substr(0,100):r instanceof o.RecordedState&&(r=r.actionsRun.map((e=>e.keysPressed.join(""))).join("")),r}async displayRegisterValue(e,t){let r=await this.getRegisterDisplayValue(t);void 0===r?s.StatusBar.displayError(e,a.VimError.fromCode(a.ErrorCode.NothingInRegister,t)):(r=r.replace(/\n/g,"\\n"),n.window.showInformationMessage(`${t} ${r}`))}regSortOrder(e){const t=["-","*","+",".",":","%","#","/","="];if('"'===e)return 0;if(e>="0"&&e<="9")return 10+parseInt(e,10);if(e>="a"&&e<="z")return e.charCodeAt(0)-"a".charCodeAt(0)+100;if(t.includes(e))return 1e3+t.indexOf(e);throw new Error(`Unexpected register ${e}`)}async execute(e){if(1===this.registers.length)await this.displayRegisterValue(e,this.registers[0]);else{const e=i.Register.getKeys().filter((e=>"_"!==e&&(0===this.registers.length||this.registers.includes(e)))).sort(((e,t)=>this.regSortOrder(e)-this.regSortOrder(t))),t=new Array;for(const r of e)t.push({label:r,description:await this.getRegisterDisplayValue(r)});n.window.showQuickPick(t).then((async e=>{if(e){const t=e.description;n.window.showInformationMessage(`${e.label} ${t}`)}}))}}}t.RegisterCommand=l,l.argParser=u.optWhitespace.then(u.any.sepBy(u.optWhitespace).map((e=>new l(e))))},2987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetCommand=void 0;const n=r(8546),i=r(7536),o=r(3259),s=r(9220),a=r(3232),c=(0,n.regexp)(/[a-z]+/),u=(0,n.regexp)(/\S*/),l=n.whitespace.then((0,n.alt)((0,n.string)("no").then(c).map((e=>({type:"unset",option:e}))),(0,n.string)("inv").then(c).map((e=>({type:"invert",option:e}))),c.skip((0,n.string)("!")).map((e=>({type:"invert",option:e}))),c.skip((0,n.string)("?")).map((e=>({type:"show",option:e}))),(0,n.seq)(c.skip((0,n.string)("&")),(0,n.alt)((0,n.string)("vim"),(0,n.string)("vi"),(0,n.string)(""))).map((([e,t])=>({type:"default",option:e,source:t}))),(0,n.seq)(c.skip((0,n.oneOf)("=:")),u).map((([e,t])=>({type:"equal",option:e,value:t}))),(0,n.seq)(c.skip((0,n.string)("+=")),u).map((([e,t])=>({type:"add",option:e,value:t}))),(0,n.seq)(c.skip((0,n.string)("^=")),u).map((([e,t])=>({type:"multiply",option:e,value:t}))),(0,n.seq)(c.skip((0,n.string)("-=")),u).map((([e,t])=>({type:"subtract",option:e,value:t}))),c.map((e=>({type:"show_or_set",option:e}))))).fallback({type:"show_or_set",option:void 0});class d extends a.ExCommand{constructor(e){super(),this.operation=e}async execute(e){var t;if(void 0===this.operation.option)return;const r=null!==(t=i.optionAliases.get(this.operation.option))&&void 0!==t?t:this.operation.option,n=i.configuration[r];if(void 0===n)throw o.VimError.fromCode(o.ErrorCode.UnknownOption,r);const s="boolean"==typeof n?"boolean":"string"==typeof n?"string":"number";switch(this.operation.type){case"show_or_set":"all"===this.operation.option||("boolean"===s?i.configuration[r]=!0:this.showOption(e,r,n));break;case"show":this.showOption(e,r,n);break;case"unset":if("boolean"!==s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`no${r}`);i.configuration[r]=!1;break;case"invert":if("boolean"!==s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`inv${r}`);i.configuration[r]=!n;break;case"default":this.operation.option;break;case"equal":if("boolean"===s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`${r}=${this.operation.value}`);if("string"===s)i.configuration[r]=this.operation.value;else{const e=Number.parseInt(this.operation.value,10);if(isNaN(e))throw o.VimError.fromCode(o.ErrorCode.NumberRequiredAfterEqual,`${r}=${this.operation.value}`);i.configuration[r]=e}break;case"add":if("boolean"===s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`${r}+=${this.operation.value}`);if("string"===s)i.configuration[r]=n+this.operation.value;else{const e=Number.parseInt(this.operation.value,10);if(isNaN(e))throw o.VimError.fromCode(o.ErrorCode.NumberRequiredAfterEqual,`${r}+=${this.operation.value}`);i.configuration[r]=n+e}break;case"multiply":if("boolean"===s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`${r}^=${this.operation.value}`);if("string"===s)i.configuration[r]=this.operation.value+n;else{const e=Number.parseInt(this.operation.value,10);if(isNaN(e))throw o.VimError.fromCode(o.ErrorCode.NumberRequiredAfterEqual,`${r}^=${this.operation.value}`);i.configuration[r]=n*e}break;case"subtract":if("boolean"===s)throw o.VimError.fromCode(o.ErrorCode.InvalidArgument,`${r}-=${this.operation.value}`);if("string"===s)i.configuration[r]=n.split(this.operation.value).join("");else{const e=Number.parseInt(this.operation.value,10);if(isNaN(e))throw o.VimError.fromCode(o.ErrorCode.NumberRequiredAfterEqual,`${r}-=${this.operation.value}`);i.configuration[r]=n-e}break;default:throw this.operation,new Error("Got unexpected SetOperation.type")}}showOption(e,t,r){"boolean"==typeof r?s.StatusBar.setText(e,r?t:`no${t}`):s.StatusBar.setText(e,`${t}=${r}`)}}t.SetCommand=d,d.argParser=l.map((e=>new d(e)))},1e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShCommand=void 0;const n=r(9496),i=r(3232);class o extends i.ExCommand{async execute(e){n.window.createTerminal().show()}}t.ShCommand=o},8730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmileCommand=void 0;const n=r(9496),i=r(1797),o=r(3232);class s extends o.ExCommand{constructor(){super()}async execute(e){await n.commands.executeCommand("workbench.action.files.newUntitledFile"),await i.TextEditor.insert(n.window.activeTextEditor,s.smileText)}}t.SmileCommand=s,s.smileText='\n oooo$$$$$$$$$$$$oooo\n oo$$$$$$$$$$$$$$$$$$$$$$$$o\n oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o o$ $$ o$\n o $ oo o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o $$ $$ $$o$\n oo $ $ "$ o$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$o $$$o$$o$\n "$$$$$$o$ o$$$$$$$$$ $$$$$$$$$$$ $$$$$$$$$$o $$$$$$$$\n $$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$\n $$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$ $$$$$$$$$$$$$$ """$$$\n "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ "$$$\n $$$ o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ "$$$o\n o$$" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$o\n $$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o\n o$$$oooo$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ o$$$$$$$$$$$$$$$$$\n $$$$$$$$"$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$""""""""\n """" $$$$ "$$$$$$$$$$$$$$$$$$$$$$$$$$$$" o$$$\n "$$$o """$$$$$$$$$$$$$$$$$$"$$" $$$\n $$$o "$$""$$$$$$"""" o$$$\n $$$$o o$$$"\n "$$$$o o$$$$$$o"$$$$o o$$$$\n "$$$$$oo ""$$$$o$$$$$o o$$$$""\n ""$$$$$oooo "$$$o$$$$$$$$$"""\n ""$$$$$$$oo $$$$$$$$$$\n """"$$$$$$$$$$$\n $$$$$$$$$$$$\n $$$$$$$$$$"\n "$$$""""'},7338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortCommand=void 0;const n=r(8546),i=r(9496),o=r(4880),s=r(4379),a=r(3232),c=r(5647);class u extends a.ExCommand{constructor(e){super(),this.arguments=e}neovimCapable(){return!0}async execute(e){if((0,s.isVisualMode)(e.currentMode)){const{start:t,end:r}=e.editor.selection;await this.sortLines(e,t.line,r.line)}else await this.sortLines(e,0,e.document.lineCount-1)}async sortLines(e,t,r){var n,s;let a=[];for(let n=t;n<=r&&ne.localeCompare(t))):a.sort();this.arguments.reverse&&u.reverse();const l=u.join("\n");e.recordedState.transformer.addTransformation({type:"replaceText",range:new i.Range(t,0,r,c),text:l,diff:o.PositionDiff.exactPosition(new i.Position(t,null!==(s=null===(n=u[0].match(/\S/))||void 0===n?void 0:n.index)&&void 0!==s?s:0))})}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e);await this.sortLines(e,r,n)}}t.SortCommand=u,u.argParser=(0,n.seq)(c.bangParser,n.optWhitespace.then((0,n.oneOf)("bfilnorux").many())).map((([e,t])=>new u({reverse:e,ignoreCase:t.includes("i"),unique:t.includes("u")})))},7718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubstituteCommand=t.ReplaceString=void 0;const n=r(9496),i=r(9401),o=r(8186),s=r(3752),a=r(3259),c=r(7536),u=r(4530),l=r(9909),d=r(9220),h=r(2917),f=r(3232),p=r(5571),g=r(8546),m=r(5647),v=r(4880),y=r(8965),w=r(8113);class b{constructor(e){this.components=e}resolve(e){return this.components.map((t=>{var r;return"string"===t.type?t.value:"capture_group"===t.type&&null!==(r=null==e?void 0:e[t.group])&&void 0!==r?r:""})).join("")}}t.ReplaceString=b;const S=(0,g.seq)((0,g.string)("&").fallback(void 0),(0,g.oneOf)("cegiInp#lr").many()).map((([e,t])=>{const r={};"&"===e&&(r.keepPreviousFlags=!0);for(const e of t)switch(e){case"c":r.confirmEach=!0;break;case"e":r.suppressError=!0;break;case"g":r.replaceAll=!0;break;case"i":r.ignoreCase=!0;break;case"I":r.noIgnoreCase=!0;break;case"n":r.printCount=!0;break;case"p":r.printLastMatchedLine=!0;break;case"#":r.printLastMatchedLineWithNumber=!0;break;case"l":r.printLastMatchedLineWithList=!0;break;case"r":r.usePreviousPattern=!0}return r})),x=g.optWhitespace.then(m.numberParser).fallback(void 0);class M extends f.ExCommand{constructor(e){super(),this.arguments=e,this.abort=!1}neovimCapable(){return!this.arguments.flags.confirmEach}getSubstitutionDecorations(e,t=new h.LineRange(new h.Address({type:"current_line"}))){var r,n,i;const o=[],s=[],a=[],u="replace"===c.configuration.inccommand?s:o,{pattern:l,replace:d}=this.resolvePatterns(e,!1),f=(null===(r=this.arguments.pattern)||void 0===r?void 0:r.closed)&&c.configuration.inccommand,p=null!==(n=null==l?void 0:l.allMatches(e,{lineRange:t}))&&void 0!==n?n:[],g=(c.configuration.gdefault||c.configuration.substituteGlobalFlag)!==(null!==(i=this.arguments.flags.replaceAll)&&void 0!==i&&i),m=new Set;for(const t of p)if(g||!m.has(t.range.start.line))if(m.add(t.range.start.line),f){const r=(0,w.formatDecorationText)(d.resolve(t.groups),e.editor.options.tabSize);u.push({range:t.range,renderOptions:{["append"===c.configuration.inccommand?"after":"before"]:{contentText:r}}})}else a.push((0,w.ensureVisible)(t.range));return{substitutionAppend:o,substitutionReplace:s,searchHighlight:a}}async replaceMatchRange(e,t){if(this.arguments.flags.printCount)return 0;const r=this.arguments.replace.resolve(t.groups);if(this.arguments.flags.confirmEach){if(!await this.confirmReplacement(e,t,r))return;e.recordedState.transformer.replace(t.range,r)}else e.recordedState.transformer.replace(t.range,r);return r.split("\n").length-1-(t.groups[0].split("\n").length-1)}async confirmReplacement(e,t,r){var i,o,s,a;const c=new n.CancellationTokenSource,l=["y","n","a","q","l"];let d="";const h=(0,y.escapeCSSIcons)(`Replace with ${(0,w.formatDecorationText)(r,e.editor.options.tabSize,"\\n")} (${l.join("/")})?`),f=null!==(o=null===(i=this.cSearchHighlights)||void 0===i?void 0:i.filter((e=>!e.range.isEqual(t.range))))&&void 0!==o?o:[];return e.editor.revealRange(new n.Range(t.range.start.line,0,t.range.start.line,0)),e.editor.setDecorations(u.decoration.searchHighlight,f),e.editor.setDecorations(u.decoration.searchMatch,[(0,w.ensureVisible)(t.range)]),e.editor.setDecorations(u.decoration.confirmedSubstitution,null!==(s=this.confirmedSubstitutions)&&void 0!==s?s:[]),await n.window.showInputBox({ignoreFocusOut:!0,prompt:h,placeHolder:l.join("/"),validateInput:e=>(l.includes(e)&&(d=e,c.cancel()),h)},c.token),"q"!==d&&"l"!==d&&d?"a"===d&&(this.arguments.flags.confirmEach=void 0):this.abort=!0,("y"===d||"a"===d||"l"===d)&&(this.cSearchHighlights&&(this.cSearchHighlights=f),null===(a=this.confirmedSubstitutions)||void 0===a||a.push({range:t.range,renderOptions:{before:{contentText:(0,w.formatDecorationText)(r,e.editor.options.tabSize)}}}),!0)}resolvePatterns(e,t=!0){let{pattern:r,replace:n}=this.arguments;if(void 0===r){const e=l.globalState.substituteState;if(void 0===(null==e?void 0:e.searchPattern)||""===e.searchPattern.patternString){if(t)throw a.VimError.fromCode(a.ErrorCode.NoPreviousSubstituteRegularExpression)}else r=e.searchPattern,n=e.replaceString}else{if(""===r.patternString){const e=l.globalState.searchState;if(void 0===e||""===e.searchString){if(t)throw a.VimError.fromCode(a.ErrorCode.NoPreviousRegularExpression)}else r=e.pattern}t&&(l.globalState.substituteState=new s.SubstituteState(r,n),l.globalState.searchState=new o.SearchState(p.SearchDirection.Forward,e.cursorStopPosition,null==r?void 0:r.patternString,{}))}return{pattern:r,replace:n}}async execute(e){await this.executeWithRange(e,new h.LineRange(new h.Address({type:"current_line"})))}async executeWithRange(e,t){var r,o,s;let{start:a,end:d}=t.resolve(e);this.arguments.count&&this.arguments.count>=0&&(a=d,d=d+this.arguments.count-1),({pattern:this.arguments.pattern,replace:this.arguments.replace}=this.resolvePatterns(e));const f=(c.configuration.gdefault||c.configuration.substituteGlobalFlag)!==(null!==(r=this.arguments.flags.replaceAll)&&void 0!==r&&r),p=null!==(s=null===(o=this.arguments.pattern)||void 0===o?void 0:o.allMatches(e,{lineRange:new h.LineRange(new h.Address({type:"number",num:a+1}),",",new h.Address({type:"number",num:d+1}))}))&&void 0!==s?s:[];let g;if(f)g=p;else{const e=new Set;g=p.filter((t=>!e.has(t.range.start.line)&&(e.add(t.range.start.line),!0)))}this.arguments.flags.confirmEach&&(e.editor.setDecorations(u.decoration.substitutionAppend,[]),e.editor.setDecorations(u.decoration.substitutionReplace,[]),c.configuration.inccommand&&(this.confirmedSubstitutions=[]),c.configuration.incsearch&&(this.cSearchHighlights=g.map((e=>(0,w.ensureVisible)(e.range)))));const m=new Set;let y=0,b=0;for(const t of g){if(this.abort)break;const r=await this.replaceMatchRange(e,t);void 0!==r&&(y++,m.add(t.range.start.line),b+=r)}if(y>0){const t=Math.max(...m.values())+b,r=new n.Position(Math.max(0,t),0);l.globalState.jumpTracker.recordJump(new i.Jump({document:e.document,position:r}),i.Jump.fromStateNow(e)),e.recordedState.transformer.addTransformation({type:"moveCursor",diff:v.PositionDiff.exactPosition(r),cursorIndex:0})}this.confirmedSubstitutions=void 0,this.cSearchHighlights=void 0,e.editor.setDecorations(u.decoration.confirmedSubstitution,[]),this.setStatusBarText(e,y,m.size)}setStatusBarText(e,t,r){var n;0===t?d.StatusBar.displayError(e,a.VimError.fromCode(a.ErrorCode.PatternNotFound,null===(n=this.arguments.pattern)||void 0===n?void 0:n.patternString)):this.arguments.flags.printCount?d.StatusBar.setText(e,`${t} match${t>1?"es":""} on ${r} line${r>1?"s":""}`):t>c.configuration.report&&d.StatusBar.setText(e,`${t} substitution${t>1?"s":""} on ${r} line${r>1?"s":""}`)}}t.SubstituteCommand=M,M.argParser=g.optWhitespace.then((0,g.alt)((0,g.regexp)(/[^\w\s\\|"]{1}/).chain((e=>(0,g.seq)(p.Pattern.parser({direction:p.SearchDirection.Forward,delimiter:e}),(e=>(0,g.alt)((0,g.string)("\\").then(g.any.fallback(void 0).map((e=>void 0===e||"\\"===e?{type:"string",value:"\\"}:"/"===e?{type:"string",value:"/"}:"b"===e?{type:"string",value:"\b"}:"r"===e?{type:"string",value:"\r"}:"n"===e?{type:"string",value:"\n"}:"t"===e?{type:"string",value:"\t"}:"&"===e?{type:"capture_group",group:0}:/[0-9]/.test(e)?{type:"capture_group",group:Number.parseInt(e,10)}:{type:"string",value:`\\${e}`}))),(0,g.noneOf)(e).map((e=>({type:"string",value:e})))).many().map((e=>new b(e))))(e),(0,g.string)(e).then(S).fallback({}),x).map((([e,t,r,n])=>new M({pattern:e,replace:t,flags:r,count:n}))))),(0,g.seq)(S,x).map((([e,t])=>new M({pattern:void 0,replace:new b([]),flags:e,count:t})))))},394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabCommand=t.TabCommandType=void 0;const n=r(8546),i=r(1017),o=r(9496),s=r(3232),a=r(5647);var c;!function(e){e[e.Next=0]="Next",e[e.Previous=1]="Previous",e[e.First=2]="First",e[e.Last=3]="Last",e[e.Absolute=4]="Absolute",e[e.New=5]="New",e[e.Close=6]="Close",e[e.Only=7]="Only",e[e.Move=8]="Move"}(c=t.TabCommandType||(t.TabCommandType={}));class u extends s.ExCommand{constructor(e){super(),this.arguments=e}async executeCommandWithCount(e,t){for(let r=0;r=0&&await o.commands.executeCommand("workbench.action.openEditorAtIndex",this.arguments.count);break;case c.Next:if(void 0!==this.arguments.count&&this.arguments.count<=0)break;await this.executeCommandWithCount(this.arguments.count||1,"workbench.action.nextEditorInGroup");break;case c.Previous:if(void 0!==this.arguments.count&&this.arguments.count<=0)break;await this.executeCommandWithCount(this.arguments.count||1,"workbench.action.previousEditorInGroup");break;case c.First:await o.commands.executeCommand("workbench.action.openEditorAtIndex1");break;case c.Last:await o.commands.executeCommand("workbench.action.lastEditorInGroup");break;case c.New:if(void 0!==this.arguments.file&&""!==this.arguments.file){const e=i.isAbsolute(this.arguments.file),t=void 0!==o.workspace.workspaceFolders&&o.workspace.workspaceFolders.length>0,r=o.window.activeTextEditor.document.uri.fsPath;let n;if(e)n=this.arguments.file;else if(t){const e=o.workspace.workspaceFolders[0].uri.path;n=i.join(e,this.arguments.file)}else n=i.join(i.dirname(r),this.arguments.file);n!==r&&await o.commands.executeCommand("vscode.open",o.Uri.file(n))}else await o.commands.executeCommand("workbench.action.files.newUntitledFile");break;case c.Close:if(void 0===this.arguments.count){await o.commands.executeCommand("workbench.action.closeActiveEditor");break}if(0===this.arguments.count)break;break;case c.Only:await o.commands.executeCommand("workbench.action.closeOtherEditors");break;case c.Move:{const{count:e,direction:t}=this.arguments;let r;r=void 0!==t?{to:t,by:"tab",value:null!=e?e:1}:0===e?{to:"first"}:void 0===e?{to:"last"}:{to:"position",by:"tab",value:e+1},await o.commands.executeCommand("moveActiveEditor",r);break}}}}t.TabCommand=u,u.argParsers={bfirst:n.whitespace.then(a.fileCmdParser).fallback(void 0).map((e=>new u({type:c.First,cmd:e}))),blast:n.whitespace.then(a.fileCmdParser).fallback(void 0).map((e=>new u({type:c.Last,cmd:e}))),bnext:(0,n.seq)(a.bangParser,n.optWhitespace.then(a.fileCmdParser).fallback(void 0),n.optWhitespace.then(a.numberParser).fallback(void 0)).map((([e,t,r])=>new u({type:c.Next,bang:e,cmd:t,count:r}))),bprev:(0,n.seq)(a.bangParser,n.optWhitespace.then(a.fileCmdParser).fallback(void 0),n.optWhitespace.then(a.numberParser).fallback(void 0)).map((([e,t,r])=>new u({type:c.Previous,bang:e,cmd:t,count:r}))),tabclose:(0,n.seq)(a.bangParser,n.optWhitespace.then(a.numberParser).fallback(void 0)).map((([e,t])=>new u({type:c.Close,bang:e,count:t}))),tabonly:(0,n.seq)(a.bangParser,n.optWhitespace.then(a.numberParser).fallback(void 0)).map((([e,t])=>new u({type:c.Only,bang:e,count:t}))),tabnew:(0,n.seq)(n.optWhitespace.then(a.fileOptParser).fallback([]),n.optWhitespace.then(a.fileCmdParser).fallback(void 0),(0,n.regexp)(/\S+/).fallback(void 0)).map((([e,t,r])=>new u({type:c.New,opt:e,cmd:t,file:r}))),tabmove:n.optWhitespace.then((0,n.seq)((0,n.alt)((0,n.string)("+").result("right"),(0,n.string)("-").result("left")).fallback(void 0),a.numberParser.fallback(void 0))).map((([e,t])=>new u({type:c.Move,direction:e,count:t})))}},3698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalCommand=void 0;const n=r(8546),i=r(9496),o=r(3232);class s extends o.ExCommand{async execute(e){await i.commands.executeCommand("workbench.action.createTerminalEditor")}}t.TerminalCommand=s,s.argParser=(0,n.succeed)(new s)},1613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndoCommand=void 0;const n=r(9066),i=r(9496),o=r(3232),s=r(8546),a=r(5647);class c extends o.ExCommand{constructor(e){super(),this.count=e}async execute(e){await(new n.CommandUndo).exec(new i.Position(0,0),e)}}t.UndoCommand=c,c.argParser=s.optWhitespace.then(a.numberParser).fallback(void 0).map((e=>new c(e)))},5536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VsCodeCommand=void 0;const n=r(3259),i=r(9220),o=r(9496),s=r(3232),a=r(8546);class c extends s.ExCommand{constructor(e){super(),this.command=e}async execute(e){this.command?await o.commands.executeCommand(this.command):i.StatusBar.displayError(e,n.VimError.fromCode(n.ErrorCode.ArgumentRequired))}}t.VsCodeCommand=c,c.argParser=a.whitespace.then(a.all).map((e=>new c(e)))},9611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WallCommand=void 0;const n=r(9496),i=r(3232),o=r(5647);class s extends i.ExCommand{constructor(e){super(),this.bang=null!=e&&e}async execute(e){await n.workspace.saveAll(!1)}}t.WallCommand=s,s.argParser=o.bangParser.map((e=>new s(e)))},9500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteCommand=void 0;const n=r(5707),i=r(1017),o=r(9496),s=r(5845),a=r(9220),c=r(3232),u=r(8546),l=r(5647);class d extends c.ExCommand{constructor(e){super(),this.isRepeatableWithDot=!1,this.logger=s.Logger.get("Write"),this.arguments=e}async execute(e){if(e.document.isUntitled||"file"!==e.document.uri.scheme)await this.background(o.commands.executeCommand("workbench.action.files.save"));else try{await n.accessAsync(e.document.fileName,n.constants.W_OK),await this.save(e)}catch(t){if(this.arguments.bang)try{const t=await n.getMode(e.document.fileName);await n.chmodAsync(e.document.fileName,438),this.arguments.bgWrite=!1,await this.save(e),await n.chmodAsync(e.document.fileName,t)}catch(t){a.StatusBar.setText(e,t.message)}else a.StatusBar.setText(e,t.message)}}async save(e){await this.background(e.document.save().then((t=>{t?a.StatusBar.setText(e,`"${i.basename(e.document.fileName)}" ${e.document.lineCount}L ${e.document.getText().length}C written`):this.logger.warn(":w failed")})))}async background(e){this.arguments.bgWrite||await e}}t.WriteCommand=d,d.argParser=(0,u.seq)(l.bangParser.skip(u.optWhitespace),l.fileOptParser.skip(u.optWhitespace),(0,u.alt)((0,u.string)("!").then(u.all).map((e=>({cmd:e}))),(0,u.regexp)(/\S+/).map((e=>({file:e})))).fallback({})).map((([e,t,r])=>new d({bang:e,opt:t,bgWrite:!0,...r})))},7372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteQuitCommand=void 0;const n=r(8546),i=r(3232),o=r(5647),s=r(5207),a=r(9500);class c extends i.ExCommand{constructor(e){super(),this.isRepeatableWithDot=!1,this.args=e}async execute(e){await new a.WriteCommand({bgWrite:!1,...this.args}).execute(e),await new s.QuitCommand({bang:!1}).execute(e)}}t.WriteQuitCommand=c,c.argParser=(0,n.seq)(o.bangParser.skip(n.optWhitespace),o.fileOptParser.skip(n.optWhitespace),(0,n.regexp)(/\S+/).fallback(void 0)).map((([e,t,r])=>new c(r?{bang:e,opt:t,file:r}:{bang:e,opt:t})))},7061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteQuitAllCommand=void 0;const n=r(8546),i=r(3232),o=r(5647),s=r(9611),a=r(5207);class c extends i.ExCommand{constructor(e){super(),this.isRepeatableWithDot=!1,this.arguments=e}async execute(e){const t={bang:!1},r=new s.WallCommand(this.arguments.bang);await r.execute(e),t.quitAll=!0;const n=new a.QuitCommand(t);await n.execute(e)}}t.WriteQuitAllCommand=c,c.argParser=(0,n.seq)(o.bangParser,n.whitespace.then(o.fileOptParser).fallback([])).map((([e,t])=>new c({bang:e,fileOpt:t})))},8939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YankCommand=void 0;const n=r(8546),i=r(9496),o=r(3176),s=r(7125),a=r(3232),c=r(5647);class u extends a.ExCommand{constructor(e){super(),this.arguments=e}async yank(e,t,r){e.currentRegisterMode=s.RegisterMode.LineWise,this.arguments.register&&(e.recordedState.registerName=this.arguments.register);const n=e.cursorStopPosition;await(new o.YankOperator).run(e,t.getLineBegin(),r.getLineEnd()),e.cursorStopPosition=n}async execute(e){var t;const r=null!==(t=this.arguments.count)&&void 0!==t?t:1,n=e.cursorStartPosition,i=r?n.getDown(r-1).getLineEnd():e.cursorStopPosition;await this.yank(e,n,i)}async executeWithRange(e,t){const{start:r,end:n}=t.resolve(e);if(this.arguments.count)return e.cursorStartPosition=new i.Position(n,0),void await this.execute(e);await this.yank(e,new i.Position(r,0),new i.Position(n,0))}}t.YankCommand=u,u.argParser=n.optWhitespace.then((0,n.alt)(c.numberParser.map((e=>({register:void 0,count:e}))),(0,n.seq)(n.any.fallback(void 0),n.whitespace.then(c.numberParser).fallback(void 0)).map((([e,t])=>({register:e,count:t})))).map((({register:e,count:t})=>new u({register:e,count:t}))))},7497:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PairMatcher=void 0;const n=r(9496),i=r(7536);class o{static findPairedChar(e,t,r,i,s,a,c){let u=e.line;const l=e.character,d=a.document.lineCount,h=a.document.lineAt(e).text[e.character];if(c&&a.cursorStartPosition.isEqual(a.cursorStopPosition)&&h===t)return e;for(;o.keepSearching(u,d,s);){let o=a.document.lineAt(u).text.split("");const c=o.length;for(u===e.line&&(o=s?o.slice(l+1,c):o.slice(0,l));!(o.length<=0||i<=-1);){let e;if(e=s?o.shift():o.pop(),e===r)i++;else{if(e!==t)continue;i--}}if(i<=-1){let e;return e=s?Math.max(0,c-o.length-1):o.length,new n.Position(u,e)}s?u++:u--}}static keepSearching(e,t,r){return r?e<=t-1:e>=0}static getPercentPairing(e){for(const t of i.configuration.matchpairs.split(",")){const r=t.split(":");if(2===r.length){if(r[0]===e)return{match:r[1],isNextMatchForward:!0};if(r[1]===e)return{match:r[0],isNextMatchForward:!1}}}}static nextPairedChar(e,t,r,n){const i=this.pairings[t];if(void 0===i||i.directionless)return;const s=i.match,a=t;return o.findPairedChar(e,s,a,0,i.isNextMatchForward,r,n)}}t.PairMatcher=o,o.pairings={"(":{match:")",isNextMatchForward:!0},"{":{match:"}",isNextMatchForward:!0},"[":{match:"]",isNextMatchForward:!0},")":{match:"(",isNextMatchForward:!1},"}":{match:"{",isNextMatchForward:!1},"]":{match:"[",isNextMatchForward:!1},"<":{match:">",isNextMatchForward:!0},">":{match:"<",isNextMatchForward:!1},'"':{match:'"',isNextMatchForward:!1,directionless:!0},"'":{match:"'",isNextMatchForward:!1,directionless:!0},"`":{match:"`",isNextMatchForward:!1,directionless:!0}}},3672:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteMatcher=void 0,function(e){e[e.Opening=0]="Opening",e[e.Closing=1]="Closing"}(r||(r={}));class n{constructor(e,t){this.quoteMap=[];let i=!0;for(let o=0;o=0;t--)if(void 0!==this.quoteMap[t])return t}}t.QuoteMatcher=n,n.escapeChar="\\"},2041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagMatcher=void 0;const n=r(1797);class i{constructor(e,t,r){let o=i.TAG_REGEX.exec(e);const s=[];for(;o;)o[i.CLOSE_FORWARD_SLASH]||s.push({name:o[i.TAG_NAME],type:o[i.OPEN_FORWARD_SLASH]?"close":"open",startPos:o.index,endPos:i.TAG_REGEX.lastIndex}),o=i.TAG_REGEX.exec(e);const a=[],c=[];for(const e of s)if("open"===e.type)a.push(e);else for(let t=a.length-1;t>=0;t--){const r=a[t];if("open"===r.type&&r.name===e.name){c.push({tag:r.name,openingTagStart:r.startPos,openingTagEnd:r.endPos,closingTagStart:e.startPos,closingTagEnd:e.endPos}),a.splice(t);break}}const u=n.TextEditor.getFirstNonWhitespaceCharOnLine(r.document,r.cursorStartPosition.line),l=r.cursorStartPosition.characterd>=e.openingTagStart&&h\<\s\/]+)(?:[^\>\<]*?)(\/)?\>/g,i.OPEN_FORWARD_SLASH=1,i.TAG_NAME=2,i.CLOSE_FORWARD_SLASH=3},8693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cursor=void 0;class r{constructor(e,t){this.start=e,this.stop=t}isValid(e){return this.start.isValid(e)&&this.stop.isValid(e)}static FromVSCodeSelection(e){return new r(e.start,e.end)}equals(e){return this.start.isEqual(e.start)&&this.stop.isEqual(e.stop)}withNewStop(e){return new r(this.start,e)}withNewStart(e){return new r(e,this.stop)}toString(){return`[${this.start.toString()} | ${this.stop.toString()}]`}}t.Cursor=r},4880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sorted=t.laterOf=t.earlierOf=t.PositionDiff=void 0;const n=r(9496),i=r(7536),o=r(1797),s=r(3434),a=r(6993),c=r(8019),u=r(9496);var l;!function(e){e[e.ExactPosition=0]="ExactPosition",e[e.Offset=1]="Offset",e[e.ExactCharacter=2]="ExactCharacter",e[e.ObeyStartOfLine=3]="ObeyStartOfLine",e[e.EndOfLine=4]="EndOfLine"}(l||(l={}));class d{constructor(e,t,r){this.type=e,this.line=t,this.character=r}static identity(){return d.offset({line:0,character:0})}static offset({line:e=0,character:t=0}){return new d(l.Offset,e,t)}static exactPosition(e){return new d(l.ExactPosition,e.line,e.character)}static startOfLine(){return new d(l.ObeyStartOfLine,0,0)}static endOfLine(){return new d(l.EndOfLine,0,0)}static exactCharacter({lineOffset:e,character:t}){return new d(l.ExactCharacter,null!=e?e:0,t)}toString(){switch(this.type){case l.Offset:return`[ Diff: Offset ${this.line} ${this.character} ]`;case l.ExactCharacter:return`[ Diff: ExactCharacter ${this.line} ${this.character} ]`;case l.ExactPosition:return`[ Diff: ExactPosition ${this.line} ${this.character} ]`;case l.ObeyStartOfLine:return`[ Diff: ObeyStartOfLine ${this.line} ]`;case l.EndOfLine:return`[ Diff: EndOfLine ${this.line} ]`;default:throw this.type,new Error(`Unknown PositionDiffType: ${this.type}`)}}}t.PositionDiff=d,t.earlierOf=function(e,t){return e.isBefore(t)?e:t},t.laterOf=function(e,t){return e.isBefore(t)?t:e},t.sorted=function(e,t){return e.isBefore(t)?[e,t]:[t,e]},u.Position.prototype.toString=function(){return`[${this.line}, ${this.character}]`},u.Position.prototype.add=function(e,t,r=!0){if(t.type===l.ExactPosition)return new u.Position(t.line,t.character);const n=(0,s.clamp)(this.line+t.line,0,e.lineCount-1);let i;if(t.type===l.Offset)i=this.character+t.character;else if(t.type===l.ExactCharacter)i=t.character;else if(t.type===l.ObeyStartOfLine)i=this.obeyStartOfLine(e).character;else{if(t.type!==l.EndOfLine)throw new Error(`Unknown PositionDiffType: ${t.type}`);i=this.getLineEnd().character}const o=new u.Position(n,Math.max(i,0));return r?e.validatePosition(o):o},u.Position.prototype.subtract=function(e){return d.offset({line:this.line-e.line,character:this.character-e.character})},u.Position.prototype.withColumn=function(e){return e=(0,s.clamp)(e,0,o.TextEditor.getLineLength(this.line)),new u.Position(this.line,e)},u.Position.prototype.getLeft=function(e=1){return new u.Position(this.line,Math.max(this.character-e,0))},u.Position.prototype.getRight=function(e=1){return new u.Position(this.line,Math.min(this.character+e,o.TextEditor.getLineLength(this.line)))},u.Position.prototype.getDown=function(e=1){if(n.window.activeTextEditor){const t=Math.min(this.line+e,o.TextEditor.getLineCount()-1);return new u.Position(t,Math.min(this.character,o.TextEditor.getLineLength(t)))}return this.translate({lineDelta:e})},u.Position.prototype.getUp=function(e=1){const t=Math.max(this.line-e,0);return new u.Position(t,Math.min(this.character,o.TextEditor.getLineLength(t)))},u.Position.prototype.getLeftThroughLineBreaks=function(e=!0){return this.isLineBeginning()?0===this.line?this:e?this.getUp().getLineEnd():this.getUp().getLineEnd().getLeft():this.getLeft()},u.Position.prototype.getRightThroughLineBreaks=function(e=!1){if(this.isAtDocumentEnd())return this;if(this.line=0;)t.push(r),r=e.indexOf("\n",r+1);return 0===t.length?new u.Position(this.line,this.character+e.length):new u.Position(this.line+t.length,e.length-(t[t.length-1]+1))},u.Position.prototype.isLineBeginning=function(){return 0===this.character},u.Position.prototype.isLineEnd=function(){return this.character>=o.TextEditor.getLineLength(this.line)},u.Position.prototype.isFirstWordOfLine=function(e){return o.TextEditor.getFirstNonWhitespaceCharOnLine(e,this.line).character===this.character},u.Position.prototype.isAtDocumentBegin=function(){return 0===this.line&&this.isLineBeginning()},u.Position.prototype.isAtDocumentEnd=function(){return this.line===o.TextEditor.getLineCount()-1&&this.isLineEnd()},u.Position.prototype.isInLeadingWhitespace=function(e){return/^\s+$/.test(e.getText(new n.Range(this.getLineBegin(),this)))},u.Position.prototype.obeyStartOfLine=function(e){return i.configuration.startofline?o.TextEditor.getFirstNonWhitespaceCharOnLine(e,this.line):this},u.Position.prototype.isValid=function(e){try{const t=o.TextEditor.getLineCount(e)||1;if(this.line>=t)return!1;const r=o.TextEditor.getLineLength(this.line);if(this.character>r+1)return!1}catch(e){return!1}return!0}},6346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumericString=void 0;class r{constructor(e,t,r,n,i,o){this.value=e,this.radix=t,this.numLength=r,this.prefix=n,this.suffix=i,this.negative=o}static parse(e){let t=-1,n=-1,i=-1,o=!1;for(const{regex:s,radix:a}of r.matchings){const r=s.exec(e);null!=r&&(i<0||r.indexn)&&(t=r.index,n=r[0].length,i=a,o="-"===r[1])}if(i<0)return;const s=t+n,a=e.slice(0,t),c=e.slice(t,s),u=e.slice(s,e.length);let l=parseInt(c,i);const d=n-r.numPrefix[i].length-(o?1:0);let h=!1;return 10!==i&&o&&(l=-l,h=!0),{num:new r(l,i,d,a,u,h),suffixOffset:s}}toString(){if(10!==this.radix){const e=4294967295;for(;this.value<0;)this.value=e+this.value+1}let e=Math.abs(this.value).toString(this.radix);if(10!==this.radix){const t=this.numLength-e.length;t>0&&(e="0".repeat(t)+e)}const t=(this.negative||this.value<0?"-":"")+r.numPrefix[this.radix]+e;return this.prefix+t+this.suffix}}t.NumericString=r,r.numPrefix={8:"0",10:"",16:"0x"},r.matchings=[{regex:/(-)?0[0-7]+/,radix:8},{regex:/(-)?\d+/,radix:10},{regex:/(-)?0x[\da-fA-F]+/,radix:16}]},4490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineCompletionProvider=t.getCompletionsForCurrentLine=void 0;const n=r(9496),i=r(1797),o=(e,t,r)=>{const n=e=>{let n=r?t-e:e-t;return n<0&&(n=t+Math.abs(n)),n};return e.getText().split("\n").map(((e,t)=>({sortPriority:n(t),text:e.replace(/^[ \t]*/,"")}))).sort(((e,t)=>e.sortPriority>t.sortPriority?1:-1))};t.getCompletionsForCurrentLine=(e,t)=>((e,t,r)=>{const i=[];for(const s of(e=>[...n.workspace.textDocuments].sort(((t,r)=>t.fileName===e?-1:r.fileName===e?1:0)))(t)){let n=0,a=!1;s.fileName===t&&(n=r.line,a=!0);for(const t of o(s,n,a))!i.includes(t.text)&&t.text&&t.text.startsWith(e)&&t.text!==e&&i.push(t.text)}return i})(t.getText(new n.Range(i.TextEditor.getFirstNonWhitespaceCharOnLine(t,e.line),e)),t.fileName,e),t.lineCompletionProvider={showLineCompletionsQuickPick:async(e,r)=>{const o=(0,t.getCompletionsForCurrentLine)(e,r.document);if(!o)return;const s=await n.window.showQuickPick(o);s&&(r.recordedState.transformer.delete(new n.Range(i.TextEditor.getFirstNonWhitespaceCharOnLine(r.document,e.line),e.getLineEnd())),r.recordedState.transformer.addTransformation({type:"insertTextVSCode",text:s}))}}},7536:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.configuration=t.optionAliases=t.extensionVersion=void 0;const i=r(9496),o=r(2253),s=r(4627),a=r(3856),c=r(3018),u=r(4530),l=r(7282),d=r(4147),h=r(5509);t.extensionVersion=d.version,t.optionAliases=new Map([["ai","autoindent"],["et","expandtab"],["gd","gdefault"],["hi","history"],["hls","hlsearch"],["ic","ignorecase"],["icm","inccommand"],["is","incsearch"],["isk","iskeyword"],["js","joinspaces"],["mmd","maxmapdepth"],["mps","matchpairs"],["nu","number"],["rnu","relativenumber"],["sc","showcmd"],["scr","scroll"],["scs","smartcase"],["smd","showmode"],["sol","startofline"],["to","timeout"],["ts","tabstop"],["tw","textwidth"],["ws","wrapscan"],["ww","whichwrap"]]);class f{constructor(){this.leaderDefault="\\",this.cursorTypeMap={line:i.TextEditorCursorStyle.Line,block:i.TextEditorCursorStyle.Block,underline:i.TextEditorCursorStyle.Underline,"line-thin":i.TextEditorCursorStyle.LineThin,"block-outline":i.TextEditorCursorStyle.BlockOutline,"underline-thin":i.TextEditorCursorStyle.UnderlineThin},this.handleKeys=[],this.useSystemClipboard=!1,this.shell="",this.useCtrlKeys=!1,this.overrideCopy=!0,this.textwidth=80,this.hlsearch=!1,this.ignorecase=!0,this.smartcase=!0,this.autoindent=!0,this.matchpairs="(:),{:},[:]",this.joinspaces=!0,this.camelCaseMotion={enable:!0},this.replaceWithRegister=!1,this.smartRelativeLine=!1,this.sneak=!1,this.sneakUseIgnorecaseAndSmartcase=!1,this.sneakReplacesF=!1,this.surround=!0,this.argumentObjectSeparators=[","],this.argumentObjectOpeningDelimiters=["(","["],this.argumentObjectClosingDelimiters=[")","]"],this.easymotion=!1,this.easymotionMarkerBackgroundColor="#0000",this.easymotionMarkerForegroundColorOneChar="#ff0000",this.easymotionMarkerForegroundColorTwoChar="#ffa500",this.easymotionMarkerForegroundColorTwoCharFirst="#ffb400",this.easymotionMarkerForegroundColorTwoCharSecond="#b98300",this.easymotionIncSearchForegroundColor="#7fbf00",this.easymotionDimColor="#777777",this.easymotionMarkerWidthPerChar=8,this.easymotionDimBackground=!0,this.easymotionMarkerFontFamily="Consolas",this.easymotionMarkerFontSize="14",this.easymotionMarkerFontWeight="bold",this.easymotionMarkerMargin=0,this.easymotionKeys="hklyuiopnm,qwertzxcvbasdgjf;",this.easymotionJumpToAnywhereRegex="\\b[A-Za-z0-9]|[A-Za-z0-9]\\b|_.|#.|[a-z][A-Z]",this.autoSwitchInputMethod={enable:!1,defaultIM:"",obtainIMCmd:"",switchIMCmd:""},this.timeout=1e3,this.maxmapdepth=1e3,this.showcmd=!0,this.showmodename=!0,this.leader=this.leaderDefault,this.history=50,this.inccommand="",this.incsearch=!0,this.startInInsertMode=!1,this.statusBarColorControl=!1,this.statusBarColors={normal:"#005f5f",insert:"#5f0000",visual:"#5f00af",visualline:"#005f87",visualblock:"#86592d",replace:"#000000"},this.debug={silent:!1,loggingLevelForAlert:"error",loggingLevelForConsole:"error"},this.searchHighlightColor="",this.searchHighlightTextColor="",this.searchMatchColor="",this.searchMatchTextColor="",this.substitutionColor="#50f01080",this.substitutionTextColor="",this.highlightedyank={enable:!1,color:"rgba(250, 240, 170, 0.5)",textColor:"",duration:200},this.boundKeyCombinations=[],this.visualstar=!1,this.mouseSelectionGoesIntoVisualMode=!0,this.changeWordIncludesWhitespace=!1,this.foldfix=!1,this.disableExtension=!1,this.enableNeovim=!1,this.neovimPath="",this.neovimUseConfigFile=!1,this.neovimConfigPath="",this.vimrc={enable:!1,path:""},this.digraphs={},this.gdefault=!1,this.substituteGlobalFlag=!1,this.whichwrap="b,s",this.startofline=!0,this.showMarksInGutter=!1,this.report=2,this.wrapscan=!0,this.scroll=0,this.cursorStylePerMode={normal:void 0,insert:void 0,visual:void 0,visualline:void 0,visualblock:void 0,replace:void 0},this.insertModeKeyBindings=[],this.insertModeKeyBindingsNonRecursive=[],this.normalModeKeyBindings=[],this.normalModeKeyBindingsNonRecursive=[],this.operatorPendingModeKeyBindings=[],this.operatorPendingModeKeyBindingsNonRecursive=[],this.visualModeKeyBindings=[],this.visualModeKeyBindingsNonRecursive=[],this.commandLineModeKeyBindings=[],this.commandLineModeKeyBindingsNonRecursive=[],this.insertModeKeyBindingsMap=new Map,this.normalModeKeyBindingsMap=new Map,this.operatorPendingModeKeyBindingsMap=new Map,this.visualModeKeyBindingsMap=new Map,this.commandLineModeKeyBindingsMap=new Map}async load(){const e=o.Globals.isTesting?o.Globals.mockConfiguration:this.getConfiguration("vim");for(const t in this){let r=e[t];null!=r&&(r.constructor.name===Object.name&&(r=f.unproxify(r)),this[t]=r)}h.SUPPORT_VIMRC&&this.vimrc.enable&&await Promise.resolve().then((()=>r(1971))).then((e=>e.vimrc.load(this))),this.leader=s.Notation.NormalizeKey(this.leader,this.leaderDefault),this.clearKeyBindingsMaps();const n=await c.configurationValidator.validate(t.configuration);this.boundKeyCombinations=[];for(const e of d.contributes.keybindings){if(e.when.includes("listFocus"))continue;if(e.command.startsWith("notebook"))continue;let t=e.key;"darwin"===l.platform?t=e.mac||t:"linux"===l.platform&&(t=e.linux||t),this.boundKeyCombinations.push({key:s.Notation.NormalizeKey(t,this.leader),command:e.command})}u.decoration.load(this);for(const e of this.boundKeyCombinations){let t=!0;const r=this.handleKeys[e.key];void 0!==r?t=r:this.useCtrlKeys||"C-"!==e.key.slice(1,3)||(t=!(""!==e.key||!this.overrideCopy)),a.VSCodeContext.set(`vim.use${e.key}`,t)}return a.VSCodeContext.set("vim.overrideCopy",this.overrideCopy),a.VSCodeContext.set("vim.overrideCtrlC",this.overrideCopy||this.useCtrlKeys),n}getConfiguration(e=""){var t;const r=null===(t=i.window.activeTextEditor)||void 0===t?void 0:t.document,n=r?{uri:r.uri,languageId:r.languageId}:void 0;return i.workspace.getConfiguration(e,n)}cursorStyleFromString(e){return this.cursorTypeMap[e]}clearKeyBindingsMaps(){this.normalModeKeyBindingsMap=new Map,this.insertModeKeyBindingsMap=new Map,this.visualModeKeyBindingsMap=new Map,this.commandLineModeKeyBindingsMap=new Map,this.operatorPendingModeKeyBindingsMap=new Map}get editorCursorStyle(){return this.cursorStyleFromString(this.editorCursorStyleRaw)}set editorCursorStyle(e){}getScrollLines(e){return 0===this.scroll?Math.ceil((e[0].end.line-e[0].start.line)/2):this.scroll}getCursorStyleForMode(e){const t=this.cursorStylePerMode[e.toLowerCase()];if(t)return this.cursorStyleFromString(t)}static unproxify(e){const t={};for(const r in e){const n=e[r];null!=n&&(t[r]=n)}return t}}function p(e){return(t,r)=>{Object.defineProperty(t,r,{get(){let t=this["_"+r];return void 0!==t&&""!==t||(t=this.getConfiguration("editor").get(e.settingName,e.defaultValue),e.map&&void 0!==t&&(t=e.map.get(t))),t},set(t){if(this["_"+r]=t,void 0!==t&&""!==t&&!o.Globals.isTesting){if(e.map)for(const[r,n]of e.map.entries())if(t===n){t=r;break}this.getConfiguration("editor").update(e.settingName,t,i.ConfigurationTarget.Global)}},enumerable:!0,configurable:!0})}}n([p({settingName:"tabSize",defaultValue:8})],f.prototype,"tabstop",void 0),n([p({settingName:"cursorStyle",defaultValue:"line"})],f.prototype,"editorCursorStyleRaw",void 0),n([p({settingName:"insertSpaces",defaultValue:!1})],f.prototype,"expandtab",void 0),n([p({settingName:"lineNumbers",defaultValue:!0,map:new Map([["on",!0],["off",!1],["relative",!1],["interval",!1]])})],f.prototype,"number",void 0),n([p({settingName:"lineNumbers",defaultValue:!1,map:new Map([["on",!1],["off",!1],["relative",!0],["interval",!1]])})],f.prototype,"relativenumber",void 0),n([p({settingName:"wordSeparators",defaultValue:"/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"})],f.prototype,"iskeyword",void 0),n([p({settingName:"wordWrap",defaultValue:!1,map:new Map([["on",!0],["off",!1],["wordWrapColumn",!0],["bounded",!0]])})],f.prototype,"wrap",void 0),t.configuration=new f},3018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configurationValidator=void 0;const n=r(9518);t.configurationValidator=new class{constructor(){this.validators=[]}registerValidator(e){this.validators.push(e)}async validate(e){const t=new n.ValidatorResults;for(const r of this.validators){const n=await r.validate(e);n.hasError&&r.disable(e),t.concat(n)}return t}}},4530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decoration=void 0;const n=r(9496);t.decoration=new class{constructor(){this._markDecorationCache=new Map,this.confirmedSubstitution=n.window.createTextEditorDecorationType({letterSpacing:"-9999999px",opacity:"0"})}_createMarkDecoration(e){const t=['',"",'',`${e}`,""].join(""),r=n.Uri.parse(`data:image/svg+xml;utf8,${encodeURI(t)}`,!0);return n.window.createTextEditorDecorationType({isWholeLine:!1,gutterIconPath:r,gutterIconSize:"cover"})}set default(e){this._default&&this._default.dispose(),this._default=e}get default(){return this._default}set searchHighlight(e){this._searchHighlight&&this._searchHighlight.dispose(),this._searchHighlight=e}get searchHighlight(){return this._searchHighlight}set searchMatch(e){this._searchMatch&&this._searchMatch.dispose(),this._searchMatch=e}get searchMatch(){return this._searchMatch}set substitutionAppend(e){this._substitutionAppend&&this._substitutionAppend.dispose(),this._substitutionAppend=e}get substitutionAppend(){return this._substitutionAppend}set substitutionReplace(e){this._substitutionReplace&&this._substitutionReplace.dispose(),this._substitutionReplace=e}get substitutionReplace(){return this._substitutionReplace}get easyMotionIncSearch(){return this._easyMotionIncSearch}set easyMotionIncSearch(e){this._easyMotionIncSearch&&this._easyMotionIncSearch.dispose(),this._easyMotionIncSearch=e}get easyMotionDimIncSearch(){return this._easyMotionDimIncSearch}set easyMotionDimIncSearch(e){this._easyMotionDimIncSearch&&this._easyMotionDimIncSearch.dispose(),this._easyMotionDimIncSearch=e}getOrCreateMarkDecoration(e){const t=this.getMarkDecoration(e);if(t)return t;{const t=this._createMarkDecoration(e);return this._markDecorationCache.set(e,t),t}}getMarkDecoration(e){return this._markDecorationCache.get(e)}allMarkDecorations(){return this._markDecorationCache.values()}set insertModeVirtualCharacter(e){this._insertModeVirtualCharacter&&this._insertModeVirtualCharacter.dispose(),this._insertModeVirtualCharacter=e}get insertModeVirtualCharacter(){return this._insertModeVirtualCharacter}set operatorPendingModeCursor(e){this._operatorPendingModeCursor&&this._operatorPendingModeCursor.dispose(),this._operatorPendingModeCursor=e}get operatorPendingModeCursor(){return this._operatorPendingModeCursor}set operatorPendingModeCursorChar(e){this._operatorPendingModeCursorChar&&this._operatorPendingModeCursorChar.dispose(),this._operatorPendingModeCursorChar=e}get operatorPendingModeCursorChar(){return this._operatorPendingModeCursorChar}load(e){this.default=n.window.createTextEditorDecorationType({backgroundColor:new n.ThemeColor("editorCursor.foreground"),borderColor:new n.ThemeColor("editorCursor.foreground"),dark:{color:"rgb(81,80,82)"},light:{color:"rgb(255, 255, 255)"},borderStyle:"solid",borderWidth:"1px"});const t=e.searchHighlightColor?e.searchHighlightColor:new n.ThemeColor("editor.findMatchHighlightBackground");this.searchHighlight=n.window.createTextEditorDecorationType({backgroundColor:t,color:e.searchHighlightTextColor,overviewRulerColor:new n.ThemeColor("editorOverviewRuler.findMatchForeground"),after:{color:"transparent",backgroundColor:t}});const r=e.searchMatchColor?e.searchMatchColor:new n.ThemeColor("editor.findMatchBackground");this.searchMatch=n.window.createTextEditorDecorationType({backgroundColor:r,color:e.searchMatchTextColor,overviewRulerColor:new n.ThemeColor("editorOverviewRuler.findMatchForeground"),after:{color:"transparent",backgroundColor:r}});const i=e.substitutionColor?e.substitutionColor:new n.ThemeColor("editor.findMatchBackground");this.substitutionAppend=n.window.createTextEditorDecorationType({backgroundColor:t,color:e.searchHighlightTextColor,overviewRulerColor:new n.ThemeColor("editorOverviewRuler.findMatchForeground"),after:{color:e.substitutionTextColor,backgroundColor:i}}),this.substitutionReplace=n.window.createTextEditorDecorationType({letterSpacing:"-9999999px",opacity:"0",overviewRulerColor:new n.ThemeColor("editorOverviewRuler.findMatchForeground"),before:{color:e.substitutionTextColor,backgroundColor:i}}),this.easyMotionIncSearch=n.window.createTextEditorDecorationType({color:e.easymotionIncSearchForegroundColor,fontWeight:e.easymotionMarkerFontWeight}),this.easyMotionDimIncSearch=n.window.createTextEditorDecorationType({color:e.easymotionDimColor}),this.insertModeVirtualCharacter=n.window.createTextEditorDecorationType({color:"transparent",before:{color:"currentColor",backgroundColor:new n.ThemeColor("editor.background"),borderColor:new n.ThemeColor("editor.background"),margin:"0 -1ch 0 0",height:"100%"}}),this.operatorPendingModeCursor=n.window.createTextEditorDecorationType({before:{color:"transparent",margin:"0 -1ch 0 0;\n position: absolute;\n bottom: 0;\n line-height: 0;",height:"50%",backgroundColor:new n.ThemeColor("editorCursor.foreground")}}),this.operatorPendingModeCursorChar=n.window.createTextEditorDecorationType({color:"black",before:{color:"currentcolor",margin:"0 -1ch 0 0;\n position: absolute;\n mix-blend-mode: exclusion;",height:"100%"}})}}},9518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidatorResults=void 0,t.ValidatorResults=class{constructor(){this.errors=new Array}append(e){this.errors.push(e)}concat(e){this.errors=this.errors.concat(e.get())}get(){return this.errors}get numErrors(){return this.errors.filter((e=>"error"===e.level)).length}get hasError(){return this.numErrors>0}get numWarnings(){return this.errors.filter((e=>"warning"===e.level)).length}get hasWarning(){return this.numWarnings>0}}},4627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Notation=void 0;class r{static ToControlCharacter(e){return""===e?"\t":e}static IsControlKey(e){return e=e.toLocaleUpperCase(),this.isSurroundedByAngleBrackets(e)&&""!==e&&""!==e&&""!==e}static NormalizeKey(e,t){if("string"!=typeof e)return e;if(1===e.length)return e;if(e=e.toLocaleLowerCase(),this.isSurroundedByAngleBrackets(e)||(e=`<${e}>`),""===e)return t;if(["","","",""].includes(e))return e;for(const[t,r]of this.notationMap)e=e.replace(t,r);return this.shiftedLetterRegex.test(e)&&(e=e[3].toUpperCase()),e}static printableKey(e,t){const r=this.NormalizeKey(e,t);return" "===r?"":"\n"===r?"":r}static isSurroundedByAngleBrackets(e){return e.startsWith("<")&&e.endsWith(">")}}t.Notation=r,r.notationMap=[[/ctrl\+|c\-/gi,"C-"],[/cmd\+|d\-/gi,"D-"],[/shift\+|s\-/gi,"S-"],[/escape|esc/gi,"Esc"],[/backspace|bs/gi,"BS"],[/delete|del/gi,"Del"],[/home/gi,"Home"],[/end/gi,"End"],[/insert/gi,"Insert"],[//gi," "],[/||/gi,"\n"]],r.shiftedLetterRegex=//},9769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Remapper=t.Remappers=void 0;const n=r(9496),i=r(5845),o=r(4379),s=r(7536),a=r(9220),c=r(3259),u=r(3403),l=r(3243);t.Remappers=class{constructor(){this.remappers=[new f,new p,new m,new v,new g]}get isPotentialRemap(){return this.remappers.some((e=>e.isPotentialRemap))}async sendKey(e,t){for(const r of this.remappers)if(await r.sendKey(e,t))return!0;return!1}};class d{constructor(e,t){this.logger=i.Logger.get("Remapper"),this._isPotentialRemap=!1,this.hasPotentialRemap=!1,this.configKey=e,this.remappedModes=t}get isPotentialRemap(){return this._isPotentialRemap}async sendKey(e,t){var r,n,i;const{vimState:l,remapState:h}=t;this._isPotentialRemap=!1;const f=l.recordedState.allowPotentialRemapOnFirstKey;let p=[],g=!0;if(!this.remappedModes.includes(l.currentModeIncludingPseudoModes))return!1;const m=s.configuration[this.configKey];if(e[e.length-1]===u.SpecialKeys.TimeoutFinished&&(e=e.slice(0,e.length-1),g=!1),0===e.length)return!0;this.logger.debug(`trying to find matching remap. keys=${e}. mode=${o.Mode[l.currentMode]}. keybindings=${this.configKey}.`);let v=this.findMatchingRemap(m,e,l.currentMode),y=d.hasPotentialRemap(e,m);if(this._isPotentialRemap=y&&g&&f,!v&&(this.hasAmbiguousRemap||this.hasPotentialRemap)&&(!y||!g)&&e.length>1&&(this.hasAmbiguousRemap&&(v=this.hasAmbiguousRemap,y=!1,this._isPotentialRemap=!1,p=l.recordedState.commandList.slice(v.before.length),this.hasAmbiguousRemap=void 0),!v)){if(g||(e.push(u.SpecialKeys.TimeoutFinished),this.logger.debug(`${this.configKey}. timeout finished, handling timed out buffer keys without allowing a new timeout.`)),this.logger.debug(`${this.configKey}. potential remap broken. resending keys without allowing a potential remap on first key. keys=${e}`),this.hasPotentialRemap=!1,l.recordedState.allowPotentialRemapOnFirstKey=!1,l.recordedState.resetCommandList(),h.wasPerformingRemapThatFinishedWaitingForTimeout){const r=h.wasPerformingRemapThatFinishedWaitingForTimeout.after.length,n=e.slice(r);e=e.slice(0,r);try{h.isCurrentlyPerformingRecursiveRemapping=!0,await t.handleMultipleKeyEvents(e)}catch(e){e instanceof c.ForceStopRemappingError&&this.logger.debug(`${this.configKey}. Stopped the remapping in the middle, ignoring the rest. Reason: ${e.message}`)}finally{h.isCurrentlyPerformingRecursiveRemapping=!1,h.wasPerformingRemapThatFinishedWaitingForTimeout=!1,await t.handleMultipleKeyEvents(n)}}else await t.handleMultipleKeyEvents(e);return!0}if(y&&g&&f)return v?(this.hasAmbiguousRemap=v,this.logger.debug(`${this.configKey}. ambiguous match found. before=${v.before}. after=${v.after}. command=${v.commands}. waiting for other key or timeout to finish.`)):(this.hasPotentialRemap=!0,this.logger.debug(`${this.configKey}. potential remap found. waiting for other key or timeout to finish.`)),l.recordedState.bufferedKeys=[...e],l.recordedState.bufferedKeysTimeoutObj=setTimeout((()=>{t.handleKeyEvent(u.SpecialKeys.TimeoutFinished)}),s.configuration.timeout),!0;if(v){if(!g){const e={...v};e.after=null===(r=v.after)||void 0===r?void 0:r.slice(0),null===(n=e.after)||void 0===n||n.push(u.SpecialKeys.TimeoutFinished),v=e}this.hasAmbiguousRemap=void 0,this.hasPotentialRemap=!1;let e=!1;const o=h.isCurrentlyPerformingRemapping;o||(h.mapDepth=0),v.recursive?(h.isCurrentlyPerformingRecursiveRemapping=!0,(null===(i=v.after)||void 0===i?void 0:i.join("").startsWith(v.before.join("")))&&(e=!0)):h.isCurrentlyPerformingNonRecursiveRemapping=!0,h.mapDepth++,this.logger.debug(`${this.configKey}. match found. before=${v.before}. after=${v.after}. command=${v.commands}. remainingKeys=${p}. mapDepth=${h.mapDepth}.`);let d=!1;try{if(h.mapDepth>=s.configuration.maxmapdepth){const e=c.VimError.fromCode(c.ErrorCode.RecursiveMapping);throw a.StatusBar.displayError(l,e),c.ForceStopRemappingError.fromVimError(e)}if(h.mapDepth%10==0){const e=e=>new Promise((t=>setTimeout(t,e)));await e(0)}h.remapUsedACharacter=!1,await this.handleRemapping(v,t,e)}catch(e){if(!(e instanceof c.ForceStopRemappingError))throw this.logger.debug(`${this.configKey}. error found in the middle of remapping, ignoring the rest of the remap. error: ${e}`),e;if(d=!0,o)throw e;this.logger.debug(`${this.configKey}. Stopped the remapping in the middle, ignoring the rest. Reason: ${e.message}`)}finally{if(!o&&h.isCurrentlyPerformingRecursiveRemapping&&(void 0!==l.recordedState.bufferedKeysTimeoutObj&&(h.wasPerformingRemapThatFinishedWaitingForTimeout={...v}),h.isCurrentlyPerformingRecursiveRemapping=!1,h.forceStopRecursiveRemapping=!1),o||l.historyTracker.finishCurrentStep(),h.isCurrentlyPerformingNonRecursiveRemapping=!1,p.length>0&&(!d||!o))if(h.wasPerformingRemapThatFinishedWaitingForTimeout){let e="";p[p.length-1]===u.SpecialKeys.TimeoutFinished&&(e=p.pop());const r=h.wasPerformingRemapThatFinishedWaitingForTimeout.after.slice(v.before.length),n=p.slice(r.length);p=p.slice(0,p.length-n.length),e&&(p.push(e),0!==n.length&&n.push(e));try{h.isCurrentlyPerformingRecursiveRemapping=!0,await t.handleMultipleKeyEvents(p)}catch(e){this.logger.debug(`${this.configKey}. Stopped the remapping in the middle, ignoring the rest. Reason: ${e.message}`)}finally{h.isCurrentlyPerformingRecursiveRemapping=!1,h.wasPerformingRemapThatFinishedWaitingForTimeout=!1,n.length>0&&await t.handleMultipleKeyEvents(n)}}else await t.handleMultipleKeyEvents(p)}return!0}return this.hasPotentialRemap=!1,this.hasAmbiguousRemap=void 0,!1}async handleRemapping(e,t,r){const{vimState:i,remapState:o}=t;if(i.recordedState.resetCommandList(),e.after&&(r?(o.isCurrentlyPerformingNonRecursiveRemapping=!0,await t.handleKeyEvent(e.after[0]),o.isCurrentlyPerformingNonRecursiveRemapping=!1,await t.handleMultipleKeyEvents(e.after.slice(1))):await t.handleMultipleKeyEvents(e.after)),e.commands){const r=i.recordedState.count||1;i.recordedState.count=0;for(let o=0;o=n[0];r--){const n=t.slice(-r).join("");if(this.logger.verbose(`key=${t}. keySlice=${n}.`),e.has(n)){const t=o.slice(0,o.length-n.length);if(t.length>0&&!/^[0-9]+$/.test(t)){this.logger.verbose(`key sequences need to match precisely. precedingKeys=${t}.`);break}return e.get(n)}}}static getRemappedKeysLengthRange(e){if(0===e.size)return[0,0];const t=Array.from(e.values()).map((e=>e.before.length));return[Math.min(...t),Math.max(...t)]}static hasPotentialRemap(e,t,r=!1){const n=e.join(""),i=/^<([^>]+)>/;if(""!==n)for(const e of t.keys())if(e.startsWith(n)&&(e!==n||r)){if(n.startsWith("<")&&!i.test(n)&&i.test(e))continue;return!0}return!1}}function h(e){return`${e}ModeKeyBindingsMap`}t.Remapper=d;class f extends d{constructor(){super(h("insert"),[o.Mode.Insert,o.Mode.Replace])}}class p extends d{constructor(){super(h("normal"),[o.Mode.Normal])}}class g extends d{constructor(){super(h("operatorPending"),[o.Mode.OperatorPendingMode])}}class m extends d{constructor(){super(h("visual"),[o.Mode.Visual,o.Mode.VisualLine,o.Mode.VisualBlock])}}class v extends d{constructor(){super(h("commandLine"),[o.Mode.CommandlineInProgress,o.Mode.SearchInProgressMode])}}},5794:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputMethodSwitcherConfigurationValidator=void 0;const n=r(9518),i=r(5707),o=r(2253),s=r(3018);class a{async validate(e){const t=new n.ValidatorResults,r=e.autoSwitchInputMethod;return!r.enable||o.Globals.isTesting||(r.switchIMCmd.includes("{im}")||t.append({level:"error",message:"vim.autoSwitchInputMethod.switchIMCmd is incorrect, it should contain the placeholder {im}."}),void 0===r.obtainIMCmd||""===r.obtainIMCmd?t.append({level:"error",message:"vim.autoSwitchInputMethod.obtainIMCmd is empty."}):await(0,i.existsAsync)(this.getRawCmd(r.obtainIMCmd))||t.append({level:"error",message:`Unable to find ${r.obtainIMCmd}. Check your 'vim.autoSwitchInputMethod.obtainIMCmd' in VSCode setting.`}),void 0===r.defaultIM||""===r.defaultIM?t.append({level:"error",message:"vim.autoSwitchInputMethod.defaultIM is empty."}):await(0,i.existsAsync)(this.getRawCmd(r.switchIMCmd))||t.append({level:"error",message:`Unable to find ${r.switchIMCmd}. Check your 'vim.autoSwitchInputMethod.switchIMCmd' in VSCode setting.`})),Promise.resolve(t)}disable(e){e.autoSwitchInputMethod.enable=!1}getRawCmd(e){return e.split(" ")[0]}}t.InputMethodSwitcherConfigurationValidator=a,s.configurationValidator.registerValidator(new a)},6815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NeovimValidator=void 0;const n=r(9518),i=r(2081),o=r(1017),s=r(7147),a=r(3018),c=r(7282);class u{validate(e){const t=new n.ValidatorResults;if(e.enableNeovim){let r=!1;try{if(""===e.neovimPath){const t=c.env.PATH;t&&t.split(o.delimiter).forEach((t=>{let n="nvim";"win32"===c.platform&&(n+=".exe");const i=o.join(t,n);if((0,s.existsSync)(i))return e.neovimPath=i,void(r=!0)}))}(0,i.execFileSync)(e.neovimPath,["--version"])}catch(n){let i=`Invalid neovimPath. ${n.message}.`;r&&(i+=`Tried to parse PATH ${e.neovimPath}.`),t.append({level:"error",message:i})}if(e.neovimUseConfigFile&&""!==e.neovimConfigPath&&!(0,s.existsSync)(e.neovimConfigPath)){const r="No config file found in neovimConfigPath. Neovim will search its default config path.";e.neovimConfigPath="",t.append({level:"warning",message:r})}}return Promise.resolve(t)}disable(e){e.enableNeovim=!1}}t.NeovimValidator=u,a.configurationValidator.registerValidator(new u)},9519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemappingValidator=void 0;const n=r(9496),i=r(4627),o=r(9518),s=r(3018),a=r(6804);class c{async validate(e){const t=new o.ValidatorResults,r=["insertModeKeyBindings","insertModeKeyBindingsNonRecursive","normalModeKeyBindings","normalModeKeyBindingsNonRecursive","operatorPendingModeKeyBindings","operatorPendingModeKeyBindingsNonRecursive","visualModeKeyBindings","visualModeKeyBindingsNonRecursive","commandLineModeKeyBindings","commandLineModeKeyBindingsNonRecursive"];for(const n of r){const r=e[n];for(const t of a.PluginDefaultMappings.getPluginDefaultMappings(n,e))r.push(t);const o=-1===n.indexOf("NonRecursive"),s=n.replace("NonRecursive","");let c=e[s+"Map"];c||(c=new Map);for(let n=r.length-1;n>=0;n--){const s=r[n];s.recursive=o;const a=await this.isRemappingValid(s);if(t.concat(a),a.hasError){r.splice(n,1);continue}s.before&&s.before.forEach(((t,r)=>s.before[r]=i.Notation.NormalizeKey(t,e.leader))),s.after&&s.after.forEach(((t,r)=>s.after[r]=i.Notation.NormalizeKey(t,e.leader)));const u=s.before.join("");c.has(u)?t.append({level:"warning",message:`${s.before}. Duplicate remapped key for ${u}.`}):c.set(u,s)}e[s+"Map"]=c}return t}disable(e){}async isRemappingValid(e){const t=new o.ValidatorResults;if(e.after||e.commands||t.append({level:"error",message:`${e.before} missing 'after' key or 'command'.`}),e.before instanceof Array||t.append({level:"error",message:`Remapping of '${e.before}' should be a string array.`}),void 0===e.recursive&&t.append({level:"error",message:`Remapping of '${e.before}' missing 'recursive' info.`}),!e.after||e.after instanceof Array||t.append({level:"error",message:`Remapping of '${e.after}' should be a string array.`}),e.commands)for(const r of e.commands){let n;"string"==typeof r?n=r:r.command?(n=r.command,await this.isCommandValid(n)||t.append({level:"warning",message:`${n} does not exist.`})):t.append({level:"error",message:`Remapping of '${e.before}' has wrong "commands" structure. Should be 'string[] | { "command": string, "args": any[] }[]'.`})}return t}async isCommandValid(e){return!!e.startsWith(":")||(await this.getCommandMap()).has(e)}async getCommandMap(){return null==this.commandMap&&(this.commandMap=new Map((await n.commands.getCommands(!0)).map((e=>[e,!0])))),this.commandMap}}t.RemappingValidator=c,s.configurationValidator.registerValidator(new c)},2594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VimrcValidator=void 0;const n=r(9518),i=r(3018);class o{async validate(e){return new n.ValidatorResults}disable(e){}}t.VimrcValidator=o,i.configurationValidator.registerValidator(new o)},1971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vimrc=t.VimrcImpl=void 0;const n=r(6486),i=r(5707),o=r(2037),s=r(1017),a=r(9496),c=r(1718),u=r(9496),l=r(7536),d=r(5845);class h{get vimrcPath(){return this._vimrcPath}static buildSource(e){const t=h.SOURCE_REG_REX.exec(e);if(!t||t.length<3)return;t[1];const r=t[2];return h.expandHome(r)}static async loadConfig(e,t){try{const r=await a.commands.getCommands(),n=(await i.readFileAsync(t,"utf8")).split(/\r?\n/);for(const t of n){if(t.trimLeft().startsWith('"'))continue;const n=this.buildSource(t);if(n){if(!await i.existsAsync(n)){h.logger.warn(`Unable to find "${n}" file for configuration.`);continue}h.logger.debug(`Loading "${n}" file for configuration.`),await h.loadConfig(e,n);continue}const o=await c.vimrcKeyRemappingBuilder.build(t,r);if(o){h.addRemapToConfig(e,o);continue}const s=await c.vimrcKeyRemappingBuilder.buildUnmapping(t);if(s){h.removeRemapFromConfig(e,s);continue}const a=await c.vimrcKeyRemappingBuilder.buildClearMapping(t);a&&h.clearRemapsFromConfig(e,a)}}catch(e){u.window.showWarningMessage(`vimrc file "${t}" is broken, err=${e}`)}}async load(e){const t=e.vimrc.path?h.expandHome(e.vimrc.path):await h.findDefaultVimrc();t?await i.existsAsync(t)?(this._vimrcPath=t,h.removeAllRemapsFromConfig(e),await h.loadConfig(e,this._vimrcPath)):u.window.showWarningMessage(`No .vimrc found at ${t}.`,"Create it").then((async e=>{if("Create it"===e){const e=await a.window.showSaveDialog({defaultUri:a.Uri.file(t)});e&&(await i.writeFileAsync(e.fsPath,"","utf-8"),l.configuration.getConfiguration("vim").update("vimrc.path",e.fsPath,!0),await a.workspace.openTextDocument(e),await a.window.showTextDocument(e))}})):await u.window.showWarningMessage("No .vimrc found. Please set `vim.vimrc.path.`")}static addRemapToConfig(e,t){const r=(()=>{switch(t.keyRemappingType){case"map":return[e.normalModeKeyBindings,e.visualModeKeyBindings,e.operatorPendingModeKeyBindings];case"nmap":case"nma":case"nm":return[e.normalModeKeyBindings];case"vmap":case"vma":case"vm":case"xmap":case"xma":case"xm":return[e.visualModeKeyBindings];case"imap":case"ima":case"im":return[e.insertModeKeyBindings];case"cmap":case"cma":case"cm":return[e.commandLineModeKeyBindings];case"omap":case"oma":case"om":return[e.operatorPendingModeKeyBindings];case"lmap":case"lma":case"lm":case"map!":return[e.insertModeKeyBindings,e.commandLineModeKeyBindings];case"noremap":case"norema":case"norem":case"nore":case"nor":case"no":return[e.normalModeKeyBindingsNonRecursive,e.visualModeKeyBindingsNonRecursive,e.operatorPendingModeKeyBindingsNonRecursive];case"nnoremap":case"nnorema":case"nnorem":case"nnore":case"nnor":case"nno":case"nn":return[e.normalModeKeyBindingsNonRecursive];case"vnoremap":case"vnorema":case"vnorem":case"vnore":case"vnor":case"vno":case"vn":case"xnoremap":case"xnorema":case"xnorem":case"xnore":case"xnor":case"xno":case"xn":return[e.visualModeKeyBindingsNonRecursive];case"inoremap":case"inorema":case"inorem":case"inore":case"inor":case"ino":return[e.insertModeKeyBindingsNonRecursive];case"cnoremap":case"cnorema":case"cnorem":case"cnore":case"cnor":case"cno":return[e.commandLineModeKeyBindingsNonRecursive];case"onoremap":case"onorema":case"onorem":case"onore":case"onor":case"ono":return[e.operatorPendingModeKeyBindingsNonRecursive];case"lnoremap":case"lnorema":case"lnorem":case"lnore":case"lnor":case"lno":case"ln":case"noremap!":case"norema!":case"norem!":case"nore!":case"nor!":case"no!":return[e.insertModeKeyBindingsNonRecursive,e.commandLineModeKeyBindingsNonRecursive];default:return void h.logger.warn(`Encountered an unrecognized mapping type: '${t.keyRemappingType}'`)}})();null==r||r.forEach((e=>{e.some((e=>n.isEqual(e.before,t.keyRemapping.before)))||e.push(t.keyRemapping)}))}static removeRemapFromConfig(e,t){const r=(()=>{switch(t.keyRemappingType){case"unmap":case"unma":case"unm":return[e.normalModeKeyBindings,e.normalModeKeyBindingsNonRecursive,e.visualModeKeyBindings,e.visualModeKeyBindingsNonRecursive,e.operatorPendingModeKeyBindings,e.operatorPendingModeKeyBindingsNonRecursive];case"nunmap":case"nunma":case"nunm":case"nun":return[e.normalModeKeyBindings,e.normalModeKeyBindingsNonRecursive];case"vunmap":case"vunma":case"vunm":case"vun":case"vu":case"xunmap":case"xunma":case"xunm":case"xun":case"xu":return[e.visualModeKeyBindings,e.visualModeKeyBindingsNonRecursive];case"iunmap":case"iunma":case"iunm":case"iun":case"iu":return[e.insertModeKeyBindings,e.insertModeKeyBindingsNonRecursive];case"cunmap":case"cunma":case"cunm":case"cun":case"cu":return[e.commandLineModeKeyBindings,e.commandLineModeKeyBindingsNonRecursive];case"ounmap":case"ounma":case"ounm":case"oun":case"ou":return[e.operatorPendingModeKeyBindings,e.operatorPendingModeKeyBindingsNonRecursive];case"lunmap":case"lunma":case"lunm":case"lun":case"lu":case"unmap!":case"unma!":case"unm!":return[e.insertModeKeyBindings,e.insertModeKeyBindingsNonRecursive,e.commandLineModeKeyBindings,e.commandLineModeKeyBindingsNonRecursive];default:return void h.logger.warn(`Encountered an unrecognized unmapping type: '${t.keyRemappingType}'`)}})();return!!r&&(r.forEach((e=>{n.remove(e,(e=>"vimrc"===e.source&&n.isEqual(e.before,t.keyRemapping.before)))})),!0)}static clearRemapsFromConfig(e,t){const r=(()=>{switch(t.keyRemappingType){case"mapclear":case"mapclea":case"mapcle":case"mapcl":case"mapc":return[e.normalModeKeyBindings,e.normalModeKeyBindingsNonRecursive,e.visualModeKeyBindings,e.visualModeKeyBindingsNonRecursive,e.operatorPendingModeKeyBindings,e.operatorPendingModeKeyBindingsNonRecursive];case"nmapclear":case"nmapclea":case"nmapcle":case"nmapcl":case"nmapc":return[e.normalModeKeyBindings,e.normalModeKeyBindingsNonRecursive];case"vmapclear":case"vmapclea":case"vmapcle":case"vmapcl":case"vmapc":case"xmapclear":case"xmapclea":case"xmapcle":case"xmapcl":case"xmapc":return[e.visualModeKeyBindings,e.visualModeKeyBindingsNonRecursive];case"imapclear":case"imapclea":case"imapcle":case"imapcl":case"imapc":return[e.insertModeKeyBindings,e.insertModeKeyBindingsNonRecursive];case"cmapclear":case"cmapclea":case"cmapcle":case"cmapcl":case"cmapc":return[e.commandLineModeKeyBindings,e.commandLineModeKeyBindingsNonRecursive];case"omapclear":case"omapclea":case"omapcle":case"omapcl":case"omapc":return[e.operatorPendingModeKeyBindings,e.operatorPendingModeKeyBindingsNonRecursive];case"lmapclear":case"lmapclea":case"lmapcle":case"lmapcl":case"lmapc":case"mapclear!":case"mapclea!":case"mapcle!":case"mapcl!":case"mapc!":return[e.insertModeKeyBindings,e.insertModeKeyBindingsNonRecursive,e.commandLineModeKeyBindings,e.commandLineModeKeyBindingsNonRecursive];default:return void h.logger.warn(`Encountered an unrecognized clearMapping type: '${t.keyRemappingType}'`)}})();return!!r&&(r.forEach((e=>{n.remove(e,(e=>"vimrc"===e.source))})),!0)}static removeAllRemapsFromConfig(e){const t=[e.normalModeKeyBindings,e.operatorPendingModeKeyBindings,e.visualModeKeyBindings,e.insertModeKeyBindings,e.commandLineModeKeyBindings,e.normalModeKeyBindingsNonRecursive,e.operatorPendingModeKeyBindingsNonRecursive,e.visualModeKeyBindingsNonRecursive,e.insertModeKeyBindingsNonRecursive,e.commandLineModeKeyBindingsNonRecursive];for(const e of t)n.remove(e,(e=>"vimrc"===e.source))}static async findDefaultVimrc(){let e=s.join(o.homedir(),".vimrc");return await i.existsAsync(e)?e:(e=s.join(o.homedir(),"_vimrc"),await i.existsAsync(e)?e:(e=s.join(o.homedir(),".config/","nvim/","init.vim"),await i.existsAsync(e)?e:void 0))}static expandHome(e){const t=e.match(/(?<=^(?:~|\$HOME)).*/);return!t||t.length>1?e:s.join(o.homedir(),t[0])}}t.VimrcImpl=h,h.logger=d.Logger.get("VimRC"),h.SOURCE_REG_REX=/^(source)\s+(.+)/i,t.vimrc=new h},1718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vimrcKeyRemappingBuilder=void 0;class r{async build(e,t){const n=r.KEY_REMAPPING_REG_EX.exec(e);if(!n||n.length<4)return;const i=n[1],o=n[2],s=n[3],a=s.match(r.VIM_COMMAND_REG_EX);let c;return c=t.includes(s)?{commands:[s]}:a?{commands:[a[1]]}:{after:r.buildKeyList(s)},{keyRemapping:{before:r.buildKeyList(o),source:"vimrc",...c},keyRemappingType:i}}async buildUnmapping(e){const t=r.KEY_UNREMAPPING_REG_EX.exec(e);if(!t||t.length<3)return;const n=t[1],i=t[2];return{keyRemapping:{before:r.buildKeyList(i),source:"vimrc"},keyRemappingType:n}}async buildClearMapping(e){const t=r.KEY_CLEAR_REMAPPING_REG_EX.exec(e);if(t&&!(t.length<2))return{keyRemapping:{before:[""],source:"vimrc"},keyRemappingType:t[1]}}static buildKeyList(e){const t=[];let n=null;do{n=r.KEY_LIST_REG_EX.exec(e),n&&t.push(n[0])}while(n);return t}}r.KEY_REMAPPING_REG_EX=/^(map!?|smap|[nvxoilc]m(?:a(?:p)?)?|(?:[nvxl]no?r?|[oic]nor?|snor)(?:e(?:m(?:a(?:p)?)?)?)?|no(?:r(?:e(?:m(?:a(?:p)?)?)?)?)?!?)\s+(?!.*(?:|