!function(){var t={78770:function(t){t.exports=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n},t.exports.__esModule=!0,t.exports.default=t.exports},335:function(t,r,e){var n=e(31479);t.exports=function(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=n(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,i=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,u=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw u}}}},t.exports.__esModule=!0,t.exports.default=t.exports},31479:function(t,r,e){var n=e(78770);t.exports=function(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return t[n](a,a.exports,e),a.exports}e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,{a:r}),r},e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},function(){"use strict";var t=e(335),r=e.n(t),n=/\x1b\[(\d*);?(\d*)?([A-DJKHfm])/g,o=0,a=function(){return o+=1};self.onmessage=function(t){var e=t.data.inputStr,o=Array.from(function(t,e){for(var o,a=0,u=0,i=[[""]],c=0,s=function(t){var e,n=r()(t);try{for(n.s();!(e=n.n()).done;){var o=e.value;"\r"===o?u=0:"\n"===o?(a++,u=0,i[a]=i[a]||[""]):(i[a][u]=o,u++)}}catch(t){n.e(t)}finally{n.f()}return""},f="";null!==(o=n.exec(t));){f+=s(t.slice(c,o.index)),c=n.lastIndex;var l=parseInt(o[1],10)||1,p=parseInt(o[2],10)||1;switch(o[3]){case"A":a=Math.max(0,a-l);break;case"B":a+=l;break;case"C":u+=l;break;case"D":u=Math.max(0,u-l);break;case"H":a=Math.max(0,l-1),u=Math.max(0,p-1);break;case"J":2===l&&(i=[[""]],a=0,u=0)}for(;i.length<=a;)i.push([""]);for(;i[a].length<=u;)i[a].push("")}f+=s(t.slice(c));for(var d,v,x=[],h=0;h<i.length;h++){var y=i[h].join("");x.push({content:(d=y,v=void 0,null==d||null===(v=d.replace)||void 0===v?void 0:v.call(d,/^\(…\)/,"")),uid:e()})}return x.push({content:f,uid:e()}),x}(e,a)),u=o.map((function(t){return{content:t.content,uid:t.uid}}));self.postMessage(u)}}()}();