@checksum-ai/runtime 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -0
- package/checksumlib.js +2 -1
- package/cli.js +61 -32
- package/index.d.ts +12 -0
- package/index.js +113 -84
- package/package.json +1 -1
- package/test-run-monitor.js +6 -6
package/cli.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
"use strict";var eg=Object.create;var Fa=Object.defineProperty;var tg=Object.getOwnPropertyDescriptor;var rg=Object.getOwnPropertyNames;var ig=Object.getPrototypeOf,ng=Object.prototype.hasOwnProperty;var Gl=e=>{throw TypeError(e)};var o=(e,t)=>Fa(e,"name",{value:t,configurable:!0});var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ag=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rg(t))!ng.call(e,n)&&n!==r&&Fa(e,n,{get:()=>t[n],enumerable:!(i=tg(t,n))||i.enumerable});return e};var X=(e,t,r)=>(r=e!=null?eg(ig(e)):{},ag(t||!e||!e.__esModule?Fa(r,"default",{value:e,enumerable:!0}):r,e));var _a=(e,t,r)=>t.has(e)||Gl("Cannot "+r);var T=(e,t,r)=>(_a(e,t,"read from private field"),r?r.call(e):t.get(e)),we=(e,t,r)=>t.has(e)?Gl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ze=(e,t,r,i)=>(_a(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Ue=(e,t,r)=>(_a(e,t,"access private method"),r);var qr=D((Sb,Pa)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Pa.exports={nextTick:ug}:Pa.exports=process;function ug(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(o(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(o(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(o(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(o(function(){e.apply(null,a)},"afterTick"))}}o(ug,"nextTick")});var Xl=D((Fb,Yl)=>{var cg={}.toString;Yl.exports=Array.isArray||function(e){return cg.call(e)=="[object Array]"}});var Ra=D((_b,Ql)=>{Ql.exports=require("stream")});var jr=D((Ia,tu)=>{var Vi=require("buffer"),Ke=Vi.Buffer;function eu(e,t){for(var r in e)t[r]=e[r]}o(eu,"copyProps");Ke.from&&Ke.alloc&&Ke.allocUnsafe&&Ke.allocUnsafeSlow?tu.exports=Vi:(eu(Vi,Ia),Ia.Buffer=Kt);function Kt(e,t,r){return Ke(e,t,r)}o(Kt,"SafeBuffer");eu(Ke,Kt);Kt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Ke(e,t,r)};Kt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Ke(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Kt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ke(e)};Kt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Vi.SlowBuffer(e)}});var Jt=D(ne=>{function hg(e){return Array.isArray?Array.isArray(e):Zi(e)==="[object Array]"}o(hg,"isArray");ne.isArray=hg;function fg(e){return typeof e=="boolean"}o(fg,"isBoolean");ne.isBoolean=fg;function dg(e){return e===null}o(dg,"isNull");ne.isNull=dg;function pg(e){return e==null}o(pg,"isNullOrUndefined");ne.isNullOrUndefined=pg;function gg(e){return typeof e=="number"}o(gg,"isNumber");ne.isNumber=gg;function mg(e){return typeof e=="string"}o(mg,"isString");ne.isString=mg;function Dg(e){return typeof e=="symbol"}o(Dg,"isSymbol");ne.isSymbol=Dg;function vg(e){return e===void 0}o(vg,"isUndefined");ne.isUndefined=vg;function yg(e){return Zi(e)==="[object RegExp]"}o(yg,"isRegExp");ne.isRegExp=yg;function wg(e){return typeof e=="object"&&e!==null}o(wg,"isObject");ne.isObject=wg;function bg(e){return Zi(e)==="[object Date]"}o(bg,"isDate");ne.isDate=bg;function Cg(e){return Zi(e)==="[object Error]"||e instanceof Error}o(Cg,"isError");ne.isError=Cg;function kg(e){return typeof e=="function"}o(kg,"isFunction");ne.isFunction=kg;function xg(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}o(xg,"isPrimitive");ne.isPrimitive=xg;ne.isBuffer=require("buffer").Buffer.isBuffer;function Zi(e){return Object.prototype.toString.call(e)}o(Zi,"objectToString")});var ru=D((Rb,Ma)=>{typeof Object.create=="function"?Ma.exports=o(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Ma.exports=o(function(t,r){if(r){t.super_=r;var i=o(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var Yt=D((Mb,Ba)=>{try{if(La=require("util"),typeof La.inherits!="function")throw"";Ba.exports=La.inherits}catch{Ba.exports=ru()}var La});var nu=D((Lb,Oa)=>{"use strict";function Sg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o(Sg,"_classCallCheck");var iu=jr().Buffer,zr=require("util");function Eg(e,t,r){e.copy(t,r)}o(Eg,"copyBuffer");Oa.exports=function(){function e(){Sg(this,e),this.head=null,this.tail=null,this.length=0}return o(e,"BufferList"),e.prototype.push=o(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=o(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=o(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=o(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=o(function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},"join"),e.prototype.concat=o(function(r){if(this.length===0)return iu.alloc(0);for(var i=iu.allocUnsafe(r>>>0),n=this.head,a=0;n;)Eg(n.data,i,a),a+=n.data.length,n=n.next;return i},"concat"),e}();zr&&zr.inspect&&zr.inspect.custom&&(Oa.exports.prototype[zr.inspect.custom]=function(){var e=zr.inspect({length:this.length});return this.constructor.name+" "+e})});var Ua=D((Ob,au)=>{"use strict";var Ki=qr();function Fg(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ki.nextTick(Ji,this,e)):Ki.nextTick(Ji,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Ki.nextTick(Ji,r,a)):Ki.nextTick(Ji,r,a):t&&t(a)}),this)}o(Fg,"destroy");function _g(){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)}o(_g,"undestroy");function Ji(e,t){e.emit("error",t)}o(Ji,"emitErrorNT");au.exports={destroy:Fg,undestroy:_g}});var su=D((Nb,ou)=>{ou.exports=require("util").deprecate});var Wa=D((Wb,gu)=>{"use strict";var kt=qr();gu.exports=K;function uu(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$g(t,e)}}o(uu,"CorkedRequest");var Ag=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:kt.nextTick,Xt;K.WritableState=Gr;var cu=Object.create(Jt());cu.inherits=Yt();var Tg={deprecate:su()},hu=Ra(),Xi=jr().Buffer,Pg=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Rg(e){return Xi.from(e)}o(Rg,"_uint8ArrayToBuffer");function Ig(e){return Xi.isBuffer(e)||e instanceof Pg}o(Ig,"_isUint8Array");var fu=Ua();cu.inherits(K,hu);function Mg(){}o(Mg,"nop");function Gr(e,t){Xt=Xt||xt(),e=e||{};var r=t instanceof Xt;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,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 s=e.decodeStrings===!1;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(l){qg(t,l)},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 uu(this)}o(Gr,"WritableState");Gr.prototype.getBuffer=o(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Gr.prototype,"buffer",{get:Tg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Yi;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Yi=Function.prototype[Symbol.hasInstance],Object.defineProperty(K,Symbol.hasInstance,{value:o(function(e){return Yi.call(this,e)?!0:this!==K?!1:e&&e._writableState instanceof Gr},"value")})):Yi=o(function(e){return e instanceof this},"realHasInstance");function K(e){if(Xt=Xt||xt(),!Yi.call(K,this)&&!(this instanceof Xt))return new K(e);this._writableState=new Gr(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),hu.call(this)}o(K,"Writable");K.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Lg(e,t){var r=new Error("write after end");e.emit("error",r),kt.nextTick(t,r)}o(Lg,"writeAfterEnd");function Bg(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),kt.nextTick(i,a),n=!1),n}o(Bg,"validChunk");K.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&Ig(e);return a&&!Xi.isBuffer(e)&&(e=Rg(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Mg),i.ended?Lg(this,r):(a||Bg(this,i,e,r))&&(i.pendingcb++,n=Ug(this,i,a,e,t,r)),n};K.prototype.cork=function(){var e=this._writableState;e.corked++};K.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&du(this,e))};K.prototype.setDefaultEncoding=o(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function Og(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Xi.from(t,r)),t}o(Og,"decodeChunk");Object.defineProperty(K.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function Ug(e,t,r,i,n,a){if(!r){var s=Og(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var l=t.objectMode?1:i.length;t.length+=l;var h=t.length<t.highWaterMark;if(h||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Na(e,t,!1,l,i,n,a);return h}o(Ug,"writeOrBuffer");function Na(e,t,r,i,n,a,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}o(Na,"doWrite");function Ng(e,t,r,i,n){--t.pendingcb,r?(kt.nextTick(n,i),kt.nextTick(Hr,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),Hr(e,t))}o(Ng,"onwriteError");function Wg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}o(Wg,"onwriteStateUpdate");function qg(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(Wg(r),t)Ng(e,r,i,t,n);else{var a=pu(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&du(e,r),i?Ag(lu,e,r,a,n):lu(e,r,a,n)}}o(qg,"onwrite");function lu(e,t,r,i){r||jg(e,t),t.pendingcb--,i(),Hr(e,t)}o(lu,"afterWrite");function jg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}o(jg,"onwriteDrain");function du(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)n[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;n.allBuffers=l,Na(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new uu(t),t.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,u=r.encoding,c=r.callback,f=t.objectMode?1:h.length;if(Na(e,t,!1,f,h,u,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}o(du,"clearBuffer");K.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};K.prototype._writev=null;K.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Gg(this,i,r)};function pu(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}o(pu,"needFinish");function zg(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Hr(e,t)})}o(zg,"callFinal");function Hg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,kt.nextTick(zg,e,t)):(t.prefinished=!0,e.emit("prefinish")))}o(Hg,"prefinish");function Hr(e,t){var r=pu(t);return r&&(Hg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}o(Hr,"finishMaybe");function Gg(e,t,r){t.ending=!0,Hr(e,t),r&&(t.finished?kt.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}o(Gg,"endWritable");function $g(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}o($g,"onCorkedFinish");Object.defineProperty(K.prototype,"destroyed",{get:o(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:o(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});K.prototype.destroy=fu.destroy;K.prototype._undestroy=fu.undestroy;K.prototype._destroy=function(e,t){this.end(),t(e)}});var xt=D((jb,yu)=>{"use strict";var mu=qr(),Vg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};yu.exports=Je;var Du=Object.create(Jt());Du.inherits=Yt();var vu=za(),ja=Wa();Du.inherits(Je,vu);for(qa=Vg(ja.prototype),Qi=0;Qi<qa.length;Qi++)en=qa[Qi],Je.prototype[en]||(Je.prototype[en]=ja.prototype[en]);var qa,en,Qi;function Je(e){if(!(this instanceof Je))return new Je(e);vu.call(this,e),ja.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Zg)}o(Je,"Duplex");Object.defineProperty(Je.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function Zg(){this.allowHalfOpen||this._writableState.ended||mu.nextTick(Kg,this)}o(Zg,"onend");function Kg(e){e.end()}o(Kg,"onEndNT");Object.defineProperty(Je.prototype,"destroyed",{get:o(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:o(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});Je.prototype._destroy=function(e,t){this.push(null),this.end(),mu.nextTick(t,e)}});var $a=D(bu=>{"use strict";var Ga=jr().Buffer,wu=Ga.isEncoding||function(e){switch(e=""+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 Jg(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}}o(Jg,"_normalizeEncoding");function Yg(e){var t=Jg(e);if(typeof t!="string"&&(Ga.isEncoding===wu||!wu(e)))throw new Error("Unknown encoding: "+e);return t||e}o(Yg,"normalizeEncoding");bu.StringDecoder=$r;function $r(e){this.encoding=Yg(e);var t;switch(this.encoding){case"utf16le":this.text=im,this.end=nm,t=4;break;case"utf8":this.fillLast=em,t=4;break;case"base64":this.text=am,this.end=om,t=3;break;default:this.write=sm,this.end=lm;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ga.allocUnsafe(t)}o($r,"StringDecoder");$r.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};$r.prototype.end=rm;$r.prototype.text=tm;$r.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};function Ha(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}o(Ha,"utf8CheckByte");function Xg(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Ha(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ha(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}o(Xg,"utf8CheckIncomplete");function Qg(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}o(Qg,"utf8CheckExtraBytes");function em(e){var t=this.lastTotal-this.lastNeed,r=Qg(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}o(em,"utf8FillLast");function tm(e,t){var r=Xg(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}o(tm,"utf8Text");function rm(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}o(rm,"utf8End");function im(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=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)}o(im,"utf16Text");function nm(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}o(nm,"utf16End");function am(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?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))}o(am,"base64Text");function om(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}o(om,"base64End");function sm(e){return e.toString(this.encoding)}o(sm,"simpleWrite");function lm(e){return e&&e.length?this.write(e):""}o(lm,"simpleEnd")});var za=D((Vb,Iu)=>{"use strict";var er=qr();Iu.exports=j;var um=Xl(),Vr;j.ReadableState=_u;var $b=require("events").EventEmitter,Su=o(function(e,t){return e.listeners(t).length},"EElistenerCount"),Ya=Ra(),Zr=jr().Buffer,cm=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hm(e){return Zr.from(e)}o(hm,"_uint8ArrayToBuffer");function fm(e){return Zr.isBuffer(e)||e instanceof cm}o(fm,"_isUint8Array");var Eu=Object.create(Jt());Eu.inherits=Yt();var Va=require("util"),O=void 0;Va&&Va.debuglog?O=Va.debuglog("stream"):O=o(function(){},"debug");var dm=nu(),Fu=Ua(),Qt;Eu.inherits(j,Ya);var Za=["error","close","destroy","pause","resume"];function pm(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):um(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}o(pm,"prependListener");function _u(e,t){Vr=Vr||xt(),e=e||{};var r=t instanceof Vr;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new dm,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&&(Qt||(Qt=$a().StringDecoder),this.decoder=new Qt(e.encoding),this.encoding=e.encoding)}o(_u,"ReadableState");function j(e){if(Vr=Vr||xt(),!(this instanceof j))return new j(e);this._readableState=new _u(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ya.call(this)}o(j,"Readable");Object.defineProperty(j.prototype,"destroyed",{get:o(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:o(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});j.prototype.destroy=Fu.destroy;j.prototype._undestroy=Fu.undestroy;j.prototype._destroy=function(e,t){this.push(null),t(e)};j.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Zr.from(e,t),t=""),i=!0),Au(this,e,t,!1,i)};j.prototype.unshift=function(e){return Au(this,e,null,!0,!1)};function Au(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,vm(e,a);else{var s;n||(s=gm(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Zr.prototype&&(t=hm(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Ka(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Ka(e,a,t,!1):Tu(e,a)):Ka(e,a,t,!1))):i||(a.reading=!1)}return mm(a)}o(Au,"readableAddChunk");function Ka(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&tn(e)),Tu(e,t)}o(Ka,"addChunk");function gm(e,t){var r;return!fm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}o(gm,"chunkInvalid");function mm(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}o(mm,"needMoreData");j.prototype.isPaused=function(){return this._readableState.flowing===!1};j.prototype.setEncoding=function(e){return Qt||(Qt=$a().StringDecoder),this._readableState.decoder=new Qt(e),this._readableState.encoding=e,this};var Cu=8388608;function Dm(e){return e>=Cu?e=Cu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}o(Dm,"computeNewHighWaterMark");function ku(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Dm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}o(ku,"howMuchToRead");j.prototype.read=function(e){O("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return O("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ja(this):tn(this),null;if(e=ku(e,t),e===0&&t.ended)return t.length===0&&Ja(this),null;var i=t.needReadable;O("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,O("length less than watermark",i)),t.ended||t.reading?(i=!1,O("reading or ended",i)):i&&(O("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=ku(r,t)));var n;return e>0?n=Pu(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ja(this)),n!==null&&this.emit("data",n),n};function vm(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,tn(e)}}o(vm,"onEofChunk");function tn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(O("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?er.nextTick(xu,e):xu(e))}o(tn,"emitReadable");function xu(e){O("emit readable"),e.emit("readable"),Xa(e)}o(xu,"emitReadable_");function Tu(e,t){t.readingMore||(t.readingMore=!0,er.nextTick(ym,e,t))}o(Tu,"maybeReadMore");function ym(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(O("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}o(ym,"maybeReadMore_");j.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};j.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);break}i.pipesCount+=1,O("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?l:y;i.endEmitted?er.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(m,b){O("onunpipe"),m===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,c())}o(s,"onunpipe");function l(){O("onend"),e.end()}o(l,"onend");var h=wm(r);e.on("drain",h);var u=!1;function c(){O("cleanup"),e.removeListener("close",C),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",d),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&h()}o(c,"cleanup");var f=!1;r.on("data",d);function d(m){O("ondata"),f=!1;var b=e.write(m);b===!1&&!f&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Ru(i.pipes,e)!==-1)&&!u&&(O("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}o(d,"ondata");function p(m){O("onerror",m),y(),e.removeListener("error",p),Su(e,"error")===0&&e.emit("error",m)}o(p,"onerror"),pm(e,"error",p);function C(){e.removeListener("finish",v),y()}o(C,"onclose"),e.once("close",C);function v(){O("onfinish"),e.removeListener("close",C),y()}o(v,"onfinish"),e.once("finish",v);function y(){O("unpipe"),r.unpipe(e)}return o(y,"unpipe"),e.emit("pipe",r),i.flowing||(O("pipe resume"),r.resume()),e};function wm(e){return function(){var t=e._readableState;O("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Su(e,"data")&&(t.flowing=!0,Xa(e))}}o(wm,"pipeOnDrain");j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Ru(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};j.prototype.on=function(e,t){var r=Ya.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&tn(this):er.nextTick(bm,this))}return r};j.prototype.addListener=j.prototype.on;function bm(e){O("readable nexttick read 0"),e.read(0)}o(bm,"nReadingNextTick");j.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=!0,Cm(this,e)),this};function Cm(e,t){t.resumeScheduled||(t.resumeScheduled=!0,er.nextTick(km,e,t))}o(Cm,"resume");function km(e,t){t.reading||(O("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Xa(e),t.flowing&&!t.reading&&e.read(0)}o(km,"resume_");j.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xa(e){var t=e._readableState;for(O("flow",t.flowing);t.flowing&&e.read()!==null;);}o(Xa,"flow");j.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(O("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(O("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var l=t.push(s);l||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(s){return function(){return e[s].apply(e,arguments)}}(n));for(var a=0;a<Za.length;a++)e.on(Za[a],this.emit.bind(this,Za[a]));return this._read=function(s){O("wrapped _read",s),i&&(i=!1,e.resume())},this};Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")});j._fromList=Pu;function Pu(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=xm(e,t.buffer,t.decoder),r}o(Pu,"fromList");function xm(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?Sm(e,t):Em(e,t),i}o(xm,"fromListPartial");function Sm(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),e-=s,e===0){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}o(Sm,"copyFromBufferString");function Em(e,t){var r=Zr.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}o(Em,"copyFromBuffer");function Ja(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,er.nextTick(Fm,t,e))}o(Ja,"endReadable");function Fm(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}o(Fm,"endReadableNT");function Ru(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}o(Ru,"indexOf")});var Qa=D((Kb,Bu)=>{"use strict";Bu.exports=Ye;var rn=xt(),Lu=Object.create(Jt());Lu.inherits=Yt();Lu.inherits(Ye,rn);function _m(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}o(_m,"afterTransform");function Ye(e){if(!(this instanceof Ye))return new Ye(e);rn.call(this,e),this._transformState={afterTransform:_m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",Am)}o(Ye,"Transform");function Am(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Mu(e,t,r)}):Mu(this,null,null)}o(Am,"prefinish");Ye.prototype.push=function(e,t){return this._transformState.needTransform=!1,rn.prototype.push.call(this,e,t)};Ye.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Ye.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};Ye.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Ye.prototype._destroy=function(e,t){var r=this;rn.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function Mu(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o(Mu,"done")});var Wu=D((Yb,Nu)=>{"use strict";Nu.exports=Kr;var Ou=Qa(),Uu=Object.create(Jt());Uu.inherits=Yt();Uu.inherits(Kr,Ou);function Kr(e){if(!(this instanceof Kr))return new Kr(e);Ou.call(this,e)}o(Kr,"PassThrough");Kr.prototype._transform=function(e,t,r){r(null,e)}});var eo=D((re,nn)=>{var Ne=require("stream");process.env.READABLE_STREAM==="disable"&&Ne?(nn.exports=Ne,re=nn.exports=Ne.Readable,re.Readable=Ne.Readable,re.Writable=Ne.Writable,re.Duplex=Ne.Duplex,re.Transform=Ne.Transform,re.PassThrough=Ne.PassThrough,re.Stream=Ne):(re=nn.exports=za(),re.Stream=Ne||re,re.Readable=re,re.Writable=Wa(),re.Duplex=xt(),re.Transform=Qa(),re.PassThrough=Wu())});var Xe=D(ge=>{"use strict";ge.base64=!0;ge.array=!0;ge.string=!0;ge.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ge.nodebuffer=typeof Buffer<"u";ge.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ge.blob=!1;else{to=new ArrayBuffer(0);try{ge.blob=new Blob([to],{type:"application/zip"}).size===0}catch{try{qu=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,ro=new qu,ro.append(to),ge.blob=ro.getBlob("application/zip").size===0}catch{ge.blob=!1}}}var to,qu,ro;try{ge.nodestream=!!eo().Readable}catch{ge.nodestream=!1}});var no=D(io=>{"use strict";var Tm=H(),Pm=Xe(),We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";io.encode=function(e){for(var t=[],r,i,n,a,s,l,h,u=0,c=e.length,f=c,d=Tm.getTypeOf(e)!=="string";u<e.length;)f=c-u,d?(r=e[u++],i=u<c?e[u++]:0,n=u<c?e[u++]:0):(r=e.charCodeAt(u++),i=u<c?e.charCodeAt(u++):0,n=u<c?e.charCodeAt(u++):0),a=r>>2,s=(r&3)<<4|i>>4,l=f>1?(i&15)<<2|n>>6:64,h=f>2?n&63:64,t.push(We.charAt(a)+We.charAt(s)+We.charAt(l)+We.charAt(h));return t.join("")};io.decode=function(e){var t,r,i,n,a,s,l,h=0,u=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===We.charAt(64)&&f--,e.charAt(e.length-2)===We.charAt(64)&&f--,f%1!==0)throw new Error("Invalid base64 input, bad content length.");var d;for(Pm.uint8array?d=new Uint8Array(f|0):d=new Array(f|0);h<e.length;)n=We.indexOf(e.charAt(h++)),a=We.indexOf(e.charAt(h++)),s=We.indexOf(e.charAt(h++)),l=We.indexOf(e.charAt(h++)),t=n<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|l,d[u++]=t,s!==64&&(d[u++]=r),l!==64&&(d[u++]=i);return d}});var Jr=D((tC,ju)=>{"use strict";ju.exports={isNode:typeof Buffer<"u",newBufferFrom:o(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:o(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:o(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:o(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var $u=D((iC,Gu)=>{"use strict";var zu=global.MutationObserver||global.WebKitMutationObserver,tr;process.browser?zu?(ao=0,Hu=new zu(Yr),oo=global.document.createTextNode(""),Hu.observe(oo,{characterData:!0}),tr=o(function(){oo.data=ao=++ao%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(so=new global.MessageChannel,so.port1.onmessage=Yr,tr=o(function(){so.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?tr=o(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Yr(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):tr=o(function(){setTimeout(Yr,0)},"scheduleDrain"):tr=o(function(){process.nextTick(Yr)},"scheduleDrain");var ao,Hu,oo,so,lo,Xr=[];function Yr(){lo=!0;for(var e,t,r=Xr.length;r;){for(t=Xr,Xr=[],e=-1;++e<r;)t[e]();r=Xr.length}lo=!1}o(Yr,"nextTick");Gu.exports=Rm;function Rm(e){Xr.push(e)===1&&!lo&&tr()}o(Rm,"immediate")});var Qu=D((aC,Xu)=>{"use strict";var Vu=$u();function rr(){}o(rr,"INTERNAL");var ae={},Zu=["REJECTED"],uo=["FULFILLED"],Ku=["PENDING"];process.browser||(Qr=["UNHANDLED"]);var Qr;Xu.exports=ot;function ot(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Ku,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Qr),e!==rr&&Ju(this,e)}o(ot,"Promise");ot.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return o(a,"yes"),t.resolve(e()).then(a)}function i(n){function a(){throw n}return o(a,"no"),t.resolve(e()).then(a)}};ot.prototype.catch=function(e){return this.then(null,e)};ot.prototype.then=function(e,t){if(typeof e!="function"&&this.state===uo||typeof t!="function"&&this.state===Zu)return this;var r=new this.constructor(rr);if(process.browser||this.handled===Qr&&(this.handled=null),this.state!==Ku){var i=this.state===uo?e:t;co(r,i,this.outcome)}else this.queue.push(new ei(r,e,t));return r};function ei(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}o(ei,"QueueItem");ei.prototype.callFulfilled=function(e){ae.resolve(this.promise,e)};ei.prototype.otherCallFulfilled=function(e){co(this.promise,this.onFulfilled,e)};ei.prototype.callRejected=function(e){ae.reject(this.promise,e)};ei.prototype.otherCallRejected=function(e){co(this.promise,this.onRejected,e)};function co(e,t,r){Vu(function(){var i;try{i=t(r)}catch(n){return ae.reject(e,n)}i===e?ae.reject(e,new TypeError("Cannot resolve promise with itself")):ae.resolve(e,i)})}o(co,"unwrap");ae.resolve=function(e,t){var r=Yu(Im,t);if(r.status==="error")return ae.reject(e,r.value);var i=r.value;if(i)Ju(e,i);else{e.state=uo,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};ae.reject=function(e,t){e.state=Zu,e.outcome=t,process.browser||e.handled===Qr&&Vu(function(){e.handled===Qr&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function Im(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return o(function(){t.apply(e,arguments)},"appyThen")}o(Im,"getThen");function Ju(e,t){var r=!1;function i(l){r||(r=!0,ae.reject(e,l))}o(i,"onError");function n(l){r||(r=!0,ae.resolve(e,l))}o(n,"onSuccess");function a(){t(n,i)}o(a,"tryToUnwrap");var s=Yu(a);s.status==="error"&&i(s.value)}o(Ju,"safelyResolveThenable");function Yu(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}o(Yu,"tryCatch");ot.resolve=Mm;function Mm(e){return e instanceof this?e:ae.resolve(new this(rr),e)}o(Mm,"resolve");ot.reject=Lm;function Lm(e){var t=new this(rr);return ae.reject(t,e)}o(Lm,"reject");ot.all=Bm;function Bm(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=new Array(r),a=0,s=-1,l=new this(rr);++s<r;)h(e[s],s);return l;function h(u,c){t.resolve(u).then(f,function(d){i||(i=!0,ae.reject(l,d))});function f(d){n[c]=d,++a===r&&!i&&(i=!0,ae.resolve(l,n))}o(f,"resolveFromAll")}}o(Bm,"all");ot.race=Om;function Om(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=-1,a=new this(rr);++n<r;)s(e[n]);return a;function s(l){t.resolve(l).then(function(h){i||(i=!0,ae.resolve(a,h))},function(h){i||(i=!0,ae.reject(a,h))})}}o(Om,"race")});var ir=D((sC,ec)=>{"use strict";var ho=null;typeof Promise<"u"?ho=Promise:ho=Qu();ec.exports={Promise:ho}});var rc=D(tc=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,s;function l(b){typeof b!="function"&&(b=new Function(""+b));for(var k=new Array(arguments.length-1),w=0;w<k.length;w++)k[w]=arguments[w+1];var g={callback:b,args:k};return i[r]=g,s(r),r++}o(l,"setImmediate");function h(b){delete i[b]}o(h,"clearImmediate");function u(b){var k=b.callback,w=b.args;switch(w.length){case 0:k();break;case 1:k(w[0]);break;case 2:k(w[0],w[1]);break;case 3:k(w[0],w[1],w[2]);break;default:k.apply(t,w);break}}o(u,"run");function c(b){if(n)setTimeout(c,0,b);else{var k=i[b];if(k){n=!0;try{u(k)}finally{h(b),n=!1}}}}o(c,"runIfPresent");function f(){s=o(function(b){process.nextTick(function(){c(b)})},"registerImmediate")}o(f,"installNextTickImplementation");function d(){if(e.postMessage&&!e.importScripts){var b=!0,k=e.onmessage;return e.onmessage=function(){b=!1},e.postMessage("","*"),e.onmessage=k,b}}o(d,"canUsePostMessage");function p(){var b="setImmediate$"+Math.random()+"$",k=o(function(w){w.source===e&&typeof w.data=="string"&&w.data.indexOf(b)===0&&c(+w.data.slice(b.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",k,!1):e.attachEvent("onmessage",k),s=o(function(w){e.postMessage(b+w,"*")},"registerImmediate")}o(p,"installPostMessageImplementation");function C(){var b=new MessageChannel;b.port1.onmessage=function(k){var w=k.data;c(w)},s=o(function(k){b.port2.postMessage(k)},"registerImmediate")}o(C,"installMessageChannelImplementation");function v(){var b=a.documentElement;s=o(function(k){var w=a.createElement("script");w.onreadystatechange=function(){c(k),w.onreadystatechange=null,b.removeChild(w),w=null},b.appendChild(w)},"registerImmediate")}o(v,"installReadyStateChangeImplementation");function y(){s=o(function(b){setTimeout(c,0,b)},"registerImmediate")}o(y,"installSetTimeoutImplementation");var m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,{}.toString.call(e.process)==="[object process]"?f():d()?p():e.MessageChannel?C():a&&"onreadystatechange"in a.createElement("script")?v():y(),m.setImmediate=l,m.clearImmediate=h})(typeof self>"u"?typeof global>"u"?tc:global:self)});var H=D(J=>{"use strict";var st=Xe(),Um=no(),nr=Jr(),fo=ir();rc();function Nm(e){var t=null;return st.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),on(e,t)}o(Nm,"string2binary");J.newBlob=function(e,t){J.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function ti(e){return e}o(ti,"identity");function on(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}o(on,"stringToArrayLike");var an={stringifyByChunk:o(function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:o(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return st.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return st.nodebuffer&&String.fromCharCode.apply(null,nr.allocBuffer(1)).length===1}catch{return!1}}()}};function ri(e){var t=65536,r=J.getTypeOf(e),i=!0;if(r==="uint8array"?i=an.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=an.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return an.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return an.stringifyByChar(e)}o(ri,"arrayLikeToString");J.applyFromCharCode=ri;function sn(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}o(sn,"arrayLikeToArrayLike");var lt={};lt.string={string:ti,array:o(function(e){return on(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return lt.string.uint8array(e).buffer},"arraybuffer"),uint8array:o(function(e){return on(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:o(function(e){return on(e,nr.allocBuffer(e.length))},"nodebuffer")};lt.array={string:ri,array:ti,arraybuffer:o(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:o(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:o(function(e){return nr.newBufferFrom(e)},"nodebuffer")};lt.arraybuffer={string:o(function(e){return ri(new Uint8Array(e))},"string"),array:o(function(e){return sn(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:ti,uint8array:o(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:o(function(e){return nr.newBufferFrom(new Uint8Array(e))},"nodebuffer")};lt.uint8array={string:ri,array:o(function(e){return sn(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return e.buffer},"arraybuffer"),uint8array:ti,nodebuffer:o(function(e){return nr.newBufferFrom(e)},"nodebuffer")};lt.nodebuffer={string:ri,array:o(function(e){return sn(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return lt.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:o(function(e){return sn(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:ti};J.transformTo=function(e,t){if(t||(t=""),!e)return t;J.checkSupport(e);var r=J.getTypeOf(t),i=lt[r][e](t);return i};J.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};J.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(st.nodebuffer&&nr.isBuffer(e))return"nodebuffer";if(st.uint8array&&e instanceof Uint8Array)return"uint8array";if(st.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};J.checkSupport=function(e){var t=st[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};J.MAX_VALUE_16BITS=65535;J.MAX_VALUE_32BITS=-1;J.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};J.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};J.inherits=function(e,t){var r=o(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};J.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};J.prepareContent=function(e,t,r,i,n){var a=fo.Promise.resolve(t).then(function(s){var l=st.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return l&&typeof FileReader<"u"?new fo.Promise(function(h,u){var c=new FileReader;c.onload=function(f){h(f.target.result)},c.onerror=function(f){u(f.target.error)},c.readAsArrayBuffer(s)}):s});return a.then(function(s){var l=J.getTypeOf(s);return l?(l==="arraybuffer"?s=J.transformTo("uint8array",s):l==="string"&&(n?s=Um.decode(s):r&&i!==!0&&(s=Nm(s))),s):fo.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var me=D((fC,nc)=>{"use strict";function ic(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o(ic,"GenericWorker");ic.prototype={push:o(function(e){this.emit("data",e)},"push"),end:o(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:o(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:o(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:o(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:o(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:o(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:o(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:o(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:o(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:o(function(){},"flush"),processChunk:o(function(e){this.push(e)},"processChunk"),withStreamInfo:o(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:o(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:o(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:o(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};nc.exports=ic});var or=D(ut=>{"use strict";var ar=H(),St=Xe(),Wm=Jr(),ln=me(),ii=new Array(256);for(Qe=0;Qe<256;Qe++)ii[Qe]=Qe>=252?6:Qe>=248?5:Qe>=240?4:Qe>=224?3:Qe>=192?2:1;var Qe;ii[254]=ii[254]=1;var qm=o(function(e){var t,r,i,n,a,s=e.length,l=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(St.uint8array?t=new Uint8Array(l):t=new Array(l),a=0,n=0;a<l;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},"string2buf"),jm=o(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+ii[e[r]]>t?r:t},"utf8border"),zm=o(function(e){var t,r,i,n,a=e.length,s=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){s[r++]=i;continue}if(n=ii[i],n>4){s[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),ar.applyFromCharCode(s)},"buf2string");ut.utf8encode=o(function(t){return St.nodebuffer?Wm.newBufferFrom(t,"utf-8"):qm(t)},"utf8encode");ut.utf8decode=o(function(t){return St.nodebuffer?ar.transformTo("nodebuffer",t).toString("utf-8"):(t=ar.transformTo(St.uint8array?"uint8array":"array",t),zm(t))},"utf8decode");function un(){ln.call(this,"utf-8 decode"),this.leftOver=null}o(un,"Utf8DecodeWorker");ar.inherits(un,ln);un.prototype.processChunk=function(e){var t=ar.transformTo(St.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(St.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=jm(t),n=t;i!==t.length&&(St.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:ut.utf8decode(n),meta:e.meta})};un.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ut.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};ut.Utf8DecodeWorker=un;function po(){ln.call(this,"utf-8 encode")}o(po,"Utf8EncodeWorker");ar.inherits(po,ln);po.prototype.processChunk=function(e){this.push({data:ut.utf8encode(e.data),meta:e.meta})};ut.Utf8EncodeWorker=po});var lc=D((mC,sc)=>{"use strict";var ac=me(),oc=H();function go(e){ac.call(this,"ConvertWorker to "+e),this.destType=e}o(go,"ConvertWorker");oc.inherits(go,ac);go.prototype.processChunk=function(e){this.push({data:oc.transformTo(this.destType,e.data),meta:e.meta})};sc.exports=go});var hc=D((vC,cc)=>{"use strict";var uc=eo().Readable,Hm=H();Hm.inherits(mo,uc);function mo(e,t,r){uc.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}o(mo,"NodejsStreamOutputAdapter");mo.prototype._read=function(){this._helper.resume()};cc.exports=mo});var Do=D((wC,pc)=>{"use strict";var Et=H(),Gm=lc(),$m=me(),Vm=no(),Zm=Xe(),Km=ir(),fc=null;if(Zm.nodestream)try{fc=hc()}catch{}function Jm(e,t,r){switch(e){case"blob":return Et.newBlob(Et.transformTo("arraybuffer",t),r);case"base64":return Vm.encode(t);default:return Et.transformTo(e,t)}}o(Jm,"transformZipOutput");function Ym(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}o(Ym,"concat");function Xm(e,t){return new Km.Promise(function(r,i){var n=[],a=e._internalType,s=e._outputType,l=e._mimeType;e.on("data",function(h,u){n.push(h),t&&t(u)}).on("error",function(h){n=[],i(h)}).on("end",function(){try{var h=Jm(s,Ym(a,n),l);r(h)}catch(u){i(u)}n=[]}).resume()})}o(Xm,"accumulate");function dc(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Et.checkSupport(i),this._worker=e.pipe(new Gm(i)),e.lock()}catch(n){this._worker=new $m("error"),this._worker.error(n)}}o(dc,"StreamHelper");dc.prototype={accumulate:o(function(e){return Xm(this,e)},"accumulate"),on:o(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Et.delay(t,arguments,r)}),this},"on"),resume:o(function(){return Et.delay(this._worker.resume,[],this._worker),this},"resume"),pause:o(function(){return this._worker.pause(),this},"pause"),toNodejsStream:o(function(e){if(Et.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new fc(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};pc.exports=dc});var vo=D(Te=>{"use strict";Te.base64=!1;Te.binary=!1;Te.dir=!1;Te.createFolders=!0;Te.date=null;Te.compression=null;Te.compressionOptions=null;Te.comment=null;Te.unixPermissions=null;Te.dosPermissions=null});var yo=D((kC,gc)=>{"use strict";var cn=H(),hn=me(),Qm=16*1024;function sr(e){hn.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=cn.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}o(sr,"DataWorker");cn.inherits(sr,hn);sr.prototype.cleanUp=function(){hn.prototype.cleanUp.call(this),this.data=null};sr.prototype.resume=function(){return hn.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,cn.delay(this._tickAndRepeat,[],this)),!0):!1};sr.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(cn.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};sr.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Qm,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};gc.exports=sr});var fn=D((SC,Dc)=>{"use strict";var e0=H();function t0(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}o(t0,"makeTable");var mc=t0();function r0(e,t,r,i){var n=mc,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}o(r0,"crc32");function i0(e,t,r,i){var n=mc,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t.charCodeAt(s))&255];return e^-1}o(i0,"crc32str");Dc.exports=o(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=e0.getTypeOf(t)!=="string";return i?r0(r|0,t,t.length,0):i0(r|0,t,t.length,0)},"crc32wrapper")});var bo=D((FC,yc)=>{"use strict";var vc=me(),n0=fn(),a0=H();function wo(){vc.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o(wo,"Crc32Probe");a0.inherits(wo,vc);wo.prototype.processChunk=function(e){this.streamInfo.crc32=n0(e.data,this.streamInfo.crc32||0),this.push(e)};yc.exports=wo});var bc=D((AC,wc)=>{"use strict";var o0=H(),Co=me();function ko(e){Co.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}o(ko,"DataLengthProbe");o0.inherits(ko,Co);ko.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Co.prototype.processChunk.call(this,e)};wc.exports=ko});var dn=D((PC,xc)=>{"use strict";var Cc=ir(),kc=yo(),s0=bo(),xo=bc();function So(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}o(So,"CompressedObject");So.prototype={getContentWorker:o(function(){var e=new kc(Cc.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new xo("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:o(function(){return new kc(Cc.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};So.createWorkerFrom=function(e,t,r){return e.pipe(new s0).pipe(new xo("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new xo("compressedSize")).withStreamInfo("compression",t)};xc.exports=So});var _c=D((IC,Fc)=>{"use strict";var l0=Do(),u0=yo(),Eo=or(),Fo=dn(),Sc=me(),_o=o(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");_o.prototype={internalStream:o(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new Eo.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new Eo.Utf8DecodeWorker))}catch(a){t=new Sc("error"),t.error(a)}return new l0(t,r,"")},"internalStream"),async:o(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:o(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:o(function(e,t){if(this._data instanceof Fo&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Eo.Utf8EncodeWorker)),Fo.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:o(function(){return this._data instanceof Fo?this._data.getContentWorker():this._data instanceof Sc?this._data:new u0(this._data)},"_decompressWorker")};var Ec=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c0=o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(pn=0;pn<Ec.length;pn++)_o.prototype[Ec[pn]]=c0;var pn;Fc.exports=_o});var et=D(se=>{"use strict";var h0=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function f0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}o(f0,"_has");se.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)f0(r,i)&&(e[i]=r[i])}}return e};se.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var d0={arraySet:o(function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},"arraySet"),flattenChunks:o(function(e){var t,r,i,n,a,s;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s},"flattenChunks")},p0={arraySet:o(function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},"arraySet"),flattenChunks:o(function(e){return[].concat.apply([],e)},"flattenChunks")};se.setTyped=function(e){e?(se.Buf8=Uint8Array,se.Buf16=Uint16Array,se.Buf32=Int32Array,se.assign(se,d0)):(se.Buf8=Array,se.Buf16=Array,se.Buf32=Array,se.assign(se,p0))};se.setTyped(h0)});var Yc=D(cr=>{"use strict";var g0=et(),m0=4,Ac=0,Tc=1,D0=2;function ur(e){for(var t=e.length;--t>=0;)e[t]=0}o(ur,"zero");var v0=0,Bc=1,y0=2,w0=3,b0=258,Lo=29,ui=256,ai=ui+1+Lo,lr=30,Bo=19,Oc=2*ai+1,Ft=15,Ao=16,C0=7,Oo=256,Uc=16,Nc=17,Wc=18,Io=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],gn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x0=512,tt=new Array((ai+2)*2);ur(tt);var ni=new Array(lr*2);ur(ni);var oi=new Array(x0);ur(oi);var si=new Array(b0-w0+1);ur(si);var Uo=new Array(Lo);ur(Uo);var mn=new Array(lr);ur(mn);function To(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}o(To,"StaticTreeDesc");var jc,zc,Hc;function Po(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}o(Po,"TreeDesc");function Gc(e){return e<256?oi[e]:oi[256+(e>>>7)]}o(Gc,"d_code");function li(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}o(li,"put_short");function he(e,t,r){e.bi_valid>Ao-r?(e.bi_buf|=t<<e.bi_valid&65535,li(e,e.bi_buf),e.bi_buf=t>>Ao-e.bi_valid,e.bi_valid+=r-Ao):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}o(he,"send_bits");function qe(e,t,r){he(e,r[t*2],r[t*2+1])}o(qe,"send_code");function $c(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}o($c,"bi_reverse");function S0(e){e.bi_valid===16?(li(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}o(S0,"bi_flush");function E0(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,h=t.stat_desc.max_length,u,c,f,d,p,C,v=0;for(d=0;d<=Ft;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<Oc;u++)c=e.heap[u],d=r[r[c*2+1]*2+1]+1,d>h&&(d=h,v++),r[c*2+1]=d,!(c>i)&&(e.bl_count[d]++,p=0,c>=l&&(p=s[c-l]),C=r[c*2],e.opt_len+=C*(d+p),a&&(e.static_len+=C*(n[c*2+1]+p)));if(v!==0){do{for(d=h-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[h]--,v-=2}while(v>0);for(d=h;d!==0;d--)for(c=e.bl_count[d];c!==0;)f=e.heap[--u],!(f>i)&&(r[f*2+1]!==d&&(e.opt_len+=(d-r[f*2+1])*r[f*2],r[f*2+1]=d),c--)}}o(E0,"gen_bitlen");function Vc(e,t,r){var i=new Array(Ft+1),n=0,a,s;for(a=1;a<=Ft;a++)i[a]=n=n+r[a-1]<<1;for(s=0;s<=t;s++){var l=e[s*2+1];l!==0&&(e[s*2]=$c(i[l]++,l))}}o(Vc,"gen_codes");function F0(){var e,t,r,i,n,a=new Array(Ft+1);for(r=0,i=0;i<Lo-1;i++)for(Uo[i]=r,e=0;e<1<<Io[i];e++)si[r++]=i;for(si[r-1]=i,n=0,i=0;i<16;i++)for(mn[i]=n,e=0;e<1<<gn[i];e++)oi[n++]=i;for(n>>=7;i<lr;i++)for(mn[i]=n<<7,e=0;e<1<<gn[i]-7;e++)oi[256+n++]=i;for(t=0;t<=Ft;t++)a[t]=0;for(e=0;e<=143;)tt[e*2+1]=8,e++,a[8]++;for(;e<=255;)tt[e*2+1]=9,e++,a[9]++;for(;e<=279;)tt[e*2+1]=7,e++,a[7]++;for(;e<=287;)tt[e*2+1]=8,e++,a[8]++;for(Vc(tt,ai+1,a),e=0;e<lr;e++)ni[e*2+1]=5,ni[e*2]=$c(e,5);jc=new To(tt,Io,ui+1,ai,Ft),zc=new To(ni,gn,0,lr,Ft),Hc=new To(new Array(0),k0,0,Bo,C0)}o(F0,"tr_static_init");function Zc(e){var t;for(t=0;t<ai;t++)e.dyn_ltree[t*2]=0;for(t=0;t<lr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Bo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Oo*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}o(Zc,"init_block");function Kc(e){e.bi_valid>8?li(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}o(Kc,"bi_windup");function _0(e,t,r,i){Kc(e),i&&(li(e,r),li(e,~r)),g0.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}o(_0,"copy_block");function Pc(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}o(Pc,"smaller");function Ro(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&Pc(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!Pc(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}o(Ro,"pqdownheap");function Rc(e,t,r){var i,n,a=0,s,l;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?qe(e,n,t):(s=si[n],qe(e,s+ui+1,t),l=Io[s],l!==0&&(n-=Uo[s],he(e,n,l)),i--,s=Gc(i),qe(e,s,r),l=gn[s],l!==0&&(i-=mn[s],he(e,i,l)));while(a<e.last_lit);qe(e,Oo,t)}o(Rc,"compress_block");function Mo(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,s,l,h=-1,u;for(e.heap_len=0,e.heap_max=Oc,s=0;s<a;s++)r[s*2]!==0?(e.heap[++e.heap_len]=h=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=h<2?++h:0,r[u*2]=1,e.depth[u]=0,e.opt_len--,n&&(e.static_len-=i[u*2+1]);for(t.max_code=h,s=e.heap_len>>1;s>=1;s--)Ro(e,r,s);u=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ro(e,r,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,r[u*2]=r[s*2]+r[l*2],e.depth[u]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,r[s*2+1]=r[l*2+1]=u,e.heap[1]=u++,Ro(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],E0(e,t),Vc(r,h,e.bl_count)}o(Mo,"build_tree");function Ic(e,t,r){var i,n=-1,a,s=t[0*2+1],l=0,h=7,u=4;for(s===0&&(h=138,u=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=s,s=t[(i+1)*2+1],!(++l<h&&a===s)&&(l<u?e.bl_tree[a*2]+=l:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Uc*2]++):l<=10?e.bl_tree[Nc*2]++:e.bl_tree[Wc*2]++,l=0,n=a,s===0?(h=138,u=3):a===s?(h=6,u=3):(h=7,u=4))}o(Ic,"scan_tree");function Mc(e,t,r){var i,n=-1,a,s=t[0*2+1],l=0,h=7,u=4;for(s===0&&(h=138,u=3),i=0;i<=r;i++)if(a=s,s=t[(i+1)*2+1],!(++l<h&&a===s)){if(l<u)do qe(e,a,e.bl_tree);while(--l!==0);else a!==0?(a!==n&&(qe(e,a,e.bl_tree),l--),qe(e,Uc,e.bl_tree),he(e,l-3,2)):l<=10?(qe(e,Nc,e.bl_tree),he(e,l-3,3)):(qe(e,Wc,e.bl_tree),he(e,l-11,7));l=0,n=a,s===0?(h=138,u=3):a===s?(h=6,u=3):(h=7,u=4)}}o(Mc,"send_tree");function A0(e){var t;for(Ic(e,e.dyn_ltree,e.l_desc.max_code),Ic(e,e.dyn_dtree,e.d_desc.max_code),Mo(e,e.bl_desc),t=Bo-1;t>=3&&e.bl_tree[qc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}o(A0,"build_bl_tree");function T0(e,t,r,i){var n;for(he(e,t-257,5),he(e,r-1,5),he(e,i-4,4),n=0;n<i;n++)he(e,e.bl_tree[qc[n]*2+1],3);Mc(e,e.dyn_ltree,t-1),Mc(e,e.dyn_dtree,r-1)}o(T0,"send_all_trees");function P0(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Ac;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Tc;for(r=32;r<ui;r++)if(e.dyn_ltree[r*2]!==0)return Tc;return Ac}o(P0,"detect_data_type");var Lc=!1;function R0(e){Lc||(F0(),Lc=!0),e.l_desc=new Po(e.dyn_ltree,jc),e.d_desc=new Po(e.dyn_dtree,zc),e.bl_desc=new Po(e.bl_tree,Hc),e.bi_buf=0,e.bi_valid=0,Zc(e)}o(R0,"_tr_init");function Jc(e,t,r,i){he(e,(v0<<1)+(i?1:0),3),_0(e,t,r,!0)}o(Jc,"_tr_stored_block");function I0(e){he(e,Bc<<1,3),qe(e,Oo,tt),S0(e)}o(I0,"_tr_align");function M0(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===D0&&(e.strm.data_type=P0(e)),Mo(e,e.l_desc),Mo(e,e.d_desc),s=A0(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Jc(e,t,r,i):e.strategy===m0||a===n?(he(e,(Bc<<1)+(i?1:0),3),Rc(e,tt,ni)):(he(e,(y0<<1)+(i?1:0),3),T0(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),Rc(e,e.dyn_ltree,e.dyn_dtree)),Zc(e),i&&Kc(e)}o(M0,"_tr_flush_block");function L0(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(si[r]+ui+1)*2]++,e.dyn_dtree[Gc(t)*2]++),e.last_lit===e.lit_bufsize-1}o(L0,"_tr_tally");cr._tr_init=R0;cr._tr_stored_block=Jc;cr._tr_flush_block=M0;cr._tr_tally=L0;cr._tr_align=I0});var No=D((NC,Xc)=>{"use strict";function B0(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do n=n+t[i++]|0,a=a+n|0;while(--s);n%=65521,a%=65521}return n|a<<16|0}o(B0,"adler32");Xc.exports=B0});var Wo=D((qC,Qc)=>{"use strict";function O0(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}o(O0,"makeTable");var U0=O0();function N0(e,t,r,i){var n=U0,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}o(N0,"crc32");Qc.exports=N0});var Dn=D((zC,eh)=>{"use strict";eh.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var uh=D(He=>{"use strict";var le=et(),be=Yc(),nh=No(),ct=Wo(),W0=Dn(),Pt=0,q0=1,j0=3,gt=4,th=5,ze=0,rh=1,Ce=-2,z0=-3,qo=-5,H0=-1,G0=1,vn=2,$0=3,V0=4,Z0=0,K0=2,Cn=8,J0=9,Y0=15,X0=8,Q0=29,eD=256,zo=eD+1+Q0,tD=30,rD=19,iD=2*zo+1,nD=15,I=3,dt=258,Pe=dt+I+1,aD=32,kn=42,Ho=69,yn=73,wn=91,bn=103,_t=113,hi=666,Y=1,fi=2,At=3,dr=4,oD=3;function pt(e,t){return e.msg=W0[t],t}o(pt,"err");function ih(e){return(e<<1)-(e>4?9:0)}o(ih,"rank");function ft(e){for(var t=e.length;--t>=0;)e[t]=0}o(ft,"zero");function ht(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(le.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}o(ht,"flush_pending");function ie(e,t){be._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ht(e.strm)}o(ie,"flush_block_only");function L(e,t){e.pending_buf[e.pending++]=t}o(L,"put_byte");function ci(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}o(ci,"putShortMSB");function sD(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,le.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=nh(e.adler,t,n,r):e.state.wrap===2&&(e.adler=ct(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}o(sD,"read_buf");function ah(e,t){var r=e.max_chain_length,i=e.strstart,n,a,s=e.prev_length,l=e.nice_match,h=e.strstart>e.w_size-Pe?e.strstart-(e.w_size-Pe):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+dt,p=u[i+s-1],C=u[i+s];e.prev_length>=e.good_match&&(r>>=2),l>e.lookahead&&(l=e.lookahead);do if(n=t,!(u[n+s]!==C||u[n+s-1]!==p||u[n]!==u[i]||u[++n]!==u[i+1])){i+=2,n++;do;while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&i<d);if(a=dt-(d-i),i=d-dt,a>s){if(e.match_start=t,s=a,a>=l)break;p=u[i+s-1],C=u[i+s]}}while((t=f[t&c])>h&&--r!==0);return s<=e.lookahead?s:e.lookahead}o(ah,"longest_match");function Tt(e){var t=e.w_size,r,i,n,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Pe)){le.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=sD(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=I)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+I-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<Pe&&e.strm.avail_in!==0)}o(Tt,"fill_window");function lD(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Tt(e),e.lookahead===0&&t===Pt)return Y;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,ie(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Pe&&(ie(e,!1),e.strm.avail_out===0))return Y}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:dr):(e.strstart>e.block_start&&(ie(e,!1),e.strm.avail_out===0),Y)}o(lD,"deflate_stored");function jo(e,t){for(var r,i;;){if(e.lookahead<Pe){if(Tt(e),e.lookahead<Pe&&t===Pt)return Y;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Pe&&(e.match_length=ah(e,r)),e.match_length>=I)if(i=be._tr_tally(e,e.strstart-e.match_start,e.match_length-I),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(ie(e,!1),e.strm.avail_out===0))return Y}return e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?At:dr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?Y:fi}o(jo,"deflate_fast");function hr(e,t){for(var r,i,n;;){if(e.lookahead<Pe){if(Tt(e),e.lookahead<Pe&&t===Pt)return Y;if(e.lookahead===0)break}if(r=0,e.lookahead>=I&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=I-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Pe&&(e.match_length=ah(e,r),e.match_length<=5&&(e.strategy===G0||e.match_length===I&&e.strstart-e.match_start>4096)&&(e.match_length=I-1)),e.prev_length>=I&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-I,i=be._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+I-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=I-1,e.strstart++,i&&(ie(e,!1),e.strm.avail_out===0))return Y}else if(e.match_available){if(i=be._tr_tally(e,0,e.window[e.strstart-1]),i&&ie(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Y}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=be._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<I-1?e.strstart:I-1,t===gt?(ie(e,!0),e.strm.avail_out===0?At:dr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?Y:fi}o(hr,"deflate_slow");function uD(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=dt){if(Tt(e),e.lookahead<=dt&&t===Pt)return Y;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=I&&e.strstart>0&&(n=e.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){a=e.strstart+dt;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<a);e.match_length=dt-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=I?(r=be._tr_tally(e,1,e.match_length-I),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ie(e,!1),e.strm.avail_out===0))return Y}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:dr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?Y:fi}o(uD,"deflate_rle");function cD(e,t){for(var r;;){if(e.lookahead===0&&(Tt(e),e.lookahead===0)){if(t===Pt)return Y;break}if(e.match_length=0,r=be._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ie(e,!1),e.strm.avail_out===0))return Y}return e.insert=0,t===gt?(ie(e,!0),e.strm.avail_out===0?At:dr):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?Y:fi}o(cD,"deflate_huff");function je(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}o(je,"Config");var fr;fr=[new je(0,0,0,0,lD),new je(4,4,8,4,jo),new je(4,5,16,8,jo),new je(4,6,32,32,jo),new je(4,4,16,16,hr),new je(8,16,32,32,hr),new je(8,16,128,128,hr),new je(8,32,128,256,hr),new je(32,128,258,1024,hr),new je(32,258,258,4096,hr)];function hD(e){e.window_size=2*e.w_size,ft(e.head),e.max_lazy_match=fr[e.level].max_lazy,e.good_match=fr[e.level].good_length,e.nice_match=fr[e.level].nice_length,e.max_chain_length=fr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=I-1,e.match_available=0,e.ins_h=0}o(hD,"lm_init");function fD(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Cn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new le.Buf16(iD*2),this.dyn_dtree=new le.Buf16((2*tD+1)*2),this.bl_tree=new le.Buf16((2*rD+1)*2),ft(this.dyn_ltree),ft(this.dyn_dtree),ft(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new le.Buf16(nD+1),this.heap=new le.Buf16(2*zo+1),ft(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new le.Buf16(2*zo+1),ft(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}o(fD,"DeflateState");function oh(e){var t;return!e||!e.state?pt(e,Ce):(e.total_in=e.total_out=0,e.data_type=K0,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?kn:_t,e.adler=t.wrap===2?0:1,t.last_flush=Pt,be._tr_init(t),ze)}o(oh,"deflateResetKeep");function sh(e){var t=oh(e);return t===ze&&hD(e.state),t}o(sh,"deflateReset");function dD(e,t){return!e||!e.state||e.state.wrap!==2?Ce:(e.state.gzhead=t,ze)}o(dD,"deflateSetHeader");function lh(e,t,r,i,n,a){if(!e)return Ce;var s=1;if(t===H0&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>J0||r!==Cn||i<8||i>15||t<0||t>9||a<0||a>V0)return pt(e,Ce);i===8&&(i=9);var l=new fD;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=n+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+I-1)/I),l.window=new le.Buf8(l.w_size*2),l.head=new le.Buf16(l.hash_size),l.prev=new le.Buf16(l.w_size),l.lit_bufsize=1<<n+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new le.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=r,sh(e)}o(lh,"deflateInit2");function pD(e,t){return lh(e,t,Cn,Y0,X0,Z0)}o(pD,"deflateInit");function gD(e,t){var r,i,n,a;if(!e||!e.state||t>th||t<0)return e?pt(e,Ce):Ce;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===hi&&t!==gt)return pt(e,e.avail_out===0?qo:Ce);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===kn)if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,i.gzhead.time&255),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:i.strategy>=vn||i.level<2?4:0),L(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,i.gzhead.extra.length&255),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ct(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ho):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:i.strategy>=vn||i.level<2?4:0),L(i,oD),i.status=_t);else{var s=Cn+(i.w_bits-8<<4)<<8,l=-1;i.strategy>=vn||i.level<2?l=0:i.level<6?l=1:i.level===6?l=2:l=3,s|=l<<6,i.strstart!==0&&(s|=aD),s+=31-s%31,i.status=_t,ci(i,s),i.strstart!==0&&(ci(i,e.adler>>>16),ci(i,e.adler&65535)),e.adler=1}if(i.status===Ho)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(e),n=i.pending,i.pending===i.pending_buf_size));)L(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=yn)}else i.status=yn;if(i.status===yn)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=wn)}else i.status=wn;if(i.status===wn)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),ht(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,L(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=ct(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=bn)}else i.status=bn;if(i.status===bn&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ht(e),i.pending+2<=i.pending_buf_size&&(L(i,e.adler&255),L(i,e.adler>>8&255),e.adler=0,i.status=_t)):i.status=_t),i.pending!==0){if(ht(e),e.avail_out===0)return i.last_flush=-1,ze}else if(e.avail_in===0&&ih(t)<=ih(r)&&t!==gt)return pt(e,qo);if(i.status===hi&&e.avail_in!==0)return pt(e,qo);if(e.avail_in!==0||i.lookahead!==0||t!==Pt&&i.status!==hi){var h=i.strategy===vn?cD(i,t):i.strategy===$0?uD(i,t):fr[i.level].func(i,t);if((h===At||h===dr)&&(i.status=hi),h===Y||h===At)return e.avail_out===0&&(i.last_flush=-1),ze;if(h===fi&&(t===q0?be._tr_align(i):t!==th&&(be._tr_stored_block(i,0,0,!1),t===j0&&(ft(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ht(e),e.avail_out===0))return i.last_flush=-1,ze}return t!==gt?ze:i.wrap<=0?rh:(i.wrap===2?(L(i,e.adler&255),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,e.total_in&255),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(ci(i,e.adler>>>16),ci(i,e.adler&65535)),ht(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ze:rh)}o(gD,"deflate");function mD(e){var t;return!e||!e.state?Ce:(t=e.state.status,t!==kn&&t!==Ho&&t!==yn&&t!==wn&&t!==bn&&t!==_t&&t!==hi?pt(e,Ce):(e.state=null,t===_t?pt(e,z0):ze))}o(mD,"deflateEnd");function DD(e,t){var r=t.length,i,n,a,s,l,h,u,c;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==kn||i.lookahead))return Ce;for(s===1&&(e.adler=nh(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(ft(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new le.Buf8(i.w_size),le.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),l=e.avail_in,h=e.next_in,u=e.input,e.avail_in=r,e.next_in=0,e.input=t,Tt(i);i.lookahead>=I;){n=i.strstart,a=i.lookahead-(I-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+I-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=I-1,Tt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=I-1,i.match_available=0,e.next_in=h,e.input=u,e.avail_in=l,i.wrap=s,ze}o(DD,"deflateSetDictionary");He.deflateInit=pD;He.deflateInit2=lh;He.deflateReset=sh;He.deflateResetKeep=oh;He.deflateSetHeader=dD;He.deflate=gD;He.deflateEnd=mD;He.deflateSetDictionary=DD;He.deflateInfo="pako deflate (from Nodeca project)"});var Go=D(pr=>{"use strict";var xn=et(),ch=!0,hh=!0;try{String.fromCharCode.apply(null,[0])}catch{ch=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{hh=!1}var di=new xn.Buf8(256);for(rt=0;rt<256;rt++)di[rt]=rt>=252?6:rt>=248?5:rt>=240?4:rt>=224?3:rt>=192?2:1;var rt;di[254]=di[254]=1;pr.string2buf=function(e){var t,r,i,n,a,s=e.length,l=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new xn.Buf8(l),a=0,n=0;a<l;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function fh(e,t){if(t<65534&&(e.subarray&&hh||!e.subarray&&ch))return String.fromCharCode.apply(null,xn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}o(fh,"buf2binstring");pr.buf2binstring=function(e){return fh(e,e.length)};pr.binstring2buf=function(e){for(var t=new xn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};pr.buf2string=function(e,t){var r,i,n,a,s=t||e.length,l=new Array(s*2);for(i=0,r=0;r<s;){if(n=e[r++],n<128){l[i++]=n;continue}if(a=di[n],a>4){l[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<s;)n=n<<6|e[r++]&63,a--;if(a>1){l[i++]=65533;continue}n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|n&1023)}return fh(l,i)};pr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+di[e[r]]>t?r:t}});var $o=D((ZC,dh)=>{"use strict";function vD(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}o(vD,"ZStream");dh.exports=vD});var Dh=D(mi=>{"use strict";var pi=uh(),gi=et(),Zo=Go(),Ko=Dn(),yD=$o(),mh=Object.prototype.toString,wD=0,Vo=4,gr=0,ph=1,gh=2,bD=-1,CD=0,kD=8;function Rt(e){if(!(this instanceof Rt))return new Rt(e);this.options=gi.assign({level:bD,method:kD,chunkSize:16384,windowBits:15,memLevel:8,strategy:CD,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new yD,this.strm.avail_out=0;var r=pi.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==gr)throw new Error(Ko[r]);if(t.header&&pi.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Zo.string2buf(t.dictionary):mh.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=pi.deflateSetDictionary(this.strm,i),r!==gr)throw new Error(Ko[r]);this._dict_set=!0}}o(Rt,"Deflate");Rt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Vo:wD,typeof e=="string"?r.input=Zo.string2buf(e):mh.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new gi.Buf8(i),r.next_out=0,r.avail_out=i),n=pi.deflate(r,a),n!==ph&&n!==gr)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Vo||a===gh))&&(this.options.to==="string"?this.onData(Zo.buf2binstring(gi.shrinkBuf(r.output,r.next_out))):this.onData(gi.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==ph);return a===Vo?(n=pi.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===gr):(a===gh&&(this.onEnd(gr),r.avail_out=0),!0)};Rt.prototype.onData=function(e){this.chunks.push(e)};Rt.prototype.onEnd=function(e){e===gr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Jo(e,t){var r=new Rt(t);if(r.push(e,!0),r.err)throw r.msg||Ko[r.err];return r.result}o(Jo,"deflate");function xD(e,t){return t=t||{},t.raw=!0,Jo(e,t)}o(xD,"deflateRaw");function SD(e,t){return t=t||{},t.gzip=!0,Jo(e,t)}o(SD,"gzip");mi.Deflate=Rt;mi.deflate=Jo;mi.deflateRaw=xD;mi.gzip=SD});var yh=D((XC,vh)=>{"use strict";var Sn=30,ED=12;vh.exports=o(function(t,r){var i,n,a,s,l,h,u,c,f,d,p,C,v,y,m,b,k,w,g,E,_,x,A,q,F;i=t.state,n=t.next_in,q=t.input,a=n+(t.avail_in-5),s=t.next_out,F=t.output,l=s-(r-t.avail_out),h=s+(t.avail_out-257),u=i.dmax,c=i.wsize,f=i.whave,d=i.wnext,p=i.window,C=i.hold,v=i.bits,y=i.lencode,m=i.distcode,b=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;e:do{v<15&&(C+=q[n++]<<v,v+=8,C+=q[n++]<<v,v+=8),w=y[C&b];t:for(;;){if(g=w>>>24,C>>>=g,v-=g,g=w>>>16&255,g===0)F[s++]=w&65535;else if(g&16){E=w&65535,g&=15,g&&(v<g&&(C+=q[n++]<<v,v+=8),E+=C&(1<<g)-1,C>>>=g,v-=g),v<15&&(C+=q[n++]<<v,v+=8,C+=q[n++]<<v,v+=8),w=m[C&k];r:for(;;){if(g=w>>>24,C>>>=g,v-=g,g=w>>>16&255,g&16){if(_=w&65535,g&=15,v<g&&(C+=q[n++]<<v,v+=8,v<g&&(C+=q[n++]<<v,v+=8)),_+=C&(1<<g)-1,_>u){t.msg="invalid distance too far back",i.mode=Sn;break e}if(C>>>=g,v-=g,g=s-l,_>g){if(g=_-g,g>f&&i.sane){t.msg="invalid distance too far back",i.mode=Sn;break e}if(x=0,A=p,d===0){if(x+=c-g,g<E){E-=g;do F[s++]=p[x++];while(--g);x=s-_,A=F}}else if(d<g){if(x+=c+d-g,g-=d,g<E){E-=g;do F[s++]=p[x++];while(--g);if(x=0,d<E){g=d,E-=g;do F[s++]=p[x++];while(--g);x=s-_,A=F}}}else if(x+=d-g,g<E){E-=g;do F[s++]=p[x++];while(--g);x=s-_,A=F}for(;E>2;)F[s++]=A[x++],F[s++]=A[x++],F[s++]=A[x++],E-=3;E&&(F[s++]=A[x++],E>1&&(F[s++]=A[x++]))}else{x=s-_;do F[s++]=F[x++],F[s++]=F[x++],F[s++]=F[x++],E-=3;while(E>2);E&&(F[s++]=F[x++],E>1&&(F[s++]=F[x++]))}}else if(g&64){t.msg="invalid distance code",i.mode=Sn;break e}else{w=m[(w&65535)+(C&(1<<g)-1)];continue r}break}}else if(g&64)if(g&32){i.mode=ED;break e}else{t.msg="invalid literal/length code",i.mode=Sn;break e}else{w=y[(w&65535)+(C&(1<<g)-1)];continue t}break}}while(n<a&&s<h);E=v>>3,n-=E,v-=E<<3,C&=(1<<v)-1,t.next_in=n,t.next_out=s,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=s<h?257+(h-s):257-(s-h),i.hold=C,i.bits=v},"inflate_fast")});var Eh=D((ek,Sh)=>{"use strict";var wh=et(),mr=15,bh=852,Ch=592,kh=0,Yo=1,xh=2,FD=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],_D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],AD=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],TD=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Sh.exports=o(function(t,r,i,n,a,s,l,h){var u=h.bits,c=0,f=0,d=0,p=0,C=0,v=0,y=0,m=0,b=0,k=0,w,g,E,_,x,A=null,q=0,F,pe=new wh.Buf16(mr+1),Zt=new wh.Buf16(mr+1),qi=null,zl=0,Hl,ji,zi;for(c=0;c<=mr;c++)pe[c]=0;for(f=0;f<n;f++)pe[r[i+f]]++;for(C=u,p=mr;p>=1&&pe[p]===0;p--);if(C>p&&(C=p),p===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,h.bits=1,0;for(d=1;d<p&&pe[d]===0;d++);for(C<d&&(C=d),m=1,c=1;c<=mr;c++)if(m<<=1,m-=pe[c],m<0)return-1;if(m>0&&(t===kh||p!==1))return-1;for(Zt[1]=0,c=1;c<mr;c++)Zt[c+1]=Zt[c]+pe[c];for(f=0;f<n;f++)r[i+f]!==0&&(l[Zt[r[i+f]]++]=f);if(t===kh?(A=qi=l,F=19):t===Yo?(A=FD,q-=257,qi=_D,zl-=257,F=256):(A=AD,qi=TD,F=-1),k=0,f=0,c=d,x=s,v=C,y=0,E=-1,b=1<<C,_=b-1,t===Yo&&b>bh||t===xh&&b>Ch)return 1;for(;;){Hl=c-y,l[f]<F?(ji=0,zi=l[f]):l[f]>F?(ji=qi[zl+l[f]],zi=A[q+l[f]]):(ji=96,zi=0),w=1<<c-y,g=1<<v,d=g;do g-=w,a[x+(k>>y)+g]=Hl<<24|ji<<16|zi|0;while(g!==0);for(w=1<<c-1;k&w;)w>>=1;if(w!==0?(k&=w-1,k+=w):k=0,f++,--pe[c]===0){if(c===p)break;c=r[i+l[f]]}if(c>C&&(k&_)!==E){for(y===0&&(y=C),x+=d,v=c-y,m=1<<v;v+y<p&&(m-=pe[v+y],!(m<=0));)v++,m<<=1;if(b+=1<<v,t===Yo&&b>bh||t===xh&&b>Ch)return 1;E=k&_,a[E]=C<<24|v<<16|x-s|0}}return k!==0&&(a[x+k]=c-y<<24|64<<16|0),h.bits=C,0},"inflate_table")});var lf=D(Re=>{"use strict";var De=et(),is=No(),Ge=Wo(),PD=yh(),Di=Eh(),RD=0,Xh=1,Qh=2,Fh=4,ID=5,En=6,It=0,MD=1,LD=2,ke=-2,ef=-3,ns=-4,BD=-5,_h=8,tf=1,Ah=2,Th=3,Ph=4,Rh=5,Ih=6,Mh=7,Lh=8,Bh=9,Oh=10,An=11,it=12,Xo=13,Uh=14,Qo=15,Nh=16,Wh=17,qh=18,jh=19,Fn=20,_n=21,zh=22,Hh=23,Gh=24,$h=25,Vh=26,es=27,Zh=28,Kh=29,z=30,as=31,OD=32,UD=852,ND=592,WD=15,qD=WD;function Jh(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}o(Jh,"zswap32");function jD(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new De.Buf16(320),this.work=new De.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}o(jD,"InflateState");function rf(e){var t;return!e||!e.state?ke:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=tf,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new De.Buf32(UD),t.distcode=t.distdyn=new De.Buf32(ND),t.sane=1,t.back=-1,It)}o(rf,"inflateResetKeep");function nf(e){var t;return!e||!e.state?ke:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,rf(e))}o(nf,"inflateReset");function af(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ke:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,nf(e))}o(af,"inflateReset2");function of(e,t){var r,i;return e?(i=new jD,e.state=i,i.window=null,r=af(e,t),r!==It&&(e.state=null),r):ke}o(of,"inflateInit2");function zD(e){return of(e,qD)}o(zD,"inflateInit");var Yh=!0,ts,rs;function HD(e){if(Yh){var t;for(ts=new De.Buf32(512),rs=new De.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Di(Xh,e.lens,0,288,ts,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Di(Qh,e.lens,0,32,rs,0,e.work,{bits:5}),Yh=!1}e.lencode=ts,e.lenbits=9,e.distcode=rs,e.distbits=5}o(HD,"fixedtables");function sf(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new De.Buf8(a.wsize)),i>=a.wsize?(De.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),De.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(De.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}o(sf,"updatewindow");function GD(e,t){var r,i,n,a,s,l,h,u,c,f,d,p,C,v,y=0,m,b,k,w,g,E,_,x,A=new De.Buf8(4),q,F,pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ke;r=e.state,r.mode===it&&(r.mode=Xo),s=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,l=e.avail_in,u=r.hold,c=r.bits,f=l,d=h,x=It;e:for(;;)switch(r.mode){case tf:if(r.wrap===0){r.mode=Xo;break}for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.wrap&2&&u===35615){r.check=0,A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0),u=0,c=0,r.mode=Ah;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=z;break}if((u&15)!==_h){e.msg="unknown compression method",r.mode=z;break}if(u>>>=4,c-=4,_=(u&15)+8,r.wbits===0)r.wbits=_;else if(_>r.wbits){e.msg="invalid window size",r.mode=z;break}r.dmax=1<<_,e.adler=r.check=1,r.mode=u&512?Oh:it,u=0,c=0;break;case Ah:for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.flags=u,(r.flags&255)!==_h){e.msg="unknown compression method",r.mode=z;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=z;break}r.head&&(r.head.text=u>>8&1),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0,r.mode=Th;case Th:for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.head&&(r.head.time=u),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,r.check=Ge(r.check,A,4,0)),u=0,c=0,r.mode=Ph;case Ph:for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.head&&(r.head.xflags=u&255,r.head.os=u>>8),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0,r.mode=Rh;case Rh:if(r.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.length=u,r.head&&(r.head.extra_len=u),r.flags&512&&(A[0]=u&255,A[1]=u>>>8&255,r.check=Ge(r.check,A,2,0)),u=0,c=0}else r.head&&(r.head.extra=null);r.mode=Ih;case Ih:if(r.flags&1024&&(p=r.length,p>l&&(p=l),p&&(r.head&&(_=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),De.arraySet(r.head.extra,i,a,p,_)),r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,r.length-=p),r.length))break e;r.length=0,r.mode=Mh;case Mh:if(r.flags&2048){if(l===0)break e;p=0;do _=i[a+p++],r.head&&_&&r.length<65536&&(r.head.name+=String.fromCharCode(_));while(_&&p<l);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,_)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Lh;case Lh:if(r.flags&4096){if(l===0)break e;p=0;do _=i[a+p++],r.head&&_&&r.length<65536&&(r.head.comment+=String.fromCharCode(_));while(_&&p<l);if(r.flags&512&&(r.check=Ge(r.check,i,p,a)),l-=p,a+=p,_)break e}else r.head&&(r.head.comment=null);r.mode=Bh;case Bh:if(r.flags&512){for(;c<16;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u!==(r.check&65535)){e.msg="header crc mismatch",r.mode=z;break}u=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=it;break;case Oh:for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}e.adler=r.check=Jh(u),u=0,c=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,LD;e.adler=r.check=1,r.mode=it;case it:if(t===ID||t===En)break e;case Xo:if(r.last){u>>>=c&7,c-=c&7,r.mode=es;break}for(;c<3;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}switch(r.last=u&1,u>>>=1,c-=1,u&3){case 0:r.mode=Uh;break;case 1:if(HD(r),r.mode=Fn,t===En){u>>>=2,c-=2;break e}break;case 2:r.mode=Wh;break;case 3:e.msg="invalid block type",r.mode=z}u>>>=2,c-=2;break;case Uh:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",r.mode=z;break}if(r.length=u&65535,u=0,c=0,r.mode=Qo,t===En)break e;case Qo:r.mode=Nh;case Nh:if(p=r.length,p){if(p>l&&(p=l),p>h&&(p=h),p===0)break e;De.arraySet(n,i,a,p,s),l-=p,a+=p,h-=p,s+=p,r.length-=p;break}r.mode=it;break;case Wh:for(;c<14;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(r.nlen=(u&31)+257,u>>>=5,c-=5,r.ndist=(u&31)+1,u>>>=5,c-=5,r.ncode=(u&15)+4,u>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=z;break}r.have=0,r.mode=qh;case qh:for(;r.have<r.ncode;){for(;c<3;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.lens[pe[r.have++]]=u&7,u>>>=3,c-=3}for(;r.have<19;)r.lens[pe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,q={bits:r.lenbits},x=Di(RD,r.lens,0,19,r.lencode,0,r.work,q),r.lenbits=q.bits,x){e.msg="invalid code lengths set",r.mode=z;break}r.have=0,r.mode=jh;case jh:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[u&(1<<r.lenbits)-1],m=y>>>24,b=y>>>16&255,k=y&65535,!(m<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(k<16)u>>>=m,c-=m,r.lens[r.have++]=k;else{if(k===16){for(F=m+2;c<F;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u>>>=m,c-=m,r.have===0){e.msg="invalid bit length repeat",r.mode=z;break}_=r.lens[r.have-1],p=3+(u&3),u>>>=2,c-=2}else if(k===17){for(F=m+3;c<F;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=m,c-=m,_=0,p=3+(u&7),u>>>=3,c-=3}else{for(F=m+7;c<F;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=m,c-=m,_=0,p=11+(u&127),u>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=z;break}for(;p--;)r.lens[r.have++]=_}}if(r.mode===z)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=z;break}if(r.lenbits=9,q={bits:r.lenbits},x=Di(Xh,r.lens,0,r.nlen,r.lencode,0,r.work,q),r.lenbits=q.bits,x){e.msg="invalid literal/lengths set",r.mode=z;break}if(r.distbits=6,r.distcode=r.distdyn,q={bits:r.distbits},x=Di(Qh,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,q),r.distbits=q.bits,x){e.msg="invalid distances set",r.mode=z;break}if(r.mode=Fn,t===En)break e;case Fn:r.mode=_n;case _n:if(l>=6&&h>=258){e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,PD(e,d),s=e.next_out,n=e.output,h=e.avail_out,a=e.next_in,i=e.input,l=e.avail_in,u=r.hold,c=r.bits,r.mode===it&&(r.back=-1);break}for(r.back=0;y=r.lencode[u&(1<<r.lenbits)-1],m=y>>>24,b=y>>>16&255,k=y&65535,!(m<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(b&&!(b&240)){for(w=m,g=b,E=k;y=r.lencode[E+((u&(1<<w+g)-1)>>w)],m=y>>>24,b=y>>>16&255,k=y&65535,!(w+m<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=m,c-=m,r.back+=m,r.length=k,b===0){r.mode=Vh;break}if(b&32){r.back=-1,r.mode=it;break}if(b&64){e.msg="invalid literal/length code",r.mode=z;break}r.extra=b&15,r.mode=zh;case zh:if(r.extra){for(F=r.extra;c<F;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Hh;case Hh:for(;y=r.distcode[u&(1<<r.distbits)-1],m=y>>>24,b=y>>>16&255,k=y&65535,!(m<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(!(b&240)){for(w=m,g=b,E=k;y=r.distcode[E+((u&(1<<w+g)-1)>>w)],m=y>>>24,b=y>>>16&255,k=y&65535,!(w+m<=c);){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}u>>>=w,c-=w,r.back+=w}if(u>>>=m,c-=m,r.back+=m,b&64){e.msg="invalid distance code",r.mode=z;break}r.offset=k,r.extra=b&15,r.mode=Gh;case Gh:if(r.extra){for(F=r.extra;c<F;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=z;break}r.mode=$h;case $h:if(h===0)break e;if(p=d-h,r.offset>p){if(p=r.offset-p,p>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=z;break}p>r.wnext?(p-=r.wnext,C=r.wsize-p):C=r.wnext-p,p>r.length&&(p=r.length),v=r.window}else v=n,C=s-r.offset,p=r.length;p>h&&(p=h),h-=p,r.length-=p;do n[s++]=v[C++];while(--p);r.length===0&&(r.mode=_n);break;case Vh:if(h===0)break e;n[s++]=r.length,h--,r.mode=_n;break;case es:if(r.wrap){for(;c<32;){if(l===0)break e;l--,u|=i[a++]<<c,c+=8}if(d-=h,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,s-d):is(r.check,n,d,s-d)),d=h,(r.flags?u:Jh(u))!==r.check){e.msg="incorrect data check",r.mode=z;break}u=0,c=0}r.mode=Zh;case Zh:if(r.wrap&&r.flags){for(;c<32;){if(l===0)break e;l--,u+=i[a++]<<c,c+=8}if(u!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=z;break}u=0,c=0}r.mode=Kh;case Kh:x=MD;break e;case z:x=ef;break e;case as:return ns;case OD:default:return ke}return e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=l,r.hold=u,r.bits=c,(r.wsize||d!==e.avail_out&&r.mode<z&&(r.mode<es||t!==Fh))&&sf(e,e.output,e.next_out,d-e.avail_out)?(r.mode=as,ns):(f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?Ge(r.check,n,d,e.next_out-d):is(r.check,n,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===it?128:0)+(r.mode===Fn||r.mode===Qo?256:0),(f===0&&d===0||t===Fh)&&x===It&&(x=BD),x)}o(GD,"inflate");function $D(e){if(!e||!e.state)return ke;var t=e.state;return t.window&&(t.window=null),e.state=null,It}o($D,"inflateEnd");function VD(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?ke:(r.head=t,t.done=!1,It)}o(VD,"inflateGetHeader");function ZD(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?ke:i.mode===An&&(n=1,n=is(n,t,r,0),n!==i.check)?ef:(a=sf(e,t,r,r),a?(i.mode=as,ns):(i.havedict=1,It))}o(ZD,"inflateSetDictionary");Re.inflateReset=nf;Re.inflateReset2=af;Re.inflateResetKeep=rf;Re.inflateInit=zD;Re.inflateInit2=of;Re.inflate=GD;Re.inflateEnd=$D;Re.inflateGetHeader=VD;Re.inflateSetDictionary=ZD;Re.inflateInfo="pako inflate (from Nodeca project)"});var os=D((nk,uf)=>{"use strict";uf.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var hf=D((ak,cf)=>{"use strict";function KD(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}o(KD,"GZheader");cf.exports=KD});var df=D(yi=>{"use strict";var Dr=lf(),vi=et(),Tn=Go(),V=os(),ss=Dn(),JD=$o(),YD=hf(),ff=Object.prototype.toString;function Mt(e){if(!(this instanceof Mt))return new Mt(e);this.options=vi.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new JD,this.strm.avail_out=0;var r=Dr.inflateInit2(this.strm,t.windowBits);if(r!==V.Z_OK)throw new Error(ss[r]);if(this.header=new YD,Dr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Tn.string2buf(t.dictionary):ff.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Dr.inflateSetDictionary(this.strm,t.dictionary),r!==V.Z_OK)))throw new Error(ss[r])}o(Mt,"Inflate");Mt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,s,l,h,u,c=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?V.Z_FINISH:V.Z_NO_FLUSH,typeof e=="string"?r.input=Tn.binstring2buf(e):ff.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new vi.Buf8(i),r.next_out=0,r.avail_out=i),a=Dr.inflate(r,V.Z_NO_FLUSH),a===V.Z_NEED_DICT&&n&&(a=Dr.inflateSetDictionary(this.strm,n)),a===V.Z_BUF_ERROR&&c===!0&&(a=V.Z_OK,c=!1),a!==V.Z_STREAM_END&&a!==V.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===V.Z_STREAM_END||r.avail_in===0&&(s===V.Z_FINISH||s===V.Z_SYNC_FLUSH))&&(this.options.to==="string"?(l=Tn.utf8border(r.output,r.next_out),h=r.next_out-l,u=Tn.buf2string(r.output,l),r.next_out=h,r.avail_out=i-h,h&&vi.arraySet(r.output,r.output,l,h,0),this.onData(u)):this.onData(vi.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==V.Z_STREAM_END);return a===V.Z_STREAM_END&&(s=V.Z_FINISH),s===V.Z_FINISH?(a=Dr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===V.Z_OK):(s===V.Z_SYNC_FLUSH&&(this.onEnd(V.Z_OK),r.avail_out=0),!0)};Mt.prototype.onData=function(e){this.chunks.push(e)};Mt.prototype.onEnd=function(e){e===V.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=vi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ls(e,t){var r=new Mt(t);if(r.push(e,!0),r.err)throw r.msg||ss[r.err];return r.result}o(ls,"inflate");function XD(e,t){return t=t||{},t.raw=!0,ls(e,t)}o(XD,"inflateRaw");yi.Inflate=Mt;yi.inflate=ls;yi.inflateRaw=XD;yi.ungzip=ls});var mf=D((uk,gf)=>{"use strict";var QD=et().assign,ev=Dh(),tv=df(),rv=os(),pf={};QD(pf,ev,tv,rv);gf.exports=pf});var vf=D(Rn=>{"use strict";var iv=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",nv=mf(),Df=H(),Pn=me(),av=iv?"uint8array":"array";Rn.magic="\b\0";function Lt(e,t){Pn.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}o(Lt,"FlateWorker");Df.inherits(Lt,Pn);Lt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Df.transformTo(av,e.data),!1)};Lt.prototype.flush=function(){Pn.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Lt.prototype.cleanUp=function(){Pn.prototype.cleanUp.call(this),this._pako=null};Lt.prototype._createPako=function(){this._pako=new nv[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};Rn.compressWorker=function(e){return new Lt("Deflate",e)};Rn.uncompressWorker=function(){return new Lt("Inflate",{})}});var cs=D(us=>{"use strict";var yf=me();us.STORE={magic:"\0\0",compressWorker:o(function(){return new yf("STORE compression")},"compressWorker"),uncompressWorker:o(function(){return new yf("STORE decompression")},"uncompressWorker")};us.DEFLATE=vf()});var hs=D(Bt=>{"use strict";Bt.LOCAL_FILE_HEADER="PK";Bt.CENTRAL_FILE_HEADER="PK";Bt.CENTRAL_DIRECTORY_END="PK";Bt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Bt.ZIP64_CENTRAL_DIRECTORY_END="PK";Bt.DATA_DESCRIPTOR="PK\x07\b"});var kf=D((gk,Cf)=>{"use strict";var vr=H(),yr=me(),fs=or(),wf=fn(),In=hs(),W=o(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),ov=o(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),sv=o(function(e){return(e||0)&63},"generateDosExternalFileAttr"),bf=o(function(e,t,r,i,n,a){var s=e.file,l=e.compression,h=a!==fs.utf8encode,u=vr.transformTo("string",a(s.name)),c=vr.transformTo("string",fs.utf8encode(s.name)),f=s.comment,d=vr.transformTo("string",a(f)),p=vr.transformTo("string",fs.utf8encode(f)),C=c.length!==s.name.length,v=p.length!==f.length,y,m,b="",k="",w="",g=s.dir,E=s.date,_={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(_.crc32=e.crc32,_.compressedSize=e.compressedSize,_.uncompressedSize=e.uncompressedSize);var x=0;t&&(x|=8),!h&&(C||v)&&(x|=2048);var A=0,q=0;g&&(A|=16),n==="UNIX"?(q=798,A|=ov(s.unixPermissions,g)):(q=20,A|=sv(s.dosPermissions,g)),y=E.getUTCHours(),y=y<<6,y=y|E.getUTCMinutes(),y=y<<5,y=y|E.getUTCSeconds()/2,m=E.getUTCFullYear()-1980,m=m<<4,m=m|E.getUTCMonth()+1,m=m<<5,m=m|E.getUTCDate(),C&&(k=W(1,1)+W(wf(u),4)+c,b+="up"+W(k.length,2)+k),v&&(w=W(1,1)+W(wf(d),4)+p,b+="uc"+W(w.length,2)+w);var F="";F+=`
|
|
2
|
-
\0`,F+=W(x,2),F+=l.magic,F+=W(y,2),F+=W(m,2),F+=W(_.crc32,4),F+=W(_.compressedSize,4),F+=W(_.uncompressedSize,4),F+=W(u.length,2),F+=W(b.length,2);var pe=In.LOCAL_FILE_HEADER+F+u+b,Zt=In.CENTRAL_FILE_HEADER+W(q,2)+F+W(d.length,2)+"\0\0\0\0"+W(A,4)+W(i,4)+u+b+d;return{fileRecord:pe,dirRecord:Zt}},"generateZipParts"),lv=o(function(e,t,r,i,n){var a="",s=vr.transformTo("string",n(i));return a=In.CENTRAL_DIRECTORY_END+"\0\0\0\0"+W(e,2)+W(e,2)+W(t,4)+W(r,4)+W(s.length,2)+s,a},"generateCentralDirectoryEnd"),uv=o(function(e){var t="";return t=In.DATA_DESCRIPTOR+W(e.crc32,4)+W(e.compressedSize,4)+W(e.uncompressedSize,4),t},"generateDataDescriptors");function Ie(e,t,r,i){yr.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o(Ie,"ZipFileWorker");vr.inherits(Ie,yr);Ie.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,yr.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};Ie.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=bf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};Ie.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=bf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:uv(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};Ie.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=lv(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};Ie.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};Ie.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};Ie.prototype.resume=function(){if(!yr.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};Ie.prototype.error=function(e){var t=this._sources;if(!yr.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};Ie.prototype.lock=function(){yr.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};Cf.exports=Ie});var Sf=D(xf=>{"use strict";var cv=cs(),hv=kf(),fv=o(function(e,t){var r=e||t,i=cv[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");xf.generateWorker=function(e,t,r){var i=new hv(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var l=fv(s.options.compression,t.compression),h=s.options.compressionOptions||t.compressionOptions||{},u=s.dir,c=s.date;s._compressWorker(l,h).withStreamInfo("file",{name:a,dir:u,date:c,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var Ff=D((yk,Ef)=>{"use strict";var dv=H(),Mn=me();function wi(e,t){Mn.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}o(wi,"NodejsStreamInputAdapter");dv.inherits(wi,Mn);wi.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};wi.prototype.pause=function(){return Mn.prototype.pause.call(this)?(this._stream.pause(),!0):!1};wi.prototype.resume=function(){return Mn.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};Ef.exports=wi});var Of=D((bk,Bf)=>{"use strict";var pv=or(),bi=H(),Pf=me(),gv=Do(),Rf=vo(),_f=dn(),mv=_c(),Dv=Sf(),Af=Jr(),vv=Ff(),If=o(function(e,t,r){var i=bi.getTypeOf(t),n,a=bi.extend(r||{},Rf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=Mf(e)),a.createFolders&&(n=yv(e))&&Lf.call(this,n,!0);var s=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!s);var l=t instanceof _f&&t.uncompressedSize===0;(l||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var h=null;t instanceof _f||t instanceof Pf?h=t:Af.isNode&&Af.isStream(t)?h=new vv(e,t):h=bi.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var u=new mv(e,h,a);this.files[e]=u},"fileAdd"),yv=o(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),Mf=o(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),Lf=o(function(e,t){return t=typeof t<"u"?t:Rf.createFolders,e=Mf(e),this.files[e]||If.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function Tf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(Tf,"isRegExp");var wv={load:o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:o(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:o(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:o(function(e,t,r){if(arguments.length===1)if(Tf(e)){var i=e;return this.filter(function(a,s){return!s.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,If.call(this,e,t,r);return this},"file"),folder:o(function(e){if(!e)return this;if(Tf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=Lf.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:o(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:o(function(e){var t,r={};try{if(r=bi.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:pv.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");bi.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=Dv.generateWorker(this,r,i)}catch(n){t=new Pf("error"),t.error(n)}return new gv(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:o(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:o(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};Bf.exports=wv});var ds=D((kk,Nf)=>{"use strict";var bv=H();function Uf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o(Uf,"DataReader");Uf.prototype={checkOffset:o(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:o(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:o(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:o(function(e){this.setIndex(this.index+e)},"skip"),byteAt:o(function(){},"byteAt"),readInt:o(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:o(function(e){return bv.transformTo("string",this.readData(e))},"readString"),readData:o(function(){},"readData"),lastIndexOfSignature:o(function(){},"lastIndexOfSignature"),readAndCheckSignature:o(function(){},"readAndCheckSignature"),readDate:o(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Nf.exports=Uf});var ps=D((Sk,qf)=>{"use strict";var Wf=ds(),Cv=H();function wr(e){Wf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}o(wr,"ArrayReader");Cv.inherits(wr,Wf);wr.prototype.byteAt=function(e){return this.data[this.zero+e]};wr.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1};wr.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};wr.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};qf.exports=wr});var Hf=D((Fk,zf)=>{"use strict";var jf=ds(),kv=H();function br(e){jf.call(this,e)}o(br,"StringReader");kv.inherits(br,jf);br.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};br.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};br.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};br.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};zf.exports=br});var ms=D((Ak,$f)=>{"use strict";var Gf=ps(),xv=H();function gs(e){Gf.call(this,e)}o(gs,"Uint8ArrayReader");xv.inherits(gs,Gf);gs.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};$f.exports=gs});var Kf=D((Pk,Zf)=>{"use strict";var Vf=ms(),Sv=H();function Ds(e){Vf.call(this,e)}o(Ds,"NodeBufferReader");Sv.inherits(Ds,Vf);Ds.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Zf.exports=Ds});var vs=D((Ik,Yf)=>{"use strict";var Ln=H(),Jf=Xe(),Ev=ps(),Fv=Hf(),_v=Kf(),Av=ms();Yf.exports=function(e){var t=Ln.getTypeOf(e);return Ln.checkSupport(t),t==="string"&&!Jf.uint8array?new Fv(e):t==="nodebuffer"?new _v(e):Jf.uint8array?new Av(Ln.transformTo("uint8array",e)):new Ev(Ln.transformTo("array",e))}});var td=D((Mk,ed)=>{"use strict";var ys=vs(),mt=H(),Tv=dn(),Xf=fn(),Bn=or(),On=cs(),Pv=Xe(),Rv=0,Iv=3,Mv=o(function(e){for(var t in On)if(Object.prototype.hasOwnProperty.call(On,t)&&On[t].magic===e)return On[t];return null},"findCompression");function Qf(e,t){this.options=e,this.loadOptions=t}o(Qf,"ZipEntry");Qf.prototype={isEncrypted:o(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:o(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:o(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=Mv(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+mt.pretty(this.compressionMethod)+" unknown (inner file : "+mt.transformTo("string",this.fileName)+")");this.decompressed=new Tv(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:o(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:o(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Rv&&(this.dosPermissions=this.externalFileAttributes&63),e===Iv&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:o(function(){if(this.extraFields[1]){var e=ys(this.extraFields[1].value);this.uncompressedSize===mt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===mt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===mt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:o(function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},"readExtraFields"),handleUTF8:o(function(){var e=Pv.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Bn.utf8decode(this.fileName),this.fileCommentStr=Bn.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=mt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=mt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},"handleUTF8"),findExtraFieldUnicodePath:o(function(){var e=this.extraFields[28789];if(e){var t=ys(e.value);return t.readInt(1)!==1||Xf(this.fileName)!==t.readInt(4)?null:Bn.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:o(function(){var e=this.extraFields[25461];if(e){var t=ys(e.value);return t.readInt(1)!==1||Xf(this.fileComment)!==t.readInt(4)?null:Bn.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};ed.exports=Qf});var nd=D((Bk,id)=>{"use strict";var Lv=vs(),nt=H(),Me=hs(),Bv=td(),Ov=Xe();function rd(e){this.files=[],this.loadOptions=e}o(rd,"ZipEntries");rd.prototype={checkSignature:o(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+nt.pretty(t)+", expected "+nt.pretty(e)+")")}},"checkSignature"),isSignature:o(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},"isSignature"),readBlockEndOfCentral:o(function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Ov.uint8array?"uint8array":"array",r=nt.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:o(function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:o(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:o(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(Me.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:o(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Me.CENTRAL_FILE_HEADER);)e=new Bv({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:o(function(){var e=this.reader.lastIndexOfSignature(Me.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,Me.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(Me.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===nt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===nt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===nt.MAX_VALUE_16BITS||this.centralDirRecords===nt.MAX_VALUE_16BITS||this.centralDirSize===nt.MAX_VALUE_32BITS||this.centralDirOffset===nt.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(Me.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(Me.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Me.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Me.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Me.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,Me.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},"readEndOfCentral"),prepareReader:o(function(e){this.reader=Lv(e)},"prepareReader"),load:o(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};id.exports=rd});var sd=D((Uk,od)=>{"use strict";var ws=H(),Un=ir(),Uv=or(),Nv=nd(),Wv=bo(),ad=Jr();function qv(e){return new Un.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new Wv);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}o(qv,"checkEntryCRC32");od.exports=function(e,t){var r=this;return t=ws.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Uv.utf8decode}),ad.isNode&&ad.isStream(e)?Un.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ws.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new Nv(t);return n.load(i),n}).then(o(function(n){var a=[Un.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var l=0;l<s.length;l++)a.push(qv(s[l]));return Un.Promise.all(a)},"checkCRC32")).then(o(function(n){for(var a=n.shift(),s=a.files,l=0;l<s.length;l++){var h=s[l],u=h.fileNameStr,c=ws.resolve(h.fileNameStr);r.file(c,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:t.createFolders}),h.dir||(r.file(c).unsafeOriginalName=u)}return a.zipComment.length&&(r.comment=a.zipComment),r},"addFiles"))}});var Nn=D((Wk,ld)=>{"use strict";function xe(){if(!(this instanceof xe))return new xe;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new xe;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}o(xe,"JSZip");xe.prototype=Of();xe.prototype.loadAsync=sd();xe.support=Xe();xe.defaults=vo();xe.version="3.10.1";xe.loadAsync=function(e,t){return new xe().loadAsync(e,t)};xe.external=ir();ld.exports=xe});var dd=D((R1,fd)=>{var Cr=1e3,kr=Cr*60,xr=kr*60,Ut=xr*24,Jv=Ut*7,Yv=Ut*365.25;fd.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Xv(e);if(r==="number"&&isFinite(e))return t.long?ey(e):Qv(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Xv(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*Yv;case"weeks":case"week":case"w":return r*Jv;case"days":case"day":case"d":return r*Ut;case"hours":case"hour":case"hrs":case"hr":case"h":return r*xr;case"minutes":case"minute":case"mins":case"min":case"m":return r*kr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Cr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(Xv,"parse");function Qv(e){var t=Math.abs(e);return t>=Ut?Math.round(e/Ut)+"d":t>=xr?Math.round(e/xr)+"h":t>=kr?Math.round(e/kr)+"m":t>=Cr?Math.round(e/Cr)+"s":e+"ms"}o(Qv,"fmtShort");function ey(e){var t=Math.abs(e);return t>=Ut?Wn(e,t,Ut,"day"):t>=xr?Wn(e,t,xr,"hour"):t>=kr?Wn(e,t,kr,"minute"):t>=Cr?Wn(e,t,Cr,"second"):e+" ms"}o(ey,"fmtLong");function Wn(e,t,r,i){var n=t>=r*1.5;return Math.round(e/r)+" "+i+(n?"s":"")}o(Wn,"plural")});var Ss=D((M1,pd)=>{function ty(e){r.debug=r,r.default=r,r.coerce=h,r.disable=a,r.enable=n,r.enabled=s,r.humanize=dd(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}o(t,"selectColor"),r.selectColor=t;function r(c){let f,d=null,p,C;function v(...y){if(!v.enabled)return;let m=v,b=Number(new Date),k=b-(f||b);m.diff=k,m.prev=f,m.curr=b,f=b,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let w=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(E,_)=>{if(E==="%%")return"%";w++;let x=r.formatters[_];if(typeof x=="function"){let A=y[w];E=x.call(m,A),y.splice(w,1),w--}return E}),r.formatArgs.call(m,y),(m.log||r.log).apply(m,y)}return o(v,"debug"),v.namespace=c,v.useColors=r.useColors(),v.color=r.selectColor(c),v.extend=i,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:o(()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,C=r.enabled(c)),C),"get"),set:o(y=>{d=y},"set")}),typeof r.init=="function"&&r.init(v),v}o(r,"createDebug");function i(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}o(i,"extend");function n(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}o(n,"enable");function a(){let c=[...r.names.map(l),...r.skips.map(l).map(f=>"-"+f)].join(",");return r.enable(""),c}o(a,"disable");function s(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}o(s,"enabled");function l(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}o(l,"toNamespace");function h(c){return c instanceof Error?c.stack||c.message:c}o(h,"coerce");function u(){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 o(u,"destroy"),r.enable(r.load()),r}o(ty,"setup");pd.exports=ty});var gd=D((ve,qn)=>{ve.formatArgs=iy;ve.save=ny;ve.load=ay;ve.useColors=ry;ve.storage=oy();ve.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();ve.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 ry(){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 e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(ry,"useColors");function iy(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+qn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(i=r))}),e.splice(i,0,t)}o(iy,"formatArgs");ve.log=console.debug||console.log||(()=>{});function ny(e){try{e?ve.storage.setItem("debug",e):ve.storage.removeItem("debug")}catch{}}o(ny,"save");function ay(){let e;try{e=ve.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}o(ay,"load");function oy(){try{return localStorage}catch{}}o(oy,"localstorage");qn.exports=Ss()(ve);var{formatters:sy}=qn.exports;sy.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Dd=D((O1,md)=>{"use strict";md.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}});var wd=D((U1,yd)=>{"use strict";var ly=require("os"),vd=require("tty"),Se=Dd(),{env:Q}=process,Dt;Se("no-color")||Se("no-colors")||Se("color=false")||Se("color=never")?Dt=0:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Dt=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Dt=1:Q.FORCE_COLOR==="false"?Dt=0:Dt=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function Es(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(Es,"translateLevel");function Fs(e,t){if(Dt===0)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!t&&Dt===void 0)return 0;let r=Dt||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let i=ly.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let i=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}o(Fs,"supportsColor");function uy(e){let t=Fs(e,e&&e.isTTY);return Es(t)}o(uy,"getSupportLevel");yd.exports={supportsColor:uy,stdout:Es(Fs(!0,vd.isatty(1))),stderr:Es(Fs(!0,vd.isatty(2)))}});var Cd=D((ee,zn)=>{var cy=require("tty"),jn=require("util");ee.init=Dy;ee.log=py;ee.formatArgs=fy;ee.save=gy;ee.load=my;ee.useColors=hy;ee.destroy=jn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ee.colors=[6,2,3,4,5,1];try{let e=wd();e&&(e.stderr||e).level>=2&&(ee.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{}ee.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(n,a)=>a.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function hy(){return"colors"in ee.inspectOpts?!!ee.inspectOpts.colors:cy.isatty(process.stderr.fd)}o(hy,"useColors");function fy(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),a=` ${n};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
|
|
1
|
+
"use strict";var UF=Object.create;var Oc=Object.defineProperty;var NF=Object.getOwnPropertyDescriptor;var WF=Object.getOwnPropertyNames;var qF=Object.getPrototypeOf,HF=Object.prototype.hasOwnProperty;var Mm=e=>{throw TypeError(e)};var o=(e,t)=>Oc(e,"name",{value:t,configurable:!0});var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zF=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of WF(t))!HF.call(e,s)&&s!==r&&Oc(e,s,{get:()=>t[s],enumerable:!(i=NF(t,s))||i.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?UF(qF(e)):{},zF(t||!e||!e.__esModule?Oc(r,"default",{value:e,enumerable:!0}):r,e));var Bc=(e,t,r)=>t.has(e)||Mm("Cannot "+r);var ee=(e,t,r)=>(Bc(e,t,"read from private field"),r?r.call(e):t.get(e)),Mt=(e,t,r)=>t.has(e)?Mm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Pr=(e,t,r,i)=>(Bc(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),hr=(e,t,r)=>(Bc(e,t,"access private method"),r);var Ia=O((lL,Wc)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Wc.exports={nextTick:jF}:Wc.exports=process;function jF(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,u,c;switch(s){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(o(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(o(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(o(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(u=new Array(s-1),c=0;c<u.length;)u[c++]=arguments[c];return process.nextTick(o(function(){e.apply(null,u)},"afterTick"))}}o(jF,"nextTick")});var Hm=O((hL,qm)=>{var ZF={}.toString;qm.exports=Array.isArray||function(e){return ZF.call(e)=="[object Array]"}});var qc=O((fL,zm)=>{zm.exports=require("stream")});var Pa=O((Hc,$m)=>{var Is=require("buffer"),Lr=Is.Buffer;function Gm(e,t){for(var r in e)t[r]=e[r]}o(Gm,"copyProps");Lr.from&&Lr.alloc&&Lr.allocUnsafe&&Lr.allocUnsafeSlow?$m.exports=Is:(Gm(Is,Hc),Hc.Buffer=Di);function Di(e,t,r){return Lr(e,t,r)}o(Di,"SafeBuffer");Gm(Lr,Di);Di.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Lr(e,t,r)};Di.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=Lr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Di.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lr(e)};Di.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Is.SlowBuffer(e)}});var wi=O(et=>{function KF(e){return Array.isArray?Array.isArray(e):Ps(e)==="[object Array]"}o(KF,"isArray");et.isArray=KF;function VF(e){return typeof e=="boolean"}o(VF,"isBoolean");et.isBoolean=VF;function YF(e){return e===null}o(YF,"isNull");et.isNull=YF;function JF(e){return e==null}o(JF,"isNullOrUndefined");et.isNullOrUndefined=JF;function XF(e){return typeof e=="number"}o(XF,"isNumber");et.isNumber=XF;function QF(e){return typeof e=="string"}o(QF,"isString");et.isString=QF;function eA(e){return typeof e=="symbol"}o(eA,"isSymbol");et.isSymbol=eA;function tA(e){return e===void 0}o(tA,"isUndefined");et.isUndefined=tA;function rA(e){return Ps(e)==="[object RegExp]"}o(rA,"isRegExp");et.isRegExp=rA;function nA(e){return typeof e=="object"&&e!==null}o(nA,"isObject");et.isObject=nA;function iA(e){return Ps(e)==="[object Date]"}o(iA,"isDate");et.isDate=iA;function aA(e){return Ps(e)==="[object Error]"||e instanceof Error}o(aA,"isError");et.isError=aA;function oA(e){return typeof e=="function"}o(oA,"isFunction");et.isFunction=oA;function sA(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}o(sA,"isPrimitive");et.isPrimitive=sA;et.isBuffer=require("buffer").Buffer.isBuffer;function Ps(e){return Object.prototype.toString.call(e)}o(Ps,"objectToString")});var jm=O((mL,zc)=>{typeof Object.create=="function"?zc.exports=o(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):zc.exports=o(function(t,r){if(r){t.super_=r;var i=o(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var yi=O((DL,$c)=>{try{if(Gc=require("util"),typeof Gc.inherits!="function")throw"";$c.exports=Gc.inherits}catch{$c.exports=jm()}var Gc});var Km=O((wL,jc)=>{"use strict";function uA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o(uA,"_classCallCheck");var Zm=Pa().Buffer,La=require("util");function lA(e,t,r){e.copy(t,r)}o(lA,"copyBuffer");jc.exports=function(){function e(){uA(this,e),this.head=null,this.tail=null,this.length=0}return o(e,"BufferList"),e.prototype.push=o(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push"),e.prototype.unshift=o(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=o(function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},"shift"),e.prototype.clear=o(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=o(function(r){if(this.length===0)return"";for(var i=this.head,s=""+i.data;i=i.next;)s+=r+i.data;return s},"join"),e.prototype.concat=o(function(r){if(this.length===0)return Zm.alloc(0);for(var i=Zm.allocUnsafe(r>>>0),s=this.head,u=0;s;)lA(s.data,i,u),u+=s.data.length,s=s.next;return i},"concat"),e}();La&&La.inspect&&La.inspect.custom&&(jc.exports.prototype[La.inspect.custom]=function(){var e=La.inspect({length:this.length});return this.constructor.name+" "+e})});var Zc=O((bL,Vm)=>{"use strict";var Ls=Ia();function cA(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ls.nextTick(Ms,this,e)):Ls.nextTick(Ms,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(u){!t&&u?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Ls.nextTick(Ms,r,u)):Ls.nextTick(Ms,r,u):t&&t(u)}),this)}o(cA,"destroy");function hA(){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)}o(hA,"undestroy");function Ms(e,t){e.emit("error",t)}o(Ms,"emitErrorNT");Vm.exports={destroy:cA,undestroy:hA}});var Jm=O((CL,Ym)=>{Ym.exports=require("util").deprecate});var Vc=O((xL,a0)=>{"use strict";var An=Ia();a0.exports=Be;function Qm(e){var t=this;this.next=null,this.entry=null,this.finish=function(){AA(t,e)}}o(Qm,"CorkedRequest");var fA=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:An.nextTick,bi;Be.WritableState=Oa;var e0=Object.create(wi());e0.inherits=yi();var dA={deprecate:Jm()},t0=qc(),Bs=Pa().Buffer,pA=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function gA(e){return Bs.from(e)}o(gA,"_uint8ArrayToBuffer");function mA(e){return Bs.isBuffer(e)||e instanceof pA}o(mA,"_isUint8Array");var r0=Zc();e0.inherits(Be,t0);function vA(){}o(vA,"nop");function Oa(e,t){bi=bi||Tn(),e=e||{};var r=t instanceof bi;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,u=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(s||s===0)?this.highWaterMark=s:this.highWaterMark=u,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 c=e.decodeStrings===!1;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(f){xA(t,f)},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 Qm(this)}o(Oa,"WritableState");Oa.prototype.getBuffer=o(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(Oa.prototype,"buffer",{get:dA.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Os;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Os=Function.prototype[Symbol.hasInstance],Object.defineProperty(Be,Symbol.hasInstance,{value:o(function(e){return Os.call(this,e)?!0:this!==Be?!1:e&&e._writableState instanceof Oa},"value")})):Os=o(function(e){return e instanceof this},"realHasInstance");function Be(e){if(bi=bi||Tn(),!Os.call(Be,this)&&!(this instanceof bi))return new Be(e);this._writableState=new Oa(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),t0.call(this)}o(Be,"Writable");Be.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function DA(e,t){var r=new Error("write after end");e.emit("error",r),An.nextTick(t,r)}o(DA,"writeAfterEnd");function wA(e,t,r,i){var s=!0,u=!1;return r===null?u=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(u=new TypeError("Invalid non-string/buffer chunk")),u&&(e.emit("error",u),An.nextTick(i,u),s=!1),s}o(wA,"validChunk");Be.prototype.write=function(e,t,r){var i=this._writableState,s=!1,u=!i.objectMode&&mA(e);return u&&!Bs.isBuffer(e)&&(e=gA(e)),typeof t=="function"&&(r=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=vA),i.ended?DA(this,r):(u||wA(this,i,e,r))&&(i.pendingcb++,s=bA(this,i,u,e,t,r)),s};Be.prototype.cork=function(){var e=this._writableState;e.corked++};Be.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&n0(this,e))};Be.prototype.setDefaultEncoding=o(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function yA(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Bs.from(t,r)),t}o(yA,"decodeChunk");Object.defineProperty(Be.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function bA(e,t,r,i,s,u){if(!r){var c=yA(t,i,s);i!==c&&(r=!0,s="buffer",i=c)}var f=t.objectMode?1:i.length;t.length+=f;var v=t.length<t.highWaterMark;if(v||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:u,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Kc(e,t,!1,f,i,s,u);return v}o(bA,"writeOrBuffer");function Kc(e,t,r,i,s,u,c){t.writelen=i,t.writecb=c,t.writing=!0,t.sync=!0,r?e._writev(s,t.onwrite):e._write(s,u,t.onwrite),t.sync=!1}o(Kc,"doWrite");function _A(e,t,r,i,s){--t.pendingcb,r?(An.nextTick(s,i),An.nextTick(Ma,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(s(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ma(e,t))}o(_A,"onwriteError");function CA(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}o(CA,"onwriteStateUpdate");function xA(e,t){var r=e._writableState,i=r.sync,s=r.writecb;if(CA(r),t)_A(e,r,i,t,s);else{var u=i0(r);!u&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&n0(e,r),i?fA(Xm,e,r,u,s):Xm(e,r,u,s)}}o(xA,"onwrite");function Xm(e,t,r,i){r||kA(e,t),t.pendingcb--,i(),Ma(e,t)}o(Xm,"afterWrite");function kA(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}o(kA,"onwriteDrain");function n0(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,s=new Array(i),u=t.corkedRequestsFree;u.entry=r;for(var c=0,f=!0;r;)s[c]=r,r.isBuf||(f=!1),r=r.next,c+=1;s.allBuffers=f,Kc(e,t,!0,t.length,s,"",u.finish),t.pendingcb++,t.lastBufferedRequest=null,u.next?(t.corkedRequestsFree=u.next,u.next=null):t.corkedRequestsFree=new Qm(t),t.bufferedRequestCount=0}else{for(;r;){var v=r.chunk,p=r.encoding,g=r.callback,b=t.objectMode?1:v.length;if(Kc(e,t,!1,b,v,p,g),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}o(n0,"clearBuffer");Be.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};Be.prototype._writev=null;Be.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||FA(this,i,r)};function i0(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}o(i0,"needFinish");function SA(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ma(e,t)})}o(SA,"callFinal");function EA(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,An.nextTick(SA,e,t)):(t.prefinished=!0,e.emit("prefinish")))}o(EA,"prefinish");function Ma(e,t){var r=i0(t);return r&&(EA(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}o(Ma,"finishMaybe");function FA(e,t,r){t.ending=!0,Ma(e,t),r&&(t.finished?An.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}o(FA,"endWritable");function AA(e,t,r){var i=e.entry;for(e.entry=null;i;){var s=i.callback;t.pendingcb--,s(r),i=i.next}t.corkedRequestsFree.next=e}o(AA,"onCorkedFinish");Object.defineProperty(Be.prototype,"destroyed",{get:o(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:o(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});Be.prototype.destroy=r0.destroy;Be.prototype._undestroy=r0.undestroy;Be.prototype._destroy=function(e,t){this.end(),t(e)}});var Tn=O((SL,l0)=>{"use strict";var o0=Ia(),TA=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};l0.exports=Mr;var s0=Object.create(wi());s0.inherits=yi();var u0=Xc(),Jc=Vc();s0.inherits(Mr,u0);for(Yc=TA(Jc.prototype),Us=0;Us<Yc.length;Us++)Ns=Yc[Us],Mr.prototype[Ns]||(Mr.prototype[Ns]=Jc.prototype[Ns]);var Yc,Ns,Us;function Mr(e){if(!(this instanceof Mr))return new Mr(e);u0.call(this,e),Jc.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",RA)}o(Mr,"Duplex");Object.defineProperty(Mr.prototype,"writableHighWaterMark",{enumerable:!1,get:o(function(){return this._writableState.highWaterMark},"get")});function RA(){this.allowHalfOpen||this._writableState.ended||o0.nextTick(IA,this)}o(RA,"onend");function IA(e){e.end()}o(IA,"onEndNT");Object.defineProperty(Mr.prototype,"destroyed",{get:o(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:o(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});Mr.prototype._destroy=function(e,t){this.push(null),this.end(),o0.nextTick(t,e)}});var th=O(h0=>{"use strict";var eh=Pa().Buffer,c0=eh.isEncoding||function(e){switch(e=""+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 PA(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}}o(PA,"_normalizeEncoding");function LA(e){var t=PA(e);if(typeof t!="string"&&(eh.isEncoding===c0||!c0(e)))throw new Error("Unknown encoding: "+e);return t||e}o(LA,"normalizeEncoding");h0.StringDecoder=Ba;function Ba(e){this.encoding=LA(e);var t;switch(this.encoding){case"utf16le":this.text=WA,this.end=qA,t=4;break;case"utf8":this.fillLast=BA,t=4;break;case"base64":this.text=HA,this.end=zA,t=3;break;default:this.write=GA,this.end=$A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eh.allocUnsafe(t)}o(Ba,"StringDecoder");Ba.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Ba.prototype.end=NA;Ba.prototype.text=UA;Ba.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};function Qc(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}o(Qc,"utf8CheckByte");function MA(e,t,r){var i=t.length-1;if(i<r)return 0;var s=Qc(t[i]);return s>=0?(s>0&&(e.lastNeed=s-1),s):--i<r||s===-2?0:(s=Qc(t[i]),s>=0?(s>0&&(e.lastNeed=s-2),s):--i<r||s===-2?0:(s=Qc(t[i]),s>=0?(s>0&&(s===2?s=0:e.lastNeed=s-3),s):0))}o(MA,"utf8CheckIncomplete");function OA(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}o(OA,"utf8CheckExtraBytes");function BA(e){var t=this.lastTotal-this.lastNeed,r=OA(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}o(BA,"utf8FillLast");function UA(e,t){var r=MA(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}o(UA,"utf8Text");function NA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}o(NA,"utf8End");function WA(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=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)}o(WA,"utf16Text");function qA(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}o(qA,"utf16End");function HA(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?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))}o(HA,"base64Text");function zA(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}o(zA,"base64End");function GA(e){return e.toString(this.encoding)}o(GA,"simpleWrite");function $A(e){return e&&e.length?this.write(e):""}o($A,"simpleEnd")});var Xc=O((RL,C0)=>{"use strict";var Ci=Ia();C0.exports=xe;var jA=Hm(),Ua;xe.ReadableState=D0;var TL=require("events").EventEmitter,g0=o(function(e,t){return e.listeners(t).length},"EElistenerCount"),oh=qc(),Na=Pa().Buffer,ZA=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KA(e){return Na.from(e)}o(KA,"_uint8ArrayToBuffer");function VA(e){return Na.isBuffer(e)||e instanceof ZA}o(VA,"_isUint8Array");var m0=Object.create(wi());m0.inherits=yi();var rh=require("util"),ge=void 0;rh&&rh.debuglog?ge=rh.debuglog("stream"):ge=o(function(){},"debug");var YA=Km(),v0=Zc(),_i;m0.inherits(xe,oh);var nh=["error","close","destroy","pause","resume"];function JA(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):jA(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}o(JA,"prependListener");function D0(e,t){Ua=Ua||Tn(),e=e||{};var r=t instanceof Ua;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,u=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(s||s===0)?this.highWaterMark=s:this.highWaterMark=u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new YA,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&&(_i||(_i=th().StringDecoder),this.decoder=new _i(e.encoding),this.encoding=e.encoding)}o(D0,"ReadableState");function xe(e){if(Ua=Ua||Tn(),!(this instanceof xe))return new xe(e);this._readableState=new D0(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),oh.call(this)}o(xe,"Readable");Object.defineProperty(xe.prototype,"destroyed",{get:o(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:o(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});xe.prototype.destroy=v0.destroy;xe.prototype._undestroy=v0.undestroy;xe.prototype._destroy=function(e,t){this.push(null),t(e)};xe.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Na.from(e,t),t=""),i=!0),w0(this,e,t,!1,i)};xe.prototype.unshift=function(e){return w0(this,e,null,!0,!1)};function w0(e,t,r,i,s){var u=e._readableState;if(t===null)u.reading=!1,t2(e,u);else{var c;s||(c=XA(u,t)),c?e.emit("error",c):u.objectMode||t&&t.length>0?(typeof t!="string"&&!u.objectMode&&Object.getPrototypeOf(t)!==Na.prototype&&(t=KA(t)),i?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):ih(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||t.length!==0?ih(e,u,t,!1):y0(e,u)):ih(e,u,t,!1))):i||(u.reading=!1)}return QA(u)}o(w0,"readableAddChunk");function ih(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ws(e)),y0(e,t)}o(ih,"addChunk");function XA(e,t){var r;return!VA(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}o(XA,"chunkInvalid");function QA(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}o(QA,"needMoreData");xe.prototype.isPaused=function(){return this._readableState.flowing===!1};xe.prototype.setEncoding=function(e){return _i||(_i=th().StringDecoder),this._readableState.decoder=new _i(e),this._readableState.encoding=e,this};var f0=8388608;function e2(e){return e>=f0?e=f0:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}o(e2,"computeNewHighWaterMark");function d0(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=e2(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}o(d0,"howMuchToRead");xe.prototype.read=function(e){ge("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ge("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ah(this):Ws(this),null;if(e=d0(e,t),e===0&&t.ended)return t.length===0&&ah(this),null;var i=t.needReadable;ge("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,ge("length less than watermark",i)),t.ended||t.reading?(i=!1,ge("reading or ended",i)):i&&(ge("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=d0(r,t)));var s;return e>0?s=b0(e,t):s=null,s===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ah(this)),s!==null&&this.emit("data",s),s};function t2(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,Ws(e)}}o(t2,"onEofChunk");function Ws(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ge("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Ci.nextTick(p0,e):p0(e))}o(Ws,"emitReadable");function p0(e){ge("emit readable"),e.emit("readable"),sh(e)}o(p0,"emitReadable_");function y0(e,t){t.readingMore||(t.readingMore=!0,Ci.nextTick(r2,e,t))}o(y0,"maybeReadMore");function r2(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ge("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}o(r2,"maybeReadMore_");xe.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};xe.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);break}i.pipesCount+=1,ge("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,u=s?f:U;i.endEmitted?Ci.nextTick(u):r.once("end",u),e.on("unpipe",c);function c(A,I){ge("onunpipe"),A===r&&I&&I.hasUnpiped===!1&&(I.hasUnpiped=!0,g())}o(c,"onunpipe");function f(){ge("onend"),e.end()}o(f,"onend");var v=n2(r);e.on("drain",v);var p=!1;function g(){ge("cleanup"),e.removeListener("close",L),e.removeListener("finish",P),e.removeListener("drain",v),e.removeListener("error",S),e.removeListener("unpipe",c),r.removeListener("end",f),r.removeListener("end",U),r.removeListener("data",x),p=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&v()}o(g,"cleanup");var b=!1;r.on("data",x);function x(A){ge("ondata"),b=!1;var I=e.write(A);I===!1&&!b&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&_0(i.pipes,e)!==-1)&&!p&&(ge("false write response, pause",i.awaitDrain),i.awaitDrain++,b=!0),r.pause())}o(x,"ondata");function S(A){ge("onerror",A),U(),e.removeListener("error",S),g0(e,"error")===0&&e.emit("error",A)}o(S,"onerror"),JA(e,"error",S);function L(){e.removeListener("finish",P),U()}o(L,"onclose"),e.once("close",L);function P(){ge("onfinish"),e.removeListener("close",L),U()}o(P,"onfinish"),e.once("finish",P);function U(){ge("unpipe"),r.unpipe(e)}return o(U,"unpipe"),e.emit("pipe",r),i.flowing||(ge("pipe resume"),r.resume()),e};function n2(e){return function(){var t=e._readableState;ge("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&g0(e,"data")&&(t.flowing=!0,sh(e))}}o(n2,"pipeOnDrain");xe.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var u=0;u<s;u++)i[u].emit("unpipe",this,{hasUnpiped:!1});return this}var c=_0(t.pipes,e);return c===-1?this:(t.pipes.splice(c,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};xe.prototype.on=function(e,t){var r=oh.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Ws(this):Ci.nextTick(i2,this))}return r};xe.prototype.addListener=xe.prototype.on;function i2(e){ge("readable nexttick read 0"),e.read(0)}o(i2,"nReadingNextTick");xe.prototype.resume=function(){var e=this._readableState;return e.flowing||(ge("resume"),e.flowing=!0,a2(this,e)),this};function a2(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Ci.nextTick(o2,e,t))}o(a2,"resume");function o2(e,t){t.reading||(ge("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),sh(e),t.flowing&&!t.reading&&e.read(0)}o(o2,"resume_");xe.prototype.pause=function(){return ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ge("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function sh(e){var t=e._readableState;for(ge("flow",t.flowing);t.flowing&&e.read()!==null;);}o(sh,"flow");xe.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(ge("wrapped end"),r.decoder&&!r.ended){var c=r.decoder.end();c&&c.length&&t.push(c)}t.push(null)}),e.on("data",function(c){if(ge("wrapped data"),r.decoder&&(c=r.decoder.write(c)),!(r.objectMode&&c==null)&&!(!r.objectMode&&(!c||!c.length))){var f=t.push(c);f||(i=!0,e.pause())}});for(var s in e)this[s]===void 0&&typeof e[s]=="function"&&(this[s]=function(c){return function(){return e[c].apply(e,arguments)}}(s));for(var u=0;u<nh.length;u++)e.on(nh[u],this.emit.bind(this,nh[u]));return this._read=function(c){ge("wrapped _read",c),i&&(i=!1,e.resume())},this};Object.defineProperty(xe.prototype,"readableHighWaterMark",{enumerable:!1,get:o(function(){return this._readableState.highWaterMark},"get")});xe._fromList=b0;function b0(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=s2(e,t.buffer,t.decoder),r}o(b0,"fromList");function s2(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?u2(e,t):l2(e,t),i}o(s2,"fromListPartial");function u2(e,t){var r=t.head,i=1,s=r.data;for(e-=s.length;r=r.next;){var u=r.data,c=e>u.length?u.length:e;if(c===u.length?s+=u:s+=u.slice(0,e),e-=c,e===0){c===u.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=u.slice(c));break}++i}return t.length-=i,s}o(u2,"copyFromBufferString");function l2(e,t){var r=Na.allocUnsafe(e),i=t.head,s=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var u=i.data,c=e>u.length?u.length:e;if(u.copy(r,r.length-e,0,c),e-=c,e===0){c===u.length?(++s,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=u.slice(c));break}++s}return t.length-=s,r}o(l2,"copyFromBuffer");function ah(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Ci.nextTick(c2,t,e))}o(ah,"endReadable");function c2(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}o(c2,"endReadableNT");function _0(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}o(_0,"indexOf")});var uh=O((PL,S0)=>{"use strict";S0.exports=Or;var qs=Tn(),k0=Object.create(wi());k0.inherits=yi();k0.inherits(Or,qs);function h2(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}o(h2,"afterTransform");function Or(e){if(!(this instanceof Or))return new Or(e);qs.call(this,e),this._transformState={afterTransform:h2.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",f2)}o(Or,"Transform");function f2(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){x0(e,t,r)}):x0(this,null,null)}o(f2,"prefinish");Or.prototype.push=function(e,t){return this._transformState.needTransform=!1,qs.prototype.push.call(this,e,t)};Or.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Or.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};Or.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Or.prototype._destroy=function(e,t){var r=this;qs.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function x0(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o(x0,"done")});var T0=O((ML,A0)=>{"use strict";A0.exports=Wa;var E0=uh(),F0=Object.create(wi());F0.inherits=yi();F0.inherits(Wa,E0);function Wa(e){if(!(this instanceof Wa))return new Wa(e);E0.call(this,e)}o(Wa,"PassThrough");Wa.prototype._transform=function(e,t,r){r(null,e)}});var lh=O((Ke,Hs)=>{var fr=require("stream");process.env.READABLE_STREAM==="disable"&&fr?(Hs.exports=fr,Ke=Hs.exports=fr.Readable,Ke.Readable=fr.Readable,Ke.Writable=fr.Writable,Ke.Duplex=fr.Duplex,Ke.Transform=fr.Transform,Ke.PassThrough=fr.PassThrough,Ke.Stream=fr):(Ke=Hs.exports=Xc(),Ke.Stream=fr||Ke,Ke.Readable=Ke,Ke.Writable=Vc(),Ke.Duplex=Tn(),Ke.Transform=uh(),Ke.PassThrough=T0())});var Br=O(_t=>{"use strict";_t.base64=!0;_t.array=!0;_t.string=!0;_t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";_t.nodebuffer=typeof Buffer<"u";_t.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")_t.blob=!1;else{ch=new ArrayBuffer(0);try{_t.blob=new Blob([ch],{type:"application/zip"}).size===0}catch{try{R0=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,hh=new R0,hh.append(ch),_t.blob=hh.getBlob("application/zip").size===0}catch{_t.blob=!1}}}var ch,R0,hh;try{_t.nodestream=!!lh().Readable}catch{_t.nodestream=!1}});var dh=O(fh=>{"use strict";var d2=Fe(),p2=Br(),dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";fh.encode=function(e){for(var t=[],r,i,s,u,c,f,v,p=0,g=e.length,b=g,x=d2.getTypeOf(e)!=="string";p<e.length;)b=g-p,x?(r=e[p++],i=p<g?e[p++]:0,s=p<g?e[p++]:0):(r=e.charCodeAt(p++),i=p<g?e.charCodeAt(p++):0,s=p<g?e.charCodeAt(p++):0),u=r>>2,c=(r&3)<<4|i>>4,f=b>1?(i&15)<<2|s>>6:64,v=b>2?s&63:64,t.push(dr.charAt(u)+dr.charAt(c)+dr.charAt(f)+dr.charAt(v));return t.join("")};fh.decode=function(e){var t,r,i,s,u,c,f,v=0,p=0,g="data:";if(e.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var b=e.length*3/4;if(e.charAt(e.length-1)===dr.charAt(64)&&b--,e.charAt(e.length-2)===dr.charAt(64)&&b--,b%1!==0)throw new Error("Invalid base64 input, bad content length.");var x;for(p2.uint8array?x=new Uint8Array(b|0):x=new Array(b|0);v<e.length;)s=dr.indexOf(e.charAt(v++)),u=dr.indexOf(e.charAt(v++)),c=dr.indexOf(e.charAt(v++)),f=dr.indexOf(e.charAt(v++)),t=s<<2|u>>4,r=(u&15)<<4|c>>2,i=(c&3)<<6|f,x[p++]=t,c!==64&&(x[p++]=r),f!==64&&(x[p++]=i);return x}});var qa=O((NL,I0)=>{"use strict";I0.exports={isNode:typeof Buffer<"u",newBufferFrom:o(function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},"newBufferFrom"),allocBuffer:o(function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},"allocBuffer"),isBuffer:o(function(e){return Buffer.isBuffer(e)},"isBuffer"),isStream:o(function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"},"isStream")}});var O0=O((qL,M0)=>{"use strict";var P0=global.MutationObserver||global.WebKitMutationObserver,xi;process.browser?P0?(ph=0,L0=new P0(Ha),gh=global.document.createTextNode(""),L0.observe(gh,{characterData:!0}),xi=o(function(){gh.data=ph=++ph%2},"scheduleDrain")):!global.setImmediate&&typeof global.MessageChannel<"u"?(mh=new global.MessageChannel,mh.port1.onmessage=Ha,xi=o(function(){mh.port2.postMessage(0)},"scheduleDrain")):"document"in global&&"onreadystatechange"in global.document.createElement("script")?xi=o(function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Ha(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)},"scheduleDrain"):xi=o(function(){setTimeout(Ha,0)},"scheduleDrain"):xi=o(function(){process.nextTick(Ha)},"scheduleDrain");var ph,L0,gh,mh,vh,za=[];function Ha(){vh=!0;for(var e,t,r=za.length;r;){for(t=za,za=[],e=-1;++e<r;)t[e]();r=za.length}vh=!1}o(Ha,"nextTick");M0.exports=g2;function g2(e){za.push(e)===1&&!vh&&xi()}o(g2,"immediate")});var z0=O((zL,H0)=>{"use strict";var B0=O0();function ki(){}o(ki,"INTERNAL");var tt={},U0=["REJECTED"],Dh=["FULFILLED"],N0=["PENDING"];process.browser||(Ga=["UNHANDLED"]);var Ga;H0.exports=rn;function rn(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=N0,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Ga),e!==ki&&W0(this,e)}o(rn,"Promise");rn.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(s){function u(){return s}return o(u,"yes"),t.resolve(e()).then(u)}function i(s){function u(){throw s}return o(u,"no"),t.resolve(e()).then(u)}};rn.prototype.catch=function(e){return this.then(null,e)};rn.prototype.then=function(e,t){if(typeof e!="function"&&this.state===Dh||typeof t!="function"&&this.state===U0)return this;var r=new this.constructor(ki);if(process.browser||this.handled===Ga&&(this.handled=null),this.state!==N0){var i=this.state===Dh?e:t;wh(r,i,this.outcome)}else this.queue.push(new $a(r,e,t));return r};function $a(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}o($a,"QueueItem");$a.prototype.callFulfilled=function(e){tt.resolve(this.promise,e)};$a.prototype.otherCallFulfilled=function(e){wh(this.promise,this.onFulfilled,e)};$a.prototype.callRejected=function(e){tt.reject(this.promise,e)};$a.prototype.otherCallRejected=function(e){wh(this.promise,this.onRejected,e)};function wh(e,t,r){B0(function(){var i;try{i=t(r)}catch(s){return tt.reject(e,s)}i===e?tt.reject(e,new TypeError("Cannot resolve promise with itself")):tt.resolve(e,i)})}o(wh,"unwrap");tt.resolve=function(e,t){var r=q0(m2,t);if(r.status==="error")return tt.reject(e,r.value);var i=r.value;if(i)W0(e,i);else{e.state=Dh,e.outcome=t;for(var s=-1,u=e.queue.length;++s<u;)e.queue[s].callFulfilled(t)}return e};tt.reject=function(e,t){e.state=U0,e.outcome=t,process.browser||e.handled===Ga&&B0(function(){e.handled===Ga&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function m2(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return o(function(){t.apply(e,arguments)},"appyThen")}o(m2,"getThen");function W0(e,t){var r=!1;function i(f){r||(r=!0,tt.reject(e,f))}o(i,"onError");function s(f){r||(r=!0,tt.resolve(e,f))}o(s,"onSuccess");function u(){t(s,i)}o(u,"tryToUnwrap");var c=q0(u);c.status==="error"&&i(c.value)}o(W0,"safelyResolveThenable");function q0(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}o(q0,"tryCatch");rn.resolve=v2;function v2(e){return e instanceof this?e:tt.resolve(new this(ki),e)}o(v2,"resolve");rn.reject=D2;function D2(e){var t=new this(ki);return tt.reject(t,e)}o(D2,"reject");rn.all=w2;function w2(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var s=new Array(r),u=0,c=-1,f=new this(ki);++c<r;)v(e[c],c);return f;function v(p,g){t.resolve(p).then(b,function(x){i||(i=!0,tt.reject(f,x))});function b(x){s[g]=x,++u===r&&!i&&(i=!0,tt.resolve(f,s))}o(b,"resolveFromAll")}}o(w2,"all");rn.race=y2;function y2(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var s=-1,u=new this(ki);++s<r;)c(e[s]);return u;function c(f){t.resolve(f).then(function(v){i||(i=!0,tt.resolve(u,v))},function(v){i||(i=!0,tt.reject(u,v))})}}o(y2,"race")});var Si=O(($L,G0)=>{"use strict";var yh=null;typeof Promise<"u"?yh=Promise:yh=z0();G0.exports={Promise:yh}});var j0=O($0=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},s=!1,u=e.document,c;function f(I){typeof I!="function"&&(I=new Function(""+I));for(var N=new Array(arguments.length-1),B=0;B<N.length;B++)N[B]=arguments[B+1];var F={callback:I,args:N};return i[r]=F,c(r),r++}o(f,"setImmediate");function v(I){delete i[I]}o(v,"clearImmediate");function p(I){var N=I.callback,B=I.args;switch(B.length){case 0:N();break;case 1:N(B[0]);break;case 2:N(B[0],B[1]);break;case 3:N(B[0],B[1],B[2]);break;default:N.apply(t,B);break}}o(p,"run");function g(I){if(s)setTimeout(g,0,I);else{var N=i[I];if(N){s=!0;try{p(N)}finally{v(I),s=!1}}}}o(g,"runIfPresent");function b(){c=o(function(I){process.nextTick(function(){g(I)})},"registerImmediate")}o(b,"installNextTickImplementation");function x(){if(e.postMessage&&!e.importScripts){var I=!0,N=e.onmessage;return e.onmessage=function(){I=!1},e.postMessage("","*"),e.onmessage=N,I}}o(x,"canUsePostMessage");function S(){var I="setImmediate$"+Math.random()+"$",N=o(function(B){B.source===e&&typeof B.data=="string"&&B.data.indexOf(I)===0&&g(+B.data.slice(I.length))},"onGlobalMessage");e.addEventListener?e.addEventListener("message",N,!1):e.attachEvent("onmessage",N),c=o(function(B){e.postMessage(I+B,"*")},"registerImmediate")}o(S,"installPostMessageImplementation");function L(){var I=new MessageChannel;I.port1.onmessage=function(N){var B=N.data;g(B)},c=o(function(N){I.port2.postMessage(N)},"registerImmediate")}o(L,"installMessageChannelImplementation");function P(){var I=u.documentElement;c=o(function(N){var B=u.createElement("script");B.onreadystatechange=function(){g(N),B.onreadystatechange=null,I.removeChild(B),B=null},I.appendChild(B)},"registerImmediate")}o(P,"installReadyStateChangeImplementation");function U(){c=o(function(I){setTimeout(g,0,I)},"registerImmediate")}o(U,"installSetTimeoutImplementation");var A=Object.getPrototypeOf&&Object.getPrototypeOf(e);A=A&&A.setTimeout?A:e,{}.toString.call(e.process)==="[object process]"?b():x()?S():e.MessageChannel?L():u&&"onreadystatechange"in u.createElement("script")?P():U(),A.setImmediate=f,A.clearImmediate=v})(typeof self>"u"?typeof global>"u"?$0:global:self)});var Fe=O(Ue=>{"use strict";var nn=Br(),b2=dh(),Ei=qa(),bh=Si();j0();function _2(e){var t=null;return nn.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Gs(e,t)}o(_2,"string2binary");Ue.newBlob=function(e,t){Ue.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function ja(e){return e}o(ja,"identity");function Gs(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}o(Gs,"stringToArrayLike");var zs={stringifyByChunk:o(function(e,t,r){var i=[],s=0,u=e.length;if(u<=r)return String.fromCharCode.apply(null,e);for(;s<u;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(s,Math.min(s+r,u)))):i.push(String.fromCharCode.apply(null,e.subarray(s,Math.min(s+r,u)))),s+=r;return i.join("")},"stringifyByChunk"),stringifyByChar:o(function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},"stringifyByChar"),applyCanBeUsed:{uint8array:function(){try{return nn.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return nn.nodebuffer&&String.fromCharCode.apply(null,Ei.allocBuffer(1)).length===1}catch{return!1}}()}};function Za(e){var t=65536,r=Ue.getTypeOf(e),i=!0;if(r==="uint8array"?i=zs.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=zs.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return zs.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return zs.stringifyByChar(e)}o(Za,"arrayLikeToString");Ue.applyFromCharCode=Za;function $s(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}o($s,"arrayLikeToArrayLike");var an={};an.string={string:ja,array:o(function(e){return Gs(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return an.string.uint8array(e).buffer},"arraybuffer"),uint8array:o(function(e){return Gs(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:o(function(e){return Gs(e,Ei.allocBuffer(e.length))},"nodebuffer")};an.array={string:Za,array:ja,arraybuffer:o(function(e){return new Uint8Array(e).buffer},"arraybuffer"),uint8array:o(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:o(function(e){return Ei.newBufferFrom(e)},"nodebuffer")};an.arraybuffer={string:o(function(e){return Za(new Uint8Array(e))},"string"),array:o(function(e){return $s(new Uint8Array(e),new Array(e.byteLength))},"array"),arraybuffer:ja,uint8array:o(function(e){return new Uint8Array(e)},"uint8array"),nodebuffer:o(function(e){return Ei.newBufferFrom(new Uint8Array(e))},"nodebuffer")};an.uint8array={string:Za,array:o(function(e){return $s(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return e.buffer},"arraybuffer"),uint8array:ja,nodebuffer:o(function(e){return Ei.newBufferFrom(e)},"nodebuffer")};an.nodebuffer={string:Za,array:o(function(e){return $s(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return an.nodebuffer.uint8array(e).buffer},"arraybuffer"),uint8array:o(function(e){return $s(e,new Uint8Array(e.length))},"uint8array"),nodebuffer:ja};Ue.transformTo=function(e,t){if(t||(t=""),!e)return t;Ue.checkSupport(e);var r=Ue.getTypeOf(t),i=an[r][e](t);return i};Ue.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var s=t[i];s==="."||s===""&&i!==0&&i!==t.length-1||(s===".."?r.pop():r.push(s))}return r.join("/")};Ue.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(nn.nodebuffer&&Ei.isBuffer(e))return"nodebuffer";if(nn.uint8array&&e instanceof Uint8Array)return"uint8array";if(nn.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};Ue.checkSupport=function(e){var t=nn[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};Ue.MAX_VALUE_16BITS=65535;Ue.MAX_VALUE_32BITS=-1;Ue.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};Ue.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};Ue.inherits=function(e,t){var r=o(function(){},"Obj");r.prototype=t.prototype,e.prototype=new r};Ue.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};Ue.prepareContent=function(e,t,r,i,s){var u=bh.Promise.resolve(t).then(function(c){var f=nn.blob&&(c instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(c))!==-1);return f&&typeof FileReader<"u"?new bh.Promise(function(v,p){var g=new FileReader;g.onload=function(b){v(b.target.result)},g.onerror=function(b){p(b.target.error)},g.readAsArrayBuffer(c)}):c});return u.then(function(c){var f=Ue.getTypeOf(c);return f?(f==="arraybuffer"?c=Ue.transformTo("uint8array",c):f==="string"&&(s?c=b2.decode(c):r&&i!==!0&&(c=_2(c))),c):bh.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var Ct=O((YL,K0)=>{"use strict";function Z0(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o(Z0,"GenericWorker");Z0.prototype={push:o(function(e){this.emit("data",e)},"push"),end:o(function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},"end"),error:o(function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},"error"),on:o(function(e,t){return this._listeners[e].push(t),this},"on"),cleanUp:o(function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},"cleanUp"),emit:o(function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},"emit"),pipe:o(function(e){return e.registerPrevious(this)},"pipe"),registerPrevious:o(function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},"registerPrevious"),pause:o(function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},"pause"),resume:o(function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},"resume"),flush:o(function(){},"flush"),processChunk:o(function(e){this.push(e)},"processChunk"),withStreamInfo:o(function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},"withStreamInfo"),mergeStreamInfo:o(function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},"mergeStreamInfo"),lock:o(function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},"lock"),toString:o(function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e},"toString")};K0.exports=Z0});var Ai=O(on=>{"use strict";var Fi=Fe(),Rn=Br(),C2=qa(),js=Ct(),Ka=new Array(256);for(Ur=0;Ur<256;Ur++)Ka[Ur]=Ur>=252?6:Ur>=248?5:Ur>=240?4:Ur>=224?3:Ur>=192?2:1;var Ur;Ka[254]=Ka[254]=1;var x2=o(function(e){var t,r,i,s,u,c=e.length,f=0;for(s=0;s<c;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<c&&(i=e.charCodeAt(s+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),s++)),f+=r<128?1:r<2048?2:r<65536?3:4;for(Rn.uint8array?t=new Uint8Array(f):t=new Array(f),u=0,s=0;u<f;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<c&&(i=e.charCodeAt(s+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),s++)),r<128?t[u++]=r:r<2048?(t[u++]=192|r>>>6,t[u++]=128|r&63):r<65536?(t[u++]=224|r>>>12,t[u++]=128|r>>>6&63,t[u++]=128|r&63):(t[u++]=240|r>>>18,t[u++]=128|r>>>12&63,t[u++]=128|r>>>6&63,t[u++]=128|r&63);return t},"string2buf"),k2=o(function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Ka[e[r]]>t?r:t},"utf8border"),S2=o(function(e){var t,r,i,s,u=e.length,c=new Array(u*2);for(r=0,t=0;t<u;){if(i=e[t++],i<128){c[r++]=i;continue}if(s=Ka[i],s>4){c[r++]=65533,t+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&t<u;)i=i<<6|e[t++]&63,s--;if(s>1){c[r++]=65533;continue}i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|i&1023)}return c.length!==r&&(c.subarray?c=c.subarray(0,r):c.length=r),Fi.applyFromCharCode(c)},"buf2string");on.utf8encode=o(function(t){return Rn.nodebuffer?C2.newBufferFrom(t,"utf-8"):x2(t)},"utf8encode");on.utf8decode=o(function(t){return Rn.nodebuffer?Fi.transformTo("nodebuffer",t).toString("utf-8"):(t=Fi.transformTo(Rn.uint8array?"uint8array":"array",t),S2(t))},"utf8decode");function Zs(){js.call(this,"utf-8 decode"),this.leftOver=null}o(Zs,"Utf8DecodeWorker");Fi.inherits(Zs,js);Zs.prototype.processChunk=function(e){var t=Fi.transformTo(Rn.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Rn.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=k2(t),s=t;i!==t.length&&(Rn.uint8array?(s=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(s=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:on.utf8decode(s),meta:e.meta})};Zs.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:on.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};on.Utf8DecodeWorker=Zs;function _h(){js.call(this,"utf-8 encode")}o(_h,"Utf8EncodeWorker");Fi.inherits(_h,js);_h.prototype.processChunk=function(e){this.push({data:on.utf8encode(e.data),meta:e.meta})};on.Utf8EncodeWorker=_h});var X0=O((eM,J0)=>{"use strict";var V0=Ct(),Y0=Fe();function Ch(e){V0.call(this,"ConvertWorker to "+e),this.destType=e}o(Ch,"ConvertWorker");Y0.inherits(Ch,V0);Ch.prototype.processChunk=function(e){this.push({data:Y0.transformTo(this.destType,e.data),meta:e.meta})};J0.exports=Ch});var tv=O((rM,ev)=>{"use strict";var Q0=lh().Readable,E2=Fe();E2.inherits(xh,Q0);function xh(e,t,r){Q0.call(this,t),this._helper=e;var i=this;e.on("data",function(s,u){i.push(s)||i._helper.pause(),r&&r(u)}).on("error",function(s){i.emit("error",s)}).on("end",function(){i.push(null)})}o(xh,"NodejsStreamOutputAdapter");xh.prototype._read=function(){this._helper.resume()};ev.exports=xh});var kh=O((iM,iv)=>{"use strict";var In=Fe(),F2=X0(),A2=Ct(),T2=dh(),R2=Br(),I2=Si(),rv=null;if(R2.nodestream)try{rv=tv()}catch{}function P2(e,t,r){switch(e){case"blob":return In.newBlob(In.transformTo("arraybuffer",t),r);case"base64":return T2.encode(t);default:return In.transformTo(e,t)}}o(P2,"transformZipOutput");function L2(e,t){var r,i=0,s=null,u=0;for(r=0;r<t.length;r++)u+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(s=new Uint8Array(u),r=0;r<t.length;r++)s.set(t[r],i),i+=t[r].length;return s;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}o(L2,"concat");function M2(e,t){return new I2.Promise(function(r,i){var s=[],u=e._internalType,c=e._outputType,f=e._mimeType;e.on("data",function(v,p){s.push(v),t&&t(p)}).on("error",function(v){s=[],i(v)}).on("end",function(){try{var v=P2(c,L2(u,s),f);r(v)}catch(p){i(p)}s=[]}).resume()})}o(M2,"accumulate");function nv(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,In.checkSupport(i),this._worker=e.pipe(new F2(i)),e.lock()}catch(s){this._worker=new A2("error"),this._worker.error(s)}}o(nv,"StreamHelper");nv.prototype={accumulate:o(function(e){return M2(this,e)},"accumulate"),on:o(function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){In.delay(t,arguments,r)}),this},"on"),resume:o(function(){return In.delay(this._worker.resume,[],this._worker),this},"resume"),pause:o(function(){return this._worker.pause(),this},"pause"),toNodejsStream:o(function(e){if(In.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new rv(this,{objectMode:this._outputType!=="nodebuffer"},e)},"toNodejsStream")};iv.exports=nv});var Sh=O(Jt=>{"use strict";Jt.base64=!1;Jt.binary=!1;Jt.dir=!1;Jt.createFolders=!0;Jt.date=null;Jt.compression=null;Jt.compressionOptions=null;Jt.comment=null;Jt.unixPermissions=null;Jt.dosPermissions=null});var Eh=O((sM,av)=>{"use strict";var Ks=Fe(),Vs=Ct(),O2=16*1024;function Ti(e){Vs.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=Ks.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}o(Ti,"DataWorker");Ks.inherits(Ti,Vs);Ti.prototype.cleanUp=function(){Vs.prototype.cleanUp.call(this),this.data=null};Ti.prototype.resume=function(){return Vs.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Ks.delay(this._tickAndRepeat,[],this)),!0):!1};Ti.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Ks.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};Ti.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=O2,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};av.exports=Ti});var Ys=O((lM,sv)=>{"use strict";var B2=Fe();function U2(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}o(U2,"makeTable");var ov=U2();function N2(e,t,r,i){var s=ov,u=i+r;e=e^-1;for(var c=i;c<u;c++)e=e>>>8^s[(e^t[c])&255];return e^-1}o(N2,"crc32");function W2(e,t,r,i){var s=ov,u=i+r;e=e^-1;for(var c=i;c<u;c++)e=e>>>8^s[(e^t.charCodeAt(c))&255];return e^-1}o(W2,"crc32str");sv.exports=o(function(t,r){if(typeof t>"u"||!t.length)return 0;var i=B2.getTypeOf(t)!=="string";return i?N2(r|0,t,t.length,0):W2(r|0,t,t.length,0)},"crc32wrapper")});var Ah=O((hM,lv)=>{"use strict";var uv=Ct(),q2=Ys(),H2=Fe();function Fh(){uv.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}o(Fh,"Crc32Probe");H2.inherits(Fh,uv);Fh.prototype.processChunk=function(e){this.streamInfo.crc32=q2(e.data,this.streamInfo.crc32||0),this.push(e)};lv.exports=Fh});var hv=O((dM,cv)=>{"use strict";var z2=Fe(),Th=Ct();function Rh(e){Th.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}o(Rh,"DataLengthProbe");z2.inherits(Rh,Th);Rh.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Th.prototype.processChunk.call(this,e)};cv.exports=Rh});var Js=O((gM,pv)=>{"use strict";var fv=Si(),dv=Eh(),G2=Ah(),Ih=hv();function Ph(e,t,r,i,s){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=s}o(Ph,"CompressedObject");Ph.prototype={getContentWorker:o(function(){var e=new dv(fv.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ih("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},"getContentWorker"),getCompressedWorker:o(function(){return new dv(fv.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},"getCompressedWorker")};Ph.createWorkerFrom=function(e,t,r){return e.pipe(new G2).pipe(new Ih("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Ih("compressedSize")).withStreamInfo("compression",t)};pv.exports=Ph});var Dv=O((vM,vv)=>{"use strict";var $2=kh(),j2=Eh(),Lh=Ai(),Mh=Js(),gv=Ct(),Oh=o(function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}},"ZipObject");Oh.prototype={internalStream:o(function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var s=!this._dataBinary;s&&!i&&(t=t.pipe(new Lh.Utf8EncodeWorker)),!s&&i&&(t=t.pipe(new Lh.Utf8DecodeWorker))}catch(u){t=new gv("error"),t.error(u)}return new $2(t,r,"")},"internalStream"),async:o(function(e,t){return this.internalStream(e).accumulate(t)},"async"),nodeStream:o(function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},"nodeStream"),_compressWorker:o(function(e,t){if(this._data instanceof Mh&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Lh.Utf8EncodeWorker)),Mh.createWorkerFrom(r,e,t)},"_compressWorker"),_decompressWorker:o(function(){return this._data instanceof Mh?this._data.getContentWorker():this._data instanceof gv?this._data:new j2(this._data)},"_decompressWorker")};var mv=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Z2=o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"removedFn");for(Xs=0;Xs<mv.length;Xs++)Oh.prototype[mv[Xs]]=Z2;var Xs;vv.exports=Oh});var Nr=O(at=>{"use strict";var K2=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function V2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}o(V2,"_has");at.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)V2(r,i)&&(e[i]=r[i])}}return e};at.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var Y2={arraySet:o(function(e,t,r,i,s){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),s);return}for(var u=0;u<i;u++)e[s+u]=t[r+u]},"arraySet"),flattenChunks:o(function(e){var t,r,i,s,u,c;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(c=new Uint8Array(i),s=0,t=0,r=e.length;t<r;t++)u=e[t],c.set(u,s),s+=u.length;return c},"flattenChunks")},J2={arraySet:o(function(e,t,r,i,s){for(var u=0;u<i;u++)e[s+u]=t[r+u]},"arraySet"),flattenChunks:o(function(e){return[].concat.apply([],e)},"flattenChunks")};at.setTyped=function(e){e?(at.Buf8=Uint8Array,at.Buf16=Uint16Array,at.Buf32=Int32Array,at.assign(at,Y2)):(at.Buf8=Array,at.Buf16=Array,at.Buf32=Array,at.assign(at,J2))};at.setTyped(K2)});var qv=O(Pi=>{"use strict";var X2=Nr(),Q2=4,wv=0,yv=1,eT=2;function Ii(e){for(var t=e.length;--t>=0;)e[t]=0}o(Ii,"zero");var tT=0,Sv=1,rT=2,nT=3,iT=258,zh=29,eo=256,Ya=eo+1+zh,Ri=30,Gh=19,Ev=2*Ya+1,Pn=15,Bh=16,aT=7,$h=256,Fv=16,Av=17,Tv=18,qh=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Qs=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],oT=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rv=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],sT=512,Wr=new Array((Ya+2)*2);Ii(Wr);var Va=new Array(Ri*2);Ii(Va);var Ja=new Array(sT);Ii(Ja);var Xa=new Array(iT-nT+1);Ii(Xa);var jh=new Array(zh);Ii(jh);var eu=new Array(Ri);Ii(eu);function Uh(e,t,r,i,s){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=s,this.has_stree=e&&e.length}o(Uh,"StaticTreeDesc");var Iv,Pv,Lv;function Nh(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}o(Nh,"TreeDesc");function Mv(e){return e<256?Ja[e]:Ja[256+(e>>>7)]}o(Mv,"d_code");function Qa(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}o(Qa,"put_short");function dt(e,t,r){e.bi_valid>Bh-r?(e.bi_buf|=t<<e.bi_valid&65535,Qa(e,e.bi_buf),e.bi_buf=t>>Bh-e.bi_valid,e.bi_valid+=r-Bh):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}o(dt,"send_bits");function pr(e,t,r){dt(e,r[t*2],r[t*2+1])}o(pr,"send_code");function Ov(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}o(Ov,"bi_reverse");function uT(e){e.bi_valid===16?(Qa(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}o(uT,"bi_flush");function lT(e,t){var r=t.dyn_tree,i=t.max_code,s=t.stat_desc.static_tree,u=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,v=t.stat_desc.max_length,p,g,b,x,S,L,P=0;for(x=0;x<=Pn;x++)e.bl_count[x]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<Ev;p++)g=e.heap[p],x=r[r[g*2+1]*2+1]+1,x>v&&(x=v,P++),r[g*2+1]=x,!(g>i)&&(e.bl_count[x]++,S=0,g>=f&&(S=c[g-f]),L=r[g*2],e.opt_len+=L*(x+S),u&&(e.static_len+=L*(s[g*2+1]+S)));if(P!==0){do{for(x=v-1;e.bl_count[x]===0;)x--;e.bl_count[x]--,e.bl_count[x+1]+=2,e.bl_count[v]--,P-=2}while(P>0);for(x=v;x!==0;x--)for(g=e.bl_count[x];g!==0;)b=e.heap[--p],!(b>i)&&(r[b*2+1]!==x&&(e.opt_len+=(x-r[b*2+1])*r[b*2],r[b*2+1]=x),g--)}}o(lT,"gen_bitlen");function Bv(e,t,r){var i=new Array(Pn+1),s=0,u,c;for(u=1;u<=Pn;u++)i[u]=s=s+r[u-1]<<1;for(c=0;c<=t;c++){var f=e[c*2+1];f!==0&&(e[c*2]=Ov(i[f]++,f))}}o(Bv,"gen_codes");function cT(){var e,t,r,i,s,u=new Array(Pn+1);for(r=0,i=0;i<zh-1;i++)for(jh[i]=r,e=0;e<1<<qh[i];e++)Xa[r++]=i;for(Xa[r-1]=i,s=0,i=0;i<16;i++)for(eu[i]=s,e=0;e<1<<Qs[i];e++)Ja[s++]=i;for(s>>=7;i<Ri;i++)for(eu[i]=s<<7,e=0;e<1<<Qs[i]-7;e++)Ja[256+s++]=i;for(t=0;t<=Pn;t++)u[t]=0;for(e=0;e<=143;)Wr[e*2+1]=8,e++,u[8]++;for(;e<=255;)Wr[e*2+1]=9,e++,u[9]++;for(;e<=279;)Wr[e*2+1]=7,e++,u[7]++;for(;e<=287;)Wr[e*2+1]=8,e++,u[8]++;for(Bv(Wr,Ya+1,u),e=0;e<Ri;e++)Va[e*2+1]=5,Va[e*2]=Ov(e,5);Iv=new Uh(Wr,qh,eo+1,Ya,Pn),Pv=new Uh(Va,Qs,0,Ri,Pn),Lv=new Uh(new Array(0),oT,0,Gh,aT)}o(cT,"tr_static_init");function Uv(e){var t;for(t=0;t<Ya;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ri;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Gh;t++)e.bl_tree[t*2]=0;e.dyn_ltree[$h*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}o(Uv,"init_block");function Nv(e){e.bi_valid>8?Qa(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}o(Nv,"bi_windup");function hT(e,t,r,i){Nv(e),i&&(Qa(e,r),Qa(e,~r)),X2.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}o(hT,"copy_block");function bv(e,t,r,i){var s=t*2,u=r*2;return e[s]<e[u]||e[s]===e[u]&&i[t]<=i[r]}o(bv,"smaller");function Wh(e,t,r){for(var i=e.heap[r],s=r<<1;s<=e.heap_len&&(s<e.heap_len&&bv(t,e.heap[s+1],e.heap[s],e.depth)&&s++,!bv(t,i,e.heap[s],e.depth));)e.heap[r]=e.heap[s],r=s,s<<=1;e.heap[r]=i}o(Wh,"pqdownheap");function _v(e,t,r){var i,s,u=0,c,f;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+u*2]<<8|e.pending_buf[e.d_buf+u*2+1],s=e.pending_buf[e.l_buf+u],u++,i===0?pr(e,s,t):(c=Xa[s],pr(e,c+eo+1,t),f=qh[c],f!==0&&(s-=jh[c],dt(e,s,f)),i--,c=Mv(i),pr(e,c,r),f=Qs[c],f!==0&&(i-=eu[c],dt(e,i,f)));while(u<e.last_lit);pr(e,$h,t)}o(_v,"compress_block");function Hh(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,c,f,v=-1,p;for(e.heap_len=0,e.heap_max=Ev,c=0;c<u;c++)r[c*2]!==0?(e.heap[++e.heap_len]=v=c,e.depth[c]=0):r[c*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=v<2?++v:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,s&&(e.static_len-=i[p*2+1]);for(t.max_code=v,c=e.heap_len>>1;c>=1;c--)Wh(e,r,c);p=u;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Wh(e,r,1),f=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=f,r[p*2]=r[c*2]+r[f*2],e.depth[p]=(e.depth[c]>=e.depth[f]?e.depth[c]:e.depth[f])+1,r[c*2+1]=r[f*2+1]=p,e.heap[1]=p++,Wh(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],lT(e,t),Bv(r,v,e.bl_count)}o(Hh,"build_tree");function Cv(e,t,r){var i,s=-1,u,c=t[0*2+1],f=0,v=7,p=4;for(c===0&&(v=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)u=c,c=t[(i+1)*2+1],!(++f<v&&u===c)&&(f<p?e.bl_tree[u*2]+=f:u!==0?(u!==s&&e.bl_tree[u*2]++,e.bl_tree[Fv*2]++):f<=10?e.bl_tree[Av*2]++:e.bl_tree[Tv*2]++,f=0,s=u,c===0?(v=138,p=3):u===c?(v=6,p=3):(v=7,p=4))}o(Cv,"scan_tree");function xv(e,t,r){var i,s=-1,u,c=t[0*2+1],f=0,v=7,p=4;for(c===0&&(v=138,p=3),i=0;i<=r;i++)if(u=c,c=t[(i+1)*2+1],!(++f<v&&u===c)){if(f<p)do pr(e,u,e.bl_tree);while(--f!==0);else u!==0?(u!==s&&(pr(e,u,e.bl_tree),f--),pr(e,Fv,e.bl_tree),dt(e,f-3,2)):f<=10?(pr(e,Av,e.bl_tree),dt(e,f-3,3)):(pr(e,Tv,e.bl_tree),dt(e,f-11,7));f=0,s=u,c===0?(v=138,p=3):u===c?(v=6,p=3):(v=7,p=4)}}o(xv,"send_tree");function fT(e){var t;for(Cv(e,e.dyn_ltree,e.l_desc.max_code),Cv(e,e.dyn_dtree,e.d_desc.max_code),Hh(e,e.bl_desc),t=Gh-1;t>=3&&e.bl_tree[Rv[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}o(fT,"build_bl_tree");function dT(e,t,r,i){var s;for(dt(e,t-257,5),dt(e,r-1,5),dt(e,i-4,4),s=0;s<i;s++)dt(e,e.bl_tree[Rv[s]*2+1],3);xv(e,e.dyn_ltree,t-1),xv(e,e.dyn_dtree,r-1)}o(dT,"send_all_trees");function pT(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return wv;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return yv;for(r=32;r<eo;r++)if(e.dyn_ltree[r*2]!==0)return yv;return wv}o(pT,"detect_data_type");var kv=!1;function gT(e){kv||(cT(),kv=!0),e.l_desc=new Nh(e.dyn_ltree,Iv),e.d_desc=new Nh(e.dyn_dtree,Pv),e.bl_desc=new Nh(e.bl_tree,Lv),e.bi_buf=0,e.bi_valid=0,Uv(e)}o(gT,"_tr_init");function Wv(e,t,r,i){dt(e,(tT<<1)+(i?1:0),3),hT(e,t,r,!0)}o(Wv,"_tr_stored_block");function mT(e){dt(e,Sv<<1,3),pr(e,$h,Wr),uT(e)}o(mT,"_tr_align");function vT(e,t,r,i){var s,u,c=0;e.level>0?(e.strm.data_type===eT&&(e.strm.data_type=pT(e)),Hh(e,e.l_desc),Hh(e,e.d_desc),c=fT(e),s=e.opt_len+3+7>>>3,u=e.static_len+3+7>>>3,u<=s&&(s=u)):s=u=r+5,r+4<=s&&t!==-1?Wv(e,t,r,i):e.strategy===Q2||u===s?(dt(e,(Sv<<1)+(i?1:0),3),_v(e,Wr,Va)):(dt(e,(rT<<1)+(i?1:0),3),dT(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),_v(e,e.dyn_ltree,e.dyn_dtree)),Uv(e),i&&Nv(e)}o(vT,"_tr_flush_block");function DT(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Xa[r]+eo+1)*2]++,e.dyn_dtree[Mv(t)*2]++),e.last_lit===e.lit_bufsize-1}o(DT,"_tr_tally");Pi._tr_init=gT;Pi._tr_stored_block=Wv;Pi._tr_flush_block=vT;Pi._tr_tally=DT;Pi._tr_align=mT});var Zh=O((CM,Hv)=>{"use strict";function wT(e,t,r,i){for(var s=e&65535|0,u=e>>>16&65535|0,c=0;r!==0;){c=r>2e3?2e3:r,r-=c;do s=s+t[i++]|0,u=u+s|0;while(--c);s%=65521,u%=65521}return s|u<<16|0}o(wT,"adler32");Hv.exports=wT});var Kh=O((kM,zv)=>{"use strict";function yT(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}o(yT,"makeTable");var bT=yT();function _T(e,t,r,i){var s=bT,u=i+r;e^=-1;for(var c=i;c<u;c++)e=e>>>8^s[(e^t[c])&255];return e^-1}o(_T,"crc32");zv.exports=_T});var tu=O((EM,Gv)=>{"use strict";Gv.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var Qv=O(vr=>{"use strict";var ot=Nr(),Ot=qv(),Kv=Zh(),sn=Kh(),CT=tu(),Bn=0,xT=1,kT=3,fn=4,$v=5,mr=0,jv=1,Bt=-2,ST=-3,Vh=-5,ET=-1,FT=1,ru=2,AT=3,TT=4,RT=0,IT=2,ou=8,PT=9,LT=15,MT=8,OT=29,BT=256,Jh=BT+1+OT,UT=30,NT=19,WT=2*Jh+1,qT=15,le=3,cn=258,Xt=cn+le+1,HT=32,su=42,Xh=69,nu=73,iu=91,au=103,Ln=113,ro=666,qe=1,no=2,Mn=3,Oi=4,zT=3;function hn(e,t){return e.msg=CT[t],t}o(hn,"err");function Zv(e){return(e<<1)-(e>4?9:0)}o(Zv,"rank");function ln(e){for(var t=e.length;--t>=0;)e[t]=0}o(ln,"zero");function un(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(ot.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}o(un,"flush_pending");function Ve(e,t){Ot._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,un(e.strm)}o(Ve,"flush_block_only");function he(e,t){e.pending_buf[e.pending++]=t}o(he,"put_byte");function to(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}o(to,"putShortMSB");function GT(e,t,r,i){var s=e.avail_in;return s>i&&(s=i),s===0?0:(e.avail_in-=s,ot.arraySet(t,e.input,e.next_in,s,r),e.state.wrap===1?e.adler=Kv(e.adler,t,s,r):e.state.wrap===2&&(e.adler=sn(e.adler,t,s,r)),e.next_in+=s,e.total_in+=s,s)}o(GT,"read_buf");function Vv(e,t){var r=e.max_chain_length,i=e.strstart,s,u,c=e.prev_length,f=e.nice_match,v=e.strstart>e.w_size-Xt?e.strstart-(e.w_size-Xt):0,p=e.window,g=e.w_mask,b=e.prev,x=e.strstart+cn,S=p[i+c-1],L=p[i+c];e.prev_length>=e.good_match&&(r>>=2),f>e.lookahead&&(f=e.lookahead);do if(s=t,!(p[s+c]!==L||p[s+c-1]!==S||p[s]!==p[i]||p[++s]!==p[i+1])){i+=2,s++;do;while(p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&p[++i]===p[++s]&&i<x);if(u=cn-(x-i),i=x-cn,u>c){if(e.match_start=t,c=u,u>=f)break;S=p[i+c-1],L=p[i+c]}}while((t=b[t&g])>v&&--r!==0);return c<=e.lookahead?c:e.lookahead}o(Vv,"longest_match");function On(e){var t=e.w_size,r,i,s,u,c;do{if(u=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Xt)){ot.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do s=e.head[--r],e.head[r]=s>=t?s-t:0;while(--i);i=t,r=i;do s=e.prev[--r],e.prev[r]=s>=t?s-t:0;while(--i);u+=t}if(e.strm.avail_in===0)break;if(i=GT(e.strm,e.window,e.strstart+e.lookahead,u),e.lookahead+=i,e.lookahead+e.insert>=le)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+le-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<le)););}while(e.lookahead<Xt&&e.strm.avail_in!==0)}o(On,"fill_window");function $T(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(On(e),e.lookahead===0&&t===Bn)return qe;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Ve(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Xt&&(Ve(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===fn?(Ve(e,!0),e.strm.avail_out===0?Mn:Oi):(e.strstart>e.block_start&&(Ve(e,!1),e.strm.avail_out===0),qe)}o($T,"deflate_stored");function Yh(e,t){for(var r,i;;){if(e.lookahead<Xt){if(On(e),e.lookahead<Xt&&t===Bn)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=le&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Xt&&(e.match_length=Vv(e,r)),e.match_length>=le)if(i=Ot._tr_tally(e,e.strstart-e.match_start,e.match_length-le),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=le){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ve(e,!1),e.strm.avail_out===0))return qe}return e.insert=e.strstart<le-1?e.strstart:le-1,t===fn?(Ve(e,!0),e.strm.avail_out===0?Mn:Oi):e.last_lit&&(Ve(e,!1),e.strm.avail_out===0)?qe:no}o(Yh,"deflate_fast");function Li(e,t){for(var r,i,s;;){if(e.lookahead<Xt){if(On(e),e.lookahead<Xt&&t===Bn)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=le&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=le-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Xt&&(e.match_length=Vv(e,r),e.match_length<=5&&(e.strategy===FT||e.match_length===le&&e.strstart-e.match_start>4096)&&(e.match_length=le-1)),e.prev_length>=le&&e.match_length<=e.prev_length){s=e.strstart+e.lookahead-le,i=Ot._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-le),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=s&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+le-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=le-1,e.strstart++,i&&(Ve(e,!1),e.strm.avail_out===0))return qe}else if(e.match_available){if(i=Ot._tr_tally(e,0,e.window[e.strstart-1]),i&&Ve(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return qe}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=Ot._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<le-1?e.strstart:le-1,t===fn?(Ve(e,!0),e.strm.avail_out===0?Mn:Oi):e.last_lit&&(Ve(e,!1),e.strm.avail_out===0)?qe:no}o(Li,"deflate_slow");function jT(e,t){for(var r,i,s,u,c=e.window;;){if(e.lookahead<=cn){if(On(e),e.lookahead<=cn&&t===Bn)return qe;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=le&&e.strstart>0&&(s=e.strstart-1,i=c[s],i===c[++s]&&i===c[++s]&&i===c[++s])){u=e.strstart+cn;do;while(i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&i===c[++s]&&s<u);e.match_length=cn-(u-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=le?(r=Ot._tr_tally(e,1,e.match_length-le),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Ve(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===fn?(Ve(e,!0),e.strm.avail_out===0?Mn:Oi):e.last_lit&&(Ve(e,!1),e.strm.avail_out===0)?qe:no}o(jT,"deflate_rle");function ZT(e,t){for(var r;;){if(e.lookahead===0&&(On(e),e.lookahead===0)){if(t===Bn)return qe;break}if(e.match_length=0,r=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Ve(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===fn?(Ve(e,!0),e.strm.avail_out===0?Mn:Oi):e.last_lit&&(Ve(e,!1),e.strm.avail_out===0)?qe:no}o(ZT,"deflate_huff");function gr(e,t,r,i,s){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=s}o(gr,"Config");var Mi;Mi=[new gr(0,0,0,0,$T),new gr(4,4,8,4,Yh),new gr(4,5,16,8,Yh),new gr(4,6,32,32,Yh),new gr(4,4,16,16,Li),new gr(8,16,32,32,Li),new gr(8,16,128,128,Li),new gr(8,32,128,256,Li),new gr(32,128,258,1024,Li),new gr(32,258,258,4096,Li)];function KT(e){e.window_size=2*e.w_size,ln(e.head),e.max_lazy_match=Mi[e.level].max_lazy,e.good_match=Mi[e.level].good_length,e.nice_match=Mi[e.level].nice_length,e.max_chain_length=Mi[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=le-1,e.match_available=0,e.ins_h=0}o(KT,"lm_init");function VT(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ou,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ot.Buf16(WT*2),this.dyn_dtree=new ot.Buf16((2*UT+1)*2),this.bl_tree=new ot.Buf16((2*NT+1)*2),ln(this.dyn_ltree),ln(this.dyn_dtree),ln(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ot.Buf16(qT+1),this.heap=new ot.Buf16(2*Jh+1),ln(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ot.Buf16(2*Jh+1),ln(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}o(VT,"DeflateState");function Yv(e){var t;return!e||!e.state?hn(e,Bt):(e.total_in=e.total_out=0,e.data_type=IT,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?su:Ln,e.adler=t.wrap===2?0:1,t.last_flush=Bn,Ot._tr_init(t),mr)}o(Yv,"deflateResetKeep");function Jv(e){var t=Yv(e);return t===mr&&KT(e.state),t}o(Jv,"deflateReset");function YT(e,t){return!e||!e.state||e.state.wrap!==2?Bt:(e.state.gzhead=t,mr)}o(YT,"deflateSetHeader");function Xv(e,t,r,i,s,u){if(!e)return Bt;var c=1;if(t===ET&&(t=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),s<1||s>PT||r!==ou||i<8||i>15||t<0||t>9||u<0||u>TT)return hn(e,Bt);i===8&&(i=9);var f=new VT;return e.state=f,f.strm=e,f.wrap=c,f.gzhead=null,f.w_bits=i,f.w_size=1<<f.w_bits,f.w_mask=f.w_size-1,f.hash_bits=s+7,f.hash_size=1<<f.hash_bits,f.hash_mask=f.hash_size-1,f.hash_shift=~~((f.hash_bits+le-1)/le),f.window=new ot.Buf8(f.w_size*2),f.head=new ot.Buf16(f.hash_size),f.prev=new ot.Buf16(f.w_size),f.lit_bufsize=1<<s+6,f.pending_buf_size=f.lit_bufsize*4,f.pending_buf=new ot.Buf8(f.pending_buf_size),f.d_buf=1*f.lit_bufsize,f.l_buf=3*f.lit_bufsize,f.level=t,f.strategy=u,f.method=r,Jv(e)}o(Xv,"deflateInit2");function JT(e,t){return Xv(e,t,ou,LT,MT,RT)}o(JT,"deflateInit");function XT(e,t){var r,i,s,u;if(!e||!e.state||t>$v||t<0)return e?hn(e,Bt):Bt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ro&&t!==fn)return hn(e,e.avail_out===0?Vh:Bt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===su)if(i.wrap===2)e.adler=0,he(i,31),he(i,139),he(i,8),i.gzhead?(he(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),he(i,i.gzhead.time&255),he(i,i.gzhead.time>>8&255),he(i,i.gzhead.time>>16&255),he(i,i.gzhead.time>>24&255),he(i,i.level===9?2:i.strategy>=ru||i.level<2?4:0),he(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(he(i,i.gzhead.extra.length&255),he(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=sn(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Xh):(he(i,0),he(i,0),he(i,0),he(i,0),he(i,0),he(i,i.level===9?2:i.strategy>=ru||i.level<2?4:0),he(i,zT),i.status=Ln);else{var c=ou+(i.w_bits-8<<4)<<8,f=-1;i.strategy>=ru||i.level<2?f=0:i.level<6?f=1:i.level===6?f=2:f=3,c|=f<<6,i.strstart!==0&&(c|=HT),c+=31-c%31,i.status=Ln,to(i,c),i.strstart!==0&&(to(i,e.adler>>>16),to(i,e.adler&65535)),e.adler=1}if(i.status===Xh)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),un(e),s=i.pending,i.pending===i.pending_buf_size));)he(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=nu)}else i.status=nu;if(i.status===nu)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),un(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.name.length?u=i.gzhead.name.charCodeAt(i.gzindex++)&255:u=0,he(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),u===0&&(i.gzindex=0,i.status=iu)}else i.status=iu;if(i.status===iu)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),un(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}i.gzindex<i.gzhead.comment.length?u=i.gzhead.comment.charCodeAt(i.gzindex++)&255:u=0,he(i,u)}while(u!==0);i.gzhead.hcrc&&i.pending>s&&(e.adler=sn(e.adler,i.pending_buf,i.pending-s,s)),u===0&&(i.status=au)}else i.status=au;if(i.status===au&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&un(e),i.pending+2<=i.pending_buf_size&&(he(i,e.adler&255),he(i,e.adler>>8&255),e.adler=0,i.status=Ln)):i.status=Ln),i.pending!==0){if(un(e),e.avail_out===0)return i.last_flush=-1,mr}else if(e.avail_in===0&&Zv(t)<=Zv(r)&&t!==fn)return hn(e,Vh);if(i.status===ro&&e.avail_in!==0)return hn(e,Vh);if(e.avail_in!==0||i.lookahead!==0||t!==Bn&&i.status!==ro){var v=i.strategy===ru?ZT(i,t):i.strategy===AT?jT(i,t):Mi[i.level].func(i,t);if((v===Mn||v===Oi)&&(i.status=ro),v===qe||v===Mn)return e.avail_out===0&&(i.last_flush=-1),mr;if(v===no&&(t===xT?Ot._tr_align(i):t!==$v&&(Ot._tr_stored_block(i,0,0,!1),t===kT&&(ln(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),un(e),e.avail_out===0))return i.last_flush=-1,mr}return t!==fn?mr:i.wrap<=0?jv:(i.wrap===2?(he(i,e.adler&255),he(i,e.adler>>8&255),he(i,e.adler>>16&255),he(i,e.adler>>24&255),he(i,e.total_in&255),he(i,e.total_in>>8&255),he(i,e.total_in>>16&255),he(i,e.total_in>>24&255)):(to(i,e.adler>>>16),to(i,e.adler&65535)),un(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?mr:jv)}o(XT,"deflate");function QT(e){var t;return!e||!e.state?Bt:(t=e.state.status,t!==su&&t!==Xh&&t!==nu&&t!==iu&&t!==au&&t!==Ln&&t!==ro?hn(e,Bt):(e.state=null,t===Ln?hn(e,ST):mr))}o(QT,"deflateEnd");function eR(e,t){var r=t.length,i,s,u,c,f,v,p,g;if(!e||!e.state||(i=e.state,c=i.wrap,c===2||c===1&&i.status!==su||i.lookahead))return Bt;for(c===1&&(e.adler=Kv(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(c===0&&(ln(i.head),i.strstart=0,i.block_start=0,i.insert=0),g=new ot.Buf8(i.w_size),ot.arraySet(g,t,r-i.w_size,i.w_size,0),t=g,r=i.w_size),f=e.avail_in,v=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,On(i);i.lookahead>=le;){s=i.strstart,u=i.lookahead-(le-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[s+le-1])&i.hash_mask,i.prev[s&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=s,s++;while(--u);i.strstart=s,i.lookahead=le-1,On(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=le-1,i.match_available=0,e.next_in=v,e.input=p,e.avail_in=f,i.wrap=c,mr}o(eR,"deflateSetDictionary");vr.deflateInit=JT;vr.deflateInit2=Xv;vr.deflateReset=Jv;vr.deflateResetKeep=Yv;vr.deflateSetHeader=YT;vr.deflate=XT;vr.deflateEnd=QT;vr.deflateSetDictionary=eR;vr.deflateInfo="pako deflate (from Nodeca project)"});var Qh=O(Bi=>{"use strict";var uu=Nr(),eD=!0,tD=!0;try{String.fromCharCode.apply(null,[0])}catch{eD=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{tD=!1}var io=new uu.Buf8(256);for(qr=0;qr<256;qr++)io[qr]=qr>=252?6:qr>=248?5:qr>=240?4:qr>=224?3:qr>=192?2:1;var qr;io[254]=io[254]=1;Bi.string2buf=function(e){var t,r,i,s,u,c=e.length,f=0;for(s=0;s<c;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<c&&(i=e.charCodeAt(s+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),s++)),f+=r<128?1:r<2048?2:r<65536?3:4;for(t=new uu.Buf8(f),u=0,s=0;u<f;s++)r=e.charCodeAt(s),(r&64512)===55296&&s+1<c&&(i=e.charCodeAt(s+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),s++)),r<128?t[u++]=r:r<2048?(t[u++]=192|r>>>6,t[u++]=128|r&63):r<65536?(t[u++]=224|r>>>12,t[u++]=128|r>>>6&63,t[u++]=128|r&63):(t[u++]=240|r>>>18,t[u++]=128|r>>>12&63,t[u++]=128|r>>>6&63,t[u++]=128|r&63);return t};function rD(e,t){if(t<65534&&(e.subarray&&tD||!e.subarray&&eD))return String.fromCharCode.apply(null,uu.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}o(rD,"buf2binstring");Bi.buf2binstring=function(e){return rD(e,e.length)};Bi.binstring2buf=function(e){for(var t=new uu.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Bi.buf2string=function(e,t){var r,i,s,u,c=t||e.length,f=new Array(c*2);for(i=0,r=0;r<c;){if(s=e[r++],s<128){f[i++]=s;continue}if(u=io[s],u>4){f[i++]=65533,r+=u-1;continue}for(s&=u===2?31:u===3?15:7;u>1&&r<c;)s=s<<6|e[r++]&63,u--;if(u>1){f[i++]=65533;continue}s<65536?f[i++]=s:(s-=65536,f[i++]=55296|s>>10&1023,f[i++]=56320|s&1023)}return rD(f,i)};Bi.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+io[e[r]]>t?r:t}});var ef=O((IM,nD)=>{"use strict";function tR(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}o(tR,"ZStream");nD.exports=tR});var sD=O(so=>{"use strict";var ao=Qv(),oo=Nr(),rf=Qh(),nf=tu(),rR=ef(),oD=Object.prototype.toString,nR=0,tf=4,Ui=0,iD=1,aD=2,iR=-1,aR=0,oR=8;function Un(e){if(!(this instanceof Un))return new Un(e);this.options=oo.assign({level:iR,method:oR,chunkSize:16384,windowBits:15,memLevel:8,strategy:aR,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new rR,this.strm.avail_out=0;var r=ao.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Ui)throw new Error(nf[r]);if(t.header&&ao.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=rf.string2buf(t.dictionary):oD.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=ao.deflateSetDictionary(this.strm,i),r!==Ui)throw new Error(nf[r]);this._dict_set=!0}}o(Un,"Deflate");Un.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,s,u;if(this.ended)return!1;u=t===~~t?t:t===!0?tf:nR,typeof e=="string"?r.input=rf.string2buf(e):oD.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new oo.Buf8(i),r.next_out=0,r.avail_out=i),s=ao.deflate(r,u),s!==iD&&s!==Ui)return this.onEnd(s),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(u===tf||u===aD))&&(this.options.to==="string"?this.onData(rf.buf2binstring(oo.shrinkBuf(r.output,r.next_out))):this.onData(oo.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&s!==iD);return u===tf?(s=ao.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Ui):(u===aD&&(this.onEnd(Ui),r.avail_out=0),!0)};Un.prototype.onData=function(e){this.chunks.push(e)};Un.prototype.onEnd=function(e){e===Ui&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=oo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function af(e,t){var r=new Un(t);if(r.push(e,!0),r.err)throw r.msg||nf[r.err];return r.result}o(af,"deflate");function sR(e,t){return t=t||{},t.raw=!0,af(e,t)}o(sR,"deflateRaw");function uR(e,t){return t=t||{},t.gzip=!0,af(e,t)}o(uR,"gzip");so.Deflate=Un;so.deflate=af;so.deflateRaw=sR;so.gzip=uR});var lD=O((OM,uD)=>{"use strict";var lu=30,lR=12;uD.exports=o(function(t,r){var i,s,u,c,f,v,p,g,b,x,S,L,P,U,A,I,N,B,F,q,G,z,J,fe,Z;i=t.state,s=t.next_in,fe=t.input,u=s+(t.avail_in-5),c=t.next_out,Z=t.output,f=c-(r-t.avail_out),v=c+(t.avail_out-257),p=i.dmax,g=i.wsize,b=i.whave,x=i.wnext,S=i.window,L=i.hold,P=i.bits,U=i.lencode,A=i.distcode,I=(1<<i.lenbits)-1,N=(1<<i.distbits)-1;e:do{P<15&&(L+=fe[s++]<<P,P+=8,L+=fe[s++]<<P,P+=8),B=U[L&I];t:for(;;){if(F=B>>>24,L>>>=F,P-=F,F=B>>>16&255,F===0)Z[c++]=B&65535;else if(F&16){q=B&65535,F&=15,F&&(P<F&&(L+=fe[s++]<<P,P+=8),q+=L&(1<<F)-1,L>>>=F,P-=F),P<15&&(L+=fe[s++]<<P,P+=8,L+=fe[s++]<<P,P+=8),B=A[L&N];r:for(;;){if(F=B>>>24,L>>>=F,P-=F,F=B>>>16&255,F&16){if(G=B&65535,F&=15,P<F&&(L+=fe[s++]<<P,P+=8,P<F&&(L+=fe[s++]<<P,P+=8)),G+=L&(1<<F)-1,G>p){t.msg="invalid distance too far back",i.mode=lu;break e}if(L>>>=F,P-=F,F=c-f,G>F){if(F=G-F,F>b&&i.sane){t.msg="invalid distance too far back",i.mode=lu;break e}if(z=0,J=S,x===0){if(z+=g-F,F<q){q-=F;do Z[c++]=S[z++];while(--F);z=c-G,J=Z}}else if(x<F){if(z+=g+x-F,F-=x,F<q){q-=F;do Z[c++]=S[z++];while(--F);if(z=0,x<q){F=x,q-=F;do Z[c++]=S[z++];while(--F);z=c-G,J=Z}}}else if(z+=x-F,F<q){q-=F;do Z[c++]=S[z++];while(--F);z=c-G,J=Z}for(;q>2;)Z[c++]=J[z++],Z[c++]=J[z++],Z[c++]=J[z++],q-=3;q&&(Z[c++]=J[z++],q>1&&(Z[c++]=J[z++]))}else{z=c-G;do Z[c++]=Z[z++],Z[c++]=Z[z++],Z[c++]=Z[z++],q-=3;while(q>2);q&&(Z[c++]=Z[z++],q>1&&(Z[c++]=Z[z++]))}}else if(F&64){t.msg="invalid distance code",i.mode=lu;break e}else{B=A[(B&65535)+(L&(1<<F)-1)];continue r}break}}else if(F&64)if(F&32){i.mode=lR;break e}else{t.msg="invalid literal/length code",i.mode=lu;break e}else{B=U[(B&65535)+(L&(1<<F)-1)];continue t}break}}while(s<u&&c<v);q=P>>3,s-=q,P-=q<<3,L&=(1<<P)-1,t.next_in=s,t.next_out=c,t.avail_in=s<u?5+(u-s):5-(s-u),t.avail_out=c<v?257+(v-c):257-(c-v),i.hold=L,i.bits=P},"inflate_fast")});var mD=O((UM,gD)=>{"use strict";var cD=Nr(),Ni=15,hD=852,fD=592,dD=0,of=1,pD=2,cR=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hR=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],fR=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dR=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];gD.exports=o(function(t,r,i,s,u,c,f,v){var p=v.bits,g=0,b=0,x=0,S=0,L=0,P=0,U=0,A=0,I=0,N=0,B,F,q,G,z,J=null,fe=0,Z,Ye=new cD.Buf16(Ni+1),$r=new cD.Buf16(Ni+1),ti=null,or=0,Gt,ri,_r;for(g=0;g<=Ni;g++)Ye[g]=0;for(b=0;b<s;b++)Ye[r[i+b]]++;for(L=p,S=Ni;S>=1&&Ye[S]===0;S--);if(L>S&&(L=S),S===0)return u[c++]=1<<24|64<<16|0,u[c++]=1<<24|64<<16|0,v.bits=1,0;for(x=1;x<S&&Ye[x]===0;x++);for(L<x&&(L=x),A=1,g=1;g<=Ni;g++)if(A<<=1,A-=Ye[g],A<0)return-1;if(A>0&&(t===dD||S!==1))return-1;for($r[1]=0,g=1;g<Ni;g++)$r[g+1]=$r[g]+Ye[g];for(b=0;b<s;b++)r[i+b]!==0&&(f[$r[r[i+b]]++]=b);if(t===dD?(J=ti=f,Z=19):t===of?(J=cR,fe-=257,ti=hR,or-=257,Z=256):(J=fR,ti=dR,Z=-1),N=0,b=0,g=x,z=c,P=L,U=0,q=-1,I=1<<L,G=I-1,t===of&&I>hD||t===pD&&I>fD)return 1;for(;;){Gt=g-U,f[b]<Z?(ri=0,_r=f[b]):f[b]>Z?(ri=ti[or+f[b]],_r=J[fe+f[b]]):(ri=96,_r=0),B=1<<g-U,F=1<<P,x=F;do F-=B,u[z+(N>>U)+F]=Gt<<24|ri<<16|_r|0;while(F!==0);for(B=1<<g-1;N&B;)B>>=1;if(B!==0?(N&=B-1,N+=B):N=0,b++,--Ye[g]===0){if(g===S)break;g=r[i+f[b]]}if(g>L&&(N&G)!==q){for(U===0&&(U=L),z+=x,P=g-U,A=1<<P;P+U<S&&(A-=Ye[P+U],!(A<=0));)P++,A<<=1;if(I+=1<<P,t===of&&I>hD||t===pD&&I>fD)return 1;q=N&G,u[q]=L<<24|P<<16|z-c|0}}return N!==0&&(u[z+N]=g-U<<24|64<<16|0),v.bits=L,0},"inflate_table")});var JD=O(Qt=>{"use strict";var xt=Nr(),ff=Zh(),Dr=Kh(),pR=lD(),uo=mD(),gR=0,HD=1,zD=2,vD=4,mR=5,cu=6,Nn=0,vR=1,DR=2,Ut=-2,GD=-3,df=-4,wR=-5,DD=8,$D=1,wD=2,yD=3,bD=4,_D=5,CD=6,xD=7,kD=8,SD=9,ED=10,du=11,Hr=12,sf=13,FD=14,uf=15,AD=16,TD=17,RD=18,ID=19,hu=20,fu=21,PD=22,LD=23,MD=24,OD=25,BD=26,lf=27,UD=28,ND=29,Se=30,pf=31,yR=32,bR=852,_R=592,CR=15,xR=CR;function WD(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}o(WD,"zswap32");function kR(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new xt.Buf16(320),this.work=new xt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}o(kR,"InflateState");function jD(e){var t;return!e||!e.state?Ut:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=$D,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new xt.Buf32(bR),t.distcode=t.distdyn=new xt.Buf32(_R),t.sane=1,t.back=-1,Nn)}o(jD,"inflateResetKeep");function ZD(e){var t;return!e||!e.state?Ut:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,jD(e))}o(ZD,"inflateReset");function KD(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ut:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,ZD(e))}o(KD,"inflateReset2");function VD(e,t){var r,i;return e?(i=new kR,e.state=i,i.window=null,r=KD(e,t),r!==Nn&&(e.state=null),r):Ut}o(VD,"inflateInit2");function SR(e){return VD(e,xR)}o(SR,"inflateInit");var qD=!0,cf,hf;function ER(e){if(qD){var t;for(cf=new xt.Buf32(512),hf=new xt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(uo(HD,e.lens,0,288,cf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;uo(zD,e.lens,0,32,hf,0,e.work,{bits:5}),qD=!1}e.lencode=cf,e.lenbits=9,e.distcode=hf,e.distbits=5}o(ER,"fixedtables");function YD(e,t,r,i){var s,u=e.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new xt.Buf8(u.wsize)),i>=u.wsize?(xt.arraySet(u.window,t,r-u.wsize,u.wsize,0),u.wnext=0,u.whave=u.wsize):(s=u.wsize-u.wnext,s>i&&(s=i),xt.arraySet(u.window,t,r-i,s,u.wnext),i-=s,i?(xt.arraySet(u.window,t,r-i,i,0),u.wnext=i,u.whave=u.wsize):(u.wnext+=s,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=s))),0}o(YD,"updatewindow");function FR(e,t){var r,i,s,u,c,f,v,p,g,b,x,S,L,P,U=0,A,I,N,B,F,q,G,z,J=new xt.Buf8(4),fe,Z,Ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ut;r=e.state,r.mode===Hr&&(r.mode=sf),c=e.next_out,s=e.output,v=e.avail_out,u=e.next_in,i=e.input,f=e.avail_in,p=r.hold,g=r.bits,b=f,x=v,z=Nn;e:for(;;)switch(r.mode){case $D:if(r.wrap===0){r.mode=sf;break}for(;g<16;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(r.wrap&2&&p===35615){r.check=0,J[0]=p&255,J[1]=p>>>8&255,r.check=Dr(r.check,J,2,0),p=0,g=0,r.mode=wD;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=Se;break}if((p&15)!==DD){e.msg="unknown compression method",r.mode=Se;break}if(p>>>=4,g-=4,G=(p&15)+8,r.wbits===0)r.wbits=G;else if(G>r.wbits){e.msg="invalid window size",r.mode=Se;break}r.dmax=1<<G,e.adler=r.check=1,r.mode=p&512?ED:Hr,p=0,g=0;break;case wD:for(;g<16;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(r.flags=p,(r.flags&255)!==DD){e.msg="unknown compression method",r.mode=Se;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Se;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(J[0]=p&255,J[1]=p>>>8&255,r.check=Dr(r.check,J,2,0)),p=0,g=0,r.mode=yD;case yD:for(;g<32;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.head&&(r.head.time=p),r.flags&512&&(J[0]=p&255,J[1]=p>>>8&255,J[2]=p>>>16&255,J[3]=p>>>24&255,r.check=Dr(r.check,J,4,0)),p=0,g=0,r.mode=bD;case bD:for(;g<16;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(J[0]=p&255,J[1]=p>>>8&255,r.check=Dr(r.check,J,2,0)),p=0,g=0,r.mode=_D;case _D:if(r.flags&1024){for(;g<16;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(J[0]=p&255,J[1]=p>>>8&255,r.check=Dr(r.check,J,2,0)),p=0,g=0}else r.head&&(r.head.extra=null);r.mode=CD;case CD:if(r.flags&1024&&(S=r.length,S>f&&(S=f),S&&(r.head&&(G=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),xt.arraySet(r.head.extra,i,u,S,G)),r.flags&512&&(r.check=Dr(r.check,i,S,u)),f-=S,u+=S,r.length-=S),r.length))break e;r.length=0,r.mode=xD;case xD:if(r.flags&2048){if(f===0)break e;S=0;do G=i[u+S++],r.head&&G&&r.length<65536&&(r.head.name+=String.fromCharCode(G));while(G&&S<f);if(r.flags&512&&(r.check=Dr(r.check,i,S,u)),f-=S,u+=S,G)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=kD;case kD:if(r.flags&4096){if(f===0)break e;S=0;do G=i[u+S++],r.head&&G&&r.length<65536&&(r.head.comment+=String.fromCharCode(G));while(G&&S<f);if(r.flags&512&&(r.check=Dr(r.check,i,S,u)),f-=S,u+=S,G)break e}else r.head&&(r.head.comment=null);r.mode=SD;case SD:if(r.flags&512){for(;g<16;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Se;break}p=0,g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Hr;break;case ED:for(;g<32;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}e.adler=r.check=WD(p),p=0,g=0,r.mode=du;case du:if(r.havedict===0)return e.next_out=c,e.avail_out=v,e.next_in=u,e.avail_in=f,r.hold=p,r.bits=g,DR;e.adler=r.check=1,r.mode=Hr;case Hr:if(t===mR||t===cu)break e;case sf:if(r.last){p>>>=g&7,g-=g&7,r.mode=lf;break}for(;g<3;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}switch(r.last=p&1,p>>>=1,g-=1,p&3){case 0:r.mode=FD;break;case 1:if(ER(r),r.mode=hu,t===cu){p>>>=2,g-=2;break e}break;case 2:r.mode=TD;break;case 3:e.msg="invalid block type",r.mode=Se}p>>>=2,g-=2;break;case FD:for(p>>>=g&7,g-=g&7;g<32;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Se;break}if(r.length=p&65535,p=0,g=0,r.mode=uf,t===cu)break e;case uf:r.mode=AD;case AD:if(S=r.length,S){if(S>f&&(S=f),S>v&&(S=v),S===0)break e;xt.arraySet(s,i,u,S,c),f-=S,u+=S,v-=S,c+=S,r.length-=S;break}r.mode=Hr;break;case TD:for(;g<14;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(r.nlen=(p&31)+257,p>>>=5,g-=5,r.ndist=(p&31)+1,p>>>=5,g-=5,r.ncode=(p&15)+4,p>>>=4,g-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Se;break}r.have=0,r.mode=RD;case RD:for(;r.have<r.ncode;){for(;g<3;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.lens[Ye[r.have++]]=p&7,p>>>=3,g-=3}for(;r.have<19;)r.lens[Ye[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,fe={bits:r.lenbits},z=uo(gR,r.lens,0,19,r.lencode,0,r.work,fe),r.lenbits=fe.bits,z){e.msg="invalid code lengths set",r.mode=Se;break}r.have=0,r.mode=ID;case ID:for(;r.have<r.nlen+r.ndist;){for(;U=r.lencode[p&(1<<r.lenbits)-1],A=U>>>24,I=U>>>16&255,N=U&65535,!(A<=g);){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(N<16)p>>>=A,g-=A,r.lens[r.have++]=N;else{if(N===16){for(Z=A+2;g<Z;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(p>>>=A,g-=A,r.have===0){e.msg="invalid bit length repeat",r.mode=Se;break}G=r.lens[r.have-1],S=3+(p&3),p>>>=2,g-=2}else if(N===17){for(Z=A+3;g<Z;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}p>>>=A,g-=A,G=0,S=3+(p&7),p>>>=3,g-=3}else{for(Z=A+7;g<Z;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}p>>>=A,g-=A,G=0,S=11+(p&127),p>>>=7,g-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Se;break}for(;S--;)r.lens[r.have++]=G}}if(r.mode===Se)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Se;break}if(r.lenbits=9,fe={bits:r.lenbits},z=uo(HD,r.lens,0,r.nlen,r.lencode,0,r.work,fe),r.lenbits=fe.bits,z){e.msg="invalid literal/lengths set",r.mode=Se;break}if(r.distbits=6,r.distcode=r.distdyn,fe={bits:r.distbits},z=uo(zD,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,fe),r.distbits=fe.bits,z){e.msg="invalid distances set",r.mode=Se;break}if(r.mode=hu,t===cu)break e;case hu:r.mode=fu;case fu:if(f>=6&&v>=258){e.next_out=c,e.avail_out=v,e.next_in=u,e.avail_in=f,r.hold=p,r.bits=g,pR(e,x),c=e.next_out,s=e.output,v=e.avail_out,u=e.next_in,i=e.input,f=e.avail_in,p=r.hold,g=r.bits,r.mode===Hr&&(r.back=-1);break}for(r.back=0;U=r.lencode[p&(1<<r.lenbits)-1],A=U>>>24,I=U>>>16&255,N=U&65535,!(A<=g);){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(I&&!(I&240)){for(B=A,F=I,q=N;U=r.lencode[q+((p&(1<<B+F)-1)>>B)],A=U>>>24,I=U>>>16&255,N=U&65535,!(B+A<=g);){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}p>>>=B,g-=B,r.back+=B}if(p>>>=A,g-=A,r.back+=A,r.length=N,I===0){r.mode=BD;break}if(I&32){r.back=-1,r.mode=Hr;break}if(I&64){e.msg="invalid literal/length code",r.mode=Se;break}r.extra=I&15,r.mode=PD;case PD:if(r.extra){for(Z=r.extra;g<Z;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=LD;case LD:for(;U=r.distcode[p&(1<<r.distbits)-1],A=U>>>24,I=U>>>16&255,N=U&65535,!(A<=g);){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(!(I&240)){for(B=A,F=I,q=N;U=r.distcode[q+((p&(1<<B+F)-1)>>B)],A=U>>>24,I=U>>>16&255,N=U&65535,!(B+A<=g);){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}p>>>=B,g-=B,r.back+=B}if(p>>>=A,g-=A,r.back+=A,I&64){e.msg="invalid distance code",r.mode=Se;break}r.offset=N,r.extra=I&15,r.mode=MD;case MD:if(r.extra){for(Z=r.extra;g<Z;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Se;break}r.mode=OD;case OD:if(v===0)break e;if(S=x-v,r.offset>S){if(S=r.offset-S,S>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Se;break}S>r.wnext?(S-=r.wnext,L=r.wsize-S):L=r.wnext-S,S>r.length&&(S=r.length),P=r.window}else P=s,L=c-r.offset,S=r.length;S>v&&(S=v),v-=S,r.length-=S;do s[c++]=P[L++];while(--S);r.length===0&&(r.mode=fu);break;case BD:if(v===0)break e;s[c++]=r.length,v--,r.mode=fu;break;case lf:if(r.wrap){for(;g<32;){if(f===0)break e;f--,p|=i[u++]<<g,g+=8}if(x-=v,e.total_out+=x,r.total+=x,x&&(e.adler=r.check=r.flags?Dr(r.check,s,x,c-x):ff(r.check,s,x,c-x)),x=v,(r.flags?p:WD(p))!==r.check){e.msg="incorrect data check",r.mode=Se;break}p=0,g=0}r.mode=UD;case UD:if(r.wrap&&r.flags){for(;g<32;){if(f===0)break e;f--,p+=i[u++]<<g,g+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Se;break}p=0,g=0}r.mode=ND;case ND:z=vR;break e;case Se:z=GD;break e;case pf:return df;case yR:default:return Ut}return e.next_out=c,e.avail_out=v,e.next_in=u,e.avail_in=f,r.hold=p,r.bits=g,(r.wsize||x!==e.avail_out&&r.mode<Se&&(r.mode<lf||t!==vD))&&YD(e,e.output,e.next_out,x-e.avail_out)?(r.mode=pf,df):(b-=e.avail_in,x-=e.avail_out,e.total_in+=b,e.total_out+=x,r.total+=x,r.wrap&&x&&(e.adler=r.check=r.flags?Dr(r.check,s,x,e.next_out-x):ff(r.check,s,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Hr?128:0)+(r.mode===hu||r.mode===uf?256:0),(b===0&&x===0||t===vD)&&z===Nn&&(z=wR),z)}o(FR,"inflate");function AR(e){if(!e||!e.state)return Ut;var t=e.state;return t.window&&(t.window=null),e.state=null,Nn}o(AR,"inflateEnd");function TR(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Ut:(r.head=t,t.done=!1,Nn)}o(TR,"inflateGetHeader");function RR(e,t){var r=t.length,i,s,u;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==du)?Ut:i.mode===du&&(s=1,s=ff(s,t,r,0),s!==i.check)?GD:(u=YD(e,t,r,r),u?(i.mode=pf,df):(i.havedict=1,Nn))}o(RR,"inflateSetDictionary");Qt.inflateReset=ZD;Qt.inflateReset2=KD;Qt.inflateResetKeep=jD;Qt.inflateInit=SR;Qt.inflateInit2=VD;Qt.inflate=FR;Qt.inflateEnd=AR;Qt.inflateGetHeader=TR;Qt.inflateSetDictionary=RR;Qt.inflateInfo="pako inflate (from Nodeca project)"});var gf=O((HM,XD)=>{"use strict";XD.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var ew=O((zM,QD)=>{"use strict";function IR(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}o(IR,"GZheader");QD.exports=IR});var rw=O(co=>{"use strict";var Wi=JD(),lo=Nr(),pu=Qh(),Le=gf(),mf=tu(),PR=ef(),LR=ew(),tw=Object.prototype.toString;function Wn(e){if(!(this instanceof Wn))return new Wn(e);this.options=lo.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new PR,this.strm.avail_out=0;var r=Wi.inflateInit2(this.strm,t.windowBits);if(r!==Le.Z_OK)throw new Error(mf[r]);if(this.header=new LR,Wi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=pu.string2buf(t.dictionary):tw.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Wi.inflateSetDictionary(this.strm,t.dictionary),r!==Le.Z_OK)))throw new Error(mf[r])}o(Wn,"Inflate");Wn.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,u,c,f,v,p,g=!1;if(this.ended)return!1;c=t===~~t?t:t===!0?Le.Z_FINISH:Le.Z_NO_FLUSH,typeof e=="string"?r.input=pu.binstring2buf(e):tw.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new lo.Buf8(i),r.next_out=0,r.avail_out=i),u=Wi.inflate(r,Le.Z_NO_FLUSH),u===Le.Z_NEED_DICT&&s&&(u=Wi.inflateSetDictionary(this.strm,s)),u===Le.Z_BUF_ERROR&&g===!0&&(u=Le.Z_OK,g=!1),u!==Le.Z_STREAM_END&&u!==Le.Z_OK)return this.onEnd(u),this.ended=!0,!1;r.next_out&&(r.avail_out===0||u===Le.Z_STREAM_END||r.avail_in===0&&(c===Le.Z_FINISH||c===Le.Z_SYNC_FLUSH))&&(this.options.to==="string"?(f=pu.utf8border(r.output,r.next_out),v=r.next_out-f,p=pu.buf2string(r.output,f),r.next_out=v,r.avail_out=i-v,v&&lo.arraySet(r.output,r.output,f,v,0),this.onData(p)):this.onData(lo.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(g=!0)}while((r.avail_in>0||r.avail_out===0)&&u!==Le.Z_STREAM_END);return u===Le.Z_STREAM_END&&(c=Le.Z_FINISH),c===Le.Z_FINISH?(u=Wi.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===Le.Z_OK):(c===Le.Z_SYNC_FLUSH&&(this.onEnd(Le.Z_OK),r.avail_out=0),!0)};Wn.prototype.onData=function(e){this.chunks.push(e)};Wn.prototype.onEnd=function(e){e===Le.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=lo.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function vf(e,t){var r=new Wn(t);if(r.push(e,!0),r.err)throw r.msg||mf[r.err];return r.result}o(vf,"inflate");function MR(e,t){return t=t||{},t.raw=!0,vf(e,t)}o(MR,"inflateRaw");co.Inflate=Wn;co.inflate=vf;co.inflateRaw=MR;co.ungzip=vf});var aw=O((ZM,iw)=>{"use strict";var OR=Nr().assign,BR=sD(),UR=rw(),NR=gf(),nw={};OR(nw,BR,UR,NR);iw.exports=nw});var sw=O(mu=>{"use strict";var WR=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",qR=aw(),ow=Fe(),gu=Ct(),HR=WR?"uint8array":"array";mu.magic="\b\0";function qn(e,t){gu.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}o(qn,"FlateWorker");ow.inherits(qn,gu);qn.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(ow.transformTo(HR,e.data),!1)};qn.prototype.flush=function(){gu.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};qn.prototype.cleanUp=function(){gu.prototype.cleanUp.call(this),this._pako=null};qn.prototype._createPako=function(){this._pako=new qR[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};mu.compressWorker=function(e){return new qn("Deflate",e)};mu.uncompressWorker=function(){return new qn("Inflate",{})}});var wf=O(Df=>{"use strict";var uw=Ct();Df.STORE={magic:"\0\0",compressWorker:o(function(){return new uw("STORE compression")},"compressWorker"),uncompressWorker:o(function(){return new uw("STORE decompression")},"uncompressWorker")};Df.DEFLATE=sw()});var yf=O(Hn=>{"use strict";Hn.LOCAL_FILE_HEADER="PK";Hn.CENTRAL_FILE_HEADER="PK";Hn.CENTRAL_DIRECTORY_END="PK";Hn.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Hn.ZIP64_CENTRAL_DIRECTORY_END="PK";Hn.DATA_DESCRIPTOR="PK\x07\b"});var fw=O((QM,hw)=>{"use strict";var qi=Fe(),Hi=Ct(),bf=Ai(),lw=Ys(),vu=yf(),_e=o(function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},"decToHex"),zR=o(function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},"generateUnixExternalFileAttr"),GR=o(function(e){return(e||0)&63},"generateDosExternalFileAttr"),cw=o(function(e,t,r,i,s,u){var c=e.file,f=e.compression,v=u!==bf.utf8encode,p=qi.transformTo("string",u(c.name)),g=qi.transformTo("string",bf.utf8encode(c.name)),b=c.comment,x=qi.transformTo("string",u(b)),S=qi.transformTo("string",bf.utf8encode(b)),L=g.length!==c.name.length,P=S.length!==b.length,U,A,I="",N="",B="",F=c.dir,q=c.date,G={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(G.crc32=e.crc32,G.compressedSize=e.compressedSize,G.uncompressedSize=e.uncompressedSize);var z=0;t&&(z|=8),!v&&(L||P)&&(z|=2048);var J=0,fe=0;F&&(J|=16),s==="UNIX"?(fe=798,J|=zR(c.unixPermissions,F)):(fe=20,J|=GR(c.dosPermissions,F)),U=q.getUTCHours(),U=U<<6,U=U|q.getUTCMinutes(),U=U<<5,U=U|q.getUTCSeconds()/2,A=q.getUTCFullYear()-1980,A=A<<4,A=A|q.getUTCMonth()+1,A=A<<5,A=A|q.getUTCDate(),L&&(N=_e(1,1)+_e(lw(p),4)+g,I+="up"+_e(N.length,2)+N),P&&(B=_e(1,1)+_e(lw(x),4)+S,I+="uc"+_e(B.length,2)+B);var Z="";Z+=`
|
|
2
|
+
\0`,Z+=_e(z,2),Z+=f.magic,Z+=_e(U,2),Z+=_e(A,2),Z+=_e(G.crc32,4),Z+=_e(G.compressedSize,4),Z+=_e(G.uncompressedSize,4),Z+=_e(p.length,2),Z+=_e(I.length,2);var Ye=vu.LOCAL_FILE_HEADER+Z+p+I,$r=vu.CENTRAL_FILE_HEADER+_e(fe,2)+Z+_e(x.length,2)+"\0\0\0\0"+_e(J,4)+_e(i,4)+p+I+x;return{fileRecord:Ye,dirRecord:$r}},"generateZipParts"),$R=o(function(e,t,r,i,s){var u="",c=qi.transformTo("string",s(i));return u=vu.CENTRAL_DIRECTORY_END+"\0\0\0\0"+_e(e,2)+_e(e,2)+_e(t,4)+_e(r,4)+_e(c.length,2)+c,u},"generateCentralDirectoryEnd"),jR=o(function(e){var t="";return t=vu.DATA_DESCRIPTOR+_e(e.crc32,4)+_e(e.compressedSize,4)+_e(e.uncompressedSize,4),t},"generateDataDescriptors");function er(e,t,r,i){Hi.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o(er,"ZipFileWorker");qi.inherits(er,Hi);er.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Hi.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};er.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=cw(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};er.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=cw(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:jR(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};er.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=$R(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};er.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};er.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};er.prototype.resume=function(){if(!Hi.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};er.prototype.error=function(e){var t=this._sources;if(!Hi.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};er.prototype.lock=function(){Hi.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};hw.exports=er});var pw=O(dw=>{"use strict";var ZR=wf(),KR=fw(),VR=o(function(e,t){var r=e||t,i=ZR[r];if(!i)throw new Error(r+" is not a valid compression method !");return i},"getCompression");dw.generateWorker=function(e,t,r){var i=new KR(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach(function(u,c){s++;var f=VR(c.options.compression,t.compression),v=c.options.compressionOptions||t.compressionOptions||{},p=c.dir,g=c.date;c._compressWorker(f,v).withStreamInfo("file",{name:u,dir:p,date:g,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(i)}),i.entriesCount=s}catch(u){i.error(u)}return i}});var mw=O((n8,gw)=>{"use strict";var YR=Fe(),Du=Ct();function ho(e,t){Du.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}o(ho,"NodejsStreamInputAdapter");YR.inherits(ho,Du);ho.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};ho.prototype.pause=function(){return Du.prototype.pause.call(this)?(this._stream.pause(),!0):!1};ho.prototype.resume=function(){return Du.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};gw.exports=ho});var Sw=O((a8,kw)=>{"use strict";var JR=Ai(),fo=Fe(),yw=Ct(),XR=kh(),bw=Sh(),vw=Js(),QR=Dv(),eI=pw(),Dw=qa(),tI=mw(),_w=o(function(e,t,r){var i=fo.getTypeOf(t),s,u=fo.extend(r||{},bw);u.date=u.date||new Date,u.compression!==null&&(u.compression=u.compression.toUpperCase()),typeof u.unixPermissions=="string"&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&u.unixPermissions&16384&&(u.dir=!0),u.dosPermissions&&u.dosPermissions&16&&(u.dir=!0),u.dir&&(e=Cw(e)),u.createFolders&&(s=rI(e))&&xw.call(this,s,!0);var c=i==="string"&&u.binary===!1&&u.base64===!1;(!r||typeof r.binary>"u")&&(u.binary=!c);var f=t instanceof vw&&t.uncompressedSize===0;(f||u.dir||!t||t.length===0)&&(u.base64=!1,u.binary=!0,t="",u.compression="STORE",i="string");var v=null;t instanceof vw||t instanceof yw?v=t:Dw.isNode&&Dw.isStream(t)?v=new tI(e,t):v=fo.prepareContent(e,t,u.binary,u.optimizedBinaryString,u.base64);var p=new QR(e,v,u);this.files[e]=p},"fileAdd"),rI=o(function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},"parentFolder"),Cw=o(function(e){return e.slice(-1)!=="/"&&(e+="/"),e},"forceTrailingSlash"),xw=o(function(e,t){return t=typeof t<"u"?t:bw.createFolders,e=Cw(e),this.files[e]||_w.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]},"folderAdd");function ww(e){return Object.prototype.toString.call(e)==="[object RegExp]"}o(ww,"isRegExp");var nI={load:o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"load"),forEach:o(function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},"forEach"),filter:o(function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},"filter"),file:o(function(e,t,r){if(arguments.length===1)if(ww(e)){var i=e;return this.filter(function(u,c){return!c.dir&&i.test(u)})}else{var s=this.files[this.root+e];return s&&!s.dir?s:null}else e=this.root+e,_w.call(this,e,t,r);return this},"file"),folder:o(function(e){if(!e)return this;if(ww(e))return this.filter(function(s,u){return u.dir&&e.test(s)});var t=this.root+e,r=xw.call(this,t),i=this.clone();return i.root=r.name,i},"folder"),remove:o(function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(s,u){return u.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},"remove"),generate:o(function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},"generate"),generateInternalStream:o(function(e){var t,r={};try{if(r=fo.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:JR.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");fo.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=eI.generateWorker(this,r,i)}catch(s){t=new yw("error"),t.error(s)}return new XR(t,r.type||"string",r.mimeType)},"generateInternalStream"),generateAsync:o(function(e,t){return this.generateInternalStream(e).accumulate(t)},"generateAsync"),generateNodeStream:o(function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)},"generateNodeStream")};kw.exports=nI});var _f=O((s8,Fw)=>{"use strict";var iI=Fe();function Ew(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o(Ew,"DataReader");Ew.prototype={checkOffset:o(function(e){this.checkIndex(this.index+e)},"checkOffset"),checkIndex:o(function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},"checkIndex"),setIndex:o(function(e){this.checkIndex(e),this.index=e},"setIndex"),skip:o(function(e){this.setIndex(this.index+e)},"skip"),byteAt:o(function(){},"byteAt"),readInt:o(function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},"readInt"),readString:o(function(e){return iI.transformTo("string",this.readData(e))},"readString"),readData:o(function(){},"readData"),lastIndexOfSignature:o(function(){},"lastIndexOfSignature"),readAndCheckSignature:o(function(){},"readAndCheckSignature"),readDate:o(function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))},"readDate")};Fw.exports=Ew});var Cf=O((l8,Tw)=>{"use strict";var Aw=_f(),aI=Fe();function zi(e){Aw.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}o(zi,"ArrayReader");aI.inherits(zi,Aw);zi.prototype.byteAt=function(e){return this.data[this.zero+e]};zi.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),s=e.charCodeAt(3),u=this.length-4;u>=0;--u)if(this.data[u]===t&&this.data[u+1]===r&&this.data[u+2]===i&&this.data[u+3]===s)return u-this.zero;return-1};zi.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),s=e.charCodeAt(3),u=this.readData(4);return t===u[0]&&r===u[1]&&i===u[2]&&s===u[3]};zi.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Tw.exports=zi});var Pw=O((h8,Iw)=>{"use strict";var Rw=_f(),oI=Fe();function Gi(e){Rw.call(this,e)}o(Gi,"StringReader");oI.inherits(Gi,Rw);Gi.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Gi.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Gi.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Gi.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Iw.exports=Gi});var kf=O((d8,Mw)=>{"use strict";var Lw=Cf(),sI=Fe();function xf(e){Lw.call(this,e)}o(xf,"Uint8ArrayReader");sI.inherits(xf,Lw);xf.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Mw.exports=xf});var Uw=O((g8,Bw)=>{"use strict";var Ow=kf(),uI=Fe();function Sf(e){Ow.call(this,e)}o(Sf,"NodeBufferReader");uI.inherits(Sf,Ow);Sf.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Bw.exports=Sf});var Ef=O((v8,Ww)=>{"use strict";var wu=Fe(),Nw=Br(),lI=Cf(),cI=Pw(),hI=Uw(),fI=kf();Ww.exports=function(e){var t=wu.getTypeOf(e);return wu.checkSupport(t),t==="string"&&!Nw.uint8array?new cI(e):t==="nodebuffer"?new hI(e):Nw.uint8array?new fI(wu.transformTo("uint8array",e)):new lI(wu.transformTo("array",e))}});var Gw=O((D8,zw)=>{"use strict";var Ff=Ef(),dn=Fe(),dI=Js(),qw=Ys(),yu=Ai(),bu=wf(),pI=Br(),gI=0,mI=3,vI=o(function(e){for(var t in bu)if(Object.prototype.hasOwnProperty.call(bu,t)&&bu[t].magic===e)return bu[t];return null},"findCompression");function Hw(e,t){this.options=e,this.loadOptions=t}o(Hw,"ZipEntry");Hw.prototype={isEncrypted:o(function(){return(this.bitFlag&1)===1},"isEncrypted"),useUTF8:o(function(){return(this.bitFlag&2048)===2048},"useUTF8"),readLocalPart:o(function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=vI(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+dn.pretty(this.compressionMethod)+" unknown (inner file : "+dn.transformTo("string",this.fileName)+")");this.decompressed=new dI(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},"readLocalPart"),readCentralPart:o(function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},"readCentralPart"),processAttributes:o(function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===gI&&(this.dosPermissions=this.externalFileAttributes&63),e===mI&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},"processAttributes"),parseZIP64ExtraField:o(function(){if(this.extraFields[1]){var e=Ff(this.extraFields[1].value);this.uncompressedSize===dn.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===dn.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===dn.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===dn.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},"parseZIP64ExtraField"),readExtraFields:o(function(e){var t=e.index+this.extraFieldsLength,r,i,s;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),s=e.readData(i),this.extraFields[r]={id:r,length:i,value:s};e.setIndex(t)},"readExtraFields"),handleUTF8:o(function(){var e=pI.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=yu.utf8decode(this.fileName),this.fileCommentStr=yu.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=dn.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var s=dn.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},"handleUTF8"),findExtraFieldUnicodePath:o(function(){var e=this.extraFields[28789];if(e){var t=Ff(e.value);return t.readInt(1)!==1||qw(this.fileName)!==t.readInt(4)?null:yu.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodePath"),findExtraFieldUnicodeComment:o(function(){var e=this.extraFields[25461];if(e){var t=Ff(e.value);return t.readInt(1)!==1||qw(this.fileComment)!==t.readInt(4)?null:yu.utf8decode(t.readData(e.length-5))}return null},"findExtraFieldUnicodeComment")};zw.exports=Hw});var Zw=O((y8,jw)=>{"use strict";var DI=Ef(),zr=Fe(),tr=yf(),wI=Gw(),yI=Br();function $w(e){this.files=[],this.loadOptions=e}o($w,"ZipEntries");$w.prototype={checkSignature:o(function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+zr.pretty(t)+", expected "+zr.pretty(e)+")")}},"checkSignature"),isSignature:o(function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),s=i===t;return this.reader.setIndex(r),s},"isSignature"),readBlockEndOfCentral:o(function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=yI.uint8array?"uint8array":"array",r=zr.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},"readBlockEndOfCentral"),readBlockZip64EndOfCentral:o(function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,s;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),s=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:s}},"readBlockZip64EndOfCentral"),readBlockZip64EndOfCentralLocator:o(function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},"readBlockZip64EndOfCentralLocator"),readLocalFiles:o(function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(tr.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},"readLocalFiles"),readCentralDir:o(function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(tr.CENTRAL_FILE_HEADER);)e=new wI({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},"readCentralDir"),readEndOfCentral:o(function(){var e=this.reader.lastIndexOfSignature(tr.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,tr.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(tr.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===zr.MAX_VALUE_16BITS||this.diskWithCentralDirStart===zr.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===zr.MAX_VALUE_16BITS||this.centralDirRecords===zr.MAX_VALUE_16BITS||this.centralDirSize===zr.MAX_VALUE_32BITS||this.centralDirOffset===zr.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(tr.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(tr.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,tr.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(tr.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(tr.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var s=r-i;if(s>0)this.isSignature(r,tr.CENTRAL_FILE_HEADER)||(this.reader.zero=s);else if(s<0)throw new Error("Corrupted zip: missing "+Math.abs(s)+" bytes.")},"readEndOfCentral"),prepareReader:o(function(e){this.reader=DI(e)},"prepareReader"),load:o(function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()},"load")};jw.exports=$w});var Yw=O((_8,Vw)=>{"use strict";var Af=Fe(),_u=Si(),bI=Ai(),_I=Zw(),CI=Ah(),Kw=qa();function xI(e){return new _u.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new CI);i.on("error",function(s){r(s)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}o(xI,"checkEntryCRC32");Vw.exports=function(e,t){var r=this;return t=Af.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:bI.utf8decode}),Kw.isNode&&Kw.isStream(e)?_u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Af.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var s=new _I(t);return s.load(i),s}).then(o(function(s){var u=[_u.Promise.resolve(s)],c=s.files;if(t.checkCRC32)for(var f=0;f<c.length;f++)u.push(xI(c[f]));return _u.Promise.all(u)},"checkCRC32")).then(o(function(s){for(var u=s.shift(),c=u.files,f=0;f<c.length;f++){var v=c[f],p=v.fileNameStr,g=Af.resolve(v.fileNameStr);r.file(g,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:t.createFolders}),v.dir||(r.file(g).unsafeOriginalName=p)}return u.zipComment.length&&(r.comment=u.zipComment),r},"addFiles"))}});var Cu=O((x8,Jw)=>{"use strict";function Nt(){if(!(this instanceof Nt))return new Nt;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new Nt;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}o(Nt,"JSZip");Nt.prototype=Sw();Nt.prototype.loadAsync=Yw();Nt.support=Br();Nt.defaults=Sh();Nt.version="3.10.1";Nt.loadAsync=function(e,t){return new Nt().loadAsync(e,t)};Nt.external=Si();Jw.exports=Nt});var Xw=O(($i,go)=>{(function(){var e,t="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,v="__lodash_placeholder__",p=1,g=2,b=4,x=1,S=2,L=1,P=2,U=4,A=8,I=16,N=32,B=64,F=128,q=256,G=512,z=30,J="...",fe=800,Z=16,Ye=1,$r=2,ti=3,or=1/0,Gt=9007199254740991,ri=17976931348623157e292,_r=NaN,sr=4294967295,Yb=sr-1,Jb=sr>>>1,Xb=[["ary",F],["bind",L],["bindKey",P],["curry",A],["curryRight",I],["flip",G],["partial",N],["partialRight",B],["rearg",q]],ni="[object Arguments]",Bo="[object Array]",Qb="[object AsyncFunction]",ua="[object Boolean]",la="[object Date]",e_="[object DOMException]",Uo="[object Error]",No="[object Function]",ip="[object GeneratorFunction]",$t="[object Map]",ca="[object Number]",t_="[object Null]",Cr="[object Object]",ap="[object Promise]",r_="[object Proxy]",ha="[object RegExp]",jt="[object Set]",fa="[object String]",Wo="[object Symbol]",n_="[object Undefined]",da="[object WeakMap]",i_="[object WeakSet]",pa="[object ArrayBuffer]",ii="[object DataView]",gl="[object Float32Array]",ml="[object Float64Array]",vl="[object Int8Array]",Dl="[object Int16Array]",wl="[object Int32Array]",yl="[object Uint8Array]",bl="[object Uint8ClampedArray]",_l="[object Uint16Array]",Cl="[object Uint32Array]",a_=/\b__p \+= '';/g,o_=/\b(__p \+=) '' \+/g,s_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,op=/&(?:amp|lt|gt|quot|#39);/g,sp=/[&<>"']/g,u_=RegExp(op.source),l_=RegExp(sp.source),c_=/<%-([\s\S]+?)%>/g,h_=/<%([\s\S]+?)%>/g,up=/<%=([\s\S]+?)%>/g,f_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d_=/^\w*$/,p_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xl=/[\\^$.*+?()[\]{}|]/g,g_=RegExp(xl.source),kl=/^\s+/,m_=/\s/,v_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,D_=/\{\n\/\* \[wrapped with (.+)\] \*/,w_=/,? & /,y_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,b_=/[()=,{}\[\]\/\s]/,__=/\\(\\)?/g,C_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lp=/\w*$/,x_=/^[-+]0x[0-9a-f]+$/i,k_=/^0b[01]+$/i,S_=/^\[object .+?Constructor\]$/,E_=/^0o[0-7]+$/i,F_=/^(?:0|[1-9]\d*)$/,A_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qo=/($^)/,T_=/['\n\r\u2028\u2029\\]/g,Ho="\\ud800-\\udfff",R_="\\u0300-\\u036f",I_="\\ufe20-\\ufe2f",P_="\\u20d0-\\u20ff",cp=R_+I_+P_,hp="\\u2700-\\u27bf",fp="a-z\\xdf-\\xf6\\xf8-\\xff",L_="\\xac\\xb1\\xd7\\xf7",M_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O_="\\u2000-\\u206f",B_=" \\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",dp="A-Z\\xc0-\\xd6\\xd8-\\xde",pp="\\ufe0e\\ufe0f",gp=L_+M_+O_+B_,Sl="['\u2019]",U_="["+Ho+"]",mp="["+gp+"]",zo="["+cp+"]",vp="\\d+",N_="["+hp+"]",Dp="["+fp+"]",wp="[^"+Ho+gp+vp+hp+fp+dp+"]",El="\\ud83c[\\udffb-\\udfff]",W_="(?:"+zo+"|"+El+")",yp="[^"+Ho+"]",Fl="(?:\\ud83c[\\udde6-\\uddff]){2}",Al="[\\ud800-\\udbff][\\udc00-\\udfff]",ai="["+dp+"]",bp="\\u200d",_p="(?:"+Dp+"|"+wp+")",q_="(?:"+ai+"|"+wp+")",Cp="(?:"+Sl+"(?:d|ll|m|re|s|t|ve))?",xp="(?:"+Sl+"(?:D|LL|M|RE|S|T|VE))?",kp=W_+"?",Sp="["+pp+"]?",H_="(?:"+bp+"(?:"+[yp,Fl,Al].join("|")+")"+Sp+kp+")*",z_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ep=Sp+kp+H_,$_="(?:"+[N_,Fl,Al].join("|")+")"+Ep,j_="(?:"+[yp+zo+"?",zo,Fl,Al,U_].join("|")+")",Z_=RegExp(Sl,"g"),K_=RegExp(zo,"g"),Tl=RegExp(El+"(?="+El+")|"+j_+Ep,"g"),V_=RegExp([ai+"?"+Dp+"+"+Cp+"(?="+[mp,ai,"$"].join("|")+")",q_+"+"+xp+"(?="+[mp,ai+_p,"$"].join("|")+")",ai+"?"+_p+"+"+Cp,ai+"+"+xp,G_,z_,vp,$_].join("|"),"g"),Y_=RegExp("["+bp+Ho+cp+pp+"]"),J_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,X_=["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"],Q_=-1,Ce={};Ce[gl]=Ce[ml]=Ce[vl]=Ce[Dl]=Ce[wl]=Ce[yl]=Ce[bl]=Ce[_l]=Ce[Cl]=!0,Ce[ni]=Ce[Bo]=Ce[pa]=Ce[ua]=Ce[ii]=Ce[la]=Ce[Uo]=Ce[No]=Ce[$t]=Ce[ca]=Ce[Cr]=Ce[ha]=Ce[jt]=Ce[fa]=Ce[da]=!1;var be={};be[ni]=be[Bo]=be[pa]=be[ii]=be[ua]=be[la]=be[gl]=be[ml]=be[vl]=be[Dl]=be[wl]=be[$t]=be[ca]=be[Cr]=be[ha]=be[jt]=be[fa]=be[Wo]=be[yl]=be[bl]=be[_l]=be[Cl]=!0,be[Uo]=be[No]=be[da]=!1;var eC={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},tC={"&":"&","<":"<",">":">",'"':""","'":"'"},rC={"&":"&","<":"<",">":">",""":'"',"'":"'"},nC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iC=parseFloat,aC=parseInt,Fp=typeof global=="object"&&global&&global.Object===Object&&global,oC=typeof self=="object"&&self&&self.Object===Object&&self,He=Fp||oC||Function("return this")(),Rl=typeof $i=="object"&&$i&&!$i.nodeType&&$i,yn=Rl&&typeof go=="object"&&go&&!go.nodeType&&go,Ap=yn&&yn.exports===Rl,Il=Ap&&Fp.process,Et=function(){try{var _=yn&&yn.require&&yn.require("util").types;return _||Il&&Il.binding&&Il.binding("util")}catch{}}(),Tp=Et&&Et.isArrayBuffer,Rp=Et&&Et.isDate,Ip=Et&&Et.isMap,Pp=Et&&Et.isRegExp,Lp=Et&&Et.isSet,Mp=Et&&Et.isTypedArray;function mt(_,E,k){switch(k.length){case 0:return _.call(E);case 1:return _.call(E,k[0]);case 2:return _.call(E,k[0],k[1]);case 3:return _.call(E,k[0],k[1],k[2])}return _.apply(E,k)}o(mt,"apply");function sC(_,E,k,H){for(var X=-1,de=_==null?0:_.length;++X<de;){var Ne=_[X];E(H,Ne,k(Ne),_)}return H}o(sC,"arrayAggregator");function Ft(_,E){for(var k=-1,H=_==null?0:_.length;++k<H&&E(_[k],k,_)!==!1;);return _}o(Ft,"arrayEach");function uC(_,E){for(var k=_==null?0:_.length;k--&&E(_[k],k,_)!==!1;);return _}o(uC,"arrayEachRight");function Op(_,E){for(var k=-1,H=_==null?0:_.length;++k<H;)if(!E(_[k],k,_))return!1;return!0}o(Op,"arrayEvery");function jr(_,E){for(var k=-1,H=_==null?0:_.length,X=0,de=[];++k<H;){var Ne=_[k];E(Ne,k,_)&&(de[X++]=Ne)}return de}o(jr,"arrayFilter");function Go(_,E){var k=_==null?0:_.length;return!!k&&oi(_,E,0)>-1}o(Go,"arrayIncludes");function Pl(_,E,k){for(var H=-1,X=_==null?0:_.length;++H<X;)if(k(E,_[H]))return!0;return!1}o(Pl,"arrayIncludesWith");function ke(_,E){for(var k=-1,H=_==null?0:_.length,X=Array(H);++k<H;)X[k]=E(_[k],k,_);return X}o(ke,"arrayMap");function Zr(_,E){for(var k=-1,H=E.length,X=_.length;++k<H;)_[X+k]=E[k];return _}o(Zr,"arrayPush");function Ll(_,E,k,H){var X=-1,de=_==null?0:_.length;for(H&&de&&(k=_[++X]);++X<de;)k=E(k,_[X],X,_);return k}o(Ll,"arrayReduce");function lC(_,E,k,H){var X=_==null?0:_.length;for(H&&X&&(k=_[--X]);X--;)k=E(k,_[X],X,_);return k}o(lC,"arrayReduceRight");function Ml(_,E){for(var k=-1,H=_==null?0:_.length;++k<H;)if(E(_[k],k,_))return!0;return!1}o(Ml,"arraySome");var cC=Ol("length");function hC(_){return _.split("")}o(hC,"asciiToArray");function fC(_){return _.match(y_)||[]}o(fC,"asciiWords");function Bp(_,E,k){var H;return k(_,function(X,de,Ne){if(E(X,de,Ne))return H=de,!1}),H}o(Bp,"baseFindKey");function $o(_,E,k,H){for(var X=_.length,de=k+(H?1:-1);H?de--:++de<X;)if(E(_[de],de,_))return de;return-1}o($o,"baseFindIndex");function oi(_,E,k){return E===E?xC(_,E,k):$o(_,Up,k)}o(oi,"baseIndexOf");function dC(_,E,k,H){for(var X=k-1,de=_.length;++X<de;)if(H(_[X],E))return X;return-1}o(dC,"baseIndexOfWith");function Up(_){return _!==_}o(Up,"baseIsNaN");function Np(_,E){var k=_==null?0:_.length;return k?Ul(_,E)/k:_r}o(Np,"baseMean");function Ol(_){return function(E){return E==null?e:E[_]}}o(Ol,"baseProperty");function Bl(_){return function(E){return _==null?e:_[E]}}o(Bl,"basePropertyOf");function Wp(_,E,k,H,X){return X(_,function(de,Ne,ye){k=H?(H=!1,de):E(k,de,Ne,ye)}),k}o(Wp,"baseReduce");function pC(_,E){var k=_.length;for(_.sort(E);k--;)_[k]=_[k].value;return _}o(pC,"baseSortBy");function Ul(_,E){for(var k,H=-1,X=_.length;++H<X;){var de=E(_[H]);de!==e&&(k=k===e?de:k+de)}return k}o(Ul,"baseSum");function Nl(_,E){for(var k=-1,H=Array(_);++k<_;)H[k]=E(k);return H}o(Nl,"baseTimes");function gC(_,E){return ke(E,function(k){return[k,_[k]]})}o(gC,"baseToPairs");function qp(_){return _&&_.slice(0,$p(_)+1).replace(kl,"")}o(qp,"baseTrim");function vt(_){return function(E){return _(E)}}o(vt,"baseUnary");function Wl(_,E){return ke(E,function(k){return _[k]})}o(Wl,"baseValues");function ga(_,E){return _.has(E)}o(ga,"cacheHas");function Hp(_,E){for(var k=-1,H=_.length;++k<H&&oi(E,_[k],0)>-1;);return k}o(Hp,"charsStartIndex");function zp(_,E){for(var k=_.length;k--&&oi(E,_[k],0)>-1;);return k}o(zp,"charsEndIndex");function mC(_,E){for(var k=_.length,H=0;k--;)_[k]===E&&++H;return H}o(mC,"countHolders");var vC=Bl(eC),DC=Bl(tC);function wC(_){return"\\"+nC[_]}o(wC,"escapeStringChar");function yC(_,E){return _==null?e:_[E]}o(yC,"getValue");function si(_){return Y_.test(_)}o(si,"hasUnicode");function bC(_){return J_.test(_)}o(bC,"hasUnicodeWord");function _C(_){for(var E,k=[];!(E=_.next()).done;)k.push(E.value);return k}o(_C,"iteratorToArray");function ql(_){var E=-1,k=Array(_.size);return _.forEach(function(H,X){k[++E]=[X,H]}),k}o(ql,"mapToArray");function Gp(_,E){return function(k){return _(E(k))}}o(Gp,"overArg");function Kr(_,E){for(var k=-1,H=_.length,X=0,de=[];++k<H;){var Ne=_[k];(Ne===E||Ne===v)&&(_[k]=v,de[X++]=k)}return de}o(Kr,"replaceHolders");function jo(_){var E=-1,k=Array(_.size);return _.forEach(function(H){k[++E]=H}),k}o(jo,"setToArray");function CC(_){var E=-1,k=Array(_.size);return _.forEach(function(H){k[++E]=[H,H]}),k}o(CC,"setToPairs");function xC(_,E,k){for(var H=k-1,X=_.length;++H<X;)if(_[H]===E)return H;return-1}o(xC,"strictIndexOf");function kC(_,E,k){for(var H=k+1;H--;)if(_[H]===E)return H;return H}o(kC,"strictLastIndexOf");function ui(_){return si(_)?EC(_):cC(_)}o(ui,"stringSize");function Zt(_){return si(_)?FC(_):hC(_)}o(Zt,"stringToArray");function $p(_){for(var E=_.length;E--&&m_.test(_.charAt(E)););return E}o($p,"trimmedEndIndex");var SC=Bl(rC);function EC(_){for(var E=Tl.lastIndex=0;Tl.test(_);)++E;return E}o(EC,"unicodeSize");function FC(_){return _.match(Tl)||[]}o(FC,"unicodeToArray");function AC(_){return _.match(V_)||[]}o(AC,"unicodeWords");var TC=o(function _(E){E=E==null?He:Vr.defaults(He.Object(),E,Vr.pick(He,X_));var k=E.Array,H=E.Date,X=E.Error,de=E.Function,Ne=E.Math,ye=E.Object,Hl=E.RegExp,RC=E.String,At=E.TypeError,Zo=k.prototype,IC=de.prototype,li=ye.prototype,Ko=E["__core-js_shared__"],Vo=IC.toString,ve=li.hasOwnProperty,PC=0,jp=function(){var n=/[^.]+$/.exec(Ko&&Ko.keys&&Ko.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Yo=li.toString,LC=Vo.call(ye),MC=He._,OC=Hl("^"+Vo.call(ve).replace(xl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jo=Ap?E.Buffer:e,Yr=E.Symbol,Xo=E.Uint8Array,Zp=Jo?Jo.allocUnsafe:e,Qo=Gp(ye.getPrototypeOf,ye),Kp=ye.create,Vp=li.propertyIsEnumerable,es=Zo.splice,Yp=Yr?Yr.isConcatSpreadable:e,ma=Yr?Yr.iterator:e,bn=Yr?Yr.toStringTag:e,ts=function(){try{var n=Sn(ye,"defineProperty");return n({},"",{}),n}catch{}}(),BC=E.clearTimeout!==He.clearTimeout&&E.clearTimeout,UC=H&&H.now!==He.Date.now&&H.now,NC=E.setTimeout!==He.setTimeout&&E.setTimeout,rs=Ne.ceil,ns=Ne.floor,zl=ye.getOwnPropertySymbols,WC=Jo?Jo.isBuffer:e,Jp=E.isFinite,qC=Zo.join,HC=Gp(ye.keys,ye),We=Ne.max,Je=Ne.min,zC=H.now,GC=E.parseInt,Xp=Ne.random,$C=Zo.reverse,Gl=Sn(E,"DataView"),va=Sn(E,"Map"),$l=Sn(E,"Promise"),ci=Sn(E,"Set"),Da=Sn(E,"WeakMap"),wa=Sn(ye,"create"),is=Da&&new Da,hi={},jC=En(Gl),ZC=En(va),KC=En($l),VC=En(ci),YC=En(Da),as=Yr?Yr.prototype:e,ya=as?as.valueOf:e,Qp=as?as.toString:e;function m(n){if(Te(n)&&!Q(n)&&!(n instanceof se)){if(n instanceof Tt)return n;if(ve.call(n,"__wrapped__"))return em(n)}return new Tt(n)}o(m,"lodash");var fi=function(){function n(){}return o(n,"object"),function(a){if(!Ee(a))return{};if(Kp)return Kp(a);n.prototype=a;var l=new n;return n.prototype=e,l}}();function os(){}o(os,"baseLodash");function Tt(n,a){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=e}o(Tt,"LodashWrapper"),m.templateSettings={escape:c_,evaluate:h_,interpolate:up,variable:"",imports:{_:m}},m.prototype=os.prototype,m.prototype.constructor=m,Tt.prototype=fi(os.prototype),Tt.prototype.constructor=Tt;function se(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=sr,this.__views__=[]}o(se,"LazyWrapper");function JC(){var n=new se(this.__wrapped__);return n.__actions__=lt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=lt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=lt(this.__views__),n}o(JC,"lazyClone");function XC(){if(this.__filtered__){var n=new se(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}o(XC,"lazyReverse");function QC(){var n=this.__wrapped__.value(),a=this.__dir__,l=Q(n),h=a<0,d=l?n.length:0,D=hx(0,d,this.__views__),w=D.start,y=D.end,C=y-w,T=h?y:w-1,R=this.__iteratees__,M=R.length,W=0,j=Je(C,this.__takeCount__);if(!l||!h&&d==C&&j==C)return Cg(n,this.__actions__);var V=[];e:for(;C--&&W<j;){T+=a;for(var ie=-1,Y=n[T];++ie<M;){var oe=R[ie],ue=oe.iteratee,yt=oe.type,it=ue(Y);if(yt==$r)Y=it;else if(!it){if(yt==Ye)continue e;break e}}V[W++]=Y}return V}o(QC,"lazyValue"),se.prototype=fi(os.prototype),se.prototype.constructor=se;function _n(n){var a=-1,l=n==null?0:n.length;for(this.clear();++a<l;){var h=n[a];this.set(h[0],h[1])}}o(_n,"Hash");function e1(){this.__data__=wa?wa(null):{},this.size=0}o(e1,"hashClear");function t1(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}o(t1,"hashDelete");function r1(n){var a=this.__data__;if(wa){var l=a[n];return l===c?e:l}return ve.call(a,n)?a[n]:e}o(r1,"hashGet");function n1(n){var a=this.__data__;return wa?a[n]!==e:ve.call(a,n)}o(n1,"hashHas");function i1(n,a){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=wa&&a===e?c:a,this}o(i1,"hashSet"),_n.prototype.clear=e1,_n.prototype.delete=t1,_n.prototype.get=r1,_n.prototype.has=n1,_n.prototype.set=i1;function xr(n){var a=-1,l=n==null?0:n.length;for(this.clear();++a<l;){var h=n[a];this.set(h[0],h[1])}}o(xr,"ListCache");function a1(){this.__data__=[],this.size=0}o(a1,"listCacheClear");function o1(n){var a=this.__data__,l=ss(a,n);if(l<0)return!1;var h=a.length-1;return l==h?a.pop():es.call(a,l,1),--this.size,!0}o(o1,"listCacheDelete");function s1(n){var a=this.__data__,l=ss(a,n);return l<0?e:a[l][1]}o(s1,"listCacheGet");function u1(n){return ss(this.__data__,n)>-1}o(u1,"listCacheHas");function l1(n,a){var l=this.__data__,h=ss(l,n);return h<0?(++this.size,l.push([n,a])):l[h][1]=a,this}o(l1,"listCacheSet"),xr.prototype.clear=a1,xr.prototype.delete=o1,xr.prototype.get=s1,xr.prototype.has=u1,xr.prototype.set=l1;function kr(n){var a=-1,l=n==null?0:n.length;for(this.clear();++a<l;){var h=n[a];this.set(h[0],h[1])}}o(kr,"MapCache");function c1(){this.size=0,this.__data__={hash:new _n,map:new(va||xr),string:new _n}}o(c1,"mapCacheClear");function h1(n){var a=ws(this,n).delete(n);return this.size-=a?1:0,a}o(h1,"mapCacheDelete");function f1(n){return ws(this,n).get(n)}o(f1,"mapCacheGet");function d1(n){return ws(this,n).has(n)}o(d1,"mapCacheHas");function p1(n,a){var l=ws(this,n),h=l.size;return l.set(n,a),this.size+=l.size==h?0:1,this}o(p1,"mapCacheSet"),kr.prototype.clear=c1,kr.prototype.delete=h1,kr.prototype.get=f1,kr.prototype.has=d1,kr.prototype.set=p1;function Cn(n){var a=-1,l=n==null?0:n.length;for(this.__data__=new kr;++a<l;)this.add(n[a])}o(Cn,"SetCache");function g1(n){return this.__data__.set(n,c),this}o(g1,"setCacheAdd");function m1(n){return this.__data__.has(n)}o(m1,"setCacheHas"),Cn.prototype.add=Cn.prototype.push=g1,Cn.prototype.has=m1;function Kt(n){var a=this.__data__=new xr(n);this.size=a.size}o(Kt,"Stack");function v1(){this.__data__=new xr,this.size=0}o(v1,"stackClear");function D1(n){var a=this.__data__,l=a.delete(n);return this.size=a.size,l}o(D1,"stackDelete");function w1(n){return this.__data__.get(n)}o(w1,"stackGet");function y1(n){return this.__data__.has(n)}o(y1,"stackHas");function b1(n,a){var l=this.__data__;if(l instanceof xr){var h=l.__data__;if(!va||h.length<r-1)return h.push([n,a]),this.size=++l.size,this;l=this.__data__=new kr(h)}return l.set(n,a),this.size=l.size,this}o(b1,"stackSet"),Kt.prototype.clear=v1,Kt.prototype.delete=D1,Kt.prototype.get=w1,Kt.prototype.has=y1,Kt.prototype.set=b1;function eg(n,a){var l=Q(n),h=!l&&Fn(n),d=!l&&!h&&tn(n),D=!l&&!h&&!d&&mi(n),w=l||h||d||D,y=w?Nl(n.length,RC):[],C=y.length;for(var T in n)(a||ve.call(n,T))&&!(w&&(T=="length"||d&&(T=="offset"||T=="parent")||D&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||Ar(T,C)))&&y.push(T);return y}o(eg,"arrayLikeKeys");function tg(n){var a=n.length;return a?n[rc(0,a-1)]:e}o(tg,"arraySample");function _1(n,a){return ys(lt(n),xn(a,0,n.length))}o(_1,"arraySampleSize");function C1(n){return ys(lt(n))}o(C1,"arrayShuffle");function jl(n,a,l){(l!==e&&!Vt(n[a],l)||l===e&&!(a in n))&&Sr(n,a,l)}o(jl,"assignMergeValue");function ba(n,a,l){var h=n[a];(!(ve.call(n,a)&&Vt(h,l))||l===e&&!(a in n))&&Sr(n,a,l)}o(ba,"assignValue");function ss(n,a){for(var l=n.length;l--;)if(Vt(n[l][0],a))return l;return-1}o(ss,"assocIndexOf");function x1(n,a,l,h){return Jr(n,function(d,D,w){a(h,d,l(d),w)}),h}o(x1,"baseAggregator");function rg(n,a){return n&&lr(a,ze(a),n)}o(rg,"baseAssign");function k1(n,a){return n&&lr(a,ht(a),n)}o(k1,"baseAssignIn");function Sr(n,a,l){a=="__proto__"&&ts?ts(n,a,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[a]=l}o(Sr,"baseAssignValue");function Zl(n,a){for(var l=-1,h=a.length,d=k(h),D=n==null;++l<h;)d[l]=D?e:Ec(n,a[l]);return d}o(Zl,"baseAt");function xn(n,a,l){return n===n&&(l!==e&&(n=n<=l?n:l),a!==e&&(n=n>=a?n:a)),n}o(xn,"baseClamp");function Rt(n,a,l,h,d,D){var w,y=a&p,C=a&g,T=a&b;if(l&&(w=d?l(n,h,d,D):l(n)),w!==e)return w;if(!Ee(n))return n;var R=Q(n);if(R){if(w=dx(n),!y)return lt(n,w)}else{var M=Xe(n),W=M==No||M==ip;if(tn(n))return Sg(n,y);if(M==Cr||M==ni||W&&!d){if(w=C||W?{}:$g(n),!y)return C?rx(n,k1(w,n)):tx(n,rg(w,n))}else{if(!be[M])return d?n:{};w=px(n,M,y)}}D||(D=new Kt);var j=D.get(n);if(j)return j;D.set(n,w),ym(n)?n.forEach(function(Y){w.add(Rt(Y,a,l,Y,n,D))}):Dm(n)&&n.forEach(function(Y,oe){w.set(oe,Rt(Y,a,l,oe,n,D))});var V=T?C?dc:fc:C?ht:ze,ie=R?e:V(n);return Ft(ie||n,function(Y,oe){ie&&(oe=Y,Y=n[oe]),ba(w,oe,Rt(Y,a,l,oe,n,D))}),w}o(Rt,"baseClone");function S1(n){var a=ze(n);return function(l){return ng(l,n,a)}}o(S1,"baseConforms");function ng(n,a,l){var h=l.length;if(n==null)return!h;for(n=ye(n);h--;){var d=l[h],D=a[d],w=n[d];if(w===e&&!(d in n)||!D(w))return!1}return!0}o(ng,"baseConformsTo");function ig(n,a,l){if(typeof n!="function")throw new At(s);return Fa(function(){n.apply(e,l)},a)}o(ig,"baseDelay");function _a(n,a,l,h){var d=-1,D=Go,w=!0,y=n.length,C=[],T=a.length;if(!y)return C;l&&(a=ke(a,vt(l))),h?(D=Pl,w=!1):a.length>=r&&(D=ga,w=!1,a=new Cn(a));e:for(;++d<y;){var R=n[d],M=l==null?R:l(R);if(R=h||R!==0?R:0,w&&M===M){for(var W=T;W--;)if(a[W]===M)continue e;C.push(R)}else D(a,M,h)||C.push(R)}return C}o(_a,"baseDifference");var Jr=Rg(ur),ag=Rg(Vl,!0);function E1(n,a){var l=!0;return Jr(n,function(h,d,D){return l=!!a(h,d,D),l}),l}o(E1,"baseEvery");function us(n,a,l){for(var h=-1,d=n.length;++h<d;){var D=n[h],w=a(D);if(w!=null&&(y===e?w===w&&!wt(w):l(w,y)))var y=w,C=D}return C}o(us,"baseExtremum");function F1(n,a,l,h){var d=n.length;for(l=re(l),l<0&&(l=-l>d?0:d+l),h=h===e||h>d?d:re(h),h<0&&(h+=d),h=l>h?0:_m(h);l<h;)n[l++]=a;return n}o(F1,"baseFill");function og(n,a){var l=[];return Jr(n,function(h,d,D){a(h,d,D)&&l.push(h)}),l}o(og,"baseFilter");function Ze(n,a,l,h,d){var D=-1,w=n.length;for(l||(l=mx),d||(d=[]);++D<w;){var y=n[D];a>0&&l(y)?a>1?Ze(y,a-1,l,h,d):Zr(d,y):h||(d[d.length]=y)}return d}o(Ze,"baseFlatten");var Kl=Ig(),sg=Ig(!0);function ur(n,a){return n&&Kl(n,a,ze)}o(ur,"baseForOwn");function Vl(n,a){return n&&sg(n,a,ze)}o(Vl,"baseForOwnRight");function ls(n,a){return jr(a,function(l){return Tr(n[l])})}o(ls,"baseFunctions");function kn(n,a){a=Qr(a,n);for(var l=0,h=a.length;n!=null&&l<h;)n=n[cr(a[l++])];return l&&l==h?n:e}o(kn,"baseGet");function ug(n,a,l){var h=a(n);return Q(n)?h:Zr(h,l(n))}o(ug,"baseGetAllKeys");function rt(n){return n==null?n===e?n_:t_:bn&&bn in ye(n)?cx(n):Cx(n)}o(rt,"baseGetTag");function Yl(n,a){return n>a}o(Yl,"baseGt");function A1(n,a){return n!=null&&ve.call(n,a)}o(A1,"baseHas");function T1(n,a){return n!=null&&a in ye(n)}o(T1,"baseHasIn");function R1(n,a,l){return n>=Je(a,l)&&n<We(a,l)}o(R1,"baseInRange");function Jl(n,a,l){for(var h=l?Pl:Go,d=n[0].length,D=n.length,w=D,y=k(D),C=1/0,T=[];w--;){var R=n[w];w&&a&&(R=ke(R,vt(a))),C=Je(R.length,C),y[w]=!l&&(a||d>=120&&R.length>=120)?new Cn(w&&R):e}R=n[0];var M=-1,W=y[0];e:for(;++M<d&&T.length<C;){var j=R[M],V=a?a(j):j;if(j=l||j!==0?j:0,!(W?ga(W,V):h(T,V,l))){for(w=D;--w;){var ie=y[w];if(!(ie?ga(ie,V):h(n[w],V,l)))continue e}W&&W.push(V),T.push(j)}}return T}o(Jl,"baseIntersection");function I1(n,a,l,h){return ur(n,function(d,D,w){a(h,l(d),D,w)}),h}o(I1,"baseInverter");function Ca(n,a,l){a=Qr(a,n),n=Vg(n,a);var h=n==null?n:n[cr(Pt(a))];return h==null?e:mt(h,n,l)}o(Ca,"baseInvoke");function lg(n){return Te(n)&&rt(n)==ni}o(lg,"baseIsArguments");function P1(n){return Te(n)&&rt(n)==pa}o(P1,"baseIsArrayBuffer");function L1(n){return Te(n)&&rt(n)==la}o(L1,"baseIsDate");function xa(n,a,l,h,d){return n===a?!0:n==null||a==null||!Te(n)&&!Te(a)?n!==n&&a!==a:M1(n,a,l,h,xa,d)}o(xa,"baseIsEqual");function M1(n,a,l,h,d,D){var w=Q(n),y=Q(a),C=w?Bo:Xe(n),T=y?Bo:Xe(a);C=C==ni?Cr:C,T=T==ni?Cr:T;var R=C==Cr,M=T==Cr,W=C==T;if(W&&tn(n)){if(!tn(a))return!1;w=!0,R=!1}if(W&&!R)return D||(D=new Kt),w||mi(n)?Hg(n,a,l,h,d,D):ux(n,a,C,l,h,d,D);if(!(l&x)){var j=R&&ve.call(n,"__wrapped__"),V=M&&ve.call(a,"__wrapped__");if(j||V){var ie=j?n.value():n,Y=V?a.value():a;return D||(D=new Kt),d(ie,Y,l,h,D)}}return W?(D||(D=new Kt),lx(n,a,l,h,d,D)):!1}o(M1,"baseIsEqualDeep");function O1(n){return Te(n)&&Xe(n)==$t}o(O1,"baseIsMap");function Xl(n,a,l,h){var d=l.length,D=d,w=!h;if(n==null)return!D;for(n=ye(n);d--;){var y=l[d];if(w&&y[2]?y[1]!==n[y[0]]:!(y[0]in n))return!1}for(;++d<D;){y=l[d];var C=y[0],T=n[C],R=y[1];if(w&&y[2]){if(T===e&&!(C in n))return!1}else{var M=new Kt;if(h)var W=h(T,R,C,n,a,M);if(!(W===e?xa(R,T,x|S,h,M):W))return!1}}return!0}o(Xl,"baseIsMatch");function cg(n){if(!Ee(n)||Dx(n))return!1;var a=Tr(n)?OC:S_;return a.test(En(n))}o(cg,"baseIsNative");function B1(n){return Te(n)&&rt(n)==ha}o(B1,"baseIsRegExp");function U1(n){return Te(n)&&Xe(n)==jt}o(U1,"baseIsSet");function N1(n){return Te(n)&&Ss(n.length)&&!!Ce[rt(n)]}o(N1,"baseIsTypedArray");function hg(n){return typeof n=="function"?n:n==null?ft:typeof n=="object"?Q(n)?pg(n[0],n[1]):dg(n):Pm(n)}o(hg,"baseIteratee");function Ql(n){if(!Ea(n))return HC(n);var a=[];for(var l in ye(n))ve.call(n,l)&&l!="constructor"&&a.push(l);return a}o(Ql,"baseKeys");function W1(n){if(!Ee(n))return _x(n);var a=Ea(n),l=[];for(var h in n)h=="constructor"&&(a||!ve.call(n,h))||l.push(h);return l}o(W1,"baseKeysIn");function ec(n,a){return n<a}o(ec,"baseLt");function fg(n,a){var l=-1,h=ct(n)?k(n.length):[];return Jr(n,function(d,D,w){h[++l]=a(d,D,w)}),h}o(fg,"baseMap");function dg(n){var a=gc(n);return a.length==1&&a[0][2]?Zg(a[0][0],a[0][1]):function(l){return l===n||Xl(l,n,a)}}o(dg,"baseMatches");function pg(n,a){return vc(n)&&jg(a)?Zg(cr(n),a):function(l){var h=Ec(l,n);return h===e&&h===a?Fc(l,n):xa(a,h,x|S)}}o(pg,"baseMatchesProperty");function cs(n,a,l,h,d){n!==a&&Kl(a,function(D,w){if(d||(d=new Kt),Ee(D))q1(n,a,w,l,cs,h,d);else{var y=h?h(wc(n,w),D,w+"",n,a,d):e;y===e&&(y=D),jl(n,w,y)}},ht)}o(cs,"baseMerge");function q1(n,a,l,h,d,D,w){var y=wc(n,l),C=wc(a,l),T=w.get(C);if(T){jl(n,l,T);return}var R=D?D(y,C,l+"",n,a,w):e,M=R===e;if(M){var W=Q(C),j=!W&&tn(C),V=!W&&!j&&mi(C);R=C,W||j||V?Q(y)?R=y:Ie(y)?R=lt(y):j?(M=!1,R=Sg(C,!0)):V?(M=!1,R=Eg(C,!0)):R=[]:Aa(C)||Fn(C)?(R=y,Fn(y)?R=Cm(y):(!Ee(y)||Tr(y))&&(R=$g(C))):M=!1}M&&(w.set(C,R),d(R,C,h,D,w),w.delete(C)),jl(n,l,R)}o(q1,"baseMergeDeep");function gg(n,a){var l=n.length;if(l)return a+=a<0?l:0,Ar(a,l)?n[a]:e}o(gg,"baseNth");function mg(n,a,l){a.length?a=ke(a,function(D){return Q(D)?function(w){return kn(w,D.length===1?D[0]:D)}:D}):a=[ft];var h=-1;a=ke(a,vt(K()));var d=fg(n,function(D,w,y){var C=ke(a,function(T){return T(D)});return{criteria:C,index:++h,value:D}});return pC(d,function(D,w){return ex(D,w,l)})}o(mg,"baseOrderBy");function H1(n,a){return vg(n,a,function(l,h){return Fc(n,h)})}o(H1,"basePick");function vg(n,a,l){for(var h=-1,d=a.length,D={};++h<d;){var w=a[h],y=kn(n,w);l(y,w)&&ka(D,Qr(w,n),y)}return D}o(vg,"basePickBy");function z1(n){return function(a){return kn(a,n)}}o(z1,"basePropertyDeep");function tc(n,a,l,h){var d=h?dC:oi,D=-1,w=a.length,y=n;for(n===a&&(a=lt(a)),l&&(y=ke(n,vt(l)));++D<w;)for(var C=0,T=a[D],R=l?l(T):T;(C=d(y,R,C,h))>-1;)y!==n&&es.call(y,C,1),es.call(n,C,1);return n}o(tc,"basePullAll");function Dg(n,a){for(var l=n?a.length:0,h=l-1;l--;){var d=a[l];if(l==h||d!==D){var D=d;Ar(d)?es.call(n,d,1):ac(n,d)}}return n}o(Dg,"basePullAt");function rc(n,a){return n+ns(Xp()*(a-n+1))}o(rc,"baseRandom");function G1(n,a,l,h){for(var d=-1,D=We(rs((a-n)/(l||1)),0),w=k(D);D--;)w[h?D:++d]=n,n+=l;return w}o(G1,"baseRange");function nc(n,a){var l="";if(!n||a<1||a>Gt)return l;do a%2&&(l+=n),a=ns(a/2),a&&(n+=n);while(a);return l}o(nc,"baseRepeat");function ae(n,a){return yc(Kg(n,a,ft),n+"")}o(ae,"baseRest");function $1(n){return tg(vi(n))}o($1,"baseSample");function j1(n,a){var l=vi(n);return ys(l,xn(a,0,l.length))}o(j1,"baseSampleSize");function ka(n,a,l,h){if(!Ee(n))return n;a=Qr(a,n);for(var d=-1,D=a.length,w=D-1,y=n;y!=null&&++d<D;){var C=cr(a[d]),T=l;if(C==="__proto__"||C==="constructor"||C==="prototype")return n;if(d!=w){var R=y[C];T=h?h(R,C,y):e,T===e&&(T=Ee(R)?R:Ar(a[d+1])?[]:{})}ba(y,C,T),y=y[C]}return n}o(ka,"baseSet");var wg=is?function(n,a){return is.set(n,a),n}:ft,Z1=ts?function(n,a){return ts(n,"toString",{configurable:!0,enumerable:!1,value:Tc(a),writable:!0})}:ft;function K1(n){return ys(vi(n))}o(K1,"baseShuffle");function It(n,a,l){var h=-1,d=n.length;a<0&&(a=-a>d?0:d+a),l=l>d?d:l,l<0&&(l+=d),d=a>l?0:l-a>>>0,a>>>=0;for(var D=k(d);++h<d;)D[h]=n[h+a];return D}o(It,"baseSlice");function V1(n,a){var l;return Jr(n,function(h,d,D){return l=a(h,d,D),!l}),!!l}o(V1,"baseSome");function hs(n,a,l){var h=0,d=n==null?h:n.length;if(typeof a=="number"&&a===a&&d<=Jb){for(;h<d;){var D=h+d>>>1,w=n[D];w!==null&&!wt(w)&&(l?w<=a:w<a)?h=D+1:d=D}return d}return ic(n,a,ft,l)}o(hs,"baseSortedIndex");function ic(n,a,l,h){var d=0,D=n==null?0:n.length;if(D===0)return 0;a=l(a);for(var w=a!==a,y=a===null,C=wt(a),T=a===e;d<D;){var R=ns((d+D)/2),M=l(n[R]),W=M!==e,j=M===null,V=M===M,ie=wt(M);if(w)var Y=h||V;else T?Y=V&&(h||W):y?Y=V&&W&&(h||!j):C?Y=V&&W&&!j&&(h||!ie):j||ie?Y=!1:Y=h?M<=a:M<a;Y?d=R+1:D=R}return Je(D,Yb)}o(ic,"baseSortedIndexBy");function yg(n,a){for(var l=-1,h=n.length,d=0,D=[];++l<h;){var w=n[l],y=a?a(w):w;if(!l||!Vt(y,C)){var C=y;D[d++]=w===0?0:w}}return D}o(yg,"baseSortedUniq");function bg(n){return typeof n=="number"?n:wt(n)?_r:+n}o(bg,"baseToNumber");function Dt(n){if(typeof n=="string")return n;if(Q(n))return ke(n,Dt)+"";if(wt(n))return Qp?Qp.call(n):"";var a=n+"";return a=="0"&&1/n==-or?"-0":a}o(Dt,"baseToString");function Xr(n,a,l){var h=-1,d=Go,D=n.length,w=!0,y=[],C=y;if(l)w=!1,d=Pl;else if(D>=r){var T=a?null:ox(n);if(T)return jo(T);w=!1,d=ga,C=new Cn}else C=a?[]:y;e:for(;++h<D;){var R=n[h],M=a?a(R):R;if(R=l||R!==0?R:0,w&&M===M){for(var W=C.length;W--;)if(C[W]===M)continue e;a&&C.push(M),y.push(R)}else d(C,M,l)||(C!==y&&C.push(M),y.push(R))}return y}o(Xr,"baseUniq");function ac(n,a){return a=Qr(a,n),n=Vg(n,a),n==null||delete n[cr(Pt(a))]}o(ac,"baseUnset");function _g(n,a,l,h){return ka(n,a,l(kn(n,a)),h)}o(_g,"baseUpdate");function fs(n,a,l,h){for(var d=n.length,D=h?d:-1;(h?D--:++D<d)&&a(n[D],D,n););return l?It(n,h?0:D,h?D+1:d):It(n,h?D+1:0,h?d:D)}o(fs,"baseWhile");function Cg(n,a){var l=n;return l instanceof se&&(l=l.value()),Ll(a,function(h,d){return d.func.apply(d.thisArg,Zr([h],d.args))},l)}o(Cg,"baseWrapperValue");function oc(n,a,l){var h=n.length;if(h<2)return h?Xr(n[0]):[];for(var d=-1,D=k(h);++d<h;)for(var w=n[d],y=-1;++y<h;)y!=d&&(D[d]=_a(D[d]||w,n[y],a,l));return Xr(Ze(D,1),a,l)}o(oc,"baseXor");function xg(n,a,l){for(var h=-1,d=n.length,D=a.length,w={};++h<d;){var y=h<D?a[h]:e;l(w,n[h],y)}return w}o(xg,"baseZipObject");function sc(n){return Ie(n)?n:[]}o(sc,"castArrayLikeObject");function uc(n){return typeof n=="function"?n:ft}o(uc,"castFunction");function Qr(n,a){return Q(n)?n:vc(n,a)?[n]:Qg(me(n))}o(Qr,"castPath");var Y1=ae;function en(n,a,l){var h=n.length;return l=l===e?h:l,!a&&l>=h?n:It(n,a,l)}o(en,"castSlice");var kg=BC||function(n){return He.clearTimeout(n)};function Sg(n,a){if(a)return n.slice();var l=n.length,h=Zp?Zp(l):new n.constructor(l);return n.copy(h),h}o(Sg,"cloneBuffer");function lc(n){var a=new n.constructor(n.byteLength);return new Xo(a).set(new Xo(n)),a}o(lc,"cloneArrayBuffer");function J1(n,a){var l=a?lc(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}o(J1,"cloneDataView");function X1(n){var a=new n.constructor(n.source,lp.exec(n));return a.lastIndex=n.lastIndex,a}o(X1,"cloneRegExp");function Q1(n){return ya?ye(ya.call(n)):{}}o(Q1,"cloneSymbol");function Eg(n,a){var l=a?lc(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}o(Eg,"cloneTypedArray");function Fg(n,a){if(n!==a){var l=n!==e,h=n===null,d=n===n,D=wt(n),w=a!==e,y=a===null,C=a===a,T=wt(a);if(!y&&!T&&!D&&n>a||D&&w&&C&&!y&&!T||h&&w&&C||!l&&C||!d)return 1;if(!h&&!D&&!T&&n<a||T&&l&&d&&!h&&!D||y&&l&&d||!w&&d||!C)return-1}return 0}o(Fg,"compareAscending");function ex(n,a,l){for(var h=-1,d=n.criteria,D=a.criteria,w=d.length,y=l.length;++h<w;){var C=Fg(d[h],D[h]);if(C){if(h>=y)return C;var T=l[h];return C*(T=="desc"?-1:1)}}return n.index-a.index}o(ex,"compareMultiple");function Ag(n,a,l,h){for(var d=-1,D=n.length,w=l.length,y=-1,C=a.length,T=We(D-w,0),R=k(C+T),M=!h;++y<C;)R[y]=a[y];for(;++d<w;)(M||d<D)&&(R[l[d]]=n[d]);for(;T--;)R[y++]=n[d++];return R}o(Ag,"composeArgs");function Tg(n,a,l,h){for(var d=-1,D=n.length,w=-1,y=l.length,C=-1,T=a.length,R=We(D-y,0),M=k(R+T),W=!h;++d<R;)M[d]=n[d];for(var j=d;++C<T;)M[j+C]=a[C];for(;++w<y;)(W||d<D)&&(M[j+l[w]]=n[d++]);return M}o(Tg,"composeArgsRight");function lt(n,a){var l=-1,h=n.length;for(a||(a=k(h));++l<h;)a[l]=n[l];return a}o(lt,"copyArray");function lr(n,a,l,h){var d=!l;l||(l={});for(var D=-1,w=a.length;++D<w;){var y=a[D],C=h?h(l[y],n[y],y,l,n):e;C===e&&(C=n[y]),d?Sr(l,y,C):ba(l,y,C)}return l}o(lr,"copyObject");function tx(n,a){return lr(n,mc(n),a)}o(tx,"copySymbols");function rx(n,a){return lr(n,zg(n),a)}o(rx,"copySymbolsIn");function ds(n,a){return function(l,h){var d=Q(l)?sC:x1,D=a?a():{};return d(l,n,K(h,2),D)}}o(ds,"createAggregator");function di(n){return ae(function(a,l){var h=-1,d=l.length,D=d>1?l[d-1]:e,w=d>2?l[2]:e;for(D=n.length>3&&typeof D=="function"?(d--,D):e,w&&nt(l[0],l[1],w)&&(D=d<3?e:D,d=1),a=ye(a);++h<d;){var y=l[h];y&&n(a,y,h,D)}return a})}o(di,"createAssigner");function Rg(n,a){return function(l,h){if(l==null)return l;if(!ct(l))return n(l,h);for(var d=l.length,D=a?d:-1,w=ye(l);(a?D--:++D<d)&&h(w[D],D,w)!==!1;);return l}}o(Rg,"createBaseEach");function Ig(n){return function(a,l,h){for(var d=-1,D=ye(a),w=h(a),y=w.length;y--;){var C=w[n?y:++d];if(l(D[C],C,D)===!1)break}return a}}o(Ig,"createBaseFor");function nx(n,a,l){var h=a&L,d=Sa(n);function D(){var w=this&&this!==He&&this instanceof D?d:n;return w.apply(h?l:this,arguments)}return o(D,"wrapper"),D}o(nx,"createBind");function Pg(n){return function(a){a=me(a);var l=si(a)?Zt(a):e,h=l?l[0]:a.charAt(0),d=l?en(l,1).join(""):a.slice(1);return h[n]()+d}}o(Pg,"createCaseFirst");function pi(n){return function(a){return Ll(Rm(Tm(a).replace(Z_,"")),n,"")}}o(pi,"createCompounder");function Sa(n){return function(){var a=arguments;switch(a.length){case 0:return new n;case 1:return new n(a[0]);case 2:return new n(a[0],a[1]);case 3:return new n(a[0],a[1],a[2]);case 4:return new n(a[0],a[1],a[2],a[3]);case 5:return new n(a[0],a[1],a[2],a[3],a[4]);case 6:return new n(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new n(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var l=fi(n.prototype),h=n.apply(l,a);return Ee(h)?h:l}}o(Sa,"createCtor");function ix(n,a,l){var h=Sa(n);function d(){for(var D=arguments.length,w=k(D),y=D,C=gi(d);y--;)w[y]=arguments[y];var T=D<3&&w[0]!==C&&w[D-1]!==C?[]:Kr(w,C);if(D-=T.length,D<l)return Ug(n,a,ps,d.placeholder,e,w,T,e,e,l-D);var R=this&&this!==He&&this instanceof d?h:n;return mt(R,this,w)}return o(d,"wrapper"),d}o(ix,"createCurry");function Lg(n){return function(a,l,h){var d=ye(a);if(!ct(a)){var D=K(l,3);a=ze(a),l=o(function(y){return D(d[y],y,d)},"predicate")}var w=n(a,l,h);return w>-1?d[D?a[w]:w]:e}}o(Lg,"createFind");function Mg(n){return Fr(function(a){var l=a.length,h=l,d=Tt.prototype.thru;for(n&&a.reverse();h--;){var D=a[h];if(typeof D!="function")throw new At(s);if(d&&!w&&Ds(D)=="wrapper")var w=new Tt([],!0)}for(h=w?h:l;++h<l;){D=a[h];var y=Ds(D),C=y=="wrapper"?pc(D):e;C&&Dc(C[0])&&C[1]==(F|A|N|q)&&!C[4].length&&C[9]==1?w=w[Ds(C[0])].apply(w,C[3]):w=D.length==1&&Dc(D)?w[y]():w.thru(D)}return function(){var T=arguments,R=T[0];if(w&&T.length==1&&Q(R))return w.plant(R).value();for(var M=0,W=l?a[M].apply(this,T):R;++M<l;)W=a[M].call(this,W);return W}})}o(Mg,"createFlow");function ps(n,a,l,h,d,D,w,y,C,T){var R=a&F,M=a&L,W=a&P,j=a&(A|I),V=a&G,ie=W?e:Sa(n);function Y(){for(var oe=arguments.length,ue=k(oe),yt=oe;yt--;)ue[yt]=arguments[yt];if(j)var it=gi(Y),bt=mC(ue,it);if(h&&(ue=Ag(ue,h,d,j)),D&&(ue=Tg(ue,D,w,j)),oe-=bt,j&&oe<T){var Pe=Kr(ue,it);return Ug(n,a,ps,Y.placeholder,l,ue,Pe,y,C,T-oe)}var Yt=M?l:this,Ir=W?Yt[n]:n;return oe=ue.length,y?ue=xx(ue,y):V&&oe>1&&ue.reverse(),R&&C<oe&&(ue.length=C),this&&this!==He&&this instanceof Y&&(Ir=ie||Sa(Ir)),Ir.apply(Yt,ue)}return o(Y,"wrapper"),Y}o(ps,"createHybrid");function Og(n,a){return function(l,h){return I1(l,n,a(h),{})}}o(Og,"createInverter");function gs(n,a){return function(l,h){var d;if(l===e&&h===e)return a;if(l!==e&&(d=l),h!==e){if(d===e)return h;typeof l=="string"||typeof h=="string"?(l=Dt(l),h=Dt(h)):(l=bg(l),h=bg(h)),d=n(l,h)}return d}}o(gs,"createMathOperation");function cc(n){return Fr(function(a){return a=ke(a,vt(K())),ae(function(l){var h=this;return n(a,function(d){return mt(d,h,l)})})})}o(cc,"createOver");function ms(n,a){a=a===e?" ":Dt(a);var l=a.length;if(l<2)return l?nc(a,n):a;var h=nc(a,rs(n/ui(a)));return si(a)?en(Zt(h),0,n).join(""):h.slice(0,n)}o(ms,"createPadding");function ax(n,a,l,h){var d=a&L,D=Sa(n);function w(){for(var y=-1,C=arguments.length,T=-1,R=h.length,M=k(R+C),W=this&&this!==He&&this instanceof w?D:n;++T<R;)M[T]=h[T];for(;C--;)M[T++]=arguments[++y];return mt(W,d?l:this,M)}return o(w,"wrapper"),w}o(ax,"createPartial");function Bg(n){return function(a,l,h){return h&&typeof h!="number"&&nt(a,l,h)&&(l=h=e),a=Rr(a),l===e?(l=a,a=0):l=Rr(l),h=h===e?a<l?1:-1:Rr(h),G1(a,l,h,n)}}o(Bg,"createRange");function vs(n){return function(a,l){return typeof a=="string"&&typeof l=="string"||(a=Lt(a),l=Lt(l)),n(a,l)}}o(vs,"createRelationalOperation");function Ug(n,a,l,h,d,D,w,y,C,T){var R=a&A,M=R?w:e,W=R?e:w,j=R?D:e,V=R?e:D;a|=R?N:B,a&=~(R?B:N),a&U||(a&=~(L|P));var ie=[n,a,d,j,M,V,W,y,C,T],Y=l.apply(e,ie);return Dc(n)&&Yg(Y,ie),Y.placeholder=h,Jg(Y,n,a)}o(Ug,"createRecurry");function hc(n){var a=Ne[n];return function(l,h){if(l=Lt(l),h=h==null?0:Je(re(h),292),h&&Jp(l)){var d=(me(l)+"e").split("e"),D=a(d[0]+"e"+(+d[1]+h));return d=(me(D)+"e").split("e"),+(d[0]+"e"+(+d[1]-h))}return a(l)}}o(hc,"createRound");var ox=ci&&1/jo(new ci([,-0]))[1]==or?function(n){return new ci(n)}:Pc;function Ng(n){return function(a){var l=Xe(a);return l==$t?ql(a):l==jt?CC(a):gC(a,n(a))}}o(Ng,"createToPairs");function Er(n,a,l,h,d,D,w,y){var C=a&P;if(!C&&typeof n!="function")throw new At(s);var T=h?h.length:0;if(T||(a&=~(N|B),h=d=e),w=w===e?w:We(re(w),0),y=y===e?y:re(y),T-=d?d.length:0,a&B){var R=h,M=d;h=d=e}var W=C?e:pc(n),j=[n,a,l,h,d,R,M,D,w,y];if(W&&bx(j,W),n=j[0],a=j[1],l=j[2],h=j[3],d=j[4],y=j[9]=j[9]===e?C?0:n.length:We(j[9]-T,0),!y&&a&(A|I)&&(a&=~(A|I)),!a||a==L)var V=nx(n,a,l);else a==A||a==I?V=ix(n,a,y):(a==N||a==(L|N))&&!d.length?V=ax(n,a,l,h):V=ps.apply(e,j);var ie=W?wg:Yg;return Jg(ie(V,j),n,a)}o(Er,"createWrap");function Wg(n,a,l,h){return n===e||Vt(n,li[l])&&!ve.call(h,l)?a:n}o(Wg,"customDefaultsAssignIn");function qg(n,a,l,h,d,D){return Ee(n)&&Ee(a)&&(D.set(a,n),cs(n,a,e,qg,D),D.delete(a)),n}o(qg,"customDefaultsMerge");function sx(n){return Aa(n)?e:n}o(sx,"customOmitClone");function Hg(n,a,l,h,d,D){var w=l&x,y=n.length,C=a.length;if(y!=C&&!(w&&C>y))return!1;var T=D.get(n),R=D.get(a);if(T&&R)return T==a&&R==n;var M=-1,W=!0,j=l&S?new Cn:e;for(D.set(n,a),D.set(a,n);++M<y;){var V=n[M],ie=a[M];if(h)var Y=w?h(ie,V,M,a,n,D):h(V,ie,M,n,a,D);if(Y!==e){if(Y)continue;W=!1;break}if(j){if(!Ml(a,function(oe,ue){if(!ga(j,ue)&&(V===oe||d(V,oe,l,h,D)))return j.push(ue)})){W=!1;break}}else if(!(V===ie||d(V,ie,l,h,D))){W=!1;break}}return D.delete(n),D.delete(a),W}o(Hg,"equalArrays");function ux(n,a,l,h,d,D,w){switch(l){case ii:if(n.byteLength!=a.byteLength||n.byteOffset!=a.byteOffset)return!1;n=n.buffer,a=a.buffer;case pa:return!(n.byteLength!=a.byteLength||!D(new Xo(n),new Xo(a)));case ua:case la:case ca:return Vt(+n,+a);case Uo:return n.name==a.name&&n.message==a.message;case ha:case fa:return n==a+"";case $t:var y=ql;case jt:var C=h&x;if(y||(y=jo),n.size!=a.size&&!C)return!1;var T=w.get(n);if(T)return T==a;h|=S,w.set(n,a);var R=Hg(y(n),y(a),h,d,D,w);return w.delete(n),R;case Wo:if(ya)return ya.call(n)==ya.call(a)}return!1}o(ux,"equalByTag");function lx(n,a,l,h,d,D){var w=l&x,y=fc(n),C=y.length,T=fc(a),R=T.length;if(C!=R&&!w)return!1;for(var M=C;M--;){var W=y[M];if(!(w?W in a:ve.call(a,W)))return!1}var j=D.get(n),V=D.get(a);if(j&&V)return j==a&&V==n;var ie=!0;D.set(n,a),D.set(a,n);for(var Y=w;++M<C;){W=y[M];var oe=n[W],ue=a[W];if(h)var yt=w?h(ue,oe,W,a,n,D):h(oe,ue,W,n,a,D);if(!(yt===e?oe===ue||d(oe,ue,l,h,D):yt)){ie=!1;break}Y||(Y=W=="constructor")}if(ie&&!Y){var it=n.constructor,bt=a.constructor;it!=bt&&"constructor"in n&&"constructor"in a&&!(typeof it=="function"&&it instanceof it&&typeof bt=="function"&&bt instanceof bt)&&(ie=!1)}return D.delete(n),D.delete(a),ie}o(lx,"equalObjects");function Fr(n){return yc(Kg(n,e,nm),n+"")}o(Fr,"flatRest");function fc(n){return ug(n,ze,mc)}o(fc,"getAllKeys");function dc(n){return ug(n,ht,zg)}o(dc,"getAllKeysIn");var pc=is?function(n){return is.get(n)}:Pc;function Ds(n){for(var a=n.name+"",l=hi[a],h=ve.call(hi,a)?l.length:0;h--;){var d=l[h],D=d.func;if(D==null||D==n)return d.name}return a}o(Ds,"getFuncName");function gi(n){var a=ve.call(m,"placeholder")?m:n;return a.placeholder}o(gi,"getHolder");function K(){var n=m.iteratee||Rc;return n=n===Rc?hg:n,arguments.length?n(arguments[0],arguments[1]):n}o(K,"getIteratee");function ws(n,a){var l=n.__data__;return vx(a)?l[typeof a=="string"?"string":"hash"]:l.map}o(ws,"getMapData");function gc(n){for(var a=ze(n),l=a.length;l--;){var h=a[l],d=n[h];a[l]=[h,d,jg(d)]}return a}o(gc,"getMatchData");function Sn(n,a){var l=yC(n,a);return cg(l)?l:e}o(Sn,"getNative");function cx(n){var a=ve.call(n,bn),l=n[bn];try{n[bn]=e;var h=!0}catch{}var d=Yo.call(n);return h&&(a?n[bn]=l:delete n[bn]),d}o(cx,"getRawTag");var mc=zl?function(n){return n==null?[]:(n=ye(n),jr(zl(n),function(a){return Vp.call(n,a)}))}:Lc,zg=zl?function(n){for(var a=[];n;)Zr(a,mc(n)),n=Qo(n);return a}:Lc,Xe=rt;(Gl&&Xe(new Gl(new ArrayBuffer(1)))!=ii||va&&Xe(new va)!=$t||$l&&Xe($l.resolve())!=ap||ci&&Xe(new ci)!=jt||Da&&Xe(new Da)!=da)&&(Xe=o(function(n){var a=rt(n),l=a==Cr?n.constructor:e,h=l?En(l):"";if(h)switch(h){case jC:return ii;case ZC:return $t;case KC:return ap;case VC:return jt;case YC:return da}return a},"getTag"));function hx(n,a,l){for(var h=-1,d=l.length;++h<d;){var D=l[h],w=D.size;switch(D.type){case"drop":n+=w;break;case"dropRight":a-=w;break;case"take":a=Je(a,n+w);break;case"takeRight":n=We(n,a-w);break}}return{start:n,end:a}}o(hx,"getView");function fx(n){var a=n.match(D_);return a?a[1].split(w_):[]}o(fx,"getWrapDetails");function Gg(n,a,l){a=Qr(a,n);for(var h=-1,d=a.length,D=!1;++h<d;){var w=cr(a[h]);if(!(D=n!=null&&l(n,w)))break;n=n[w]}return D||++h!=d?D:(d=n==null?0:n.length,!!d&&Ss(d)&&Ar(w,d)&&(Q(n)||Fn(n)))}o(Gg,"hasPath");function dx(n){var a=n.length,l=new n.constructor(a);return a&&typeof n[0]=="string"&&ve.call(n,"index")&&(l.index=n.index,l.input=n.input),l}o(dx,"initCloneArray");function $g(n){return typeof n.constructor=="function"&&!Ea(n)?fi(Qo(n)):{}}o($g,"initCloneObject");function px(n,a,l){var h=n.constructor;switch(a){case pa:return lc(n);case ua:case la:return new h(+n);case ii:return J1(n,l);case gl:case ml:case vl:case Dl:case wl:case yl:case bl:case _l:case Cl:return Eg(n,l);case $t:return new h;case ca:case fa:return new h(n);case ha:return X1(n);case jt:return new h;case Wo:return Q1(n)}}o(px,"initCloneByTag");function gx(n,a){var l=a.length;if(!l)return n;var h=l-1;return a[h]=(l>1?"& ":"")+a[h],a=a.join(l>2?", ":" "),n.replace(v_,`{
|
|
3
|
+
/* [wrapped with `+a+`] */
|
|
4
|
+
`)}o(gx,"insertWrapDetails");function mx(n){return Q(n)||Fn(n)||!!(Yp&&n&&n[Yp])}o(mx,"isFlattenable");function Ar(n,a){var l=typeof n;return a=a??Gt,!!a&&(l=="number"||l!="symbol"&&F_.test(n))&&n>-1&&n%1==0&&n<a}o(Ar,"isIndex");function nt(n,a,l){if(!Ee(l))return!1;var h=typeof a;return(h=="number"?ct(l)&&Ar(a,l.length):h=="string"&&a in l)?Vt(l[a],n):!1}o(nt,"isIterateeCall");function vc(n,a){if(Q(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||wt(n)?!0:d_.test(n)||!f_.test(n)||a!=null&&n in ye(a)}o(vc,"isKey");function vx(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}o(vx,"isKeyable");function Dc(n){var a=Ds(n),l=m[a];if(typeof l!="function"||!(a in se.prototype))return!1;if(n===l)return!0;var h=pc(l);return!!h&&n===h[0]}o(Dc,"isLaziable");function Dx(n){return!!jp&&jp in n}o(Dx,"isMasked");var wx=Ko?Tr:Mc;function Ea(n){var a=n&&n.constructor,l=typeof a=="function"&&a.prototype||li;return n===l}o(Ea,"isPrototype");function jg(n){return n===n&&!Ee(n)}o(jg,"isStrictComparable");function Zg(n,a){return function(l){return l==null?!1:l[n]===a&&(a!==e||n in ye(l))}}o(Zg,"matchesStrictComparable");function yx(n){var a=xs(n,function(h){return l.size===f&&l.clear(),h}),l=a.cache;return a}o(yx,"memoizeCapped");function bx(n,a){var l=n[1],h=a[1],d=l|h,D=d<(L|P|F),w=h==F&&l==A||h==F&&l==q&&n[7].length<=a[8]||h==(F|q)&&a[7].length<=a[8]&&l==A;if(!(D||w))return n;h&L&&(n[2]=a[2],d|=l&L?0:U);var y=a[3];if(y){var C=n[3];n[3]=C?Ag(C,y,a[4]):y,n[4]=C?Kr(n[3],v):a[4]}return y=a[5],y&&(C=n[5],n[5]=C?Tg(C,y,a[6]):y,n[6]=C?Kr(n[5],v):a[6]),y=a[7],y&&(n[7]=y),h&F&&(n[8]=n[8]==null?a[8]:Je(n[8],a[8])),n[9]==null&&(n[9]=a[9]),n[0]=a[0],n[1]=d,n}o(bx,"mergeData");function _x(n){var a=[];if(n!=null)for(var l in ye(n))a.push(l);return a}o(_x,"nativeKeysIn");function Cx(n){return Yo.call(n)}o(Cx,"objectToString");function Kg(n,a,l){return a=We(a===e?n.length-1:a,0),function(){for(var h=arguments,d=-1,D=We(h.length-a,0),w=k(D);++d<D;)w[d]=h[a+d];d=-1;for(var y=k(a+1);++d<a;)y[d]=h[d];return y[a]=l(w),mt(n,this,y)}}o(Kg,"overRest");function Vg(n,a){return a.length<2?n:kn(n,It(a,0,-1))}o(Vg,"parent");function xx(n,a){for(var l=n.length,h=Je(a.length,l),d=lt(n);h--;){var D=a[h];n[h]=Ar(D,l)?d[D]:e}return n}o(xx,"reorder");function wc(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}o(wc,"safeGet");var Yg=Xg(wg),Fa=NC||function(n,a){return He.setTimeout(n,a)},yc=Xg(Z1);function Jg(n,a,l){var h=a+"";return yc(n,gx(h,kx(fx(h),l)))}o(Jg,"setWrapToString");function Xg(n){var a=0,l=0;return function(){var h=zC(),d=Z-(h-l);if(l=h,d>0){if(++a>=fe)return arguments[0]}else a=0;return n.apply(e,arguments)}}o(Xg,"shortOut");function ys(n,a){var l=-1,h=n.length,d=h-1;for(a=a===e?h:a;++l<a;){var D=rc(l,d),w=n[D];n[D]=n[l],n[l]=w}return n.length=a,n}o(ys,"shuffleSelf");var Qg=yx(function(n){var a=[];return n.charCodeAt(0)===46&&a.push(""),n.replace(p_,function(l,h,d,D){a.push(d?D.replace(__,"$1"):h||l)}),a});function cr(n){if(typeof n=="string"||wt(n))return n;var a=n+"";return a=="0"&&1/n==-or?"-0":a}o(cr,"toKey");function En(n){if(n!=null){try{return Vo.call(n)}catch{}try{return n+""}catch{}}return""}o(En,"toSource");function kx(n,a){return Ft(Xb,function(l){var h="_."+l[0];a&l[1]&&!Go(n,h)&&n.push(h)}),n.sort()}o(kx,"updateWrapDetails");function em(n){if(n instanceof se)return n.clone();var a=new Tt(n.__wrapped__,n.__chain__);return a.__actions__=lt(n.__actions__),a.__index__=n.__index__,a.__values__=n.__values__,a}o(em,"wrapperClone");function Sx(n,a,l){(l?nt(n,a,l):a===e)?a=1:a=We(re(a),0);var h=n==null?0:n.length;if(!h||a<1)return[];for(var d=0,D=0,w=k(rs(h/a));d<h;)w[D++]=It(n,d,d+=a);return w}o(Sx,"chunk");function Ex(n){for(var a=-1,l=n==null?0:n.length,h=0,d=[];++a<l;){var D=n[a];D&&(d[h++]=D)}return d}o(Ex,"compact");function Fx(){var n=arguments.length;if(!n)return[];for(var a=k(n-1),l=arguments[0],h=n;h--;)a[h-1]=arguments[h];return Zr(Q(l)?lt(l):[l],Ze(a,1))}o(Fx,"concat");var Ax=ae(function(n,a){return Ie(n)?_a(n,Ze(a,1,Ie,!0)):[]}),Tx=ae(function(n,a){var l=Pt(a);return Ie(l)&&(l=e),Ie(n)?_a(n,Ze(a,1,Ie,!0),K(l,2)):[]}),Rx=ae(function(n,a){var l=Pt(a);return Ie(l)&&(l=e),Ie(n)?_a(n,Ze(a,1,Ie,!0),e,l):[]});function Ix(n,a,l){var h=n==null?0:n.length;return h?(a=l||a===e?1:re(a),It(n,a<0?0:a,h)):[]}o(Ix,"drop");function Px(n,a,l){var h=n==null?0:n.length;return h?(a=l||a===e?1:re(a),a=h-a,It(n,0,a<0?0:a)):[]}o(Px,"dropRight");function Lx(n,a){return n&&n.length?fs(n,K(a,3),!0,!0):[]}o(Lx,"dropRightWhile");function Mx(n,a){return n&&n.length?fs(n,K(a,3),!0):[]}o(Mx,"dropWhile");function Ox(n,a,l,h){var d=n==null?0:n.length;return d?(l&&typeof l!="number"&&nt(n,a,l)&&(l=0,h=d),F1(n,a,l,h)):[]}o(Ox,"fill");function tm(n,a,l){var h=n==null?0:n.length;if(!h)return-1;var d=l==null?0:re(l);return d<0&&(d=We(h+d,0)),$o(n,K(a,3),d)}o(tm,"findIndex");function rm(n,a,l){var h=n==null?0:n.length;if(!h)return-1;var d=h-1;return l!==e&&(d=re(l),d=l<0?We(h+d,0):Je(d,h-1)),$o(n,K(a,3),d,!0)}o(rm,"findLastIndex");function nm(n){var a=n==null?0:n.length;return a?Ze(n,1):[]}o(nm,"flatten");function Bx(n){var a=n==null?0:n.length;return a?Ze(n,or):[]}o(Bx,"flattenDeep");function Ux(n,a){var l=n==null?0:n.length;return l?(a=a===e?1:re(a),Ze(n,a)):[]}o(Ux,"flattenDepth");function Nx(n){for(var a=-1,l=n==null?0:n.length,h={};++a<l;){var d=n[a];h[d[0]]=d[1]}return h}o(Nx,"fromPairs");function im(n){return n&&n.length?n[0]:e}o(im,"head");function Wx(n,a,l){var h=n==null?0:n.length;if(!h)return-1;var d=l==null?0:re(l);return d<0&&(d=We(h+d,0)),oi(n,a,d)}o(Wx,"indexOf");function qx(n){var a=n==null?0:n.length;return a?It(n,0,-1):[]}o(qx,"initial");var Hx=ae(function(n){var a=ke(n,sc);return a.length&&a[0]===n[0]?Jl(a):[]}),zx=ae(function(n){var a=Pt(n),l=ke(n,sc);return a===Pt(l)?a=e:l.pop(),l.length&&l[0]===n[0]?Jl(l,K(a,2)):[]}),Gx=ae(function(n){var a=Pt(n),l=ke(n,sc);return a=typeof a=="function"?a:e,a&&l.pop(),l.length&&l[0]===n[0]?Jl(l,e,a):[]});function $x(n,a){return n==null?"":qC.call(n,a)}o($x,"join");function Pt(n){var a=n==null?0:n.length;return a?n[a-1]:e}o(Pt,"last");function jx(n,a,l){var h=n==null?0:n.length;if(!h)return-1;var d=h;return l!==e&&(d=re(l),d=d<0?We(h+d,0):Je(d,h-1)),a===a?kC(n,a,d):$o(n,Up,d,!0)}o(jx,"lastIndexOf");function Zx(n,a){return n&&n.length?gg(n,re(a)):e}o(Zx,"nth");var Kx=ae(am);function am(n,a){return n&&n.length&&a&&a.length?tc(n,a):n}o(am,"pullAll");function Vx(n,a,l){return n&&n.length&&a&&a.length?tc(n,a,K(l,2)):n}o(Vx,"pullAllBy");function Yx(n,a,l){return n&&n.length&&a&&a.length?tc(n,a,e,l):n}o(Yx,"pullAllWith");var Jx=Fr(function(n,a){var l=n==null?0:n.length,h=Zl(n,a);return Dg(n,ke(a,function(d){return Ar(d,l)?+d:d}).sort(Fg)),h});function Xx(n,a){var l=[];if(!(n&&n.length))return l;var h=-1,d=[],D=n.length;for(a=K(a,3);++h<D;){var w=n[h];a(w,h,n)&&(l.push(w),d.push(h))}return Dg(n,d),l}o(Xx,"remove");function bc(n){return n==null?n:$C.call(n)}o(bc,"reverse");function Qx(n,a,l){var h=n==null?0:n.length;return h?(l&&typeof l!="number"&&nt(n,a,l)?(a=0,l=h):(a=a==null?0:re(a),l=l===e?h:re(l)),It(n,a,l)):[]}o(Qx,"slice");function ek(n,a){return hs(n,a)}o(ek,"sortedIndex");function tk(n,a,l){return ic(n,a,K(l,2))}o(tk,"sortedIndexBy");function rk(n,a){var l=n==null?0:n.length;if(l){var h=hs(n,a);if(h<l&&Vt(n[h],a))return h}return-1}o(rk,"sortedIndexOf");function nk(n,a){return hs(n,a,!0)}o(nk,"sortedLastIndex");function ik(n,a,l){return ic(n,a,K(l,2),!0)}o(ik,"sortedLastIndexBy");function ak(n,a){var l=n==null?0:n.length;if(l){var h=hs(n,a,!0)-1;if(Vt(n[h],a))return h}return-1}o(ak,"sortedLastIndexOf");function ok(n){return n&&n.length?yg(n):[]}o(ok,"sortedUniq");function sk(n,a){return n&&n.length?yg(n,K(a,2)):[]}o(sk,"sortedUniqBy");function uk(n){var a=n==null?0:n.length;return a?It(n,1,a):[]}o(uk,"tail");function lk(n,a,l){return n&&n.length?(a=l||a===e?1:re(a),It(n,0,a<0?0:a)):[]}o(lk,"take");function ck(n,a,l){var h=n==null?0:n.length;return h?(a=l||a===e?1:re(a),a=h-a,It(n,a<0?0:a,h)):[]}o(ck,"takeRight");function hk(n,a){return n&&n.length?fs(n,K(a,3),!1,!0):[]}o(hk,"takeRightWhile");function fk(n,a){return n&&n.length?fs(n,K(a,3)):[]}o(fk,"takeWhile");var dk=ae(function(n){return Xr(Ze(n,1,Ie,!0))}),pk=ae(function(n){var a=Pt(n);return Ie(a)&&(a=e),Xr(Ze(n,1,Ie,!0),K(a,2))}),gk=ae(function(n){var a=Pt(n);return a=typeof a=="function"?a:e,Xr(Ze(n,1,Ie,!0),e,a)});function mk(n){return n&&n.length?Xr(n):[]}o(mk,"uniq");function vk(n,a){return n&&n.length?Xr(n,K(a,2)):[]}o(vk,"uniqBy");function Dk(n,a){return a=typeof a=="function"?a:e,n&&n.length?Xr(n,e,a):[]}o(Dk,"uniqWith");function _c(n){if(!(n&&n.length))return[];var a=0;return n=jr(n,function(l){if(Ie(l))return a=We(l.length,a),!0}),Nl(a,function(l){return ke(n,Ol(l))})}o(_c,"unzip");function om(n,a){if(!(n&&n.length))return[];var l=_c(n);return a==null?l:ke(l,function(h){return mt(a,e,h)})}o(om,"unzipWith");var wk=ae(function(n,a){return Ie(n)?_a(n,a):[]}),yk=ae(function(n){return oc(jr(n,Ie))}),bk=ae(function(n){var a=Pt(n);return Ie(a)&&(a=e),oc(jr(n,Ie),K(a,2))}),_k=ae(function(n){var a=Pt(n);return a=typeof a=="function"?a:e,oc(jr(n,Ie),e,a)}),Ck=ae(_c);function xk(n,a){return xg(n||[],a||[],ba)}o(xk,"zipObject");function kk(n,a){return xg(n||[],a||[],ka)}o(kk,"zipObjectDeep");var Sk=ae(function(n){var a=n.length,l=a>1?n[a-1]:e;return l=typeof l=="function"?(n.pop(),l):e,om(n,l)});function sm(n){var a=m(n);return a.__chain__=!0,a}o(sm,"chain");function Ek(n,a){return a(n),n}o(Ek,"tap");function bs(n,a){return a(n)}o(bs,"thru");var Fk=Fr(function(n){var a=n.length,l=a?n[0]:0,h=this.__wrapped__,d=o(function(D){return Zl(D,n)},"interceptor");return a>1||this.__actions__.length||!(h instanceof se)||!Ar(l)?this.thru(d):(h=h.slice(l,+l+(a?1:0)),h.__actions__.push({func:bs,args:[d],thisArg:e}),new Tt(h,this.__chain__).thru(function(D){return a&&!D.length&&D.push(e),D}))});function Ak(){return sm(this)}o(Ak,"wrapperChain");function Tk(){return new Tt(this.value(),this.__chain__)}o(Tk,"wrapperCommit");function Rk(){this.__values__===e&&(this.__values__=bm(this.value()));var n=this.__index__>=this.__values__.length,a=n?e:this.__values__[this.__index__++];return{done:n,value:a}}o(Rk,"wrapperNext");function Ik(){return this}o(Ik,"wrapperToIterator");function Pk(n){for(var a,l=this;l instanceof os;){var h=em(l);h.__index__=0,h.__values__=e,a?d.__wrapped__=h:a=h;var d=h;l=l.__wrapped__}return d.__wrapped__=n,a}o(Pk,"wrapperPlant");function Lk(){var n=this.__wrapped__;if(n instanceof se){var a=n;return this.__actions__.length&&(a=new se(this)),a=a.reverse(),a.__actions__.push({func:bs,args:[bc],thisArg:e}),new Tt(a,this.__chain__)}return this.thru(bc)}o(Lk,"wrapperReverse");function Mk(){return Cg(this.__wrapped__,this.__actions__)}o(Mk,"wrapperValue");var Ok=ds(function(n,a,l){ve.call(n,l)?++n[l]:Sr(n,l,1)});function Bk(n,a,l){var h=Q(n)?Op:E1;return l&&nt(n,a,l)&&(a=e),h(n,K(a,3))}o(Bk,"every");function Uk(n,a){var l=Q(n)?jr:og;return l(n,K(a,3))}o(Uk,"filter");var Nk=Lg(tm),Wk=Lg(rm);function qk(n,a){return Ze(_s(n,a),1)}o(qk,"flatMap");function Hk(n,a){return Ze(_s(n,a),or)}o(Hk,"flatMapDeep");function zk(n,a,l){return l=l===e?1:re(l),Ze(_s(n,a),l)}o(zk,"flatMapDepth");function um(n,a){var l=Q(n)?Ft:Jr;return l(n,K(a,3))}o(um,"forEach");function lm(n,a){var l=Q(n)?uC:ag;return l(n,K(a,3))}o(lm,"forEachRight");var Gk=ds(function(n,a,l){ve.call(n,l)?n[l].push(a):Sr(n,l,[a])});function $k(n,a,l,h){n=ct(n)?n:vi(n),l=l&&!h?re(l):0;var d=n.length;return l<0&&(l=We(d+l,0)),Es(n)?l<=d&&n.indexOf(a,l)>-1:!!d&&oi(n,a,l)>-1}o($k,"includes");var jk=ae(function(n,a,l){var h=-1,d=typeof a=="function",D=ct(n)?k(n.length):[];return Jr(n,function(w){D[++h]=d?mt(a,w,l):Ca(w,a,l)}),D}),Zk=ds(function(n,a,l){Sr(n,l,a)});function _s(n,a){var l=Q(n)?ke:fg;return l(n,K(a,3))}o(_s,"map");function Kk(n,a,l,h){return n==null?[]:(Q(a)||(a=a==null?[]:[a]),l=h?e:l,Q(l)||(l=l==null?[]:[l]),mg(n,a,l))}o(Kk,"orderBy");var Vk=ds(function(n,a,l){n[l?0:1].push(a)},function(){return[[],[]]});function Yk(n,a,l){var h=Q(n)?Ll:Wp,d=arguments.length<3;return h(n,K(a,4),l,d,Jr)}o(Yk,"reduce");function Jk(n,a,l){var h=Q(n)?lC:Wp,d=arguments.length<3;return h(n,K(a,4),l,d,ag)}o(Jk,"reduceRight");function Xk(n,a){var l=Q(n)?jr:og;return l(n,ks(K(a,3)))}o(Xk,"reject");function Qk(n){var a=Q(n)?tg:$1;return a(n)}o(Qk,"sample");function eS(n,a,l){(l?nt(n,a,l):a===e)?a=1:a=re(a);var h=Q(n)?_1:j1;return h(n,a)}o(eS,"sampleSize");function tS(n){var a=Q(n)?C1:K1;return a(n)}o(tS,"shuffle");function rS(n){if(n==null)return 0;if(ct(n))return Es(n)?ui(n):n.length;var a=Xe(n);return a==$t||a==jt?n.size:Ql(n).length}o(rS,"size");function nS(n,a,l){var h=Q(n)?Ml:V1;return l&&nt(n,a,l)&&(a=e),h(n,K(a,3))}o(nS,"some");var iS=ae(function(n,a){if(n==null)return[];var l=a.length;return l>1&&nt(n,a[0],a[1])?a=[]:l>2&&nt(a[0],a[1],a[2])&&(a=[a[0]]),mg(n,Ze(a,1),[])}),Cs=UC||function(){return He.Date.now()};function aS(n,a){if(typeof a!="function")throw new At(s);return n=re(n),function(){if(--n<1)return a.apply(this,arguments)}}o(aS,"after");function cm(n,a,l){return a=l?e:a,a=n&&a==null?n.length:a,Er(n,F,e,e,e,e,a)}o(cm,"ary");function hm(n,a){var l;if(typeof a!="function")throw new At(s);return n=re(n),function(){return--n>0&&(l=a.apply(this,arguments)),n<=1&&(a=e),l}}o(hm,"before");var Cc=ae(function(n,a,l){var h=L;if(l.length){var d=Kr(l,gi(Cc));h|=N}return Er(n,h,a,l,d)}),fm=ae(function(n,a,l){var h=L|P;if(l.length){var d=Kr(l,gi(fm));h|=N}return Er(a,h,n,l,d)});function dm(n,a,l){a=l?e:a;var h=Er(n,A,e,e,e,e,e,a);return h.placeholder=dm.placeholder,h}o(dm,"curry");function pm(n,a,l){a=l?e:a;var h=Er(n,I,e,e,e,e,e,a);return h.placeholder=pm.placeholder,h}o(pm,"curryRight");function gm(n,a,l){var h,d,D,w,y,C,T=0,R=!1,M=!1,W=!0;if(typeof n!="function")throw new At(s);a=Lt(a)||0,Ee(l)&&(R=!!l.leading,M="maxWait"in l,D=M?We(Lt(l.maxWait)||0,a):D,W="trailing"in l?!!l.trailing:W);function j(Pe){var Yt=h,Ir=d;return h=d=e,T=Pe,w=n.apply(Ir,Yt),w}o(j,"invokeFunc");function V(Pe){return T=Pe,y=Fa(oe,a),R?j(Pe):w}o(V,"leadingEdge");function ie(Pe){var Yt=Pe-C,Ir=Pe-T,Lm=a-Yt;return M?Je(Lm,D-Ir):Lm}o(ie,"remainingWait");function Y(Pe){var Yt=Pe-C,Ir=Pe-T;return C===e||Yt>=a||Yt<0||M&&Ir>=D}o(Y,"shouldInvoke");function oe(){var Pe=Cs();if(Y(Pe))return ue(Pe);y=Fa(oe,ie(Pe))}o(oe,"timerExpired");function ue(Pe){return y=e,W&&h?j(Pe):(h=d=e,w)}o(ue,"trailingEdge");function yt(){y!==e&&kg(y),T=0,h=C=d=y=e}o(yt,"cancel");function it(){return y===e?w:ue(Cs())}o(it,"flush");function bt(){var Pe=Cs(),Yt=Y(Pe);if(h=arguments,d=this,C=Pe,Yt){if(y===e)return V(C);if(M)return kg(y),y=Fa(oe,a),j(C)}return y===e&&(y=Fa(oe,a)),w}return o(bt,"debounced"),bt.cancel=yt,bt.flush=it,bt}o(gm,"debounce");var oS=ae(function(n,a){return ig(n,1,a)}),sS=ae(function(n,a,l){return ig(n,Lt(a)||0,l)});function uS(n){return Er(n,G)}o(uS,"flip");function xs(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new At(s);var l=o(function(){var h=arguments,d=a?a.apply(this,h):h[0],D=l.cache;if(D.has(d))return D.get(d);var w=n.apply(this,h);return l.cache=D.set(d,w)||D,w},"memoized");return l.cache=new(xs.Cache||kr),l}o(xs,"memoize"),xs.Cache=kr;function ks(n){if(typeof n!="function")throw new At(s);return function(){var a=arguments;switch(a.length){case 0:return!n.call(this);case 1:return!n.call(this,a[0]);case 2:return!n.call(this,a[0],a[1]);case 3:return!n.call(this,a[0],a[1],a[2])}return!n.apply(this,a)}}o(ks,"negate");function lS(n){return hm(2,n)}o(lS,"once");var cS=Y1(function(n,a){a=a.length==1&&Q(a[0])?ke(a[0],vt(K())):ke(Ze(a,1),vt(K()));var l=a.length;return ae(function(h){for(var d=-1,D=Je(h.length,l);++d<D;)h[d]=a[d].call(this,h[d]);return mt(n,this,h)})}),xc=ae(function(n,a){var l=Kr(a,gi(xc));return Er(n,N,e,a,l)}),mm=ae(function(n,a){var l=Kr(a,gi(mm));return Er(n,B,e,a,l)}),hS=Fr(function(n,a){return Er(n,q,e,e,e,a)});function fS(n,a){if(typeof n!="function")throw new At(s);return a=a===e?a:re(a),ae(n,a)}o(fS,"rest");function dS(n,a){if(typeof n!="function")throw new At(s);return a=a==null?0:We(re(a),0),ae(function(l){var h=l[a],d=en(l,0,a);return h&&Zr(d,h),mt(n,this,d)})}o(dS,"spread");function pS(n,a,l){var h=!0,d=!0;if(typeof n!="function")throw new At(s);return Ee(l)&&(h="leading"in l?!!l.leading:h,d="trailing"in l?!!l.trailing:d),gm(n,a,{leading:h,maxWait:a,trailing:d})}o(pS,"throttle");function gS(n){return cm(n,1)}o(gS,"unary");function mS(n,a){return xc(uc(a),n)}o(mS,"wrap");function vS(){if(!arguments.length)return[];var n=arguments[0];return Q(n)?n:[n]}o(vS,"castArray");function DS(n){return Rt(n,b)}o(DS,"clone");function wS(n,a){return a=typeof a=="function"?a:e,Rt(n,b,a)}o(wS,"cloneWith");function yS(n){return Rt(n,p|b)}o(yS,"cloneDeep");function bS(n,a){return a=typeof a=="function"?a:e,Rt(n,p|b,a)}o(bS,"cloneDeepWith");function _S(n,a){return a==null||ng(n,a,ze(a))}o(_S,"conformsTo");function Vt(n,a){return n===a||n!==n&&a!==a}o(Vt,"eq");var CS=vs(Yl),xS=vs(function(n,a){return n>=a}),Fn=lg(function(){return arguments}())?lg:function(n){return Te(n)&&ve.call(n,"callee")&&!Vp.call(n,"callee")},Q=k.isArray,kS=Tp?vt(Tp):P1;function ct(n){return n!=null&&Ss(n.length)&&!Tr(n)}o(ct,"isArrayLike");function Ie(n){return Te(n)&&ct(n)}o(Ie,"isArrayLikeObject");function SS(n){return n===!0||n===!1||Te(n)&&rt(n)==ua}o(SS,"isBoolean");var tn=WC||Mc,ES=Rp?vt(Rp):L1;function FS(n){return Te(n)&&n.nodeType===1&&!Aa(n)}o(FS,"isElement");function AS(n){if(n==null)return!0;if(ct(n)&&(Q(n)||typeof n=="string"||typeof n.splice=="function"||tn(n)||mi(n)||Fn(n)))return!n.length;var a=Xe(n);if(a==$t||a==jt)return!n.size;if(Ea(n))return!Ql(n).length;for(var l in n)if(ve.call(n,l))return!1;return!0}o(AS,"isEmpty");function TS(n,a){return xa(n,a)}o(TS,"isEqual");function RS(n,a,l){l=typeof l=="function"?l:e;var h=l?l(n,a):e;return h===e?xa(n,a,e,l):!!h}o(RS,"isEqualWith");function kc(n){if(!Te(n))return!1;var a=rt(n);return a==Uo||a==e_||typeof n.message=="string"&&typeof n.name=="string"&&!Aa(n)}o(kc,"isError");function IS(n){return typeof n=="number"&&Jp(n)}o(IS,"isFinite");function Tr(n){if(!Ee(n))return!1;var a=rt(n);return a==No||a==ip||a==Qb||a==r_}o(Tr,"isFunction");function vm(n){return typeof n=="number"&&n==re(n)}o(vm,"isInteger");function Ss(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Gt}o(Ss,"isLength");function Ee(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}o(Ee,"isObject");function Te(n){return n!=null&&typeof n=="object"}o(Te,"isObjectLike");var Dm=Ip?vt(Ip):O1;function PS(n,a){return n===a||Xl(n,a,gc(a))}o(PS,"isMatch");function LS(n,a,l){return l=typeof l=="function"?l:e,Xl(n,a,gc(a),l)}o(LS,"isMatchWith");function MS(n){return wm(n)&&n!=+n}o(MS,"isNaN");function OS(n){if(wx(n))throw new X(i);return cg(n)}o(OS,"isNative");function BS(n){return n===null}o(BS,"isNull");function US(n){return n==null}o(US,"isNil");function wm(n){return typeof n=="number"||Te(n)&&rt(n)==ca}o(wm,"isNumber");function Aa(n){if(!Te(n)||rt(n)!=Cr)return!1;var a=Qo(n);if(a===null)return!0;var l=ve.call(a,"constructor")&&a.constructor;return typeof l=="function"&&l instanceof l&&Vo.call(l)==LC}o(Aa,"isPlainObject");var Sc=Pp?vt(Pp):B1;function NS(n){return vm(n)&&n>=-Gt&&n<=Gt}o(NS,"isSafeInteger");var ym=Lp?vt(Lp):U1;function Es(n){return typeof n=="string"||!Q(n)&&Te(n)&&rt(n)==fa}o(Es,"isString");function wt(n){return typeof n=="symbol"||Te(n)&&rt(n)==Wo}o(wt,"isSymbol");var mi=Mp?vt(Mp):N1;function WS(n){return n===e}o(WS,"isUndefined");function qS(n){return Te(n)&&Xe(n)==da}o(qS,"isWeakMap");function HS(n){return Te(n)&&rt(n)==i_}o(HS,"isWeakSet");var zS=vs(ec),GS=vs(function(n,a){return n<=a});function bm(n){if(!n)return[];if(ct(n))return Es(n)?Zt(n):lt(n);if(ma&&n[ma])return _C(n[ma]());var a=Xe(n),l=a==$t?ql:a==jt?jo:vi;return l(n)}o(bm,"toArray");function Rr(n){if(!n)return n===0?n:0;if(n=Lt(n),n===or||n===-or){var a=n<0?-1:1;return a*ri}return n===n?n:0}o(Rr,"toFinite");function re(n){var a=Rr(n),l=a%1;return a===a?l?a-l:a:0}o(re,"toInteger");function _m(n){return n?xn(re(n),0,sr):0}o(_m,"toLength");function Lt(n){if(typeof n=="number")return n;if(wt(n))return _r;if(Ee(n)){var a=typeof n.valueOf=="function"?n.valueOf():n;n=Ee(a)?a+"":a}if(typeof n!="string")return n===0?n:+n;n=qp(n);var l=k_.test(n);return l||E_.test(n)?aC(n.slice(2),l?2:8):x_.test(n)?_r:+n}o(Lt,"toNumber");function Cm(n){return lr(n,ht(n))}o(Cm,"toPlainObject");function $S(n){return n?xn(re(n),-Gt,Gt):n===0?n:0}o($S,"toSafeInteger");function me(n){return n==null?"":Dt(n)}o(me,"toString");var jS=di(function(n,a){if(Ea(a)||ct(a)){lr(a,ze(a),n);return}for(var l in a)ve.call(a,l)&&ba(n,l,a[l])}),xm=di(function(n,a){lr(a,ht(a),n)}),Fs=di(function(n,a,l,h){lr(a,ht(a),n,h)}),ZS=di(function(n,a,l,h){lr(a,ze(a),n,h)}),KS=Fr(Zl);function VS(n,a){var l=fi(n);return a==null?l:rg(l,a)}o(VS,"create");var YS=ae(function(n,a){n=ye(n);var l=-1,h=a.length,d=h>2?a[2]:e;for(d&&nt(a[0],a[1],d)&&(h=1);++l<h;)for(var D=a[l],w=ht(D),y=-1,C=w.length;++y<C;){var T=w[y],R=n[T];(R===e||Vt(R,li[T])&&!ve.call(n,T))&&(n[T]=D[T])}return n}),JS=ae(function(n){return n.push(e,qg),mt(km,e,n)});function XS(n,a){return Bp(n,K(a,3),ur)}o(XS,"findKey");function QS(n,a){return Bp(n,K(a,3),Vl)}o(QS,"findLastKey");function eE(n,a){return n==null?n:Kl(n,K(a,3),ht)}o(eE,"forIn");function tE(n,a){return n==null?n:sg(n,K(a,3),ht)}o(tE,"forInRight");function rE(n,a){return n&&ur(n,K(a,3))}o(rE,"forOwn");function nE(n,a){return n&&Vl(n,K(a,3))}o(nE,"forOwnRight");function iE(n){return n==null?[]:ls(n,ze(n))}o(iE,"functions");function aE(n){return n==null?[]:ls(n,ht(n))}o(aE,"functionsIn");function Ec(n,a,l){var h=n==null?e:kn(n,a);return h===e?l:h}o(Ec,"get");function oE(n,a){return n!=null&&Gg(n,a,A1)}o(oE,"has");function Fc(n,a){return n!=null&&Gg(n,a,T1)}o(Fc,"hasIn");var sE=Og(function(n,a,l){a!=null&&typeof a.toString!="function"&&(a=Yo.call(a)),n[a]=l},Tc(ft)),uE=Og(function(n,a,l){a!=null&&typeof a.toString!="function"&&(a=Yo.call(a)),ve.call(n,a)?n[a].push(l):n[a]=[l]},K),lE=ae(Ca);function ze(n){return ct(n)?eg(n):Ql(n)}o(ze,"keys");function ht(n){return ct(n)?eg(n,!0):W1(n)}o(ht,"keysIn");function cE(n,a){var l={};return a=K(a,3),ur(n,function(h,d,D){Sr(l,a(h,d,D),h)}),l}o(cE,"mapKeys");function hE(n,a){var l={};return a=K(a,3),ur(n,function(h,d,D){Sr(l,d,a(h,d,D))}),l}o(hE,"mapValues");var fE=di(function(n,a,l){cs(n,a,l)}),km=di(function(n,a,l,h){cs(n,a,l,h)}),dE=Fr(function(n,a){var l={};if(n==null)return l;var h=!1;a=ke(a,function(D){return D=Qr(D,n),h||(h=D.length>1),D}),lr(n,dc(n),l),h&&(l=Rt(l,p|g|b,sx));for(var d=a.length;d--;)ac(l,a[d]);return l});function pE(n,a){return Sm(n,ks(K(a)))}o(pE,"omitBy");var gE=Fr(function(n,a){return n==null?{}:H1(n,a)});function Sm(n,a){if(n==null)return{};var l=ke(dc(n),function(h){return[h]});return a=K(a),vg(n,l,function(h,d){return a(h,d[0])})}o(Sm,"pickBy");function mE(n,a,l){a=Qr(a,n);var h=-1,d=a.length;for(d||(d=1,n=e);++h<d;){var D=n==null?e:n[cr(a[h])];D===e&&(h=d,D=l),n=Tr(D)?D.call(n):D}return n}o(mE,"result");function vE(n,a,l){return n==null?n:ka(n,a,l)}o(vE,"set");function DE(n,a,l,h){return h=typeof h=="function"?h:e,n==null?n:ka(n,a,l,h)}o(DE,"setWith");var Em=Ng(ze),Fm=Ng(ht);function wE(n,a,l){var h=Q(n),d=h||tn(n)||mi(n);if(a=K(a,4),l==null){var D=n&&n.constructor;d?l=h?new D:[]:Ee(n)?l=Tr(D)?fi(Qo(n)):{}:l={}}return(d?Ft:ur)(n,function(w,y,C){return a(l,w,y,C)}),l}o(wE,"transform");function yE(n,a){return n==null?!0:ac(n,a)}o(yE,"unset");function bE(n,a,l){return n==null?n:_g(n,a,uc(l))}o(bE,"update");function _E(n,a,l,h){return h=typeof h=="function"?h:e,n==null?n:_g(n,a,uc(l),h)}o(_E,"updateWith");function vi(n){return n==null?[]:Wl(n,ze(n))}o(vi,"values");function CE(n){return n==null?[]:Wl(n,ht(n))}o(CE,"valuesIn");function xE(n,a,l){return l===e&&(l=a,a=e),l!==e&&(l=Lt(l),l=l===l?l:0),a!==e&&(a=Lt(a),a=a===a?a:0),xn(Lt(n),a,l)}o(xE,"clamp");function kE(n,a,l){return a=Rr(a),l===e?(l=a,a=0):l=Rr(l),n=Lt(n),R1(n,a,l)}o(kE,"inRange");function SE(n,a,l){if(l&&typeof l!="boolean"&&nt(n,a,l)&&(a=l=e),l===e&&(typeof a=="boolean"?(l=a,a=e):typeof n=="boolean"&&(l=n,n=e)),n===e&&a===e?(n=0,a=1):(n=Rr(n),a===e?(a=n,n=0):a=Rr(a)),n>a){var h=n;n=a,a=h}if(l||n%1||a%1){var d=Xp();return Je(n+d*(a-n+iC("1e-"+((d+"").length-1))),a)}return rc(n,a)}o(SE,"random");var EE=pi(function(n,a,l){return a=a.toLowerCase(),n+(l?Am(a):a)});function Am(n){return Ac(me(n).toLowerCase())}o(Am,"capitalize");function Tm(n){return n=me(n),n&&n.replace(A_,vC).replace(K_,"")}o(Tm,"deburr");function FE(n,a,l){n=me(n),a=Dt(a);var h=n.length;l=l===e?h:xn(re(l),0,h);var d=l;return l-=a.length,l>=0&&n.slice(l,d)==a}o(FE,"endsWith");function AE(n){return n=me(n),n&&l_.test(n)?n.replace(sp,DC):n}o(AE,"escape");function TE(n){return n=me(n),n&&g_.test(n)?n.replace(xl,"\\$&"):n}o(TE,"escapeRegExp");var RE=pi(function(n,a,l){return n+(l?"-":"")+a.toLowerCase()}),IE=pi(function(n,a,l){return n+(l?" ":"")+a.toLowerCase()}),PE=Pg("toLowerCase");function LE(n,a,l){n=me(n),a=re(a);var h=a?ui(n):0;if(!a||h>=a)return n;var d=(a-h)/2;return ms(ns(d),l)+n+ms(rs(d),l)}o(LE,"pad");function ME(n,a,l){n=me(n),a=re(a);var h=a?ui(n):0;return a&&h<a?n+ms(a-h,l):n}o(ME,"padEnd");function OE(n,a,l){n=me(n),a=re(a);var h=a?ui(n):0;return a&&h<a?ms(a-h,l)+n:n}o(OE,"padStart");function BE(n,a,l){return l||a==null?a=0:a&&(a=+a),GC(me(n).replace(kl,""),a||0)}o(BE,"parseInt");function UE(n,a,l){return(l?nt(n,a,l):a===e)?a=1:a=re(a),nc(me(n),a)}o(UE,"repeat");function NE(){var n=arguments,a=me(n[0]);return n.length<3?a:a.replace(n[1],n[2])}o(NE,"replace");var WE=pi(function(n,a,l){return n+(l?"_":"")+a.toLowerCase()});function qE(n,a,l){return l&&typeof l!="number"&&nt(n,a,l)&&(a=l=e),l=l===e?sr:l>>>0,l?(n=me(n),n&&(typeof a=="string"||a!=null&&!Sc(a))&&(a=Dt(a),!a&&si(n))?en(Zt(n),0,l):n.split(a,l)):[]}o(qE,"split");var HE=pi(function(n,a,l){return n+(l?" ":"")+Ac(a)});function zE(n,a,l){return n=me(n),l=l==null?0:xn(re(l),0,n.length),a=Dt(a),n.slice(l,l+a.length)==a}o(zE,"startsWith");function GE(n,a,l){var h=m.templateSettings;l&&nt(n,a,l)&&(a=e),n=me(n),a=Fs({},a,h,Wg);var d=Fs({},a.imports,h.imports,Wg),D=ze(d),w=Wl(d,D),y,C,T=0,R=a.interpolate||qo,M="__p += '",W=Hl((a.escape||qo).source+"|"+R.source+"|"+(R===up?C_:qo).source+"|"+(a.evaluate||qo).source+"|$","g"),j="//# sourceURL="+(ve.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Q_+"]")+`
|
|
5
|
+
`;n.replace(W,function(Y,oe,ue,yt,it,bt){return ue||(ue=yt),M+=n.slice(T,bt).replace(T_,wC),oe&&(y=!0,M+=`' +
|
|
6
|
+
__e(`+oe+`) +
|
|
7
|
+
'`),it&&(C=!0,M+=`';
|
|
8
|
+
`+it+`;
|
|
9
|
+
__p += '`),ue&&(M+=`' +
|
|
10
|
+
((__t = (`+ue+`)) == null ? '' : __t) +
|
|
11
|
+
'`),T=bt+Y.length,Y}),M+=`';
|
|
12
|
+
`;var V=ve.call(a,"variable")&&a.variable;if(!V)M=`with (obj) {
|
|
13
|
+
`+M+`
|
|
14
|
+
}
|
|
15
|
+
`;else if(b_.test(V))throw new X(u);M=(C?M.replace(a_,""):M).replace(o_,"$1").replace(s_,"$1;"),M="function("+(V||"obj")+`) {
|
|
16
|
+
`+(V?"":`obj || (obj = {});
|
|
17
|
+
`)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(C?`, __j = Array.prototype.join;
|
|
18
|
+
function print() { __p += __j.call(arguments, '') }
|
|
19
|
+
`:`;
|
|
20
|
+
`)+M+`return __p
|
|
21
|
+
}`;var ie=Im(function(){return de(D,j+"return "+M).apply(e,w)});if(ie.source=M,kc(ie))throw ie;return ie}o(GE,"template");function $E(n){return me(n).toLowerCase()}o($E,"toLower");function jE(n){return me(n).toUpperCase()}o(jE,"toUpper");function ZE(n,a,l){if(n=me(n),n&&(l||a===e))return qp(n);if(!n||!(a=Dt(a)))return n;var h=Zt(n),d=Zt(a),D=Hp(h,d),w=zp(h,d)+1;return en(h,D,w).join("")}o(ZE,"trim");function KE(n,a,l){if(n=me(n),n&&(l||a===e))return n.slice(0,$p(n)+1);if(!n||!(a=Dt(a)))return n;var h=Zt(n),d=zp(h,Zt(a))+1;return en(h,0,d).join("")}o(KE,"trimEnd");function VE(n,a,l){if(n=me(n),n&&(l||a===e))return n.replace(kl,"");if(!n||!(a=Dt(a)))return n;var h=Zt(n),d=Hp(h,Zt(a));return en(h,d).join("")}o(VE,"trimStart");function YE(n,a){var l=z,h=J;if(Ee(a)){var d="separator"in a?a.separator:d;l="length"in a?re(a.length):l,h="omission"in a?Dt(a.omission):h}n=me(n);var D=n.length;if(si(n)){var w=Zt(n);D=w.length}if(l>=D)return n;var y=l-ui(h);if(y<1)return h;var C=w?en(w,0,y).join(""):n.slice(0,y);if(d===e)return C+h;if(w&&(y+=C.length-y),Sc(d)){if(n.slice(y).search(d)){var T,R=C;for(d.global||(d=Hl(d.source,me(lp.exec(d))+"g")),d.lastIndex=0;T=d.exec(R);)var M=T.index;C=C.slice(0,M===e?y:M)}}else if(n.indexOf(Dt(d),y)!=y){var W=C.lastIndexOf(d);W>-1&&(C=C.slice(0,W))}return C+h}o(YE,"truncate");function JE(n){return n=me(n),n&&u_.test(n)?n.replace(op,SC):n}o(JE,"unescape");var XE=pi(function(n,a,l){return n+(l?" ":"")+a.toUpperCase()}),Ac=Pg("toUpperCase");function Rm(n,a,l){return n=me(n),a=l?e:a,a===e?bC(n)?AC(n):fC(n):n.match(a)||[]}o(Rm,"words");var Im=ae(function(n,a){try{return mt(n,e,a)}catch(l){return kc(l)?l:new X(l)}}),QE=Fr(function(n,a){return Ft(a,function(l){l=cr(l),Sr(n,l,Cc(n[l],n))}),n});function eF(n){var a=n==null?0:n.length,l=K();return n=a?ke(n,function(h){if(typeof h[1]!="function")throw new At(s);return[l(h[0]),h[1]]}):[],ae(function(h){for(var d=-1;++d<a;){var D=n[d];if(mt(D[0],this,h))return mt(D[1],this,h)}})}o(eF,"cond");function tF(n){return S1(Rt(n,p))}o(tF,"conforms");function Tc(n){return function(){return n}}o(Tc,"constant");function rF(n,a){return n==null||n!==n?a:n}o(rF,"defaultTo");var nF=Mg(),iF=Mg(!0);function ft(n){return n}o(ft,"identity");function Rc(n){return hg(typeof n=="function"?n:Rt(n,p))}o(Rc,"iteratee");function aF(n){return dg(Rt(n,p))}o(aF,"matches");function oF(n,a){return pg(n,Rt(a,p))}o(oF,"matchesProperty");var sF=ae(function(n,a){return function(l){return Ca(l,n,a)}}),uF=ae(function(n,a){return function(l){return Ca(n,l,a)}});function Ic(n,a,l){var h=ze(a),d=ls(a,h);l==null&&!(Ee(a)&&(d.length||!h.length))&&(l=a,a=n,n=this,d=ls(a,ze(a)));var D=!(Ee(l)&&"chain"in l)||!!l.chain,w=Tr(n);return Ft(d,function(y){var C=a[y];n[y]=C,w&&(n.prototype[y]=function(){var T=this.__chain__;if(D||T){var R=n(this.__wrapped__),M=R.__actions__=lt(this.__actions__);return M.push({func:C,args:arguments,thisArg:n}),R.__chain__=T,R}return C.apply(n,Zr([this.value()],arguments))})}),n}o(Ic,"mixin");function lF(){return He._===this&&(He._=MC),this}o(lF,"noConflict");function Pc(){}o(Pc,"noop");function cF(n){return n=re(n),ae(function(a){return gg(a,n)})}o(cF,"nthArg");var hF=cc(ke),fF=cc(Op),dF=cc(Ml);function Pm(n){return vc(n)?Ol(cr(n)):z1(n)}o(Pm,"property");function pF(n){return function(a){return n==null?e:kn(n,a)}}o(pF,"propertyOf");var gF=Bg(),mF=Bg(!0);function Lc(){return[]}o(Lc,"stubArray");function Mc(){return!1}o(Mc,"stubFalse");function vF(){return{}}o(vF,"stubObject");function DF(){return""}o(DF,"stubString");function wF(){return!0}o(wF,"stubTrue");function yF(n,a){if(n=re(n),n<1||n>Gt)return[];var l=sr,h=Je(n,sr);a=K(a),n-=sr;for(var d=Nl(h,a);++l<n;)a(l);return d}o(yF,"times");function bF(n){return Q(n)?ke(n,cr):wt(n)?[n]:lt(Qg(me(n)))}o(bF,"toPath");function _F(n){var a=++PC;return me(n)+a}o(_F,"uniqueId");var CF=gs(function(n,a){return n+a},0),xF=hc("ceil"),kF=gs(function(n,a){return n/a},1),SF=hc("floor");function EF(n){return n&&n.length?us(n,ft,Yl):e}o(EF,"max");function FF(n,a){return n&&n.length?us(n,K(a,2),Yl):e}o(FF,"maxBy");function AF(n){return Np(n,ft)}o(AF,"mean");function TF(n,a){return Np(n,K(a,2))}o(TF,"meanBy");function RF(n){return n&&n.length?us(n,ft,ec):e}o(RF,"min");function IF(n,a){return n&&n.length?us(n,K(a,2),ec):e}o(IF,"minBy");var PF=gs(function(n,a){return n*a},1),LF=hc("round"),MF=gs(function(n,a){return n-a},0);function OF(n){return n&&n.length?Ul(n,ft):0}o(OF,"sum");function BF(n,a){return n&&n.length?Ul(n,K(a,2)):0}return o(BF,"sumBy"),m.after=aS,m.ary=cm,m.assign=jS,m.assignIn=xm,m.assignInWith=Fs,m.assignWith=ZS,m.at=KS,m.before=hm,m.bind=Cc,m.bindAll=QE,m.bindKey=fm,m.castArray=vS,m.chain=sm,m.chunk=Sx,m.compact=Ex,m.concat=Fx,m.cond=eF,m.conforms=tF,m.constant=Tc,m.countBy=Ok,m.create=VS,m.curry=dm,m.curryRight=pm,m.debounce=gm,m.defaults=YS,m.defaultsDeep=JS,m.defer=oS,m.delay=sS,m.difference=Ax,m.differenceBy=Tx,m.differenceWith=Rx,m.drop=Ix,m.dropRight=Px,m.dropRightWhile=Lx,m.dropWhile=Mx,m.fill=Ox,m.filter=Uk,m.flatMap=qk,m.flatMapDeep=Hk,m.flatMapDepth=zk,m.flatten=nm,m.flattenDeep=Bx,m.flattenDepth=Ux,m.flip=uS,m.flow=nF,m.flowRight=iF,m.fromPairs=Nx,m.functions=iE,m.functionsIn=aE,m.groupBy=Gk,m.initial=qx,m.intersection=Hx,m.intersectionBy=zx,m.intersectionWith=Gx,m.invert=sE,m.invertBy=uE,m.invokeMap=jk,m.iteratee=Rc,m.keyBy=Zk,m.keys=ze,m.keysIn=ht,m.map=_s,m.mapKeys=cE,m.mapValues=hE,m.matches=aF,m.matchesProperty=oF,m.memoize=xs,m.merge=fE,m.mergeWith=km,m.method=sF,m.methodOf=uF,m.mixin=Ic,m.negate=ks,m.nthArg=cF,m.omit=dE,m.omitBy=pE,m.once=lS,m.orderBy=Kk,m.over=hF,m.overArgs=cS,m.overEvery=fF,m.overSome=dF,m.partial=xc,m.partialRight=mm,m.partition=Vk,m.pick=gE,m.pickBy=Sm,m.property=Pm,m.propertyOf=pF,m.pull=Kx,m.pullAll=am,m.pullAllBy=Vx,m.pullAllWith=Yx,m.pullAt=Jx,m.range=gF,m.rangeRight=mF,m.rearg=hS,m.reject=Xk,m.remove=Xx,m.rest=fS,m.reverse=bc,m.sampleSize=eS,m.set=vE,m.setWith=DE,m.shuffle=tS,m.slice=Qx,m.sortBy=iS,m.sortedUniq=ok,m.sortedUniqBy=sk,m.split=qE,m.spread=dS,m.tail=uk,m.take=lk,m.takeRight=ck,m.takeRightWhile=hk,m.takeWhile=fk,m.tap=Ek,m.throttle=pS,m.thru=bs,m.toArray=bm,m.toPairs=Em,m.toPairsIn=Fm,m.toPath=bF,m.toPlainObject=Cm,m.transform=wE,m.unary=gS,m.union=dk,m.unionBy=pk,m.unionWith=gk,m.uniq=mk,m.uniqBy=vk,m.uniqWith=Dk,m.unset=yE,m.unzip=_c,m.unzipWith=om,m.update=bE,m.updateWith=_E,m.values=vi,m.valuesIn=CE,m.without=wk,m.words=Rm,m.wrap=mS,m.xor=yk,m.xorBy=bk,m.xorWith=_k,m.zip=Ck,m.zipObject=xk,m.zipObjectDeep=kk,m.zipWith=Sk,m.entries=Em,m.entriesIn=Fm,m.extend=xm,m.extendWith=Fs,Ic(m,m),m.add=CF,m.attempt=Im,m.camelCase=EE,m.capitalize=Am,m.ceil=xF,m.clamp=xE,m.clone=DS,m.cloneDeep=yS,m.cloneDeepWith=bS,m.cloneWith=wS,m.conformsTo=_S,m.deburr=Tm,m.defaultTo=rF,m.divide=kF,m.endsWith=FE,m.eq=Vt,m.escape=AE,m.escapeRegExp=TE,m.every=Bk,m.find=Nk,m.findIndex=tm,m.findKey=XS,m.findLast=Wk,m.findLastIndex=rm,m.findLastKey=QS,m.floor=SF,m.forEach=um,m.forEachRight=lm,m.forIn=eE,m.forInRight=tE,m.forOwn=rE,m.forOwnRight=nE,m.get=Ec,m.gt=CS,m.gte=xS,m.has=oE,m.hasIn=Fc,m.head=im,m.identity=ft,m.includes=$k,m.indexOf=Wx,m.inRange=kE,m.invoke=lE,m.isArguments=Fn,m.isArray=Q,m.isArrayBuffer=kS,m.isArrayLike=ct,m.isArrayLikeObject=Ie,m.isBoolean=SS,m.isBuffer=tn,m.isDate=ES,m.isElement=FS,m.isEmpty=AS,m.isEqual=TS,m.isEqualWith=RS,m.isError=kc,m.isFinite=IS,m.isFunction=Tr,m.isInteger=vm,m.isLength=Ss,m.isMap=Dm,m.isMatch=PS,m.isMatchWith=LS,m.isNaN=MS,m.isNative=OS,m.isNil=US,m.isNull=BS,m.isNumber=wm,m.isObject=Ee,m.isObjectLike=Te,m.isPlainObject=Aa,m.isRegExp=Sc,m.isSafeInteger=NS,m.isSet=ym,m.isString=Es,m.isSymbol=wt,m.isTypedArray=mi,m.isUndefined=WS,m.isWeakMap=qS,m.isWeakSet=HS,m.join=$x,m.kebabCase=RE,m.last=Pt,m.lastIndexOf=jx,m.lowerCase=IE,m.lowerFirst=PE,m.lt=zS,m.lte=GS,m.max=EF,m.maxBy=FF,m.mean=AF,m.meanBy=TF,m.min=RF,m.minBy=IF,m.stubArray=Lc,m.stubFalse=Mc,m.stubObject=vF,m.stubString=DF,m.stubTrue=wF,m.multiply=PF,m.nth=Zx,m.noConflict=lF,m.noop=Pc,m.now=Cs,m.pad=LE,m.padEnd=ME,m.padStart=OE,m.parseInt=BE,m.random=SE,m.reduce=Yk,m.reduceRight=Jk,m.repeat=UE,m.replace=NE,m.result=mE,m.round=LF,m.runInContext=_,m.sample=Qk,m.size=rS,m.snakeCase=WE,m.some=nS,m.sortedIndex=ek,m.sortedIndexBy=tk,m.sortedIndexOf=rk,m.sortedLastIndex=nk,m.sortedLastIndexBy=ik,m.sortedLastIndexOf=ak,m.startCase=HE,m.startsWith=zE,m.subtract=MF,m.sum=OF,m.sumBy=BF,m.template=GE,m.times=yF,m.toFinite=Rr,m.toInteger=re,m.toLength=_m,m.toLower=$E,m.toNumber=Lt,m.toSafeInteger=$S,m.toString=me,m.toUpper=jE,m.trim=ZE,m.trimEnd=KE,m.trimStart=VE,m.truncate=YE,m.unescape=JE,m.uniqueId=_F,m.upperCase=XE,m.upperFirst=Ac,m.each=um,m.eachRight=lm,m.first=im,Ic(m,function(){var n={};return ur(m,function(a,l){ve.call(m.prototype,l)||(n[l]=a)}),n}(),{chain:!1}),m.VERSION=t,Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){m[n].placeholder=m}),Ft(["drop","take"],function(n,a){se.prototype[n]=function(l){l=l===e?1:We(re(l),0);var h=this.__filtered__&&!a?new se(this):this.clone();return h.__filtered__?h.__takeCount__=Je(l,h.__takeCount__):h.__views__.push({size:Je(l,sr),type:n+(h.__dir__<0?"Right":"")}),h},se.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Ft(["filter","map","takeWhile"],function(n,a){var l=a+1,h=l==Ye||l==ti;se.prototype[n]=function(d){var D=this.clone();return D.__iteratees__.push({iteratee:K(d,3),type:l}),D.__filtered__=D.__filtered__||h,D}}),Ft(["head","last"],function(n,a){var l="take"+(a?"Right":"");se.prototype[n]=function(){return this[l](1).value()[0]}}),Ft(["initial","tail"],function(n,a){var l="drop"+(a?"":"Right");se.prototype[n]=function(){return this.__filtered__?new se(this):this[l](1)}}),se.prototype.compact=function(){return this.filter(ft)},se.prototype.find=function(n){return this.filter(n).head()},se.prototype.findLast=function(n){return this.reverse().find(n)},se.prototype.invokeMap=ae(function(n,a){return typeof n=="function"?new se(this):this.map(function(l){return Ca(l,n,a)})}),se.prototype.reject=function(n){return this.filter(ks(K(n)))},se.prototype.slice=function(n,a){n=re(n);var l=this;return l.__filtered__&&(n>0||a<0)?new se(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),a!==e&&(a=re(a),l=a<0?l.dropRight(-a):l.take(a-n)),l)},se.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},se.prototype.toArray=function(){return this.take(sr)},ur(se.prototype,function(n,a){var l=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),d=m[h?"take"+(a=="last"?"Right":""):a],D=h||/^find/.test(a);d&&(m.prototype[a]=function(){var w=this.__wrapped__,y=h?[1]:arguments,C=w instanceof se,T=y[0],R=C||Q(w),M=o(function(oe){var ue=d.apply(m,Zr([oe],y));return h&&W?ue[0]:ue},"interceptor");R&&l&&typeof T=="function"&&T.length!=1&&(C=R=!1);var W=this.__chain__,j=!!this.__actions__.length,V=D&&!W,ie=C&&!j;if(!D&&R){w=ie?w:new se(this);var Y=n.apply(w,y);return Y.__actions__.push({func:bs,args:[M],thisArg:e}),new Tt(Y,W)}return V&&ie?n.apply(this,y):(Y=this.thru(M),V?h?Y.value()[0]:Y.value():Y)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(n){var a=Zo[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",h=/^(?:pop|shift)$/.test(n);m.prototype[n]=function(){var d=arguments;if(h&&!this.__chain__){var D=this.value();return a.apply(Q(D)?D:[],d)}return this[l](function(w){return a.apply(Q(w)?w:[],d)})}}),ur(se.prototype,function(n,a){var l=m[a];if(l){var h=l.name+"";ve.call(hi,h)||(hi[h]=[]),hi[h].push({name:a,func:l})}}),hi[ps(e,P).name]=[{name:"wrapper",func:e}],se.prototype.clone=JC,se.prototype.reverse=XC,se.prototype.value=QC,m.prototype.at=Fk,m.prototype.chain=Ak,m.prototype.commit=Tk,m.prototype.next=Rk,m.prototype.plant=Pk,m.prototype.reverse=Lk,m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=Mk,m.prototype.first=m.prototype.head,ma&&(m.prototype[ma]=Ik),m},"runInContext"),Vr=TC();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(He._=Vr,define(function(){return Vr})):yn?((yn.exports=Vr)._=Vr,Rl._=Vr):He._=Vr}).call($i)});var Qw=O(zn=>{var xu=Xw();function mo(e){return e.reduce(function(t,r,i,s){return t+r})}o(mo,"sum");function wr(e){if(xu.isArray(e))return e;if(typeof e=="string")return e.split("");throw Error("Parameter must be a string or array.")}o(wr,"ensureArr");zn.jarowinkler=function(e,t,q){e=wr(e),t=wr(t);var i,s;e.length>t.length?(i=e,s=t):(i=t,s=e);var u=q||.7,c=.1,f=Math.floor(Math.max(i.length/2-1,0)),v=[],p=[],g,b,x,S,L=0;for(g=0;g<s.length;g++)for(S=s[g],b=Math.max(g-f,0),x=Math.min(g+f+1,i.length);b<x;b++)if(!p[b]&&S===i[b]){v[g]=b,p[b]=!0,L++;break}var P=[],U=[],A,I,N=0,B=0;for(A=0,I=0;A<s.length;A++)v[A]>-1&&(P[I]=s[A],I++);for(A=0,I=0;A<i.length;A++)p[A]&&(U[I]=i[A],I++);for(g=0;g<P.length;g++)P[g]!==U[g]&&N++;for(g=0;g<s.length&&e[g]===t[g];g++)B++;var F=L,q=N/2;if(F){var G=(F/e.length+F/t.length+(F-q)/F)/3,z=G<u?G:G+Math.min(c,1/i.length)*B*(1-G);return z}else return 0};zn.levenshtein=function(e,t,r){if(e=wr(e),t=wr(t),e.length===0)return t.length;if(t.length===0)return e.length;var i=r||{d:1,i:1,s:1},s=[],u=[],c=t.length+1,f,v,p,g;for(f=0;f<c;f++)s[f]=f;for(f=0;f<e.length;f++){for(u[0]=f+1,v=0;v<t.length;v++)p=e[f]===t[v]?0:i.s,u[v+1]=Math.min(u[v]+i.d,s[v+1]+i.i,s[v]+p);for(v=0;v<c;v++)s[v]=u[v]}return g=Math.max(e.length,t.length),(g-u[t.length])/g};zn.ngram=function(e,t,r){e=wr(e),t=wr(t);var i=e.length,s=t.length,u=r||2,c,f,v,p,g,b,x,S=[],L=[],P=[],U=[],A=[],I=i+1;if(i===0||s===0)return i===s?1:0;if(c=0,i<u||s<u){for(f=0,p=Math.min(i,s);f<p;f++)e[f]===t[f]&&c++;return c/Math.max(i,s)}for(f=0;f<i+u-1;f++)f<u-1?S[f]=0:S[f]=e[f-u+1];for(f=0;f<=i;f++)L[f]=f;for(v=1;v<=s;v++){if(v<u){for(g=0;g<u-v;g++)A[g]=0;for(g=u-v;g<u;g++)A[g]=t[g-(u-v)]}else A=t.slice(v-u,v);for(P[0]=v,f=1;f<=i;f++){for(c=0,b=u,p=0;p<u;p++)S[f-1+p]!==A[p]?c++:S[f-1+p]===0&&b--;x=c/b,P[f]=Math.min(Math.min(P[f-1]+1,L[f]+1),L[f-1]+x)}U=L,L=P,P=U}return 1-L[i]/Math.max(i,s)};zn.pearson=function(e,t){var r=[];Object.keys(e).forEach(function(b){t[b]&&r.push(b)});var i=r.length;if(i===0)return 0;var s=mo(r.map(function(b){return e[b]})),u=mo(r.map(function(b){return t[b]})),c=mo(r.map(function(b){return Math.pow(e[b],2)})),f=mo(r.map(function(b){return Math.pow(t[b],2)})),v=mo(r.map(function(b){return e[b]*t[b]})),p=v-s*u/i,g=Math.sqrt((c-Math.pow(s,2)/i)*(f-Math.pow(u,2)/i));return g===0?0:p/g};zn.jaccard=function(e,t){return e=wr(e),t=wr(t),xu.intersection(e,t).length/xu.union(e,t).length};zn.tanimoto=function(e,t){e=wr(e),t=wr(t);var r=xu.intersection(e,t).length;return r/(e.length+t.length-r)}});var oy=O((qB,ay)=>{var ji=1e3,Zi=ji*60,Ki=Zi*60,$n=Ki*24,PI=$n*7,LI=$n*365.25;ay.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return MI(e);if(r==="number"&&isFinite(e))return t.long?BI(e):OI(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function MI(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*LI;case"weeks":case"week":case"w":return r*PI;case"days":case"day":case"d":return r*$n;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ki;case"minutes":case"minute":case"mins":case"min":case"m":return r*Zi;case"seconds":case"second":case"secs":case"sec":case"s":return r*ji;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}o(MI,"parse");function OI(e){var t=Math.abs(e);return t>=$n?Math.round(e/$n)+"d":t>=Ki?Math.round(e/Ki)+"h":t>=Zi?Math.round(e/Zi)+"m":t>=ji?Math.round(e/ji)+"s":e+"ms"}o(OI,"fmtShort");function BI(e){var t=Math.abs(e);return t>=$n?Eu(e,t,$n,"day"):t>=Ki?Eu(e,t,Ki,"hour"):t>=Zi?Eu(e,t,Zi,"minute"):t>=ji?Eu(e,t,ji,"second"):e+" ms"}o(BI,"fmtLong");function Eu(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}o(Eu,"plural")});var Nf=O((zB,sy)=>{function UI(e){r.debug=r,r.default=r,r.coerce=v,r.disable=u,r.enable=s,r.enabled=c,r.humanize=oy(),r.destroy=p,Object.keys(e).forEach(g=>{r[g]=e[g]}),r.names=[],r.skips=[],r.formatters={};function t(g){let b=0;for(let x=0;x<g.length;x++)b=(b<<5)-b+g.charCodeAt(x),b|=0;return r.colors[Math.abs(b)%r.colors.length]}o(t,"selectColor"),r.selectColor=t;function r(g){let b,x=null,S,L;function P(...U){if(!P.enabled)return;let A=P,I=Number(new Date),N=I-(b||I);A.diff=N,A.prev=b,A.curr=I,b=I,U[0]=r.coerce(U[0]),typeof U[0]!="string"&&U.unshift("%O");let B=0;U[0]=U[0].replace(/%([a-zA-Z%])/g,(q,G)=>{if(q==="%%")return"%";B++;let z=r.formatters[G];if(typeof z=="function"){let J=U[B];q=z.call(A,J),U.splice(B,1),B--}return q}),r.formatArgs.call(A,U),(A.log||r.log).apply(A,U)}return o(P,"debug"),P.namespace=g,P.useColors=r.useColors(),P.color=r.selectColor(g),P.extend=i,P.destroy=r.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:o(()=>x!==null?x:(S!==r.namespaces&&(S=r.namespaces,L=r.enabled(g)),L),"get"),set:o(U=>{x=U},"set")}),typeof r.init=="function"&&r.init(P),P}o(r,"createDebug");function i(g,b){let x=r(this.namespace+(typeof b>"u"?":":b)+g);return x.log=this.log,x}o(i,"extend");function s(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let b,x=(typeof g=="string"?g:"").split(/[\s,]+/),S=x.length;for(b=0;b<S;b++)x[b]&&(g=x[b].replace(/\*/g,".*?"),g[0]==="-"?r.skips.push(new RegExp("^"+g.slice(1)+"$")):r.names.push(new RegExp("^"+g+"$")))}o(s,"enable");function u(){let g=[...r.names.map(f),...r.skips.map(f).map(b=>"-"+b)].join(",");return r.enable(""),g}o(u,"disable");function c(g){if(g[g.length-1]==="*")return!0;let b,x;for(b=0,x=r.skips.length;b<x;b++)if(r.skips[b].test(g))return!1;for(b=0,x=r.names.length;b<x;b++)if(r.names[b].test(g))return!0;return!1}o(c,"enabled");function f(g){return g.toString().substring(2,g.toString().length-2).replace(/\.\*\?$/,"*")}o(f,"toNamespace");function v(g){return g instanceof Error?g.stack||g.message:g}o(v,"coerce");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 o(p,"destroy"),r.enable(r.load()),r}o(UI,"setup");sy.exports=UI});var uy=O((kt,Fu)=>{kt.formatArgs=WI;kt.save=qI;kt.load=HI;kt.useColors=NI;kt.storage=zI();kt.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();kt.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 NI(){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 e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(NI,"useColors");function WI(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Fu.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}o(WI,"formatArgs");kt.log=console.debug||console.log||(()=>{});function qI(e){try{e?kt.storage.setItem("debug",e):kt.storage.removeItem("debug")}catch{}}o(qI,"save");function HI(){let e;try{e=kt.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}o(HI,"load");function zI(){try{return localStorage}catch{}}o(zI,"localstorage");Fu.exports=Nf()(kt);var{formatters:GI}=Fu.exports;GI.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var cy=O((jB,ly)=>{"use strict";ly.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)}});var dy=O((ZB,fy)=>{"use strict";var $I=require("os"),hy=require("tty"),Wt=cy(),{env:Ge}=process,gn;Wt("no-color")||Wt("no-colors")||Wt("color=false")||Wt("color=never")?gn=0:(Wt("color")||Wt("colors")||Wt("color=true")||Wt("color=always"))&&(gn=1);"FORCE_COLOR"in Ge&&(Ge.FORCE_COLOR==="true"?gn=1:Ge.FORCE_COLOR==="false"?gn=0:gn=Ge.FORCE_COLOR.length===0?1:Math.min(parseInt(Ge.FORCE_COLOR,10),3));function Wf(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}o(Wf,"translateLevel");function qf(e,t){if(gn===0)return 0;if(Wt("color=16m")||Wt("color=full")||Wt("color=truecolor"))return 3;if(Wt("color=256"))return 2;if(e&&!t&&gn===void 0)return 0;let r=gn||0;if(Ge.TERM==="dumb")return r;if(process.platform==="win32"){let i=$I.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ge)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Ge)||Ge.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ge)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ge.TEAMCITY_VERSION)?1:0;if(Ge.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ge){let i=parseInt((Ge.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ge.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ge.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ge.TERM)||"COLORTERM"in Ge?1:r}o(qf,"supportsColor");function jI(e){let t=qf(e,e&&e.isTTY);return Wf(t)}o(jI,"getSupportLevel");fy.exports={supportsColor:jI,stdout:Wf(qf(!0,hy.isatty(1))),stderr:Wf(qf(!0,hy.isatty(2)))}});var gy=O(($e,Tu)=>{var ZI=require("tty"),Au=require("util");$e.init=eP;$e.log=JI;$e.formatArgs=VI;$e.save=XI;$e.load=QI;$e.useColors=KI;$e.destroy=Au.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");$e.colors=[6,2,3,4,5,1];try{let e=dy();e&&(e.stderr||e).level>=2&&($e.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{}$e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,u)=>u.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function KI(){return"colors"in $e.inspectOpts?!!$e.inspectOpts.colors:ZI.isatty(process.stderr.fd)}o(KI,"useColors");function VI(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),u=` ${s};1m${t} \x1B[0m`;e[0]=u+e[0].split(`
|
|
3
22
|
`).join(`
|
|
4
|
-
`+
|
|
5
|
-
`)}o(
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};
|
|
23
|
+
`+u),e.push(s+"m+"+Tu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=YI()+t+" "+e[0]}o(VI,"formatArgs");function YI(){return $e.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(YI,"getDate");function JI(...e){return process.stderr.write(Au.formatWithOptions($e.inspectOpts,...e)+`
|
|
24
|
+
`)}o(JI,"log");function XI(e){e?process.env.DEBUG=e:delete process.env.DEBUG}o(XI,"save");function QI(){return process.env.DEBUG}o(QI,"load");function eP(e){e.inspectOpts={};let t=Object.keys($e.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=$e.inspectOpts[t[r]]}o(eP,"init");Tu.exports=Nf()($e);var{formatters:py}=Tu.exports;py.o=function(e){return this.inspectOpts.colors=this.useColors,Au.inspect(e,this.inspectOpts).split(`
|
|
25
|
+
`).map(t=>t.trim()).join(" ")};py.O=function(e){return this.inspectOpts.colors=this.useColors,Au.inspect(e,this.inspectOpts)}});var my=O((YB,Hf)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Hf.exports=uy():Hf.exports=gy()});var Fy=O((je,Vf)=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});function tP(e){return e&&typeof e=="object"&&"default"in e?e.default:e}o(tP,"_interopDefault");var jf=tP(my()),Yf=class Yf{constructor(t,r){this.moduleName=t,this.packageNames=r}lazyloadExportOrDie(t){let r=this,i=Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(s=>[s,function(u,...c){let v=r.loadModuleOrDie()[t];return Reflect[s](v||u,...c)}]));return new Proxy({},i)}loadModule(){return Gf(this.packageNames)}loadModuleOrDie(){let t=Gf(this.packageNames);if(t)return t;throw this.requireError}get requireError(){let t=this.moduleName.charAt(0).toUpperCase()+this.moduleName.slice(1);return new Error(`
|
|
7
26
|
${t} is missing. :-)
|
|
8
27
|
|
|
9
28
|
I've tried loading ${this.packageNames.map(r=>`"${r}"`).join(", ")} - no luck.
|
|
@@ -13,11 +32,11 @@
|
|
|
13
32
|
|
|
14
33
|
To get the latest stable version of ${t} run:
|
|
15
34
|
'yarn add ${this.moduleName}' or 'npm i ${this.moduleName}'
|
|
16
|
-
`)}};o(
|
|
17
|
-
The plugin '${
|
|
35
|
+
`)}};o(Yf,"Loader");var zf=Yf;function Gf(e){for(let t of e)try{return require(t)}catch{continue}}o(Gf,"requirePackages");var yr=new zf("playwright",["playwright-core","playwright"]),st=jf("playwright-extra:puppeteer-compat"),$f=o(e=>"unroute"in e,"isPlaywrightPage"),vy=o(e=>["parentFrame","frameLocator"].every(t=>t in e),"isPlaywrightFrame"),rP=o(e=>"newContext"in e,"isPlaywrightBrowser"),nP=o(e=>!!e&&typeof e=="object"&&!!e.isCompatShim,"isPuppeteerCompat"),Gr={objectToShim:new Map,cdpSession:{page:new Map,browser:new Map}};function Zf(e){if(!e||typeof e!="object")return e;if(Gr.objectToShim.has(e))return Gr.objectToShim.get(e);if(nP(e))return e;if(st("addPuppeteerCompat",Gr.objectToShim.size),$f(e)||vy(e)){let t=aP(e);return Gr.objectToShim.set(e,t),t}if(rP(e)){let t=oP(e);return Gr.objectToShim.set(e,t),t}return st("Received unknown object:",Reflect.ownKeys(e)),e}o(Zf,"addPuppeteerCompat");var Dy={send:o(async(...e)=>{st("dummy CDP client called","send",e)},"send"),on:o((...e)=>{st("dummy CDP client called","on",e)},"on")};async function wo(e){let t=Gr.cdpSession.page.get(e);if(t)return st("getPageCDPSession: use existing"),t;st("getPageCDPSession: use new");let r=vy(e)?e.page().context():e.context();try{return t=await r.newCDPSession(e),Gr.cdpSession.page.set(e,t),t}catch(i){st("getPageCDPSession: error while creating session:",i.message),st("getPageCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Dy}o(wo,"getPageCDPSession");async function iP(e){let t=Gr.cdpSession.browser.get(e);if(t)return st("getBrowserCDPSession: use existing"),t;st("getBrowserCDPSession: use new");try{return t=await e.newBrowserCDPSession(),Gr.cdpSession.browser.set(e,t),t}catch(r){st("getBrowserCDPSession: error while creating session:",r.message),st("getBrowserCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Dy}o(iP,"getBrowserCDPSession");function aP(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,s){return s==="isCompatShim"||s==="isPlaywright"?!0:(st("page - get",t,s),s==="_client"?()=>({send:o(async(u,c)=>await(await wo(e)).send(u,c),"send"),on:o((u,c)=>{wo(e).then(f=>{f.on(u,c)})},"on")}):s==="setBypassCSP"?async u=>await(await wo(e)).send("Page.setBypassCSP",{enabled:u}):s==="setUserAgent"?async(u,c)=>await(await wo(e)).send("Emulation.setUserAgentOverride",{userAgent:u,userAgentMetadata:c}):s==="browser"&&$f(e)?()=>{let u=e.context().browser();return u||(st("page.browser() - not available, most likely due to launchPersistentContext"),u=e),Zf(u)}:s==="evaluateOnNewDocument"&&$f(e)?async function(u,...c){return await e.addInitScript(u,c[0])}:s==="userAgent"?async u=>(await(await wo(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,s))}})}o(aP,"createPageShim");function oP(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,s){return s==="isCompatShim"||s==="isPlaywright"?!0:(st("browser - get",t,s),s==="pages"?()=>e.contexts().flatMap(u=>u.pages().map(c=>Zf(c))):s==="userAgent"?async()=>(await(await iP(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,s))}})}o(oP,"createBrowserShim");var qt=jf("playwright-extra:plugins"),Jf=class Jf{constructor(){this._plugins=[],this._dependencyDefaults=new Map,this._dependencyResolution=new Map}get list(){return this._plugins}get names(){return this._plugins.map(t=>t.name)}add(t){var r;return this.isValidPluginInstance(t)?(t.onPluginRegistered&&t.onPluginRegistered({framework:"playwright"}),t._registerChildClassMembers&&t._registerChildClassMembers(Object.getPrototypeOf(t)),!((r=t.requirements)===null||r===void 0)&&r.has("dataFromPlugins")&&(t.getDataFromPlugins=this.getData.bind(this)),this._plugins.push(t),!0):!1}isValidPluginInstance(t){return!t||typeof t!="object"||!t._isPuppeteerExtraPlugin?(console.error("Warning: Plugin is not derived from PuppeteerExtraPlugin, ignoring.",t),!1):t.name?!0:(console.error("Warning: Plugin with no name registering, ignoring.",t),!1)}onPluginError(t,r,i){console.warn(`An error occured while executing "${r}" in plugin "${t.name}":`,i)}setDependencyDefaults(t,r){return this._dependencyDefaults.set(t,r),this}setDependencyResolution(t,r){return this._dependencyResolution.set(t,r),this}prepare(){this.resolveDependencies(),this.order()}filterByMethod(t){return this._plugins.filter(r=>r._childClassMembers&&Array.isArray(r._childClassMembers)?r._childClassMembers.includes(t):t in r)}_addPuppeteerCompatIfNeeded(t,r,i){let s=t._isPuppeteerExtraPlugin&&!t.noPuppeteerShim,c=["onBrowser","onPageCreated","onPageClose","afterConnect","afterLaunch"].includes(r);return!s||!c?i:(qt("add puppeteer compatibility",t.name,r),[...i.map(f=>Zf(f))])}dispatch(t,...r){var i,s;let u=this.filterByMethod(t);qt("dispatch",t,{all:this._plugins.length,filteredByMethod:u.length});for(let c of u)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(c,t,r);let f=(s=(i=c[t])===null||i===void 0?void 0:i.constructor)===null||s===void 0?void 0:s.name;qt("dispatch to plugin",{plugin:c.name,method:t,fnType:f}),f==="AsyncFunction"?c[t](...r).catch(v=>this.onPluginError(c,t,v)):c[t](...r)}catch(f){this.onPluginError(c,t,f)}}async dispatchBlocking(t,...r){let i=this.filterByMethod(t);qt("dispatchBlocking",t,{all:this._plugins.length,filteredByMethod:i.length});let s=null;for(let u of i)try{r=this._addPuppeteerCompatIfNeeded.bind(this)(u,t,r),s=await u[t](...r),s!==void 0&&(r[0]=s)}catch(c){return this.onPluginError(u,t,c),s}return s}order(){qt("order:before",this.names);let t=this._plugins.filter(r=>{var i;return(i=r.requirements)===null||i===void 0?void 0:i.has("runLast")}).map(r=>r.name);for(let r of t){let i=this._plugins.findIndex(s=>s.name===r);this._plugins.push(this._plugins.splice(i,1)[0])}qt("order:after",this.names)}getData(t){let r=this._plugins.filter(i=>!!i.data).map(i=>Array.isArray(i.data)?i.data:[i.data]).reduce((i,s)=>[...i,...s],[]);return t?r.filter(i=>i.name===t):r}resolvePluginsStanza(){qt("resolvePluginsStanza");let t=new Set(this.names);this._plugins.filter(r=>!!r.plugins&&r.plugins.length).filter(r=>!t.has(r.name)).forEach(r=>{(r.plugins||[]).forEach(i=>{qt(r.name,"adding missing plugin",i.name),this.add(i)})})}resolveDependenciesStanza(){qt("resolveDependenciesStanza");let t=o((s,u)=>{if(this._dependencyResolution.has(u))return this._dependencyResolution.get(u);let c=["puppeteer-extra-plugin-"],f=c.some(b=>u.startsWith(b)),v=[];f||v.push(...c.map(b=>b+u)),v.push(u);let p=Gf(v);if(p)return p;let g=`
|
|
36
|
+
The plugin '${s}' listed '${u}' as dependency,
|
|
18
37
|
which could not be found. Please install it:
|
|
19
38
|
|
|
20
|
-
${
|
|
39
|
+
${v.map(b=>`yarn add ${b.split("/")[0]}`).join(`
|
|
21
40
|
or:
|
|
22
41
|
`)}
|
|
23
42
|
|
|
@@ -25,34 +44,34 @@ Note: You don't need to require the plugin yourself,
|
|
|
25
44
|
unless you want to modify it's default settings.
|
|
26
45
|
|
|
27
46
|
If your bundler has issues with dynamic imports take a look at '.plugins.setDependencyResolution()'.
|
|
28
|
-
`;throw console.warn(c),new Error("Plugin dependency not found")},"requireDependencyOrDie"),r=new Set(this.names),i=o(({name:n,dependencies:a})=>{if(!a)return;let s=o((l,h)=>{let u=t(n,l);h=h||this._dependencyDefaults.get(l)||{};let c=u(h);if(r.has(c.name)){Ee(n,"=> dependency already exists:",c.name);return}return r.add(c.name),Ee(n,"=> adding new dependency:",c.name,h),this.add(c),i(c)},"processDependency");if(a instanceof Set||Array.isArray(a))return[...a].forEach(l=>s(l));if(a instanceof Map)return a.forEach((l,h)=>s(h,l))},"recursivelyLoadMissingDependencies");this.list.forEach(i)}resolveDependencies(){Ee("resolveDependencies"),this.resolvePluginsStanza(),this.resolveDependenciesStanza()}};o(Os,"PluginList");var xi=Os,Le=Rs("playwright-extra"),Us=class Us{constructor(t){this._launcher=t,this.plugins=new xi}use(t){if(!(t&&"name"in t))throw new Error("A plugin must be provided to .use()");return this.plugins.add(t)&&Le("Plugin registered",t.name),this}get launcher(){if(!this._launcher)throw $e.requireError;return this._launcher}async launch(...t){if(!this.launcher.launch)throw new Error('Launcher does not support "launch"');let[r]=t;r=Object.assign({args:[]},r||{}),Le("launch",r),this.plugins.prepare(),r=await this.plugins.dispatchBlocking("beforeLaunch",r)||r,Le("launch with options",r),"userDataDir"in r&&(Le("A plugin defined userDataDir during .launch, which isn't supported by playwright - ignoring"),delete r.userDataDir);let i=await this.launcher.launch(r);return await this.plugins.dispatchBlocking("onBrowser",i),await this._bindBrowserEvents(i),await this.plugins.dispatchBlocking("afterLaunch",i),i}async launchPersistentContext(...t){if(!this.launcher.launchPersistentContext)throw new Error('Launcher does not support "launchPersistentContext"');let[r,i]=t;i=Object.assign({args:[]},i||{}),Le("launchPersistentContext",i),this.plugins.prepare(),i=await this.plugins.dispatchBlocking("beforeLaunch",i)||i;let n=await this.launcher.launchPersistentContext(r,i);return await this.plugins.dispatchBlocking("afterLaunch",n),this._bindBrowserContextEvents(n),n}async connect(t,r={}){if(!this.launcher.connect)throw new Error('Launcher does not support "connect"');this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({wsEndpoint:t},r)),Le("connect",i),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],s=i.wsEndpoint;n?(delete i.wsEndpoint,a.push(s,i)):a.push(i);let l=await this.launcher.connect(...a);return await this.plugins.dispatchBlocking("onBrowser",l),await this._bindBrowserEvents(l),await this.plugins.dispatchBlocking("afterConnect",l),l}async connectOverCDP(t,r={}){if(!this.launcher.connectOverCDP)throw new Error("Launcher does not implement 'connectOverCDP'");this.plugins.prepare();let i={},n=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(n=!0,i=Object.assign({endpointURL:t},r)),Le("connectOverCDP"),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let a=[],s=i.endpointURL;n?(delete i.endpointURL,a.push(s,i)):a.push(i);let l=await this.launcher.connectOverCDP(...a);return await this.plugins.dispatchBlocking("onBrowser",l),await this._bindBrowserEvents(l),await this.plugins.dispatchBlocking("afterConnect",l),l}async _bindBrowserContextEvents(t,r){Le("_bindBrowserContextEvents"),this.plugins.dispatch("onContextCreated",t,r),t.newPage=((i,n)=>async()=>{let a=await i.call(n);return await a.goto("about:blank"),a})(t.newPage,t),t.on("close",()=>{t.browser()||this.plugins.dispatch("onDisconnected")}),t.on("page",i=>{this.plugins.dispatch("onPageCreated",i),i.on("close",()=>{this.plugins.dispatch("onPageClose",i)})})}async _bindBrowserEvents(t){Le("_bindPlaywrightBrowserEvents"),t.on("disconnected",()=>{this.plugins.dispatch("onDisconnected",t)}),t.newContext=((r,i)=>async(n={})=>{let a=await this.plugins.dispatchBlocking("beforeContext",n,t)||n,s=await r.call(i,a);return this._bindBrowserContextEvents(s,a),s})(t.newContext,t)}};o(Us,"PlaywrightExtraClass");var Si=Us,Ms=new Proxy(Si,{construct(e,t){Le(`create instance of ${e.name}`);let r=Reflect.construct(e,t);return new Proxy(r,{get(i,n){return n in i?Reflect.get(i,n):(Le("proxying property to original launcher: ",n),Reflect.get(i.launcher,n))}})}}),Ei=o(e=>new Ms(e),"addExtra"),Ed=Ei(($e.loadModule()||{}).chromium),Fd=Ei(($e.loadModule()||{}).firefox),_d=Ei(($e.loadModule()||{}).webkit),Ad=$e.lazyloadExportOrDie("_android"),Td=$e.lazyloadExportOrDie("_electron"),Pd=$e.lazyloadExportOrDie("request"),Rd=$e.lazyloadExportOrDie("selectors"),Id=$e.lazyloadExportOrDie("devices"),Md=$e.lazyloadExportOrDie("errors"),xy={PlaywrightExtra:Ms,PlaywrightExtraClass:Si,PluginList:xi,addExtra:Ei,chromium:Ed,firefox:Fd,webkit:_d,_android:Ad,_electron:Td,request:Pd,selectors:Rd,devices:Id,errors:Md};te.PlaywrightExtra=Ms;te.PlaywrightExtraClass=Si;te.PluginList=xi;te._android=Ad;te._electron=Td;te.addExtra=Ei;te.chromium=Ed;te.default=xy;te.devices=Id;te.errors=Md;te.firefox=Fd;te.request=Pd;te.selectors=Rd;te.webkit=_d;Ls.exports=te.default||{};Object.entries(te).forEach(([e,t])=>{Ls.exports[e]=t})});var ta=D((SS,zd)=>{var Xs=require("tty"),qd,ea,jd,Fy=((jd=(ea=(qd=Xs==null?void 0:Xs.WriteStream)==null?void 0:qd.prototype)==null?void 0:ea.hasColors)==null?void 0:jd.call(ea))??!1,R=o((e,t)=>{if(!Fy)return n=>n;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return n=>{let a=n+"",s=a.indexOf(i);if(s===-1)return r+a+i;let l=r,h=0;for(;s!==-1;)l+=a.slice(h,s)+r,h=s+i.length,s=a.indexOf(i,h);return l+=a.slice(h)+i,l}},"format"),P={};P.reset=R(0,0);P.bold=R(1,22);P.dim=R(2,22);P.italic=R(3,23);P.underline=R(4,24);P.overline=R(53,55);P.inverse=R(7,27);P.hidden=R(8,28);P.strikethrough=R(9,29);P.black=R(30,39);P.red=R(31,39);P.green=R(32,39);P.yellow=R(33,39);P.blue=R(34,39);P.magenta=R(35,39);P.cyan=R(36,39);P.white=R(37,39);P.gray=R(90,39);P.bgBlack=R(40,49);P.bgRed=R(41,49);P.bgGreen=R(42,49);P.bgYellow=R(43,49);P.bgBlue=R(44,49);P.bgMagenta=R(45,49);P.bgCyan=R(46,49);P.bgWhite=R(47,49);P.bgGray=R(100,49);P.redBright=R(91,39);P.greenBright=R(92,39);P.yellowBright=R(93,39);P.blueBright=R(94,39);P.magentaBright=R(95,39);P.cyanBright=R(96,39);P.whiteBright=R(97,39);P.bgRedBright=R(101,49);P.bgGreenBright=R(102,49);P.bgYellowBright=R(103,49);P.bgBlueBright=R(104,49);P.bgMagentaBright=R(105,49);P.bgCyanBright=R(106,49);P.bgWhiteBright=R(107,49);zd.exports=P});var Jd=D((XS,Kd)=>{"use strict";Kd.exports=Ly;function My(e){let t={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}o(My,"normalizeOpts");function Ly(e){let t=My(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}o(Ly,"cliWidth")});var Xd=D((eE,Yd)=>{"use strict";Yd.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var ra=D((tE,Qd)=>{"use strict";var By=Xd();Qd.exports=e=>typeof e=="string"?e.replace(By(),""):e});var tp=D((rE,el)=>{"use strict";var ep=o(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");el.exports=ep;el.exports.default=ep});var ip=D((nE,rp)=>{"use strict";rp.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var ap=D((aE,tl)=>{"use strict";var Oy=ra(),Uy=tp(),Ny=ip(),np=o(e=>{if(typeof e!="string"||e.length===0||(e=Oy(e),e.length===0))return 0;e=e.replace(Ny()," ");let t=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,t+=Uy(i)?2:1)}return t},"stringWidth");tl.exports=np;tl.exports.default=np});var sp=D((sE,op)=>{"use strict";op.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var rl=D((lE,up)=>{var Pi=sp(),lp={};for(let e of Object.keys(Pi))lp[Pi[e]]=e;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};up.exports=S;for(let e of Object.keys(S)){if(!("channels"in S[e]))throw new Error("missing channels property: "+e);if(!("labels"in S[e]))throw new Error("missing channel labels property: "+e);if(S[e].labels.length!==S[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=S[e];delete S[e].channels,delete S[e].labels,Object.defineProperty(S[e],"channels",{value:t}),Object.defineProperty(S[e],"labels",{value:r})}S.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),s=a-n,l,h;a===n?l=0:t===a?l=(r-i)/s:r===a?l=2+(i-t)/s:i===a&&(l=4+(t-r)/s),l=Math.min(l*60,360),l<0&&(l+=360);let u=(n+a)/2;return a===n?h=0:u<=.5?h=s/(a+n):h=s/(2-a-n),[l,h*100,u*100]};S.rgb.hsv=function(e){let t,r,i,n,a,s=e[0]/255,l=e[1]/255,h=e[2]/255,u=Math.max(s,l,h),c=u-Math.min(s,l,h),f=o(function(d){return(u-d)/6/c+1/2},"diffc");return c===0?(n=0,a=0):(a=c/u,t=f(s),r=f(l),i=f(h),s===u?n=i-r:l===u?n=1/3+t-i:h===u&&(n=2/3+r-t),n<0?n+=1:n>1&&(n-=1)),[n*360,a*100,u*100]};S.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],n=S.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[n,a*100,i*100]};S.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(1-t,1-r,1-i),a=(1-t-n)/(1-n)||0,s=(1-r-n)/(1-n)||0,l=(1-i-n)/(1-n)||0;return[a*100,s*100,l*100,n*100]};function Wy(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o(Wy,"comparativeDistance");S.rgb.keyword=function(e){let t=lp[e];if(t)return t;let r=1/0,i;for(let n of Object.keys(Pi)){let a=Pi[n],s=Wy(e,a);s<r&&(r=s,i=n)}return i};S.keyword.rgb=function(e){return Pi[e]};S.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let n=t*.4124+r*.3576+i*.1805,a=t*.2126+r*.7152+i*.0722,s=t*.0193+r*.1192+i*.9505;return[n*100,a*100,s*100]};S.rgb.lab=function(e){let t=S.rgb.xyz(e),r=t[0],i=t[1],n=t[2];r/=95.047,i/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*i-16,s=500*(r-i),l=200*(i-n);return[a,s,l]};S.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,s;if(r===0)return s=i*255,[s,s,s];i<.5?n=i*(1+r):n=i+r-i*r;let l=2*i-n,h=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(n-l)*6*a:2*a<1?s=n:3*a<2?s=l+(n-l)*(2/3-a)*6:s=l,h[u]=s*255;return h};S.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=r,a=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,n*=a<=1?a:2-a;let s=(i+r)/2,l=i===0?2*n/(a+n):2*r/(i+r);return[t,l*100,s*100]};S.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,n=Math.floor(t)%6,a=t-Math.floor(t),s=255*i*(1-r),l=255*i*(1-r*a),h=255*i*(1-r*(1-a));switch(i*=255,n){case 0:return[i,h,s];case 1:return[l,i,s];case 2:return[s,i,h];case 3:return[s,l,i];case 4:return[h,s,i];case 5:return[i,s,l]}};S.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,n=Math.max(i,.01),a,s;s=(2-r)*i;let l=(2-r)*n;return a=r*n,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};S.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,n=r+i,a;n>1&&(r/=n,i/=n);let s=Math.floor(6*t),l=1-i;a=6*t-s,s&1&&(a=1-a);let h=r+a*(l-r),u,c,f;switch(s){default:case 6:case 0:u=l,c=h,f=r;break;case 1:u=h,c=l,f=r;break;case 2:u=r,c=l,f=h;break;case 3:u=r,c=h,f=l;break;case 4:u=h,c=r,f=l;break;case 5:u=l,c=r,f=h;break}return[u*255,c*255,f*255]};S.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n=e[3]/100,a=1-Math.min(1,t*(1-n)+n),s=1-Math.min(1,r*(1-n)+n),l=1-Math.min(1,i*(1-n)+n);return[a*255,s*255,l*255]};S.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,n,a,s;return n=t*3.2406+r*-1.5372+i*-.4986,a=t*-.9689+r*1.8758+i*.0415,s=t*.0557+r*-.204+i*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[n*255,a*255,s*255]};S.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*r-16,a=500*(t-r),s=200*(r-i);return[n,a,s]};S.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],n,a,s;a=(t+16)/116,n=r/500+a,s=a-i/200;let l=a**3,h=n**3,u=s**3;return a=l>.008856?l:(a-16/116)/7.787,n=h>.008856?h:(n-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,n*=95.047,a*=100,s*=108.883,[n,a,s]};S.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],n;n=Math.atan2(i,r)*360/2/Math.PI,n<0&&(n+=360);let s=Math.sqrt(r*r+i*i);return[t,s,n]};S.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI,a=r*Math.cos(n),s=r*Math.sin(n);return[t,a,s]};S.rgb.ansi16=function(e,t=null){let[r,i,n]=e,a=t===null?S.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return a===2&&(s+=60),s};S.hsv.ansi16=function(e){return S.rgb.ansi16(S.hsv.rgb(e),e[2])};S.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};S.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,i=(t&1)*r*255,n=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[i,n,a]};S.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,n=t%6/5*255;return[r,i,n]};S.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};S.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let i=parseInt(r,16),n=i>>16&255,a=i>>8&255,s=i&255;return[n,a,s]};S.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.max(Math.max(t,r),i),a=Math.min(Math.min(t,r),i),s=n-a,l,h;return s<1?l=a/(1-s):l=0,s<=0?h=0:n===t?h=(r-i)/s%6:n===r?h=2+(i-t)/s:h=4+(t-r)/s,h/=6,h%=1,[h*360,s*100,l*100]};S.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),n=0;return i<1&&(n=(r-.5*i)/(1-i)),[e[0],i*100,n*100]};S.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,n=0;return i<1&&(n=(r-i)/(1-i)),[e[0],i*100,n*100]};S.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let n=[0,0,0],a=t%1*6,s=a%1,l=1-s,h=0;switch(Math.floor(a)){case 0:n[0]=1,n[1]=s,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=s;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=s,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return h=(1-r)*i,[(r*n[0]+h)*255,(r*n[1]+h)*255,(r*n[2]+h)*255]};S.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),n=0;return i>0&&(n=t/i),[e[0],n*100,i*100]};S.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],n*100,i*100]};S.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};S.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,n=i-t,a=0;return n<1&&(a=(i-n)/(1-n)),[e[0],n*100,a*100]};S.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};S.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};S.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};S.gray.hsl=function(e){return[0,0,e[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(e){return[0,100,e[0]]};S.gray.cmyk=function(e){return[0,0,0,e[0]]};S.gray.lab=function(e){return[e[0],0,0]};S.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i};S.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var hp=D((cE,cp)=>{var ia=rl();function qy(){let e={},t=Object.keys(ia);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}o(qy,"buildGraph");function jy(e){let t=qy(),r=[e];for(t[e].distance=0;r.length;){let i=r.pop(),n=Object.keys(ia[i]);for(let a=n.length,s=0;s<a;s++){let l=n[s],h=t[l];h.distance===-1&&(h.distance=t[i].distance+1,h.parent=i,r.unshift(l))}}return t}o(jy,"deriveBFS");function zy(e,t){return function(r){return t(e(r))}}o(zy,"link");function Hy(e,t){let r=[t[e].parent,e],i=ia[t[e].parent][e],n=t[e].parent;for(;t[n].parent;)r.unshift(t[n].parent),i=zy(ia[t[n].parent][n],i),n=t[n].parent;return i.conversion=r,i}o(Hy,"wrapConversion");cp.exports=function(e){let t=jy(e),r={},i=Object.keys(t);for(let n=i.length,a=0;a<n;a++){let s=i[a];t[s].parent!==null&&(r[s]=Hy(s,t))}return r}});var dp=D((fE,fp)=>{var il=rl(),Gy=hp(),Tr={},$y=Object.keys(il);function Vy(e){let t=o(function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),e(r))},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}o(Vy,"wrapRaw");function Zy(e){let t=o(function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let n=e(r);if(typeof n=="object")for(let a=n.length,s=0;s<a;s++)n[s]=Math.round(n[s]);return n},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}o(Zy,"wrapRounded");$y.forEach(e=>{Tr[e]={},Object.defineProperty(Tr[e],"channels",{value:il[e].channels}),Object.defineProperty(Tr[e],"labels",{value:il[e].labels});let t=Gy(e);Object.keys(t).forEach(i=>{let n=t[i];Tr[e][i]=Zy(n),Tr[e][i].raw=Vy(n)})});fp.exports=Tr});var yp=D((pE,vp)=>{"use strict";var pp=o((e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,"wrapAnsi16"),gp=o((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};5;${i}m`},"wrapAnsi256"),mp=o((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},"wrapAnsi16m"),na=o(e=>e,"ansi2ansi"),Dp=o((e,t,r)=>[e,t,r],"rgb2rgb"),Pr=o((e,t,r)=>{Object.defineProperty(e,t,{get:o(()=>{let i=r();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),nl,Rr=o((e,t,r,i)=>{nl===void 0&&(nl=dp());let n=i?10:0,a={};for(let[s,l]of Object.entries(nl)){let h=s==="ansi16"?"ansi":s;s===t?a[h]=e(r,n):typeof l=="object"&&(a[h]=e(l[t],n))}return a},"makeDynamicStyles");function Ky(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[n,a]of Object.entries(i))t[n]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},i[n]=t[n],e.set(a[0],a[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Pr(t.color,"ansi",()=>Rr(pp,"ansi16",na,!1)),Pr(t.color,"ansi256",()=>Rr(gp,"ansi256",na,!1)),Pr(t.color,"ansi16m",()=>Rr(mp,"rgb",Dp,!1)),Pr(t.bgColor,"ansi",()=>Rr(pp,"ansi16",na,!0)),Pr(t.bgColor,"ansi256",()=>Rr(gp,"ansi256",na,!0)),Pr(t.bgColor,"ansi16m",()=>Rr(mp,"rgb",Dp,!0)),t}o(Ky,"assembleStyles");Object.defineProperty(vp,"exports",{enumerable:!0,get:Ky})});var Cp=D((mE,bp)=>{"use strict";var Ri=ap(),Jy=ra(),Yy=yp(),ol=new Set(["\x1B","\x9B"]),Xy=39,wp=o(e=>`${ol.values().next().value}[${e}m`,"wrapAnsi"),Qy=o(e=>e.split(" ").map(t=>Ri(t)),"wordLengths"),al=o((e,t,r)=>{let i=[...t],n=!1,a=Ri(Jy(e[e.length-1]));for(let[s,l]of i.entries()){let h=Ri(l);if(a+h<=r?e[e.length-1]+=l:(e.push(l),a=0),ol.has(l))n=!0;else if(n&&l==="m"){n=!1;continue}n||(a+=h,a===r&&s<i.length-1&&(e.push(""),a=0))}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),ew=o(e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Ri(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},"stringVisibleTrimSpacesRight"),tw=o((e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",n="",a,s=Qy(e),l=[""];for(let[h,u]of e.split(" ").entries()){r.trim!==!1&&(l[l.length-1]=l[l.length-1].trimLeft());let c=Ri(l[l.length-1]);if(h!==0&&(c>=t&&(r.wordWrap===!1||r.trim===!1)&&(l.push(""),c=0),(c>0||r.trim===!1)&&(l[l.length-1]+=" ",c++)),r.hard&&s[h]>t){let f=t-c,d=1+Math.floor((s[h]-f-1)/t);Math.floor((s[h]-1)/t)<d&&l.push(""),al(l,u,t);continue}if(c+s[h]>t&&c>0&&s[h]>0){if(r.wordWrap===!1&&c<t){al(l,u,t);continue}l.push("")}if(c+s[h]>t&&r.wordWrap===!1){al(l,u,t);continue}l[l.length-1]+=u}r.trim!==!1&&(l=l.map(ew)),i=l.join(`
|
|
29
|
-
`);for(let[
|
|
30
|
-
`?
|
|
31
|
-
`&&(
|
|
47
|
+
`;throw console.warn(g),new Error("Plugin dependency not found")},"requireDependencyOrDie"),r=new Set(this.names),i=o(({name:s,dependencies:u})=>{if(!u)return;let c=o((f,v)=>{let p=t(s,f);v=v||this._dependencyDefaults.get(f)||{};let g=p(v);if(r.has(g.name)){qt(s,"=> dependency already exists:",g.name);return}return r.add(g.name),qt(s,"=> adding new dependency:",g.name,v),this.add(g),i(g)},"processDependency");if(u instanceof Set||Array.isArray(u))return[...u].forEach(f=>c(f));if(u instanceof Map)return u.forEach((f,v)=>c(v,f))},"recursivelyLoadMissingDependencies");this.list.forEach(i)}resolveDependencies(){qt("resolveDependencies"),this.resolvePluginsStanza(),this.resolveDependenciesStanza()}};o(Jf,"PluginList");var yo=Jf,rr=jf("playwright-extra"),Xf=class Xf{constructor(t){this._launcher=t,this.plugins=new yo}use(t){if(!(t&&"name"in t))throw new Error("A plugin must be provided to .use()");return this.plugins.add(t)&&rr("Plugin registered",t.name),this}get launcher(){if(!this._launcher)throw yr.requireError;return this._launcher}async launch(...t){if(!this.launcher.launch)throw new Error('Launcher does not support "launch"');let[r]=t;r=Object.assign({args:[]},r||{}),rr("launch",r),this.plugins.prepare(),r=await this.plugins.dispatchBlocking("beforeLaunch",r)||r,rr("launch with options",r),"userDataDir"in r&&(rr("A plugin defined userDataDir during .launch, which isn't supported by playwright - ignoring"),delete r.userDataDir);let i=await this.launcher.launch(r);return await this.plugins.dispatchBlocking("onBrowser",i),await this._bindBrowserEvents(i),await this.plugins.dispatchBlocking("afterLaunch",i),i}async launchPersistentContext(...t){if(!this.launcher.launchPersistentContext)throw new Error('Launcher does not support "launchPersistentContext"');let[r,i]=t;i=Object.assign({args:[]},i||{}),rr("launchPersistentContext",i),this.plugins.prepare(),i=await this.plugins.dispatchBlocking("beforeLaunch",i)||i;let s=await this.launcher.launchPersistentContext(r,i);return await this.plugins.dispatchBlocking("afterLaunch",s),this._bindBrowserContextEvents(s),s}async connect(t,r={}){if(!this.launcher.connect)throw new Error('Launcher does not support "connect"');this.plugins.prepare();let i={},s=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(s=!0,i=Object.assign({wsEndpoint:t},r)),rr("connect",i),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let u=[],c=i.wsEndpoint;s?(delete i.wsEndpoint,u.push(c,i)):u.push(i);let f=await this.launcher.connect(...u);return await this.plugins.dispatchBlocking("onBrowser",f),await this._bindBrowserEvents(f),await this.plugins.dispatchBlocking("afterConnect",f),f}async connectOverCDP(t,r={}){if(!this.launcher.connectOverCDP)throw new Error("Launcher does not implement 'connectOverCDP'");this.plugins.prepare();let i={},s=!1;typeof t=="object"?i=Object.assign(Object.assign({},t),r):(s=!0,i=Object.assign({endpointURL:t},r)),rr("connectOverCDP"),i=await this.plugins.dispatchBlocking("beforeConnect",i)||i;let u=[],c=i.endpointURL;s?(delete i.endpointURL,u.push(c,i)):u.push(i);let f=await this.launcher.connectOverCDP(...u);return await this.plugins.dispatchBlocking("onBrowser",f),await this._bindBrowserEvents(f),await this.plugins.dispatchBlocking("afterConnect",f),f}async _bindBrowserContextEvents(t,r){rr("_bindBrowserContextEvents"),this.plugins.dispatch("onContextCreated",t,r),t.newPage=((i,s)=>async()=>{let u=await i.call(s);return await u.goto("about:blank"),u})(t.newPage,t),t.on("close",()=>{t.browser()||this.plugins.dispatch("onDisconnected")}),t.on("page",i=>{this.plugins.dispatch("onPageCreated",i),i.on("close",()=>{this.plugins.dispatch("onPageClose",i)})})}async _bindBrowserEvents(t){rr("_bindPlaywrightBrowserEvents"),t.on("disconnected",()=>{this.plugins.dispatch("onDisconnected",t)}),t.newContext=((r,i)=>async(s={})=>{let u=await this.plugins.dispatchBlocking("beforeContext",s,t)||s,c=await r.call(i,u);return this._bindBrowserContextEvents(c,u),c})(t.newContext,t)}};o(Xf,"PlaywrightExtraClass");var bo=Xf,Kf=new Proxy(bo,{construct(e,t){rr(`create instance of ${e.name}`);let r=Reflect.construct(e,t);return new Proxy(r,{get(i,s){return s in i?Reflect.get(i,s):(rr("proxying property to original launcher: ",s),Reflect.get(i.launcher,s))}})}}),_o=o(e=>new Kf(e),"addExtra"),wy=_o((yr.loadModule()||{}).chromium),yy=_o((yr.loadModule()||{}).firefox),by=_o((yr.loadModule()||{}).webkit),_y=yr.lazyloadExportOrDie("_android"),Cy=yr.lazyloadExportOrDie("_electron"),xy=yr.lazyloadExportOrDie("request"),ky=yr.lazyloadExportOrDie("selectors"),Sy=yr.lazyloadExportOrDie("devices"),Ey=yr.lazyloadExportOrDie("errors"),sP={PlaywrightExtra:Kf,PlaywrightExtraClass:bo,PluginList:yo,addExtra:_o,chromium:wy,firefox:yy,webkit:by,_android:_y,_electron:Cy,request:xy,selectors:ky,devices:Sy,errors:Ey};je.PlaywrightExtra=Kf;je.PlaywrightExtraClass=bo;je.PluginList=yo;je._android=_y;je._electron=Cy;je.addExtra=_o;je.chromium=wy;je.default=sP;je.devices=Sy;je.errors=Ey;je.firefox=yy;je.request=xy;je.selectors=ky;je.webkit=by;Vf.exports=je.default||{};Object.entries(je).forEach(([e,t])=>{Vf.exports[e]=t})});var qu=O((L6,Oy)=>{var hd=require("tty"),Ly,Wu,My,cP=((My=(Wu=(Ly=hd==null?void 0:hd.WriteStream)==null?void 0:Ly.prototype)==null?void 0:Wu.hasColors)==null?void 0:My.call(Wu))??!1,ne=o((e,t)=>{if(!cP)return s=>s;let r=`\x1B[${e}m`,i=`\x1B[${t}m`;return s=>{let u=s+"",c=u.indexOf(i);if(c===-1)return r+u+i;let f=r,v=0;for(;c!==-1;)f+=u.slice(v,c)+r,v=c+i.length,c=u.indexOf(i,v);return f+=u.slice(v)+i,f}},"format"),te={};te.reset=ne(0,0);te.bold=ne(1,22);te.dim=ne(2,22);te.italic=ne(3,23);te.underline=ne(4,24);te.overline=ne(53,55);te.inverse=ne(7,27);te.hidden=ne(8,28);te.strikethrough=ne(9,29);te.black=ne(30,39);te.red=ne(31,39);te.green=ne(32,39);te.yellow=ne(33,39);te.blue=ne(34,39);te.magenta=ne(35,39);te.cyan=ne(36,39);te.white=ne(37,39);te.gray=ne(90,39);te.bgBlack=ne(40,49);te.bgRed=ne(41,49);te.bgGreen=ne(42,49);te.bgYellow=ne(43,49);te.bgBlue=ne(44,49);te.bgMagenta=ne(45,49);te.bgCyan=ne(46,49);te.bgWhite=ne(47,49);te.bgGray=ne(100,49);te.redBright=ne(91,39);te.greenBright=ne(92,39);te.yellowBright=ne(93,39);te.blueBright=ne(94,39);te.magentaBright=ne(95,39);te.cyanBright=ne(96,39);te.whiteBright=ne(97,39);te.bgRedBright=ne(101,49);te.bgGreenBright=ne(102,49);te.bgYellowBright=ne(103,49);te.bgBlueBright=ne(104,49);te.bgMagentaBright=ne(105,49);te.bgCyanBright=ne(106,49);te.bgWhiteBright=ne(107,49);Oy.exports=te});var By=O((O6,hP)=>{hP.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Wy=O((B6,Ny)=>{"use strict";var Hu=Object.assign({},By()),Uy=Object.keys(Hu);Object.defineProperty(Hu,"random",{get(){let e=Math.floor(Math.random()*Uy.length),t=Uy[e];return Hu[t]}});Ny.exports=Hu});var $y=O((a5,Gy)=>{"use strict";Gy.exports=dP;function fP(e){let t={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}o(fP,"normalizeOpts");function dP(e){let t=fP(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}o(dP,"cliWidth")});var Zy=O((s5,jy)=>{"use strict";jy.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Gu=O((u5,Ky)=>{"use strict";var pP=Zy();Ky.exports=e=>typeof e=="string"?e.replace(pP(),""):e});var Yy=O((l5,pd)=>{"use strict";var Vy=o(e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141),"isFullwidthCodePoint");pd.exports=Vy;pd.exports.default=Vy});var Xy=O((h5,Jy)=>{"use strict";Jy.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var eb=O((f5,gd)=>{"use strict";var gP=Gu(),mP=Yy(),vP=Xy(),Qy=o(e=>{if(typeof e!="string"||e.length===0||(e=gP(e),e.length===0))return 0;e=e.replace(vP()," ");let t=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&r++,t+=mP(i)?2:1)}return t},"stringWidth");gd.exports=Qy;gd.exports.default=Qy});var rb=O((p5,tb)=>{"use strict";tb.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var md=O((g5,ib)=>{var Eo=rb(),nb={};for(let e of Object.keys(Eo))nb[Eo[e]]=e;var $={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ib.exports=$;for(let e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(t,r,i),u=Math.max(t,r,i),c=u-s,f,v;u===s?f=0:t===u?f=(r-i)/c:r===u?f=2+(i-t)/c:i===u&&(f=4+(t-r)/c),f=Math.min(f*60,360),f<0&&(f+=360);let p=(s+u)/2;return u===s?v=0:p<=.5?v=c/(u+s):v=c/(2-u-s),[f,v*100,p*100]};$.rgb.hsv=function(e){let t,r,i,s,u,c=e[0]/255,f=e[1]/255,v=e[2]/255,p=Math.max(c,f,v),g=p-Math.min(c,f,v),b=o(function(x){return(p-x)/6/g+1/2},"diffc");return g===0?(s=0,u=0):(u=g/p,t=b(c),r=b(f),i=b(v),c===p?s=i-r:f===p?s=1/3+t-i:v===p&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,u*100,p*100]};$.rgb.hwb=function(e){let t=e[0],r=e[1],i=e[2],s=$.rgb.hsl(e)[0],u=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[s,u*100,i*100]};$.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(1-t,1-r,1-i),u=(1-t-s)/(1-s)||0,c=(1-r-s)/(1-s)||0,f=(1-i-s)/(1-s)||0;return[u*100,c*100,f*100,s*100]};function DP(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o(DP,"comparativeDistance");$.rgb.keyword=function(e){let t=nb[e];if(t)return t;let r=1/0,i;for(let s of Object.keys(Eo)){let u=Eo[s],c=DP(e,u);c<r&&(r=c,i=s)}return i};$.keyword.rgb=function(e){return Eo[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=t*.4124+r*.3576+i*.1805,u=t*.2126+r*.7152+i*.0722,c=t*.0193+r*.1192+i*.9505;return[s*100,u*100,c*100]};$.rgb.lab=function(e){let t=$.rgb.xyz(e),r=t[0],i=t[1],s=t[2];r/=95.047,i/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let u=116*i-16,c=500*(r-i),f=200*(i-s);return[u,c,f]};$.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,s,u,c;if(r===0)return c=i*255,[c,c,c];i<.5?s=i*(1+r):s=i+r-i*r;let f=2*i-s,v=[0,0,0];for(let p=0;p<3;p++)u=t+1/3*-(p-1),u<0&&u++,u>1&&u--,6*u<1?c=f+(s-f)*6*u:2*u<1?c=s:3*u<2?c=f+(s-f)*(2/3-u)*6:c=f,v[p]=c*255;return v};$.hsl.hsv=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,s=r,u=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,s*=u<=1?u:2-u;let c=(i+r)/2,f=i===0?2*s/(u+s):2*r/(i+r);return[t,f*100,c*100]};$.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,i=e[2]/100,s=Math.floor(t)%6,u=t-Math.floor(t),c=255*i*(1-r),f=255*i*(1-r*u),v=255*i*(1-r*(1-u));switch(i*=255,s){case 0:return[i,v,c];case 1:return[f,i,c];case 2:return[c,i,v];case 3:return[c,f,i];case 4:return[v,c,i];case 5:return[i,c,f]}};$.hsv.hsl=function(e){let t=e[0],r=e[1]/100,i=e[2]/100,s=Math.max(i,.01),u,c;c=(2-r)*i;let f=(2-r)*s;return u=r*s,u/=f<=1?f:2-f,u=u||0,c/=2,[t,u*100,c*100]};$.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100,s=r+i,u;s>1&&(r/=s,i/=s);let c=Math.floor(6*t),f=1-i;u=6*t-c,c&1&&(u=1-u);let v=r+u*(f-r),p,g,b;switch(c){default:case 6:case 0:p=f,g=v,b=r;break;case 1:p=v,g=f,b=r;break;case 2:p=r,g=f,b=v;break;case 3:p=r,g=v,b=f;break;case 4:p=v,g=r,b=f;break;case 5:p=f,g=r,b=v;break}return[p*255,g*255,b*255]};$.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,s=e[3]/100,u=1-Math.min(1,t*(1-s)+s),c=1-Math.min(1,r*(1-s)+s),f=1-Math.min(1,i*(1-s)+s);return[u*255,c*255,f*255]};$.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,i=e[2]/100,s,u,c;return s=t*3.2406+r*-1.5372+i*-.4986,u=t*-.9689+r*1.8758+i*.0415,c=t*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,s=Math.min(Math.max(0,s),1),u=Math.min(Math.max(0,u),1),c=Math.min(Math.max(0,c),1),[s*255,u*255,c*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],i=e[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*r-16,u=500*(t-r),c=200*(r-i);return[s,u,c]};$.lab.xyz=function(e){let t=e[0],r=e[1],i=e[2],s,u,c;u=(t+16)/116,s=r/500+u,c=u-i/200;let f=u**3,v=s**3,p=c**3;return u=f>.008856?f:(u-16/116)/7.787,s=v>.008856?v:(s-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,s*=95.047,u*=100,c*=108.883,[s,u,c]};$.lab.lch=function(e){let t=e[0],r=e[1],i=e[2],s;s=Math.atan2(i,r)*360/2/Math.PI,s<0&&(s+=360);let c=Math.sqrt(r*r+i*i);return[t,c,s]};$.lch.lab=function(e){let t=e[0],r=e[1],s=e[2]/360*2*Math.PI,u=r*Math.cos(s),c=r*Math.sin(s);return[t,u,c]};$.rgb.ansi16=function(e,t=null){let[r,i,s]=e,u=t===null?$.rgb.hsv(e)[2]:t;if(u=Math.round(u/50),u===0)return 30;let c=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return u===2&&(c+=60),c};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){let t=e[0],r=e[1],i=e[2];return t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,i=(t&1)*r*255,s=(t>>1&1)*r*255,u=(t>>2&1)*r*255;return[i,s,u]};$.ansi256.rgb=function(e){if(e>=232){let u=(e-232)*10+8;return[u,u,u]}e-=16;let t,r=Math.floor(e/36)/5*255,i=Math.floor((t=e%36)/6)/5*255,s=t%6/5*255;return[r,i,s]};$.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let i=parseInt(r,16),s=i>>16&255,u=i>>8&255,c=i&255;return[s,u,c]};$.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(t,r),i),u=Math.min(Math.min(t,r),i),c=s-u,f,v;return c<1?f=u/(1-c):f=0,c<=0?v=0:s===t?v=(r-i)/c%6:s===r?v=2+(i-t)/c:v=4+(t-r)/c,v/=6,v%=1,[v*360,c*100,f*100]};$.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=r<.5?2*t*r:2*t*(1-r),s=0;return i<1&&(s=(r-.5*i)/(1-i)),[e[0],i*100,s*100]};$.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,i=t*r,s=0;return i<1&&(s=(r-i)/(1-i)),[e[0],i*100,s*100]};$.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];let s=[0,0,0],u=t%1*6,c=u%1,f=1-c,v=0;switch(Math.floor(u)){case 0:s[0]=1,s[1]=c,s[2]=0;break;case 1:s[0]=f,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=c;break;case 3:s[0]=0,s[1]=f,s[2]=1;break;case 4:s[0]=c,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=f}return v=(1-r)*i,[(r*s[0]+v)*255,(r*s[1]+v)*255,(r*s[2]+v)*255]};$.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t),s=0;return i>0&&(s=t/i),[e[0],s*100,i*100]};$.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,s=0;return i>0&&i<.5?s=t/(2*i):i>=.5&&i<1&&(s=t/(2*(1-i))),[e[0],s*100,i*100]};$.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};$.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,s=i-t,u=0;return s<1&&(u=(i-s)/(1-s)),[e[0],s*100,u*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var ob=O((v5,ab)=>{var $u=md();function wP(){let e={},t=Object.keys($u);for(let r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}o(wP,"buildGraph");function yP(e){let t=wP(),r=[e];for(t[e].distance=0;r.length;){let i=r.pop(),s=Object.keys($u[i]);for(let u=s.length,c=0;c<u;c++){let f=s[c],v=t[f];v.distance===-1&&(v.distance=t[i].distance+1,v.parent=i,r.unshift(f))}}return t}o(yP,"deriveBFS");function bP(e,t){return function(r){return t(e(r))}}o(bP,"link");function _P(e,t){let r=[t[e].parent,e],i=$u[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)r.unshift(t[s].parent),i=bP($u[t[s].parent][s],i),s=t[s].parent;return i.conversion=r,i}o(_P,"wrapConversion");ab.exports=function(e){let t=yP(e),r={},i=Object.keys(t);for(let s=i.length,u=0;u<s;u++){let c=i[u];t[c].parent!==null&&(r[c]=_P(c,t))}return r}});var ub=O((w5,sb)=>{var vd=md(),CP=ob(),Qi={},xP=Object.keys(vd);function kP(e){let t=o(function(...r){let i=r[0];return i==null?i:(i.length>1&&(r=i),e(r))},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}o(kP,"wrapRaw");function SP(e){let t=o(function(...r){let i=r[0];if(i==null)return i;i.length>1&&(r=i);let s=e(r);if(typeof s=="object")for(let u=s.length,c=0;c<u;c++)s[c]=Math.round(s[c]);return s},"wrappedFn");return"conversion"in e&&(t.conversion=e.conversion),t}o(SP,"wrapRounded");xP.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:vd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:vd[e].labels});let t=CP(e);Object.keys(t).forEach(i=>{let s=t[i];Qi[e][i]=SP(s),Qi[e][i].raw=kP(s)})});sb.exports=Qi});var pb=O((b5,db)=>{"use strict";var lb=o((e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,"wrapAnsi16"),cb=o((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};5;${i}m`},"wrapAnsi256"),hb=o((e,t)=>(...r)=>{let i=e(...r);return`\x1B[${38+t};2;${i[0]};${i[1]};${i[2]}m`},"wrapAnsi16m"),ju=o(e=>e,"ansi2ansi"),fb=o((e,t,r)=>[e,t,r],"rgb2rgb"),ea=o((e,t,r)=>{Object.defineProperty(e,t,{get:o(()=>{let i=r();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),Dd,ta=o((e,t,r,i)=>{Dd===void 0&&(Dd=ub());let s=i?10:0,u={};for(let[c,f]of Object.entries(Dd)){let v=c==="ansi16"?"ansi":c;c===t?u[v]=e(r,s):typeof f=="object"&&(u[v]=e(f[t],s))}return u},"makeDynamicStyles");function EP(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[s,u]of Object.entries(i))t[s]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},i[s]=t[s],e.set(u[0],u[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ea(t.color,"ansi",()=>ta(lb,"ansi16",ju,!1)),ea(t.color,"ansi256",()=>ta(cb,"ansi256",ju,!1)),ea(t.color,"ansi16m",()=>ta(hb,"rgb",fb,!1)),ea(t.bgColor,"ansi",()=>ta(lb,"ansi16",ju,!0)),ea(t.bgColor,"ansi256",()=>ta(cb,"ansi256",ju,!0)),ea(t.bgColor,"ansi16m",()=>ta(hb,"rgb",fb,!0)),t}o(EP,"assembleStyles");Object.defineProperty(db,"exports",{enumerable:!0,get:EP})});var vb=O((C5,mb)=>{"use strict";var Fo=eb(),FP=Gu(),AP=pb(),yd=new Set(["\x1B","\x9B"]),TP=39,gb=o(e=>`${yd.values().next().value}[${e}m`,"wrapAnsi"),RP=o(e=>e.split(" ").map(t=>Fo(t)),"wordLengths"),wd=o((e,t,r)=>{let i=[...t],s=!1,u=Fo(FP(e[e.length-1]));for(let[c,f]of i.entries()){let v=Fo(f);if(u+v<=r?e[e.length-1]+=f:(e.push(f),u=0),yd.has(f))s=!0;else if(s&&f==="m"){s=!1;continue}s||(u+=v,u===r&&c<i.length-1&&(e.push(""),u=0))}!u&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"wrapWord"),IP=o(e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(Fo(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},"stringVisibleTrimSpacesRight"),PP=o((e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",s="",u,c=RP(e),f=[""];for(let[v,p]of e.split(" ").entries()){r.trim!==!1&&(f[f.length-1]=f[f.length-1].trimLeft());let g=Fo(f[f.length-1]);if(v!==0&&(g>=t&&(r.wordWrap===!1||r.trim===!1)&&(f.push(""),g=0),(g>0||r.trim===!1)&&(f[f.length-1]+=" ",g++)),r.hard&&c[v]>t){let b=t-g,x=1+Math.floor((c[v]-b-1)/t);Math.floor((c[v]-1)/t)<x&&f.push(""),wd(f,p,t);continue}if(g+c[v]>t&&g>0&&c[v]>0){if(r.wordWrap===!1&&g<t){wd(f,p,t);continue}f.push("")}if(g+c[v]>t&&r.wordWrap===!1){wd(f,p,t);continue}f[f.length-1]+=p}r.trim!==!1&&(f=f.map(IP)),i=f.join(`
|
|
48
|
+
`);for(let[v,p]of[...i].entries()){if(s+=p,yd.has(p)){let b=parseFloat(/\d[^m]*/.exec(i.slice(v,v+4)));u=b===TP?null:b}let g=AP.codes.get(Number(u));u&&g&&(i[v+1]===`
|
|
49
|
+
`?s+=gb(g):p===`
|
|
50
|
+
`&&(s+=gb(u)))}return s},"exec");mb.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,`
|
|
32
51
|
`).split(`
|
|
33
|
-
`).map(i=>
|
|
34
|
-
`)});var Ap=D((RE,_p)=>{var nw=require("stream"),Ir,Ve,oa,sa,ul=class ul extends nw{constructor(r={}){super(r);we(this,Ve);we(this,Ir,null);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=r.replace,this._prompt=r.prompt||null,this._hadControl=!1}get isTTY(){return T(this,Ir)!==null?T(this,Ir):Ue(this,Ve,oa).call(this,"isTTY",!1)}set isTTY(r){Ze(this,Ir,r)}get rows(){return Ue(this,Ve,oa).call(this,"rows")}get columns(){return Ue(this,Ve,oa).call(this,"columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(r){this._src=r}pipe(r,i){return this._dest=r,super.pipe(r,i)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(r){if(this.muted){if(!this.replace)return!0;if(r.match(/^\u001b/))return r.indexOf(this._prompt)===0&&(r=r.slice(this._prompt.length),r=r.replace(/./g,this.replace),r=this._prompt+r),this._hadControl=!0,this.emit("data",r);this._prompt&&this._hadControl&&r.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),r=r.slice(this._prompt.length)),r=r.toString().replace(/./g,this.replace)}this.emit("data",r)}end(r){this.muted&&(r&&this.replace?r=r.toString().replace(/./g,this.replace):r=null),r&&this.emit("data",r),this.emit("end")}destroy(...r){return Ue(this,Ve,sa).call(this,"destroy",...r)}destroySoon(...r){return Ue(this,Ve,sa).call(this,"destroySoon",...r)}close(...r){return Ue(this,Ve,sa).call(this,"close",...r)}};Ir=new WeakMap,Ve=new WeakSet,oa=o(function(r,i){return this._dest?this._dest[r]:this._src?this._src[r]:i},"#destSrc"),sa=o(function(r,...i){var n,a;typeof((n=this._dest)==null?void 0:n[r])=="function"&&this._dest[r](...i),typeof((a=this._src)==null?void 0:a[r])=="function"&&this._src[r](...i)},"#proxy"),o(ul,"MuteStream");var ll=ul;_p.exports=ll});var bl=D((WE,wl)=>{"use strict";var M=wl.exports;wl.exports.default=M;var U="\x1B[",Mi="\x1B]",Or="\x07",ha=";",Ip=process.env.TERM_PROGRAM==="Apple_Terminal";M.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?U+(e+1)+"G":U+(t+1)+";"+(e+1)+"H"};M.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=U+-e+"D":e>0&&(r+=U+e+"C"),t<0?r+=U+-t+"A":t>0&&(r+=U+t+"B"),r};M.cursorUp=(e=1)=>U+e+"A";M.cursorDown=(e=1)=>U+e+"B";M.cursorForward=(e=1)=>U+e+"C";M.cursorBackward=(e=1)=>U+e+"D";M.cursorLeft=U+"G";M.cursorSavePosition=Ip?"\x1B7":U+"s";M.cursorRestorePosition=Ip?"\x1B8":U+"u";M.cursorGetPosition=U+"6n";M.cursorNextLine=U+"E";M.cursorPrevLine=U+"F";M.cursorHide=U+"?25l";M.cursorShow=U+"?25h";M.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=M.eraseLine+(r<e-1?M.cursorUp():"");return e&&(t+=M.cursorLeft),t};M.eraseEndLine=U+"K";M.eraseStartLine=U+"1K";M.eraseLine=U+"2K";M.eraseDown=U+"J";M.eraseUp=U+"1J";M.eraseScreen=U+"2J";M.scrollUp=U+"S";M.scrollDown=U+"T";M.clearScreen="\x1Bc";M.clearTerminal=process.platform==="win32"?`${M.eraseScreen}${U}0f`:`${M.eraseScreen}${U}3J${U}H`;M.beep=Or;M.link=(e,t)=>[Mi,"8",ha,ha,t,Or,e,Mi,"8",ha,ha,Or].join("");M.image=(e,t={})=>{let r=`${Mi}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Or};M.iTerm={setCwd:o((e=process.cwd())=>`${Mi}50;CurrentDir=${e}${Or}`,"setCwd"),annotation:o((e,t={})=>{let r=`${Mi}1337;`,i=typeof t.x<"u",n=typeof t.y<"u";if((i||n)&&!(i&&n&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(i?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Or},"annotation")}});var Vv=require("@playwright/test");var Hi="checksum";var Nr=X(require("path"));var B=o(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),oe=o(async(e,t=1e3,r="guardReturnTimedOut")=>{if(t===null)return e;let i="guard-timed-out",n=o(async()=>(await B(t+1e3),i),"guard"),a=await Promise.race([e,n()]);if(typeof a=="string"&&a===i)throw new Error(r);return a},"guardReturn");function Aa(e){return!!e&&!["navigation","keystroke","wait","get_more_items","custom_code"].includes(e)}o(Aa,"isActionOnElement");function $l(e){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",upload_files:"upload_files",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",reset:void 0,save:void 0,fail:void 0,wait:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,get_more_items:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0}[e]}o($l,"getActionEventCode");var Vl=o((e,t,r)=>{if(!t)return e;if(!r||!r.length)return e.locator(t);let i=e.frameLocator(r[0]);for(let n of r.slice(1))i=i.frameLocator(n);return i.locator(t)},"makeLocator");function Ta(){return process.env.CHECKSUM_ROOT_FOLDER?process.env.CHECKSUM_ROOT_FOLDER:Nr.join(__dirname,"..","..","..","checksum")}o(Ta,"checksumFolder");function Zl({isInit:e,excludeLogin:t}){return[...e?["example.checksum.spec.ts","github-actions.example.yml"]:[],...t?[]:["login.ts"],"checksum.config.ts","playwright.config.ts","README.md",".gitignore.example"]}o(Zl,"getRuntimeFiles");var Sw={generateSelectionData:!1,navigationTimeout:30*1e3,actionTimeout:5*1e3};var sg=require("jsdom");var Zv=X(Nn());var jv=250,bs=class bs{constructor(t,r){this.timeMachineable=t;this.initMethod=r;this.numberOfReceivedRrwebEventsIndex=0;this.syncTimeMachine=o(async()=>{try{let t;try{t=await this.timeMachineable.getRRwebEvents(this.numberOfReceivedRrwebEventsIndex)}catch{return}if(!t||t.length===0)return;try{await this.timeMachineable.getTimeMachinePage().evaluate(({events:r,len:i})=>window.checksum.timeMachine.handleEvents(r,i),{events:t,len:this.numberOfReceivedRrwebEventsIndex})}catch{return}this.numberOfReceivedRrwebEventsIndex+=t.length}finally{this.syncTimeout=setTimeout(this.syncTimeMachine,jv)}},"syncTimeMachine")}async start(t=!1){var r;await((r=this.initMethod)==null?void 0:r.call(this,t)),this.syncTimeMachine()}async stop(){clearTimeout(this.syncTimeout)}async disableEventsHandling(){await this.setShouldHandleEvents(!1)}async enableEventsHandling(){await this.setShouldHandleEvents(!0)}async setShouldHandleEvents(t){try{await this.timeMachineable.getTimeMachinePage().evaluate(r=>window.checksum.timeMachine.setShouldHandleEvents(r),t)}catch{}}};o(bs,"TimeMachineSync");var Ci=bs;var ud=require("path"),cd=require("fs");var Hv=!0,Cs=class Cs{constructor(t,r,i,n,a,s){this.evaluateWithChecksum=t;this.getPage=r;this.getTimeMachinePage=i;this.logger=n;this.options=a;this.loginFunction=s;this.newPagesIds=[];this.performFileUploadAction=o(async(t,r)=>{if(!await t.evaluate(n=>n.tagName==="INPUT"&&n.getAttribute("type")==="file"))throw new Error("File upload action performed on non-file input element");let i=r.files.map(n=>(0,ud.join)(this.options.testAssetsDir,n)).filter(n=>(0,cd.existsSync)(n)?!0:(this.logger.log(`Upload file not found: ${n}. Filtering out.`),!1));if(!i.length)throw new Error("No files to upload");await this.actionGuardReturn(t.setInputFiles(i),"Set input files timeout")},"performFileUploadAction");this.getSelectionDataForAction=o(async(t,r)=>t.checksumid?this.getSelectionDataForChecksumId(t.checksumid,r):t.position?await this.evaluateWithChecksum(async([i,n])=>window.checksum.testGenerator.getSelectorByPosition(i,n),[t.position.x,t.position.y]):t.selector?{selector:t.selector,locator:`locator("${t.selector}")`}:{selector:"",locator:""},"getSelectionDataForAction")}init(){let t=this.getPage();t.on("filechooser",async r=>{this.logger.log("File chooser event detected"),this.fileChooser=r}),t.context().on("page",r=>{this.newPagesIds.push(r._guid)})}getOpenedFileChooser(){if(this.fileChooser){let t=this.fileChooser;return this.fileChooser=void 0,t}return null}async handleFileChooserEvent(t=[]){let r=this.getOpenedFileChooser();if(!r)return{};let i="fc_"+Math.random().toString(36).slice(2,4);return await this.evaluateWithChecksum(async([n,a])=>{window.checksum.testGenerator.addForceIncludeElement(a,n)},[i,r.element()]),{interruptionEvent:"fileUploadOpenedEvent",payload:{checksumid:i,customFiles:t}}}async addMoreItemsToDom(t,r){let i=t.querySelector(`[checksum-get-more-items='${r}']`);if(!i)throw new Error("Get more items root not found");let{items:n,hasMoreItems:a}=await this.getMoreItemsForTemplate(r);i.innerHTML=i.innerHTML+n,a||i.removeAttribute("checksum-get-more-items")}async getPageInfo(t){return{id:t._guid,url:t.url(),title:await t.title(),new:this.newPagesIds.includes(t._guid),active:t._guid===this.getPage()._guid}}async getTabsInfo(){let t=(await Promise.all(this.getPage().context().pages().map(r=>this.getPageInfo(r)))).filter(r=>{var i;return r.id!==((i=this.getTimeMachinePage())==null?void 0:i._guid)});return this.newPagesIds=[],t}async getSelectionDataFromSelectorGenerator(t,r,i={}){if(i={useCompoundSelector:!0,useCSSExtraction:!0,useVariables:!0,...i},!t||!Aa($l(r.action.type))||!r.action.checksumid)return{};let n=await t.generateSelectionForAction(r,i);return n?{locator:`locator("${n.selector}")`,...n}:{}}async translateActionResponseToAgentPotentialAction(t,r=void 0,{pageId:i,makeStaticMetadataForESRA:n}={}){let a=structuredClone(t.actionHiddenOverride??t.action),{selector:s,selectorWithVars:l,locator:h,locatorWithVars:u,clickOffset:c,selectOptionValue:f,compoundSelector:d,alternateSelectors:p,parentFramesSelectors:C}={...await this.getSelectionDataForAction(a,t.actionHiddenOverride),...await this.getSelectionDataFromSelectorGenerator(r,t)},v=await this.getESRAForSelector(s,C,n);if(!v&&s&&this.logger.logError("Error getting ESRA metadata"),(v==null?void 0:v.tag)==="select")switch(this.getActionEventCode(a.type)){case"input":a.type="selectoption";break;case"click":f&&(a.type="selectoption",a.value=f);break}let y={eventCode:this.getActionEventCode(a.type),selector:s,selectorWithVars:l,parentFramesSelectors:C,locator:h,locatorWithVars:u,clickOffset:c,pageId:i,compoundSelector:d,alternateSelectors:p,fillValue:a.value,fillValueName:a.valueName?`variablesStore.${a.valueName}`:"",variables:t.variables,getMoreItemsId:a.getMoreItemsId,esraMetadata:v,description:t.thought,userRole:a.userRole};switch(y.eventCode){case"drag_and_drop":{let{selector:m,selectorWithVars:b,locator:k,locatorWithVars:w,parentFramesSelectors:g}={...await this.getSelectionDataForAction({type:t.action.type,checksumid:t.action.dropTargetChecksumid}),...await this.getSelectionDataFromSelectorGenerator(r,{...t,action:{type:t.action.type,checksumid:t.action.dropTargetChecksumid}},{useCompoundSelector:!1})};y.dropTarget={selector:m,selectorWithVars:b,locator:k,locatorWithVars:w,parentFramesSelectors:g,esraMetadata:await this.getESRAForSelector(m,g,n)}}break;case"upload_files":y.files=this.mapFileMIMETypeToFilename(a.files);break;case"switch_tab":y.switchToTab={id:a.tabId,index:this.getPage().context().pages().findIndex(m=>m._guid===a.tabId)};break;case"keystroke":y.fillValue=a.value}return y}async reauthenticate(t){this.loginFunction&&(await Promise.all([this.getPage().context().clearCookies(),this.getPage().evaluate(()=>localStorage.clear())]),await this.loginFunction(this.getPage(),{role:t}))}mapFileMIMETypeToFilename(t){return t.map(r=>{if(r.fileName)return r.fileName;switch(r.mimeType){case"image/png":return"image_200x200.png";case"image/jpeg":return"image_200x200.jpg";case"application/pdf":return"document.pdf";case"text/csv":return"data.csv";default:return"file.txt"}})}async performAction(t,{handleActionFailed:r,monitorFlashingHTML:i=!0}={}){try{if(t.executed){this.logger.log("[performAction] Action marked as executed, skipping...");return}if(Aa(t.eventCode)&&!t.selector)throw new Error("No selector provided for action. Try changing app rules preMapReducedHTMLSelectors to true");i&&(this.logger.log("starting flashing elements detection"),await this.evaluateWithChecksum(async()=>window.checksum.testGenerator.startFlashingElementsDetection())),this.logger.log(`Performing action: ${t.eventCode}. Selector: ${t.selector}, Position: ${t.clickOffset}, Parent frame: ${t.parentFramesSelectors}`);let n=o(()=>this.makeLocator(t.selector,t.parentFramesSelectors),"getLocator");switch(t.eventCode){case"click":try{await this.actionGuardReturn(n().click({position:t.clickOffset}),"Click timeout")}catch(l){this.logger.log("Error performing click, will attempt a force click",l),t.force=!0,await this.actionGuardReturn(n().click({position:t.clickOffset,force:!0}),"Click timeout")}break;case"double_click":try{await this.actionGuardReturn(n().dblclick({position:t.clickOffset}),"DoubleClick timeout")}catch(l){this.logger.log("Error performing double click, will attempt a force double click",l),t.force=!0,await this.actionGuardReturn(n().dblclick({position:t.clickOffset,force:!0}),"Click timeout")}break;case"check":await this.actionGuardReturn(n().check(),"Check timeout");break;case"uncheck":await this.actionGuardReturn(n().uncheck(),"UnCheck timeout");break;case"drag_and_drop":await this.actionGuardReturn(n().dragTo(this.makeLocator(t.dropTarget.selector,t.dropTarget.parentFramesSelectors)),"DragAndDrop timeout");break;case"input":await this.actionGuardReturn(n().fill(this.getActionFillValue(t)),"Fill timeout");break;case"click_and_type":await oe(n().click({position:t.clickOffset}),1e4,"Click before type timeout"),await oe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"clear_and_type":await oe(n().clear(),1e4,"Clear before type timeout"),await oe(n().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"selectoption":await this.actionGuardReturn(n().selectOption(this.getActionFillValue(t)),"SelectOption timeout");break;case"hover":await this.actionGuardReturn(n().hover(),"Hover timeout");break;case"navigation":await this.actionGuardReturn(this.getPage().goto(t.fillValue),"Navigation timeout",!0);break;case"keystroke":await this.actionGuardReturn(this.getPage().keyboard.press(t.fillValue),"Keystroke timeout");break;case"upload_files":await this.performFileUploadAction(n(),t);break;case"wait":await B(this.options.waitActionDelay??1e3);break;case"custom_code":let a=`async (page) => {${t.fillValue}}`;await(0,eval)(a)(this.getPage());break;case"logout_and_login":await this.reauthenticate(t.userRole);break}}catch(n){throw this.logger.log(`Error performing action: ${t.eventCode}, will attempt a correction template`,n),await(r==null?void 0:r()),new Error("Failed performing action")}this.logger.log(`Successfully performed action ${t.eventCode} with description "${t.description}"`)}getActionFillValue(t,r=!0){let i=t.fillValue;if(!i){let n=t.selector.match(/(?<=value.*)('|").*/);n&&(i=n[0].slice(1,-1))}return typeof i!="string"&&(i="X"),r&&(t.fillValue=i),i}actionGuardReturn(t,r,i=!1){return oe(t,i?this.options.navigationTimeout:this.options.actionTimeout,r)}makeLocator(t,r){return Vl(this.getPage(),t,r)}getCurrentURL(){return this.getPage().url()}async getSelectionDataForChecksumId(t,r){if(r!=null&&r.selector)return{...r,selector:r.selector,clickOffset:r.position};if(!t)return this.logger.log(`[getSelectionDataForChecksumId] checksumid not provided (${t})`),{...r,selector:t};let i=await this.evaluateWithChecksum(async n=>{let{selector:a,locator:s,clickOffset:l,parentFramesSelectors:h,invalid:u,rrwebId:c}=await window.checksum.testGenerator.getSelectorForChecksumId(n),f=await window.checksum.testGenerator.getElementForChecksumId(n),d=f instanceof HTMLOptionElement&&f.value?f.value:void 0;return{selector:a,locator:s,clickOffset:l,selectOptionValue:d,parentFramesSelectors:h,invalid:u,rrwebId:c}},t);if(Hv&&i.invalid&&i.rrwebId){this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. Trying to use time machine...`);try{let n=await this.getSelectionDataForRRwebIdAtReduceHTMLTime(i.rrwebId);i={...i,...n}}catch{this.logger.log(`[getSelectionDataForChecksumId] error using time machine to get selector for checksumid: ${t}`)}this.logger.log(`[getSelectionDataForChecksumId] got selector: ${i.selector} for checksumid: ${t} from time machine`)}return i!=null&&i.selector||this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. If checksumid is correct, try to change app rules preMapReducedHTMLSelectors to true`),i}async getSelectionDataForRRwebIdAtReduceHTMLTime(t){if(!this.rrwebEventAtLastReducedHTML)return;let r=this.getTimeMachinePage();if(r)return r.evaluate(async({rrwebId:i,timestamp:n})=>{await window.checksum.timeMachine.goBack(n);let a=await window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(i,{fromTimeMachine:!0});return await window.checksum.timeMachine.goLive(),a},{rrwebId:t,timestamp:this.rrwebEventAtLastReducedHTML.timestamp})}async getESRAForSelector(t,r,i){let n=await this.evaluateWithChecksum(async({selector:a,parentFramesSelectors:s})=>window.checksum.testGenerator.getSelectionDataForSelector(a,s),{selector:t,parentFramesSelectors:r});return n!=null&&n.esraMetadata&&i&&(n.esraMetadata.staticMetadata=await i(n.esraMetadata,t)),n==null?void 0:n.esraMetadata}async getMoreItemsForTemplate(t){return await this.evaluateWithChecksum(async r=>window.checksum.testGenerator.getMoreItemsForTemplate(r,{}),t)??{items:"",hasMoreItems:!1}}async getCurrentReducedHTML({retriesLeft:t=3,retryWaitMS:r=2e3,initialChecksumId:i="0",extractESRAForInterpretationRequiredElements:n=!1,stopFlashingElementsDetection:a=!1,assignChecksumIdsToAllElements:s}={}){let l=new Date;this.logger.log("[getCurrentReducedHTML] Fetching reduced HTML...");try{let{reducedHTML:h,currentChecksumId:u,flashingHTML:c,elementsForNodeInterpretation:f,lastRRwebEvent:d}=await this.evaluateWithChecksum(async C=>window.checksum.testGenerator.reduceHTML({},C),{initialChecksumId:i,extractESRAForInterpretationRequiredElements:n,stopFlashingElementsDetection:a,assignChecksumIdsToAllElements:s}),p=new Date;return this.logger.log(`[getCurrentReducedHTML] Fetched reduced HTML in ${p.getTime()-l.getTime()}ms`),this.rrwebEventAtLastReducedHTML=d,{reducedHTML:h,flashingHTML:c,elementsForNodeInterpretation:f,currentChecksumId:u}}catch(h){if(t>0)return this.logger.logError(`[getCurrentReducedHTML] Error: ${h.message}`),this.logger.logError(`Failed do obtain reduced HTML, trying again in ${r/1e3} seconds, ${t-1} to go.`),await B(r),this.getCurrentReducedHTML({retriesLeft:t-1,retryWaitMS:r});throw h}}getActionEventCode(t){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",upload_files:"upload_files",wait:"wait",get_more_items:"get_more_items",reset:void 0,save:void 0,fail:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0,logout_and_login:"logout_and_login"}[t]}exampleCustomCode(){function t(i){return new Promise(n=>setTimeout(n,i))}o(t,"sleep");async function r(){let i={foo:o(()=>{console.log("fooed")},"foo")};await(0,eval)('async (page) => {console.log("before foo"); await sleep(1000); page.foo();}')(i)}o(r,"doit"),(async()=>r())()}};o(Cs,"TestGenerationPageInteractor");var Ot=Cs;var C1=__dirname+"/checksumlib.js",k1=1e3*30;var hd=!1;function ks(e){hd=e}o(ks,"setLogToConsole");function Z(...e){hd&&console.log(...e)}o(Z,"log");function Kv(e,{role:t,environment:r}={},i=!1){var l,h;let n;r&&(n=(l=e.environments)==null?void 0:l.find(({name:u})=>r===u)),n||(n=(h=e.environments)==null?void 0:h.find(({default:u})=>u)),n||(n={baseURL:e.baseURL,default:!0,name:void 0});let a=(n==null?void 0:n.users)??e.users,s;if(a&&(t&&(s=a.find(u=>u.role===t)),s||(s=a.find(u=>u.default))),s||(s={role:void 0,username:e.username,password:e.password,default:!0}),r&&n.name!==r){if(i)throw new Error(`Could not find environment with name "${r}" in config file`);console.warn(`Could not find environment with name "${r}" in config file, trying to use default environment`)}if(t&&s.role!==t){if(i)throw new Error(`Could not find user with role "${t}" for environment "${r}" in config file`);console.warn(`Could not find user with role "${t}" for environment "${r}" in config file, trying to login with environment's default user`)}return{environment:n,user:s}}o(Kv,"resolveEnvironment");function xs(e){let{config:t,folder:r,throwIfAuthFailed:i}=e;try{let n=require(`${r??Ta()}/login.ts`).default;return async(a,{role:s,environment:l}={})=>{let h={username:t.username,password:t.password},{environment:u,user:c}=Kv(t,{role:s,environment:l});if(i&&!c)throw new Error("Could not find user credentials matching the provided role and/or environment");c&&(h.username=c.username,h.password=c.password);let f=o(()=>n(a,{...t,...h},{environment:u,user:c}),"performLogin");"checksumAI"in a?await a.checksumAI(`Log in${c!=null&&c.role?` using ${c.role} role`:""}${u!=null&&u.name?` in ${u.name} environment`:""}`,f):await f()}}catch(n){throw console.warn("Could not find checksum login file. Please create a login.ts file in your checksum folder"),n}}o(xs,"makeUnboundLogin");var Bd=require("path"),Fi=require("@playwright/test"),Ws=X(Ld());var Ns=class Ns{constructor(t){this.options=t;this.harData={methodIndex:{GET:0,POST:0,PUT:0,DELETE:0}};this.interceptors={recordHar:this.harInterceptor.bind(this),completeOriginHeader:this.completeOriginHeaderInterceptor.bind(this)};this.intercept=o(async(t,r,i)=>{let n=[],a=o(s=>{if(s)switch(s.type){case"abort":return t.abort(s.errorCode);case"fulfill":return t.fulfill(s.fulfillOptions);default:case"continue":n.push(s)}},"processResult");for(let[s,l]of Object.entries(this.interceptors))if(this.options[s]){let h=a(await l(t,r,i));if(h)return h}return this.applyContinueResults(t,n)},"intercept")}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}applyContinueResults(t,r){let i=r.filter(a=>!!a),n={};return i.forEach(a=>{a.options&&(a.options.headers&&(n.headers={...n.headers,...a.options.headers}),a.options.method&&(n.method=a.options.method),a.options.postData&&(n.postData=a.options.postData),a.options.url&&(n.url=a.options.url))}),t.continue(n)}async harInterceptor(t){let r=t.request().headers(),i=t.request().method();return r["Checksum-Id"]=(++this.harData.methodIndex[i]).toString(),{options:{headers:r}}}async completeOriginHeaderInterceptor(t,r,{page:i}){let n=t.request().headers();if(!n.Origin){try{let a=new URL(i.url()).origin;n.Origin=a}catch{}return{options:{headers:n}}}}};o(Ns,"RouteInterceptors");var Hn=Ns;var qs=class qs{constructor(t={},r={}){this.browserConfig={devtools:!1,executablePath:process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH??void 0};this.options={fullScreenResolution:!1,defaultTimeout:3e4,defaultNavigationTimeout:3e4,disableWebSecurity:!0};this.navigationPromise={};this.contextClosePromise=void 0;this.eventListeners=[];this.lastSnapshot={selector:void 0,eventCode:void 0};this.snapshotTimeout=3e4;this.cacheScript=!1;this.pagesCounter=0;this.pagesIndexToGuid={};this.onRequestFinished=o(async t=>{try{let r=await t.response();if(!r.ok())return;let i=t.resourceType(),n=t.url(),a=o(async()=>{try{return await r.text()}catch{try{return await(await fetch(n)).text()}catch{return}}},"getBody");if(["document","script","stylesheet"].includes(i))try{let s=await a();if(!s)return;let l={url:n,source:s,type:i};await this.forEachEventListener(h=>{var u;return(u=h.onWebDriverResourceLoaded)==null?void 0:u.call(h,l)})}catch(s){console.error("[WebDriver] requestfinished event handler error",i,n,s)}}catch(r){console.error("[WebDriver] requestfinished event handler error",r)}},"onRequestFinished");this.onPage=o(async t=>{try{await(t==null?void 0:t.route("**/*",async(r,i)=>this.routeInterceptor.intercept(r,i,{page:t})))}catch(r){console.error("[WebDriver] onPage error",r)}},"onPage");this.onFrameNavigated=o(async t=>{let r=t.page();if(r.mainFrame()!==t)return;let i=o(async n=>{await this.forEachEventListener(a=>{var s;return(s=a.onWebDriverPageNavigated)==null?void 0:s.call(a,r,r.url(),n)})},"notifyFrameNavigated");await i(!1),this.navigationPromise[this.getGuid(r)]=new Promise(async n=>{await this.loadScript(r),await i(!0),n()})},"onFrameNavigated");this.navigatingPages={};this.tracing=!1;this.tracingChunk=!1;this.chunkIndex=0;var i;if(this.options={...this.options,...t},this.browserConfig={...this.browserConfig,...r},this.browserConfig.args||(this.browserConfig.args=[]),this.options.disableWebSecurity&&this.browserConfig.args.push("--disable-web-security"),this.browserConfig.args.push("--disable-site-isolation-trials"),this.browserConfig.args.push("--allow-running-insecure-content"),this.options.forceHeadless&&(this.browserConfig.headless=!0,this.browserConfig.devtools=!1),this.options.useProxy)if((i=this.options.webProxy)!=null&&i.server){console.log("[WebDriver] using proxy");let{server:n,username:a,password:s}=this.options.webProxy;this.browserConfig.proxy={server:n,username:a,password:s},this.browserConfig.args.push("--proxy-bypass-list=localhost,127.0.0.1")}else console.error("[WebDriver] useProxy=true but proxy not configured");this.routeInterceptor=new Hn({completeOriginHeader:this.options.completeOriginHeader,recordHar:this.options.recordHAR})}setOnScriptLoad(t){this.onScriptLoad=t}async prepare({storageState:t}={}){if(await this.shutdown(),this.options.useStealth){let i=require("puppeteer-extra-plugin-stealth");Ws.chromium.use(i()),this.browser=await Ws.chromium.launch(this.browserConfig)}else this.browser=await Fi.chromium.launch(this.browserConfig);let r={};return r.bypassCSP=!0,r.ignoreHTTPSErrors=!0,r.baseURL=this.options.baseURL,this.options.timezoneId&&(r.timezoneId=this.options.timezoneId),this.options.fullScreenResolution&&(r.viewport={width:1280,height:720}),t&&(r.storageState=t),this.context=await this.browser.newContext(r),this.options.defaultTimeout&&this.context.setDefaultTimeout(this.options.defaultTimeout),this.options.defaultNavigationTimeout&&this.context.setDefaultNavigationTimeout(this.options.defaultNavigationTimeout),this.pageInjectedScriptOptions=this.getPageInjectedScriptOptions(),this.context.on("page",i=>{this.onPage(i),this.onFrameNavigated(i.mainFrame()),i.on("framenavigated",this.onFrameNavigated)}),this.context.on("close",async()=>{this.contextClosePromise=this.forEachEventListener(i=>{var n;return(n=i.onWebDriverContextClose)==null?void 0:n.call(i)})}),this.activePage=await this.context.newPage(),this.originalPage=this.activePage,this.options.trackLoadedResources&&this.page.on("requestfinished",this.onRequestFinished),this.options.useCDPSession&&(this.cdpSession=await this.context.newCDPSession(this.page)),!0}getGuid(t){return t._guid}switchActivePage(t){let r=this.context.pages().find(i=>this.getGuid(i)===t);return!r||r.isClosed()?(console.error(`[WebDriver] Page with guid ${t} not found or has been closed.`),!1):(this.previousPage=this.activePage,this.activePage=r,!0)}getDefaultTimeout(){return this.options.defaultTimeout}getDefaultNavigationTimeout(){return this.options.defaultNavigationTimeout}async addHARMockAPIRecordings(t){if(!this.activePage){console.warn("[addHARMockAPIRecordings] Active page is not set, skipping HAR recording.");return}await this.activePage.routeFromHAR(t,{url:/^(?!.*\.(js|mjs|ts|jsx|tsx|css|jpg|jpeg|png|gif|svg|webp|heif|heic|raw|cr2|nef|arw|bmp|tiff|tif|ico|woff|woff2|ttf|otf|doc|docx|pdf|ws|wasm|mp3|wav|aac|flac|mp4|avi|mov|wmv|flv|zip|rar|7z|tar\.gz|xml|html|py|java|cpp|xls|xlsx|ppt|pptx|gif)$)/i,update:!0,updateMode:"minimal"})}forEachEventListener(t){return Promise.all(this.eventListeners.map(async r=>{try{await t(r)}catch(i){console.log("WebDriver/forEachEventListener exception",i)}}))}getPageInjectedScriptOptions(){switch(this.options.scriptSource){case"file":return this.options.scriptFile?{path:(0,Bd.join)(process.cwd(),this.options.scriptFile)}:void 0;case"url":return this.options.scriptURL?{url:this.options.scriptURL}:void 0;default:return}}registerEventListener(t){this.eventListeners.push(t)}async loadScript(t,{retriesLeft:r=3,retryWaitMS:i=2e3}={}){var s;if(!this.pageInjectedScriptOptions){console.warn("[WebDriver] Script options not set, skipping script load");return}if(t.isClosed())return;try{if(await t.waitForFunction(()=>!!window.checksum,void 0,{timeout:1e3}))return}catch{}if(t.isClosed())return;try{await t.addScriptTag(this.pageInjectedScriptOptions)}catch(l){if(r>0)return console.warn(`[WebDriver] Failed to add script, trying again in ${i/1e3} seconds, ${r-1} retries left.`,l),await B(i),this.loadScript(t,{retriesLeft:r-1,retryWaitMS:i});throw l}let n=this.getGuid(t),a=Date.now().toString(36)+Math.random().toString(36).substr(2);if(this.navigatingPages[n]=a,this.options.scriptInitWait&&(console.log(`Waiting ${this.options.scriptInitWait}[ms] before onScriptLoad...`),await B(this.options.scriptInitWait),console.log("Done waiting before onScriptLoad")),!t.isClosed()){if(this.navigatingPages[n]&&this.navigatingPages[n]!==a)return console.log("Page navigated again, waiting on new promise..."),this.navigationPromise[n];try{await((s=this.onScriptLoad)==null?void 0:s.call(this,t))}catch(l){console.error("[WebDriver] onScriptLoad error",l)}}}async getScript(){async function t(r){let{exec:i}=require("child_process");return new Promise((n,a)=>{i(r,s=>{s?(console.log("error executing cmd, ",s),a(s)):n()})})}switch(o(t,"execCmd"),this.options.scriptSource){case"file":return this.options.scriptFile;case"url":if(this.cacheScript)return this.options.scriptFile;try{return await t(`curl -o ${this.options.scriptFile} '${this.options.scriptURL}'`),this.options.scriptFile}catch(r){console.log("[web-driver] Failed fetching frontend script",r)}break}}async startJSCoverageTracking(){return await this.page.coverage.startJSCoverage(),[];return await this.cdpSession.send("Debugger.enable"),await this.cdpSession.send("Profiler.enable"),await this.cdpSession.send("Profiler.startPreciseCoverage",{callCount:!1,detailed:!0}),this.getCurrentJSCoverage()}stopJSCoverageTracking(){return this.page.coverage.stopJSCoverage()}async getCurrentJSCoverage(){let t=await this.page.coverage.stopJSCoverage();return await this.page.coverage.startJSCoverage(),t;return(await this.cdpSession.send("Profiler.takePreciseCoverage")).result}async startCSSCoverageTracking(){return await this.cdpSession.send("DOM.enable"),await this.cdpSession.send("CSS.enable"),await this.cdpSession.send("CSS.startRuleUsageTracking"),this.getCurrentCSSCoverage()}async getCurrentCSSCoverage(){return(await this.cdpSession.send("CSS.takeCoverageDelta")).coverage}getCDPSession(){return this.cdpSession}async navigate(t){return this.page.goto(t)}async setViewportSize(t,r){return this.page.setViewportSize({width:t,height:r})}async getStorageState(){return this.page.context().storageState()}async shutdown(){try{this.page&&(await this.page.close(),this.activePage=void 0),this.context&&(await this.context.close(),this.context=void 0),this.browser&&(await this.browser.close(),this.browser=void 0)}catch(t){console.warn("[WebDriver] shutdown error",t)}}async wrapWithBrowserLogs(t,{disabled:r=!1,onErrorOnly:i=!1}={}){if(r)return t();let n=[],a=o(h=>{n.push(h.text())},"log");this.page.on("console",a);let s,l;try{l=await t()}catch(h){s=h}if(this.page.off("console",a),(!i||s)&&console.log("browser console messages:",n),s)throw s;return l}async takeElementSnapshot(t,r,i={},n={}){if(t===this.lastSnapshot.selector&&r===this.lastSnapshot.eventCode)return{};if(!t)return{};try{let{snapshot:a,elementLocator:s}=await this.takeSnapshot(t,n,{frameLocatorSelector:i.frameLocatorSelector});return this.lastSnapshot={selector:t,eventCode:r},{snapshot:a,elementLocator:s}}catch(a){return console.error("takeElementSnapshot error",a),{}}}getScreenshotTimeout(t=!1){return t?this.snapshotTimeout:this.snapshotTimeout+5e3}async takePageSnapshot(t){let r=this.page.screenshot({...t,timeout:this.getScreenshotTimeout()});return await Promise.race([r,B(this.getScreenshotTimeout(!0))])}async takeSnapshot(t,r,{frameLocatorSelector:i}={}){let n=i?this.page.frameLocator(i).locator(t):this.page.locator(t),a=n.screenshot({...r,timeout:this.getScreenshotTimeout()});return{snapshot:await Promise.race([a,B(this.getScreenshotTimeout(!0))]),elementLocator:n}}async getCurrentURL(){return this.page.url()}async getClientScreenResolution(){return await this.page.evaluate(async()=>({width:window.screen.width,height:window.screen.height}))}async awaitContextClose(){return this.contextClosePromise||await B(100),this.contextClosePromise}get page(){return this.activePage}getPage(){return this.activePage}startPlaywrightTrace(){return this.tracing=!0,this.context.tracing.start({name:"trace",screenshots:!0,snapshots:!0})}startPlaywrightTraceChunk(){return this.tracingChunk=!0,this.context.tracing.startChunk({name:`trace-chunk-${this.chunkIndex}`})}stopPlaywrightTraceChunk(t){return this.tracingChunk=!1,this.context.tracing.stopChunk({path:`${t.replace(".zip",`.${this.chunkIndex++}.zip`)}`})}stopPlaywrightTrace(t){return this.tracing=!1,this.context.tracing.stop({path:t})}isTracing(){return this.tracing}isTracingChunk(){return this.tracingChunk}};o(qs,"WebDriver");var Gn=qs;var Sy={useCDPSession:!0,trackLoadedResources:!0},js=class js extends Gn{constructor(r={},i={devtools:!0},n={}){super({...Sy,...r},i);this.settings={frontendAppSpecificRules:void 0,initTestGenerator:!0,frontendTestGenerationConfig:void 0,useTimeMachine:!1};this.initTestGenerator=o(async r=>{let i={assertionGenerator:!0,sessionRecorder:!0};r===this.timeMachinePage&&(i.assertionGenerator=!1,i.sessionRecorder=!1);try{return await r.waitForFunction(()=>{var n;return!!((n=window.checksum)!=null&&n.testGenerator)}),r.evaluate(async({appSpecificRules:n,config:a,initModules:s})=>{window.checksum.testGenerator.init(n,a,s),n.hasGoals&&await window.checksum.goalTracker.init()},{appSpecificRules:this.settings.frontendAppSpecificRules,config:this.getFrontendTestGenerationConfig(),initModules:i})}catch(n){console.log("initTestGenerator exception",n)}},"initTestGenerator");this.settings={...this.settings,...n},this.settings.initTestGenerator&&this.setOnScriptLoad(this.initTestGenerator)}async prepare(r={}){let i=await super.prepare(r);return this.settings.loadScriptOnPrepare&&await this.loadScript(this.page),await this.page.addInitScript(()=>{window.sessionStorage.setItem("checksumai:disable","true")}),this.settings.useTimeMachine&&(this.timeMachinePage=await this.context.newPage(),await this.page.bringToFront(),await this.loadScript(this.timeMachinePage),await this.timeMachinePage.evaluate(()=>window.checksum.timeMachine.start({firstEventTimestamp:Date.now()}))),i}getTimeMachinePage(){return this.timeMachinePage}getFrontendTestGenerationConfig(){return this.settings.frontendTestGenerationConfig}async getBestMatchingElementSimilarityScore(r){return this.evaluateWithChecksum(async i=>await window.checksum.testGenerator.getBestMatchingElementSimilarityScore(i),r)}async getInteractableElements(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getInteractableElements())}async getAllInteractableElementsForLastSelectQuery(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getAllInteractableElementsForLastSelectQuery())}async evaluateWithChecksum(r,i){this.navigationPromise[this.getGuid(this.page)]&&await this.navigationPromise[this.getGuid(this.page)];try{return this.page.evaluate(r,i)}catch(n){throw console.error("evaluateWithChecksum error",n,r.toString()),n}}async overlayInteractableElementsWithChecksumId(r){return this.page.evaluate(i=>window.checksum.testGenerator.overlayInteractableElementsWithChecksumId(i),r)}async postRRwebEvents(r){return this.page.evaluate(i=>window.checksum.testGenerator.postRRwebEvents(i),r)}async getRRwebEvents(r=0){return this.evaluateWithChecksum(async({index:i})=>window.checksum.testGenerator.getRRwebEvents(i),{index:r})}async getGoals(){return await this.evaluateWithChecksum(async()=>window.checksum.goalTracker.getGoals())}async takeElementSnapshot(r,i,n={},a={}){try{let{snapshot:s,elementLocator:l}=await super.takeElementSnapshot(r,i,n);if(!s||!n.takeBodyScreenshot)return s?{snapshot:s}:{};await this.highlightElementByLocator(l,n.mousePosition);let h=await this.takePageSnapshot(a);return await this.clearHighlights(),{snapshot:s,bodySnapshot:h}}catch(s){return console.error("[ChecksumWebDriver] takeElementSnapshot error",s),{}}}async highlightElementByLocator(r,i,n="20px solid rgba(255,0,0,1)"){return this.evaluateWithChecksum(async([a,s,l])=>{window.checksum.testGenerator.highlightElement(a,{highlightStyle:{outline:s},mousePosition:l})},[await r.elementHandle(),n,i])}async clearHighlights(){return this.evaluateWithChecksum(async()=>window.checksum.testGenerator.clearHighlights())}async getInspectedElementSelectionResultByRRwebId(r,i={fromTimeMachine:!1}){return await(i.fromTimeMachine?this.getTimeMachinePage().evaluate.bind(this.getTimeMachinePage()):this.evaluateWithChecksum.bind(this))(([a,s])=>window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(a,s),[parseInt(r,10),i])}};o(js,"ChecksumWebDriver");var Sr=js;var zs=class zs{constructor(t,r={},i=!0){this.requests=[];this.watcherConfig={minimumWaitTime:250,maximumWaitTime:1e4,followingRequestsWaitTime:250};this.resolved=!0;this.hasMinimumWaitTimePassed=!1;this.useLog=!1;this.logStack=[];this.resolve=o(()=>{this.resolved||(this.resolved=!0,clearTimeout(this.minimumWaitTimer),clearTimeout(this.maximumWaitTimer),clearTimeout(this.followingRequestWaitTimeoutId),this.loadResolve({totalTime:Date.now()-this.startTS,logs:this.logStack,pendingRequests:this.requests.length,totalRequests:this.observedRequestsCount}))},"resolve");this.watcherConfig={...this.watcherConfig,...r},this.initListeners(t),this.useLog=i}initListeners(t){t.on("request",r=>{var i;this.hasMinimumWaitTimePassed||(i=this.watcherConfig.whitelist)!=null&&i.length&&!this.watcherConfig.whitelist.some(n=>n.test(r.url()))||(this.useLog&&this.logStack.push(`${r.method()} ${r.url().substring(0,60)}`),this.requests.push(r),this.observedRequestsCount+=1)}),t.on("response",r=>{this.requests=this.requests.filter(i=>i!==r.request()),this.hasMinimumWaitTimePassed&&(this.requests.length||(clearTimeout(this.followingRequestWaitTimeoutId),this.followingRequestWaitTimeoutId=setTimeout(()=>{this.requests.length||this.resolve()},this.watcherConfig.followingRequestsWaitTime)))})}async wait(){return new Promise(t=>{this.loadResolve=t,this.resolved=!1,this.minimumWaitTimer=setTimeout(()=>{this.hasMinimumWaitTimePassed=!0,this.requests.length||this.resolve()},this.watcherConfig.minimumWaitTime),this.maximumWaitTimer=setTimeout(this.resolve,this.watcherConfig.maximumWaitTime)})}startListening(){this.requests=[],this.startTS=Date.now(),this.hasMinimumWaitTimePassed=!1,this.observedRequestsCount=0,this.useLog&&(this.logStack=[])}};o(zs,"NetworkWatcher");var Er=zs;var $n=o(e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p","isUpKey"),Hs=o(e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n","isDownKey");var Vn=o(e=>e.name==="backspace","isBackspaceKey"),Od=o(e=>"123456789".includes(e.name),"isNumberKey"),Zn=o(e=>e.name==="enter"||e.name==="return","isEnterKey");var Gs=class Gs extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(t){super(),this.cause=t==null?void 0:t.cause}};o(Gs,"AbortPromptError");var Kn=Gs,$s=class $s extends Error{name="CancelPromptError";message="Prompt was canceled"};o($s,"CancelPromptError");var Jn=$s,Vs=class Vs extends Error{name="ExitPromptError"};o(Vs,"ExitPromptError");var Yn=Vs,Zs=class Zs extends Error{name="HookError"};o(Zs,"HookError");var Xn=Zs,Ks=class Ks extends Error{name="ValidationError"};o(Ks,"ValidationError");var Fr=Ks;var Qs=require("async_hooks");var Qn=require("async_hooks");var Ud=new Qn.AsyncLocalStorage;function Ey(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}o(Ey,"createStore");function Nd(e,t){let r=Ey(e);return Ud.run(r,()=>{function i(n){r.handleChange=()=>{r.index=0,n()},r.handleChange()}return o(i,"cycle"),t(i)})}o(Nd,"withHooks");function Nt(){let e=Ud.getStore();if(!e)throw new Xn("[Inquirer] Hook functions can only be called from within a prompt");return e}o(Nt,"getStore");function Js(){return Nt().rl}o(Js,"readline");function Ys(e){let t=o((...r)=>{let i=Nt(),n=!1,a=i.handleChange;i.handleChange=()=>{n=!0};let s=e(...r);return n&&a(),i.handleChange=a,s},"wrapped");return Qn.AsyncResource.bind(t)}o(Ys,"withUpdates");function _r(e){let t=Nt(),{index:r}=t,i={get(){return t.hooks[r]},set(a){t.hooks[r]=a},initialized:r in t.hooks},n=e(i);return t.index++,n}o(_r,"withPointer");function Wd(){Nt().handleChange()}o(Wd,"handleChange");var Wt={queue(e){let t=Nt(),{index:r}=t;t.hooksEffect.push(()=>{var n,a;(a=(n=t.hooksCleanup)[r])==null||a.call(n);let i=e(Js());if(i!=null&&typeof i!="function")throw new Fr("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){let e=Nt();Ys(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){let e=Nt();e.hooksCleanup.forEach(t=>{t==null||t()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function fe(e){return _r(t=>{let r=o(n=>{t.get()!==n&&(t.set(n),Wd())},"setFn");if(t.initialized)return[t.get(),r];let i=typeof e=="function"?e():e;return t.set(i),[i,r]})}o(fe,"useState");function qt(e,t){_r(r=>{let i=r.get();(!Array.isArray(i)||t.some((a,s)=>!Object.is(a,i[s])))&&Wt.queue(e),r.set(t)})}o(qt,"useEffect");var Fe=X(ta(),1);var Be=X(require("process"),1);function _y(){return Be.default.platform!=="win32"?Be.default.env.TERM!=="linux":!!Be.default.env.WT_SESSION||!!Be.default.env.TERMINUS_SUBLIME||Be.default.env.ConEmuTask==="{cmd::Cmder}"||Be.default.env.TERM_PROGRAM==="Terminus-Sublime"||Be.default.env.TERM_PROGRAM==="vscode"||Be.default.env.TERM==="xterm-256color"||Be.default.env.TERM==="alacritty"||Be.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(_y,"isUnicodeSupported");var Hd={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Gd={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Ay={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ty={...Hd,...Gd},Py={...Hd,...Ay},Ry=_y(),Iy=Ry?Ty:Py,Ar=Iy,FS=Object.entries(Gd);var $d={prefix:{idle:Fe.default.blue("?"),done:Fe.default.green(Ar.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(e=>Fe.default.yellow(e))},style:{answer:Fe.default.cyan,message:Fe.default.bold,error:o(e=>Fe.default.red(`> ${e}`),"error"),defaultAnswer:o(e=>Fe.default.dim(`(${e})`),"defaultAnswer"),help:Fe.default.dim,highlight:Fe.default.cyan,key:o(e=>Fe.default.cyan(Fe.default.bold(`<${e}>`)),"key")}};function Vd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}o(Vd,"isPlainObject");function Zd(...e){let t={};for(let r of e)for(let[i,n]of Object.entries(r)){let a=t[i];t[i]=Vd(a)&&Vd(n)?Zd(a,n):n}return t}o(Zd,"deepMerge");function jt(...e){let t=[$d,...e.filter(r=>r!=null)];return Zd(...t)}o(jt,"makeTheme");function _i({status:e="idle",theme:t}){let[r,i]=fe(!1),[n,a]=fe(0),{prefix:s,spinner:l}=jt(t);return qt(()=>{if(e==="loading"){let u,c=-1,f=setTimeout(Qs.AsyncResource.bind(()=>{i(!0),u=setInterval(Qs.AsyncResource.bind(()=>{c=c+1,a(c%l.frames.length)}),l.interval)}),300);return()=>{clearTimeout(f),clearInterval(u)}}else i(!1)},[e]),r?l.frames[n]:typeof s=="string"?s:s[e==="loading"?"idle":e]}o(_i,"usePrefix");function Ai(e,t){return _r(r=>{let i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((n,a)=>n!==t[a])){let n=e();return r.set({value:n,dependencies:t}),n}return i.value})}o(Ai,"useMemo");function vt(e){return fe({current:e})[0]}o(vt,"useRef");function Ti(e){let t=vt(e);t.current=e,qt(r=>{let i=!1,n=Ys((a,s)=>{i||t.current(s,r)});return r.input.on("keypress",n),()=>{i=!0,r.input.removeListener("keypress",n)}},[])}o(Ti,"useKeypress");var kp=X(Jd(),1),xp=X(Cp(),1);function Ii(e,t){return e.split(`
|
|
35
|
-
`).flatMap(r=>(0,
|
|
52
|
+
`).map(i=>PP(i,t,r)).join(`
|
|
53
|
+
`)});var xb=O((q5,Cb)=>{var OP=require("stream"),ra,br,Vu,Yu,xd=class xd extends OP{constructor(r={}){super(r);Mt(this,br);Mt(this,ra,null);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=r.replace,this._prompt=r.prompt||null,this._hadControl=!1}get isTTY(){return ee(this,ra)!==null?ee(this,ra):hr(this,br,Vu).call(this,"isTTY",!1)}set isTTY(r){Pr(this,ra,r)}get rows(){return hr(this,br,Vu).call(this,"rows")}get columns(){return hr(this,br,Vu).call(this,"columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(r){this._src=r}pipe(r,i){return this._dest=r,super.pipe(r,i)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(r){if(this.muted){if(!this.replace)return!0;if(r.match(/^\u001b/))return r.indexOf(this._prompt)===0&&(r=r.slice(this._prompt.length),r=r.replace(/./g,this.replace),r=this._prompt+r),this._hadControl=!0,this.emit("data",r);this._prompt&&this._hadControl&&r.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),r=r.slice(this._prompt.length)),r=r.toString().replace(/./g,this.replace)}this.emit("data",r)}end(r){this.muted&&(r&&this.replace?r=r.toString().replace(/./g,this.replace):r=null),r&&this.emit("data",r),this.emit("end")}destroy(...r){return hr(this,br,Yu).call(this,"destroy",...r)}destroySoon(...r){return hr(this,br,Yu).call(this,"destroySoon",...r)}close(...r){return hr(this,br,Yu).call(this,"close",...r)}};ra=new WeakMap,br=new WeakSet,Vu=o(function(r,i){return this._dest?this._dest[r]:this._src?this._src[r]:i},"#destSrc"),Yu=o(function(r,...i){var s,u;typeof((s=this._dest)==null?void 0:s[r])=="function"&&this._dest[r](...i),typeof((u=this._src)==null?void 0:u[r])=="function"&&this._src[r](...i)},"#proxy"),o(xd,"MuteStream");var Cd=xd;Cb.exports=Cd});var Od=O((V5,Md)=>{"use strict";var ce=Md.exports;Md.exports.default=ce;var De="\x1B[",To="\x1B]",oa="\x07",el=";",Fb=process.env.TERM_PROGRAM==="Apple_Terminal";ce.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?De+(e+1)+"G":De+(t+1)+";"+(e+1)+"H"};ce.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=De+-e+"D":e>0&&(r+=De+e+"C"),t<0?r+=De+-t+"A":t>0&&(r+=De+t+"B"),r};ce.cursorUp=(e=1)=>De+e+"A";ce.cursorDown=(e=1)=>De+e+"B";ce.cursorForward=(e=1)=>De+e+"C";ce.cursorBackward=(e=1)=>De+e+"D";ce.cursorLeft=De+"G";ce.cursorSavePosition=Fb?"\x1B7":De+"s";ce.cursorRestorePosition=Fb?"\x1B8":De+"u";ce.cursorGetPosition=De+"6n";ce.cursorNextLine=De+"E";ce.cursorPrevLine=De+"F";ce.cursorHide=De+"?25l";ce.cursorShow=De+"?25h";ce.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=ce.eraseLine+(r<e-1?ce.cursorUp():"");return e&&(t+=ce.cursorLeft),t};ce.eraseEndLine=De+"K";ce.eraseStartLine=De+"1K";ce.eraseLine=De+"2K";ce.eraseDown=De+"J";ce.eraseUp=De+"1J";ce.eraseScreen=De+"2J";ce.scrollUp=De+"S";ce.scrollDown=De+"T";ce.clearScreen="\x1Bc";ce.clearTerminal=process.platform==="win32"?`${ce.eraseScreen}${De}0f`:`${ce.eraseScreen}${De}3J${De}H`;ce.beep=oa;ce.link=(e,t)=>[To,"8",el,el,t,oa,e,To,"8",el,el,oa].join("");ce.image=(e,t={})=>{let r=`${To}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+oa};ce.iTerm={setCwd:o((e=process.cwd())=>`${To}50;CurrentDir=${e}${oa}`,"setCwd"),annotation:o((e,t={})=>{let r=`${To}1337;`,i=typeof t.x<"u",s=typeof t.y<"u";if((i||s)&&!(i&&s&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(i?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+oa},"annotation")}});var TI=require("@playwright/test");var As="checksum";var Ta=Me(require("path"));var pe=o(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),Qe=o(async(e,t=1e3,r="guardReturnTimedOut")=>{if(t===null)return e;let i="guard-timed-out",s=o(async()=>(await pe(t+1e3),i),"guard"),u=await Promise.race([e,s()]);if(typeof u=="string"&&u===i)throw new Error(r);return u},"guardReturn");function Uc(e){return!!e&&!["navigation","keystroke","wait","get_more_items","custom_code"].includes(e)}o(Uc,"isActionOnElement");function Om(e){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",upload_files:"upload_files",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",reset:void 0,save:void 0,fail:void 0,wait:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,get_more_items:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0}[e]}o(Om,"getActionEventCode");var Bm=o((e,t,r)=>{if(!t)return e;if(!r||!r.length)return e.locator(t);let i=e.frameLocator(r[0]);for(let s of r.slice(1))i=i.frameLocator(s);return i.locator(t)},"makeLocator");function Nc(){return process.env.CHECKSUM_ROOT_FOLDER?process.env.CHECKSUM_ROOT_FOLDER:Ta.join(__dirname,"..","..","..","checksum")}o(Nc,"checksumFolder");function Um({isInit:e,excludeLogin:t}){return[...e?["example.checksum.spec.ts","github-actions.example.yml"]:[],...t?[]:["login.ts"],"checksum.config.ts","playwright.config.ts","README.md",".gitignore.example"]}o(Um,"getRuntimeFiles");var u3={generateSelectionData:!1,navigationTimeout:30*1e3,actionTimeout:5*1e3};var GF=require("jsdom");var RI=Me(Cu());var kI=250,Tf=class Tf{constructor(t,r){this.timeMachineable=t;this.initMethod=r;this.numberOfReceivedRrwebEventsIndex=0;this.syncTimeMachine=o(async()=>{try{let t;try{t=await this.timeMachineable.getRRwebEvents(this.numberOfReceivedRrwebEventsIndex)}catch{return}if(!t||t.length===0)return;try{await this.timeMachineable.getTimeMachinePage().evaluate(({events:r,len:i})=>window.checksum.timeMachine.handleEvents(r,i),{events:t,len:this.numberOfReceivedRrwebEventsIndex})}catch{return}this.numberOfReceivedRrwebEventsIndex+=t.length}finally{this.syncTimeout=setTimeout(this.syncTimeMachine,kI)}},"syncTimeMachine")}async start(t=!1){var r;await((r=this.initMethod)==null?void 0:r.call(this,t)),this.syncTimeMachine()}async stop(){clearTimeout(this.syncTimeout)}async disableEventsHandling(){await this.setShouldHandleEvents(!1)}async enableEventsHandling(){await this.setShouldHandleEvents(!0)}async setShouldHandleEvents(t){try{await this.timeMachineable.getTimeMachinePage().evaluate(r=>window.checksum.timeMachine.setShouldHandleEvents(r),t)}catch{}}};o(Tf,"TimeMachineSync");var po=Tf;var ty=require("path"),ry=require("fs");var ey=Me(Qw());var If=class If{constructor(t){this.toJSON=o(()=>this.data,"toJSON");this.data=t}getSimilar(t){let r=null,i=-1/0;for(let s of Object.keys(this.data)){let u=(0,ey.levenshtein)([...t],[...s]);u>i&&(i=u,r=s)}return r?this.data[r]:null}};o(If,"SimilarityRecord");var Rf=If,pn=class pn extends Rf{constructor(t){super(pn.preprocessRectangles(t))}getRectangleByTextAndSizeRanking(t,r){let i=this.getSimilar(t);if(!i||i.length===0)return null;let s=Math.min(Math.max(r,0),i.length-1);return i[s]}};o(pn,"RectangleIndex"),pn.preprocessRectangles=o(t=>{let r=[...new Map([...t].map(s=>[JSON.stringify(s.vertices),s])).values()],i={};return r.forEach(s=>{i[s.text]||(i[s.text]=[]),i[s.text].push(s),i[s.text].sort((u,c)=>{let f=pn.calculateArea(u.vertices),v=pn.calculateArea(c.vertices);return f-v})}),i},"preprocessRectangles"),pn.calculateArea=o(t=>{let r=Math.abs(t[1].x-t[0].x),i=Math.abs(t[3].y-t[0].y);return r*i},"calculateArea");var ku=pn;var EI=!0,Pf=class Pf{constructor(t,r,i,s,u,c,f){this.evaluateWithChecksum=t;this.getPage=r;this.getTimeMachinePage=i;this.logger=s;this.options=u;this.pageInteractorAPI=c;this.loginFunction=f;this.newPagesIds=[];this.performFileUploadAction=o(async(t,r)=>{if(!await t.evaluate(s=>s.tagName==="INPUT"&&s.getAttribute("type")==="file"))throw new Error("File upload action performed on non-file input element");let i=r.files.map(s=>(0,ty.join)(this.options.testAssetsDir,s)).filter(s=>(0,ry.existsSync)(s)?!0:(this.logger.log(`Upload file not found: ${s}. Filtering out.`),!1));if(!i.length)throw new Error("No files to upload");await this.actionGuardReturn(t.setInputFiles(i),"Set input files timeout")},"performFileUploadAction");this.getSelectionDataForAction=o(async(t,r)=>t.checksumid?this.getSelectionDataForChecksumId(t.checksumid,r):t.position?await this.evaluateWithChecksum(async([i,s])=>window.checksum.testGenerator.getSelectorByPosition(i,s),[t.position.x,t.position.y]):t.selector?{selector:t.selector,locator:`locator("${t.selector}")`}:{selector:"",locator:""},"getSelectionDataForAction")}init(){let t=this.getPage();t.on("filechooser",async r=>{this.logger.log("File chooser event detected"),this.fileChooser=r}),t.context().on("page",r=>{this.newPagesIds.push(r._guid)})}getOpenedFileChooser(){if(this.fileChooser){let t=this.fileChooser;return this.fileChooser=void 0,t}return null}async handleFileChooserEvent(t=[]){let r=this.getOpenedFileChooser();if(!r)return{};let i="fc_"+Math.random().toString(36).slice(2,4);return await this.evaluateWithChecksum(async([s,u])=>{window.checksum.testGenerator.addForceIncludeElement(u,s)},[i,r.element()]),{interruptionEvent:"fileUploadOpenedEvent",payload:{checksumid:i,customFiles:t}}}async addMoreItemsToDom(t,r){let i=t.querySelector(`[checksum-get-more-items='${r}']`);if(!i)throw new Error("Get more items root not found");let{items:s,hasMoreItems:u}=await this.getMoreItemsForTemplate(r);i.innerHTML=i.innerHTML+s,u||i.removeAttribute("checksum-get-more-items")}async getPageInfo(t){return{id:t._guid,url:t.url(),title:await t.title(),new:this.newPagesIds.includes(t._guid),active:t._guid===this.getPage()._guid}}async getTabsInfo(){let t=(await Promise.all(this.getPage().context().pages().map(r=>this.getPageInfo(r)))).filter(r=>{var i;return r.id!==((i=this.getTimeMachinePage())==null?void 0:i._guid)});return this.newPagesIds=[],t}async getSelectionDataFromSelectorGenerator(t,r,i={}){if(i={useCompoundSelector:!0,useCSSExtraction:!0,useVariables:!0,...i},!t||!Uc(Om(r.action.type))||!r.action.checksumid)return{};let s=await t.generateSelectionForAction(r,i);return s?{locator:`locator("${s.selector}")`,...s}:{}}async translateActionResponseToAgentPotentialAction(t,r=void 0,{pageId:i,makeStaticMetadataForESRA:s}={}){let u=structuredClone(t.actionHiddenOverride??t.action),{selector:c,selectorWithVars:f,locator:v,locatorWithVars:p,clickOffset:g,selectOptionValue:b,compoundSelector:x,alternateSelectors:S,parentFramesSelectors:L}={...await this.getSelectionDataForAction(u,t.actionHiddenOverride),...await this.getSelectionDataFromSelectorGenerator(r,t)},P=await this.getESRAForSelector(c,L,s);if(!P&&c&&this.logger.logError("Error getting ESRA metadata"),(P==null?void 0:P.tag)==="select")switch(this.getActionEventCode(u.type)){case"input":u.type="selectoption";break;case"click":b&&(u.type="selectoption",u.value=b);break}let U={eventCode:this.getActionEventCode(u.type),selector:c,selectorWithVars:f,parentFramesSelectors:L,locator:v,locatorWithVars:p,clickOffset:g,pageId:i,compoundSelector:x,alternateSelectors:S,fillValue:u.value,fillValueName:u.valueName?`variablesStore.${u.valueName}`:"",variables:t.variables,getMoreItemsId:u.getMoreItemsId,esraMetadata:P,description:t.thought,userRole:u.userRole,canvas:u.canvas};switch(U.eventCode){case"drag_and_drop":{let{selector:A,selectorWithVars:I,locator:N,locatorWithVars:B,parentFramesSelectors:F}={...await this.getSelectionDataForAction({type:t.action.type,checksumid:t.action.dropTargetChecksumid}),...await this.getSelectionDataFromSelectorGenerator(r,{...t,action:{type:t.action.type,checksumid:t.action.dropTargetChecksumid}},{useCompoundSelector:!1})};U.dropTarget={selector:A,selectorWithVars:I,locator:N,locatorWithVars:B,parentFramesSelectors:F,esraMetadata:await this.getESRAForSelector(A,F,s)}}break;case"upload_files":U.files=this.mapFileMIMETypeToFilename(u.files);break;case"switch_tab":U.switchToTab={id:u.tabId,index:this.getPage().context().pages().findIndex(A=>A._guid===u.tabId)};break;case"keystroke":U.fillValue=u.value}return U}async reauthenticate(t){this.loginFunction&&(await Promise.all([this.getPage().context().clearCookies(),this.getPage().evaluate(()=>localStorage.clear())]),await this.loginFunction(this.getPage(),{role:t}))}mapFileMIMETypeToFilename(t){return t.map(r=>{if(r.fileName)return r.fileName;switch(r.mimeType){case"image/png":return"image_200x200.png";case"image/jpeg":return"image_200x200.jpg";case"application/pdf":return"document.pdf";case"text/csv":return"data.csv";default:return"file.txt"}})}async performAction(t,{handleActionFailed:r,monitorFlashingHTML:i=!0}={}){try{if(t.executed){this.logger.log("[performAction] Action marked as executed, skipping...");return}if(Uc(t.eventCode)&&!t.selector)throw new Error("No selector provided for action. Try changing app rules preMapReducedHTMLSelectors to true");i&&(this.logger.log("starting flashing elements detection"),await this.evaluateWithChecksum(async()=>window.checksum.testGenerator.startFlashingElementsDetection())),this.logger.log(`Performing action: ${t.eventCode}. Selector: ${t.selector}, Position: ${t.clickOffset}, Parent frame: ${t.parentFramesSelectors}`);let s=o(()=>this.makeLocator(t.selector,t.parentFramesSelectors),"getLocator");switch(t.eventCode){case"click":try{await this.actionGuardReturn(s().click({position:t.clickOffset}),"Click timeout")}catch(f){this.logger.log("Error performing click, will attempt a force click",f),t.force=!0,await this.actionGuardReturn(s().click({position:t.clickOffset,force:!0}),"Click timeout")}break;case"double_click":try{await this.actionGuardReturn(s().dblclick({position:t.clickOffset}),"DoubleClick timeout")}catch(f){this.logger.log("Error performing double click, will attempt a force double click",f),t.force=!0,await this.actionGuardReturn(s().dblclick({position:t.clickOffset,force:!0}),"Click timeout")}break;case"check":await this.actionGuardReturn(s().check(),"Check timeout");break;case"uncheck":await this.actionGuardReturn(s().uncheck(),"UnCheck timeout");break;case"drag_and_drop":await this.actionGuardReturn(s().dragTo(this.makeLocator(t.dropTarget.selector,t.dropTarget.parentFramesSelectors)),"DragAndDrop timeout");break;case"input":await this.actionGuardReturn(s().fill(this.getActionFillValue(t)),"Fill timeout");break;case"click_and_type":await Qe(s().click({position:t.clickOffset}),1e4,"Click before type timeout"),await Qe(s().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"clear_and_type":await Qe(s().clear(),1e4,"Clear before type timeout"),await Qe(s().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"selectoption":await this.actionGuardReturn(s().selectOption(this.getActionFillValue(t)),"SelectOption timeout");break;case"hover":await this.actionGuardReturn(s().hover(),"Hover timeout");break;case"navigation":await this.actionGuardReturn(this.getPage().goto(t.fillValue),"Navigation timeout",!0);break;case"keystroke":await this.actionGuardReturn(this.getPage().keyboard.press(t.fillValue),"Keystroke timeout");break;case"upload_files":await this.performFileUploadAction(s(),t);break;case"wait":await pe(this.options.waitActionDelay??1e3);break;case"custom_code":let u=`async (page) => {${t.fillValue}}`;await(0,eval)(u)(this.getPage());break;case"logout_and_login":await this.reauthenticate(t.userRole);break;case"canvas_click":await this.canvasClick(s(),t.canvas);break}}catch(s){throw this.logger.log(`Error performing action: ${t.eventCode}, will attempt a correction template`,s),await(r==null?void 0:r()),new Error("Failed performing action")}this.logger.log(`Successfully performed action ${t.eventCode} with description "${t.description}"`)}async getTextDetection(t){return new ku(await this.pageInteractorAPI.getTextDetection(t))}async canvasClick(t,r){try{if(!await t.evaluate(c=>c.tagName.toLowerCase()==="canvas"))throw new Error("Click attempted on a non-canvas element");let u=(await this.getTextDetection(await t.screenshot())).getRectangleByTextAndSizeRanking(r.canvasText,r.rectSize);if(!u)throw new Error(`Canvas click target not found for ${r.canvasText}`);this.logger.log(`Canvas click target: ${u}`),await this.actionGuardReturn(t.click({position:u.center}),"Canvas click could not be performed")}catch(i){throw this.logger.logError("Canvas click:",i.message),new Error("Canvas click action failed")}}getActionFillValue(t,r=!0){let i=t.fillValue;if(!i){let s=t.selector.match(/(?<=value.*)('|").*/);s&&(i=s[0].slice(1,-1))}return typeof i!="string"&&(i="X"),r&&(t.fillValue=i),i}actionGuardReturn(t,r,i=!1){return Qe(t,i?this.options.navigationTimeout:this.options.actionTimeout,r)}makeLocator(t,r){return Bm(this.getPage(),t,r)}getCurrentURL(){return this.getPage().url()}async getSelectionDataForChecksumId(t,r){if(r!=null&&r.selector)return{...r,selector:r.selector,clickOffset:r.position};if(!t)return this.logger.log(`[getSelectionDataForChecksumId] checksumid not provided (${t})`),{...r,selector:t};let i=await this.evaluateWithChecksum(async s=>{let{selector:u,locator:c,clickOffset:f,parentFramesSelectors:v,invalid:p,rrwebId:g}=await window.checksum.testGenerator.getSelectorForChecksumId(s),b=await window.checksum.testGenerator.getElementForChecksumId(s),x=b instanceof HTMLOptionElement&&b.value?b.value:void 0;return{selector:u,locator:c,clickOffset:f,selectOptionValue:x,parentFramesSelectors:v,invalid:p,rrwebId:g}},t);if(EI&&i.invalid&&i.rrwebId){this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. Trying to use time machine...`);try{let s=await this.getSelectionDataForRRwebIdAtReduceHTMLTime(i.rrwebId);i={...i,...s}}catch{this.logger.log(`[getSelectionDataForChecksumId] error using time machine to get selector for checksumid: ${t}`)}this.logger.log(`[getSelectionDataForChecksumId] got selector: ${i.selector} for checksumid: ${t} from time machine`)}return i!=null&&i.selector||this.logger.log(`[getSelectionDataForChecksumId] Could not get selector for checksumid: ${t}. If checksumid is correct, try to change app rules preMapReducedHTMLSelectors to true`),i}async getSelectionDataForRRwebIdAtReduceHTMLTime(t){if(!this.rrwebEventAtLastReducedHTML)return;let r=this.getTimeMachinePage();if(r)return r.evaluate(async({rrwebId:i,timestamp:s})=>{await window.checksum.timeMachine.goBack(s);let u=await window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(i,{fromTimeMachine:!0});return await window.checksum.timeMachine.goLive(),u},{rrwebId:t,timestamp:this.rrwebEventAtLastReducedHTML.timestamp})}async getESRAForSelector(t,r,i){let s=await this.evaluateWithChecksum(async({selector:u,parentFramesSelectors:c})=>window.checksum.testGenerator.getSelectionDataForSelector(u,c),{selector:t,parentFramesSelectors:r});return s!=null&&s.esraMetadata&&i&&(s.esraMetadata.staticMetadata=await i(s.esraMetadata,t)),s==null?void 0:s.esraMetadata}async getMoreItemsForTemplate(t){return await this.evaluateWithChecksum(async r=>window.checksum.testGenerator.getMoreItemsForTemplate(r,{}),t)??{items:"",hasMoreItems:!1}}async getCurrentReducedHTML({retriesLeft:t=3,retryWaitMS:r=2e3,initialChecksumId:i="0",extractESRAForInterpretationRequiredElements:s=!1,stopFlashingElementsDetection:u=!1,assignChecksumIdsToAllElements:c}={}){let f=new Date;this.logger.log("[getCurrentReducedHTML] Fetching reduced HTML...");try{let{reducedHTML:v,currentChecksumId:p,flashingHTML:g,elementsForNodeInterpretation:b,lastRRwebEvent:x}=await this.evaluateWithChecksum(async L=>window.checksum.testGenerator.reduceHTML({},L),{initialChecksumId:i,extractESRAForInterpretationRequiredElements:s,stopFlashingElementsDetection:u,assignChecksumIdsToAllElements:c}),S=new Date;return this.logger.log(`[getCurrentReducedHTML] Fetched reduced HTML in ${S.getTime()-f.getTime()}ms`),this.rrwebEventAtLastReducedHTML=x,{reducedHTML:v,flashingHTML:g,elementsForNodeInterpretation:b,currentChecksumId:p}}catch(v){if(t>0)return this.logger.logError(`[getCurrentReducedHTML] Error: ${v.message}`),this.logger.logError(`Failed do obtain reduced HTML, trying again in ${r/1e3} seconds, ${t-1} to go.`),await pe(r),this.getCurrentReducedHTML({retriesLeft:t-1,retryWaitMS:r});throw v}}getActionEventCode(t){return{click:"click",fill:"input",click_and_type:"click_and_type",clear_and_type:"clear_and_type",double_click:"double_click",drag_and_drop:"drag_and_drop",hover:"hover",navigate:"navigation",keystroke:"keystroke",selectoption:"selectoption",upload_files:"upload_files",wait:"wait",get_more_items:"get_more_items",reset:void 0,save:void 0,fail:void 0,finish:void 0,dismiss_modal:void 0,vision_help:void 0,switch_tab:"switch_tab",expand_interactable_elements:void 0,approve_release:void 0,logout_and_login:"logout_and_login",canvas_click:"canvas_click"}[t]}exampleCustomCode(){function t(i){return new Promise(s=>setTimeout(s,i))}o(t,"sleep");async function r(){let i={foo:o(()=>{console.log("fooed")},"foo")};await(0,eval)('async (page) => {console.log("before foo"); await sleep(1000); page.foo();}')(i)}o(r,"doit"),(async()=>r())()}};o(Pf,"TestGenerationPageInteractor");var Gn=Pf;var ny={apiURL:"http://localhost:3000",apiKey:"default"},Lf=class Lf{constructor(t=ny){this.options=t;this.health=o(async()=>await fetch(`${this.options.apiURL}/client-api/runtime/api/health`,{headers:{ChecksumAppCode:this.options.apiKey}}).catch(t=>(console.log(t),null)),"health");this.getCanvasDetection=o(async t=>{try{let r=t.toString("base64");return await(await fetch(`${this.options.apiURL}/client-api/runtime/vision/text-detection`,{body:JSON.stringify({imageBuffer:r}),method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.options.apiKey}})).json()}catch(r){return console.log(r),null}},"getCanvasDetection");this.options.apiURL=t.apiURL??ny.apiURL}};o(Lf,"ChecksumClient");var vo=Lf;var Mf=class Mf{constructor(){this.config={}}};o(Mf,"PageInteractorAPI");var Su=Mf;var Of=class Of extends Su{constructor(r){super();this.config=r;this.getTextDetection=o(async r=>{let i=await this.api.getCanvasDetection(r);if(!i)throw new Error("No data returned from canvas detection");return i},"getTextDetection");this.config=r,this.api=new vo({apiKey:r.apiKey,apiURL:r.apiURL})}};o(Of,"RuntimePageInteractorAPI");var Do=Of;var RB=__dirname+"/checksumlib.js",IB=1e3*30;var iy=!1;function Bf(e){iy=e}o(Bf,"setLogToConsole");function Oe(...e){iy&&console.log(...e)}o(Oe,"log");function II(e,{role:t,environment:r}={},i=!1){var f,v;let s;r&&(s=(f=e.environments)==null?void 0:f.find(({name:p})=>r===p)),s||(s=(v=e.environments)==null?void 0:v.find(({default:p})=>p)),s||(s={baseURL:e.baseURL,default:!0,name:void 0});let u=(s==null?void 0:s.users)??e.users,c;if(u&&(t&&(c=u.find(p=>p.role===t)),c||(c=u.find(p=>p.default))),c||(c={role:void 0,username:e.username,password:e.password,default:!0}),r&&s.name!==r){if(i)throw new Error(`Could not find environment with name "${r}" in config file`);console.warn(`Could not find environment with name "${r}" in config file, trying to use default environment`)}if(t&&c.role!==t){if(i)throw new Error(`Could not find user with role "${t}" for environment "${r}" in config file`);console.warn(`Could not find user with role "${t}" for environment "${r}" in config file, trying to login with environment's default user`)}return{environment:s,user:c}}o(II,"resolveEnvironment");function Uf(e){let{config:t,folder:r,throwIfAuthFailed:i}=e;try{let s=require(`${r??Nc()}/login.ts`).default;return async(u,{role:c,environment:f}={})=>{let v={username:t.username,password:t.password},{environment:p,user:g}=II(t,{role:c,environment:f});if(i&&!g)throw new Error("Could not find user credentials matching the provided role and/or environment");g&&(v.username=g.username,v.password=g.password);let b=o(()=>s(u,{...t,...v},{environment:p,user:g}),"performLogin");"checksumAI"in u?await u.checksumAI(`Log in${g!=null&&g.role?` using ${g.role} role`:""}${p!=null&&p.name?` in ${p.name} environment`:""}`,b):await b()}}catch(s){throw console.warn("Could not find checksum login file. Please create a login.ts file in your checksum folder"),s}}o(Uf,"makeUnboundLogin");var Ay=require("path"),Co=require("@playwright/test"),ed=Me(Fy());var Qf=class Qf{constructor(t){this.options=t;this.harData={methodIndex:{GET:0,POST:0,PUT:0,DELETE:0}};this.interceptors={recordHar:this.harInterceptor.bind(this),completeOriginHeader:this.completeOriginHeaderInterceptor.bind(this)};this.intercept=o(async(t,r,i)=>{let s=[],u=o(c=>{if(c)switch(c.type){case"abort":return t.abort(c.errorCode);case"fulfill":return t.fulfill(c.fulfillOptions);default:case"continue":s.push(c)}},"processResult");for(let[c,f]of Object.entries(this.interceptors))if(this.options[c]){let v=u(await f(t,r,i));if(v)return v}return this.applyContinueResults(t,s)},"intercept")}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}applyContinueResults(t,r){let i=r.filter(u=>!!u),s={};return i.forEach(u=>{u.options&&(u.options.headers&&(s.headers={...s.headers,...u.options.headers}),u.options.method&&(s.method=u.options.method),u.options.postData&&(s.postData=u.options.postData),u.options.url&&(s.url=u.options.url))}),t.continue(s)}async harInterceptor(t){let r=t.request().headers(),i=t.request().method();return r["Checksum-Id"]=(++this.harData.methodIndex[i]).toString(),{options:{headers:r}}}async completeOriginHeaderInterceptor(t,r,{page:i}){let s=t.request().headers();if(!s.Origin){try{let u=new URL(i.url()).origin;s.Origin=u}catch{}return{options:{headers:s}}}}};o(Qf,"RouteInterceptors");var Ru=Qf;var td=class td{constructor(t={},r={}){this.browserConfig={devtools:!1,executablePath:process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH??void 0};this.options={fullScreenResolution:!1,defaultTimeout:3e4,defaultNavigationTimeout:3e4,disableWebSecurity:!0};this.navigationPromise={};this.contextClosePromise=void 0;this.eventListeners=[];this.lastSnapshot={selector:void 0,eventCode:void 0};this.snapshotTimeout=3e4;this.cacheScript=!1;this.pagesCounter=0;this.pagesIndexToGuid={};this.onRequestFinished=o(async t=>{try{let r=await t.response();if(!r.ok())return;let i=t.resourceType(),s=t.url(),u=o(async()=>{try{return await r.text()}catch{try{return await(await fetch(s)).text()}catch{return}}},"getBody");if(["document","script","stylesheet"].includes(i))try{let c=await u();if(!c)return;let f={url:s,source:c,type:i};await this.forEachEventListener(v=>{var p;return(p=v.onWebDriverResourceLoaded)==null?void 0:p.call(v,f)})}catch(c){console.error("[WebDriver] requestfinished event handler error",i,s,c)}}catch(r){console.error("[WebDriver] requestfinished event handler error",r)}},"onRequestFinished");this.onPage=o(async t=>{try{await(t==null?void 0:t.route("**/*",async(r,i)=>this.routeInterceptor.intercept(r,i,{page:t})))}catch(r){console.error("[WebDriver] onPage error",r)}},"onPage");this.onFrameNavigated=o(async t=>{let r=t.page();if(r.mainFrame()!==t)return;let i=o(async s=>{await this.forEachEventListener(u=>{var c;return(c=u.onWebDriverPageNavigated)==null?void 0:c.call(u,r,r.url(),s)})},"notifyFrameNavigated");await i(!1),this.navigationPromise[this.getGuid(r)]=new Promise(async s=>{await this.loadScript(r),await i(!0),s()})},"onFrameNavigated");this.navigatingPages={};this.tracing=!1;this.tracingChunk=!1;this.chunkIndex=0;var i;if(this.options={...this.options,...t},this.browserConfig={...this.browserConfig,...r},this.browserConfig.args||(this.browserConfig.args=[]),this.options.disableWebSecurity&&this.browserConfig.args.push("--disable-web-security"),this.browserConfig.args.push("--disable-site-isolation-trials"),this.browserConfig.args.push("--allow-running-insecure-content"),this.options.forceHeadless&&(this.browserConfig.headless=!0,this.browserConfig.devtools=!1),this.options.useProxy)if((i=this.options.webProxy)!=null&&i.server){console.log("[WebDriver] using proxy");let{server:s,username:u,password:c}=this.options.webProxy;this.browserConfig.proxy={server:s,username:u,password:c},this.browserConfig.args.push("--proxy-bypass-list=localhost,127.0.0.1")}else console.error("[WebDriver] useProxy=true but proxy not configured");this.routeInterceptor=new Ru({completeOriginHeader:this.options.completeOriginHeader,recordHar:this.options.recordHAR})}setOnScriptLoad(t){this.onScriptLoad=t}async prepare({storageState:t}={}){if(await this.shutdown(),this.options.useStealth){let i=require("puppeteer-extra-plugin-stealth");ed.chromium.use(i()),this.browser=await ed.chromium.launch(this.browserConfig)}else this.browser=await Co.chromium.launch(this.browserConfig);let r={};return r.bypassCSP=!0,r.ignoreHTTPSErrors=!0,r.baseURL=this.options.baseURL,this.options.timezoneId&&(r.timezoneId=this.options.timezoneId),this.options.fullScreenResolution&&(r.viewport={width:1280,height:720}),t&&(r.storageState=t),this.context=await this.browser.newContext(r),this.options.defaultTimeout&&this.context.setDefaultTimeout(this.options.defaultTimeout),this.options.defaultNavigationTimeout&&this.context.setDefaultNavigationTimeout(this.options.defaultNavigationTimeout),this.pageInjectedScriptOptions=this.getPageInjectedScriptOptions(),this.context.on("page",i=>{this.onPage(i),this.onFrameNavigated(i.mainFrame()),i.on("framenavigated",this.onFrameNavigated)}),this.context.on("close",async()=>{this.contextClosePromise=this.forEachEventListener(i=>{var s;return(s=i.onWebDriverContextClose)==null?void 0:s.call(i)})}),this.activePage=await this.context.newPage(),this.originalPage=this.activePage,this.options.trackLoadedResources&&this.page.on("requestfinished",this.onRequestFinished),this.options.useCDPSession&&(this.cdpSession=await this.context.newCDPSession(this.page)),!0}getGuid(t){return t._guid}switchActivePage(t){let r=this.context.pages().find(i=>this.getGuid(i)===t);return!r||r.isClosed()?(console.error(`[WebDriver] Page with guid ${t} not found or has been closed.`),!1):(this.previousPage=this.activePage,this.activePage=r,!0)}getDefaultTimeout(){return this.options.defaultTimeout}getDefaultNavigationTimeout(){return this.options.defaultNavigationTimeout}async addHARMockAPIRecordings(t){if(!this.activePage){console.warn("[addHARMockAPIRecordings] Active page is not set, skipping HAR recording.");return}await this.activePage.routeFromHAR(t,{url:/^(?!.*\.(js|mjs|ts|jsx|tsx|css|jpg|jpeg|png|gif|svg|webp|heif|heic|raw|cr2|nef|arw|bmp|tiff|tif|ico|woff|woff2|ttf|otf|doc|docx|pdf|ws|wasm|mp3|wav|aac|flac|mp4|avi|mov|wmv|flv|zip|rar|7z|tar\.gz|xml|html|py|java|cpp|xls|xlsx|ppt|pptx|gif)$)/i,update:!0,updateMode:"minimal"})}forEachEventListener(t){return Promise.all(this.eventListeners.map(async r=>{try{await t(r)}catch(i){console.log("WebDriver/forEachEventListener exception",i)}}))}getPageInjectedScriptOptions(){switch(this.options.scriptSource){case"file":return this.options.scriptFile?{path:(0,Ay.join)(process.cwd(),this.options.scriptFile)}:void 0;case"url":return this.options.scriptURL?{url:this.options.scriptURL}:void 0;default:return}}registerEventListener(t){this.eventListeners.push(t)}async loadScript(t,{retriesLeft:r=3,retryWaitMS:i=2e3}={}){var c;if(!this.pageInjectedScriptOptions){console.warn("[WebDriver] Script options not set, skipping script load");return}if(t.isClosed())return;try{if(await t.waitForFunction(()=>!!window.checksum,void 0,{timeout:1e3}))return}catch{}if(t.isClosed())return;try{await t.addScriptTag(this.pageInjectedScriptOptions)}catch(f){if(r>0)return console.warn(`[WebDriver] Failed to add script, trying again in ${i/1e3} seconds, ${r-1} retries left.`,f),await pe(i),this.loadScript(t,{retriesLeft:r-1,retryWaitMS:i});throw f}let s=this.getGuid(t),u=Date.now().toString(36)+Math.random().toString(36).substr(2);if(this.navigatingPages[s]=u,this.options.scriptInitWait&&(console.log(`Waiting ${this.options.scriptInitWait}[ms] before onScriptLoad...`),await pe(this.options.scriptInitWait),console.log("Done waiting before onScriptLoad")),!t.isClosed()){if(this.navigatingPages[s]&&this.navigatingPages[s]!==u)return console.log("Page navigated again, waiting on new promise..."),this.navigationPromise[s];try{await((c=this.onScriptLoad)==null?void 0:c.call(this,t))}catch(f){console.error("[WebDriver] onScriptLoad error",f)}}}async getScript(){async function t(r){let{exec:i}=require("child_process");return new Promise((s,u)=>{i(r,c=>{c?(console.log("error executing cmd, ",c),u(c)):s()})})}switch(o(t,"execCmd"),this.options.scriptSource){case"file":return this.options.scriptFile;case"url":if(this.cacheScript)return this.options.scriptFile;try{return await t(`curl -o ${this.options.scriptFile} '${this.options.scriptURL}'`),this.options.scriptFile}catch(r){console.log("[web-driver] Failed fetching frontend script",r)}break}}async startJSCoverageTracking(){return await this.page.coverage.startJSCoverage(),[];return await this.cdpSession.send("Debugger.enable"),await this.cdpSession.send("Profiler.enable"),await this.cdpSession.send("Profiler.startPreciseCoverage",{callCount:!1,detailed:!0}),this.getCurrentJSCoverage()}stopJSCoverageTracking(){return this.page.coverage.stopJSCoverage()}async getCurrentJSCoverage(){let t=await this.page.coverage.stopJSCoverage();return await this.page.coverage.startJSCoverage(),t;return(await this.cdpSession.send("Profiler.takePreciseCoverage")).result}async startCSSCoverageTracking(){return await this.cdpSession.send("DOM.enable"),await this.cdpSession.send("CSS.enable"),await this.cdpSession.send("CSS.startRuleUsageTracking"),this.getCurrentCSSCoverage()}async getCurrentCSSCoverage(){return(await this.cdpSession.send("CSS.takeCoverageDelta")).coverage}getCDPSession(){return this.cdpSession}async navigate(t){return this.page.goto(t)}async setViewportSize(t,r){return this.page.setViewportSize({width:t,height:r})}async getStorageState(){return this.page.context().storageState()}async shutdown(){try{this.page&&(await this.page.close(),this.activePage=void 0),this.context&&(await this.context.close(),this.context=void 0),this.browser&&(await this.browser.close(),this.browser=void 0)}catch(t){console.warn("[WebDriver] shutdown error",t)}}async wrapWithBrowserLogs(t,{disabled:r=!1,onErrorOnly:i=!1}={}){if(r)return t();let s=[],u=o(v=>{s.push(v.text())},"log");this.page.on("console",u);let c,f;try{f=await t()}catch(v){c=v}if(this.page.off("console",u),(!i||c)&&console.log("browser console messages:",s),c)throw c;return f}async takeElementSnapshot(t,r,i={},s={}){if(t===this.lastSnapshot.selector&&r===this.lastSnapshot.eventCode)return{};if(!t)return{};try{let{snapshot:u,elementLocator:c}=await this.takeSnapshot(t,s,{frameLocatorSelector:i.frameLocatorSelector});return this.lastSnapshot={selector:t,eventCode:r},{snapshot:u,elementLocator:c}}catch(u){return console.error("takeElementSnapshot error",u),{}}}getScreenshotTimeout(t=!1){return t?this.snapshotTimeout:this.snapshotTimeout+5e3}async takePageSnapshot(t){let r=this.page.screenshot({...t,timeout:this.getScreenshotTimeout()});return await Promise.race([r,pe(this.getScreenshotTimeout(!0))])}async takeSnapshot(t,r,{frameLocatorSelector:i}={}){let s=i?this.page.frameLocator(i).locator(t):this.page.locator(t),u=s.screenshot({...r,timeout:this.getScreenshotTimeout()});return{snapshot:await Promise.race([u,pe(this.getScreenshotTimeout(!0))]),elementLocator:s}}async getCurrentURL(){return this.page.url()}async getClientScreenResolution(){return await this.page.evaluate(async()=>({width:window.screen.width,height:window.screen.height}))}async awaitContextClose(){return this.contextClosePromise||await pe(100),this.contextClosePromise}get page(){return this.activePage}getPage(){return this.activePage}startPlaywrightTrace(){return this.tracing=!0,this.context.tracing.start({name:"trace",screenshots:!0,snapshots:!0})}startPlaywrightTraceChunk(){return this.tracingChunk=!0,this.context.tracing.startChunk({name:`trace-chunk-${this.chunkIndex}`})}stopPlaywrightTraceChunk(t){return this.tracingChunk=!1,this.context.tracing.stopChunk({path:`${t.replace(".zip",`.${this.chunkIndex++}.zip`)}`})}stopPlaywrightTrace(t){return this.tracing=!1,this.context.tracing.stop({path:t})}isTracing(){return this.tracing}isTracingChunk(){return this.tracingChunk}};o(td,"WebDriver");var Iu=td;var uP={useCDPSession:!0,trackLoadedResources:!0},rd=class rd extends Iu{constructor(r={},i={devtools:!0},s={}){super({...uP,...r},i);this.settings={frontendAppSpecificRules:void 0,initTestGenerator:!0,frontendTestGenerationConfig:void 0,useTimeMachine:!1};this.initTestGenerator=o(async r=>{let i={assertionGenerator:!0,sessionRecorder:!0};r===this.timeMachinePage&&(i.assertionGenerator=!1,i.sessionRecorder=!1);try{return await r.waitForFunction(()=>{var s;return!!((s=window.checksum)!=null&&s.testGenerator)}),r.evaluate(async({appSpecificRules:s,config:u,initModules:c})=>{window.checksum.testGenerator.init(s,u,c),s.hasGoals&&await window.checksum.goalTracker.init()},{appSpecificRules:this.settings.frontendAppSpecificRules,config:this.getFrontendTestGenerationConfig(),initModules:i})}catch(s){console.log("initTestGenerator exception",s)}},"initTestGenerator");this.settings={...this.settings,...s},this.settings.initTestGenerator&&this.setOnScriptLoad(this.initTestGenerator)}async prepare(r={}){let i=await super.prepare(r);return this.settings.loadScriptOnPrepare&&await this.loadScript(this.page),await this.page.addInitScript(()=>{window.sessionStorage.setItem("checksumai:disable","true")}),this.settings.useTimeMachine&&(this.timeMachinePage=await this.context.newPage(),await this.page.bringToFront(),await this.loadScript(this.timeMachinePage),await this.timeMachinePage.evaluate(()=>window.checksum.timeMachine.start({firstEventTimestamp:Date.now()}))),i}getTimeMachinePage(){return this.timeMachinePage}getFrontendTestGenerationConfig(){return this.settings.frontendTestGenerationConfig}async getBestMatchingElementSimilarityScore(r){return this.evaluateWithChecksum(async i=>await window.checksum.testGenerator.getBestMatchingElementSimilarityScore(i),r)}async getInteractableElements(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getInteractableElements())}async getAllInteractableElementsForLastSelectQuery(){return this.evaluateWithChecksum(async()=>await window.checksum.testGenerator.getAllInteractableElementsForLastSelectQuery())}async evaluateWithChecksum(r,i){this.navigationPromise[this.getGuid(this.page)]&&await this.navigationPromise[this.getGuid(this.page)];try{return this.page.evaluate(r,i)}catch(s){throw console.error("evaluateWithChecksum error",s,r.toString()),s}}async overlayInteractableElementsWithChecksumId(r){return this.page.evaluate(i=>window.checksum.testGenerator.overlayInteractableElementsWithChecksumId(i),r)}async postRRwebEvents(r){return this.page.evaluate(i=>window.checksum.testGenerator.postRRwebEvents(i),r)}async getRRwebEvents(r=0){return this.evaluateWithChecksum(async({index:i})=>window.checksum.testGenerator.getRRwebEvents(i),{index:r})}async getGoals(){return await this.evaluateWithChecksum(async()=>window.checksum.goalTracker.getGoals())}async takeElementSnapshot(r,i,s={},u={}){try{let{snapshot:c,elementLocator:f}=await super.takeElementSnapshot(r,i,s);if(!c||!s.takeBodyScreenshot)return c?{snapshot:c}:{};await this.highlightElementByLocator(f,s.mousePosition);let v=await this.takePageSnapshot(u);return await this.clearHighlights(),{snapshot:c,bodySnapshot:v}}catch(c){return console.error("[ChecksumWebDriver] takeElementSnapshot error",c),{}}}async highlightElementByLocator(r,i,s="20px solid rgba(255,0,0,1)"){return this.evaluateWithChecksum(async([u,c,f])=>{window.checksum.testGenerator.highlightElement(u,{highlightStyle:{outline:c},mousePosition:f})},[await r.elementHandle(),s,i])}async clearHighlights(){return this.evaluateWithChecksum(async()=>window.checksum.testGenerator.clearHighlights())}async getInspectedElementSelectionResultByRRwebId(r,i={fromTimeMachine:!1}){return await(i.fromTimeMachine?this.getTimeMachinePage().evaluate.bind(this.getTimeMachinePage()):this.evaluateWithChecksum.bind(this))(([u,c])=>window.checksum.testGenerator.getInspectedElementSelectionResultByRRwebId(u,c),[parseInt(r,10),i])}};o(rd,"ChecksumWebDriver");var Vi=rd;var nd=class nd{constructor(t,r={},i=!0){this.requests=[];this.watcherConfig={minimumWaitTime:250,maximumWaitTime:1e4,followingRequestsWaitTime:250};this.resolved=!0;this.hasMinimumWaitTimePassed=!1;this.useLog=!1;this.logStack=[];this.resolve=o(()=>{this.resolved||(this.resolved=!0,clearTimeout(this.minimumWaitTimer),clearTimeout(this.maximumWaitTimer),clearTimeout(this.followingRequestWaitTimeoutId),this.loadResolve({totalTime:Date.now()-this.startTS,logs:this.logStack,pendingRequests:this.requests.length,totalRequests:this.observedRequestsCount}))},"resolve");this.watcherConfig={...this.watcherConfig,...r},this.initListeners(t),this.useLog=i}initListeners(t){t.on("request",r=>{var i;this.hasMinimumWaitTimePassed||(i=this.watcherConfig.whitelist)!=null&&i.length&&!this.watcherConfig.whitelist.some(s=>s.test(r.url()))||(this.useLog&&this.logStack.push(`${r.method()} ${r.url().substring(0,60)}`),this.requests.push(r),this.observedRequestsCount+=1)}),t.on("response",r=>{this.requests=this.requests.filter(i=>i!==r.request()),this.hasMinimumWaitTimePassed&&(this.requests.length||(clearTimeout(this.followingRequestWaitTimeoutId),this.followingRequestWaitTimeoutId=setTimeout(()=>{this.requests.length||this.resolve()},this.watcherConfig.followingRequestsWaitTime)))})}async wait(){return new Promise(t=>{this.loadResolve=t,this.resolved=!1,this.minimumWaitTimer=setTimeout(()=>{this.hasMinimumWaitTimePassed=!0,this.requests.length||this.resolve()},this.watcherConfig.minimumWaitTime),this.maximumWaitTimer=setTimeout(this.resolve,this.watcherConfig.maximumWaitTime)})}startListening(){this.requests=[],this.startTS=Date.now(),this.hasMinimumWaitTimePassed=!1,this.observedRequestsCount=0,this.useLog&&(this.logStack=[])}};o(nd,"NetworkWatcher");var Yi=nd;var Pu=o(e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p","isUpKey"),id=o(e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n","isDownKey");var Lu=o(e=>e.name==="backspace","isBackspaceKey"),Ty=o(e=>"123456789".includes(e.name),"isNumberKey"),Mu=o(e=>e.name==="enter"||e.name==="return","isEnterKey");var ad=class ad extends Error{name="CancelPromptError";message="Prompt was canceled"};o(ad,"CancelPromptError");var Ou=ad,od=class od extends Error{name="ExitPromptError"};o(od,"ExitPromptError");var Bu=od,sd=class sd extends Error{name="HookError"};o(sd,"HookError");var Uu=sd,ud=class ud extends Error{name="ValidationError"};o(ud,"ValidationError");var Ji=ud;var dd=require("async_hooks");var Nu=require("async_hooks");var Ry=new Nu.AsyncLocalStorage;function lP(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}o(lP,"createStore");function Iy(e,t){let r=lP(e);return Ry.run(r,()=>{function i(s){r.handleChange=()=>{r.index=0,s()},r.handleChange()}o(i,"cycle"),t(i)})}o(Iy,"withHooks");function jn(){let e=Ry.getStore();if(!e)throw new Uu("[Inquirer] Hook functions can only be called from within a prompt");return e}o(jn,"getStore");function ld(){return jn().rl}o(ld,"readline");function cd(e){let t=o((...r)=>{let i=jn(),s=!1,u=i.handleChange;i.handleChange=()=>{s=!0};let c=e(...r);return s&&u(),i.handleChange=u,c},"wrapped");return Nu.AsyncResource.bind(t)}o(cd,"withUpdates");function Xi(e){let t=jn(),{index:r}=t,i={get(){return t.hooks[r]},set(u){t.hooks[r]=u},initialized:r in t.hooks},s=e(i);return t.index++,s}o(Xi,"withPointer");function Py(){jn().handleChange()}o(Py,"handleChange");var xo={queue(e){let t=jn(),{index:r}=t;t.hooksEffect.push(()=>{var s,u;(u=(s=t.hooksCleanup)[r])==null||u.call(s);let i=e(ld());if(i!=null&&typeof i!="function")throw new Ji("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[r]=i})},run(){let e=jn();cd(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){let e=jn();e.hooksCleanup.forEach(t=>{t==null||t()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function pt(e){return Xi(t=>{let r=o(s=>{t.get()!==s&&(t.set(s),Py())},"setFn");if(t.initialized)return[t.get(),r];let i=typeof e=="function"?e():e;return t.set(i),[i,r]})}o(pt,"useState");function Zn(e,t){Xi(r=>{let i=r.get();(!Array.isArray(i)||t.some((u,c)=>!Object.is(u,i[c])))&&xo.queue(e),r.set(t)})}o(Zn,"useEffect");var nr=Me(qu(),1),fd=Me(Wy(),1);var qy={prefix:nr.default.green("?"),spinner:{interval:fd.default.dots.interval,frames:fd.default.dots.frames.map(e=>nr.default.yellow(e))},style:{answer:nr.default.cyan,message:nr.default.bold,error:o(e=>nr.default.red(`> ${e}`),"error"),defaultAnswer:o(e=>nr.default.dim(`(${e})`),"defaultAnswer"),help:nr.default.dim,highlight:nr.default.cyan,key:o(e=>nr.default.cyan(nr.default.bold(`<${e}>`)),"key")}};function Hy(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}o(Hy,"isPlainObject");function zy(...e){let t={};for(let r of e)for(let[i,s]of Object.entries(r)){let u=t[i];t[i]=Hy(u)&&Hy(s)?zy(u,s):s}return t}o(zy,"deepMerge");function Kn(...e){let t=[qy,...e.filter(r=>r!=null)];return zy(...t)}o(Kn,"makeTheme");function ko({isLoading:e=!1,theme:t}){let[r,i]=pt(!1),[s,u]=pt(0),{prefix:c,spinner:f}=Kn(t);return Zn(()=>{if(e){let v,p=-1,g=setTimeout(dd.AsyncResource.bind(()=>{i(!0),v=setInterval(dd.AsyncResource.bind(()=>{p=p+1,u(p%f.frames.length)}),f.interval)}),300);return()=>{clearTimeout(g),clearInterval(v)}}else i(!1)},[e]),r?f.frames[s]:c}o(ko,"usePrefix");function zu(e,t){return Xi(r=>{let i=r.get();if(!i||i.dependencies.length!==t.length||i.dependencies.some((s,u)=>s!==t[u])){let s=e();return r.set({value:s,dependencies:t}),s}return i.value})}o(zu,"useMemo");function mn(e){return pt({current:e})[0]}o(mn,"useRef");function So(e){let t=mn(e);t.current=e,Zn(r=>{let i=!1,s=cd((u,c)=>{i||t.current(c,r)});return r.input.on("keypress",s),()=>{i=!0,r.input.removeListener("keypress",s)}},[])}o(So,"useKeypress");var Db=Me($y(),1),wb=Me(vb(),1);function Ao(e,t){return e.split(`
|
|
54
|
+
`).flatMap(r=>(0,wb.default)(r,t,{trim:!1,hard:!0}).split(`
|
|
36
55
|
`).map(i=>i.trimEnd())).join(`
|
|
37
|
-
`)}o(
|
|
38
|
-
`)}o(
|
|
39
|
-
`)}o(
|
|
40
|
-
`).length,"height"),
|
|
41
|
-
`).pop()??"","lastLine");function
|
|
42
|
-
`);let
|
|
43
|
-
`+r:""),
|
|
44
|
-
`,r+=wt.default.cursorShow,this.write(r),this.rl.close()}};o(Cl,"ScreenManager");var Li=Cl;var kl=class kl extends Promise{static withResolver(){let t,r;return{promise:new Promise((n,a)=>{t=n,r=a}),resolve:t,reject:r}}};o(kl,"PromisePolyfill");var fa=kl;function Bi(e){return o((r,i={})=>{let{input:n=process.stdin,signal:a}=i,s=new Set,l=new Np.default;l.pipe(i.output??process.stdout);let h=Op.createInterface({terminal:!0,input:n,output:l}),u=new Li(h),{promise:c,resolve:f,reject:d}=fa.withResolver(),p=o(()=>d(new Jn),"cancel");if(a){let v=o(()=>d(new Kn({cause:a.reason})),"abort");if(a.aborted)return v(),Object.assign(c,{cancel:p});a.addEventListener("abort",v),s.add(()=>a.removeEventListener("abort",v))}s.add(Rp((v,y)=>{d(new Yn(`User force closed the prompt with ${v} ${y}`))}));let C=o(()=>u.checkCursorPos(),"checkCursorPos");return h.input.on("keypress",C),s.add(()=>h.input.removeListener("keypress",C)),Nd(h,v=>{let y=Up.AsyncResource.bind(()=>Wt.clearAll());return h.on("close",y),s.add(()=>h.removeListener("close",y)),v(()=>{try{let m=e(r,w=>{setImmediate(()=>f(w))}),[b,k]=typeof m=="string"?[m]:m;u.render(b,k),Wt.run()}catch(m){d(m)}}),Object.assign(c.then(m=>(Wt.clearAll(),m),m=>{throw Wt.clearAll(),m}).finally(()=>{s.forEach(m=>m()),u.done({clearContent:!!(i!=null&&i.clearPromptOnDone)}),l.end()}).then(()=>c),{cancel:p})})},"prompt")}o(Bi,"createPrompt");var Wp=X(ta(),1);var xl=class xl{separator=Wp.default.dim(Array.from({length:15}).join(Ar.line));type="separator";constructor(t){t&&(this.separator=t)}static isSeparator(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="separator")}};o(xl,"Separator");var bt=xl;var G=Bi((e,t)=>{let{required:r,validate:i=o(()=>!0,"validate")}=e,n=jt(e.theme),[a,s]=fe("pending"),[l="",h]=fe(e.default),[u,c]=fe(),[f,d]=fe(""),C=_i({isLoading:a==="loading",theme:n});Ti(async(k,w)=>{if(a==="pending")if(Zn(k)){let g=f||l;s("loading");let E=r&&!g?"You must provide a value":await i(g);E===!0?(d(g),s("done"),t(g)):(w.write(f),c(E||"You must provide a valid value"),s("pending"))}else Vn(k)&&!f?h(void 0):k.name==="tab"&&!f?(h(void 0),w.clearLine(0),w.write(l),d(l)):(d(w.line),c(void 0))});let v=n.style.message(e.message),y=f;typeof e.transformer=="function"?y=e.transformer(f,{isFinal:a==="done"}):a==="done"&&(y=n.style.answer(f));let m;l&&a!=="done"&&!f&&(m=n.style.defaultAnswer(l));let b="";return u&&(b=n.style.error(u)),[[C,v,m,y].filter(k=>k!==void 0).join(" "),b]});var Sl=X(ta(),1);var qp=X(bl(),1);var lw={icon:{cursor:Ar.pointer},style:{disabled:o(e=>Sl.default.dim(`- ${e}`),"disabled"),description:o(e=>Sl.default.cyan(e),"description")},helpMode:"auto"};function Ur(e){return!bt.isSeparator(e)&&!e.disabled}o(Ur,"isSelectable");function uw(e){return e.map(t=>{if(bt.isSeparator(t))return t;if(typeof t=="string")return{value:t,name:t,short:t,disabled:!1};let r=t.name??String(t.value);return{value:t.value,name:r,description:t.description,short:t.short??r,disabled:t.disabled??!1}})}o(uw,"normalizeChoices");var de=Bi((e,t)=>{let{loop:r=!0,pageSize:i=7}=e,n=vt(!0),a=jt(lw,e.theme),s=_i({theme:a}),[l,h]=fe("pending"),u=vt(),c=Ai(()=>uw(e.choices),[e.choices]),f=Ai(()=>{let g=c.findIndex(Ur),E=c.findLastIndex(Ur);if(g<0)throw new Fr("[select prompt] No selectable choices. All choices are disabled.");return{first:g,last:E}},[c]),d=Ai(()=>"default"in e?c.findIndex(g=>Ur(g)&&g.value===e.default):-1,[e.default,c]),[p,C]=fe(d===-1?f.first:d),v=c[p];Ti((g,E)=>{if(clearTimeout(u.current),Zn(g))h("done"),t(v.value);else if($n(g)||Hs(g)){if(E.clearLine(0),r||$n(g)&&p!==f.first||Hs(g)&&p!==f.last){let _=$n(g)?-1:1,x=p;do x=(x+_+c.length)%c.length;while(!Ur(c[x]));C(x)}}else if(Od(g)){E.clearLine(0);let _=Number(g.name)-1,x=c[_];x!=null&&Ur(x)&&C(_)}else if(Vn(g))E.clearLine(0);else{let _=E.line.toLowerCase(),x=c.findIndex(A=>bt.isSeparator(A)||!Ur(A)?!1:A.name.toLowerCase().startsWith(_));x>=0&&C(x),u.current=setTimeout(()=>{E.clearLine(0)},700)}}),qt(()=>()=>{clearTimeout(u.current)},[]);let y=a.style.message(e.message),m="",b="";(a.helpMode==="always"||a.helpMode==="auto"&&n.current)&&(n.current=!1,c.length>i?b=`
|
|
45
|
-
${
|
|
46
|
-
${
|
|
47
|
-
${
|
|
56
|
+
`)}o(Ao,"breakLines");function Zu(){return(0,Db.default)({defaultWidth:80,output:ld().output})}o(Zu,"readlineWidth");function LP(e,t){return Ao(e,t).split(`
|
|
57
|
+
`)}o(LP,"split");function MP(e,t){let r=t.length,i=(e%r+r)%r;return[...t.slice(i),...t.slice(0,i)]}o(MP,"rotate");function yb({items:e,width:t,renderItem:r,active:i,position:s,pageSize:u}){let c=e.map((L,P)=>({item:L,index:P,isActive:P===i})),f=MP(i-s,c).slice(0,u),v=o(L=>f[L]==null?[]:LP(r(f[L]),t),"renderItemAt"),p=Array.from({length:u}),g=v(s).slice(0,u),b=s+g.length<=u?s:u-g.length;p.splice(b,g.length,...g);let x=b+g.length,S=s+1;for(;x<u&&S<f.length;){for(let L of v(S))if(p[x++]=L,x>=u)break;S++}for(x=b-1,S=s-1;x>=0&&S>=0;){for(let L of v(S).reverse())if(p[x--]=L,x<0)break;S--}return p.filter(L=>typeof L=="string")}o(yb,"lines");function bb({active:e,pageSize:t,total:r}){let i=Math.floor(t/2);return r<=t||e<i?e:e>=r-i?e+t-r:i}o(bb,"finite");function _b({active:e,lastActive:t,total:r,pageSize:i,pointer:s}){return r<=i?e:t<e&&e-t<i?Math.min(Math.floor(i/2),s+e-t):s}o(_b,"infinite");function bd({items:e,active:t,renderItem:r,pageSize:i,loop:s=!0}){let u=mn({position:0,lastActive:0}),c=s?_b({active:t,lastActive:u.current.lastActive,total:e.length,pageSize:i,pointer:u.current.position}):bb({active:t,total:e.length,pageSize:i});return u.current.position=c,u.current.lastActive=t,yb({items:e,width:Zu(),renderItem:r,active:t,position:c,pageSize:i}).join(`
|
|
58
|
+
`)}o(bd,"usePagination");var Ib=Me(require("readline"),1),Pb=require("async_hooks");var _d=class _d extends Promise{cancel=o(()=>{},"cancel")};o(_d,"CancelablePromise");var Ku=_d;var Lb=Me(xb(),1);var Vn=[];Vn.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Vn.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Vn.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Ju=o(e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function","processOk"),kd=Symbol.for("signal-exit emitter"),Sd=globalThis,BP=Object.defineProperty.bind(Object),Rd=class Rd{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Sd[kd])return Sd[kd];BP(Sd,kd,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,r){this.listeners[t].push(r)}removeListener(t,r){let i=this.listeners[t],s=i.indexOf(r);s!==-1&&(s===0&&i.length===1?i.length=0:i.splice(s,1))}emit(t,r,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let s=!1;for(let u of this.listeners[t])s=u(r,i)===!0||s;return t==="exit"&&(s=this.emit("afterExit",r,i)||s),s}};o(Rd,"Emitter");var Ed=Rd,Id=class Id{};o(Id,"SignalExitBase");var Xu=Id,UP=o(e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),"signalExitWrap"),Pd=class Pd extends Xu{onExit(){return()=>{}}load(){}unload(){}};o(Pd,"SignalExitFallback");var Fd=Pd,Qu,St,Re,na,ia,Yn,vn,aa,kb,Sb,Ld=class Ld extends Xu{constructor(r){super();Mt(this,aa);Mt(this,Qu,Td.platform==="win32"?"SIGINT":"SIGHUP");Mt(this,St,new Ed);Mt(this,Re);Mt(this,na);Mt(this,ia);Mt(this,Yn,{});Mt(this,vn,!1);Pr(this,Re,r),Pr(this,Yn,{});for(let i of Vn)ee(this,Yn)[i]=()=>{let s=ee(this,Re).listeners(i),{count:u}=ee(this,St),c=r;if(typeof c.__signal_exit_emitter__=="object"&&typeof c.__signal_exit_emitter__.count=="number"&&(u+=c.__signal_exit_emitter__.count),s.length===u){this.unload();let f=ee(this,St).emit("exit",null,i),v=i==="SIGHUP"?ee(this,Qu):i;f||r.kill(r.pid,v)}};Pr(this,ia,r.reallyExit),Pr(this,na,r.emit)}onExit(r,i){if(!Ju(ee(this,Re)))return()=>{};ee(this,vn)===!1&&this.load();let s=i!=null&&i.alwaysLast?"afterExit":"exit";return ee(this,St).on(s,r),()=>{ee(this,St).removeListener(s,r),ee(this,St).listeners.exit.length===0&&ee(this,St).listeners.afterExit.length===0&&this.unload()}}load(){if(!ee(this,vn)){Pr(this,vn,!0),ee(this,St).count+=1;for(let r of Vn)try{let i=ee(this,Yn)[r];i&&ee(this,Re).on(r,i)}catch{}ee(this,Re).emit=(r,...i)=>hr(this,aa,Sb).call(this,r,...i),ee(this,Re).reallyExit=r=>hr(this,aa,kb).call(this,r)}}unload(){ee(this,vn)&&(Pr(this,vn,!1),Vn.forEach(r=>{let i=ee(this,Yn)[r];if(!i)throw new Error("Listener not defined for signal: "+r);try{ee(this,Re).removeListener(r,i)}catch{}}),ee(this,Re).emit=ee(this,na),ee(this,Re).reallyExit=ee(this,ia),ee(this,St).count-=1)}};Qu=new WeakMap,St=new WeakMap,Re=new WeakMap,na=new WeakMap,ia=new WeakMap,Yn=new WeakMap,vn=new WeakMap,aa=new WeakSet,kb=o(function(r){return Ju(ee(this,Re))?(ee(this,Re).exitCode=r||0,ee(this,St).emit("exit",ee(this,Re).exitCode,null),ee(this,ia).call(ee(this,Re),ee(this,Re).exitCode)):0},"#processReallyExit"),Sb=o(function(r,...i){let s=ee(this,na);if(r==="exit"&&Ju(ee(this,Re))){typeof i[0]=="number"&&(ee(this,Re).exitCode=i[0]);let u=s.call(ee(this,Re),r,...i);return ee(this,St).emit("exit",ee(this,Re).exitCode,null),u}else return s.call(ee(this,Re),r,...i)},"#processEmit"),o(Ld,"SignalExit");var Ad=Ld,Td=globalThis.process,{onExit:Eb,load:$5,unload:j5}=UP(Ju(Td)?new Ad(Td):new Fd);var Rb=Me(Gu(),1),Dn=Me(Od(),1);var Ab=o(e=>e.split(`
|
|
59
|
+
`).length,"height"),NP=o(e=>e.split(`
|
|
60
|
+
`).pop()??"","lastLine");function Tb(e){return e>0?Dn.default.cursorDown(e):""}o(Tb,"cursorDown");var Bd=class Bd{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(t){this.rl=t,this.rl=t,this.cursorPos=t.getCursorPos()}write(t){this.rl.output.unmute(),this.rl.output.write(t),this.rl.output.mute()}render(t,r=""){let i=NP(t),s=(0,Rb.default)(i),u=s;this.rl.line.length>0&&(u=u.slice(0,-this.rl.line.length)),this.rl.setPrompt(u),this.cursorPos=this.rl.getCursorPos();let c=Zu();t=Ao(t,c),r=Ao(r,c),s.length%c===0&&(t+=`
|
|
61
|
+
`);let f=t+(r?`
|
|
62
|
+
`+r:""),p=Math.floor(s.length/c)-this.cursorPos.rows+(r?Ab(r):0);p>0&&(f+=Dn.default.cursorUp(p)),f+=Dn.default.cursorTo(this.cursorPos.cols),this.write(Tb(this.extraLinesUnderPrompt)+Dn.default.eraseLines(this.height)+f),this.extraLinesUnderPrompt=p,this.height=Ab(f)}checkCursorPos(){let t=this.rl.getCursorPos();t.cols!==this.cursorPos.cols&&(this.write(Dn.default.cursorTo(t.cols)),this.cursorPos=t)}done({clearContent:t}){this.rl.setPrompt("");let r=Tb(this.extraLinesUnderPrompt);r+=t?Dn.default.eraseLines(this.height):`
|
|
63
|
+
`,r+=Dn.default.cursorShow,this.write(r),this.rl.close()}};o(Bd,"ScreenManager");var Ro=Bd;function Io(e){return o((r,i)=>{let s=(i==null?void 0:i.input)??process.stdin,u=new Lb.default;u.pipe((i==null?void 0:i.output)??process.stdout);let c=Ib.createInterface({terminal:!0,input:s,output:u}),f=new Ro(c),v=o(()=>{},"cancel"),p=new Ku((g,b)=>{Iy(c,x=>{function S(){f.checkCursorPos()}o(S,"checkCursorPos");let L=Eb((I,N)=>{U(),b(new Bu(`User force closed the prompt with ${I} ${N}`))}),P=Pb.AsyncResource.bind(()=>{try{xo.clearAll()}catch(I){b(I)}});function U(){P(),f.done({clearContent:!!(i!=null&&i.clearPromptOnDone)}),L(),c.input.removeListener("keypress",S),c.removeListener("close",P),u.end()}o(U,"onExit"),v=o(()=>{U(),b(new Ou)},"cancel");function A(I){setImmediate(()=>{U(),g(I)})}o(A,"done"),x(()=>{try{let I=e(r,A),[N,B]=typeof I=="string"?[I]:I;f.render(N,B),xo.run()}catch(I){U(),b(I)}}),c.input.on("keypress",S),c.on("close",P)})});return p.cancel=v,p},"prompt")}o(Io,"createPrompt");var Bb=Me(qu(),1);var ir=Me(require("process"),1);function WP(){return ir.default.platform!=="win32"?ir.default.env.TERM!=="linux":!!ir.default.env.WT_SESSION||!!ir.default.env.TERMINUS_SUBLIME||ir.default.env.ConEmuTask==="{cmd::Cmder}"||ir.default.env.TERM_PROGRAM==="Terminus-Sublime"||ir.default.env.TERM_PROGRAM==="vscode"||ir.default.env.TERM==="xterm-256color"||ir.default.env.TERM==="alacritty"||ir.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(WP,"isUnicodeSupported");var Mb={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Ob={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},qP={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},HP={...Mb,...Ob},zP={...Mb,...qP},GP=WP(),$P=GP?HP:zP,tl=$P,s4=Object.entries(Ob);var Ud=class Ud{separator=Bb.default.dim(Array.from({length:15}).join(tl.line));type="separator";constructor(t){t&&(this.separator=t)}static isSeparator(t){return!!(t&&t.type==="separator")}};o(Ud,"Separator");var Jn=Ud;var Ae=Io((e,t)=>{let{required:r,validate:i=o(()=>!0,"validate")}=e,s=Kn(e.theme),[u,c]=pt("pending"),[f="",v]=pt(e.default),[p,g]=pt(),[b,x]=pt(""),L=ko({isLoading:u==="loading",theme:s});So(async(N,B)=>{if(u==="pending")if(Mu(N)){let F=b||f;c("loading");let q=r&&!F?"You must provide a value":await i(F);q===!0?(x(F),c("done"),t(F)):(B.write(b),g(q||"You must provide a valid value"),c("pending"))}else Lu(N)&&!b?v(void 0):N.name==="tab"&&!b?(v(void 0),B.clearLine(0),B.write(f),x(f)):(x(B.line),g(void 0))});let P=s.style.message(e.message),U=b;typeof e.transformer=="function"?U=e.transformer(b,{isFinal:u==="done"}):u==="done"&&(U=s.style.answer(b));let A;f&&u!=="done"&&!b&&(A=s.style.defaultAnswer(f));let I="";return p&&(I=s.style.error(p)),[[L,P,A,U].filter(N=>N!==void 0).join(" "),I]});var Nd=Me(qu(),1);var Ub=Me(Od(),1);var jP={icon:{cursor:tl.pointer},style:{disabled:o(e=>Nd.default.dim(`- ${e}`),"disabled"),description:o(e=>Nd.default.cyan(e),"description")},helpMode:"auto"};function sa(e){return!Jn.isSeparator(e)&&!e.disabled}o(sa,"isSelectable");var gt=Io((e,t)=>{let{choices:r,loop:i=!0,pageSize:s=7}=e,u=mn(!0),c=Kn(jP,e.theme),f=ko({theme:c}),[v,p]=pt("pending"),g=mn(),b=zu(()=>{let F=r.findIndex(sa),q=r.findLastIndex(sa);if(F<0)throw new Ji("[select prompt] No selectable choices. All choices are disabled.");return{first:F,last:q}},[r]),x=zu(()=>"default"in e?r.findIndex(F=>sa(F)&&F.value===e.default):-1,[e.default,r]),[S,L]=pt(x===-1?b.first:x),P=r[S];So((F,q)=>{if(clearTimeout(g.current),Mu(F))p("done"),t(P.value);else if(Pu(F)||id(F)){if(q.clearLine(0),i||Pu(F)&&S!==b.first||id(F)&&S!==b.last){let G=Pu(F)?-1:1,z=S;do z=(z+G+r.length)%r.length;while(!sa(r[z]));L(z)}}else if(Ty(F)){q.clearLine(0);let G=Number(F.name)-1,z=r[G];z!=null&&sa(z)&&L(G)}else if(Lu(F))q.clearLine(0);else{let G=q.line.toLowerCase(),z=r.findIndex(J=>Jn.isSeparator(J)||!sa(J)?!1:String(J.name||J.value).toLowerCase().startsWith(G));z>=0&&L(z),g.current=setTimeout(()=>{q.clearLine(0)},700)}}),Zn(()=>()=>{clearTimeout(g.current)},[]);let U=c.style.message(e.message),A="",I="";(c.helpMode==="always"||c.helpMode==="auto"&&u.current)&&(u.current=!1,r.length>s?I=`
|
|
64
|
+
${c.style.help("(Use arrow keys to reveal more choices)")}`:A=c.style.help("(Use arrow keys)"));let N=bd({items:r,active:S,renderItem({item:F,isActive:q}){if(Jn.isSeparator(F))return` ${F.separator}`;let G=String(F.name||F.value);if(F.disabled){let fe=typeof F.disabled=="string"?F.disabled:"(disabled)";return c.style.disabled(`${G} ${fe}`)}let z=q?c.style.highlight:fe=>fe,J=q?c.icon.cursor:" ";return z(`${J} ${G}`)},pageSize:s,loop:i});if(v==="done"){let F=P.short??P.name??String(P.value);return`${f} ${U} ${c.style.answer(F)}`}let B=P.description?`
|
|
65
|
+
${c.style.description(P.description)}`:"";return`${[f,U,A].filter(Boolean).join(" ")}
|
|
66
|
+
${N}${I}${B}${Ub.default.cursorHide}`});var Wd=class Wd{constructor(t,r,i){this.webDriver=t;this.pageInteractor=r;this.callbacks=i;this.quitWaitForUserInteractions=!1}async run(t){switch(await gt({message:"What next?",choices:[{name:"Record my actions",value:"RecordManualActions"},{name:"Custom code",value:"CustomCode"},{name:"Generate assertions",value:"GenerateAssertions"},{name:"Back",value:"Back"}]})){case"RecordManualActions":await this.listenForUserInteractions(t);break;case"CustomCode":await this.getCustomCode();break;case"GenerateAssertions":await this.callbacks.generateAssertions();break;case"Back":break}}async listenForUserInteractions(t){this.quitWaitForUserInteractions=!1;let r=o(()=>{let s=Ae({message:"Waiting for user interaction [press anything to stop]...",default:void 0});return s.finally(()=>{}).then(()=>{this.quitWaitForUserInteractions=!0}).catch(()=>{}),s},"startQuit"),i=r();for(;!this.quitWaitForUserInteractions;)try{let s=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeInteractions());if(s.length){try{i.cancel()}catch{}for(let u of s)t&&u.timestamp<t||await this.vetManualAction(u);i=r()}await pe(1e3)}catch(s){console.log("error",s)}}async vetManualAction(t){let{esraMetadata:r,nodeId:i,...s}=t;console.log("Interaction:",s);let u=await Ae({message:"Thought [no thought will filter out this interaction]?",default:void 0});u&&(t.description=u,this.callbacks.onActionExecuted(t))}async getCustomCode(){let t=await Ae({message:"Provide the body of the function: async (page: Page) => { /* code */ }"});if(!t)return;let r={eventCode:"custom_code",fillValue:t};await this.pageInteractor.performAction(r),await this.vetManualAction(r)}};o(Wd,"ManualVisualTestGenerator");var rl=Wd;var nl=o(async(e,t,r={})=>{var f,v;let i=Ae({message:((f=r.makePromptMessage)==null?void 0:f.call(r,t))??`Continuing in ${t} seconds [Press enter to stop]...`},{clearPromptOnDone:!0}),s=!1;i.then(async p=>{s=!0,r.onCancelMessage&&console.log(r.onCancelMessage)}).catch(()=>{});let c=o(async()=>{if(await pe(1e3),s)return;i.cancel();let p=t-1;return p===0?(r.onContinueMessage&&console.log(r.onContinueMessage),e()):nl(e,p,r)},"timeout")();try{let p=await Promise.race([c,i]);return s?(v=r.cancelCallback)==null?void 0:v.call(r,p):p}catch{return c}},"userInterruptibleDelayedCallback");var qd=class qd{constructor(t,r,i,s,u){this.webDriver=t;this.pageInteractor=r;this.apiBaseURL=i;this.apiKey=s;this.callbacks=u;this.previousActionFailed=!1;this.currentChecksumId="0";this.run=o(async(t=[])=>{this.clear(),this.executedActions=t,await this.startSession(),await this.iterationLoop()},"run");this.iterationLoop=o(async()=>{switch(await this.iterate()){case"continue":return this.runInterruptibleNextAIStep(this.iterationLoop);case"reset":return this.runInterruptibleNextAIStep(()=>this.run(this.callbacks.getExecutedActions()));case"stop":return}},"iterationLoop");this.runInterruptibleNextAIStep=o(async t=>nl(t,5,{makePromptMessage:o(i=>`Will continue in ${i} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",onCancelMessage:"Stopping AI"}),"runInterruptibleNextAIStep")}async init(){}setStory(t){this.story=t}clear(){this.executedActions=[],this.remoteSessionId=void 0,this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.currentChecksumId="0"}async iterate(){let t="continue",{reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:s,currentChecksumId:u}=await this.webDriver.evaluateWithChecksum(async({appRules:f,currentChecksumId:v})=>window.checksum.testGenerator.reduceHTML(f,{stopFlashingElementsDetection:!0,assignChecksumIdsToAllElements:!0,initialChecksumId:v}),{appRules:{appSpecificInteractableElementsSelectors:[]},currentChecksumId:this.currentChecksumId});this.currentChecksumId=u;let c=await this.getNextAction({reducedHTML:r,flashingHTML:i,elementsForNodeInterpretation:s});if(this.isFailureAction(c))return await this.getUserThoughtForNextLLMStep(),"continue";try{let f=await this.pageInteractor.translateActionResponseToAgentPotentialAction(c),v=await this.approveAction(f);switch(await this.webDriver.clearHighlights(),v){case"ProvideGuidance":return await this.getUserThoughtForNextLLMStep(),this.iterate();case"ChangeValue":f.fillValue=await this.getValueReplacementFromUser(),t="reset";break;case"Finish":return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";case"Abort":return this.callbacks.stop(),"stop"}if(this.userThoughtForNextLLMStep=void 0,this.previousActionFailed=!1,this.isFinishAction(c))return this.callbacks.onSuccess(),this.callbacks.stop(),"stop";try{let p=new Yi(this.webDriver.page);p.startListening(),f.timestamp=Date.now(),await this.pageInteractor.performAction(f),await p.wait(),await pe(2e3),this.callbacks.onActionExecuted(f)}catch(p){this.previousActionFailed=!0,console.error(p)}}catch(f){this.previousActionFailed=!0,console.error(f)}return t}async startSession({retriesLeft:t=3}={}){let r={type:"test-generation",storyTitle:this.story.goal,storyInstructions:this.story.instructions,testId:void 0,testSuiteId:void 0,thoughtsAndActions:{previous:this.executedActions.filter(i=>!!i.description).map(i=>({thought:i.description,action:void 0}))}};try{let i=await fetch(`${this.apiBaseURL}/ai-fallback/init`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({data:r})});this.remoteSessionId=await i.text()}catch(i){if(console.error(i),await pe(2e3),t>0)return this.startSession({retriesLeft:t-1});throw i}}async approveAction(t){var u;await this.webDriver.highlightElementByLocator(this.pageInteractor.makeLocator(t.selector,t.parentFramesSelectors),t.clickOffset,"10px solid rgba(255,0,0,1)");let r=`${t.description}${(u=t.fillValue)!=null&&u.length?` with "${t.fillValue}"`:""}`;return nl(async()=>"Proceed",5,{makePromptMessage:o(c=>`Will approve action ${r} in ${c} seconds [Press enter to stop]...`,"makePromptMessage"),onContinueMessage:"Continuing with AI...",cancelCallback:o(async()=>await gt({message:`Proceed with action: "${r}"?`,choices:[{name:"Yes",value:"Proceed"},{name:"Yes, but use a different value",value:"ChangeValue"},{name:"No, I will provide guidance",value:"ProvideGuidance"},{name:"Abort (no test code will be generated)",value:"Abort"},{name:"Finish",value:"Finish"}]}),"getApproval")})}async getUserThoughtForNextLLMStep(){this.userThoughtForNextLLMStep=await Ae({message:"What should be done next?"})}async getValueReplacementFromUser(){return Ae({message:"What value should be used?"})}async getNextAction({reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i}){let s={reduction:{reducedHTML:t,flashingHTML:r,elementsForNodeInterpretation:i},currentURL:this.webDriver.page.url(),previousActionOverview:{success:!this.previousActionFailed,userCorrection:this.userThoughtForNextLLMStep}};try{return await(await fetch(`${this.apiBaseURL}/ai-fallback/iterate`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify({sessionId:this.remoteSessionId,iterationData:s})})).json()}catch(u){throw console.error(u),u}}isFailureAction(t){var r;return["failed","fail"].includes(t.thought)||["failed","fail"].includes((r=t.action)==null?void 0:r.type)}isFinishAction(t){var r;return t.thought==="finish"||((r=t.action)==null?void 0:r.type)==="finish"}};o(qd,"AIVisualTestGenerator");var il=qd;var ut=require("fs"),al=Me(require("child_process")),Ht=require("path");var Hd=class Hd{constructor(t,r=!1){this.args=t;this.debugMode=r;this.checksumApiUrl="https://api.checksum.ai";this.checksumAppUrl="https://app.checksum.ai";this.childProcesses=[];this.printError=o(t=>{console.log("\x1B[31m%s\x1B[0m",t)},"printError");["SIGINT","SIGTERM"].forEach(i=>{process.on(i,()=>{this.cleanup(),process.exit()})})}async execCmd(t,r={}){let i={...process.env,...r},s=await al.spawn(t,{env:i,shell:!0,stdio:"inherit"});return this.childProcesses.push(s),new Promise((c,f)=>{s.on("exit",v=>{v===0?c(!0):f(new Error(`Checksum failed execution with code: ${v} `)),this.childProcesses=this.childProcesses.filter(p=>p!==s)})})}async getCmdOutput(t){return new Promise(function(r,i){al.exec(t,(s,u,c)=>{if(s){i(`Error executing command: ${s.message}`);return}r(u)})})}loadChecksumData(){this.locateChecksumLibs(),this.processChecksumArguments(),this.setChecksumConfig()}async patchPlaywright(t=!1){Oe("Patching playwright",t);let r=(0,Ht.join)(__dirname,"./scripts/patch.js");(0,ut.existsSync)(r)||(r=(0,Ht.join)(__dirname,"../../../scripts/src/patch_playwright.js"));let i=`node "${r}"${t?" off":""}`;try{await this.execCmd(i,{PROJECT_ROOT:this.projectRootDirectory,RUNTIME:"true"})}catch(s){console.log("Error patching playwright",s.message)}}getPlaywrightConfigFilePath(){return(0,Ht.join)(this.checksumRoot,"playwright.config.ts")}buildVolatileConfig(){if(!this.volatileChecksumConfig)return;let t=this.getVolatileConfigPath(),r=`
|
|
48
67
|
import { RunMode, getChecksumConfig } from "@checksum-ai/runtime";
|
|
49
68
|
|
|
50
69
|
export default getChecksumConfig(${JSON.stringify(this.config,null,2)});
|
|
51
|
-
`;(0,
|
|
52
|
-
`))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};o(
|
|
53
|
-
`))}async replayAssertion(t){let r=(0,Fi.expect)(this.webDriver.page.locator(t.selector)),i=`async (expectCall) => expectCall.${t.matcher}`;await(0,eval)(i)(r)}async injectHAR(){let t={GET:0,POST:0,PUT:0,DELETE:0};try{await this.webDriver.page.routeFromHAR(this.settings.harFilePath,{url:"*/**",notFound:"fallback",update:!1});let r=this.webDriver.page._routes[0].handler;await this.webDriver.page.route("**/*",i=>{let n=i.request().headers(),a=i.request().method();n["Checksum-Id"]=(++t[a]).toString(),i.request()._applyFallbackOverrides({headers:n}),r(i)})}catch(r){console.error("Error setting up mock data",r.message)}}};o(ya,"TestGenerationReplayer");var Oi=ya;var $p=require("request"),ba=require("fs");var Ml=class Ml{constructor(t,r,i,n,a){this.apiBaseURL=t;this.apiKey=r;this.uploadTimeout=i;this.makeGetUploadUrlAPIPath=n;this.onOutstandingUpload=a}async uploadAsset(t){try{let{path:r}=t.info;if(console.log("Uploading file",r),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let n=(0,ba.statSync)(r).size,a=(0,ba.createReadStream)(r),s=oe(new Promise((l,h)=>{var c;let u=(0,$p.put)(t.uploadURL,{body:a},(f,d)=>{f&&h(f),l(d)});(c=this.onOutstandingUpload)==null||c.call(this,{request:u,size:n})}),this.uploadTimeout);s.then(l=>{if(l.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(l=>{console.log("Error uploading asset",r,l),t.error=!0}),t.response=s}catch{t.error=!0}}async getSignedURLForUpload(t){try{let r=t.info,i=await fetch(`${this.apiBaseURL}/${this.makeGetUploadUrlAPIPath(t)}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify(r)}),{url:n}=await i.json();t.uploadURL=n}catch(r){return console.log("Error getting signed URL for artifact",r),null}}};o(Ml,"TestAssetUploader");var wa=Ml;var Vp=X(Nn()),$t=require("path"),Ct=require("fs");async function Zp(e,t){let r=await(0,Ct.readdirSync)(t);await Promise.all(r.map(async i=>{let n=(0,$t.join)(t,i);if((await(0,Ct.statSync)(n)).isDirectory()){let s=e.folder(i);await Zp(s,n)}else{let s=await(0,Ct.readFileSync)(n);e.file(i,s)}}))}o(Zp,"addFolderToZip");async function Kp(e){try{let t=await(0,Vp.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});await Zp(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,$t.join)((0,$t.dirname)(e),`${(0,$t.basename)(e)}.zip`);return(0,Ct.writeFileSync)(i,r),i}catch(t){return console.error("Error creating zip:",t),null}}o(Kp,"zipFolder");var Jp=require("fs"),Yp=require("path");var Ll=!1,Bl={story:{goal:"Send email via outreach list",instructions:"Make sure to select a user from the list first"},shouldLogin:!0,environment:{name:void 0,userRole:void 0}},Ol=class Ol extends Ae{constructor(r,i=!1){super(r,i);this.checksumScriptFilePath="node_modules/@checksum-ai/runtime/checksumlib.js";this.mode="both";this.stopLoop=!1;this.completedSuccessfully=!1;this.executedActions=[];this.initTimeMachine=o(async(r=!1)=>{await this.webDriver.getTimeMachinePage().evaluate(({shouldHandleEvents:i})=>window.checksum.visualTestGenerator.init(i),{shouldHandleEvents:r})},"initTimeMachine");this.login=o(async(r=this.webDriver.page)=>{await xs({config:this.config,folder:this.checksumRoot})(r,{role:this.environment.userRole,environment:this.environment.name})},"login")}async run(){await this.init();let r=this.args.find(n=>n.startsWith("--replay"));if(r){let n=r.split("=")[1];return this.loadAndReplay(n)}let i=this.args.find(n=>n.startsWith("--upload"));if(i){let n=i.split("=")[1];return this.uploadFromFolder(n)}await this.prepare(),await this.start(),await this.backup(),await this.replay(),await this.upload()}async loadAndReplay(r){let{executedActions:i,settings:n}=this.loadFile(r),a=new Oi(i,this.login,n);await a.replay(),a.report()}async uploadFromFolder(r){this.loadFile(r),await this.upload()}loadFile(r){let i=JSON.parse((0,Jp.readFileSync)(r,"utf-8")),{executedActions:n,settings:a,testGenerationId:s}=i;return this.executedActions=n,this.testGenerationId=s,this.assetsFolderPath=(0,Yp.dirname)(r),i}async init(){await this.patchPlaywright(),this.loadChecksumData(),this.apiBaseURL=this.checksumApiUrl+"/client-api/runtime"}async prepare({createAssetsFolder:r=!0}={}){this.webDriver=this.buildWebDriver(),this.timeMachineSync=new Ci(this.webDriver,this.initTimeMachine);let i={onActionExecuted:o(n=>Array.isArray(n)?this.executedActions.push(...n):this.executedActions.push(n),"onActionExecuted"),stop:o(()=>{this.stopLoop=!0},"stop"),onSuccess:o(()=>{this.completedSuccessfully=!0},"onSuccess"),generateAssertions:o(()=>this.generateAssertions(!1),"generateAssertions"),getExecutedActions:o(()=>this.executedActions,"getExecutedActions")};this.pageInteractor=new Ot(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname}),r&&this.createTestGenerationAssetsFolders(),this.mode=await de({message:"Run mode?",choices:[{name:"AI and Manual",value:"both"},{name:"AI only",value:"ai"},{name:"Manual only",value:"manual"}]}),["manual","both"].includes(this.mode)&&(this.manualStepGenerator=new da(this.webDriver,this.pageInteractor,i)),["ai","both"].includes(this.mode)&&(this.aiStepGenerator=new ga(this.webDriver,this.pageInteractor,this.apiBaseURL,this.config.apiKey,i),await this.aiStepGenerator.init())}async start(){var i,n,a;this.story=await this.getStory(),this.aiStepGenerator&&this.aiStepGenerator.setStory(this.story),(i=this.story)!=null&&i.environment&&(this.environment=this.story.environment);let r=Ll?Bl.shouldLogin:await de({message:"Auto login?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]});if(r&&!this.environment&&(Ll?this.environment=Bl.environment:(this.environment={},this.environment.name=await G({message:"Environment name to use [optional]?"}),this.environment.name||(this.environment.name=void 0),this.environment.userRole=await G({message:"Role to login as [optional]?"}),this.environment.userRole||(this.environment.userRole=void 0))),await this.webDriver.prepare(),await this.webDriver.addHARMockAPIRecordings(this.getHarFilePath()),await this.timeMachineSync.start(),this.didLogin=!1,r)try{await this.login(),this.didLogin=!0}catch{console.error("Failed to execute login function")}if(!r||!this.didLogin||(n=this.story)!=null&&n.url){let s=(a=this.story)!=null&&a.url?this.story.url:this.config.baseURL;if(await this.webDriver.getCurrentURL()!=s){let l=new Er(this.webDriver.page);l.startListening(),await this.webDriver.navigate(s),await l.wait(),this.executedActions.push({description:"Navigate to start URL",eventCode:"navigation",fillValue:s}),await B(2e3)}}for(await this.timeMachineSync.enableEventsHandling();!this.stopLoop;)await this.iterate();console.log(this.completedSuccessfully?"Test completed successfully":"Test failed"),await this.webDriver.shutdown(),await B(2e3)}async backup(){let r={executedActions:this.executedActions,testGenerationId:this.testGenerationId,settings:{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()}};(0,Ui.writeFileSync)(`${this.assetsFolderPath}/test.json`,JSON.stringify(r,null,2))}async replay(){let r=new Oi(this.executedActions,this.login,{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()});await r.replay(),r.report()}async upload(){try{if(!this.testGenerationId){console.log("No test generation id, can't upload");return}this.testAssetUploader=new wa(this.apiBaseURL,this.config.apiKey,null,()=>`test-generation/${this.testGenerationId}/get-upload-url`);let r=o(s=>({complete:!1,error:!1,response:void 0,info:s}),"buildUploadAsset"),i=r({type:"trace",path:this.getTraceFilePath()}),n=r({type:"har",path:await Kp(this.getHarFolderPath())});await Promise.all([this.testAssetUploader.uploadAsset(i),this.testAssetUploader.uploadAsset(n)]);let a=await fetch(`${this.apiBaseURL}/test-generation/${this.testGenerationId}/completed`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:JSON.stringify({actions:this.executedActions})})}catch(r){console.error("Failed to upload test",r)}}async getStory(){if(Ll)return Bl.story;let r=await G({message:"User story id [can't upload test without it]?"});if(r){let s=await fetch(`${this.apiBaseURL}/test-generation/init/${r}`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey}}),{testGenerationId:l,title:h,steps:u,startUrl:c,userRole:f,environment:d}=await s.json();return this.testGenerationId=l,{goal:h,instructions:u,url:c,environment:{userRole:f,name:d}}}if(this.mode==="manual"&&!await de({message:"Would you like to set the user story parameters (goal, instructions, start url)?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]}))return;let i=await G({message:"Test goal?"});if(!i)throw new Error("Test goal is required");let n=await G({message:"Special instructions for the test [optional]?"}),a=await G({message:"URL to start from [optional]?"});return{goal:i,instructions:n,url:a}}async iterate(){let r=[{name:"Generate assertion",value:"GenerateAssertions"}];["manual","both"].includes(this.mode)&&r.push({name:"Manual step",value:"PerformManualAction"}),["ai","both"].includes(this.mode)&&r.push({name:"AI step",value:"PerformAIAction"}),r.push({name:"Finish",value:"Finish"}),r.push({name:"Abort (no code will be generated)",value:"Abort"});let i=await de({message:"Next step?",choices:r});try{switch(i){case"PerformManualAction":return await this.timeMachineSync.enableEventsHandling(),this.manualStepGenerator.run(this.aiIterationEndTimestamp);case"PerformAIAction":await this.timeMachineSync.disableEventsHandling(),await this.aiStepGenerator.run(this.executedActions),this.aiIterationEndTimestamp=Date.now();return;case"GenerateAssertions":return this.generateAssertions(!1);case"Finish":this.completedSuccessfully=!0,this.stopLoop=!0;break;case"Abort":this.stopLoop=!0;break}}catch(n){return console.log("Something unexpected occurred, please try again...",n),await B(2e3),this.iterate()}}async generateAssertions(r=!0){if(r&&await G({message:"Generate assertion?",default:"yes"})!=="yes")return;let i=await de({message:"Assertion for which action?",choices:this.executedActions.map((n,a)=>({name:n.description,value:a}))});await new Da(this.webDriver).run(this.executedActions,i)}buildWebDriver(){return new Sr({scriptSource:"url",scriptURL:"http://localhost:3001/index.js",scriptFile:this.checksumScriptFilePath,fullScreenResolution:!0,baseURL:this.config.baseURL},{devtools:!1,headless:!1},{useTimeMachine:!0,frontendAppSpecificRules:{},frontendTestGenerationConfig:{logPrefix:"$checksum"}})}createTestGenerationAssetsFolders(){this.assetsFolderPath=this.projectRootDirectory+`/tg-assets/${Date.now()}`,(0,Ui.mkdirSync)(this.assetsFolderPath,{recursive:!0}),(0,Ui.mkdirSync)(this.getHarFolderPath(),{recursive:!0})}getHarFolderPath(){return this.assetsFolderPath+"/har"}getHarFilePath(){return`${this.getHarFolderPath()}/har.har`}getTraceFilePath(){return`${this.assetsFolderPath}/trace.zip`}};o(Ol,"VisualTestGenerator");var Ca=Ol;var Xp=require("fs"),Qp=X(require("child_process")),Ni=require("path");var Ul=class Ul extends Ae{constructor(r,i=!1){super(r,i);this.MAX_COMPLETION_WAIT=10*60*1e3;this.TEST_RUN_MONITOR_PATH=(0,Ni.join)(__dirname,"test-run-monitor.js");this.didFail=!1;this.isolationMode=!1;this.replMode=!1;this.completeIndicators={upload:!1,tests:!1,report:!1};this.uploadProgress=0;this.replMode=r.includes("--repl")}async run(){if(this.loadChecksumData(),!await this.getSession())return;let r;try{r=await oe(this.startTestRunMonitor(this.testSession),1e4,"test run monitor timeout")}catch{console.log("Error starting test run monitor. Test results will not be available on checksum.")}this.buildVolatileConfig();let i={CHECKSUM_ROOT_FOLDER:this.checksumRoot};r&&(i.CHECKSUM_UPLOAD_AGENT_PORT=r),this.config.options.hostReports&&(i.PW_TEST_HTML_REPORT_OPEN="never"),this.testSession&&this.testSession!=="isolated-session"&&(i.CHECKSUM_TEST_SUITE_ID=this.testSession),this.replMode&&(i.CHECKSUM_REPL="true");let n=[...this.args];this.replMode&&n.push("--debug");let a=`npx playwright test --config "${this.getPlaywrightConfigFilePath()}" ${n.map(s=>`"${s}"`).join(" ")}`;await this.patchPlaywright();try{console.log(`Tests running with @checksum-ai/runtime version ${require("./package.json").version}`),this.replMode?(console.log("Running in REPL mode"),this.execCmd(a,i),await this.execCmd(`node ${__dirname}/repl.js`,i)):await this.execCmd(a,i),console.log("Tests execution finished")}catch{this.didFail=!0,console.log("Error during test execution: Failed passing test")}finally{this.isolationMode||console.log("Waiting for test files to upload to Checksum..."),this.sendReportUploadRequest(),await this.patchPlaywright(!0),this.completeIndicators.tests=!0,await this.handleCompleteMessage()}}getPlaywrightReportPath(){var n;let r=o(a=>(Z("Using report folder",a),(0,Ni.join)(a,"index.html")),"makeFilePath");if(process.env.PLAYWRIGHT_HTML_REPORT)return r(process.env.PLAYWRIGHT_HTML_REPORT);let i=(n=this.playwrightConfig)==null?void 0:n.reporter;if(i instanceof Array){let s=i.filter(l=>l instanceof Array&&l[0]==="html").find(l=>{var h;return(h=l[1])==null?void 0:h.outputFolder});if(s)return r((0,Ni.join)(this.checksumRoot,s[1].outputFolder))}return r((0,Ni.join)(this.projectRootDirectory,"playwright-report"))}sendReportUploadRequest(){let r=this.getPlaywrightReportPath();if(!(0,Xp.existsSync)(r)){console.log(`Could not find report file at ${r}`),this.completeIndicators.report=!0;return}Z("Sending report upload request",r),this.testRunMonitorProcess.stdin.write(`cli:report=${r}`)}startTestRunMonitor(r){return new Promise(i=>{console.log("Starting test run monitor"),this.testRunMonitorProcess=Qp.spawn("node",[this.TEST_RUN_MONITOR_PATH,JSON.stringify({sessionId:r,checksumApiURL:this.checksumApiUrl,apiKey:this.config.apiKey}),...this.isolationMode?["isolated"]:[]]),this.testRunMonitorProcess.stdout.on("data",n=>{let a=n.toString().trim();if(Z("[trm] "+a),!a.startsWith("monitor"))return;let[s,l]=a.substring(a.indexOf(":")+1).split("=");s==="port"?i(l):this.handleTestRunMonitorMessage(s,l)}),this.testRunMonitorProcess.on("exit",(n,a)=>{console.log(`test run monitor process exited with code ${n} and signal ${a}`)}),this.testRunMonitorProcess.stderr.on("data",n=>{this.debugMode&&console.error("[trm] Error:",n.toString())}),this.testRunMonitorProcess.on("error",n=>{console.error(`Error starting test run monitor: ${n.message}`)})})}async handleTestRunMonitorMessage(r,i){switch(Z(`Handling test run monitor message ${this.isolationMode?"(isolation mode)":""}`,r,i),r){case"complete-with-errors":console.log("Error uploading test files to Checksum"),this.sendProcessingError().then(()=>{this.completeIndicators.upload=!0});break;case"complete":this.isolationMode||console.log("Test files uploaded successfully"),this.sendUploadsComplete().then(()=>{this.completeIndicators.upload=!0});break;case"report-complete":{if(this.isolationMode){this.completeIndicators.report=!0;break}let n=i.slice(0,i.indexOf(":"))==="true",a=i.slice(i.indexOf(":")+1),s={};try{s=JSON.parse(a)}catch(l){console.log("Error parsing stats",l.message)}if(await this.sendTestRunEnd(s),this.completeIndicators.report=!0,n){let l=`Checksum report URL: ${this.checksumAppUrl}/#/test-runs/${this.testSession}`,h="*".repeat(l.length);console.log(`${h}
|
|
54
|
-
${
|
|
55
|
-
${
|
|
70
|
+
`;(0,ut.writeFileSync)(t,r)}cleanup(){this.deleteVolatileConfig(),this.childProcesses.forEach(t=>{t.kill("SIGTERM")})}async getEnvInfo(){let t={commitHash:"",branch:"branch",environment:process.env.CI?"CI":"local",name:"name",startedAt:Date.now()};try{t.commitHash=(await this.getCmdOutput("git rev-parse HEAD")).toString().trim()}catch(r){console.log("Error getting git hash",r.message)}try{t.branch=(await this.getCmdOutput("git rev-parse --abbrev-ref HEAD")).toString().trim()}catch(r){console.log("Error getting branch",r.message)}try{t.name=(await this.getCmdOutput("git log -1 --pretty=%B")).toString().trim()}catch(r){console.log("Error getting name",r.message)}return t}getVolatileConfigPath(){return(0,Ht.join)(this.checksumRoot??"","checksum.config.tmp.ts")}deleteVolatileConfig(){let t=this.getVolatileConfigPath();(0,ut.existsSync)(t)&&(0,ut.rmSync)(t)}setChecksumConfig(){this.config={...require((0,Ht.join)(this.checksumRoot,"checksum.config.ts")).default||{},...this.volatileChecksumConfig||{}},this.debugMode&&(this.config.options.printLogs=!0),this.config.apiURL&&(this.checksumApiUrl=this.config.apiURL)}processChecksumArguments(){this.deleteVolatileConfig();for(let t=0;t<this.args.length;t++){let r=this.args[t];if(r.startsWith("--checksum-config"))try{this.volatileChecksumConfig=JSON.parse(r.split("=")[1]),this.args.splice(t,1)}catch(i){console.log("Error parsing checksum config",i.message),this.volatileChecksumConfig=void 0}r==="--clidebug"&&this.args.splice(t,1),r==="--repl"&&this.args.splice(t,1)}}getChecksumRootOrigin(){return(0,Ht.join)(this.projectRootDirectory,"node_modules","@checksum-ai","runtime","checksum-root")}locateChecksumLibs(){try{this.findProjectRoot(),this.findChecksumRoot(),Oe("Project root found at",this.projectRootDirectory),Oe("Checksum root found at",this.checksumRoot)}catch(t){console.log(t.message),process.exit(1)}}findProjectRoot(){let t=process.cwd();for(let r=0;r<6;r++){let i=(0,Ht.join)(t,"node_modules","@checksum-ai","runtime");if((0,ut.existsSync)(i)){this.projectRootDirectory=t;return}if((0,Ht.parse)(t).root===t)break;t=(0,Ht.join)(t,"..")}throw new Error("Could not resolve checksum root origins")}findChecksumRoot(){let t=o(i=>{try{return(0,ut.readdirSync)(i).includes("checksum.config.ts")}catch{return!1}},"containsChecksumConfig"),r=[this.projectRootDirectory];for(;r.length;){let i=r.pop(),s=(0,ut.readdirSync)(i,{withFileTypes:!0});for(let u of s){let c=(0,Ht.join)(i,u.name),f=c;if(u.isSymbolicLink())try{let v=(0,ut.readlinkSync)(c);if(!(0,ut.lstatSync)(v).isDirectory())continue;f=v}catch{continue}else if(!u.isDirectory())continue;if(u.name===As){if(t(f)){this.checksumRoot=f;return}}else r.push(c)}}throw new Error("Could not find checksum root folder. Run `npx checksumai init` to create one.")}};o(Hd,"CLICommandBase");var zt=Hd;var Lo=require("fs");var zd=class zd{constructor(t){this.webDriver=t;this.quitListen=!1}async run(t,r){try{let i=await this.selectTime(t,r),s=await this.listenForSelection();if(!s)return;let u=await this.processAssertion(s),c=i==="before"?t[r-1]:t[r];c.assertions||(c.assertions=[]),c.assertions.push(u)}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.timeMachine.goLive()})}}async selectTime(t,r){let i=await gt({message:"Seek to time",choices:[{name:"Before action",value:"before"},{name:"After action",value:"after"}]}),s=o(()=>{var u;switch(i){case"before":return t[r].timestamp;case"after":return(u=t[r+1])==null?void 0:u.timestamp}},"getSeekTime");return await this.webDriver.getTimeMachinePage().evaluate(u=>window.checksum.timeMachine.goBack(u,{beforeTimestamp:!0}),s()),i}async listenForSelection(){this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.startInspector(!0));try{this.quitListen=!1;let r=o(()=>{let i=Ae({message:"Waiting for selection [press anything to stop]...",default:void 0});return i.finally(()=>{}).then(()=>{this.quitListen=!0}).catch(()=>{}),i},"startQuit")();for(;!this.quitListen;)try{let i=await this.webDriver.getTimeMachinePage().evaluate(()=>window.checksum.visualTestGenerator.consumeSelections());if(i.length){try{r.cancel()}catch{}return i[0]}await pe(1e3)}catch(i){console.log("error",i)}}finally{this.webDriver.getTimeMachinePage().evaluate(async()=>{await window.checksum.visualTestGenerator.stopInspector()})}}async processAssertion(t){let r={...t};console.log("Asserted element locator:",t.locator.replace("frameLocator('iframe').",""));let i=await Ae({message:"Thought [no thought will filter out this assertion]?",default:void 0});if(!i)return;let s=await Ae({message:"Override selector [no]?",default:void 0});s&&(r.selector=s,r.locator=`locator('${s}')`);let u=await Ae({message:'Matcher from https://playwright.dev/docs/test-assertions [e.g. toBeVisible(), not.toBeVisible(), toHaveText("hello"), toHaveCount(3)]?',default:void 0});if(u)return{thought:i,selected:!0,selector:r.selector,locator:r.locator,matcher:u}}};o(zd,"VisualAssertionsGenerator");var ol=zd;var we=require("fs"),$d=Me(Cu()),jd=require("stream/promises"),Wb=require("crypto"),Xn=require("path");var Gd,Zd=class Zd{constructor(t,r,i,s,u=!1){this.mode=t;this.traceDir=r;this.outputZipFilePath=i;this.frontendLogPrefix=s;this.deleteOriginalFiles=u;this.wallTimesToBeRemoved={};this.callIdsRemovals={};this.consoleLogGUIDs=[];this.numberOfLinesPerFile={};this.unarchiveFolder=(0,Wb.randomUUID)();this.resourcesFolder=(0,Xn.join)(this.unarchiveFolder,"resources");this.runningIndexes={trace:0,network:0,stacks:0};this.generationAllowedAPIName=["page.goto","page.waitForNavigation","page.waitForTimeout","locator.fill","locator.click","locator.hover","locator.check","locator.uncheck","locator.dblclick","locator.dragTo"];let{createInterface:c}=require("readline/promises");Gd=c}async process(){if(this.mode==="runtime")return!1;try{if(!(0,we.existsSync)(this.traceDir))return!1;let r=(0,we.readdirSync)(this.traceDir).filter(i=>i.endsWith(".zip")).sort((i,s)=>{let u=o(v=>{try{let p=v.split(".");return parseInt(p[p.length-2])}catch{return 0}},"getIndex"),c=u(i),f=u(s);return c-f});if(!r.length)return!1;(0,we.mkdirSync)(this.unarchiveFolder),(0,we.mkdirSync)(this.resourcesFolder);for(let i of r)await this.processOne((0,Xn.join)(this.traceDir,i));if(await this.reZip(),(0,we.rmdirSync)(this.unarchiveFolder,{recursive:!0}),this.deleteOriginalFiles)for(let i of r)(0,we.rmSync)((0,Xn.join)(this.traceDir,i))}catch(t){return console.log("There was an error processing the trace files",t),!1}return!0}async processOne(t){let i=(await this.unzipAndWriteFiles(t)).trace.map(u=>(0,Xn.join)(this.unarchiveFolder,u));for(let u of i)await this.preprocessFile(u);let s=[...i];for(;s.length>0;)for(let u of s)await this.processFile(u,s)}async unzipAndWriteFiles(t){let r=(0,we.readFileSync)(t),i=await(0,$d.loadAsync)(r),s={trace:[],network:[],stacks:[]},u=o(c=>{let f=o((v,p)=>(s[p].push(v),v),"addToUnarchivedFiles");return c.endsWith(".trace")?f(`trace${this.runningIndexes.trace++}.trace`,"trace"):c.endsWith(".network")?f(`trace${this.runningIndexes.network++}.network`,"network"):c.endsWith(".stacks")?f(`trace${this.runningIndexes.stacks++}.stacks`,"stacks"):null},"getNewFileName");for(let c of Object.keys(i.files)){let f=u(c);if(!f)continue;let v=i.file(c).nodeStream(),p=(0,we.createWriteStream)(`${this.unarchiveFolder}/${f}`);await(0,jd.pipeline)(v,p)}for(let c of Object.keys(i.files)){if(!c.startsWith("resources/"))continue;let f=c.replace("resources/",""),v=`${this.resourcesFolder}/${f}`;if(this.mode==="generation"&&f.startsWith("src@")||(0,we.existsSync)(v))continue;let p=i.file(c).nodeStream(),g=(0,we.createWriteStream)(v);await(0,jd.pipeline)(p,g)}return s}async reZip(){let t=await(0,$d.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});for(let s of(0,we.readdirSync)(this.unarchiveFolder))if(s.endsWith(".network")||this.shouldIncludeStacksFiles()&&s.endsWith(".stacks")||s.endsWith(".trace")){let u=(0,we.readFileSync)((0,Xn.join)(this.unarchiveFolder,s));t.file(s,u)}let r=t.folder("resources");for(let s of(0,we.readdirSync)(this.resourcesFolder)){let u=(0,we.readFileSync)((0,Xn.join)(this.resourcesFolder,s));r.file(s,u)}let i=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"});(0,we.existsSync)(this.outputZipFilePath)&&(0,we.rmSync)(this.outputZipFilePath),(0,we.writeFileSync)(this.outputZipFilePath,i)}async preprocessFile(t){this.callIdsRemovals[t]={callIdsToBeRemoved:{},arrayOfCallIdsToBeRemoved:new Set};let r=(0,we.createReadStream)(t),i=Gd({input:r,crlfDelay:1/0}),s=0;for await(let u of i){s++;let c=JSON.parse(u);this.shouldLineBeRemoved(c)&&(c.wallTime&&(this.wallTimesToBeRemoved[c.wallTime]=!0),c.callId&&(this.callIdsRemovals[t].callIdsToBeRemoved[c.callId]=!0,this.callIdsRemovals[t].arrayOfCallIdsToBeRemoved.add(c.callId)))}this.numberOfLinesPerFile[t]=s}async processFile(t,r){var f,v;let i=[],s=(0,we.createReadStream)(t),u=Gd({input:s,crlfDelay:1/0}),c=t;for await(let p of u){let g=JSON.parse(p),b=!1;if(this.frontendLogPrefix){if(this.isChecksumConsoleLog(g)){this.consoleLogGUIDs.push(g.guid);continue}if(this.isConsoleLogMetadata(g)&&this.consoleLogGUIDs.includes((v=(f=g.params)==null?void 0:f.message)==null?void 0:v.guid))continue}if(this.lineCanBeRemoved(g)&&(this.wallTimesToBeRemoved[g.wallTime]||this.callIdsRemovals[c].callIdsToBeRemoved[g.callId]||Array.from(this.callIdsRemovals[c].arrayOfCallIdsToBeRemoved).some(x=>p.includes(`"${x}"`)))&&(b=!0),b){g.callId&&(this.callIdsRemovals[c].callIdsToBeRemoved[g.callId]=!0,this.callIdsRemovals[c].arrayOfCallIdsToBeRemoved.add(g.callId));continue}i.push(p)}if(i.length===this.numberOfLinesPerFile[c]){let p=r.indexOf(c);p>-1&&r.splice(p,1)}else this.numberOfLinesPerFile[c]=i.length,(0,we.writeFileSync)(t,i.join(`
|
|
71
|
+
`))}isChecksumConsoleLog(t){var r,i;return t.class==="ConsoleMessage"&&((i=(r=t.initializer)==null?void 0:r.text)==null?void 0:i.startsWith(this.frontendLogPrefix))||t.type==="console"&&t.text.startsWith(this.frontendLogPrefix)}isConsoleLogMetadata(t){return t.class==="BrowserContext"&&t.method==="console"}lineCanBeRemoved(t){return!["frame-snapshot"].includes(t.type)}shouldLineBeRemoved(t){switch(this.mode){case"runtime":return this.shouldLineBeRemoved_runtime(t);case"generation":return this.shouldLineBeRemoved_generation(t)}return!1}shouldLineBeRemoved_runtime(t){return!1}shouldIncludeStacksFiles(){return this.mode==="runtime"}shouldLineBeRemoved_generation(t){return!!t.apiName&&!this.generationAllowedAPIName.includes(t.apiName)}};o(Zd,"PlaywrightTraceProcessor");var sl=Zd;var qb=require("path");var Kd=class Kd{constructor(t,r,i,s){this.executedActions=t;this.loginFunction=r;this.settings=i;this.pageInteractorAPI=s;this.errors=[];this.webDriver=new Vi({fullScreenResolution:!0,baseURL:i.baseURL},{devtools:!1,headless:!1},{})}async replay(){var r,i;await this.webDriver.prepare(),await this.injectHAR();let t=new Gn(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname},this.pageInteractorAPI);await this.webDriver.startPlaywrightTrace(),this.settings.didLogin&&await this.loginFunction(this.webDriver.page);for(let s=0;s<this.executedActions.length;++s){let u=this.executedActions[s];((r=u.parentFramesSelectors)==null?void 0:r.length)>0&&(u.parentFramesSelectors=u.parentFramesSelectors.slice(1));try{console.log("Performing action",u.description),await t.performAction(u,{monitorFlashingHTML:!1})}catch{return console.error("Error performing action:",u),this.errors.push({type:"ActionError",actionIndex:s}),!1}if(!((i=u.assertions)!=null&&i.length)){await pe(500);continue}for(let c of u.assertions)try{await this.replayAssertion(c)}catch(f){console.error(`Error replaying assertion ${c.locator} ${c.matcher}`,f.message),this.errors.push({type:"AssertionError",actionIndex:s,assertionIndex:u.assertions.indexOf(c)})}}await this.webDriver.stopPlaywrightTrace(this.settings.traceFilePath);try{await new sl("generation",(0,qb.dirname)(this.settings.traceFilePath),this.settings.traceFilePath,"$checksum").process()}catch(s){console.error("Error processing trace",s.message)}return!0}async report(){let t=[];if(this.errors.forEach(r=>{switch(r.type){case"ActionError":t.push(`Error performing action ${this.executedActions[r.actionIndex].description} at index ${r.actionIndex}`);break;case"AssertionError":t.push(`Error executing assertion ${this.executedActions[r.actionIndex].assertions[r.assertionIndex].thought} at index ${r.assertionIndex} of action at index ${r.actionIndex}`);break}}),!t.length){console.log("Replay successful!");return}console.error("Replay errors:"),console.error(t.join(`
|
|
72
|
+
`))}async replayAssertion(t){let r=(0,Co.expect)(this.webDriver.page.locator(t.selector)),i=`async (expectCall) => expectCall.${t.matcher}`;await(0,eval)(i)(r)}async injectHAR(){let t={GET:0,POST:0,PUT:0,DELETE:0};try{await this.webDriver.page.routeFromHAR(this.settings.harFilePath,{url:"*/**",notFound:"fallback",update:!1});let r=this.webDriver.page._routes[0].handler;await this.webDriver.page.route("**/*",i=>{let s=i.request().headers(),u=i.request().method();s["Checksum-Id"]=(++t[u]).toString(),i.request()._applyFallbackOverrides({headers:s}),r(i)})}catch(r){console.error("Error setting up mock data",r.message)}}};o(Kd,"TestGenerationReplayer");var Po=Kd;var Hb=require("request"),ll=require("fs");var Vd=class Vd{constructor(t,r,i,s,u){this.apiBaseURL=t;this.apiKey=r;this.uploadTimeout=i;this.makeGetUploadUrlAPIPath=s;this.onOutstandingUpload=u}async uploadAsset(t){try{let{path:r}=t.info;if(console.log("Uploading file",r),await this.getSignedURLForUpload(t),!t.uploadURL){console.log("Error getting signed URL for asset",r),t.error=!0;return}let s=(0,ll.statSync)(r).size,u=(0,ll.createReadStream)(r),c=Qe(new Promise((f,v)=>{var g;let p=(0,Hb.put)(t.uploadURL,{body:u},(b,x)=>{b&&v(b),f(x)});(g=this.onOutstandingUpload)==null||g.call(this,{request:p,size:s})}),this.uploadTimeout);c.then(f=>{if(f.statusCode!==200)throw new Error("Upload failed");console.log("File uploaded successfully",r),t.complete=!0}).catch(f=>{console.log("Error uploading asset",r,f),t.error=!0}),t.response=c}catch{t.error=!0}}async getSignedURLForUpload(t){try{let r=t.info,i=await fetch(`${this.apiBaseURL}/${this.makeGetUploadUrlAPIPath(t)}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.apiKey},body:JSON.stringify(r)}),{url:s}=await i.json();t.uploadURL=s}catch(r){return console.log("Error getting signed URL for artifact",r),null}}};o(Vd,"TestAssetUploader");var ul=Vd;var zb=Me(Cu()),Qn=require("path"),wn=require("fs");async function Gb(e,t){let r=await(0,wn.readdirSync)(t);await Promise.all(r.map(async i=>{let s=(0,Qn.join)(t,i);if((await(0,wn.statSync)(s)).isDirectory()){let c=e.folder(i);await Gb(c,s)}else{let c=await(0,wn.readFileSync)(s);e.file(i,c)}}))}o(Gb,"addFolderToZip");async function $b(e){try{let t=await(0,zb.loadAsync)("UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==",{base64:!0});await Gb(t,e);let r=await t.generateAsync({type:"nodebuffer",compression:"DEFLATE"}),i=(0,Qn.join)((0,Qn.dirname)(e),`${(0,Qn.basename)(e)}.zip`);return(0,wn.writeFileSync)(i,r),i}catch(t){return console.error("Error creating zip:",t),null}}o($b,"zipFolder");var jb=require("fs"),Zb=require("path");var Yd=!1,Jd={story:{goal:"Send email via outreach list",instructions:"Make sure to select a user from the list first"},shouldLogin:!0,environment:{name:void 0,userRole:void 0}},Xd=class Xd extends zt{constructor(r,i=!1){super(r,i);this.checksumScriptFilePath="node_modules/@checksum-ai/runtime/checksumlib.js";this.mode="both";this.stopLoop=!1;this.completedSuccessfully=!1;this.executedActions=[];this.initTimeMachine=o(async(r=!1)=>{await this.webDriver.getTimeMachinePage().evaluate(({shouldHandleEvents:i})=>window.checksum.visualTestGenerator.init(i),{shouldHandleEvents:r})},"initTimeMachine");this.login=o(async(r=this.webDriver.page)=>{await Uf({config:this.config,folder:this.checksumRoot})(r,{role:this.environment.userRole,environment:this.environment.name})},"login");this.pageInteractorAPI=new Do(this.config)}async run(){await this.init();let r=this.args.find(s=>s.startsWith("--replay"));if(r){let s=r.split("=")[1];return this.loadAndReplay(s)}let i=this.args.find(s=>s.startsWith("--upload"));if(i){let s=i.split("=")[1];return this.uploadFromFolder(s)}await this.prepare(),await this.start(),await this.backup(),await this.replay(),await this.upload()}async loadAndReplay(r){let{executedActions:i,settings:s}=this.loadFile(r),u=new Po(i,this.login,s,this.pageInteractorAPI);await u.replay(),u.report()}async uploadFromFolder(r){this.loadFile(r),await this.upload()}loadFile(r){let i=JSON.parse((0,jb.readFileSync)(r,"utf-8")),{executedActions:s,settings:u,testGenerationId:c}=i;return this.executedActions=s,this.testGenerationId=c,this.assetsFolderPath=(0,Zb.dirname)(r),i}async init(){await this.patchPlaywright(),this.loadChecksumData(),this.apiBaseURL=this.checksumApiUrl+"/client-api/runtime"}async prepare({createAssetsFolder:r=!0}={}){this.webDriver=this.buildWebDriver(),this.timeMachineSync=new po(this.webDriver,this.initTimeMachine);let i={onActionExecuted:o(s=>Array.isArray(s)?this.executedActions.push(...s):this.executedActions.push(s),"onActionExecuted"),stop:o(()=>{this.stopLoop=!0},"stop"),onSuccess:o(()=>{this.completedSuccessfully=!0},"onSuccess"),generateAssertions:o(()=>this.generateAssertions(!1),"generateAssertions"),getExecutedActions:o(()=>this.executedActions,"getExecutedActions")};this.pageInteractor=new Gn(this.webDriver.evaluateWithChecksum.bind(this.webDriver),()=>this.webDriver.page,()=>{},{log:console.log,logError:console.error},{navigationTimeout:30*1e3,actionTimeout:5*1e3,waitActionDelay:1e3,testAssetsDir:__dirname},this.pageInteractorAPI),r&&this.createTestGenerationAssetsFolders(),this.mode=await gt({message:"Run mode?",choices:[{name:"AI and Manual",value:"both"},{name:"AI only",value:"ai"},{name:"Manual only",value:"manual"}]}),["manual","both"].includes(this.mode)&&(this.manualStepGenerator=new rl(this.webDriver,this.pageInteractor,i)),["ai","both"].includes(this.mode)&&(this.aiStepGenerator=new il(this.webDriver,this.pageInteractor,this.apiBaseURL,this.config.apiKey,i),await this.aiStepGenerator.init())}async start(){var i,s,u;this.story=await this.getStory(),this.aiStepGenerator&&this.aiStepGenerator.setStory(this.story),(i=this.story)!=null&&i.environment&&(this.environment=this.story.environment);let r=Yd?Jd.shouldLogin:await gt({message:"Auto login?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]});if(r&&!this.environment&&(Yd?this.environment=Jd.environment:(this.environment={},this.environment.name=await Ae({message:"Environment name to use [optional]?"}),this.environment.name||(this.environment.name=void 0),this.environment.userRole=await Ae({message:"Role to login as [optional]?"}),this.environment.userRole||(this.environment.userRole=void 0))),await this.webDriver.prepare(),await this.webDriver.addHARMockAPIRecordings(this.getHarFilePath()),await this.timeMachineSync.start(),this.didLogin=!1,r)try{await this.login(),this.didLogin=!0}catch{console.error("Failed to execute login function")}if(!r||!this.didLogin||(s=this.story)!=null&&s.url){let c=(u=this.story)!=null&&u.url?this.story.url:this.config.baseURL;if(await this.webDriver.getCurrentURL()!=c){let f=new Yi(this.webDriver.page);f.startListening(),await this.webDriver.navigate(c),await f.wait(),this.executedActions.push({description:"Navigate to start URL",eventCode:"navigation",fillValue:c}),await pe(2e3)}}for(await this.timeMachineSync.enableEventsHandling();!this.stopLoop;)await this.iterate();console.log(this.completedSuccessfully?"Test completed successfully":"Test failed"),await this.webDriver.shutdown(),await pe(2e3)}async backup(){let r={executedActions:this.executedActions,testGenerationId:this.testGenerationId,settings:{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()}};(0,Lo.writeFileSync)(`${this.assetsFolderPath}/test.json`,JSON.stringify(r,null,2))}async replay(){let r=new Po(this.executedActions,this.login,{baseURL:this.config.baseURL,assetsFolderPath:this.assetsFolderPath,didLogin:this.didLogin,traceFilePath:this.getTraceFilePath(),harFilePath:this.getHarFilePath()},this.pageInteractorAPI);await r.replay(),r.report()}async upload(){try{if(!this.testGenerationId){console.log("No test generation id, can't upload");return}this.testAssetUploader=new ul(this.apiBaseURL,this.config.apiKey,null,()=>`test-generation/${this.testGenerationId}/get-upload-url`);let r=o(c=>({complete:!1,error:!1,response:void 0,info:c}),"buildUploadAsset"),i=r({type:"trace",path:this.getTraceFilePath()}),s=r({type:"har",path:await $b(this.getHarFolderPath())});await Promise.all([this.testAssetUploader.uploadAsset(i),this.testAssetUploader.uploadAsset(s)]);let u=await fetch(`${this.apiBaseURL}/test-generation/${this.testGenerationId}/completed`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:JSON.stringify({actions:this.executedActions})})}catch(r){console.error("Failed to upload test",r)}}async getStory(){if(Yd)return Jd.story;let r=await Ae({message:"User story id [can't upload test without it]?"});if(r){let c=await fetch(`${this.apiBaseURL}/test-generation/init/${r}`,{method:"POST",headers:{"Content-Type":"application/json",ChecksumAppCode:this.config.apiKey}}),{testGenerationId:f,title:v,steps:p,startUrl:g,userRole:b,environment:x}=await c.json();return this.testGenerationId=f,{goal:v,instructions:p,url:g,environment:{userRole:b,name:x}}}if(this.mode==="manual"&&!await gt({message:"Would you like to set the user story parameters (goal, instructions, start url)?",choices:[{name:"Yes",value:!0},{name:"No",value:!1}]}))return;let i=await Ae({message:"Test goal?"});if(!i)throw new Error("Test goal is required");let s=await Ae({message:"Special instructions for the test [optional]?"}),u=await Ae({message:"URL to start from [optional]?"});return{goal:i,instructions:s,url:u}}async iterate(){let r=[{name:"Generate assertion",value:"GenerateAssertions"}];["manual","both"].includes(this.mode)&&r.push({name:"Manual step",value:"PerformManualAction"}),["ai","both"].includes(this.mode)&&r.push({name:"AI step",value:"PerformAIAction"}),r.push({name:"Finish",value:"Finish"}),r.push({name:"Abort (no code will be generated)",value:"Abort"});let i=await gt({message:"Next step?",choices:r});try{switch(i){case"PerformManualAction":return await this.timeMachineSync.enableEventsHandling(),this.manualStepGenerator.run(this.aiIterationEndTimestamp);case"PerformAIAction":await this.timeMachineSync.disableEventsHandling(),await this.aiStepGenerator.run(this.executedActions),this.aiIterationEndTimestamp=Date.now();return;case"GenerateAssertions":return this.generateAssertions(!1);case"Finish":this.completedSuccessfully=!0,this.stopLoop=!0;break;case"Abort":this.stopLoop=!0;break}}catch(s){return console.log("Something unexpected occurred, please try again...",s),await pe(2e3),this.iterate()}}async generateAssertions(r=!0){if(r&&await Ae({message:"Generate assertion?",default:"yes"})!=="yes")return;let i=await gt({message:"Assertion for which action?",choices:this.executedActions.map((s,u)=>({name:s.description,value:u}))});await new ol(this.webDriver).run(this.executedActions,i)}buildWebDriver(){return new Vi({scriptSource:"url",scriptURL:"http://localhost:3001/index.js",scriptFile:this.checksumScriptFilePath,fullScreenResolution:!0,baseURL:this.config.baseURL},{devtools:!1,headless:!1},{useTimeMachine:!0,frontendAppSpecificRules:{},frontendTestGenerationConfig:{logPrefix:"$checksum"}})}createTestGenerationAssetsFolders(){this.assetsFolderPath=this.projectRootDirectory+`/tg-assets/${Date.now()}`,(0,Lo.mkdirSync)(this.assetsFolderPath,{recursive:!0}),(0,Lo.mkdirSync)(this.getHarFolderPath(),{recursive:!0})}getHarFolderPath(){return this.assetsFolderPath+"/har"}getHarFilePath(){return`${this.getHarFolderPath()}/har.har`}getTraceFilePath(){return`${this.assetsFolderPath}/trace.zip`}};o(Xd,"VisualTestGenerator");var cl=Xd;var Kb=require("fs"),Vb=Me(require("child_process")),Mo=require("path");var Qd=class Qd extends zt{constructor(r,i=!1){super(r,i);this.MAX_COMPLETION_WAIT=10*60*1e3;this.TEST_RUN_MONITOR_PATH=(0,Mo.join)(__dirname,"test-run-monitor.js");this.didFail=!1;this.isolationMode=!1;this.replMode=!1;this.completeIndicators={upload:!1,tests:!1,report:!1};this.uploadProgress=0;this.replMode=r.includes("--repl")}async run(){if(this.loadChecksumData(),!await this.getSession())return;let r;try{r=await Qe(this.startTestRunMonitor(this.testSession),1e4,"test run monitor timeout")}catch{console.log("Error starting test run monitor. Test results will not be available on checksum.")}this.buildVolatileConfig();let i={CHECKSUM_ROOT_FOLDER:this.checksumRoot};r&&(i.CHECKSUM_UPLOAD_AGENT_PORT=r),this.config.options.hostReports&&(i.PW_TEST_HTML_REPORT_OPEN="never"),this.testSession&&this.testSession!=="isolated-session"&&(i.CHECKSUM_TEST_SUITE_ID=this.testSession),this.replMode&&(i.CHECKSUM_REPL="true");let s=[...this.args];this.replMode&&s.push("--debug");let u=`npx playwright test --config "${this.getPlaywrightConfigFilePath()}" ${s.map(c=>`"${c}"`).join(" ")}`;await this.patchPlaywright();try{console.log(`Tests running with @checksum-ai/runtime version ${require("./package.json").version}`),this.replMode?(console.log("Running in REPL mode"),this.execCmd(u,i),await this.execCmd(`node ${__dirname}/repl.js`,i)):await this.execCmd(u,i),console.log("Tests execution finished")}catch{this.didFail=!0,console.log("Error during test execution: Failed passing test")}finally{this.isolationMode||console.log("Waiting for test files to upload to Checksum..."),this.sendReportUploadRequest(),await this.patchPlaywright(!0),this.completeIndicators.tests=!0,await this.handleCompleteMessage()}}getPlaywrightReportPath(){var s;let r=o(u=>(Oe("Using report folder",u),(0,Mo.join)(u,"index.html")),"makeFilePath");if(process.env.PLAYWRIGHT_HTML_REPORT)return r(process.env.PLAYWRIGHT_HTML_REPORT);let i=(s=this.playwrightConfig)==null?void 0:s.reporter;if(i instanceof Array){let c=i.filter(f=>f instanceof Array&&f[0]==="html").find(f=>{var v;return(v=f[1])==null?void 0:v.outputFolder});if(c)return r((0,Mo.join)(this.checksumRoot,c[1].outputFolder))}return r((0,Mo.join)(this.projectRootDirectory,"playwright-report"))}sendReportUploadRequest(){let r=this.getPlaywrightReportPath();if(!(0,Kb.existsSync)(r)){console.log(`Could not find report file at ${r}`),this.completeIndicators.report=!0;return}Oe("Sending report upload request",r),this.testRunMonitorProcess.stdin.write(`cli:report=${r}`)}startTestRunMonitor(r){return new Promise(i=>{console.log("Starting test run monitor"),this.testRunMonitorProcess=Vb.spawn("node",[this.TEST_RUN_MONITOR_PATH,JSON.stringify({sessionId:r,checksumApiURL:this.checksumApiUrl,apiKey:this.config.apiKey}),...this.isolationMode?["isolated"]:[]]),this.testRunMonitorProcess.stdout.on("data",s=>{let u=s.toString().trim();if(Oe("[trm] "+u),!u.startsWith("monitor"))return;let[c,f]=u.substring(u.indexOf(":")+1).split("=");c==="port"?i(f):this.handleTestRunMonitorMessage(c,f)}),this.testRunMonitorProcess.on("exit",(s,u)=>{console.log(`test run monitor process exited with code ${s} and signal ${u}`)}),this.testRunMonitorProcess.stderr.on("data",s=>{this.debugMode&&console.error("[trm] Error:",s.toString())}),this.testRunMonitorProcess.on("error",s=>{console.error(`Error starting test run monitor: ${s.message}`)})})}async handleTestRunMonitorMessage(r,i){switch(Oe(`Handling test run monitor message ${this.isolationMode?"(isolation mode)":""}`,r,i),r){case"complete-with-errors":console.log("Error uploading test files to Checksum"),this.sendProcessingError().then(()=>{this.completeIndicators.upload=!0});break;case"complete":this.isolationMode||console.log("Test files uploaded successfully"),this.sendUploadsComplete().then(()=>{this.completeIndicators.upload=!0});break;case"report-complete":{if(this.isolationMode){this.completeIndicators.report=!0;break}let s=i.slice(0,i.indexOf(":"))==="true",u=i.slice(i.indexOf(":")+1),c={};try{c=JSON.parse(u)}catch(f){console.log("Error parsing stats",f.message)}if(await this.sendTestRunEnd(c),this.completeIndicators.report=!0,s){let f=`Checksum report URL: ${this.checksumAppUrl}/#/test-runs/${this.testSession}`,v="*".repeat(f.length);console.log(`${v}
|
|
73
|
+
${f}
|
|
74
|
+
${v}`)}else console.log("An error occurred while uploading the test report to Checksum");break}case"upload-progress":{let s=parseInt(i);(s<this.uploadProgress||s>=this.uploadProgress+10||s===100&&this.uploadProgress!==100)&&(this.uploadProgress=s,console.log(`[ Uploads progress: ${this.uploadProgress}% ]`))}break;case"log":console.log(i);break;case"playwrightConfig":this.playwrightConfig=JSON.parse(i);break;default:console.warn(`Unhandled test run monitor message: ${r}=${i}`)}}async handleCompleteMessage(){let r=Date.now();for(;;){if(Date.now()-r>this.MAX_COMPLETION_WAIT){console.log("An error occurred and Checksum wasn't able to complete processing the test suite."),this.shutdown(1);return}Object.keys(this.completeIndicators).find(i=>!this.completeIndicators[i])?(Oe(this.completeIndicators),await pe(1e3)):(console.log("Checksum test run complete"),this.shutdown(this.didFail?1:0))}}shutdown(r=0){this.cleanup(),process.exit(r)}cleanup(){var r,i;super.cleanup(),(r=this.testRunMonitorProcess)==null||r.stdin.write("cli:shutdown"),(i=this.testRunMonitorProcess)==null||i.kill()}async getSession(){try{if(!this.config.options.hostReports)return this.setIsolatedMode(),!0;let r=this.config.apiKey;if(!r||r==="<API key>")return this.printError("No API key found in checksum config - please set it in the config file - checksum.config.ts"),this.shutdown(1),!1;let i=JSON.stringify(await this.getEnvInfo()),s=await fetch(`${this.checksumApiUrl}/client-api/test-runs`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:r},body:i});return this.testSession=(await s.json()).uuid,!0}catch{return console.log("Error connecting to Checksum, the report will not be hosted"),this.setIsolatedMode(),!0}}setIsolatedMode(){this.isolationMode=!0,this.testSession="isolated-session"}async sendTestRunEnd(r){if(!this.isolationMode)try{Oe("Sending test run end",r);let i="{}";try{i=JSON.stringify({...r,endedAt:Date.now()})}catch(s){console.log("Error stringifying stats",s.message,r)}await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}`,"PATCH",i)}catch(i){return console.log("Error sending test run end",i.message),null}}async sendUploadsComplete(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/uploads-completed`,"PATCH")}catch(r){console.log("Error sending test run uploads complete",r.message)}}async sendProcessingError(){if(!this.isolationMode)try{await this.updateTestRun(`${this.checksumApiUrl}/client-api/test-runs/${this.testSession}/process-error`,"PATCH")}catch(r){console.log("Error sending test run processing error",r.message)}}async updateTestRun(r,i,s=void 0){let u=await fetch(r,{method:i,headers:{Accept:"application/json","Content-Type":"application/json",ChecksumAppCode:this.config.apiKey},body:s});return Oe("Received update test run response from url:",r),await this.logApiResponse(u),u}async logApiResponse(r){try{if(!r.ok){Oe("HTTP Error:",r.status,r.statusText);let s=await r.text();Oe("Error Details:",s);return}r.headers.get("Content-Type").includes("application/json")?r.json().then(s=>{Oe("API Response:",s)}):r.text().then(s=>{Oe("API Response:",s)})}catch(i){Oe("Error logging API response",i.message)}}};o(Qd,"TestsRunner");var hl=Qd;var ep=class ep extends zt{constructor(t,r=!1){super(t,r)}async run(t){switch(t){default:console.log(`
|
|
56
75
|
Checksum CLI
|
|
57
76
|
Usage: checksum [command] [options]
|
|
58
77
|
|
|
@@ -64,9 +83,19 @@ show-report [options] [report] show HTML report
|
|
|
64
83
|
`);break;case"test":try{let i=(await this.getCmdOutput("npx playwright test --help")).replace(/npx playwright/g,"yarn checksum").split(`
|
|
65
84
|
`);i.splice(5,0," --checksum-config=<config> Checksum configuration in JSON format").join(`
|
|
66
85
|
`),console.log(i.join(`
|
|
67
|
-
`))}catch(r){console.log("Error",r.message)}break;case"show-report":try{let i=(await this.getCmdOutput("npx playwright show-report --help")).replace(/npx playwright/g,"yarn checksum");console.log(i)}catch(r){console.log("Error",r.message)}break;case"generate":console.log("Not implemented yet");break}}};o(
|
|
86
|
+
`))}catch(r){console.log("Error",r.message)}break;case"show-report":try{let i=(await this.getCmdOutput("npx playwright show-report --help")).replace(/npx playwright/g,"yarn checksum");console.log(i)}catch(r){console.log("Error",r.message)}break;case"generate":console.log("Not implemented yet");break}}};o(ep,"CLIHelp");var Oo=ep;var tp=class tp extends zt{constructor(t,r=!1){super(t,r)}async run(){let t=`npx playwright show-report ${this.args.join(" ")}`;try{await this.execCmd(t)}catch(r){console.log("Error showing report",r.message)}}};o(tp,"CLIShowReport");var fl=tp;var ar=require("fs"),ei=require("path");var rp=class rp extends zt{constructor(t,r=!1){super(t,r)}run(){console.log("Creating Checksum directory and necessary files to run your tests");try{this.findProjectRoot()}catch(i){console.log(i.message),process.exit(1)}let t=(0,ei.join)(process.cwd(),As);if((0,ar.existsSync)(t)||(0,ar.mkdirSync)(t),!(0,ar.existsSync)(this.getChecksumRootOrigin()))throw new Error("Could not find checksum root directory, please install @checksum-ai/runtime package");let r=(0,ar.existsSync)((0,ei.join)(t,"checksum.config.ts"));Um({isInit:!r}).forEach(i=>{let s=(0,ei.join)(t,i);(0,ar.existsSync)(s)||(0,ar.copyFileSync)((0,ei.join)(this.getChecksumRootOrigin(),i),s)}),(0,ar.mkdirSync)((0,ei.join)(t,"tests"),{recursive:!0}),["esra","har","trace","log"].forEach(i=>{(0,ar.mkdirSync)((0,ei.join)(t,"test-data",i),{recursive:!0})})}};o(rp,"CLIInstall");var dl=rp;var np=class np{constructor(){}async execute(){let t=!!process.argv.find(i=>i==="--clidebug");t&&Bf(!0);let r=process.argv.slice(3);switch(process.argv.find(i=>i==="--help"||i==="-h")&&(await new Oo(r,t).run(process.argv[2]),process.exit(0)),process.argv[2]){case"init":new dl(r,t).run();break;case"test":await new hl(r,t).run();break;case"show-report":await new fl(r,t).run();break;case"generate":try{await new cl(r,t).run()}catch(i){console.log("Error",i.message)}break;default:await new Oo(r,t).run()}process.exit(0)}};o(np,"CLIDispatcher");var pl=np;(async()=>await new pl().execute())();
|
|
68
87
|
/*! Bundled license information:
|
|
69
88
|
|
|
89
|
+
lodash/lodash.js:
|
|
90
|
+
(**
|
|
91
|
+
* @license
|
|
92
|
+
* Lodash <https://lodash.com/>
|
|
93
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
94
|
+
* Released under MIT license <https://lodash.com/license>
|
|
95
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
96
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
97
|
+
*)
|
|
98
|
+
|
|
70
99
|
playwright-extra/dist/index.cjs.js:
|
|
71
100
|
(*!
|
|
72
101
|
* playwright-extra v4.3.5 by berstend
|