@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
12 lines • 1.34 MB
JavaScript
var Dw=Object.create;var Ln=Object.defineProperty;var Ew=Object.getOwnPropertyDescriptor;var Rw=Object.getOwnPropertyNames;var jw=Object.getPrototypeOf,Tw=Object.prototype.hasOwnProperty;var b=(a,e)=>()=>(e||a((e={exports:{}}).exports,e),e.exports),Cw=(a,e)=>{for(var i in e)Ln(a,i,{get:e[i],enumerable:!0})},Nl=(a,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rw(e))!Tw.call(a,n)&&n!==i&&Ln(a,n,{get:()=>e[n],enumerable:!(t=Ew(e,n))||t.enumerable});return a};var $=(a,e,i)=>(i=a!=null?Dw(jw(a)):{},Nl(e||!a||!a.__esModule?Ln(i,"default",{value:a,enumerable:!0}):i,a)),Aw=a=>Nl(Ln({},"__esModule",{value:!0}),a);var Un=b((c_,Bl)=>{var _w=require("path").relative;Bl.exports=Pw;var Ow=process.cwd();function $l(a,e){for(var i=a.split(/[ ,]+/),t=String(e).toLowerCase(),n=0;n<i.length;n++){var r=i[n];if(r&&(r==="*"||r.toLowerCase()===t))return!0}return!1}function Fw(a,e,i){var t=Object.getOwnPropertyDescriptor(a,e),n=t.value;return t.get=function(){return n},t.writable&&(t.set=function(s){return n=s}),delete t.value,delete t.writable,Object.defineProperty(a,e,t),t}function qw(a){for(var e="",i=0;i<a;i++)e+=", arg"+i;return e.substr(2)}function Iw(a){var e=this.name+": "+this.namespace;this.message&&(e+=" deprecated "+this.message);for(var i=0;i<a.length;i++)e+=`
at `+a[i].toString();return e}function Pw(a){if(!a)throw new TypeError("argument namespace is required");var e=Nn(),i=Ri(e[1]),t=i[0];function n(r){Mn.call(n,r)}return n._file=t,n._ignored=Mw(a),n._namespace=a,n._traced=Nw(a),n._warned=Object.create(null),n.function=Bw,n.property=Vw,n}function Lw(a,e){var i=typeof a.listenerCount!="function"?a.listeners(e).length:a.listenerCount(e);return i>0}function Mw(a){if(process.noDeprecation)return!0;var e=process.env.NO_DEPRECATION||"";return $l(e,a)}function Nw(a){if(process.traceDeprecation)return!0;var e=process.env.TRACE_DEPRECATION||"";return $l(e,a)}function Mn(a,e){var i=Lw(process,"deprecation");if(!(!i&&this._ignored)){var t,n,r,s,o=0,c=!1,p=Nn(),l=this._file;for(e?(s=e,r=Ri(p[1]),r.name=s.name,l=r[0]):(o=2,s=Ri(p[o]),r=s);o<p.length;o++)if(t=Ri(p[o]),n=t[0],n===l)c=!0;else if(n===this._file)l=this._file;else if(c)break;var u=t?s.join(":")+"__"+t.join(":"):void 0;if(!(u!==void 0&&u in this._warned)){this._warned[u]=!0;var d=a;if(d||(d=r===s||!r.name?Ul(s):Ul(r)),i){var m=zl(this._namespace,d,p.slice(o));process.emit("deprecation",m);return}var f=process.stderr.isTTY?$w:Uw,v=f.call(this,d,t,p.slice(o));process.stderr.write(v+`
`,"utf8")}}}function Ri(a){var e=a.getFileName()||"<anonymous>",i=a.getLineNumber(),t=a.getColumnNumber();a.isEval()&&(e=a.getEvalOrigin()+", "+e);var n=[e,i,t];return n.callSite=a,n.name=a.getFunctionName(),n}function Ul(a){var e=a.callSite,i=a.name;i||(i="<anonymous@"+Fs(a)+">");var t=e.getThis(),n=t&&e.getTypeName();return n==="Object"&&(n=void 0),n==="Function"&&(n=t.name||n),n&&e.getMethodName()?n+"."+i:i}function Uw(a,e,i){var t=new Date().toUTCString(),n=t+" "+this._namespace+" deprecated "+a;if(this._traced){for(var r=0;r<i.length;r++)n+=`
at `+i[r].toString();return n}return e&&(n+=" at "+Fs(e)),n}function $w(a,e,i){var t="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+a+"\x1B[39m";if(this._traced){for(var n=0;n<i.length;n++)t+=`
\x1B[36mat `+i[n].toString()+"\x1B[39m";return t}return e&&(t+=" \x1B[36m"+Fs(e)+"\x1B[39m"),t}function Fs(a){return _w(Ow,a[0])+":"+a[1]+":"+a[2]}function Nn(){var a=Error.stackTraceLimit,e={},i=Error.prepareStackTrace;Error.prepareStackTrace=zw,Error.stackTraceLimit=Math.max(10,a),Error.captureStackTrace(e);var t=e.stack.slice(1);return Error.prepareStackTrace=i,Error.stackTraceLimit=a,t}function zw(a,e){return e}function Bw(a,e){if(typeof a!="function")throw new TypeError("argument fn must be a function");var i=qw(a.length),t=Nn(),n=Ri(t[1]);n.name=a.name;var r=new Function("fn","log","deprecate","message","site",`"use strict"
return function (`+i+`) {log.call(deprecate, message, site)
return fn.apply(this, arguments)
}`)(a,Mn,this,e,n);return r}function Vw(a,e,i){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("argument obj must be object");var t=Object.getOwnPropertyDescriptor(a,e);if(!t)throw new TypeError("must call property on owner object");if(!t.configurable)throw new TypeError("property must be configurable");var n=this,r=Nn(),s=Ri(r[1]);s.name=e,"value"in t&&(t=Fw(a,e,i));var o=t.get,c=t.set;typeof o=="function"&&(t.get=function(){return Mn.call(n,i,s),o.apply(this,arguments)}),typeof c=="function"&&(t.set=function(){return Mn.call(n,i,s),c.apply(this,arguments)}),Object.defineProperty(a,e,t)}function zl(a,e,i){var t=new Error,n;return Object.defineProperty(t,"constructor",{value:zl}),Object.defineProperty(t,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(t,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(t,"namespace",{configurable:!0,enumerable:!1,value:a,writable:!0}),Object.defineProperty(t,"stack",{configurable:!0,enumerable:!1,get:function(){return n!==void 0?n:n=Iw.call(this,i)},set:function(s){n=s}}),t}});var Hl=b((p_,Vl)=>{"use strict";Vl.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?Hw:Yw);function Hw(a,e){return a.__proto__=e,a}function Yw(a,e){for(var i in e)Object.prototype.hasOwnProperty.call(a,i)||(a[i]=e[i]);return a}});var Yl=b((l_,Gw)=>{Gw.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var gt=b((u_,Wl)=>{"use strict";var qs=Yl();Wl.exports=Ge;Ge.message=qs;Ge.code=Ww(qs);Ge.codes=Xw(qs);Ge.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};Ge.empty={204:!0,205:!0,304:!0};Ge.retry={502:!0,503:!0,504:!0};function Ww(a){var e={};return Object.keys(a).forEach(function(t){var n=a[t],r=Number(t);e[n.toLowerCase()]=r}),e}function Xw(a){return Object.keys(a).map(function(i){return Number(i)})}function Jw(a){var e=a.toLowerCase();if(!Object.prototype.hasOwnProperty.call(Ge.code,e))throw new Error('invalid status message: "'+a+'"');return Ge.code[e]}function Gl(a){if(!Object.prototype.hasOwnProperty.call(Ge.message,a))throw new Error("invalid status code: "+a);return Ge.message[a]}function Ge(a){if(typeof a=="number")return Gl(a);if(typeof a!="string")throw new TypeError("code must be a number or string");var e=parseInt(a,10);return isNaN(e)?Jw(a):Gl(e)}});var Xl=b((d_,Is)=>{typeof Object.create=="function"?Is.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Is.exports=function(e,i){if(i){e.super_=i;var t=function(){};t.prototype=i.prototype,e.prototype=new t,e.prototype.constructor=e}}});var Ms=b((m_,Ls)=>{try{if(Ps=require("util"),typeof Ps.inherits!="function")throw"";Ls.exports=Ps.inherits}catch{Ls.exports=Xl()}var Ps});var Ql=b((f_,Jl)=>{"use strict";Jl.exports=Qw;function Qw(a){return a.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")}});var Qa=b((v_,Ja)=>{"use strict";var Kw=Un()("http-errors"),Kl=Hl(),ji=gt(),Ns=Ms(),Zw=Ql();Ja.exports=$n;Ja.exports.HttpError=e1();Ja.exports.isHttpError=i1(Ja.exports.HttpError);n1(Ja.exports,ji.codes,Ja.exports.HttpError);function Zl(a){return+(String(a).charAt(0)+"00")}function $n(){for(var a,e,i=500,t={},n=0;n<arguments.length;n++){var r=arguments[n],s=typeof r;if(s==="object"&&r instanceof Error)a=r,i=a.status||a.statusCode||i;else if(s==="number"&&n===0)i=r;else if(s==="string")e=r;else if(s==="object")t=r;else throw new TypeError("argument #"+(n+1)+" unsupported type "+s)}typeof i=="number"&&(i<400||i>=600)&&Kw("non-error status code; use only 4xx or 5xx status codes"),(typeof i!="number"||!ji.message[i]&&(i<400||i>=600))&&(i=500);var o=$n[i]||$n[Zl(i)];a||(a=o?new o(e):new Error(e||ji.message[i]),Error.captureStackTrace(a,$n)),(!o||!(a instanceof o)||a.status!==i)&&(a.expose=i<500,a.status=a.statusCode=i);for(var c in t)c!=="status"&&c!=="statusCode"&&(a[c]=t[c]);return a}function e1(){function a(){throw new TypeError("cannot construct abstract class")}return Ns(a,Error),a}function a1(a,e,i){var t=au(e);function n(r){var s=r??ji.message[i],o=new Error(s);return Error.captureStackTrace(o,n),Kl(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:s,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:t,writable:!0}),o}return Ns(n,a),eu(n,t),n.prototype.status=i,n.prototype.statusCode=i,n.prototype.expose=!0,n}function i1(a){return function(i){return!i||typeof i!="object"?!1:i instanceof a?!0:i instanceof Error&&typeof i.expose=="boolean"&&typeof i.statusCode=="number"&&i.status===i.statusCode}}function t1(a,e,i){var t=au(e);function n(r){var s=r??ji.message[i],o=new Error(s);return Error.captureStackTrace(o,n),Kl(o,n.prototype),Object.defineProperty(o,"message",{enumerable:!0,configurable:!0,value:s,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:t,writable:!0}),o}return Ns(n,a),eu(n,t),n.prototype.status=i,n.prototype.statusCode=i,n.prototype.expose=!1,n}function eu(a,e){var i=Object.getOwnPropertyDescriptor(a,"name");i&&i.configurable&&(i.value=e,Object.defineProperty(a,"name",i))}function n1(a,e,i){e.forEach(function(n){var r,s=Zw(ji.message[n]);switch(Zl(n)){case 400:r=a1(i,s,n);break;case 500:r=t1(i,s,n);break}r&&(a[n]=r,a[s]=r)})}function au(a){return a.substr(-5)!=="Error"?a+"Error":a}});var Us=b((x_,iu)=>{var Ti=1e3,Ci=Ti*60,Ai=Ci*60,Ka=Ai*24,r1=Ka*7,s1=Ka*365.25;iu.exports=function(a,e){e=e||{};var i=typeof a;if(i==="string"&&a.length>0)return o1(a);if(i==="number"&&isFinite(a))return e.long?p1(a):c1(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function o1(a){if(a=String(a),!(a.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(e){var i=parseFloat(e[1]),t=(e[2]||"ms").toLowerCase();switch(t){case"years":case"year":case"yrs":case"yr":case"y":return i*s1;case"weeks":case"week":case"w":return i*r1;case"days":case"day":case"d":return i*Ka;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Ai;case"minutes":case"minute":case"mins":case"min":case"m":return i*Ci;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ti;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function c1(a){var e=Math.abs(a);return e>=Ka?Math.round(a/Ka)+"d":e>=Ai?Math.round(a/Ai)+"h":e>=Ci?Math.round(a/Ci)+"m":e>=Ti?Math.round(a/Ti)+"s":a+"ms"}function p1(a){var e=Math.abs(a);return e>=Ka?zn(a,e,Ka,"day"):e>=Ai?zn(a,e,Ai,"hour"):e>=Ci?zn(a,e,Ci,"minute"):e>=Ti?zn(a,e,Ti,"second"):a+" ms"}function zn(a,e,i,t){var n=e>=i*1.5;return Math.round(a/i)+" "+t+(n?"s":"")}});var $s=b((h_,tu)=>{function l1(a){i.debug=i,i.default=i,i.coerce=c,i.disable=s,i.enable=n,i.enabled=o,i.humanize=Us(),i.destroy=p,Object.keys(a).forEach(l=>{i[l]=a[l]}),i.names=[],i.skips=[],i.formatters={};function e(l){let u=0;for(let d=0;d<l.length;d++)u=(u<<5)-u+l.charCodeAt(d),u|=0;return i.colors[Math.abs(u)%i.colors.length]}i.selectColor=e;function i(l){let u,d=null,m,f;function v(...x){if(!v.enabled)return;let y=v,g=Number(new Date),w=g-(u||g);y.diff=w,y.prev=u,y.curr=g,u=g,x[0]=i.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let k=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(S,F)=>{if(S==="%%")return"%";k++;let q=i.formatters[F];if(typeof q=="function"){let _=x[k];S=q.call(y,_),x.splice(k,1),k--}return S}),i.formatArgs.call(y,x),(y.log||i.log).apply(y,x)}return v.namespace=l,v.useColors=i.useColors(),v.color=i.selectColor(l),v.extend=t,v.destroy=i.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==i.namespaces&&(m=i.namespaces,f=i.enabled(l)),f),set:x=>{d=x}}),typeof i.init=="function"&&i.init(v),v}function t(l,u){let d=i(this.namespace+(typeof u>"u"?":":u)+l);return d.log=this.log,d}function n(l){i.save(l),i.namespaces=l,i.names=[],i.skips=[];let u=(typeof l=="string"?l:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(l,u){let d=0,m=0,f=-1,v=0;for(;d<l.length;)if(m<u.length&&(u[m]===l[d]||u[m]==="*"))u[m]==="*"?(f=m,v=d,m++):(d++,m++);else if(f!==-1)m=f+1,v++,d=v;else return!1;for(;m<u.length&&u[m]==="*";)m++;return m===u.length}function s(){let l=[...i.names,...i.skips.map(u=>"-"+u)].join(",");return i.enable(""),l}function o(l){for(let u of i.skips)if(r(l,u))return!1;for(let u of i.names)if(r(l,u))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}tu.exports=l1});var nu=b((Te,Bn)=>{Te.formatArgs=d1;Te.save=m1;Te.load=f1;Te.useColors=u1;Te.storage=v1();Te.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Te.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function u1(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function d1(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+Bn.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;a.splice(1,0,e,"color: inherit");let i=0,t=0;a[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(i++,n==="%c"&&(t=i))}),a.splice(t,0,e)}Te.log=console.debug||console.log||(()=>{});function m1(a){try{a?Te.storage.setItem("debug",a):Te.storage.removeItem("debug")}catch{}}function f1(){let a;try{a=Te.storage.getItem("debug")||Te.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}function v1(){try{return localStorage}catch{}}Bn.exports=$s()(Te);var{formatters:x1}=Bn.exports;x1.j=function(a){try{return JSON.stringify(a)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var su=b((g_,ru)=>{"use strict";ru.exports=(a,e=process.argv)=>{let i=a.startsWith("-")?"":a.length===1?"-":"--",t=e.indexOf(i+a),n=e.indexOf("--");return t!==-1&&(n===-1||t<n)}});var pu=b((b_,cu)=>{"use strict";var h1=require("os"),ou=require("tty"),Ne=su(),{env:ce}=process,Vn;Ne("no-color")||Ne("no-colors")||Ne("color=false")||Ne("color=never")?Vn=0:(Ne("color")||Ne("colors")||Ne("color=true")||Ne("color=always"))&&(Vn=1);function g1(){if("FORCE_COLOR"in ce)return ce.FORCE_COLOR==="true"?1:ce.FORCE_COLOR==="false"?0:ce.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ce.FORCE_COLOR,10),3)}function b1(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function y1(a,{streamIsTTY:e,sniffFlags:i=!0}={}){let t=g1();t!==void 0&&(Vn=t);let n=i?Vn:t;if(n===0)return 0;if(i){if(Ne("color=16m")||Ne("color=full")||Ne("color=truecolor"))return 3;if(Ne("color=256"))return 2}if(a&&!e&&n===void 0)return 0;let r=n||0;if(ce.TERM==="dumb")return r;if(process.platform==="win32"){let s=h1.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in ce)||ce.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let s=Number.parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:r}function zs(a,e={}){let i=y1(a,{streamIsTTY:a&&a.isTTY,...e});return b1(i)}cu.exports={supportsColor:zs,stdout:zs({isTTY:ou.isatty(1)}),stderr:zs({isTTY:ou.isatty(2)})}});var uu=b((pe,Yn)=>{var w1=require("tty"),Hn=require("util");pe.init=T1;pe.log=E1;pe.formatArgs=k1;pe.save=R1;pe.load=j1;pe.useColors=S1;pe.destroy=Hn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");pe.colors=[6,2,3,4,5,1];try{let a=pu();a&&(a.stderr||a).level>=2&&(pe.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}pe.inspectOpts=Object.keys(process.env).filter(a=>/^debug_/i.test(a)).reduce((a,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,r)=>r.toUpperCase()),t=process.env[e];return/^(yes|on|true|enabled)$/i.test(t)?t=!0:/^(no|off|false|disabled)$/i.test(t)?t=!1:t==="null"?t=null:t=Number(t),a[i]=t,a},{});function S1(){return"colors"in pe.inspectOpts?!!pe.inspectOpts.colors:w1.isatty(process.stderr.fd)}function k1(a){let{namespace:e,useColors:i}=this;if(i){let t=this.color,n="\x1B[3"+(t<8?t:"8;5;"+t),r=` ${n};1m${e} \x1B[0m`;a[0]=r+a[0].split(`
`).join(`
`+r),a.push(n+"m+"+Yn.exports.humanize(this.diff)+"\x1B[0m")}else a[0]=D1()+e+" "+a[0]}function D1(){return pe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function E1(...a){return process.stderr.write(Hn.formatWithOptions(pe.inspectOpts,...a)+`
`)}function R1(a){a?process.env.DEBUG=a:delete process.env.DEBUG}function j1(){return process.env.DEBUG}function T1(a){a.inspectOpts={};let e=Object.keys(pe.inspectOpts);for(let i=0;i<e.length;i++)a.inspectOpts[e[i]]=pe.inspectOpts[e[i]]}Yn.exports=$s()(pe);var{formatters:lu}=Yn.exports;lu.o=function(a){return this.inspectOpts.colors=this.useColors,Hn.inspect(a,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};lu.O=function(a){return this.inspectOpts.colors=this.useColors,Hn.inspect(a,this.inspectOpts)}});var Ue=b((y_,Bs)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Bs.exports=nu():Bs.exports=uu()});var mu=b((w_,du)=>{"use strict";du.exports=C1;function C1(a,e){if(!Array.isArray(a))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],t=0;t<a.length;t++){var n=a[t];if(!Array.isArray(n)||n.length<2)throw new TypeError("each array member must be [ee, events...]");for(var r=n[0],s=1;s<n.length;s++){var o=n[s],c=A1(o,p);r.on(o,c),i.push({ee:r,event:o,fn:c})}}function p(){l(),e.apply(null,arguments)}function l(){for(var d,m=0;m<i.length;m++)d=i[m],d.ee.removeListener(d.event,d.fn)}function u(d){e=d}return u.cancel=l,u}function A1(a,e){return function(t){for(var n=new Array(arguments.length),r=this,s=a==="error"?t:null,o=0;o<n.length;o++)n[o]=arguments[o];e(s,r,a,n)}}});var va=b((S_,Vs)=>{"use strict";Vs.exports=O1;Vs.exports.isFinished=xu;var fu=L1(),vu=mu(),_1=typeof setImmediate=="function"?setImmediate:function(a){process.nextTick(a.bind.apply(a,arguments))};function O1(a,e){return xu(a)!==!1?(_1(e,null,a),a):(q1(a,M1(e)),a)}function xu(a){var e=a.socket;if(typeof a.finished=="boolean")return!!(a.finished||e&&!e.writable);if(typeof a.complete=="boolean")return!!(a.upgrade||!e||!e.readable||a.complete&&!a.readable)}function F1(a,e){var i,t,n=!1;function r(o){i.cancel(),t.cancel(),n=!0,e(o)}i=t=vu([[a,"end","finish"]],r);function s(o){a.removeListener("socket",s),!n&&i===t&&(t=vu([[o,"error","close"]],r))}if(a.socket){s(a.socket);return}a.on("socket",s),a.socket===void 0&&P1(a,s)}function q1(a,e){var i=a.__onFinished;(!i||!i.queue)&&(i=a.__onFinished=I1(a),F1(a,i)),i.queue.push(e)}function I1(a){function e(i){if(a.__onFinished===e&&(a.__onFinished=null),!!e.queue){var t=e.queue;e.queue=null;for(var n=0;n<t.length;n++)t[n](i,a)}}return e.queue=[],e}function P1(a,e){var i=a.assignSocket;typeof i=="function"&&(a.assignSocket=function(n){i.call(this,n),e(n)})}function L1(){try{return require("async_hooks")}catch{return{}}}function M1(a){var e;return fu.AsyncResource&&(e=new fu.AsyncResource(a.name||"bound-anonymous-fn")),!e||!e.runInAsyncScope?a:e.runInAsyncScope.bind(e,a,null)}});var Hs=b((k_,Gn)=>{"use strict";Gn.exports=z1;Gn.exports.format=hu;Gn.exports.parse=gu;var N1=/\B(?=(\d{3})+(?!\d))/g,U1=/(?:\.0*|(\.[^0]+)0+)$/,Ca={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},$1=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function z1(a,e){return typeof a=="string"?gu(a):typeof a=="number"?hu(a,e):null}function hu(a,e){if(!Number.isFinite(a))return null;var i=Math.abs(a),t=e&&e.thousandsSeparator||"",n=e&&e.unitSeparator||"",r=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,s=!!(e&&e.fixedDecimals),o=e&&e.unit||"";(!o||!Ca[o.toLowerCase()])&&(i>=Ca.pb?o="PB":i>=Ca.tb?o="TB":i>=Ca.gb?o="GB":i>=Ca.mb?o="MB":i>=Ca.kb?o="KB":o="B");var c=a/Ca[o.toLowerCase()],p=c.toFixed(r);return s||(p=p.replace(U1,"$1")),t&&(p=p.split(".").map(function(l,u){return u===0?l.replace(N1,t):l}).join(".")),p+n+o}function gu(a){if(typeof a=="number"&&!isNaN(a))return a;if(typeof a!="string")return null;var e=$1.exec(a),i,t="b";return e?(i=parseFloat(e[1]),t=e[4].toLowerCase()):(i=parseInt(a,10),t="b"),isNaN(i)?null:Math.floor(Ca[t]*i)}});var xa=b((D_,bu)=>{"use strict";var Wn=require("buffer"),_i=Wn.Buffer,$e={},ze;for(ze in Wn)Wn.hasOwnProperty(ze)&&(ze==="SlowBuffer"||ze==="Buffer"||($e[ze]=Wn[ze]));var Oi=$e.Buffer={};for(ze in _i)_i.hasOwnProperty(ze)&&(ze==="allocUnsafe"||ze==="allocUnsafeSlow"||(Oi[ze]=_i[ze]));$e.Buffer.prototype=_i.prototype;(!Oi.from||Oi.from===Uint8Array.from)&&(Oi.from=function(a,e,i){if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof a);if(a&&typeof a.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);return _i(a,e,i)});Oi.alloc||(Oi.alloc=function(a,e,i){if(typeof a!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof a);if(a<0||a>=2*(1<<30))throw new RangeError('The value "'+a+'" is invalid for option "size"');var t=_i(a);return!e||e.length===0?t.fill(0):typeof i=="string"?t.fill(e,i):t.fill(e),t});if(!$e.kStringMaxLength)try{$e.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}$e.constants||($e.constants={MAX_LENGTH:$e.kMaxLength},$e.kStringMaxLength&&($e.constants.MAX_STRING_LENGTH=$e.kStringMaxLength));bu.exports=$e});var wu=b(Ws=>{"use strict";var yu="\uFEFF";Ws.PrependBOM=Ys;function Ys(a,e){this.encoder=a,this.addBOM=!0}Ys.prototype.write=function(a){return this.addBOM&&(a=yu+a,this.addBOM=!1),this.encoder.write(a)};Ys.prototype.end=function(){return this.encoder.end()};Ws.StripBOM=Gs;function Gs(a,e){this.decoder=a,this.pass=!1,this.options=e||{}}Gs.prototype.write=function(a){var e=this.decoder.write(a);return this.pass||!e||(e[0]===yu&&(e=e.slice(1),typeof this.options.stripBOM=="function"&&this.options.stripBOM()),this.pass=!0),e};Gs.prototype.end=function(){return this.decoder.end()}});var ku=b((R_,Su)=>{"use strict";var Za=xa().Buffer;Su.exports={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:Js};function Js(a,e){this.enc=a.encodingName,this.bomAware=a.bomAware,this.enc==="base64"?this.encoder=Zs:this.enc==="cesu8"&&(this.enc="utf8",this.encoder=eo,Za.from("eda0bdedb2a9","hex").toString()!=="\u{1F4A9}"&&(this.decoder=ao,this.defaultCharUnicode=e.defaultCharUnicode))}Js.prototype.encoder=Ks;Js.prototype.decoder=Qs;var Xs=require("string_decoder").StringDecoder;Xs.prototype.end||(Xs.prototype.end=function(){});function Qs(a,e){this.decoder=new Xs(e.enc)}Qs.prototype.write=function(a){return Za.isBuffer(a)||(a=Za.from(a)),this.decoder.write(a)};Qs.prototype.end=function(){return this.decoder.end()};function Ks(a,e){this.enc=e.enc}Ks.prototype.write=function(a){return Za.from(a,this.enc)};Ks.prototype.end=function(){};function Zs(a,e){this.prevStr=""}Zs.prototype.write=function(a){a=this.prevStr+a;var e=a.length-a.length%4;return this.prevStr=a.slice(e),a=a.slice(0,e),Za.from(a,"base64")};Zs.prototype.end=function(){return Za.from(this.prevStr,"base64")};function eo(a,e){}eo.prototype.write=function(a){for(var e=Za.alloc(a.length*3),i=0,t=0;t<a.length;t++){var n=a.charCodeAt(t);n<128?e[i++]=n:n<2048?(e[i++]=192+(n>>>6),e[i++]=128+(n&63)):(e[i++]=224+(n>>>12),e[i++]=128+(n>>>6&63),e[i++]=128+(n&63))}return e.slice(0,i)};eo.prototype.end=function(){};function ao(a,e){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=e.defaultCharUnicode}ao.prototype.write=function(a){for(var e=this.acc,i=this.contBytes,t=this.accBytes,n="",r=0;r<a.length;r++){var s=a[r];(s&192)!==128?(i>0&&(n+=this.defaultCharUnicode,i=0),s<128?n+=String.fromCharCode(s):s<224?(e=s&31,i=1,t=1):s<240?(e=s&15,i=2,t=1):n+=this.defaultCharUnicode):i>0?(e=e<<6|s&63,i--,t++,i===0&&(t===2&&e<128&&e>0?n+=this.defaultCharUnicode:t===3&&e<2048?n+=this.defaultCharUnicode:n+=String.fromCharCode(e))):n+=this.defaultCharUnicode}return this.acc=e,this.contBytes=i,this.accBytes=t,n};ao.prototype.end=function(){var a=0;return this.contBytes>0&&(a+=this.defaultCharUnicode),a}});var Ru=b(Aa=>{"use strict";var Xn=xa().Buffer;Aa._utf32=io;function io(a,e){this.iconv=e,this.bomAware=!0,this.isLE=a.isLE}Aa.utf32le={type:"_utf32",isLE:!0};Aa.utf32be={type:"_utf32",isLE:!1};Aa.ucs4le="utf32le";Aa.ucs4be="utf32be";io.prototype.encoder=to;io.prototype.decoder=no;function to(a,e){this.isLE=e.isLE,this.highSurrogate=0}to.prototype.write=function(a){for(var e=Xn.from(a,"ucs2"),i=Xn.alloc(e.length*2),t=this.isLE?i.writeUInt32LE:i.writeUInt32BE,n=0,r=0;r<e.length;r+=2){var s=e.readUInt16LE(r),o=55296<=s&&s<56320,c=56320<=s&&s<57344;if(this.highSurrogate)if(o||!c)t.call(i,this.highSurrogate,n),n+=4;else{var p=(this.highSurrogate-55296<<10|s-56320)+65536;t.call(i,p,n),n+=4,this.highSurrogate=0;continue}o?this.highSurrogate=s:(t.call(i,s,n),n+=4,this.highSurrogate=0)}return n<i.length&&(i=i.slice(0,n)),i};to.prototype.end=function(){if(this.highSurrogate){var a=Xn.alloc(4);return this.isLE?a.writeUInt32LE(this.highSurrogate,0):a.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,a}};function no(a,e){this.isLE=e.isLE,this.badChar=e.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}no.prototype.write=function(a){if(a.length===0)return"";var e=0,i=0,t=Xn.alloc(a.length+4),n=0,r=this.isLE,s=this.overflow,o=this.badChar;if(s.length>0){for(;e<a.length&&s.length<4;e++)s.push(a[e]);s.length===4&&(r?i=s[e]|s[e+1]<<8|s[e+2]<<16|s[e+3]<<24:i=s[e+3]|s[e+2]<<8|s[e+1]<<16|s[e]<<24,s.length=0,n=Du(t,n,i,o))}for(;e<a.length-3;e+=4)r?i=a[e]|a[e+1]<<8|a[e+2]<<16|a[e+3]<<24:i=a[e+3]|a[e+2]<<8|a[e+1]<<16|a[e]<<24,n=Du(t,n,i,o);for(;e<a.length;e++)s.push(a[e]);return t.slice(0,n).toString("ucs2")};function Du(a,e,i,t){if((i<0||i>1114111)&&(i=t),i>=65536){i-=65536;var n=55296|i>>10;a[e++]=n&255,a[e++]=n>>8;var i=56320|i&1023}return a[e++]=i&255,a[e++]=i>>8,e}no.prototype.end=function(){this.overflow.length=0};Aa.utf32=ro;Aa.ucs4="utf32";function ro(a,e){this.iconv=e}ro.prototype.encoder=so;ro.prototype.decoder=oo;function so(a,e){a=a||{},a.addBOM===void 0&&(a.addBOM=!0),this.encoder=e.iconv.getEncoder(a.defaultEncoding||"utf-32le",a)}so.prototype.write=function(a){return this.encoder.write(a)};so.prototype.end=function(){return this.encoder.end()};function oo(a,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=a||{},this.iconv=e.iconv}oo.prototype.write=function(a){if(!this.decoder){if(this.initialBufs.push(a),this.initialBufsLen+=a.length,this.initialBufsLen<32)return"";var e=Eu(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var i="",t=0;t<this.initialBufs.length;t++)i+=this.decoder.write(this.initialBufs[t]);return this.initialBufs.length=this.initialBufsLen=0,i}return this.decoder.write(a)};oo.prototype.end=function(){if(!this.decoder){var a=Eu(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(a,this.options);for(var e="",i=0;i<this.initialBufs.length;i++)e+=this.decoder.write(this.initialBufs[i]);var t=this.decoder.end();return t&&(e+=t),this.initialBufs.length=this.initialBufsLen=0,e}return this.decoder.end()};function Eu(a,e){var i=[],t=0,n=0,r=0,s=0,o=0;e:for(var c=0;c<a.length;c++)for(var p=a[c],l=0;l<p.length;l++)if(i.push(p[l]),i.length===4){if(t===0){if(i[0]===255&&i[1]===254&&i[2]===0&&i[3]===0)return"utf-32le";if(i[0]===0&&i[1]===0&&i[2]===254&&i[3]===255)return"utf-32be"}if((i[0]!==0||i[1]>16)&&r++,(i[3]!==0||i[2]>16)&&n++,i[0]===0&&i[1]===0&&(i[2]!==0||i[3]!==0)&&o++,(i[0]!==0||i[1]!==0)&&i[2]===0&&i[3]===0&&s++,i.length=0,t++,t>=100)break e}return o-r>s-n?"utf-32be":o-r<s-n?"utf-32le":e||"utf-32le"}});var Cu=b(fo=>{"use strict";var ju=xa().Buffer;fo.utf16be=Jn;function Jn(){}Jn.prototype.encoder=co;Jn.prototype.decoder=po;Jn.prototype.bomAware=!0;function co(){}co.prototype.write=function(a){for(var e=ju.from(a,"ucs2"),i=0;i<e.length;i+=2){var t=e[i];e[i]=e[i+1],e[i+1]=t}return e};co.prototype.end=function(){};function po(){this.overflowByte=-1}po.prototype.write=function(a){if(a.length==0)return"";var e=ju.alloc(a.length+1),i=0,t=0;for(this.overflowByte!==-1&&(e[0]=a[0],e[1]=this.overflowByte,i=1,t=2);i<a.length-1;i+=2,t+=2)e[t]=a[i+1],e[t+1]=a[i];return this.overflowByte=i==a.length-1?a[a.length-1]:-1,e.slice(0,t).toString("ucs2")};po.prototype.end=function(){this.overflowByte=-1};fo.utf16=lo;function lo(a,e){this.iconv=e}lo.prototype.encoder=uo;lo.prototype.decoder=mo;function uo(a,e){a=a||{},a.addBOM===void 0&&(a.addBOM=!0),this.encoder=e.iconv.getEncoder("utf-16le",a)}uo.prototype.write=function(a){return this.encoder.write(a)};uo.prototype.end=function(){return this.encoder.end()};function mo(a,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=a||{},this.iconv=e.iconv}mo.prototype.write=function(a){if(!this.decoder){if(this.initialBufs.push(a),this.initialBufsLen+=a.length,this.initialBufsLen<16)return"";var e=Tu(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var i="",t=0;t<this.initialBufs.length;t++)i+=this.decoder.write(this.initialBufs[t]);return this.initialBufs.length=this.initialBufsLen=0,i}return this.decoder.write(a)};mo.prototype.end=function(){if(!this.decoder){var a=Tu(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(a,this.options);for(var e="",i=0;i<this.initialBufs.length;i++)e+=this.decoder.write(this.initialBufs[i]);var t=this.decoder.end();return t&&(e+=t),this.initialBufs.length=this.initialBufsLen=0,e}return this.decoder.end()};function Tu(a,e){var i=[],t=0,n=0,r=0;e:for(var s=0;s<a.length;s++)for(var o=a[s],c=0;c<o.length;c++)if(i.push(o[c]),i.length===2){if(t===0){if(i[0]===255&&i[1]===254)return"utf-16le";if(i[0]===254&&i[1]===255)return"utf-16be"}if(i[0]===0&&i[1]!==0&&r++,i[0]!==0&&i[1]===0&&n++,i.length=0,t++,t>=100)break e}return r>n?"utf-16be":r<n?"utf-16le":e||"utf-16le"}});var _u=b(Zn=>{"use strict";var Ke=xa().Buffer;Zn.utf7=Qn;Zn.unicode11utf7="utf7";function Qn(a,e){this.iconv=e}Qn.prototype.encoder=xo;Qn.prototype.decoder=ho;Qn.prototype.bomAware=!0;var B1=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function xo(a,e){this.iconv=e.iconv}xo.prototype.write=function(a){return Ke.from(a.replace(B1,function(e){return"+"+(e==="+"?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};xo.prototype.end=function(){};function ho(a,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""}var V1=/[A-Za-z0-9\/+]/,go=[];for(bt=0;bt<256;bt++)go[bt]=V1.test(String.fromCharCode(bt));var bt,H1=43,ei=45,vo=38;ho.prototype.write=function(a){for(var e="",i=0,t=this.inBase64,n=this.base64Accum,r=0;r<a.length;r++)if(!t)a[r]==H1&&(e+=this.iconv.decode(a.slice(i,r),"ascii"),i=r+1,t=!0);else if(!go[a[r]]){if(r==i&&a[r]==ei)e+="+";else{var s=n+this.iconv.decode(a.slice(i,r),"ascii");e+=this.iconv.decode(Ke.from(s,"base64"),"utf16-be")}a[r]!=ei&&r--,i=r+1,t=!1,n=""}if(!t)e+=this.iconv.decode(a.slice(i),"ascii");else{var s=n+this.iconv.decode(a.slice(i),"ascii"),o=s.length-s.length%8;n=s.slice(o),s=s.slice(0,o),e+=this.iconv.decode(Ke.from(s,"base64"),"utf16-be")}return this.inBase64=t,this.base64Accum=n,e};ho.prototype.end=function(){var a="";return this.inBase64&&this.base64Accum.length>0&&(a=this.iconv.decode(Ke.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",a};Zn.utf7imap=Kn;function Kn(a,e){this.iconv=e}Kn.prototype.encoder=bo;Kn.prototype.decoder=yo;Kn.prototype.bomAware=!0;function bo(a,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=Ke.alloc(6),this.base64AccumIdx=0}bo.prototype.write=function(a){for(var e=this.inBase64,i=this.base64Accum,t=this.base64AccumIdx,n=Ke.alloc(a.length*5+10),r=0,s=0;s<a.length;s++){var o=a.charCodeAt(s);32<=o&&o<=126?(e&&(t>0&&(r+=n.write(i.slice(0,t).toString("base64").replace(/\//g,",").replace(/=+$/,""),r),t=0),n[r++]=ei,e=!1),e||(n[r++]=o,o===vo&&(n[r++]=ei))):(e||(n[r++]=vo,e=!0),e&&(i[t++]=o>>8,i[t++]=o&255,t==i.length&&(r+=n.write(i.toString("base64").replace(/\//g,","),r),t=0)))}return this.inBase64=e,this.base64AccumIdx=t,n.slice(0,r)};bo.prototype.end=function(){var a=Ke.alloc(10),e=0;return this.inBase64&&(this.base64AccumIdx>0&&(e+=a.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),e),this.base64AccumIdx=0),a[e++]=ei,this.inBase64=!1),a.slice(0,e)};function yo(a,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""}var Au=go.slice();Au[44]=!0;yo.prototype.write=function(a){for(var e="",i=0,t=this.inBase64,n=this.base64Accum,r=0;r<a.length;r++)if(!t)a[r]==vo&&(e+=this.iconv.decode(a.slice(i,r),"ascii"),i=r+1,t=!0);else if(!Au[a[r]]){if(r==i&&a[r]==ei)e+="&";else{var s=n+this.iconv.decode(a.slice(i,r),"ascii").replace(/,/g,"/");e+=this.iconv.decode(Ke.from(s,"base64"),"utf16-be")}a[r]!=ei&&r--,i=r+1,t=!1,n=""}if(!t)e+=this.iconv.decode(a.slice(i),"ascii");else{var s=n+this.iconv.decode(a.slice(i),"ascii").replace(/,/g,"/"),o=s.length-s.length%8;n=s.slice(o),s=s.slice(0,o),e+=this.iconv.decode(Ke.from(s,"base64"),"utf16-be")}return this.inBase64=t,this.base64Accum=n,e};yo.prototype.end=function(){var a="";return this.inBase64&&this.base64Accum.length>0&&(a=this.iconv.decode(Ke.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",a}});var Fu=b(Ou=>{"use strict";var er=xa().Buffer;Ou._sbcs=wo;function wo(a,e){if(!a)throw new Error("SBCS codec is called without the data.");if(!a.chars||a.chars.length!==128&&a.chars.length!==256)throw new Error("Encoding '"+a.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(a.chars.length===128){for(var i="",t=0;t<128;t++)i+=String.fromCharCode(t);a.chars=i+a.chars}this.decodeBuf=er.from(a.chars,"ucs2");for(var n=er.alloc(65536,e.defaultCharSingleByte.charCodeAt(0)),t=0;t<a.chars.length;t++)n[a.chars.charCodeAt(t)]=t;this.encodeBuf=n}wo.prototype.encoder=So;wo.prototype.decoder=ko;function So(a,e){this.encodeBuf=e.encodeBuf}So.prototype.write=function(a){for(var e=er.alloc(a.length),i=0;i<a.length;i++)e[i]=this.encodeBuf[a.charCodeAt(i)];return e};So.prototype.end=function(){};function ko(a,e){this.decodeBuf=e.decodeBuf}ko.prototype.write=function(a){for(var e=this.decodeBuf,i=er.alloc(a.length*2),t=0,n=0,r=0;r<a.length;r++)t=a[r]*2,n=r*2,i[n]=e[t],i[n+1]=e[t+1];return i.toString("ucs2")};ko.prototype.end=function(){}});var Iu=b((__,qu)=>{"use strict";qu.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},cp720:{type:"_sbcs",chars:"\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}});var Lu=b((O_,Pu)=>{"use strict";Pu.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"\u20AC\uFFFD\uFFFD\uFFFD\uFFFD\u2026\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A\xA0\u02C7\u02D8\u0141\xA4\u0104\xA6\xA7\xA8\xA9\u015E\xAB\xAC\xAD\xAE\u017B\xB0\xB1\u02DB\u0142\xB4\xB5\xB6\xB7\xB8\u0105\u015F\xBB\u013D\u02DD\u013E\u017C\u0154\xC1\xC2\u0102\xC4\u0139\u0106\xC7\u010C\xC9\u0118\xCB\u011A\xCD\xCE\u010E\u0110\u0143\u0147\xD3\xD4\u0150\xD6\xD7\u0158\u016E\xDA\u0170\xDC\xDD\u0162\xDF\u0155\xE1\xE2\u0103\xE4\u013A\u0107\xE7\u010D\xE9\u0119\xEB\u011B\xED\xEE\u010F\u0111\u0144\u0148\xF3\xF4\u0151\xF6\xF7\u0159\u016F\xFA\u0171\xFC\xFD\u0163\u02D9"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"\u0402\u0403\u201A\u0453\u201E\u2026\u2020\u2021\u20AC\u2030\u0409\u2039\u040A\u040C\u040B\u040F\u0452\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\u0459\u203A\u045A\u045C\u045B\u045F\xA0\u040E\u045E\u0408\xA4\u0490\xA6\xA7\u0401\xA9\u0404\xAB\xAC\xAD\xAE\u0407\xB0\xB1\u0406\u0456\u0491\xB5\xB6\xB7\u0451\u2116\u0454\xBB\u0458\u0405\u0455\u0457\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\uFFFD\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\uFFFD\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\u0385\u0386\xA3\xA4\xA5\xA6\xA7\xA8\xA9\uFFFD\xAB\xAC\xAD\xAE\u2015\xB0\xB1\xB2\xB3\u0384\xB5\xB6\xB7\u0388\u0389\u038A\xBB\u038C\xBD\u038E\u038F\u0390\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\uFFFD\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03AA\u03AB\u03AC\u03AD\u03AE\u03AF\u03B0\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9\u03CA\u03CB\u03CC\u03CD\u03CE\uFFFD"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\uFFFD\uFFFD\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u011E\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\u0130\u015E\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u011F\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\u0131\u015F\xFF"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\uFFFD\u2039\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\uFFFD\u203A\uFFFD\uFFFD\uFFFD\uFFFD\xA0\xA1\xA2\xA3\u20AA\xA5\xA6\xA7\xA8\xA9\xD7\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xF7\xBB\xBC\xBD\xBE\xBF\u05B0\u05B1\u05B2\u05B3\u05B4\u05B5\u05B6\u05B7\u05B8\u05B9\u05BA\u05BB\u05BC\u05BD\u05BE\u05BF\u05C0\u05C1\u05C2\u05C3\u05F0\u05F1\u05F2\u05F3\u05F4\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05