@checksum-ai/runtime 1.1.17 → 1.1.22
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/checksum-root/.gitignore.example +1 -0
- package/checksum-root/checksum.config.ts +2 -0
- package/checksumlib.js +59 -35
- package/cli.js +30 -30
- package/index.d.ts +79 -20
- package/index.js +63 -63
- package/package.json +2 -1
package/cli.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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_,`{
|
|
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)),Bt=(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((cL,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((fL,qm)=>{var ZF={}.toString;qm.exports=Array.isArray||function(e){return ZF.call(e)=="[object Array]"}});var qc=O((dL,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(tt=>{function KF(e){return Array.isArray?Array.isArray(e):Ps(e)==="[object Array]"}o(KF,"isArray");tt.isArray=KF;function VF(e){return typeof e=="boolean"}o(VF,"isBoolean");tt.isBoolean=VF;function YF(e){return e===null}o(YF,"isNull");tt.isNull=YF;function JF(e){return e==null}o(JF,"isNullOrUndefined");tt.isNullOrUndefined=JF;function XF(e){return typeof e=="number"}o(XF,"isNumber");tt.isNumber=XF;function QF(e){return typeof e=="string"}o(QF,"isString");tt.isString=QF;function eA(e){return typeof e=="symbol"}o(eA,"isSymbol");tt.isSymbol=eA;function tA(e){return e===void 0}o(tA,"isUndefined");tt.isUndefined=tA;function rA(e){return Ps(e)==="[object RegExp]"}o(rA,"isRegExp");tt.isRegExp=rA;function nA(e){return typeof e=="object"&&e!==null}o(nA,"isObject");tt.isObject=nA;function iA(e){return Ps(e)==="[object Date]"}o(iA,"isDate");tt.isDate=iA;function aA(e){return Ps(e)==="[object Error]"||e instanceof Error}o(aA,"isError");tt.isError=aA;function oA(e){return typeof e=="function"}o(oA,"isFunction");tt.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");tt.isPrimitive=sA;tt.isBuffer=require("buffer").Buffer.isBuffer;function Ps(e){return Object.prototype.toString.call(e)}o(Ps,"objectToString")});var jm=O((vL,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((wL,$c)=>{try{if(Gc=require("util"),typeof Gc.inherits!="function")throw"";$c.exports=Gc.inherits}catch{$c.exports=jm()}var Gc});var Km=O((yL,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((_L,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((xL,Ym)=>{Ym.exports=require("util").deprecate});var Vc=O((kL,a0)=>{"use strict";var Tn=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:Tn.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||Rn(),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||Rn(),!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),Tn.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),Tn.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?(Tn.nextTick(s,i),Tn.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,Tn.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?Tn.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 Rn=O((EL,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((IL,C0)=>{"use strict";var Ci=Ia();C0.exports=xe;var jA=Hm(),Ua;xe.ReadableState=D0;var RL=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||Rn(),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||Rn(),!(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((LL,S0)=>{"use strict";S0.exports=Or;var qs=Rn(),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((OL,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=Rn(),Ke.Transform=uh(),Ke.PassThrough=T0())});var Br=O(Ct=>{"use strict";Ct.base64=!0;Ct.array=!0;Ct.string=!0;Ct.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Ct.nodebuffer=typeof Buffer<"u";Ct.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Ct.blob=!1;else{ch=new ArrayBuffer(0);try{Ct.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),Ct.blob=hh.getBlob("application/zip").size===0}catch{Ct.blob=!1}}}var ch,R0,hh;try{Ct.nodestream=!!lh().Readable}catch{Ct.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((WL,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((HL,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((GL,H0)=>{"use strict";var B0=O0();function ki(){}o(ki,"INTERNAL");var rt={},U0=["REJECTED"],Dh=["FULFILLED"],N0=["PENDING"];process.browser||(Ga=["UNHANDLED"]);var Ga;H0.exports=nn;function nn(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(nn,"Promise");nn.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)}};nn.prototype.catch=function(e){return this.then(null,e)};nn.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){rt.resolve(this.promise,e)};$a.prototype.otherCallFulfilled=function(e){wh(this.promise,this.onFulfilled,e)};$a.prototype.callRejected=function(e){rt.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 rt.reject(e,s)}i===e?rt.reject(e,new TypeError("Cannot resolve promise with itself")):rt.resolve(e,i)})}o(wh,"unwrap");rt.resolve=function(e,t){var r=q0(m2,t);if(r.status==="error")return rt.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};rt.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,rt.reject(e,f))}o(i,"onError");function s(f){r||(r=!0,rt.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");nn.resolve=v2;function v2(e){return e instanceof this?e:rt.resolve(new this(ki),e)}o(v2,"resolve");nn.reject=D2;function D2(e){var t=new this(ki);return rt.reject(t,e)}o(D2,"reject");nn.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,rt.reject(f,x))});function b(x){s[g]=x,++u===r&&!i&&(i=!0,rt.resolve(f,s))}o(b,"resolveFromAll")}}o(w2,"all");nn.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,rt.resolve(u,v))},function(v){i||(i=!0,rt.reject(u,v))})}}o(y2,"race")});var Si=O((jL,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 an=Br(),b2=dh(),Ei=qa(),bh=Si();j0();function _2(e){var t=null;return an.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 an.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return an.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 on={};on.string={string:ja,array:o(function(e){return Gs(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return on.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")};on.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")};on.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")};on.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")};on.nodebuffer={string:Za,array:o(function(e){return $s(e,new Array(e.length))},"array"),arraybuffer:o(function(e){return on.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=on[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(an.nodebuffer&&Ei.isBuffer(e))return"nodebuffer";if(an.uint8array&&e instanceof Uint8Array)return"uint8array";if(an.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};Ue.checkSupport=function(e){var t=an[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=an.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 xt=O((JL,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(sn=>{"use strict";var Fi=Fe(),In=Br(),C2=qa(),js=xt(),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(In.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");sn.utf8encode=o(function(t){return In.nodebuffer?C2.newBufferFrom(t,"utf-8"):x2(t)},"utf8encode");sn.utf8decode=o(function(t){return In.nodebuffer?Fi.transformTo("nodebuffer",t).toString("utf-8"):(t=Fi.transformTo(In.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(In.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(In.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&&(In.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:sn.utf8decode(s),meta:e.meta})};Zs.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:sn.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};sn.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:sn.utf8encode(e.data),meta:e.meta})};sn.Utf8EncodeWorker=_h});var X0=O((tM,J0)=>{"use strict";var V0=xt(),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((nM,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((aM,iv)=>{"use strict";var Pn=Fe(),F2=X0(),A2=xt(),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 Pn.newBlob(Pn.transformTo("arraybuffer",t),r);case"base64":return T2.encode(t);default:return Pn.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,Pn.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(){Pn.delay(t,arguments,r)}),this},"on"),resume:o(function(){return Pn.delay(this._worker.resume,[],this._worker),this},"resume"),pause:o(function(){return this._worker.pause(),this},"pause"),toNodejsStream:o(function(e){if(Pn.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(Xt=>{"use strict";Xt.base64=!1;Xt.binary=!1;Xt.dir=!1;Xt.createFolders=!0;Xt.date=null;Xt.compression=null;Xt.compressionOptions=null;Xt.comment=null;Xt.unixPermissions=null;Xt.dosPermissions=null});var Eh=O((uM,av)=>{"use strict";var Ks=Fe(),Vs=xt(),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((cM,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((fM,lv)=>{"use strict";var uv=xt(),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((pM,cv)=>{"use strict";var z2=Fe(),Th=xt();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((mM,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((DM,vv)=>{"use strict";var $2=kh(),j2=Eh(),Lh=Ai(),Mh=Js(),gv=xt(),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(st=>{"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");st.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};st.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")};st.setTyped=function(e){e?(st.Buf8=Uint8Array,st.Buf16=Uint16Array,st.Buf32=Int32Array,st.assign(st,Y2)):(st.Buf8=Array,st.Buf16=Array,st.Buf32=Array,st.assign(st,J2))};st.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,Ln=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 pt(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(pt,"send_bits");function pr(e,t,r){pt(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<=Ln;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(Ln+1),s=0,u,c;for(u=1;u<=Ln;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(Ln+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<=Ln;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,Ln),Pv=new Uh(Va,Qs,0,Ri,Ln),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],pt(e,s,f)),i--,c=Mv(i),pr(e,c,r),f=Qs[c],f!==0&&(i-=eu[c],pt(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),pt(e,f-3,2)):f<=10?(pr(e,Av,e.bl_tree),pt(e,f-3,3)):(pr(e,Tv,e.bl_tree),pt(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(pt(e,t-257,5),pt(e,r-1,5),pt(e,i-4,4),s=0;s<i;s++)pt(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){pt(e,(tT<<1)+(i?1:0),3),hT(e,t,r,!0)}o(Wv,"_tr_stored_block");function mT(e){pt(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?(pt(e,(Sv<<1)+(i?1:0),3),_v(e,Wr,Va)):(pt(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((xM,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((SM,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((FM,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 ut=Nr(),Ut=qv(),Kv=Zh(),un=Kh(),CT=tu(),Un=0,xT=1,kT=3,dn=4,$v=5,mr=0,jv=1,Nt=-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,hn=258,Qt=hn+le+1,HT=32,su=42,Xh=69,nu=73,iu=91,au=103,Mn=113,ro=666,qe=1,no=2,On=3,Oi=4,zT=3;function fn(e,t){return e.msg=CT[t],t}o(fn,"err");function Zv(e){return(e<<1)-(e>4?9:0)}o(Zv,"rank");function cn(e){for(var t=e.length;--t>=0;)e[t]=0}o(cn,"zero");function ln(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(ut.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(ln,"flush_pending");function Ve(e,t){Ut._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ln(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,ut.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=un(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-Qt?e.strstart-(e.w_size-Qt):0,p=e.window,g=e.w_mask,b=e.prev,x=e.strstart+hn,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=hn-(x-i),i=x-hn,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 Bn(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-Qt)){ut.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<Qt&&e.strm.avail_in!==0)}o(Bn,"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(Bn(e),e.lookahead===0&&t===Un)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-Qt&&(Ve(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===dn?(Ve(e,!0),e.strm.avail_out===0?On: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<Qt){if(Bn(e),e.lookahead<Qt&&t===Un)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-Qt&&(e.match_length=Vv(e,r)),e.match_length>=le)if(i=Ut._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=Ut._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===dn?(Ve(e,!0),e.strm.avail_out===0?On: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<Qt){if(Bn(e),e.lookahead<Qt&&t===Un)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-Qt&&(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=Ut._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=Ut._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=Ut._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<le-1?e.strstart:le-1,t===dn?(Ve(e,!0),e.strm.avail_out===0?On: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<=hn){if(Bn(e),e.lookahead<=hn&&t===Un)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+hn;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=hn-(u-s),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=le?(r=Ut._tr_tally(e,1,e.match_length-le),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Ut._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===dn?(Ve(e,!0),e.strm.avail_out===0?On: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&&(Bn(e),e.lookahead===0)){if(t===Un)return qe;break}if(e.match_length=0,r=Ut._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===dn?(Ve(e,!0),e.strm.avail_out===0?On: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,cn(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 ut.Buf16(WT*2),this.dyn_dtree=new ut.Buf16((2*UT+1)*2),this.bl_tree=new ut.Buf16((2*NT+1)*2),cn(this.dyn_ltree),cn(this.dyn_dtree),cn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ut.Buf16(qT+1),this.heap=new ut.Buf16(2*Jh+1),cn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ut.Buf16(2*Jh+1),cn(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?fn(e,Nt):(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:Mn,e.adler=t.wrap===2?0:1,t.last_flush=Un,Ut._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?Nt:(e.state.gzhead=t,mr)}o(YT,"deflateSetHeader");function Xv(e,t,r,i,s,u){if(!e)return Nt;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 fn(e,Nt);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 ut.Buf8(f.w_size*2),f.head=new ut.Buf16(f.hash_size),f.prev=new ut.Buf16(f.w_size),f.lit_bufsize=1<<s+6,f.pending_buf_size=f.lit_bufsize*4,f.pending_buf=new ut.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?fn(e,Nt):Nt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ro&&t!==dn)return fn(e,e.avail_out===0?Vh:Nt);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=un(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=Mn);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=Mn,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=un(e.adler,i.pending_buf,i.pending-s,s)),ln(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=un(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=un(e.adler,i.pending_buf,i.pending-s,s)),ln(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=un(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=un(e.adler,i.pending_buf,i.pending-s,s)),ln(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=un(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&&ln(e),i.pending+2<=i.pending_buf_size&&(he(i,e.adler&255),he(i,e.adler>>8&255),e.adler=0,i.status=Mn)):i.status=Mn),i.pending!==0){if(ln(e),e.avail_out===0)return i.last_flush=-1,mr}else if(e.avail_in===0&&Zv(t)<=Zv(r)&&t!==dn)return fn(e,Vh);if(i.status===ro&&e.avail_in!==0)return fn(e,Vh);if(e.avail_in!==0||i.lookahead!==0||t!==Un&&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===On||v===Oi)&&(i.status=ro),v===qe||v===On)return e.avail_out===0&&(i.last_flush=-1),mr;if(v===no&&(t===xT?Ut._tr_align(i):t!==$v&&(Ut._tr_stored_block(i,0,0,!1),t===kT&&(cn(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ln(e),e.avail_out===0))return i.last_flush=-1,mr}return t!==dn?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)),ln(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?Nt:(t=e.state.status,t!==su&&t!==Xh&&t!==nu&&t!==iu&&t!==au&&t!==Mn&&t!==ro?fn(e,Nt):(e.state=null,t===Mn?fn(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 Nt;for(c===1&&(e.adler=Kv(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(c===0&&(cn(i.head),i.strstart=0,i.block_start=0,i.insert=0),g=new ut.Buf8(i.w_size),ut.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,Bn(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,Bn(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((PM,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 Nn(e){if(!(this instanceof Nn))return new Nn(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(Nn,"Deflate");Nn.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)};Nn.prototype.onData=function(e){this.chunks.push(e)};Nn.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 Nn(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=Nn;so.deflate=af;so.deflateRaw=sR;so.gzip=uR});var lD=O((BM,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((NM,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,Je=new cD.Buf16(Ni+1),jr=new cD.Buf16(Ni+1),ti=null,or=0,$t,ri,_r;for(g=0;g<=Ni;g++)Je[g]=0;for(b=0;b<s;b++)Je[r[i+b]]++;for(L=p,S=Ni;S>=1&&Je[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&&Je[x]===0;x++);for(L<x&&(L=x),A=1,g=1;g<=Ni;g++)if(A<<=1,A-=Je[g],A<0)return-1;if(A>0&&(t===dD||S!==1))return-1;for(jr[1]=0,g=1;g<Ni;g++)jr[g+1]=jr[g]+Je[g];for(b=0;b<s;b++)r[i+b]!==0&&(f[jr[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(;;){$t=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]=$t<<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++,--Je[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-=Je[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(er=>{"use strict";var kt=Nr(),ff=Zh(),Dr=Kh(),pR=lD(),uo=mD(),gR=0,HD=1,zD=2,vD=4,mR=5,cu=6,Wn=0,vR=1,DR=2,Wt=-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 kt.Buf16(320),this.work=new kt.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?Wt:(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 kt.Buf32(bR),t.distcode=t.distdyn=new kt.Buf32(_R),t.sane=1,t.back=-1,Wn)}o(jD,"inflateResetKeep");function ZD(e){var t;return!e||!e.state?Wt:(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))?Wt:(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!==Wn&&(e.state=null),r):Wt}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 kt.Buf32(512),hf=new kt.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 kt.Buf8(u.wsize)),i>=u.wsize?(kt.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),kt.arraySet(u.window,t,r-i,s,u.wnext),i-=s,i?(kt.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 kt.Buf8(4),fe,Z,Je=[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 Wt;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=Wn;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)),kt.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;kt.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[Je[r.have++]]=p&7,p>>>=3,g-=3}for(;r.have<19;)r.lens[Je[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 Wt}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===Wn&&(z=wR),z)}o(FR,"inflate");function AR(e){if(!e||!e.state)return Wt;var t=e.state;return t.window&&(t.window=null),e.state=null,Wn}o(AR,"inflateEnd");function TR(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Wt:(r.head=t,t.done=!1,Wn)}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)?Wt: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,Wn))}o(RR,"inflateSetDictionary");er.inflateReset=ZD;er.inflateReset2=KD;er.inflateResetKeep=jD;er.inflateInit=SR;er.inflateInit2=VD;er.inflate=FR;er.inflateEnd=AR;er.inflateGetHeader=TR;er.inflateSetDictionary=RR;er.inflateInfo="pako inflate (from Nodeca project)"});var gf=O((zM,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((GM,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 qn(e){if(!(this instanceof qn))return new qn(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(qn,"Inflate");qn.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)};qn.prototype.onData=function(e){this.chunks.push(e)};qn.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 qn(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=qn;co.inflate=vf;co.inflateRaw=MR;co.ungzip=vf});var aw=O((KM,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=xt(),HR=WR?"uint8array":"array";mu.magic="\b\0";function Hn(e,t){gu.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}o(Hn,"FlateWorker");ow.inherits(Hn,gu);Hn.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(ow.transformTo(HR,e.data),!1)};Hn.prototype.flush=function(){gu.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Hn.prototype.cleanUp=function(){gu.prototype.cleanUp.call(this),this._pako=null};Hn.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 Hn("Deflate",e)};mu.uncompressWorker=function(){return new Hn("Inflate",{})}});var wf=O(Df=>{"use strict";var uw=xt();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(zn=>{"use strict";zn.LOCAL_FILE_HEADER="PK";zn.CENTRAL_FILE_HEADER="PK";zn.CENTRAL_DIRECTORY_END="PK";zn.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";zn.ZIP64_CENTRAL_DIRECTORY_END="PK";zn.DATA_DESCRIPTOR="PK\x07\b"});var fw=O((e8,hw)=>{"use strict";var qi=Fe(),Hi=xt(),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 Je=vu.LOCAL_FILE_HEADER+Z+p+I,jr=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:Je,dirRecord:jr}},"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 tr(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(tr,"ZipFileWorker");qi.inherits(tr,Hi);tr.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}}))};tr.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};tr.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};tr.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}})};tr.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};tr.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};tr.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};tr.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};tr.prototype.lock=function(){Hi.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};hw.exports=tr});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((i8,gw)=>{"use strict";var YR=Fe(),Du=xt();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((o8,kw)=>{"use strict";var JR=Ai(),fo=Fe(),yw=xt(),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((u8,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((c8,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((f8,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((p8,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((m8,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((D8,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((w8,zw)=>{"use strict";var Ff=Ef(),pn=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 "+pn.pretty(this.compressionMethod)+" unknown (inner file : "+pn.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===pn.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===pn.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===pn.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===pn.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=pn.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var s=pn.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((b8,jw)=>{"use strict";var DI=Ef(),zr=Fe(),rr=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(rr.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(rr.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(rr.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,rr.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(rr.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(rr.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(rr.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,rr.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(rr.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(rr.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,rr.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((C8,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((k8,Jw)=>{"use strict";function qt(){if(!(this instanceof qt))return new qt;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 qt;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}o(qt,"JSZip");qt.prototype=Sw();qt.prototype.loadAsync=Yw();qt.support=Br();qt.defaults=Sh();qt.version="3.10.1";qt.loadAsync=function(e,t){return new qt().loadAsync(e,t)};qt.external=Si();Jw.exports=qt});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,Je=1,jr=2,ti=3,or=1/0,$t=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]",jt="[object Map]",ca="[object Number]",t_="[object Null]",Cr="[object Object]",ap="[object Promise]",r_="[object Proxy]",ha="[object RegExp]",Zt="[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[jt]=Ce[ca]=Ce[Cr]=Ce[ha]=Ce[Zt]=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[jt]=be[ca]=be[Cr]=be[ha]=be[Zt]=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,bn=Rl&&typeof go=="object"&&go&&!go.nodeType&&go,Ap=bn&&bn.exports===Rl,Il=Ap&&Fp.process,At=function(){try{var _=bn&&bn.require&&bn.require("util").types;return _||Il&&Il.binding&&Il.binding("util")}catch{}}(),Tp=At&&At.isArrayBuffer,Rp=At&&At.isDate,Ip=At&&At.isMap,Pp=At&&At.isRegExp,Lp=At&&At.isSet,Mp=At&&At.isTypedArray;function vt(_,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(vt,"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 Tt(_,E){for(var k=-1,H=_==null?0:_.length;++k<H&&E(_[k],k,_)!==!1;);return _}o(Tt,"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 Zr(_,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(Zr,"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 Kr(_,E){for(var k=-1,H=E.length,X=_.length;++k<H;)_[X+k]=E[k];return _}o(Kr,"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 Dt(_){return function(E){return _(E)}}o(Dt,"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 Vr(_,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(Vr,"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 Kt(_){return si(_)?FC(_):hC(_)}o(Kt,"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:Yr.defaults(He.Object(),E,Yr.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,Rt=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,Jr=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=Jr?Jr.isConcatSpreadable:e,ma=Jr?Jr.iterator:e,_n=Jr?Jr.toStringTag:e,ts=function(){try{var n=En(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,Xe=Ne.min,zC=H.now,GC=E.parseInt,Xp=Ne.random,$C=Zo.reverse,Gl=En(E,"DataView"),va=En(E,"Map"),$l=En(E,"Promise"),ci=En(E,"Set"),Da=En(E,"WeakMap"),wa=En(ye,"create"),is=Da&&new Da,hi={},jC=Fn(Gl),ZC=Fn(va),KC=Fn($l),VC=Fn(ci),YC=Fn(Da),as=Jr?Jr.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 It)return n;if(ve.call(n,"__wrapped__"))return em(n)}return new It(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 It(n,a){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=e}o(It,"LodashWrapper"),m.templateSettings={escape:c_,evaluate:h_,interpolate:up,variable:"",imports:{_:m}},m.prototype=os.prototype,m.prototype.constructor=m,It.prototype=fi(os.prototype),It.prototype.constructor=It;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__=ct(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=ct(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=ct(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=Xe(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,bt=oe.type,ot=ue(Y);if(bt==jr)Y=ot;else if(!ot){if(bt==Je)continue e;break e}}V[W++]=Y}return V}o(QC,"lazyValue"),se.prototype=fi(os.prototype),se.prototype.constructor=se;function Cn(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(Cn,"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"),Cn.prototype.clear=e1,Cn.prototype.delete=t1,Cn.prototype.get=r1,Cn.prototype.has=n1,Cn.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 Cn,map:new(va||xr),string:new Cn}}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 xn(n){var a=-1,l=n==null?0:n.length;for(this.__data__=new kr;++a<l;)this.add(n[a])}o(xn,"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"),xn.prototype.add=xn.prototype.push=g1,xn.prototype.has=m1;function Vt(n){var a=this.__data__=new xr(n);this.size=a.size}o(Vt,"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"),Vt.prototype.clear=v1,Vt.prototype.delete=D1,Vt.prototype.get=w1,Vt.prototype.has=y1,Vt.prototype.set=b1;function eg(n,a){var l=Q(n),h=!l&&An(n),d=!l&&!h&&rn(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(ct(n),kn(a,0,n.length))}o(_1,"arraySampleSize");function C1(n){return ys(ct(n))}o(C1,"arrayShuffle");function jl(n,a,l){(l!==e&&!Yt(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)&&Yt(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(Yt(n[l][0],a))return l;return-1}o(ss,"assocIndexOf");function x1(n,a,l,h){return Xr(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,ft(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 kn(n,a,l){return n===n&&(l!==e&&(n=n<=l?n:l),a!==e&&(n=n>=a?n:a)),n}o(kn,"baseClamp");function Pt(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 ct(n,w)}else{var M=Qe(n),W=M==No||M==ip;if(rn(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 Vt);var j=D.get(n);if(j)return j;D.set(n,w),ym(n)?n.forEach(function(Y){w.add(Pt(Y,a,l,Y,n,D))}):Dm(n)&&n.forEach(function(Y,oe){w.set(oe,Pt(Y,a,l,oe,n,D))});var V=T?C?dc:fc:C?ft:ze,ie=R?e:V(n);return Tt(ie||n,function(Y,oe){ie&&(oe=Y,Y=n[oe]),ba(w,oe,Pt(Y,a,l,oe,n,D))}),w}o(Pt,"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 Rt(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,Dt(l))),h?(D=Pl,w=!1):a.length>=r&&(D=ga,w=!1,a=new xn(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 Xr=Rg(ur),ag=Rg(Vl,!0);function E1(n,a){var l=!0;return Xr(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&&!yt(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 Xr(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):Kr(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 Zr(a,function(l){return Tr(n[l])})}o(ls,"baseFunctions");function Sn(n,a){a=en(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(Sn,"baseGet");function ug(n,a,l){var h=a(n);return Q(n)?h:Kr(h,l(n))}o(ug,"baseGetAllKeys");function it(n){return n==null?n===e?n_:t_:_n&&_n in ye(n)?cx(n):Cx(n)}o(it,"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>=Xe(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,Dt(a))),C=Xe(R.length,C),y[w]=!l&&(a||d>=120&&R.length>=120)?new xn(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=en(a,n),n=Vg(n,a);var h=n==null?n:n[cr(Mt(a))];return h==null?e:vt(h,n,l)}o(Ca,"baseInvoke");function lg(n){return Te(n)&&it(n)==ni}o(lg,"baseIsArguments");function P1(n){return Te(n)&&it(n)==pa}o(P1,"baseIsArrayBuffer");function L1(n){return Te(n)&&it(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:Qe(n),T=y?Bo:Qe(a);C=C==ni?Cr:C,T=T==ni?Cr:T;var R=C==Cr,M=T==Cr,W=C==T;if(W&&rn(n)){if(!rn(a))return!1;w=!0,R=!1}if(W&&!R)return D||(D=new Vt),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 Vt),d(ie,Y,l,h,D)}}return W?(D||(D=new Vt),lx(n,a,l,h,d,D)):!1}o(M1,"baseIsEqualDeep");function O1(n){return Te(n)&&Qe(n)==jt}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 Vt;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(Fn(n))}o(cg,"baseIsNative");function B1(n){return Te(n)&&it(n)==ha}o(B1,"baseIsRegExp");function U1(n){return Te(n)&&Qe(n)==Zt}o(U1,"baseIsSet");function N1(n){return Te(n)&&Ss(n.length)&&!!Ce[it(n)]}o(N1,"baseIsTypedArray");function hg(n){return typeof n=="function"?n:n==null?dt: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=ht(n)?k(n.length):[];return Xr(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 Vt),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)}},ft)}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&&rn(C),V=!W&&!j&&mi(C);R=C,W||j||V?Q(y)?R=y:Ie(y)?R=ct(y):j?(M=!1,R=Sg(C,!0)):V?(M=!1,R=Eg(C,!0)):R=[]:Aa(C)||An(C)?(R=y,An(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 Sn(w,D.length===1?D[0]:D)}:D}):a=[dt];var h=-1;a=ke(a,Dt(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=Sn(n,w);l(y,w)&&ka(D,en(w,n),y)}return D}o(vg,"basePickBy");function z1(n){return function(a){return Sn(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=ct(a)),l&&(y=ke(n,Dt(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>$t)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,dt),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,kn(a,0,l.length))}o(j1,"baseSampleSize");function ka(n,a,l,h){if(!Ee(n))return n;a=en(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}:dt,Z1=ts?function(n,a){return ts(n,"toString",{configurable:!0,enumerable:!1,value:Tc(a),writable:!0})}:dt;function K1(n){return ys(vi(n))}o(K1,"baseShuffle");function Lt(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(Lt,"baseSlice");function V1(n,a){var l;return Xr(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&&!yt(w)&&(l?w<=a:w<a)?h=D+1:d=D}return d}return ic(n,a,dt,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=yt(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=yt(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 Xe(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||!Yt(y,C)){var C=y;D[d++]=w===0?0:w}}return D}o(yg,"baseSortedUniq");function bg(n){return typeof n=="number"?n:yt(n)?_r:+n}o(bg,"baseToNumber");function wt(n){if(typeof n=="string")return n;if(Q(n))return ke(n,wt)+"";if(yt(n))return Qp?Qp.call(n):"";var a=n+"";return a=="0"&&1/n==-or?"-0":a}o(wt,"baseToString");function Qr(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 xn}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(Qr,"baseUniq");function ac(n,a){return a=en(a,n),n=Vg(n,a),n==null||delete n[cr(Mt(a))]}o(ac,"baseUnset");function _g(n,a,l,h){return ka(n,a,l(Sn(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?Lt(n,h?0:D,h?D+1:d):Lt(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,Kr([h],d.args))},l)}o(Cg,"baseWrapperValue");function oc(n,a,l){var h=n.length;if(h<2)return h?Qr(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 Qr(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:dt}o(uc,"castFunction");function en(n,a){return Q(n)?n:vc(n,a)?[n]:Qg(me(n))}o(en,"castPath");var Y1=ae;function tn(n,a,l){var h=n.length;return l=l===e?h:l,!a&&l>=h?n:Lt(n,a,l)}o(tn,"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=yt(n),w=a!==e,y=a===null,C=a===a,T=yt(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 ct(n,a){var l=-1,h=n.length;for(a||(a=k(h));++l<h;)a[l]=n[l];return a}o(ct,"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&&at(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(!ht(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)?Kt(a):e,h=l?l[0]:a.charAt(0),d=l?tn(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?[]:Vr(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 vt(R,this,w)}return o(d,"wrapper"),d}o(ix,"createCurry");function Lg(n){return function(a,l,h){var d=ye(a);if(!ht(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=It.prototype.thru;for(n&&a.reverse();h--;){var D=a[h];if(typeof D!="function")throw new Rt(s);if(d&&!w&&Ds(D)=="wrapper")var w=new It([],!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),bt=oe;bt--;)ue[bt]=arguments[bt];if(j)var ot=gi(Y),_t=mC(ue,ot);if(h&&(ue=Ag(ue,h,d,j)),D&&(ue=Tg(ue,D,w,j)),oe-=_t,j&&oe<T){var Pe=Vr(ue,ot);return Ug(n,a,ps,Y.placeholder,l,ue,Pe,y,C,T-oe)}var Jt=M?l:this,Ir=W?Jt[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(Jt,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=wt(l),h=wt(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,Dt(K())),ae(function(l){var h=this;return n(a,function(d){return vt(d,h,l)})})})}o(cc,"createOver");function ms(n,a){a=a===e?" ":wt(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)?tn(Kt(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 vt(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"&&at(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=Ot(a),l=Ot(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=Ot(l),h=h==null?0:Xe(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=Qe(a);return l==jt?ql(a):l==Zt?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 Rt(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||Yt(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 xn: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 Yt(+n,+a);case Uo:return n.name==a.name&&n.message==a.message;case ha:case fa:return n==a+"";case jt:var y=ql;case Zt: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 bt=w?h(ue,oe,W,a,n,D):h(oe,ue,W,n,a,D);if(!(bt===e?oe===ue||d(oe,ue,l,h,D):bt)){ie=!1;break}Y||(Y=W=="constructor")}if(ie&&!Y){var ot=n.constructor,_t=a.constructor;ot!=_t&&"constructor"in n&&"constructor"in a&&!(typeof ot=="function"&&ot instanceof ot&&typeof _t=="function"&&_t instanceof _t)&&(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,ft,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 En(n,a){var l=yC(n,a);return cg(l)?l:e}o(En,"getNative");function cx(n){var a=ve.call(n,_n),l=n[_n];try{n[_n]=e;var h=!0}catch{}var d=Yo.call(n);return h&&(a?n[_n]=l:delete n[_n]),d}o(cx,"getRawTag");var mc=zl?function(n){return n==null?[]:(n=ye(n),Zr(zl(n),function(a){return Vp.call(n,a)}))}:Lc,zg=zl?function(n){for(var a=[];n;)Kr(a,mc(n)),n=Qo(n);return a}:Lc,Qe=it;(Gl&&Qe(new Gl(new ArrayBuffer(1)))!=ii||va&&Qe(new va)!=jt||$l&&Qe($l.resolve())!=ap||ci&&Qe(new ci)!=Zt||Da&&Qe(new Da)!=da)&&(Qe=o(function(n){var a=it(n),l=a==Cr?n.constructor:e,h=l?Fn(l):"";if(h)switch(h){case jC:return ii;case ZC:return jt;case KC:return ap;case VC:return Zt;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=Xe(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=en(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)||An(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 jt:return new h;case ca:case fa:return new h(n);case ha:return X1(n);case Zt: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
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,
|
|
4
|
+
`)}o(gx,"insertWrapDetails");function mx(n){return Q(n)||An(n)||!!(Yp&&n&&n[Yp])}o(mx,"isFlattenable");function Ar(n,a){var l=typeof n;return a=a??$t,!!a&&(l=="number"||l!="symbol"&&F_.test(n))&&n>-1&&n%1==0&&n<a}o(Ar,"isIndex");function at(n,a,l){if(!Ee(l))return!1;var h=typeof a;return(h=="number"?ht(l)&&Ar(a,l.length):h=="string"&&a in l)?Yt(l[a],n):!1}o(at,"isIterateeCall");function vc(n,a){if(Q(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||yt(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?Vr(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?Vr(n[5],v):a[6]),y=a[7],y&&(n[7]=y),h&F&&(n[8]=n[8]==null?a[8]:Xe(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),vt(n,this,y)}}o(Kg,"overRest");function Vg(n,a){return a.length<2?n:Sn(n,Lt(a,0,-1))}o(Vg,"parent");function xx(n,a){for(var l=n.length,h=Xe(a.length,l),d=ct(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"||yt(n))return n;var a=n+"";return a=="0"&&1/n==-or?"-0":a}o(cr,"toKey");function Fn(n){if(n!=null){try{return Vo.call(n)}catch{}try{return n+""}catch{}}return""}o(Fn,"toSource");function kx(n,a){return Tt(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 It(n.__wrapped__,n.__chain__);return a.__actions__=ct(n.__actions__),a.__index__=n.__index__,a.__values__=n.__values__,a}o(em,"wrapperClone");function Sx(n,a,l){(l?at(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++]=Lt(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 Kr(Q(l)?ct(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=Mt(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=Mt(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),Lt(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,Lt(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"&&at(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):Xe(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?Lt(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=Mt(n),l=ke(n,sc);return a===Mt(l)?a=e:l.pop(),l.length&&l[0]===n[0]?Jl(l,K(a,2)):[]}),Gx=ae(function(n){var a=Mt(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 Mt(n){var a=n==null?0:n.length;return a?n[a-1]:e}o(Mt,"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):Xe(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"&&at(n,a,l)?(a=0,l=h):(a=a==null?0:re(a),l=l===e?h:re(l)),Lt(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&&Yt(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(Yt(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?Lt(n,1,a):[]}o(uk,"tail");function lk(n,a,l){return n&&n.length?(a=l||a===e?1:re(a),Lt(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,Lt(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 Qr(Ze(n,1,Ie,!0))}),pk=ae(function(n){var a=Mt(n);return Ie(a)&&(a=e),Qr(Ze(n,1,Ie,!0),K(a,2))}),gk=ae(function(n){var a=Mt(n);return a=typeof a=="function"?a:e,Qr(Ze(n,1,Ie,!0),e,a)});function mk(n){return n&&n.length?Qr(n):[]}o(mk,"uniq");function vk(n,a){return n&&n.length?Qr(n,K(a,2)):[]}o(vk,"uniqBy");function Dk(n,a){return a=typeof a=="function"?a:e,n&&n.length?Qr(n,e,a):[]}o(Dk,"uniqWith");function _c(n){if(!(n&&n.length))return[];var a=0;return n=Zr(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 vt(a,e,h)})}o(om,"unzipWith");var wk=ae(function(n,a){return Ie(n)?_a(n,a):[]}),yk=ae(function(n){return oc(Zr(n,Ie))}),bk=ae(function(n){var a=Mt(n);return Ie(a)&&(a=e),oc(Zr(n,Ie),K(a,2))}),_k=ae(function(n){var a=Mt(n);return a=typeof a=="function"?a:e,oc(Zr(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 It(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 It(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 It(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&&at(n,a,l)&&(a=e),h(n,K(a,3))}o(Bk,"every");function Uk(n,a){var l=Q(n)?Zr: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)?Tt:Xr;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=ht(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=ht(n)?k(n.length):[];return Xr(n,function(w){D[++h]=d?vt(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,Xr)}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)?Zr: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?at(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(ht(n))return Es(n)?ui(n):n.length;var a=Qe(n);return a==jt||a==Zt?n.size:Ql(n).length}o(rS,"size");function nS(n,a,l){var h=Q(n)?Ml:V1;return l&&at(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&&at(n,a[0],a[1])?a=[]:l>2&&at(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 Rt(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 Rt(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=Vr(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=Vr(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 Rt(s);a=Ot(a)||0,Ee(l)&&(R=!!l.leading,M="maxWait"in l,D=M?We(Ot(l.maxWait)||0,a):D,W="trailing"in l?!!l.trailing:W);function j(Pe){var Jt=h,Ir=d;return h=d=e,T=Pe,w=n.apply(Ir,Jt),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 Jt=Pe-C,Ir=Pe-T,Lm=a-Jt;return M?Xe(Lm,D-Ir):Lm}o(ie,"remainingWait");function Y(Pe){var Jt=Pe-C,Ir=Pe-T;return C===e||Jt>=a||Jt<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 bt(){y!==e&&kg(y),T=0,h=C=d=y=e}o(bt,"cancel");function ot(){return y===e?w:ue(Cs())}o(ot,"flush");function _t(){var Pe=Cs(),Jt=Y(Pe);if(h=arguments,d=this,C=Pe,Jt){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(_t,"debounced"),_t.cancel=bt,_t.flush=ot,_t}o(gm,"debounce");var oS=ae(function(n,a){return ig(n,1,a)}),sS=ae(function(n,a,l){return ig(n,Ot(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 Rt(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 Rt(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],Dt(K())):ke(Ze(a,1),Dt(K()));var l=a.length;return ae(function(h){for(var d=-1,D=Xe(h.length,l);++d<D;)h[d]=a[d].call(this,h[d]);return vt(n,this,h)})}),xc=ae(function(n,a){var l=Vr(a,gi(xc));return Er(n,N,e,a,l)}),mm=ae(function(n,a){var l=Vr(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 Rt(s);return a=a===e?a:re(a),ae(n,a)}o(fS,"rest");function dS(n,a){if(typeof n!="function")throw new Rt(s);return a=a==null?0:We(re(a),0),ae(function(l){var h=l[a],d=tn(l,0,a);return h&&Kr(d,h),vt(n,this,d)})}o(dS,"spread");function pS(n,a,l){var h=!0,d=!0;if(typeof n!="function")throw new Rt(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 Pt(n,b)}o(DS,"clone");function wS(n,a){return a=typeof a=="function"?a:e,Pt(n,b,a)}o(wS,"cloneWith");function yS(n){return Pt(n,p|b)}o(yS,"cloneDeep");function bS(n,a){return a=typeof a=="function"?a:e,Pt(n,p|b,a)}o(bS,"cloneDeepWith");function _S(n,a){return a==null||ng(n,a,ze(a))}o(_S,"conformsTo");function Yt(n,a){return n===a||n!==n&&a!==a}o(Yt,"eq");var CS=vs(Yl),xS=vs(function(n,a){return n>=a}),An=lg(function(){return arguments}())?lg:function(n){return Te(n)&&ve.call(n,"callee")&&!Vp.call(n,"callee")},Q=k.isArray,kS=Tp?Dt(Tp):P1;function ht(n){return n!=null&&Ss(n.length)&&!Tr(n)}o(ht,"isArrayLike");function Ie(n){return Te(n)&&ht(n)}o(Ie,"isArrayLikeObject");function SS(n){return n===!0||n===!1||Te(n)&&it(n)==ua}o(SS,"isBoolean");var rn=WC||Mc,ES=Rp?Dt(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(ht(n)&&(Q(n)||typeof n=="string"||typeof n.splice=="function"||rn(n)||mi(n)||An(n)))return!n.length;var a=Qe(n);if(a==jt||a==Zt)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=it(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=it(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<=$t}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?Dt(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)&&it(n)==ca}o(wm,"isNumber");function Aa(n){if(!Te(n)||it(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?Dt(Pp):B1;function NS(n){return vm(n)&&n>=-$t&&n<=$t}o(NS,"isSafeInteger");var ym=Lp?Dt(Lp):U1;function Es(n){return typeof n=="string"||!Q(n)&&Te(n)&&it(n)==fa}o(Es,"isString");function yt(n){return typeof n=="symbol"||Te(n)&&it(n)==Wo}o(yt,"isSymbol");var mi=Mp?Dt(Mp):N1;function WS(n){return n===e}o(WS,"isUndefined");function qS(n){return Te(n)&&Qe(n)==da}o(qS,"isWeakMap");function HS(n){return Te(n)&&it(n)==i_}o(HS,"isWeakSet");var zS=vs(ec),GS=vs(function(n,a){return n<=a});function bm(n){if(!n)return[];if(ht(n))return Es(n)?Kt(n):ct(n);if(ma&&n[ma])return _C(n[ma]());var a=Qe(n),l=a==jt?ql:a==Zt?jo:vi;return l(n)}o(bm,"toArray");function Rr(n){if(!n)return n===0?n:0;if(n=Ot(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?kn(re(n),0,sr):0}o(_m,"toLength");function Ot(n){if(typeof n=="number")return n;if(yt(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(Ot,"toNumber");function Cm(n){return lr(n,ft(n))}o(Cm,"toPlainObject");function $S(n){return n?kn(re(n),-$t,$t):n===0?n:0}o($S,"toSafeInteger");function me(n){return n==null?"":wt(n)}o(me,"toString");var jS=di(function(n,a){if(Ea(a)||ht(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,ft(a),n)}),Fs=di(function(n,a,l,h){lr(a,ft(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&&at(a[0],a[1],d)&&(h=1);++l<h;)for(var D=a[l],w=ft(D),y=-1,C=w.length;++y<C;){var T=w[y],R=n[T];(R===e||Yt(R,li[T])&&!ve.call(n,T))&&(n[T]=D[T])}return n}),JS=ae(function(n){return n.push(e,qg),vt(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),ft)}o(eE,"forIn");function tE(n,a){return n==null?n:sg(n,K(a,3),ft)}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,ft(n))}o(aE,"functionsIn");function Ec(n,a,l){var h=n==null?e:Sn(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(dt)),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 ht(n)?eg(n):Ql(n)}o(ze,"keys");function ft(n){return ht(n)?eg(n,!0):W1(n)}o(ft,"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=en(D,n),h||(h=D.length>1),D}),lr(n,dc(n),l),h&&(l=Pt(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=en(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(ft);function wE(n,a,l){var h=Q(n),d=h||rn(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?Tt: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,ft(n))}o(CE,"valuesIn");function xE(n,a,l){return l===e&&(l=a,a=e),l!==e&&(l=Ot(l),l=l===l?l:0),a!==e&&(a=Ot(a),a=a===a?a:0),kn(Ot(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=Ot(n),R1(n,a,l)}o(kE,"inRange");function SE(n,a,l){if(l&&typeof l!="boolean"&&at(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 Xe(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=wt(a);var h=n.length;l=l===e?h:kn(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?at(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"&&at(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=wt(a),!a&&si(n))?tn(Kt(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:kn(re(l),0,n.length),a=wt(a),n.slice(l,l+a.length)==a}o(zE,"startsWith");function GE(n,a,l){var h=m.templateSettings;l&&at(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,bt,ot,_t){return ue||(ue=bt),M+=n.slice(T,_t).replace(T_,wC),oe&&(y=!0,M+=`' +
|
|
6
6
|
__e(`+oe+`) +
|
|
7
|
-
'`),
|
|
8
|
-
`+
|
|
7
|
+
'`),ot&&(C=!0,M+=`';
|
|
8
|
+
`+ot+`;
|
|
9
9
|
__p += '`),ue&&(M+=`' +
|
|
10
10
|
((__t = (`+ue+`)) == null ? '' : __t) +
|
|
11
|
-
'`),T=
|
|
11
|
+
'`),T=_t+Y.length,Y}),M+=`';
|
|
12
12
|
`;var V=ve.call(a,"variable")&&a.variable;if(!V)M=`with (obj) {
|
|
13
13
|
`+M+`
|
|
14
14
|
}
|
|
@@ -18,11 +18,11 @@ __p += '`),ue&&(M+=`' +
|
|
|
18
18
|
function print() { __p += __j.call(arguments, '') }
|
|
19
19
|
`:`;
|
|
20
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(`
|
|
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=wt(a)))return n;var h=Kt(n),d=Kt(a),D=Hp(h,d),w=zp(h,d)+1;return tn(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=wt(a)))return n;var h=Kt(n),d=zp(h,Kt(a))+1;return tn(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=wt(a)))return n;var h=Kt(n),d=Hp(h,Kt(a));return tn(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?wt(a.omission):h}n=me(n);var D=n.length;if(si(n)){var w=Kt(n);D=w.length}if(l>=D)return n;var y=l-ui(h);if(y<1)return h;var C=w?tn(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(wt(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 vt(n,e,a)}catch(l){return kc(l)?l:new X(l)}}),QE=Fr(function(n,a){return Tt(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 Rt(s);return[l(h[0]),h[1]]}):[],ae(function(h){for(var d=-1;++d<a;){var D=n[d];if(vt(D[0],this,h))return vt(D[1],this,h)}})}o(eF,"cond");function tF(n){return S1(Pt(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 dt(n){return n}o(dt,"identity");function Rc(n){return hg(typeof n=="function"?n:Pt(n,p))}o(Rc,"iteratee");function aF(n){return dg(Pt(n,p))}o(aF,"matches");function oF(n,a){return pg(n,Pt(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 Tt(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__=ct(this.__actions__);return M.push({func:C,args:arguments,thisArg:n}),R.__chain__=T,R}return C.apply(n,Kr([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:Sn(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>$t)return[];var l=sr,h=Xe(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):yt(n)?[n]:ct(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,dt,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,dt)}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,dt,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,dt):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=ft,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=Yt,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=dt,m.includes=$k,m.indexOf=Wx,m.inRange=kE,m.invoke=lE,m.isArguments=An,m.isArray=Q,m.isArrayBuffer=kS,m.isArrayLike=ht,m.isArrayLikeObject=Ie,m.isBoolean=SS,m.isBuffer=rn,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=yt,m.isTypedArray=mi,m.isUndefined=WS,m.isWeakMap=qS,m.isWeakSet=HS,m.join=$x,m.kebabCase=RE,m.last=Mt,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=Ot,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,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){m[n].placeholder=m}),Tt(["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__=Xe(l,h.__takeCount__):h.__views__.push({size:Xe(l,sr),type:n+(h.__dir__<0?"Right":"")}),h},se.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Tt(["filter","map","takeWhile"],function(n,a){var l=a+1,h=l==Je||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}}),Tt(["head","last"],function(n,a){var l="take"+(a?"Right":"");se.prototype[n]=function(){return this[l](1).value()[0]}}),Tt(["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(dt)},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,Kr([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 It(Y,W)}return V&&ie?n.apply(this,y):(Y=this.thru(M),V?h?Y.value()[0]:Y.value():Y)})}),Tt(["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"),Yr=TC();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(He._=Yr,define(function(){return Yr})):bn?((bn.exports=Yr)._=Yr,Rl._=Yr):He._=Yr}).call($i)});var Qw=O(Gn=>{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");Gn.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};Gn.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};Gn.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)};Gn.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};Gn.jaccard=function(e,t){return e=wr(e),t=wr(t),xu.intersection(e,t).length/xu.union(e,t).length};Gn.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((HB,ay)=>{var ji=1e3,Zi=ji*60,Ki=Zi*60,jn=Ki*24,LI=jn*7,MI=jn*365.25;ay.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return OI(e);if(r==="number"&&isFinite(e))return t.long?UI(e):BI(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function OI(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*MI;case"weeks":case"week":case"w":return r*LI;case"days":case"day":case"d":return r*jn;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(OI,"parse");function BI(e){var t=Math.abs(e);return t>=jn?Math.round(e/jn)+"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(BI,"fmtShort");function UI(e){var t=Math.abs(e);return t>=jn?Eu(e,t,jn,"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(UI,"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((GB,sy)=>{function NI(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(NI,"setup");sy.exports=NI});var uy=O((St,Fu)=>{St.formatArgs=qI;St.save=HI;St.load=zI;St.useColors=WI;St.storage=GI();St.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`."))}})();St.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 WI(){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(WI,"useColors");function qI(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(qI,"formatArgs");St.log=console.debug||console.log||(()=>{});function HI(e){try{e?St.storage.setItem("debug",e):St.storage.removeItem("debug")}catch{}}o(HI,"save");function zI(){let e;try{e=St.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}o(zI,"load");function GI(){try{return localStorage}catch{}}o(GI,"localstorage");Fu.exports=Nf()(St);var{formatters:$I}=Fu.exports;$I.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var cy=O((ZB,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((KB,fy)=>{"use strict";var jI=require("os"),hy=require("tty"),Ht=cy(),{env:Ge}=process,mn;Ht("no-color")||Ht("no-colors")||Ht("color=false")||Ht("color=never")?mn=0:(Ht("color")||Ht("colors")||Ht("color=true")||Ht("color=always"))&&(mn=1);"FORCE_COLOR"in Ge&&(Ge.FORCE_COLOR==="true"?mn=1:Ge.FORCE_COLOR==="false"?mn=0:mn=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(mn===0)return 0;if(Ht("color=16m")||Ht("color=full")||Ht("color=truecolor"))return 3;if(Ht("color=256"))return 2;if(e&&!t&&mn===void 0)return 0;let r=mn||0;if(Ge.TERM==="dumb")return r;if(process.platform==="win32"){let i=jI.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 ZI(e){let t=qf(e,e&&e.isTTY);return Wf(t)}o(ZI,"getSupportLevel");fy.exports={supportsColor:ZI,stdout:Wf(qf(!0,hy.isatty(1))),stderr:Wf(qf(!0,hy.isatty(2)))}});var gy=O(($e,Tu)=>{var KI=require("tty"),Au=require("util");$e.init=tP;$e.log=XI;$e.formatArgs=YI;$e.save=QI;$e.load=eP;$e.useColors=VI;$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 VI(){return"colors"in $e.inspectOpts?!!$e.inspectOpts.colors:KI.isatty(process.stderr.fd)}o(VI,"useColors");function YI(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(`
|
|
22
22
|
`).join(`
|
|
23
|
-
`+u),e.push(s+"m+"+Tu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=
|
|
24
|
-
`)}o(
|
|
25
|
-
`).map(t=>t.trim()).join(" ")};py.O=function(e){return this.inspectOpts.colors=this.useColors,Au.inspect(e,this.inspectOpts)}});var my=O((
|
|
23
|
+
`+u),e.push(s+"m+"+Tu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=JI()+t+" "+e[0]}o(YI,"formatArgs");function JI(){return $e.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(JI,"getDate");function XI(...e){return process.stderr.write(Au.formatWithOptions($e.inspectOpts,...e)+`
|
|
24
|
+
`)}o(XI,"log");function QI(e){e?process.env.DEBUG=e:delete process.env.DEBUG}o(QI,"save");function eP(){return process.env.DEBUG}o(eP,"load");function tP(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(tP,"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((JB,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 rP(e){return e&&typeof e=="object"&&"default"in e?e.default:e}o(rP,"_interopDefault");var jf=rP(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(`
|
|
26
26
|
${t} is missing. :-)
|
|
27
27
|
|
|
28
28
|
I've tried loading ${this.packageNames.map(r=>`"${r}"`).join(", ")} - no luck.
|
|
@@ -32,7 +32,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
32
32
|
|
|
33
33
|
To get the latest stable version of ${t} run:
|
|
34
34
|
'yarn add ${this.moduleName}' or 'npm i ${this.moduleName}'
|
|
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"]),
|
|
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"]),lt=jf("playwright-extra:puppeteer-compat"),$f=o(e=>"unroute"in e,"isPlaywrightPage"),vy=o(e=>["parentFrame","frameLocator"].every(t=>t in e),"isPlaywrightFrame"),nP=o(e=>"newContext"in e,"isPlaywrightBrowser"),iP=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(iP(e))return e;if(lt("addPuppeteerCompat",Gr.objectToShim.size),$f(e)||vy(e)){let t=oP(e);return Gr.objectToShim.set(e,t),t}if(nP(e)){let t=sP(e);return Gr.objectToShim.set(e,t),t}return lt("Received unknown object:",Reflect.ownKeys(e)),e}o(Zf,"addPuppeteerCompat");var Dy={send:o(async(...e)=>{lt("dummy CDP client called","send",e)},"send"),on:o((...e)=>{lt("dummy CDP client called","on",e)},"on")};async function wo(e){let t=Gr.cdpSession.page.get(e);if(t)return lt("getPageCDPSession: use existing"),t;lt("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){lt("getPageCDPSession: error while creating session:",i.message),lt("getPageCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Dy}o(wo,"getPageCDPSession");async function aP(e){let t=Gr.cdpSession.browser.get(e);if(t)return lt("getBrowserCDPSession: use existing"),t;lt("getBrowserCDPSession: use new");try{return t=await e.newBrowserCDPSession(),Gr.cdpSession.browser.set(e,t),t}catch(r){lt("getBrowserCDPSession: error while creating session:",r.message),lt("getBrowserCDPSession: Unable create CDP session (most likely a different browser than chromium) - returning a dummy")}return Dy}o(aP,"getBrowserCDPSession");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:(lt("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||(lt("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(oP,"createPageShim");function sP(e){let t=Math.random().toString(36).substring(2,7);return new Proxy(e,{get(i,s){return s==="isCompatShim"||s==="isPlaywright"?!0:(lt("browser - get",t,s),s==="pages"?()=>e.contexts().flatMap(u=>u.pages().map(c=>Zf(c))):s==="userAgent"?async()=>(await(await aP(e)).send("Browser.getVersion")).userAgent:Reflect.get(i,s))}})}o(sP,"createBrowserShim");var zt=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:(zt("add puppeteer compatibility",t.name,r),[...i.map(f=>Zf(f))])}dispatch(t,...r){var i,s;let u=this.filterByMethod(t);zt("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;zt("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);zt("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(){zt("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])}zt("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(){zt("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=>{zt(r.name,"adding missing plugin",i.name),this.add(i)})})}resolveDependenciesStanza(){zt("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
36
|
The plugin '${s}' listed '${u}' as dependency,
|
|
37
37
|
which could not be found. Please install it:
|
|
38
38
|
|
|
@@ -44,34 +44,34 @@ Note: You don't need to require the plugin yourself,
|
|
|
44
44
|
unless you want to modify it's default settings.
|
|
45
45
|
|
|
46
46
|
If your bundler has issues with dynamic imports take a look at '.plugins.setDependencyResolution()'.
|
|
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===
|
|
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)){zt(s,"=> dependency already exists:",g.name);return}return r.add(g.name),zt(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(){zt("resolveDependencies"),this.resolvePluginsStanza(),this.resolveDependenciesStanza()}};o(Jf,"PluginList");var yo=Jf,nr=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)&&nr("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||{}),nr("launch",r),this.plugins.prepare(),r=await this.plugins.dispatchBlocking("beforeLaunch",r)||r,nr("launch with options",r),"userDataDir"in r&&(nr("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||{}),nr("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)),nr("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)),nr("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){nr("_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){nr("_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){nr(`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):(nr("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"),uP={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=uP;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((M6,Oy)=>{var hd=require("tty"),Ly,Wu,My,hP=((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(!hP)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((B6,fP)=>{fP.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((U6,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((o5,Gy)=>{"use strict";Gy.exports=pP;function dP(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(dP,"normalizeOpts");function pP(e){let t=dP(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(pP,"cliWidth")});var Zy=O((u5,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((l5,Ky)=>{"use strict";var gP=Zy();Ky.exports=e=>typeof e=="string"?e.replace(gP(),""):e});var Yy=O((c5,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((f5,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((d5,gd)=>{"use strict";var mP=Gu(),vP=Yy(),DP=Xy(),Qy=o(e=>{if(typeof e!="string"||e.length===0||(e=mP(e),e.length===0))return 0;e=e.replace(DP()," ");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+=vP(i)?2:1)}return t},"stringWidth");gd.exports=Qy;gd.exports.default=Qy});var rb=O((g5,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((m5,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 wP(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o(wP,"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=wP(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((D5,ab)=>{var $u=md();function yP(){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(yP,"buildGraph");function bP(e){let t=yP(),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(bP,"deriveBFS");function _P(e,t){return function(r){return t(e(r))}}o(_P,"link");function CP(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=_P($u[t[s].parent][s],i),s=t[s].parent;return i.conversion=r,i}o(CP,"wrapConversion");ab.exports=function(e){let t=bP(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]=CP(c,t))}return r}});var ub=O((y5,sb)=>{var vd=md(),xP=ob(),Qi={},kP=Object.keys(vd);function SP(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(SP,"wrapRaw");function EP(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(EP,"wrapRounded");kP.forEach(e=>{Qi[e]={},Object.defineProperty(Qi[e],"channels",{value:vd[e].channels}),Object.defineProperty(Qi[e],"labels",{value:vd[e].labels});let t=xP(e);Object.keys(t).forEach(i=>{let s=t[i];Qi[e][i]=EP(s),Qi[e][i].raw=SP(s)})});sb.exports=Qi});var pb=O((_5,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 FP(){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(FP,"assembleStyles");Object.defineProperty(db,"exports",{enumerable:!0,get:FP})});var vb=O((x5,mb)=>{"use strict";var Fo=eb(),AP=Gu(),TP=pb(),yd=new Set(["\x1B","\x9B"]),RP=39,gb=o(e=>`${yd.values().next().value}[${e}m`,"wrapAnsi"),IP=o(e=>e.split(" ").map(t=>Fo(t)),"wordLengths"),wd=o((e,t,r)=>{let i=[...t],s=!1,u=Fo(AP(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"),PP=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"),LP=o((e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let i="",s="",u,c=IP(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(PP)),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===RP?null:b}let g=TP.codes.get(Number(u));u&&g&&(i[v+1]===`
|
|
49
49
|
`?s+=gb(g):p===`
|
|
50
50
|
`&&(s+=gb(u)))}return s},"exec");mb.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,`
|
|
51
51
|
`).split(`
|
|
52
|
-
`).map(i=>
|
|
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(`
|
|
52
|
+
`).map(i=>LP(i,t,r)).join(`
|
|
53
|
+
`)});var xb=O((H5,Cb)=>{var BP=require("stream"),ra,br,Vu,Yu,xd=class xd extends BP{constructor(r={}){super(r);Bt(this,br);Bt(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((Y5,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 RI=require("@playwright/test");var As="checksum";var Ta=Me(require("path"));var pe=o(e=>new Promise(t=>setTimeout(t,e)),"awaitSleep"),et=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 l3={generateSelectionData:!1,navigationTimeout:30*1e3,actionTimeout:5*1e3};var GF=require("jsdom");var II=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,gn=class gn extends Rf{constructor(t){super(gn.preprocessRectangles(t))}getRectangleByTextAndSizeRanking(t,r){r=!r||!Number(r)?0:Number(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(gn,"RectangleIndex"),gn.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=gn.calculateArea(u.vertices),v=gn.calculateArea(c.vertices);return f-v})}),i},"preprocessRectangles"),gn.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=gn;var FI=!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,useArbitrarySelector:!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 et(s().click({position:t.clickOffset}),1e4,"Click before type timeout"),await et(s().pressSequentially(this.getActionFillValue(t)),1e4,"pressSequentially timeout");break;case"clear_and_type":await et(s().clear(),1e4,"Clear before type timeout"),await et(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.rectSizeIndex);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 et(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(FI&&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 $n=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 IB=__dirname+"/checksumlib.js",PB=1e3*30;var iy=!1;function Bf(e){iy=e}o(Bf,"setLogToConsole");function Oe(...e){iy&&console.log(...e)}o(Oe,"log");function PI(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(PI,"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}=PI(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 lP={useCDPSession:!0,trackLoadedResources:!0},rd=class rd extends Iu{constructor(r={},i={devtools:!0},s={}){super({...lP,...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 cP(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}o(cP,"createStore");function Iy(e,t){let r=cP(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 Zn(){let e=Ry.getStore();if(!e)throw new Uu("[Inquirer] Hook functions can only be called from within a prompt");return e}o(Zn,"getStore");function ld(){return Zn().rl}o(ld,"readline");function cd(e){let t=o((...r)=>{let i=Zn(),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=Zn(),{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(){Zn().handleChange()}o(Py,"handleChange");var xo={queue(e){let t=Zn(),{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=Zn();cd(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){let e=Zn();e.hooksCleanup.forEach(t=>{t==null||t()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function gt(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(gt,"useState");function Kn(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(Kn,"useEffect");var ir=Me(qu(),1),fd=Me(Wy(),1);var qy={prefix:ir.default.green("?"),spinner:{interval:fd.default.dots.interval,frames:fd.default.dots.frames.map(e=>ir.default.yellow(e))},style:{answer:ir.default.cyan,message:ir.default.bold,error:o(e=>ir.default.red(`> ${e}`),"error"),defaultAnswer:o(e=>ir.default.dim(`(${e})`),"defaultAnswer"),help:ir.default.dim,highlight:ir.default.cyan,key:o(e=>ir.default.cyan(ir.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 Vn(...e){let t=[qy,...e.filter(r=>r!=null)];return zy(...t)}o(Vn,"makeTheme");function ko({isLoading:e=!1,theme:t}){let[r,i]=gt(!1),[s,u]=gt(0),{prefix:c,spinner:f}=Vn(t);return Kn(()=>{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 vn(e){return gt({current:e})[0]}o(vn,"useRef");function So(e){let t=vn(e);t.current=e,Kn(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
54
|
`).flatMap(r=>(0,wb.default)(r,t,{trim:!1,hard:!0}).split(`
|
|
55
55
|
`).map(i=>i.trimEnd())).join(`
|
|
56
|
-
`)}o(Ao,"breakLines");function Zu(){return(0,Db.default)({defaultWidth:80,output:ld().output})}o(Zu,"readlineWidth");function
|
|
57
|
-
`)}o(
|
|
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
|
|
59
|
-
`).length,"height"),
|
|
60
|
-
`).pop()??"","lastLine");function Tb(e){return e>0?
|
|
56
|
+
`)}o(Ao,"breakLines");function Zu(){return(0,Db.default)({defaultWidth:80,output:ld().output})}o(Zu,"readlineWidth");function MP(e,t){return Ao(e,t).split(`
|
|
57
|
+
`)}o(MP,"split");function OP(e,t){let r=t.length,i=(e%r+r)%r;return[...t.slice(i),...t.slice(0,i)]}o(OP,"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=OP(i-s,c).slice(0,u),v=o(L=>f[L]==null?[]:MP(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=vn({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 Yn=[];Yn.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Yn.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yn.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,UP=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];UP(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,NP=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,Et,Re,na,ia,Jn,Dn,aa,kb,Sb,Ld=class Ld extends Xu{constructor(r){super();Bt(this,aa);Bt(this,Qu,Td.platform==="win32"?"SIGINT":"SIGHUP");Bt(this,Et,new Ed);Bt(this,Re);Bt(this,na);Bt(this,ia);Bt(this,Jn,{});Bt(this,Dn,!1);Pr(this,Re,r),Pr(this,Jn,{});for(let i of Yn)ee(this,Jn)[i]=()=>{let s=ee(this,Re).listeners(i),{count:u}=ee(this,Et),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,Et).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,Dn)===!1&&this.load();let s=i!=null&&i.alwaysLast?"afterExit":"exit";return ee(this,Et).on(s,r),()=>{ee(this,Et).removeListener(s,r),ee(this,Et).listeners.exit.length===0&&ee(this,Et).listeners.afterExit.length===0&&this.unload()}}load(){if(!ee(this,Dn)){Pr(this,Dn,!0),ee(this,Et).count+=1;for(let r of Yn)try{let i=ee(this,Jn)[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,Dn)&&(Pr(this,Dn,!1),Yn.forEach(r=>{let i=ee(this,Jn)[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,Et).count-=1)}};Qu=new WeakMap,Et=new WeakMap,Re=new WeakMap,na=new WeakMap,ia=new WeakMap,Jn=new WeakMap,Dn=new WeakMap,aa=new WeakSet,kb=o(function(r){return Ju(ee(this,Re))?(ee(this,Re).exitCode=r||0,ee(this,Et).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,Et).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:j5,unload:Z5}=NP(Ju(Td)?new Ad(Td):new Fd);var Rb=Me(Gu(),1),wn=Me(Od(),1);var Ab=o(e=>e.split(`
|
|
59
|
+
`).length,"height"),WP=o(e=>e.split(`
|
|
60
|
+
`).pop()??"","lastLine");function Tb(e){return e>0?wn.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=WP(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
61
|
`);let f=t+(r?`
|
|
62
|
-
`+r:""),p=Math.floor(s.length/c)-this.cursorPos.rows+(r?Ab(r):0);p>0&&(f+=
|
|
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(
|
|
62
|
+
`+r:""),p=Math.floor(s.length/c)-this.cursorPos.rows+(r?Ab(r):0);p>0&&(f+=wn.default.cursorUp(p)),f+=wn.default.cursorTo(this.cursorPos.cols),this.write(Tb(this.extraLinesUnderPrompt)+wn.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(wn.default.cursorTo(t.cols)),this.cursorPos=t)}done({clearContent:t}){this.rl.setPrompt("");let r=Tb(this.extraLinesUnderPrompt);r+=t?wn.default.eraseLines(this.height):`
|
|
63
|
+
`,r+=wn.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 ar=Me(require("process"),1);function qP(){return ar.default.platform!=="win32"?ar.default.env.TERM!=="linux":!!ar.default.env.WT_SESSION||!!ar.default.env.TERMINUS_SUBLIME||ar.default.env.ConEmuTask==="{cmd::Cmder}"||ar.default.env.TERM_PROGRAM==="Terminus-Sublime"||ar.default.env.TERM_PROGRAM==="vscode"||ar.default.env.TERM==="xterm-256color"||ar.default.env.TERM==="alacritty"||ar.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(qP,"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"},HP={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"},zP={...Mb,...Ob},GP={...Mb,...HP},$P=qP(),jP=$P?zP:GP,tl=jP,u4=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 Xn=Ud;var Ae=Io((e,t)=>{let{required:r,validate:i=o(()=>!0,"validate")}=e,s=Vn(e.theme),[u,c]=gt("pending"),[f="",v]=gt(e.default),[p,g]=gt(),[b,x]=gt(""),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 ZP={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!Xn.isSeparator(e)&&!e.disabled}o(sa,"isSelectable");var mt=Io((e,t)=>{let{choices:r,loop:i=!0,pageSize:s=7}=e,u=vn(!0),c=Vn(ZP,e.theme),f=ko({theme:c}),[v,p]=gt("pending"),g=vn(),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]=gt(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=>Xn.isSeparator(J)||!sa(J)?!1:String(J.name||J.value).toLowerCase().startsWith(G));z>=0&&L(z),g.current=setTimeout(()=>{q.clearLine(0)},700)}}),Kn(()=>()=>{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(Xn.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
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
|
|
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 mt({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 mt({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 Ye=require("fs"),al=Me(require("child_process")),Ft=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)})})}validateAuthExists(){this.checksumRoot||this.findChecksumRoot();let t=(0,Ft.join)(this.checksumRoot,".auth");(0,Ye.existsSync)(t)||(0,Ye.writeFileSync)(t,"{}")}loadChecksumData(){this.locateChecksumLibs(),this.processChecksumArguments(),this.setChecksumConfig()}async patchPlaywright(t=!1){Oe("Patching playwright",t);let r=(0,Ft.join)(__dirname,"./scripts/patch.js");(0,Ye.existsSync)(r)||(r=(0,Ft.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,Ft.join)(this.checksumRoot,"playwright.config.ts")}buildVolatileConfig(){if(!this.volatileChecksumConfig)return;let t=this.getVolatileConfigPath(),r=`
|
|
67
67
|
import { RunMode, getChecksumConfig } from "@checksum-ai/runtime";
|
|
68
68
|
|
|
69
69
|
export default getChecksumConfig(${JSON.stringify(this.config,null,2)});
|
|
70
|
-
`;(0,
|
|
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
|
|
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}
|
|
70
|
+
`;(0,Ye.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,Ft.join)(this.checksumRoot??"","checksum.config.tmp.ts")}deleteVolatileConfig(){let t=this.getVolatileConfigPath();(0,Ye.existsSync)(t)&&(0,Ye.rmSync)(t)}setChecksumConfig(){this.config={...require((0,Ft.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,Ft.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,Ft.join)(t,"node_modules","@checksum-ai","runtime");if((0,Ye.existsSync)(i)){this.projectRootDirectory=t;return}if((0,Ft.parse)(t).root===t)break;t=(0,Ft.join)(t,"..")}throw new Error("Could not resolve checksum root origins")}findChecksumRoot(){let t=o(i=>{try{return(0,Ye.readdirSync)(i).includes("checksum.config.ts")}catch{return!1}},"containsChecksumConfig"),r=[this.projectRootDirectory];for(;r.length;){let i=r.pop(),s=(0,Ye.readdirSync)(i,{withFileTypes:!0});for(let u of s){let c=(0,Ft.join)(i,u.name),f=c;if(u.isSymbolicLink())try{let v=(0,Ye.readlinkSync)(c);if(!(0,Ye.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 Gt=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 mt({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"),Qn=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,Qn.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,Qn.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,Qn.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,Qn.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,Qn.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,Qn.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 $n(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=et(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()),ei=require("path"),yn=require("fs");async function Gb(e,t){let r=await(0,yn.readdirSync)(t);await Promise.all(r.map(async i=>{let s=(0,ei.join)(t,i);if((await(0,yn.statSync)(s)).isDirectory()){let c=e.folder(i);await Gb(c,s)}else{let c=await(0,yn.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,ei.join)((0,ei.dirname)(e),`${(0,ei.basename)(e)}.zip`);return(0,yn.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 Gt{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 $n(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 mt({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 mt({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 mt({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 mt({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 mt({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 Gt{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(),this.validateAuthExists(),!await this.getSession())return;let r;try{r=await et(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
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
|
|
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 Gt{constructor(t,r=!1){super(t,r)}async run(t){switch(t){default:console.log(`
|
|
75
75
|
Checksum CLI
|
|
76
76
|
Usage: checksum [command] [options]
|
|
77
77
|
|
|
@@ -83,7 +83,7 @@ show-report [options] [report] show HTML report
|
|
|
83
83
|
`);break;case"test":try{let i=(await this.getCmdOutput("npx playwright test --help")).replace(/npx playwright/g,"yarn checksum").split(`
|
|
84
84
|
`);i.splice(5,0," --checksum-config=<config> Checksum configuration in JSON format").join(`
|
|
85
85
|
`),console.log(i.join(`
|
|
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
|
|
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 Gt{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 nt=require("fs"),$r=require("path");var rp=class rp extends Gt{constructor(t,r=!1){super(t,r)}run(){console.log("Creating Checksum directory and necessary files to run your tests");try{this.findProjectRoot()}catch(u){console.log(u.message),process.exit(1)}let t=(0,$r.join)(process.cwd(),As);if((0,nt.existsSync)(t)||(0,nt.mkdirSync)(t),!(0,nt.existsSync)(this.getChecksumRootOrigin()))throw new Error("Could not find checksum root directory, please install @checksum-ai/runtime package");let r=(0,nt.existsSync)((0,$r.join)(t,"checksum.config.ts"));Um({isInit:!r}).forEach(u=>{let c=(0,$r.join)(t,u);(0,nt.existsSync)(c)||(0,nt.copyFileSync)((0,$r.join)(this.getChecksumRootOrigin(),u),c)});let i=(0,$r.join)(t,".gitignore.example"),s=(0,$r.join)(t,".gitignore");(0,nt.existsSync)(i)&&!(0,nt.existsSync)(s)&&((0,nt.copyFileSync)(i,s),(0,nt.unlinkSync)(i)),this.validateAuthExists(),(0,nt.mkdirSync)((0,$r.join)(t,"tests"),{recursive:!0}),["esra","har","trace","log"].forEach(u=>{(0,nt.mkdirSync)((0,$r.join)(t,"test-data",u),{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())();
|
|
87
87
|
/*! Bundled license information:
|
|
88
88
|
|
|
89
89
|
lodash/lodash.js:
|